dealpos 12.2.2 → 12.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/POS/2527.c8c1472e2583d15c.js +1 -0
- package/POS/{4970.4b720eacff390388.js → 4970.4fd0b65a33ec215d.js} +1 -1
- package/POS/500.8a2dabd11040f420.js +1 -0
- package/POS/5453.70fcfbaa7bfcd55b.js +1 -0
- package/POS/5586.6557e4bd206a28bd.js +1 -0
- package/POS/6303.bfcba36635158bb0.js +1 -0
- package/POS/6664.5a6d92ea4c288821.js +1 -0
- package/POS/6840.d0036ec626577639.js +1 -0
- package/POS/{8126.a38cad86f4c81065.js → 8126.2a3f67a7639fa6c8.js} +1 -1
- package/POS/8317.5eadaac9d81f9a5f.js +1 -0
- package/POS/8425.8d3419e0fb226dda.js +1 -0
- package/POS/9042.5c52e1b1c2f26f40.js +1 -0
- package/POS/9612.6a332f69514c0983.js +1 -0
- package/POS/{9757.7255467eb7a81e5f.js → 9757.197c3204c36bdd73.js} +1 -1
- package/POS/{2527.7e671ae42215b675.js → 9841.5c1c03ebf5b7893e.js} +1 -1
- package/POS/index.html +2 -2
- package/POS/{main.5719023b63890082.js → main.434c24ea7d5f6011.js} +1 -1
- package/POS/runtime.7c28f5c91adf7583.js +1 -0
- package/package.json +1 -1
- package/POS/2526.b4ad12c60a108246.js +0 -1
- package/POS/500.0c17a4a814815447.js +0 -1
- package/POS/6303.5724083b307f1ed5.js +0 -1
- package/POS/6551.7ed8f31c22230139.js +0 -1
- package/POS/6664.567ef29551e80239.js +0 -1
- package/POS/6840.123d77eead78424d.js +0 -1
- package/POS/6911.3b1b89c2d61a261c.js +0 -1
- package/POS/8317.f9654b9e65973243.js +0 -1
- package/POS/9498.2b6e42b23bdba39a.js +0 -1
- package/POS/9612.0ffe44a08279c42b.js +0 -1
- package/POS/runtime.f4e420d04496da7f.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[8317],{58317:($t,Ct,a)=>{a.r(Ct),a.d(Ct,{MenuMasterModule:()=>wt});var e=a(81180),R=a(24006),z=a(9116),_=a(94650),i=a(59612);let $=(()=>{class E{constructor(I,M){(0,e.Z)(this,"authService",void 0),(0,e.Z)(this,"router",void 0),this.authService=I,this.router=M}canLoad(I,M){return!this.authService.isTokenExpired()||(this.authService.returnUrl=this.getUrlRedirect(M),this.router.navigate(["/"]),!1)}getUrlRedirect(I){let M="/menu";I.forEach(et=>M+=`/${et.path}`);const N=this.router.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(N).forEach((et,yt)=>{M=0==yt?`${M}?${et}=${N[et]}`:`${M}&${et}=${N[et]}`}),M}}return(0,e.Z)(E,"\u0275fac",function(I){return new(I||E)(_.LFG(i.e),_.LFG(z.F0))}),(0,e.Z)(E,"\u0275prov",_.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})),E})();var lt=a(85657),B=a(10962);let Z=(()=>{class E{constructor(I,M){(0,e.Z)(this,"cookiesService",void 0),(0,e.Z)(this,"reportService",void 0),this.cookiesService=I,this.reportService=M}canDeactivate(I,M,N){return this.cookiesService.delete("ReportFilter","/"),this.reportService.resetFilter(),!0}}return(0,e.Z)(E,"\u0275fac",function(I){return new(I||E)(_.LFG(lt.N),_.LFG(B.z))}),(0,e.Z)(E,"\u0275prov",_.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})),E})();var rt=a(67327),st=a(77579),bt=a(39300),L=a(68675),ft=a(82722),dt=a(24766),ct=a(54147),C=a(35078),Et=a(71638),gt=a(97185);let X=(()=>{class E{constructor(I){(0,e.Z)(this,"toastrService",void 0),(0,e.Z)(this,"isPermissionGranted",void 0),(0,e.Z)(this,"initPermissionToastr",void 0),this.toastrService=I,this.initPermissionToastr=!1}initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(M=>{this.isPermissionGranted=!1,"granted"==M&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(I){console.error(I)}}showAlert(I,M,N,q){if(this.isPermissionGranted)try{new Notification(M,{body:I,icon:q}).onerror=St=>{this.toastrService.info(this.setBody(I,N),M,{timeOut:6e4,enableHtml:this.hasUrl(N)})}}catch(yt){console.error(yt)}else this.toastrService.info(this.setBody(I,N),M,{timeOut:6e4,enableHtml:this.hasUrl(N)})}setBody(I,M){return this.hasUrl(M)&&(I=`<a href="${M}" target="_blank" class="ps-0">${I}</a>`),I}hasUrl(I){return!(!I||0===I.length)}}return(0,e.Z)(E,"\u0275fac",function(I){return new(I||E)(_.LFG(gt._W))}),(0,e.Z)(E,"\u0275prov",_.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})),E})();var k=a(10266),it=a(36895),O=a(93669);function V(E,j){if(1&E&&(_.TgZ(0,"a",28),_._UZ(1,"i",29),_.TgZ(2,"span"),_._uU(3),_.qZA()()),2&E){const I=j.$implicit;_.Q6J("routerLink",I.U),_.xp6(1),_.Tol(I.I+" me-2"),_.xp6(2),_.Oqu(I.T)}}const ht=function(E){return[E]};function vt(E,j){if(1&E&&(_.TgZ(0,"li",30,31)(2,"a",32),_._UZ(3,"i"),_.TgZ(4,"p"),_._uU(5),_.qZA()()()),2&E){const I=j.$implicit,M=_.oxw();_.Q6J("routerLinkActiveOptions",M.isActiveMatchOptions),_.uIk("data-cy",I.T),_.xp6(2),_.Q6J("matTooltip",M.toggleSideMenu?I.T:"")("routerLink",_.VKq(7,ht,I.U)),_.xp6(1),_.Tol(I.I),_.xp6(2),_.Oqu(I.T)}}const xt=function(E,j){return{"full-container":E,"subscription-bar-visible":j}};let At=(()=>{class E{constructor(I,M,N,q,et){(0,e.Z)(this,"toggleSidebar",void 0),(0,e.Z)(this,"signalRClientService",void 0),(0,e.Z)(this,"notificationAlertService",void 0),(0,e.Z)(this,"router",void 0),(0,e.Z)(this,"authService",void 0),(0,e.Z)(this,"isActiveMatchOptions",{matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"}),(0,e.Z)(this,"Menu",{}),(0,e.Z)(this,"KeyMenu","MenuPageData"),(0,e.Z)(this,"toggleSideMenu",!1),(0,e.Z)(this,"isNavOpen",void 0),(0,e.Z)(this,"destroy$",void 0),(0,e.Z)(this,"activeMenu",void 0),(0,e.Z)(this,"appVersion",dt.N.version),(0,e.Z)(this,"currentSubStatus",void 0),(0,e.Z)(this,"subsStatusEnum",ct.y),(0,e.Z)(this,"isFullContainer",!1),this.toggleSidebar=I,this.signalRClientService=M,this.notificationAlertService=N,this.router=q,this.authService=et,this.Menu=JSON.parse(localStorage.getItem(this.KeyMenu)),this.toggleSidebar.toggleState$.subscribe(yt=>this.isNavOpen=yt),this.destroy$=new st.x,this.initNotificationPermission()}ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe((0,bt.h)(I=>I instanceof z.m2),(0,L.O)(null),(0,ft.R)(this.destroy$)).subscribe(I=>{this.isFullContainer=!1,this.router.url.includes("Sell/V3")&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let I=localStorage.getItem("NotificationOutletID");rt.gT.IsNotEmpty(I)&&this.signalRClientService.SubscribeGroup(I),this.signalRClientService.OnReceivePushNotification.pipe((0,ft.R)(this.destroy$),(0,bt.h)(M=>rt.gT.IsNotEmpty(M))).subscribe(M=>{if(rt.gT.IsNotEmpty(M)){const N=JSON.parse(M);let q="//res.cloudinary.com/pos/image/upload/v1657006791/icons/info-new.png";rt.gT.IsNotEmpty(N.Icon)&&(q=N.Icon),this.notificationAlertService.showAlert(N.Body,N.Header,N.URL,q)}})}ngAfterViewInit(){this.inititalizeIntercom()}inititalizeIntercom(){let I=localStorage.getItem("Intercom"),M=JSON.parse(I);M?.Enabled&&window.Intercom("boot",{app_id:"xv1oomgl",name:M.Name,email:M.Email,created_at:M.Created,user_hash:M.Hash})}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(I){return rt.gT.IsNotEmpty(I)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(0,e.Z)(E,"\u0275fac",function(I){return new(I||E)(_.Y36(C.g),_.Y36(Et.G),_.Y36(X),_.Y36(z.F0),_.Y36(i.e))}),(0,e.Z)(E,"\u0275cmp",_.Xpm({type:E,selectors:[["POS-menu-master"]],decls:43,vars:17,consts:[[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["class","dropdown-item h5",3,"routerLink",4,"ngFor","ngForOf"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions",4,"ngFor","ngForOf"],[1,"main-panel",3,"ngClass"],[1,"dropdown-item","h5",3,"routerLink"],["aria-hidden","true"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["rla","routerLinkActive"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(I,M){1&I&&(_.TgZ(0,"div",0)(1,"div",1)(2,"button",2),_.NdJ("click",function(){return M.toggleMenu()}),_._UZ(3,"i",3),_.qZA(),_.TgZ(4,"div",4)(5,"div",5)(6,"a",6),_._uU(7),_.ALo(8,"limitTo"),_.qZA(),_.TgZ(9,"div",7)(10,"div",8),_._uU(11),_.qZA(),_._UZ(12,"div",9),_.YNc(13,V,4,4,"a",10),_.TgZ(14,"a",11),_.NdJ("click",function(){return M.logout()}),_._UZ(15,"i",12),_.TgZ(16,"span"),_._uU(17,"Log Out"),_.qZA()(),_._UZ(18,"div",13),_.TgZ(19,"div",14),_._uU(20," Links "),_.qZA(),_.TgZ(21,"a",15),_._UZ(22,"i",16),_.TgZ(23,"span"),_._uU(24,"What's New"),_._UZ(25,"i",17),_.qZA()(),_.TgZ(26,"a",18),_._UZ(27,"i",19),_.TgZ(28,"span"),_._uU(29,"Help Center"),_.qZA()(),_.TgZ(30,"a",20),_._UZ(31,"i",21),_.TgZ(32,"span"),_._uU(33,"App Store"),_.qZA()(),_.TgZ(34,"a",22),_._UZ(35,"i",23),_.TgZ(36,"span"),_._uU(37,"Company Blog"),_.qZA()()()()(),_.TgZ(38,"div",24)(39,"ul",25),_.YNc(40,vt,6,9,"li",26),_.qZA()()(),_.TgZ(41,"div",27),_._UZ(42,"router-outlet"),_.qZA()()),2&I&&(_.ekj("nav-open",M.isNavOpen),_.xp6(1),_.Q6J("ngClass",M.toggleSideMenu?"collapses":""),_.xp6(2),_.Q6J("ngClass",M.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),_.xp6(3),_.s9C("matTooltip",M.Menu.CompanyName),_.xp6(1),_.Oqu(_.xi3(8,11,M.Menu.CompanyName,M.toggleSideMenu?1:11)),_.xp6(4),_.hij("",M.Menu.UserName," "),_.xp6(2),_.Q6J("ngForOf",M.Menu.Top),_.xp6(8),_.MGl("href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",M.appVersion,"",_.LSH),_.xp6(19),_.Q6J("ngForOf",M.Menu.Left),_.xp6(1),_.Q6J("ngClass",_.WLB(14,xt,M.isFullContainer,M.isNotEmpty(M.currentSubStatus)&&M.currentSubStatus!==M.subsStatusEnum.PAID)))},dependencies:[k.gM,z.lC,z.rH,z.Od,it.mk,it.sg,O.OI],styles:[".sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important;scrollbar-width:thin}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}"]})),E})();const Dt=[{path:"",component:At,children:[{path:"Inventory",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(8006),a.e(115),a.e(1795),a.e(9798),a.e(585),a.e(3848),a.e(6308),a.e(2255),a.e(8592),a.e(500)]).then(a.bind(a,17155)).then(E=>E.InventoryModule),canLoad:[$]},{path:"Reports",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(8006),a.e(115),a.e(1795),a.e(9798),a.e(585),a.e(3848),a.e(6308),a.e(2255),a.e(6510),a.e(57),a.e(5586),a.e(6756),a.e(8592),a.e(5453)]).then(a.bind(a,15453)).then(E=>E.ReportsModule),canLoad:[$],canDeactivate:[Z]},{path:"Sell",loadChildren:()=>a.e(8126).then(a.bind(a,68126)).then(E=>E.SellModule),canLoad:[$]},{path:"SellV3",loadChildren:()=>Promise.all([a.e(3337),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(1795),a.e(585),a.e(3848),a.e(4825),a.e(3259),a.e(2270),a.e(7193),a.e(7392),a.e(8923),a.e(9841),a.e(1296),a.e(2199),a.e(5510),a.e(8393)]).then(a.bind(a,35510)).then(E=>E.ROUTES),canLoad:[$]},{path:"Print",loadChildren:()=>Promise.all([a.e(3337),a.e(3259),a.e(7193),a.e(4941)]).then(a.bind(a,64941)).then(E=>E.PrintModule),canLoad:[$]},{path:"Buy",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(1795),a.e(585),a.e(3848),a.e(4825),a.e(2270),a.e(7331),a.e(1407),a.e(8923),a.e(9841),a.e(1296),a.e(8592),a.e(2004)]).then(a.bind(a,86014)).then(E=>E.BuyModule),canLoad:[$]},{path:"Dashboard",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(6510),a.e(4020)]).then(a.bind(a,74020)).then(E=>E.DashboardModule),canLoad:[$]},{path:"Products",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(8006),a.e(115),a.e(1795),a.e(9798),a.e(3848),a.e(6308),a.e(4825),a.e(2255),a.e(7331),a.e(7392),a.e(6510),a.e(57),a.e(9160),a.e(9942),a.e(8425),a.e(5586),a.e(8592),a.e(9042)]).then(a.bind(a,19042)).then(E=>E.ProductModule),canLoad:[$]},{path:"Shift",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(115),a.e(1795),a.e(9798),a.e(585),a.e(3848),a.e(8592),a.e(3194)]).then(a.bind(a,93194)).then(E=>E.ShiftModule),canLoad:[$]},{path:"Debt",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(8006),a.e(115),a.e(1795),a.e(9798),a.e(585),a.e(3848),a.e(6308),a.e(4825),a.e(2255),a.e(8592),a.e(8761)]).then(a.bind(a,38761)).then(E=>E.DebtModule),canLoad:[$]},{path:"Logistics",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(8006),a.e(115),a.e(1795),a.e(585),a.e(3848),a.e(6308),a.e(4825),a.e(2255),a.e(2270),a.e(1407),a.e(9841),a.e(6756),a.e(8592),a.e(5189)]).then(a.bind(a,75189)).then(E=>E.DeliveryModule),canLoad:[$]},{path:"Users",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(8006),a.e(115),a.e(1795),a.e(9798),a.e(585),a.e(3848),a.e(6308),a.e(2255),a.e(6709),a.e(8592),a.e(8105)]).then(a.bind(a,38105)).then(E=>E.UsersModule),canLoad:[$]},{path:"Setup",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(8006),a.e(1795),a.e(9798),a.e(585),a.e(3848),a.e(6308),a.e(4825),a.e(2255),a.e(6709),a.e(7331),a.e(7392),a.e(8592),a.e(4970)]).then(a.bind(a,4970)).then(E=>E.SetupModule),canLoad:[$]},{path:"Contacts",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(8006),a.e(115),a.e(1795),a.e(9798),a.e(585),a.e(3848),a.e(6308),a.e(4825),a.e(2255),a.e(6709),a.e(9160),a.e(8592),a.e(8401)]).then(a.bind(a,8401)).then(E=>E.ContactsModule),canLoad:[$]},{path:"Outlets",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(811),a.e(805),a.e(8006),a.e(115),a.e(1795),a.e(9798),a.e(4825),a.e(57),a.e(9942),a.e(6664)]).then(a.bind(a,26664)).then(E=>E.OutletsModule),canLoad:[$]},{path:"Orders",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(8006),a.e(115),a.e(1795),a.e(9798),a.e(585),a.e(4825),a.e(2199),a.e(9160),a.e(8592),a.e(6303)]).then(a.bind(a,89920)).then(E=>E.OrdersModule),canLoad:[$]},{path:"Profile",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(8006),a.e(9798),a.e(3259),a.e(8592),a.e(1853)]).then(a.bind(a,15378)).then(E=>E.ProfileModule),canLoad:[$]},{path:"Estimate",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(3848),a.e(4825),a.e(2270),a.e(7331),a.e(1407),a.e(8923),a.e(4749),a.e(8592),a.e(7998)]).then(a.bind(a,81920)).then(E=>E.EstimateModule),canLoad:[$]},{path:"Adjustment",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(8006),a.e(115),a.e(3848),a.e(6308),a.e(4825),a.e(2270),a.e(6709),a.e(7331),a.e(7392),a.e(1407),a.e(8425),a.e(4749),a.e(8592),a.e(2527)]).then(a.bind(a,70900)).then(E=>E.AdjustmentModule),canLoad:[$]},{path:"Payment",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(8006),a.e(115),a.e(9798),a.e(6308),a.e(8592),a.e(7516)]).then(a.bind(a,97516)).then(E=>E.PaymentModule),canLoad:[$]},{path:"Promotion",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(8006),a.e(115),a.e(1795),a.e(9798),a.e(585),a.e(7298)]).then(a.bind(a,7298)).then(E=>E.PromotionModule),canLoad:[$]},{path:"Manufacture",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(115),a.e(9798),a.e(6308),a.e(6268)]).then(a.bind(a,26268)).then(E=>E.ManufactureModule),canLoad:[$]},{path:"Prepaid_Package",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(805),a.e(8006),a.e(115),a.e(1795),a.e(9798),a.e(585),a.e(6308),a.e(3259),a.e(6709),a.e(7193),a.e(6510),a.e(4941),a.e(8592),a.e(8589)]).then(a.bind(a,88589)).then(E=>E.PrepaidPackageModule),canLoad:[$]},{path:"Fulfillment",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(758),a.e(8085),a.e(811),a.e(8006),a.e(115),a.e(6308),a.e(4825),a.e(6709),a.e(2750)]).then(a.bind(a,72750)).then(E=>E.FulfillmentModule),canLoad:[$]},{path:"Unauthorized",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(6461)]).then(a.bind(a,96461)).then(E=>E.UnauthorizedModule),canLoad:[$]},{path:"Not_Found",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(3920)]).then(a.bind(a,43920)).then(E=>E.NotFoundModule),canLoad:[$]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}];let Mt=(()=>{class E{}return(0,e.Z)(E,"\u0275fac",function(I){return new(I||E)}),(0,e.Z)(E,"\u0275mod",_.oAB({type:E})),(0,e.Z)(E,"\u0275inj",_.cJS({imports:[z.Bz.forChild(Dt),z.Bz]})),E})();var Bt=a(65412),Lt=a(99602),Pt=a(47957),Rt=a(88796);let wt=(()=>{class E{constructor(){}}return(0,e.Z)(E,"\u0275fac",function(I){return new(I||E)}),(0,e.Z)(E,"\u0275mod",_.oAB({type:E,bootstrap:[At]})),(0,e.Z)(E,"\u0275inj",_.cJS({imports:[k.AV,Mt,O.dr,R.u5,it.ez,Bt.Is,Lt.FA,Rt.A0,Pt.Bb]})),E})()},10962:($t,Ct,a)=>{a.d(Ct,{z:()=>i});var e=a(81180),R=a(67327),z=a(94650),_=a(85657);let i=(()=>{class ${constructor(B){(0,e.Z)(this,"cookieService",void 0),(0,e.Z)(this,"_reportFilter",{from:null,outletIds:[],to:null}),(0,e.Z)(this,"_cookiesName","ReportFilter"),this.cookieService=B}initOutletFilter(B=[]){let Z=this.getReportFilter();return R.gT.IsNotEmpty(Z?.outletIds)?B=Z.outletIds:this.setOutletFilter(B),B}initDateFromFilter(B){let Z=this.getReportFilter();return R.gT.IsNotEmpty(Z?.from)?B=Z.from:this.setDateFromFilter(B),B}initDateToFilter(B){let Z=this.getReportFilter();return R.gT.IsNotEmpty(Z?.to)?B=Z.to:this.setDateToFilter(B),B}setDateFromFilter(B){let Z=this.getReportFilter();R.gT.IsEmpty(Z)&&(Z=this._reportFilter),Z.from=B,this.saveFilterToCookie(Z)}setDateToFilter(B){let Z=this.getReportFilter();R.gT.IsEmpty(Z)&&(Z=this._reportFilter),Z.to=B,this.saveFilterToCookie(Z)}setOutletFilter(B=[]){let Z=this.getReportFilter();R.gT.IsEmpty(Z)&&(Z=this._reportFilter),Z.outletIds=B,this.saveFilterToCookie(Z)}saveFilterToCookie(B){this.cookieService.set(this._cookiesName,JSON.stringify(B),this.getExpiredDate(),"/")}getReportFilter(){if(this.cookieService.check("ReportFilter")){let B=this.cookieService.get("ReportFilter");this._reportFilter=JSON.parse(B)}return this._reportFilter}getExpiredDate(){let B=new Date;return B.setTime(B.getTime()+36e5),B}resetFilter(){this._reportFilter={from:null,outletIds:[],to:null}}}return(0,e.Z)($,"\u0275fac",function(B){return new(B||$)(z.LFG(_.N))}),(0,e.Z)($,"\u0275prov",z.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"})),$})()},71638:($t,Ct,a)=>{a.d(Ct,{G:()=>F});var e=a(81180);const R=[0,2e3,1e4,3e4,null];class z{constructor(n){this._retryDelays=void 0!==n?[...n,null]:R}nextRetryDelayInMilliseconds(n){return this._retryDelays[n.previousRetryCount]}}var _=a(15861);let i=(()=>{class g{}return g.Authorization="Authorization",g.Cookie="Cookie",g})();class ${constructor(n,s,u){this.statusCode=n,this.statusText=s,this.content=u}}class lt{get(n,s){return this.send({...s,method:"GET",url:n})}post(n,s){return this.send({...s,method:"POST",url:n})}delete(n,s){return this.send({...s,method:"DELETE",url:n})}getCookieString(n){return""}}class B extends lt{constructor(n,s){super(),this._innerClient=n,this._accessTokenFactory=s}send(n){var s=this;return(0,_.Z)(function*(){let u=!0;s._accessTokenFactory&&(!s._accessToken||n.url&&n.url.indexOf("/negotiate?")>0)&&(u=!1,s._accessToken=yield s._accessTokenFactory()),s._setAuthorizationHeader(n);const f=yield s._innerClient.send(n);return u&&401===f.statusCode&&s._accessTokenFactory?(s._accessToken=yield s._accessTokenFactory(),s._setAuthorizationHeader(n),yield s._innerClient.send(n)):f})()}_setAuthorizationHeader(n){n.headers||(n.headers={}),this._accessToken?n.headers[i.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&n.headers[i.Authorization]&&delete n.headers[i.Authorization]}getCookieString(n){return this._innerClient.getCookieString(n)}}class Z extends Error{constructor(n,s){const u=new.target.prototype;super(`${n}: Status code '${s}'`),this.statusCode=s,this.__proto__=u}}class rt extends Error{constructor(n="A timeout occurred."){const s=new.target.prototype;super(n),this.__proto__=s}}class st extends Error{constructor(n="An abort occurred."){const s=new.target.prototype;super(n),this.__proto__=s}}class bt extends Error{constructor(n,s){const u=new.target.prototype;super(n),this.transport=s,this.errorType="UnsupportedTransportError",this.__proto__=u}}class L extends Error{constructor(n,s){const u=new.target.prototype;super(n),this.transport=s,this.errorType="DisabledTransportError",this.__proto__=u}}class ft extends Error{constructor(n,s){const u=new.target.prototype;super(n),this.transport=s,this.errorType="FailedToStartTransportError",this.__proto__=u}}class dt extends Error{constructor(n){const s=new.target.prototype;super(n),this.errorType="FailedToNegotiateWithServerError",this.__proto__=s}}class ct extends Error{constructor(n,s){const u=new.target.prototype;super(n),this.innerErrors=s,this.__proto__=u}}var C=(()=>{return(g=C||(C={}))[g.Trace=0]="Trace",g[g.Debug=1]="Debug",g[g.Information=2]="Information",g[g.Warning=3]="Warning",g[g.Error=4]="Error",g[g.Critical=5]="Critical",g[g.None=6]="None",C;var g})();class Et{constructor(){}log(n,s){}}Et.instance=new Et;const gt="7.0.4";class X{static isRequired(n,s){if(null==n)throw new Error(`The '${s}' argument is required.`)}static isNotEmpty(n,s){if(!n||n.match(/^\s*$/))throw new Error(`The '${s}' argument should not be empty.`)}static isIn(n,s,u){if(!(n in s))throw new Error(`Unknown ${u} value: ${n}.`)}}class k{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&typeof window.document>"u"}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function it(g,n){let s="";return V(g)?(s=`Binary data of length ${g.byteLength}`,n&&(s+=`. Content: '${function O(g){const n=new Uint8Array(g);let s="";return n.forEach(u=>{s+=`0x${u<16?"0":""}${u.toString(16)} `}),s.substr(0,s.length-1)}(g)}'`)):"string"==typeof g&&(s=`String data of length ${g.length}`,n&&(s+=`. Content: '${g}'`)),s}function V(g){return g&&typeof ArrayBuffer<"u"&&(g instanceof ArrayBuffer||g.constructor&&"ArrayBuffer"===g.constructor.name)}function ht(g,n,s,u,f,D){return vt.apply(this,arguments)}function vt(){return(vt=(0,_.Z)(function*(g,n,s,u,f,D){const Y={},[P,W]=Mt();Y[P]=W,g.log(C.Trace,`(${n} transport) sending data. ${it(f,D.logMessageContent)}.`);const J=V(f)?"arraybuffer":"text",nt=yield s.post(u,{content:f,headers:{...Y,...D.headers},responseType:J,timeout:D.timeout,withCredentials:D.withCredentials});g.log(C.Trace,`(${n} transport) request complete. Response status: ${nt.statusCode}.`)})).apply(this,arguments)}class At{constructor(n,s){this._subject=n,this._observer=s}dispose(){const n=this._subject.observers.indexOf(this._observer);n>-1&&this._subject.observers.splice(n,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(s=>{})}}class Dt{constructor(n){this._minLevel=n,this.out=console}log(n,s){if(n>=this._minLevel){const u=`[${(new Date).toISOString()}] ${C[n]}: ${s}`;switch(n){case C.Critical:case C.Error:this.out.error(u);break;case C.Warning:this.out.warn(u);break;case C.Information:this.out.info(u);break;default:this.out.log(u)}}}}function Mt(){let g="X-SignalR-User-Agent";return k.isNode&&(g="User-Agent"),[g,Bt(gt,Lt(),k.isNode?"NodeJS":"Browser",Pt())]}function Bt(g,n,s,u){let f="Microsoft SignalR/";const D=g.split(".");return f+=`${D[0]}.${D[1]}`,f+=` (${g}; `,f+=n&&""!==n?`${n}; `:"Unknown OS; ",f+=`${s}`,f+=u?`; ${u}`:"; Unknown Runtime Version",f+=")",f}function Lt(){if(!k.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function Pt(){if(k.isNode)return process.versions.node}function wt(g){return g.stack?g.stack:g.message?g.message:`${g}`}class j extends lt{constructor(n){if(super(),this._logger=n,typeof fetch>"u"){const s=require;this._jar=new(s("tough-cookie").CookieJar),this._fetchType=s("node-fetch"),this._fetchType=s("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function E(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}());if(typeof AbortController>"u"){const s=require;this._abortControllerType=s("abort-controller")}else this._abortControllerType=AbortController}send(n){var s=this;return(0,_.Z)(function*(){if(n.abortSignal&&n.abortSignal.aborted)throw new st;if(!n.method)throw new Error("No method defined.");if(!n.url)throw new Error("No url defined.");const u=new s._abortControllerType;let f;n.abortSignal&&(n.abortSignal.onabort=()=>{u.abort(),f=new st});let Y,D=null;n.timeout&&(D=setTimeout(()=>{u.abort(),s._logger.log(C.Warning,"Timeout from HTTP request."),f=new rt},n.timeout)),""===n.content&&(n.content=void 0),n.content&&(n.headers=n.headers||{},n.headers["Content-Type"]=V(n.content)?"application/octet-stream":"text/plain;charset=UTF-8");try{Y=yield s._fetchType(n.url,{body:n.content,cache:"no-cache",credentials:!0===n.withCredentials?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...n.headers},method:n.method,mode:"cors",redirect:"follow",signal:u.signal})}catch(J){throw f||(s._logger.log(C.Warning,`Error from HTTP request. ${J}.`),J)}finally{D&&clearTimeout(D),n.abortSignal&&(n.abortSignal.onabort=null)}if(!Y.ok){const J=yield I(Y,"text");throw new Z(J||Y.statusText,Y.status)}const W=yield I(Y,n.responseType);return new $(Y.status,Y.statusText,W)})()}getCookieString(n){let s="";return k.isNode&&this._jar&&this._jar.getCookies(n,(u,f)=>s=f.join("; ")),s}}function I(g,n){let s;switch(n){case"arraybuffer":s=g.arrayBuffer();break;case"text":default:s=g.text();break;case"blob":case"document":case"json":throw new Error(`${n} is not supported.`)}return s}class M extends lt{constructor(n){super(),this._logger=n}send(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new st):n.method?n.url?new Promise((s,u)=>{const f=new XMLHttpRequest;f.open(n.method,n.url,!0),f.withCredentials=void 0===n.withCredentials||n.withCredentials,f.setRequestHeader("X-Requested-With","XMLHttpRequest"),""===n.content&&(n.content=void 0),n.content&&(V(n.content)?f.setRequestHeader("Content-Type","application/octet-stream"):f.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const D=n.headers;D&&Object.keys(D).forEach(Y=>{f.setRequestHeader(Y,D[Y])}),n.responseType&&(f.responseType=n.responseType),n.abortSignal&&(n.abortSignal.onabort=()=>{f.abort(),u(new st)}),n.timeout&&(f.timeout=n.timeout),f.onload=()=>{n.abortSignal&&(n.abortSignal.onabort=null),f.status>=200&&f.status<300?s(new $(f.status,f.statusText,f.response||f.responseText)):u(new Z(f.response||f.responseText||f.statusText,f.status))},f.onerror=()=>{this._logger.log(C.Warning,`Error from HTTP request. ${f.status}: ${f.statusText}.`),u(new Z(f.statusText,f.status))},f.ontimeout=()=>{this._logger.log(C.Warning,"Timeout from HTTP request."),u(new rt)},f.send(n.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class N extends lt{constructor(n){if(super(),typeof fetch<"u"||k.isNode)this._httpClient=new j(n);else{if(!(typeof XMLHttpRequest<"u"))throw new Error("No usable HttpClient found.");this._httpClient=new M(n)}}send(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new st):n.method?n.url?this._httpClient.send(n):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(n){return this._httpClient.getCookieString(n)}}var q=(()=>{return(g=q||(q={}))[g.None=0]="None",g[g.WebSockets=1]="WebSockets",g[g.ServerSentEvents=2]="ServerSentEvents",g[g.LongPolling=4]="LongPolling",q;var g})(),et=(()=>{return(g=et||(et={}))[g.Text=1]="Text",g[g.Binary=2]="Binary",et;var g})();class yt{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class St{constructor(n,s,u){this._httpClient=n,this._logger=s,this._pollAbort=new yt,this._options=u,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}connect(n,s){var u=this;return(0,_.Z)(function*(){if(X.isRequired(n,"url"),X.isRequired(s,"transferFormat"),X.isIn(s,et,"transferFormat"),u._url=n,u._logger.log(C.Trace,"(LongPolling transport) Connecting."),s===et.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[f,D]=Mt(),Y={[f]:D,...u._options.headers},P={abortSignal:u._pollAbort.signal,headers:Y,timeout:1e5,withCredentials:u._options.withCredentials};s===et.Binary&&(P.responseType="arraybuffer");const W=`${n}&_=${Date.now()}`;u._logger.log(C.Trace,`(LongPolling transport) polling: ${W}.`);const J=yield u._httpClient.get(W,P);200!==J.statusCode?(u._logger.log(C.Error,`(LongPolling transport) Unexpected response code: ${J.statusCode}.`),u._closeError=new Z(J.statusText||"",J.statusCode),u._running=!1):u._running=!0,u._receiving=u._poll(u._url,P)})()}_poll(n,s){var u=this;return(0,_.Z)(function*(){try{for(;u._running;)try{const f=`${n}&_=${Date.now()}`;u._logger.log(C.Trace,`(LongPolling transport) polling: ${f}.`);const D=yield u._httpClient.get(f,s);204===D.statusCode?(u._logger.log(C.Information,"(LongPolling transport) Poll terminated by server."),u._running=!1):200!==D.statusCode?(u._logger.log(C.Error,`(LongPolling transport) Unexpected response code: ${D.statusCode}.`),u._closeError=new Z(D.statusText||"",D.statusCode),u._running=!1):D.content?(u._logger.log(C.Trace,`(LongPolling transport) data received. ${it(D.content,u._options.logMessageContent)}.`),u.onreceive&&u.onreceive(D.content)):u._logger.log(C.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(f){u._running?f instanceof rt?u._logger.log(C.Trace,"(LongPolling transport) Poll timed out, reissuing."):(u._closeError=f,u._running=!1):u._logger.log(C.Trace,`(LongPolling transport) Poll errored after shutdown: ${f.message}`)}}finally{u._logger.log(C.Trace,"(LongPolling transport) Polling complete."),u.pollAborted||u._raiseOnClose()}})()}send(n){var s=this;return(0,_.Z)(function*(){return s._running?ht(s._logger,"LongPolling",s._httpClient,s._url,n,s._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){var n=this;return(0,_.Z)(function*(){n._logger.log(C.Trace,"(LongPolling transport) Stopping polling."),n._running=!1,n._pollAbort.abort();try{yield n._receiving,n._logger.log(C.Trace,`(LongPolling transport) sending DELETE request to ${n._url}.`);const s={},[u,f]=Mt();s[u]=f;const D={headers:{...s,...n._options.headers},timeout:n._options.timeout,withCredentials:n._options.withCredentials};yield n._httpClient.delete(n._url,D),n._logger.log(C.Trace,"(LongPolling transport) DELETE request sent.")}finally{n._logger.log(C.Trace,"(LongPolling transport) Stop finished."),n._raiseOnClose()}})()}_raiseOnClose(){if(this.onclose){let n="(LongPolling transport) Firing onclose event.";this._closeError&&(n+=" Error: "+this._closeError),this._logger.log(C.Trace,n),this.onclose(this._closeError)}}}class Vt{constructor(n,s,u,f){this._httpClient=n,this._accessToken=s,this._logger=u,this._options=f,this.onreceive=null,this.onclose=null}connect(n,s){var u=this;return(0,_.Z)(function*(){return X.isRequired(n,"url"),X.isRequired(s,"transferFormat"),X.isIn(s,et,"transferFormat"),u._logger.log(C.Trace,"(SSE transport) Connecting."),u._url=n,u._accessToken&&(n+=(n.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(u._accessToken)}`),new Promise((f,D)=>{let P,Y=!1;if(s===et.Text){if(k.isBrowser||k.isWebWorker)P=new u._options.EventSource(n,{withCredentials:u._options.withCredentials});else{const W=u._httpClient.getCookieString(n),J={};J.Cookie=W;const[nt,ut]=Mt();J[nt]=ut,P=new u._options.EventSource(n,{withCredentials:u._options.withCredentials,headers:{...J,...u._options.headers}})}try{P.onmessage=W=>{if(u.onreceive)try{u._logger.log(C.Trace,`(SSE transport) data received. ${it(W.data,u._options.logMessageContent)}.`),u.onreceive(W.data)}catch(J){return void u._close(J)}},P.onerror=W=>{Y?u._close():D(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},P.onopen=()=>{u._logger.log(C.Information,`SSE connected to ${u._url}`),u._eventSource=P,Y=!0,f()}}catch(W){return void D(W)}}else D(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})()}send(n){var s=this;return(0,_.Z)(function*(){return s._eventSource?ht(s._logger,"SSE",s._httpClient,s._url,n,s._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){return this._close(),Promise.resolve()}_close(n){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(n))}}class Gt{constructor(n,s,u,f,D,Y){this._logger=u,this._accessTokenFactory=s,this._logMessageContent=f,this._webSocketConstructor=D,this._httpClient=n,this.onreceive=null,this.onclose=null,this._headers=Y}connect(n,s){var u=this;return(0,_.Z)(function*(){let f;return X.isRequired(n,"url"),X.isRequired(s,"transferFormat"),X.isIn(s,et,"transferFormat"),u._logger.log(C.Trace,"(WebSockets transport) Connecting."),u._accessTokenFactory&&(f=yield u._accessTokenFactory()),new Promise((D,Y)=>{let P;n=n.replace(/^http/,"ws");const W=u._httpClient.getCookieString(n);let J=!1;if(k.isNode||k.isReactNative){const nt={},[ut,Jt]=Mt();nt[ut]=Jt,f&&(nt[i.Authorization]=`Bearer ${f}`),W&&(nt[i.Cookie]=W),P=new u._webSocketConstructor(n,void 0,{headers:{...nt,...u._headers}})}else f&&(n+=(n.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(f)}`);P||(P=new u._webSocketConstructor(n)),s===et.Binary&&(P.binaryType="arraybuffer"),P.onopen=nt=>{u._logger.log(C.Information,`WebSocket connected to ${n}.`),u._webSocket=P,J=!0,D()},P.onerror=nt=>{let ut=null;ut=typeof ErrorEvent<"u"&&nt instanceof ErrorEvent?nt.error:"There was an error with the transport",u._logger.log(C.Information,`(WebSockets transport) ${ut}.`)},P.onmessage=nt=>{if(u._logger.log(C.Trace,`(WebSockets transport) data received. ${it(nt.data,u._logMessageContent)}.`),u.onreceive)try{u.onreceive(nt.data)}catch(ut){return void u._close(ut)}},P.onclose=nt=>{if(J)u._close(nt);else{let ut=null;ut=typeof ErrorEvent<"u"&&nt instanceof ErrorEvent?nt.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",Y(new Error(ut))}}})})()}send(n){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(C.Trace,`(WebSockets transport) sending data. ${it(n,this._logMessageContent)}.`),this._webSocket.send(n),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(n){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(C.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(n)||!1!==n.wasClean&&1e3===n.code?n instanceof Error?this.onclose(n):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${n.code} (${n.reason||"no reason given"}).`)))}_isCloseEvent(n){return n&&"boolean"==typeof n.wasClean&&"number"==typeof n.code}}class zt{constructor(n,s={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,X.isRequired(n,"url"),this._logger=function xt(g){return void 0===g?new Dt(C.Information):null===g?Et.instance:void 0!==g.log?g:new Dt(g)}(s.logger),this.baseUrl=this._resolveUrl(n),(s=s||{}).logMessageContent=void 0!==s.logMessageContent&&s.logMessageContent,"boolean"!=typeof s.withCredentials&&void 0!==s.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");s.withCredentials=void 0===s.withCredentials||s.withCredentials,s.timeout=void 0===s.timeout?1e5:s.timeout;let u=null,f=null;if(k.isNode){const D=require;u=D("ws"),f=D("eventsource")}!k.isNode&&typeof WebSocket<"u"&&!s.WebSocket?s.WebSocket=WebSocket:k.isNode&&!s.WebSocket&&u&&(s.WebSocket=u),!k.isNode&&typeof EventSource<"u"&&!s.EventSource?s.EventSource=EventSource:k.isNode&&!s.EventSource&&typeof f<"u"&&(s.EventSource=f),this._httpClient=new B(s.httpClient||new N(this._logger),s.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=s,this.onreceive=null,this.onclose=null}start(n){var s=this;return(0,_.Z)(function*(){if(X.isIn(n=n||et.Binary,et,"transferFormat"),s._logger.log(C.Debug,`Starting connection with transfer format '${et[n]}'.`),"Disconnected"!==s._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(s._connectionState="Connecting",s._startInternalPromise=s._startInternal(n),yield s._startInternalPromise,"Disconnecting"===s._connectionState){const u="Failed to start the HttpConnection before stop() was called.";return s._logger.log(C.Error,u),yield s._stopPromise,Promise.reject(new st(u))}if("Connected"!==s._connectionState){const u="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return s._logger.log(C.Error,u),Promise.reject(new st(u))}s._connectionStarted=!0})()}send(n){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new at(this.transport)),this._sendQueue.send(n))}stop(n){var s=this;return(0,_.Z)(function*(){return"Disconnected"===s._connectionState?(s._logger.log(C.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===s._connectionState?(s._logger.log(C.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnecting state.`),s._stopPromise):(s._connectionState="Disconnecting",s._stopPromise=new Promise(u=>{s._stopPromiseResolver=u}),yield s._stopInternal(n),void(yield s._stopPromise))})()}_stopInternal(n){var s=this;return(0,_.Z)(function*(){s._stopError=n;try{yield s._startInternalPromise}catch{}if(s.transport){try{yield s.transport.stop()}catch(u){s._logger.log(C.Error,`HttpConnection.transport.stop() threw error '${u}'.`),s._stopConnection()}s.transport=void 0}else s._logger.log(C.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})()}_startInternal(n){var s=this;return(0,_.Z)(function*(){let u=s.baseUrl;s._accessTokenFactory=s._options.accessTokenFactory,s._httpClient._accessTokenFactory=s._accessTokenFactory;try{if(s._options.skipNegotiation){if(s._options.transport!==q.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");s.transport=s._constructTransport(q.WebSockets),yield s._startTransport(u,n)}else{let f=null,D=0;do{if(f=yield s._getNegotiationResponse(u),"Disconnecting"===s._connectionState||"Disconnected"===s._connectionState)throw new st("The connection was stopped during negotiation.");if(f.error)throw new Error(f.error);if(f.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(f.url&&(u=f.url),f.accessToken){const Y=f.accessToken;s._accessTokenFactory=()=>Y,s._httpClient._accessToken=Y,s._httpClient._accessTokenFactory=void 0}D++}while(f.url&&D<100);if(100===D&&f.url)throw new Error("Negotiate redirection limit exceeded.");yield s._createTransport(u,s._options.transport,f,n)}s.transport instanceof St&&(s.features.inherentKeepAlive=!0),"Connecting"===s._connectionState&&(s._logger.log(C.Debug,"The HttpConnection connected successfully."),s._connectionState="Connected")}catch(f){return s._logger.log(C.Error,"Failed to start the connection: "+f),s._connectionState="Disconnected",s.transport=void 0,s._stopPromiseResolver(),Promise.reject(f)}})()}_getNegotiationResponse(n){var s=this;return(0,_.Z)(function*(){const u={},[f,D]=Mt();u[f]=D;const Y=s._resolveNegotiateUrl(n);s._logger.log(C.Debug,`Sending negotiation request: ${Y}.`);try{const P=yield s._httpClient.post(Y,{content:"",headers:{...u,...s._options.headers},timeout:s._options.timeout,withCredentials:s._options.withCredentials});if(200!==P.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${P.statusCode}'`));const W=JSON.parse(P.content);return(!W.negotiateVersion||W.negotiateVersion<1)&&(W.connectionToken=W.connectionId),W}catch(P){let W="Failed to complete negotiation with the server: "+P;return P instanceof Z&&404===P.statusCode&&(W+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),s._logger.log(C.Error,W),Promise.reject(new dt(W))}})()}_createConnectUrl(n,s){return s?n+(-1===n.indexOf("?")?"?":"&")+`id=${s}`:n}_createTransport(n,s,u,f){var D=this;return(0,_.Z)(function*(){let Y=D._createConnectUrl(n,u.connectionToken);if(D._isITransport(s))return D._logger.log(C.Debug,"Connection was provided an instance of ITransport, using that directly."),D.transport=s,yield D._startTransport(Y,f),void(D.connectionId=u.connectionId);const P=[],W=u.availableTransports||[];let J=u;for(const nt of W){const ut=D._resolveTransportOrError(nt,s,f);if(ut instanceof Error)P.push(`${nt.transport} failed:`),P.push(ut);else if(D._isITransport(ut)){if(D.transport=ut,!J){try{J=yield D._getNegotiationResponse(n)}catch(Jt){return Promise.reject(Jt)}Y=D._createConnectUrl(n,J.connectionToken)}try{return yield D._startTransport(Y,f),void(D.connectionId=J.connectionId)}catch(Jt){if(D._logger.log(C.Error,`Failed to start the transport '${nt.transport}': ${Jt}`),J=void 0,P.push(new ft(`${nt.transport} failed: ${Jt}`,q[nt.transport])),"Connecting"!==D._connectionState){const oe="Failed to select transport before stop() was called.";return D._logger.log(C.Debug,oe),Promise.reject(new st(oe))}}}}return Promise.reject(P.length>0?new ct(`Unable to connect to the server with any of the available transports. ${P.join(" ")}`,P):new Error("None of the transports supported by the client are supported by the server."))})()}_constructTransport(n){switch(n){case q.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Gt(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case q.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Vt(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case q.LongPolling:return new St(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${n}.`)}}_startTransport(n,s){return this.transport.onreceive=this.onreceive,this.transport.onclose=u=>this._stopConnection(u),this.transport.connect(n,s)}_resolveTransportOrError(n,s,u){const f=q[n.transport];if(null==f)return this._logger.log(C.Debug,`Skipping transport '${n.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${n.transport}' because it is not supported by this client.`);if(!function Q(g,n){return!g||0!=(n&g)}(s,f))return this._logger.log(C.Debug,`Skipping transport '${q[f]}' because it was disabled by the client.`),new L(`'${q[f]}' is disabled by the client.`,f);if(!(n.transferFormats.map(Y=>et[Y]).indexOf(u)>=0))return this._logger.log(C.Debug,`Skipping transport '${q[f]}' because it does not support the requested transfer format '${et[u]}'.`),new Error(`'${q[f]}' does not support ${et[u]}.`);if(f===q.WebSockets&&!this._options.WebSocket||f===q.ServerSentEvents&&!this._options.EventSource)return this._logger.log(C.Debug,`Skipping transport '${q[f]}' because it is not supported in your environment.'`),new bt(`'${q[f]}' is not supported in your environment.`,f);this._logger.log(C.Debug,`Selecting transport '${q[f]}'.`);try{return this._constructTransport(f)}catch(Y){return Y}}_isITransport(n){return n&&"object"==typeof n&&"connect"in n}_stopConnection(n){if(this._logger.log(C.Debug,`HttpConnection.stopConnection(${n}) called while in state ${this._connectionState}.`),this.transport=void 0,n=this._stopError||n,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(C.Warning,`Call to HttpConnection.stopConnection(${n}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${n}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),n?this._logger.log(C.Error,`Connection disconnected with error '${n}'.`):this._logger.log(C.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(s=>{this._logger.log(C.Error,`TransportSendQueue.stop() threw error '${s}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(n)}catch(s){this._logger.log(C.Error,`HttpConnection.onclose(${n}) threw error '${s}'.`)}}}else this._logger.log(C.Debug,`Call to HttpConnection.stopConnection(${n}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(n){if(0===n.lastIndexOf("https://",0)||0===n.lastIndexOf("http://",0))return n;if(!k.isBrowser)throw new Error(`Cannot resolve '${n}'.`);const s=window.document.createElement("a");return s.href=n,this._logger.log(C.Information,`Normalizing '${n}' to '${s.href}'.`),s.href}_resolveNegotiateUrl(n){const s=n.indexOf("?");let u=n.substring(0,-1===s?n.length:s);return"/"!==u[u.length-1]&&(u+="/"),u+="negotiate",u+=-1===s?"":n.substring(s),-1===u.indexOf("negotiateVersion")&&(u+=-1===s?"?":"&",u+="negotiateVersion="+this._negotiateVersion),u}}class at{constructor(n){this._transport=n,this._buffer=[],this._executing=!0,this._sendBufferedData=new x,this._transportResult=new x,this._sendLoopPromise=this._sendLoop()}send(n){return this._bufferData(n),this._transportResult||(this._transportResult=new x),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(n){if(this._buffer.length&&typeof this._buffer[0]!=typeof n)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof n}`);this._buffer.push(n),this._sendBufferedData.resolve()}_sendLoop(){var n=this;return(0,_.Z)(function*(){for(;;){if(yield n._sendBufferedData.promise,!n._executing){n._transportResult&&n._transportResult.reject("Connection stopped.");break}n._sendBufferedData=new x;const s=n._transportResult;n._transportResult=void 0;const u="string"==typeof n._buffer[0]?n._buffer.join(""):at._concatBuffers(n._buffer);n._buffer.length=0;try{yield n._transport.send(u),s.resolve()}catch(f){s.reject(f)}}})()}static _concatBuffers(n){const s=n.map(D=>D.byteLength).reduce((D,Y)=>D+Y),u=new Uint8Array(s);let f=0;for(const D of n)u.set(new Uint8Array(D),f),f+=D.byteLength;return u.buffer}}class x{constructor(){this.promise=new Promise((n,s)=>[this._resolver,this._rejecter]=[n,s])}resolve(){this._resolver()}reject(n){this._rejecter(n)}}class A{static write(n){return`${n}${A.RecordSeparator}`}static parse(n){if(n[n.length-1]!==A.RecordSeparator)throw new Error("Message is incomplete.");const s=n.split(A.RecordSeparator);return s.pop(),s}}A.RecordSeparatorCode=30,A.RecordSeparator=String.fromCharCode(A.RecordSeparatorCode);class tt{writeHandshakeRequest(n){return A.write(JSON.stringify(n))}parseHandshakeResponse(n){let s,u;if(V(n)){const P=new Uint8Array(n),W=P.indexOf(A.RecordSeparatorCode);if(-1===W)throw new Error("Message is incomplete.");const J=W+1;s=String.fromCharCode.apply(null,Array.prototype.slice.call(P.slice(0,J))),u=P.byteLength>J?P.slice(J).buffer:null}else{const P=n,W=P.indexOf(A.RecordSeparator);if(-1===W)throw new Error("Message is incomplete.");const J=W+1;s=P.substring(0,J),u=P.length>J?P.substring(J):null}const f=A.parse(s),D=JSON.parse(f[0]);if(D.type)throw new Error("Expected a handshake response from the server.");return[u,D]}}var U=(()=>{return(g=U||(U={}))[g.Invocation=1]="Invocation",g[g.StreamItem=2]="StreamItem",g[g.Completion=3]="Completion",g[g.StreamInvocation=4]="StreamInvocation",g[g.CancelInvocation=5]="CancelInvocation",g[g.Ping=6]="Ping",g[g.Close=7]="Close",U;var g})();class _t{constructor(){this.observers=[]}next(n){for(const s of this.observers)s.next(n)}error(n){for(const s of this.observers)s.error&&s.error(n)}complete(){for(const n of this.observers)n.complete&&n.complete()}subscribe(n){return this.observers.push(n),new At(this,n)}}var ot=(()=>{return(g=ot||(ot={})).Disconnected="Disconnected",g.Connecting="Connecting",g.Connected="Connected",g.Disconnecting="Disconnecting",g.Reconnecting="Reconnecting",ot;var g})();class Yt{constructor(n,s,u,f){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(C.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},X.isRequired(n,"connection"),X.isRequired(s,"logger"),X.isRequired(u,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this._logger=s,this._protocol=u,this.connection=n,this._reconnectPolicy=f,this._handshakeProtocol=new tt,this.connection.onreceive=D=>this._processIncomingData(D),this.connection.onclose=D=>this._connectionClosed(D),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=ot.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:U.Ping})}static create(n,s,u,f){return new Yt(n,s,u,f)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(n){if(this._connectionState!==ot.Disconnected&&this._connectionState!==ot.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!n)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=n}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){var n=this;return(0,_.Z)(function*(){if(n._connectionState!==ot.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));n._connectionState=ot.Connecting,n._logger.log(C.Debug,"Starting HubConnection.");try{yield n._startInternal(),k.isBrowser&&window.document.addEventListener("freeze",n._freezeEventListener),n._connectionState=ot.Connected,n._connectionStarted=!0,n._logger.log(C.Debug,"HubConnection connected successfully.")}catch(s){return n._connectionState=ot.Disconnected,n._logger.log(C.Debug,`HubConnection failed to start successfully because of error '${s}'.`),Promise.reject(s)}})()}_startInternal(){var n=this;return(0,_.Z)(function*(){n._stopDuringStartError=void 0,n._receivedHandshakeResponse=!1;const s=new Promise((u,f)=>{n._handshakeResolver=u,n._handshakeRejecter=f});yield n.connection.start(n._protocol.transferFormat);try{const u={protocol:n._protocol.name,version:n._protocol.version};if(n._logger.log(C.Debug,"Sending handshake request."),yield n._sendMessage(n._handshakeProtocol.writeHandshakeRequest(u)),n._logger.log(C.Information,`Using HubProtocol '${n._protocol.name}'.`),n._cleanupTimeout(),n._resetTimeoutPeriod(),n._resetKeepAliveInterval(),yield s,n._stopDuringStartError)throw n._stopDuringStartError;n.connection.features.inherentKeepAlive||(yield n._sendMessage(n._cachedPingMessage))}catch(u){throw n._logger.log(C.Debug,`Hub handshake failed with error '${u}' during start(). Stopping HubConnection.`),n._cleanupTimeout(),n._cleanupPingTimer(),yield n.connection.stop(u),u}})()}stop(){var n=this;return(0,_.Z)(function*(){const s=n._startPromise;n._stopPromise=n._stopInternal(),yield n._stopPromise;try{yield s}catch{}})()}_stopInternal(n){return this._connectionState===ot.Disconnected?(this._logger.log(C.Debug,`Call to HubConnection.stop(${n}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===ot.Disconnecting?(this._logger.log(C.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=ot.Disconnecting,this._logger.log(C.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(C.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=n||new st("The connection was stopped before the hub handshake could complete."),this.connection.stop(n)))}stream(n,...s){const[u,f]=this._replaceStreamingParams(s),D=this._createStreamInvocation(n,s,f);let Y;const P=new _t;return P.cancelCallback=()=>{const W=this._createCancelInvocation(D.invocationId);return delete this._callbacks[D.invocationId],Y.then(()=>this._sendWithProtocol(W))},this._callbacks[D.invocationId]=(W,J)=>{J?P.error(J):W&&(W.type===U.Completion?W.error?P.error(new Error(W.error)):P.complete():P.next(W.item))},Y=this._sendWithProtocol(D).catch(W=>{P.error(W),delete this._callbacks[D.invocationId]}),this._launchStreams(u,Y),P}_sendMessage(n){return this._resetKeepAliveInterval(),this.connection.send(n)}_sendWithProtocol(n){return this._sendMessage(this._protocol.writeMessage(n))}send(n,...s){const[u,f]=this._replaceStreamingParams(s),D=this._sendWithProtocol(this._createInvocation(n,s,!0,f));return this._launchStreams(u,D),D}invoke(n,...s){const[u,f]=this._replaceStreamingParams(s),D=this._createInvocation(n,s,!1,f);return new Promise((P,W)=>{this._callbacks[D.invocationId]=(nt,ut)=>{ut?W(ut):nt&&(nt.type===U.Completion?nt.error?W(new Error(nt.error)):P(nt.result):W(new Error(`Unexpected message type: ${nt.type}`)))};const J=this._sendWithProtocol(D).catch(nt=>{W(nt),delete this._callbacks[D.invocationId]});this._launchStreams(u,J)})}on(n,s){!n||!s||(n=n.toLowerCase(),this._methods[n]||(this._methods[n]=[]),-1===this._methods[n].indexOf(s)&&this._methods[n].push(s))}off(n,s){if(!n)return;n=n.toLowerCase();const u=this._methods[n];if(u)if(s){const f=u.indexOf(s);-1!==f&&(u.splice(f,1),0===u.length&&delete this._methods[n])}else delete this._methods[n]}onclose(n){n&&this._closedCallbacks.push(n)}onreconnecting(n){n&&this._reconnectingCallbacks.push(n)}onreconnected(n){n&&this._reconnectedCallbacks.push(n)}_processIncomingData(n){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(n=this._processHandshakeResponse(n),this._receivedHandshakeResponse=!0),n){const s=this._protocol.parseMessages(n,this._logger);for(const u of s)switch(u.type){case U.Invocation:this._invokeClientMethod(u);break;case U.StreamItem:case U.Completion:{const f=this._callbacks[u.invocationId];if(f){u.type===U.Completion&&delete this._callbacks[u.invocationId];try{f(u)}catch(D){this._logger.log(C.Error,`Stream callback threw error: ${wt(D)}`)}}break}case U.Ping:break;case U.Close:{this._logger.log(C.Information,"Close message received from server.");const f=u.error?new Error("Server returned an error on close: "+u.error):void 0;!0===u.allowReconnect?this.connection.stop(f):this._stopPromise=this._stopInternal(f);break}default:this._logger.log(C.Warning,`Invalid message type: ${u.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(n){let s,u;try{[u,s]=this._handshakeProtocol.parseHandshakeResponse(n)}catch(f){const D="Error parsing handshake response: "+f;this._logger.log(C.Error,D);const Y=new Error(D);throw this._handshakeRejecter(Y),Y}if(s.error){const f="Server returned handshake error: "+s.error;this._logger.log(C.Error,f);const D=new Error(f);throw this._handshakeRejecter(D),D}return this._logger.log(C.Debug,"Server handshake complete."),this._handshakeResolver(),u}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){var n=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let s=this._nextKeepAlive-(new Date).getTime();s<0&&(s=0),this._pingServerHandle=setTimeout((0,_.Z)(function*(){if(n._connectionState===ot.Connected)try{yield n._sendMessage(n._cachedPingMessage)}catch{n._cleanupPingTimer()}}),s)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(n){var s=this;return(0,_.Z)(function*(){const u=n.target.toLowerCase(),f=s._methods[u];if(!f)return s._logger.log(C.Warning,`No client method with the name '${u}' found.`),void(n.invocationId&&(s._logger.log(C.Warning,`No result given for '${u}' method and invocation ID '${n.invocationId}'.`),yield s._sendWithProtocol(s._createCompletionMessage(n.invocationId,"Client didn't provide a result.",null))));const D=f.slice(),Y=!!n.invocationId;let P,W,J;for(const nt of D)try{const ut=P;P=yield nt.apply(s,n.arguments),Y&&P&&ut&&(s._logger.log(C.Error,`Multiple results provided for '${u}'. Sending error to server.`),J=s._createCompletionMessage(n.invocationId,"Client provided multiple results.",null)),W=void 0}catch(ut){W=ut,s._logger.log(C.Error,`A callback for the method '${u}' threw error '${ut}'.`)}J?yield s._sendWithProtocol(J):Y?(W?J=s._createCompletionMessage(n.invocationId,`${W}`,null):void 0!==P?J=s._createCompletionMessage(n.invocationId,null,P):(s._logger.log(C.Warning,`No result given for '${u}' method and invocation ID '${n.invocationId}'.`),J=s._createCompletionMessage(n.invocationId,"Client didn't provide a result.",null)),yield s._sendWithProtocol(J)):P&&s._logger.log(C.Error,`Result given for '${u}' method but server is not expecting a result.`)})()}_connectionClosed(n){this._logger.log(C.Debug,`HubConnection.connectionClosed(${n}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||n||new st("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(n||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===ot.Disconnecting?this._completeClose(n):this._connectionState===ot.Connected&&this._reconnectPolicy?this._reconnect(n):this._connectionState===ot.Connected&&this._completeClose(n)}_completeClose(n){if(this._connectionStarted){this._connectionState=ot.Disconnected,this._connectionStarted=!1,k.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(s=>s.apply(this,[n]))}catch(s){this._logger.log(C.Error,`An onclose callback called with error '${n}' threw error '${s}'.`)}}}_reconnect(n){var s=this;return(0,_.Z)(function*(){const u=Date.now();let f=0,D=void 0!==n?n:new Error("Attempting to reconnect due to a unknown error."),Y=s._getNextRetryDelay(f++,0,D);if(null===Y)return s._logger.log(C.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void s._completeClose(n);if(s._connectionState=ot.Reconnecting,s._logger.log(C.Information,n?`Connection reconnecting because of error '${n}'.`:"Connection reconnecting."),0!==s._reconnectingCallbacks.length){try{s._reconnectingCallbacks.forEach(P=>P.apply(s,[n]))}catch(P){s._logger.log(C.Error,`An onreconnecting callback called with error '${n}' threw error '${P}'.`)}if(s._connectionState!==ot.Reconnecting)return void s._logger.log(C.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==Y;){if(s._logger.log(C.Information,`Reconnect attempt number ${f} will start in ${Y} ms.`),yield new Promise(P=>{s._reconnectDelayHandle=setTimeout(P,Y)}),s._reconnectDelayHandle=void 0,s._connectionState!==ot.Reconnecting)return void s._logger.log(C.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield s._startInternal(),s._connectionState=ot.Connected,s._logger.log(C.Information,"HubConnection reconnected successfully."),0!==s._reconnectedCallbacks.length)try{s._reconnectedCallbacks.forEach(P=>P.apply(s,[s.connection.connectionId]))}catch(P){s._logger.log(C.Error,`An onreconnected callback called with connectionId '${s.connection.connectionId}; threw error '${P}'.`)}return}catch(P){if(s._logger.log(C.Information,`Reconnect attempt failed because of error '${P}'.`),s._connectionState!==ot.Reconnecting)return s._logger.log(C.Debug,`Connection moved to the '${s._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(s._connectionState===ot.Disconnecting&&s._completeClose());D=P instanceof Error?P:new Error(P.toString()),Y=s._getNextRetryDelay(f++,Date.now()-u,D)}}s._logger.log(C.Information,`Reconnect retries have been exhausted after ${Date.now()-u} ms and ${f} failed attempts. Connection disconnecting.`),s._completeClose()})()}_getNextRetryDelay(n,s,u){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:s,previousRetryCount:n,retryReason:u})}catch(f){return this._logger.log(C.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${n}, ${s}) threw error '${f}'.`),null}}_cancelCallbacksWithError(n){const s=this._callbacks;this._callbacks={},Object.keys(s).forEach(u=>{const f=s[u];try{f(null,n)}catch(D){this._logger.log(C.Error,`Stream 'error' callback called with '${n}' threw error: ${wt(D)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(n,s,u,f){if(u)return 0!==f.length?{arguments:s,streamIds:f,target:n,type:U.Invocation}:{arguments:s,target:n,type:U.Invocation};{const D=this._invocationId;return this._invocationId++,0!==f.length?{arguments:s,invocationId:D.toString(),streamIds:f,target:n,type:U.Invocation}:{arguments:s,invocationId:D.toString(),target:n,type:U.Invocation}}}_launchStreams(n,s){if(0!==n.length){s||(s=Promise.resolve());for(const u in n)n[u].subscribe({complete:()=>{s=s.then(()=>this._sendWithProtocol(this._createCompletionMessage(u)))},error:f=>{let D;D=f instanceof Error?f.message:f&&f.toString?f.toString():"Unknown error",s=s.then(()=>this._sendWithProtocol(this._createCompletionMessage(u,D)))},next:f=>{s=s.then(()=>this._sendWithProtocol(this._createStreamItemMessage(u,f)))}})}}_replaceStreamingParams(n){const s=[],u=[];for(let f=0;f<n.length;f++){const D=n[f];if(this._isObservable(D)){const Y=this._invocationId;this._invocationId++,s[Y]=D,u.push(Y.toString()),n.splice(f,1)}}return[s,u]}_isObservable(n){return n&&n.subscribe&&"function"==typeof n.subscribe}_createStreamInvocation(n,s,u){const f=this._invocationId;return this._invocationId++,0!==u.length?{arguments:s,invocationId:f.toString(),streamIds:u,target:n,type:U.StreamInvocation}:{arguments:s,invocationId:f.toString(),target:n,type:U.StreamInvocation}}_createCancelInvocation(n){return{invocationId:n,type:U.CancelInvocation}}_createStreamItemMessage(n,s){return{invocationId:n,item:s,type:U.StreamItem}}_createCompletionMessage(n,s,u){return s?{error:s,invocationId:n,type:U.Completion}:{invocationId:n,result:u,type:U.Completion}}}class Qt{constructor(){this.name="json",this.version=1,this.transferFormat=et.Text}parseMessages(n,s){if("string"!=typeof n)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!n)return[];null===s&&(s=Et.instance);const u=A.parse(n),f=[];for(const D of u){const Y=JSON.parse(D);if("number"!=typeof Y.type)throw new Error("Invalid payload.");switch(Y.type){case U.Invocation:this._isInvocationMessage(Y);break;case U.StreamItem:this._isStreamItemMessage(Y);break;case U.Completion:this._isCompletionMessage(Y);break;case U.Ping:case U.Close:break;default:s.log(C.Information,"Unknown message type '"+Y.type+"' ignored.");continue}f.push(Y)}return f}writeMessage(n){return A.write(JSON.stringify(n))}_isInvocationMessage(n){this._assertNotEmptyString(n.target,"Invalid payload for Invocation message."),void 0!==n.invocationId&&this._assertNotEmptyString(n.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(n){if(this._assertNotEmptyString(n.invocationId,"Invalid payload for StreamItem message."),void 0===n.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(n){if(n.result&&n.error)throw new Error("Invalid payload for Completion message.");!n.result&&n.error&&this._assertNotEmptyString(n.error,"Invalid payload for Completion message."),this._assertNotEmptyString(n.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(n,s){if("string"!=typeof n||""===n)throw new Error(s)}}const Ft={trace:C.Trace,debug:C.Debug,info:C.Information,information:C.Information,warn:C.Warning,warning:C.Warning,error:C.Error,critical:C.Critical,none:C.None};class ee{configureLogging(n){if(X.isRequired(n,"logging"),function ne(g){return void 0!==g.log}(n))this.logger=n;else if("string"==typeof n){const s=function Xt(g){const n=Ft[g.toLowerCase()];if(typeof n<"u")return n;throw new Error(`Unknown log level: ${g}`)}(n);this.logger=new Dt(s)}else this.logger=new Dt(n);return this}withUrl(n,s){return X.isRequired(n,"url"),X.isNotEmpty(n,"url"),this.url=n,this.httpConnectionOptions="object"==typeof s?{...this.httpConnectionOptions,...s}:{...this.httpConnectionOptions,transport:s},this}withHubProtocol(n){return X.isRequired(n,"protocol"),this.protocol=n,this}withAutomaticReconnect(n){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=n?Array.isArray(n)?new z(n):n:new z,this}build(){const n=this.httpConnectionOptions||{};if(void 0===n.logger&&(n.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const s=new zt(this.url,n);return Yt.create(s,this.logger||Et.instance,this.protocol||new Qt,this.reconnectPolicy)}}var T=a(77579),G=a(94650),b=a(97185);let F=(()=>{class g{constructor(s){(0,e.Z)(this,"toastr",void 0),(0,e.Z)(this,"lastGroupID",void 0),(0,e.Z)(this,"OnPaymentReceived",new T.x),(0,e.Z)(this,"OnReceivePushNotification",new T.x),(0,e.Z)(this,"OnContactReceive",new T.x),(0,e.Z)(this,"socketConnection",void 0),this.toastr=s,this.socketConnection=(new ee).withUrl("/POSHub").withAutomaticReconnect().configureLogging(C.Information).build()}SubscribeGroup(s,u=null){s!=this.lastGroupID&&(this.socketConnection.state==ot.Disconnected?this.socketConnection.start().then(()=>{this.invokeSubscribe(s,u),this.registerEventHandler()}).catch(f=>{this.toastr.error(f,"Error")}):this.invokeSubscribe(s,u))}invokeSubscribe(s,u){this.socketConnection.invoke("SubscribeGroup",{CurrentID:s,PreviousID:u}).then(()=>{this.lastGroupID=s})}registerEventHandler(){this.socketConnection.on("ReceiveMobilePaymentSignal",s=>{this.OnPaymentReceived.next(s)}),this.socketConnection.on("OnContactReceive",s=>{this.OnContactReceive.next(s)}),this.socketConnection.on("ReceiveNewPromotionSignal",s=>{}),this.socketConnection.on("ReceivePushNotificationSignal",s=>{this.OnReceivePushNotification.next(s)})}Broadcast(s){null!=this.socketConnection&&null!=this.socketConnection.connectionId&&this.socketConnection.invoke("BroadCast",s).catch(u=>{console.error(u),this.toastr.error(u,"Error")})}}return(0,e.Z)(g,"\u0275fac",function(s){return new(s||g)(G.LFG(b._W))}),(0,e.Z)(g,"\u0275prov",G.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"})),g})()},35078:($t,Ct,a)=>{a.d(Ct,{g:()=>_});var e=a(81180),R=a(61135),z=a(94650);let _=(()=>{class i{toggleSidebar(){this._toggleState.next(!this._toggleState.value)}constructor(){(0,e.Z)(this,"_toggleState",new R.X(!1)),(0,e.Z)(this,"toggleState$",this._toggleState.asObservable())}}return(0,e.Z)(i,"\u0275fac",function(lt){return new(lt||i)}),(0,e.Z)(i,"\u0275prov",z.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})),i})()},91005:($t,Ct,a)=>{a.d(Ct,{g:()=>L});var e=a(34986),R=a(97272),z=a(95698),_=a(54482),i=a(25403),$=a(25032),B=a(69718),Z=a(95577),rt=a(38421);function st(ft,dt){return dt?ct=>(0,R.z)(dt.pipe((0,z.q)(1),function lt(){return(0,_.e)((ft,dt)=>{ft.subscribe((0,i.x)(dt,$.Z))})}()),ct.pipe(st(ft))):(0,Z.z)((ct,C)=>(0,rt.Xf)(ft(ct,C)).pipe((0,z.q)(1),(0,B.h)(ct)))}var bt=a(82805);function L(ft,dt=e.z){const ct=(0,bt.H)(ft,dt);return st(()=>ct)}},47957:($t,Ct,a)=>{a.d(Ct,{Bb:()=>zt,XC:()=>I,ZL:()=>kt});var e=a(94650),R=a(3238),z=a(36895),_=a(67376),i=a(98184),$=a(12693),lt=a(21281),B=a(83353),Z=a(37340),rt=a(50727),st=a(77579),bt=a(49770),L=a(56451),ft=a(39646),dt=a(54968),ct=a(29521),C=a(84080),Et=a(24006),gt=a(59549),X=a(68675),k=a(63900),it=a(95698),O=a(39300),V=a(54004),ht=a(18505),vt=a(91005),xt=a(40445);const At=["panel"];function Dt(Q,at){if(1&Q&&(e.TgZ(0,"div",0,1),e.Hsn(2),e.qZA()),2&Q){const x=at.id,A=e.oxw();e.Q6J("id",A.id)("ngClass",A._classList)("@panelAnimation",A.isOpen?"visible":"hidden"),e.uIk("aria-label",A.ariaLabel||null)("aria-labelledby",A._getPanelAriaLabelledby(x))}}const Mt=["*"],Bt=(0,Z.X$)("panelAnimation",[(0,Z.SB)("void, hidden",(0,Z.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,Z.eR)(":enter, hidden => visible",[(0,Z.ru)([(0,Z.jt)("0.03s linear",(0,Z.oB)({opacity:1})),(0,Z.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,Z.oB)({transform:"scaleY(1)"}))])]),(0,Z.eR)(":leave, visible => hidden",[(0,Z.jt)("0.075s linear",(0,Z.oB)({opacity:0}))])]);let Lt=0;class Pt{constructor(at,x){this.source=at,this.option=x}}const Rt=(0,R.Kr)(class{}),wt=new e.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function E(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let j=(()=>{class Q extends Rt{get isOpen(){return this._isOpen&&this.showPanel}_setColor(x){this._color=x,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(x){this._autoActiveFirstOption=(0,lt.Ig)(x)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(x){this._autoSelectActiveOption=(0,lt.Ig)(x)}set classList(x){this._classList=x&&x.length?(0,lt.du)(x).reduce((A,tt)=>(A[tt]=!0,A),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(x,A,tt,U){super(),this._changeDetectorRef=x,this._elementRef=A,this._defaults=tt,this._activeOptionChanges=rt.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new e.vpe,this.opened=new e.vpe,this.closed=new e.vpe,this.optionActivated=new e.vpe,this._classList={},this.id="mat-autocomplete-"+Lt++,this.inertGroups=U?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new $.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(x=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[x]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(x){this.panel&&(this.panel.nativeElement.scrollTop=x)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(x){const A=new Pt(this,x);this.optionSelected.emit(A)}_getPanelAriaLabelledby(x){return this.ariaLabel?null:this.ariaLabelledby?(x?x+" ":"")+this.ariaLabelledby:x}_setVisibilityClasses(x){x[this._visibleClass]=this.showPanel,x[this._hiddenClass]=!this.showPanel}_setThemeClasses(x){x["mat-primary"]="primary"===this._color,x["mat-warn"]="warn"===this._color,x["mat-accent"]="accent"===this._color}}return Q.\u0275fac=function(x){return new(x||Q)(e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(wt),e.Y36(B.t4))},Q.\u0275dir=e.lG2({type:Q,viewQuery:function(x,A){if(1&x&&(e.Gf(e.Rgc,7),e.Gf(At,5)),2&x){let tt;e.iGM(tt=e.CRH())&&(A.template=tt.first),e.iGM(tt=e.CRH())&&(A.panel=tt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[e.qOj]}),Q})(),I=(()=>{class Q extends j{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(x){this._hideSingleSelectionIndicator=(0,lt.Ig)(x),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const x of this.options)x._changeDetectorRef.markForCheck()}}return Q.\u0275fac=function(){let at;return function(A){return(at||(at=e.n5z(Q)))(A||Q)}}(),Q.\u0275cmp=e.Xpm({type:Q,selectors:[["mat-autocomplete"]],contentQueries:function(x,A,tt){if(1&x&&(e.Suo(tt,R.K7,5),e.Suo(tt,R.ey,5)),2&x){let U;e.iGM(U=e.CRH())&&(A.optionGroups=U),e.iGM(U=e.CRH())&&(A.options=U)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[e._Bn([{provide:R.HF,useExisting:Q}]),e.qOj],ngContentSelectors:Mt,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(x,A){1&x&&(e.F$t(),e.YNc(0,Dt,3,5,"ng-template"))},dependencies:[z.mk],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Bt]},changeDetection:0}),Q})();const q={provide:Et.JU,useExisting:(0,e.Gpc)(()=>kt),multi:!0},yt=new e.OlP("mat-autocomplete-scroll-strategy"),Vt={provide:yt,deps:[i.aV],useFactory:function St(Q){return()=>Q.scrollStrategies.reposition()}};let Gt=(()=>{class Q{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(x){this._autocompleteDisabled=(0,lt.Ig)(x)}constructor(x,A,tt,U,_t,Kt,pt,ot,Yt,Ht,Qt){this._element=x,this._overlay=A,this._viewContainerRef=tt,this._zone=U,this._changeDetectorRef=_t,this._dir=pt,this._formField=ot,this._document=Yt,this._viewportRuler=Ht,this._defaults=Qt,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=rt.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new st.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,bt.P)(()=>{const Ft=this.autocomplete?this.autocomplete.options:null;return Ft?Ft.changes.pipe((0,X.O)(Ft),(0,k.w)(()=>(0,L.T)(...Ft.map(Xt=>Xt.onSelectionChange)))):this._zone.onStable.pipe((0,it.q)(1),(0,k.w)(()=>this.optionSelections))}),this._scrollStrategy=Kt}ngAfterViewInit(){const x=this._getWindow();typeof x<"u"&&this._zone.runOutsideAngular(()=>x.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(x){x.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const x=this._getWindow();typeof x<"u"&&x.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,L.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,O.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,O.h)(()=>this._overlayAttached)):(0,ft.of)()).pipe((0,V.U)(x=>x instanceof R.rN?x:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,L.T)((0,dt.R)(this._document,"click"),(0,dt.R)(this._document,"auxclick"),(0,dt.R)(this._document,"touchend")).pipe((0,O.h)(x=>{const A=(0,B.sA)(x),tt=this._formField?this._formField._elementRef.nativeElement:null,U=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&A!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!tt||!tt.contains(A))&&(!U||!U.contains(A))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(A)}))}writeValue(x){Promise.resolve(null).then(()=>this._assignOptionValue(x))}registerOnChange(x){this._onChange=x}registerOnTouched(x){this._onTouched=x}setDisabledState(x){this._element.nativeElement.disabled=x}_handleKeydown(x){const A=x.keyCode,tt=(0,ct.Vb)(x);if(A===ct.hY&&!tt&&x.preventDefault(),this.activeOption&&A===ct.K5&&this.panelOpen&&!tt)this.activeOption._selectViaInteraction(),this._resetActiveItem(),x.preventDefault();else if(this.autocomplete){const U=this.autocomplete._keyManager.activeItem,_t=A===ct.LH||A===ct.JH;A===ct.Mf||_t&&!tt&&this.panelOpen?this.autocomplete._keyManager.onKeydown(x):_t&&this._canOpen()&&this.openPanel(),(_t||this.autocomplete._keyManager.activeItem!==U)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(x){let A=x.target,tt=A.value;"number"===A.type&&(tt=""==tt?null:parseFloat(tt)),this._previousValue!==tt&&(this._previousValue=tt,this._pendingAutoselectedOption=null,this._onChange(tt),this._canOpen()&&this._document.activeElement===x.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(x=!1){this._formField&&"auto"===this._formField.floatLabel&&(x?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const x=this._zone.onStable.pipe((0,it.q)(1)),A=this.autocomplete.options.changes.pipe((0,ht.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,vt.g)(0));return(0,L.T)(x,A).pipe((0,k.w)(()=>(this._zone.run(()=>{const tt=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),tt!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,it.q)(1)).subscribe(tt=>this._setValueAndClose(tt))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(x){const A=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(x):x;this._updateNativeInputValue(A??"")}_updateNativeInputValue(x){this._formField?this._formField._control.value=x:this._element.nativeElement.value=x,this._previousValue=x}_setValueAndClose(x){const A=x?x.source:this._pendingAutoselectedOption;A&&(this._clearPreviousSelectedOption(A),this._assignOptionValue(A.value),this._onChange(A.value),this.autocomplete._emitSelectEvent(A),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(x){this.autocomplete.options.forEach(A=>{A!==x&&A.selected&&A.deselect()})}_attachOverlay(){let x=this._overlayRef;x?(this._positionStrategy.setOrigin(this._getConnectedElement()),x.updateSize({width:this._getPanelWidth()})):(this._portal=new C.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),x=this._overlay.create(this._getOverlayConfig()),this._overlayRef=x,this._handleOverlayEvents(x),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&x&&x.updateSize({width:this._getPanelWidth()})})),x&&!x.hasAttached()&&(x.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const A=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&A!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new i.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const x=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(x),this._positionStrategy=x,x}_setStrategyPositions(x){const A=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],tt=this._aboveClass,U=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:tt},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:tt}];let _t;_t="above"===this.position?U:"below"===this.position?A:[...A,...U],x.withPositions(_t)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const x=this.autocomplete;x.autoActiveFirstOption?x._keyManager.setFirstItemActive():x._keyManager.setActiveItem(-1)}_canOpen(){const x=this._element.nativeElement;return!x.readOnly&&!x.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(x){const A=this.autocomplete,tt=(0,R.CB)(x,A.options,A.optionGroups);if(0===x&&1===tt)A._setScrollTop(0);else if(A.panel){const U=A.options.toArray()[x];if(U){const _t=U._getHostElement(),Kt=(0,R.jH)(_t.offsetTop,_t.offsetHeight,A._getScrollTop(),A.panel.nativeElement.offsetHeight);A._setScrollTop(Kt)}}}_handleOverlayEvents(x){x.keydownEvents().subscribe(A=>{(A.keyCode===ct.hY&&!(0,ct.Vb)(A)||A.keyCode===ct.LH&&(0,ct.Vb)(A,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),A.stopPropagation(),A.preventDefault())}),x.outsidePointerEvents().subscribe()}}return Q.\u0275fac=function(x){return new(x||Q)(e.Y36(e.SBq),e.Y36(i.aV),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(yt),e.Y36(xt.Is,8),e.Y36(gt.G_,9),e.Y36(z.K0,8),e.Y36(_.rL),e.Y36(wt,8))},Q.\u0275dir=e.lG2({type:Q,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[e.TTD]}),Q})(),kt=(()=>{class Q extends Gt{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return Q.\u0275fac=function(){let at;return function(A){return(at||(at=e.n5z(Q)))(A||Q)}}(),Q.\u0275dir=e.lG2({type:Q,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(x,A){1&x&&e.NdJ("focusin",function(){return A._handleFocus()})("blur",function(){return A._onTouched()})("input",function(U){return A._handleInput(U)})("keydown",function(U){return A._handleKeydown(U)})("click",function(){return A._handleClick()}),2&x&&e.uIk("autocomplete",A.autocompleteAttribute)("role",A.autocompleteDisabled?null:"combobox")("aria-autocomplete",A.autocompleteDisabled?null:"list")("aria-activedescendant",A.panelOpen&&A.activeOption?A.activeOption.id:null)("aria-expanded",A.autocompleteDisabled?null:A.panelOpen.toString())("aria-owns",A.autocompleteDisabled||!A.panelOpen||null==A.autocomplete?null:A.autocomplete.id)("aria-haspopup",A.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[e._Bn([q]),e.qOj]}),Q})(),zt=(()=>{class Q{}return Q.\u0275fac=function(x){return new(x||Q)},Q.\u0275mod=e.oAB({type:Q}),Q.\u0275inj=e.cJS({providers:[Vt],imports:[i.U8,R.Ng,R.BQ,z.ez,_.ZD,R.Ng,R.BQ]}),Q})()},4859:($t,Ct,a)=>{a.d(Ct,{RK:()=>Rt,lW:()=>V,ot:()=>E});var e=a(83353),R=a(94650),z=a(12693),_=a(3238);const i=["mat-button",""],$=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],lt=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],L=["mat-icon-button",""],ft=["*"],Et=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],gt=(0,_.pj)((0,_.Id)((0,_.Kr)(class{constructor(j){this._elementRef=j}})));let X=(()=>{class j extends gt{constructor(M,N,q,et){super(M),this._platform=N,this._ngZone=q,this._animationMode=et,this._focusMonitor=(0,R.f3M)(z.tE),this._isFab=!1;const yt=M.nativeElement.classList;for(const St of Et)this._hasHostAttributes(St.selector)&&St.mdcClasses.forEach(Vt=>{yt.add(Vt)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(M="program",N){M?this._focusMonitor.focusVia(this._elementRef.nativeElement,M,N):this._elementRef.nativeElement.focus(N)}_hasHostAttributes(...M){return M.some(N=>this._elementRef.nativeElement.hasAttribute(N))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return j.\u0275fac=function(M){R.$Z()},j.\u0275dir=R.lG2({type:j,viewQuery:function(M,N){if(1&M&&R.Gf(_.wG,5),2&M){let q;R.iGM(q=R.CRH())&&(N.ripple=q.first)}},features:[R.qOj]}),j})(),V=(()=>{class j extends X{constructor(M,N,q,et){super(M,N,q,et)}}return j.\u0275fac=function(M){return new(M||j)(R.Y36(R.SBq),R.Y36(e.t4),R.Y36(R.R0b),R.Y36(R.QbO,8))},j.\u0275cmp=R.Xpm({type:j,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(M,N){2&M&&(R.uIk("disabled",N.disabled||null),R.ekj("_mat-animation-noopable","NoopAnimations"===N._animationMode)("mat-unthemed",!N.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[R.qOj],attrs:i,ngContentSelectors:lt,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(M,N){1&M&&(R.F$t($),R._UZ(0,"span",0),R.Hsn(1),R.TgZ(2,"span",1),R.Hsn(3,1),R.qZA(),R.Hsn(4,2),R._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&M&&(R.ekj("mdc-button__ripple",!N._isFab)("mdc-fab__ripple",N._isFab),R.xp6(6),R.Q6J("matRippleDisabled",N._isRippleDisabled())("matRippleTrigger",N._elementRef.nativeElement))},dependencies:[_.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),j})(),Rt=(()=>{class j extends X{constructor(M,N,q,et){super(M,N,q,et)}}return j.\u0275fac=function(M){return new(M||j)(R.Y36(R.SBq),R.Y36(e.t4),R.Y36(R.R0b),R.Y36(R.QbO,8))},j.\u0275cmp=R.Xpm({type:j,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(M,N){2&M&&(R.uIk("disabled",N.disabled||null),R.ekj("_mat-animation-noopable","NoopAnimations"===N._animationMode)("mat-unthemed",!N.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[R.qOj],attrs:L,ngContentSelectors:ft,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(M,N){1&M&&(R.F$t(),R._UZ(0,"span",0),R.Hsn(1),R._UZ(2,"span",1)(3,"span",2)(4,"span",3)),2&M&&(R.xp6(3),R.Q6J("matRippleDisabled",N._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",N._elementRef.nativeElement))},dependencies:[_.wG],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),j})(),E=(()=>{class j{}return j.\u0275fac=function(M){return new(M||j)},j.\u0275mod=R.oAB({type:j}),j.\u0275inj=R.cJS({imports:[_.BQ,_.si,_.BQ]}),j})()},99602:($t,Ct,a)=>{a.d(Ct,{By:()=>me,DK:()=>ge,FA:()=>ve,M5:()=>be,Mq:()=>ce,Ti:()=>P,_H:()=>W,_g:()=>fe,dp:()=>_e,hl:()=>m,nW:()=>w,wx:()=>pe,zY:()=>ue});var e=a(12693),R=a(98184),z=a(84080),_=a(36895),i=a(94650),$=a(4859),lt=a(67376),B=a(3238),Z=a(77579),rt=a(50727),st=a(56451),bt=a(39646),L=a(29521),ft=a(40445),dt=a(83353),ct=a(95698),C=a(68675),Et=a(39300),gt=a(21281),X=a(37340),k=a(24006),it=a(59549),O=a(44144);const V=["mat-calendar-body",""];function ht(c,y){if(1&c&&(i.TgZ(0,"tr",3)(1,"td",4),i._uU(2),i.qZA()()),2&c){const t=i.oxw();i.xp6(1),i.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),i.uIk("colspan",t.numCols),i.xp6(1),i.hij(" ",t.label," ")}}function vt(c,y){if(1&c&&(i.TgZ(0,"td",4),i._uU(1),i.qZA()),2&c){const t=i.oxw(2);i.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),i.uIk("colspan",t._firstRowOffset),i.xp6(1),i.hij(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function xt(c,y){if(1&c){const t=i.EpF();i.TgZ(0,"td",8)(1,"button",9),i.NdJ("click",function(l){const S=i.CHM(t).$implicit,K=i.oxw(2);return i.KtG(K._cellClicked(S,l))})("focus",function(l){const S=i.CHM(t).$implicit,K=i.oxw(2);return i.KtG(K._emitActiveDateChange(S,l))}),i.TgZ(2,"div",10),i._uU(3),i.qZA(),i._UZ(4,"div",11),i.qZA()()}if(2&c){const t=y.$implicit,o=y.index,l=i.oxw().index,d=i.oxw();i.Udp("width",d._cellWidth)("padding-top",d._cellPadding)("padding-bottom",d._cellPadding),i.uIk("data-mat-row",l)("data-mat-col",o),i.xp6(1),i.ekj("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",d._isActiveCell(l,o))("mat-calendar-body-range-start",d._isRangeStart(t.compareValue))("mat-calendar-body-range-end",d._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",d._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",d._isComparisonBridgeStart(t.compareValue,l,o))("mat-calendar-body-comparison-bridge-end",d._isComparisonBridgeEnd(t.compareValue,l,o))("mat-calendar-body-comparison-start",d._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",d._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",d._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",d._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",d._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",d._isInPreview(t.compareValue)),i.Q6J("ngClass",t.cssClasses)("tabindex",d._isActiveCell(l,o)?0:-1),i.uIk("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-pressed",d._isSelected(t.compareValue))("aria-current",d.todayValue===t.compareValue?"date":null)("aria-describedby",d._getDescribedby(t.compareValue)),i.xp6(1),i.ekj("mat-calendar-body-selected",d._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",d._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",d.todayValue===t.compareValue),i.xp6(1),i.hij(" ",t.displayValue," ")}}function At(c,y){if(1&c&&(i.TgZ(0,"tr",5),i.YNc(1,vt,2,6,"td",6),i.YNc(2,xt,5,48,"td",7),i.qZA()),2&c){const t=y.$implicit,o=y.index,l=i.oxw();i.xp6(1),i.Q6J("ngIf",0===o&&l._firstRowOffset),i.xp6(1),i.Q6J("ngForOf",t)}}function Dt(c,y){if(1&c&&(i.TgZ(0,"th",5)(1,"span",6),i._uU(2),i.qZA(),i.TgZ(3,"span",7),i._uU(4),i.qZA()()),2&c){const t=y.$implicit;i.xp6(2),i.Oqu(t.long),i.xp6(2),i.Oqu(t.narrow)}}const Mt=["*"];function Bt(c,y){}function Lt(c,y){if(1&c){const t=i.EpF();i.TgZ(0,"mat-month-view",5),i.NdJ("activeDateChange",function(l){i.CHM(t);const d=i.oxw();return i.KtG(d.activeDate=l)})("_userSelection",function(l){i.CHM(t);const d=i.oxw();return i.KtG(d._dateSelected(l))})("dragStarted",function(l){i.CHM(t);const d=i.oxw();return i.KtG(d._dragStarted(l))})("dragEnded",function(l){i.CHM(t);const d=i.oxw();return i.KtG(d._dragEnded(l))}),i.qZA()}if(2&c){const t=i.oxw();i.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName)("activeDrag",t._activeDrag)}}function Pt(c,y){if(1&c){const t=i.EpF();i.TgZ(0,"mat-year-view",6),i.NdJ("activeDateChange",function(l){i.CHM(t);const d=i.oxw();return i.KtG(d.activeDate=l)})("monthSelected",function(l){i.CHM(t);const d=i.oxw();return i.KtG(d._monthSelectedInYearView(l))})("selectedChange",function(l){i.CHM(t);const d=i.oxw();return i.KtG(d._goToDateInView(l,"month"))}),i.qZA()}if(2&c){const t=i.oxw();i.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function Rt(c,y){if(1&c){const t=i.EpF();i.TgZ(0,"mat-multi-year-view",7),i.NdJ("activeDateChange",function(l){i.CHM(t);const d=i.oxw();return i.KtG(d.activeDate=l)})("yearSelected",function(l){i.CHM(t);const d=i.oxw();return i.KtG(d._yearSelectedInMultiYearView(l))})("selectedChange",function(l){i.CHM(t);const d=i.oxw();return i.KtG(d._goToDateInView(l,"year"))}),i.qZA()}if(2&c){const t=i.oxw();i.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function wt(c,y){}const E=["button"];function j(c,y){1&c&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"path",4),i.qZA())}const I=[[["","matDatepickerToggleIcon",""]]],M=["[matDatepickerToggleIcon]"],N=[[["input","matStartDate",""]],[["input","matEndDate",""]]],q=["input[matStartDate]","input[matEndDate]"];function et(c,y){1&c&&(i.TgZ(0,"div",0),i.Hsn(1),i.qZA())}let St=(()=>{class c{constructor(){this.changes=new Z.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(t,o){return`${t} \u2013 ${o}`}formatYearRangeLabel(t,o){return`${t} to ${o}`}}return c.\u0275fac=function(t){return new(t||c)},c.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();class Vt{constructor(y,t,o,l,d={},S=y,K){this.value=y,this.displayValue=t,this.ariaLabel=o,this.enabled=l,this.cssClasses=d,this.compareValue=S,this.rawValue=K}}let Gt=1,kt=(()=>{class c{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(t,o){this._elementRef=t,this._ngZone=o,this._platform=(0,i.f3M)(dt.t4),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.vpe,this.previewChange=new i.vpe,this.activeDateChange=new i.vpe,this.dragStarted=new i.vpe,this.dragEnded=new i.vpe,this._didDragSinceMouseDown=!1,this._enterHandler=l=>{if(this._skipNextFocus&&"focus"===l.type)this._skipNextFocus=!1;else if(l.target&&this.isRange){const d=this._getCellFromElement(l.target);d&&this._ngZone.run(()=>this.previewChange.emit({value:d.enabled?d:null,event:l}))}},this._touchmoveHandler=l=>{if(!this.isRange)return;const d=tt(l),S=d?this._getCellFromElement(d):null;d!==l.target&&(this._didDragSinceMouseDown=!0),Q(l.target)&&l.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:S?.enabled?S:null,event:l}))},this._leaveHandler=l=>{null!==this.previewEnd&&this.isRange&&("blur"!==l.type&&(this._didDragSinceMouseDown=!0),l.target&&this._getCellFromElement(l.target)&&(!l.relatedTarget||!this._getCellFromElement(l.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:l})))},this._mousedownHandler=l=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const d=l.target&&this._getCellFromElement(l.target);!d||!this._isInRange(d.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:d.rawValue,event:l})})},this._mouseupHandler=l=>{if(!this.isRange)return;const d=Q(l.target);d?d.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const S=this._getCellFromElement(d);this.dragEnded.emit({value:S?.rawValue??null,event:l})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:l})})},this._touchendHandler=l=>{const d=tt(l);d&&this._mouseupHandler({target:d})},this._id="mat-calendar-body-"+Gt++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,o.runOutsideAngular(()=>{const l=t.nativeElement;l.addEventListener("mouseenter",this._enterHandler,!0),l.addEventListener("touchmove",this._touchmoveHandler,!0),l.addEventListener("focus",this._enterHandler,!0),l.addEventListener("mouseleave",this._leaveHandler,!0),l.addEventListener("blur",this._leaveHandler,!0),l.addEventListener("mousedown",this._mousedownHandler),l.addEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(t,o){this._didDragSinceMouseDown||t.enabled&&this.selectedValueChange.emit({value:t.value,event:o})}_emitActiveDateChange(t,o){t.enabled&&this.activeDateChange.emit({value:t.value,event:o})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const o=t.numCols,{rows:l,numCols:d}=this;(t.rows||o)&&(this._firstRowOffset=l&&l.length&&l[0].length?d-l[0].length:0),(t.cellAspectRatio||o||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/d+"%"),(o||!this._cellWidth)&&(this._cellWidth=100/d+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("touchmove",this._touchmoveHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0),t.removeEventListener("mousedown",this._mousedownHandler),t.removeEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(t,o){let l=t*this.numCols+o;return t&&(l-=this._firstRowOffset),l==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ct.q)(1)).subscribe(()=>{setTimeout(()=>{const o=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");o&&(t||(this._skipNextFocus=!0),o.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(t){return at(t,this.startValue,this.endValue)}_isRangeEnd(t){return x(t,this.startValue,this.endValue)}_isInRange(t){return A(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return at(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,o,l){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let d=this.rows[o][l-1];if(!d){const S=this.rows[o-1];d=S&&S[S.length-1]}return d&&!this._isRangeEnd(d.compareValue)}_isComparisonBridgeEnd(t,o,l){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let d=this.rows[o][l+1];if(!d){const S=this.rows[o+1];d=S&&S[0]}return d&&!this._isRangeStart(d.compareValue)}_isComparisonEnd(t){return x(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return A(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return at(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return x(t,this.previewStart,this.previewEnd)}_isInPreview(t){return A(t,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(t){return this.isRange?this.startValue===t&&this.endValue===t?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===t?this._startDateLabelId:this.endValue===t?this._endDateLabelId:null:null}_getCellFromElement(t){const o=Q(t);if(o){const l=o.getAttribute("data-mat-row"),d=o.getAttribute("data-mat-col");if(l&&d)return this.rows[parseInt(l)][parseInt(d)]}return null}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(i.SBq),i.Y36(i.R0b))},c.\u0275cmp=i.Xpm({type:c,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[i.TTD],attrs:V,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(t,o){1&t&&(i.YNc(0,ht,3,6,"tr",0),i.YNc(1,At,3,2,"tr",1),i.TgZ(2,"label",2),i._uU(3),i.qZA(),i.TgZ(4,"label",2),i._uU(5),i.qZA()),2&t&&(i.Q6J("ngIf",o._firstRowOffset<o.labelMinRequiredCells),i.xp6(1),i.Q6J("ngForOf",o.rows),i.xp6(1),i.Q6J("id",o._startDateLabelId),i.xp6(1),i.hij(" ",o.startDateAccessibleName,"\n"),i.xp6(1),i.Q6J("id",o._endDateLabelId),i.xp6(1),i.hij(" ",o.endDateAccessibleName,"\n"))},dependencies:[_.mk,_.sg,_.O5],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),c})();function zt(c){return"TD"===c?.nodeName}function Q(c){let y;return zt(c)?y=c:zt(c.parentNode)?y=c.parentNode:zt(c.parentNode?.parentNode)&&(y=c.parentNode.parentNode),null!=y?.getAttribute("data-mat-row")?y:null}function at(c,y,t){return null!==t&&y!==t&&c<t&&c===y}function x(c,y,t){return null!==y&&y!==t&&c>=y&&c===t}function A(c,y,t,o){return o&&null!==y&&null!==t&&y!==t&&c>=y&&c<=t}function tt(c){const y=c.changedTouches[0];return document.elementFromPoint(y.clientX,y.clientY)}class U{constructor(y,t){this.start=y,this.end=t}}let _t=(()=>{class c{constructor(t,o){this.selection=t,this._adapter=o,this._selectionChanged=new Z.x,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,o){const l=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:o,oldValue:l})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return c.\u0275fac=function(t){i.$Z()},c.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac}),c})(),Kt=(()=>{class c extends _t{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const t=new c(this._adapter);return t.updateSelection(this.selection,this),t}}return c.\u0275fac=function(t){return new(t||c)(i.LFG(B._A))},c.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac}),c})(),pt=(()=>{class c extends _t{constructor(t){super(new U(null,null),t)}add(t){let{start:o,end:l}=this.selection;null==o?o=t:null==l?l=t:(o=t,l=null),super.updateSelection(new U(o,l),this)}isValid(){const{start:t,end:o}=this.selection;return null==t&&null==o||(null!=t&&null!=o?this._isValidDateInstance(t)&&this._isValidDateInstance(o)&&this._adapter.compareDate(t,o)<=0:(null==t||this._isValidDateInstance(t))&&(null==o||this._isValidDateInstance(o)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const t=new c(this._adapter);return t.updateSelection(this.selection,this),t}}return c.\u0275fac=function(t){return new(t||c)(i.LFG(B._A))},c.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac}),c})();const Yt={provide:_t,deps:[[new i.FiY,new i.tp0,_t],B._A],useFactory:function ot(c,y){return c||new Kt(y)}},Qt={provide:_t,deps:[[new i.FiY,new i.tp0,_t],B._A],useFactory:function Ht(c,y){return c||new pt(y)}},Ft=new i.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let Xt=(()=>{class c{constructor(t){this._dateAdapter=t}selectionFinished(t,o){let{start:l,end:d}=o;return null==l?l=t:null==d&&t&&this._dateAdapter.compareDate(t,l)>=0?d=t:(l=t,d=null),new U(l,d)}createPreview(t,o){let l=null,d=null;return o.start&&!o.end&&t&&(l=o.start,d=t),new U(l,d)}createDrag(t,o,l){let d=o.start,S=o.end;if(!d||!S)return null;const K=this._dateAdapter,Zt=0!==K.compareDate(d,S),Wt=K.getYear(l)-K.getYear(t),te=K.getMonth(l)-K.getMonth(t),jt=K.getDate(l)-K.getDate(t);return Zt&&K.sameDate(t,o.start)?(d=l,K.compareDate(l,S)>0&&(S=K.addCalendarYears(S,Wt),S=K.addCalendarMonths(S,te),S=K.addCalendarDays(S,jt))):Zt&&K.sameDate(t,o.end)?(S=l,K.compareDate(l,d)<0&&(d=K.addCalendarYears(d,Wt),d=K.addCalendarMonths(d,te),d=K.addCalendarDays(d,jt))):(d=K.addCalendarYears(d,Wt),d=K.addCalendarMonths(d,te),d=K.addCalendarDays(d,jt),S=K.addCalendarYears(S,Wt),S=K.addCalendarMonths(S,te),S=K.addCalendarDays(S,jt)),new U(d,S)}}return c.\u0275fac=function(t){return new(t||c)(i.LFG(B._A))},c.\u0275prov=i.Yz7({token:c,factory:c.\u0275fac}),c})();const ne={provide:Ft,deps:[[new i.FiY,new i.tp0,Ft],B._A],useFactory:function ee(c,y){return c||new Xt(y)}};let G=(()=>{class c{get activeDate(){return this._activeDate}set activeDate(t){const o=this._activeDate,l=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(l,this.minDate,this.maxDate),this._hasSameMonthAndYear(o,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof U?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,o,l,d,S){this._changeDetectorRef=t,this._dateFormats=o,this._dateAdapter=l,this._dir=d,this._rangeStrategy=S,this._rerenderSubscription=rt.w0.EMPTY,this.activeDrag=null,this.selectedChange=new i.vpe,this._userSelection=new i.vpe,this.dragStarted=new i.vpe,this.dragEnded=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,C.O)(null)).subscribe(()=>this._init())}ngOnChanges(t){const o=t.comparisonStart||t.comparisonEnd;o&&!o.firstChange&&this._setRanges(this.selected),t.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const o=t.value,l=this._getDateFromDayOfMonth(o);let d,S;this._selected instanceof U?(d=this._getDateInCurrentMonth(this._selected.start),S=this._getDateInCurrentMonth(this._selected.end)):d=S=this._getDateInCurrentMonth(this._selected),(d!==o||S!==o)&&this.selectedChange.emit(l),this._userSelection.emit({value:l,event:t.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(t){const l=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(t.value),this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(t){const o=this._activeDate,l=this._isRtl();switch(t.keyCode){case L.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,l?1:-1);break;case L.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,l?-1:1);break;case L.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case L.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case L.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case L.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case L.Ku:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case L.VM:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case L.K5:case L.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&t.preventDefault());case L.hY:return void(null!=this._previewEnd&&!(0,L.Vb)(t)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:t}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t})),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(o,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===L.L_||t.keyCode===L.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:t,value:o}){if(this._rangeStrategy){const l=o?o.rawValue:null,d=this._rangeStrategy.createPreview(l,this.selected,t);if(this._previewStart=this._getCellCompareValue(d.start),this._previewEnd=this._getCellCompareValue(d.end),this.activeDrag&&l){const S=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,l,t);S&&(this._previewStart=this._getCellCompareValue(S.start),this._previewEnd=this._getCellCompareValue(S.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(t){if(this.activeDrag)if(t.value){const o=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,t.value,t.event);this.dragEnded.emit({value:o??null,event:t.event})}else this.dragEnded.emit({value:null,event:t.event})}_getDateFromDayOfMonth(t){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t)}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),o=this._dateAdapter.getDayOfWeekNames("narrow");let d=this._dateAdapter.getDayOfWeekNames("long").map((S,K)=>({long:S,narrow:o[K]}));this._weekdays=d.slice(t).concat(d.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),o=this._dateAdapter.getDateNames();this._weeks=[[]];for(let l=0,d=this._firstWeekOffset;l<t;l++,d++){7==d&&(this._weeks.push([]),d=0);const S=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),l+1),K=this._shouldEnableDate(S),Zt=this._dateAdapter.format(S,this._dateFormats.display.dateA11yLabel),Wt=this.dateClass?this.dateClass(S,"month"):void 0;this._weeks[this._weeks.length-1].push(new Vt(l+1,o[l],Zt,K,Wt,this._getCellCompareValue(S),S))}}_shouldEnableDate(t){return!!t&&(!this.minDate||this._dateAdapter.compareDate(t,this.minDate)>=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,o){return!(!t||!o||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(o)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(o))}_getCellCompareValue(t){if(t){const o=this._dateAdapter.getYear(t),l=this._dateAdapter.getMonth(t),d=this._dateAdapter.getDate(t);return new Date(o,l,d).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof U?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(t){return!this.dateFilter||this.dateFilter(t)}_clearPreview(){this._previewStart=this._previewEnd=null}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(i.sBO),i.Y36(B.sG,8),i.Y36(B._A,8),i.Y36(ft.Is,8),i.Y36(Ft,8))},c.\u0275cmp=i.Xpm({type:c,selectors:[["mat-month-view"]],viewQuery:function(t,o){if(1&t&&i.Gf(kt,5),2&t){let l;i.iGM(l=i.CRH())&&(o._matCalendarBody=l.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[i.TTD],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(t,o){1&t&&(i.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),i.YNc(3,Dt,5,2,"th",2),i.qZA(),i.TgZ(4,"tr"),i._UZ(5,"th",3),i.qZA()(),i.TgZ(6,"tbody",4),i.NdJ("selectedValueChange",function(d){return o._dateSelected(d)})("activeDateChange",function(d){return o._updateActiveDate(d)})("previewChange",function(d){return o._previewChanged(d)})("dragStarted",function(d){return o.dragStarted.emit(d)})("dragEnded",function(d){return o._dragEnded(d)})("keyup",function(d){return o._handleCalendarBodyKeyup(d)})("keydown",function(d){return o._handleCalendarBodyKeydown(d)}),i.qZA()()),2&t&&(i.xp6(3),i.Q6J("ngForOf",o._weekdays),i.xp6(3),i.Q6J("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[_.sg,kt],encapsulation:2,changeDetection:0}),c})();const b=24;let g=(()=>{class c{get activeDate(){return this._activeDate}set activeDate(t){let o=this._activeDate;const l=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(l,this.minDate,this.maxDate),n(this._dateAdapter,o,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof U?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,o,l){this._changeDetectorRef=t,this._dateAdapter=o,this._dir=l,this._rerenderSubscription=rt.w0.EMPTY,this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,C.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const o=this._dateAdapter.getYear(this._activeDate)-s(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let l=0,d=[];l<b;l++)d.push(o+l),4==d.length&&(this._years.push(d.map(S=>this._createCellForYear(S))),d=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const o=t.value,l=this._dateAdapter.createDate(o,0,1),d=this._getDateFromYear(o);this.yearSelected.emit(l),this.selectedChange.emit(d)}_updateActiveDate(t){const l=this._activeDate;this.activeDate=this._getDateFromYear(t.value),this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){const o=this._activeDate,l=this._isRtl();switch(t.keyCode){case L.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,l?1:-1);break;case L.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,l?-1:1);break;case L.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case L.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case L.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-s(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case L.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,b-s(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case L.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10*-b:-b);break;case L.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10*b:b);break;case L.K5:case L.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===L.L_||t.keyCode===L.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_getActiveCell(){return s(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(t){const o=this._dateAdapter.getMonth(this.activeDate),l=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,o,1));return this._dateAdapter.createDate(t,o,Math.min(this._dateAdapter.getDate(this.activeDate),l))}_createCellForYear(t){const o=this._dateAdapter.createDate(t,0,1),l=this._dateAdapter.getYearName(o),d=this.dateClass?this.dateClass(o,"multi-year"):void 0;return new Vt(t,l,l,this._shouldEnableYear(t),d)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let l=this._dateAdapter.createDate(t,0,1);this._dateAdapter.getYear(l)==t;l=this._dateAdapter.addCalendarDays(l,1))if(this.dateFilter(l))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(t){if(this._selectedYear=null,t instanceof U){const o=t.start||t.end;o&&(this._selectedYear=this._dateAdapter.getYear(o))}else t&&(this._selectedYear=this._dateAdapter.getYear(t))}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(i.sBO),i.Y36(B._A,8),i.Y36(ft.Is,8))},c.\u0275cmp=i.Xpm({type:c,selectors:[["mat-multi-year-view"]],viewQuery:function(t,o){if(1&t&&i.Gf(kt,5),2&t){let l;i.iGM(l=i.CRH())&&(o._matCalendarBody=l.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(t,o){1&t&&(i.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),i._UZ(3,"th",2),i.qZA()(),i.TgZ(4,"tbody",3),i.NdJ("selectedValueChange",function(d){return o._yearSelected(d)})("activeDateChange",function(d){return o._updateActiveDate(d)})("keyup",function(d){return o._handleCalendarBodyKeyup(d)})("keydown",function(d){return o._handleCalendarBodyKeydown(d)}),i.qZA()()),2&t&&(i.xp6(4),i.Q6J("rows",o._years)("todayValue",o._todayYear)("startValue",o._selectedYear)("endValue",o._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",o._getActiveCell()))},dependencies:[kt],encapsulation:2,changeDetection:0}),c})();function n(c,y,t,o,l){const d=c.getYear(y),S=c.getYear(t),K=u(c,o,l);return Math.floor((d-K)/b)===Math.floor((S-K)/b)}function s(c,y,t,o){return function f(c,y){return(c%y+y)%y}(c.getYear(y)-u(c,t,o),b)}function u(c,y,t){let o=0;return t?o=c.getYear(t)-b+1:y&&(o=c.getYear(y)),o}let D=(()=>{class c{get activeDate(){return this._activeDate}set activeDate(t){let o=this._activeDate;const l=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(l,this.minDate,this.maxDate),this._dateAdapter.getYear(o)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof U?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,o,l,d){this._changeDetectorRef=t,this._dateFormats=o,this._dateAdapter=l,this._dir=d,this._rerenderSubscription=rt.w0.EMPTY,this.selectedChange=new i.vpe,this.monthSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,C.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const o=t.value,l=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),o,1);this.monthSelected.emit(l);const d=this._getDateFromMonth(o);this.selectedChange.emit(d)}_updateActiveDate(t){const l=this._activeDate;this.activeDate=this._getDateFromMonth(t.value),this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){const o=this._activeDate,l=this._isRtl();switch(t.keyCode){case L.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,l?1:-1);break;case L.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,l?-1:1);break;case L.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case L.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case L.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case L.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case L.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case L.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case L.K5:case L.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(o,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===L.L_||t.keyCode===L.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(o=>o.map(l=>this._createCellForMonth(l,t[l]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_getDateFromMonth(t){const o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),l=this._dateAdapter.getNumDaysInMonth(o);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),l))}_createCellForMonth(t,o){const l=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),d=this._dateAdapter.format(l,this._dateFormats.display.monthYearA11yLabel),S=this.dateClass?this.dateClass(l,"year"):void 0;return new Vt(t,o.toLocaleUpperCase(),d,this._shouldEnableMonth(t),S)}_shouldEnableMonth(t){const o=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(o,t)||this._isYearAndMonthBeforeMinDate(o,t))return!1;if(!this.dateFilter)return!0;for(let d=this._dateAdapter.createDate(o,t,1);this._dateAdapter.getMonth(d)==t;d=this._dateAdapter.addCalendarDays(d,1))if(this.dateFilter(d))return!0;return!1}_isYearAndMonthAfterMaxDate(t,o){if(this.maxDate){const l=this._dateAdapter.getYear(this.maxDate),d=this._dateAdapter.getMonth(this.maxDate);return t>l||t===l&&o>d}return!1}_isYearAndMonthBeforeMinDate(t,o){if(this.minDate){const l=this._dateAdapter.getYear(this.minDate),d=this._dateAdapter.getMonth(this.minDate);return t<l||t===l&&o<d}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(t){this._selectedMonth=t instanceof U?this._getMonthInCurrentYear(t.start)||this._getMonthInCurrentYear(t.end):this._getMonthInCurrentYear(t)}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(i.sBO),i.Y36(B.sG,8),i.Y36(B._A,8),i.Y36(ft.Is,8))},c.\u0275cmp=i.Xpm({type:c,selectors:[["mat-year-view"]],viewQuery:function(t,o){if(1&t&&i.Gf(kt,5),2&t){let l;i.iGM(l=i.CRH())&&(o._matCalendarBody=l.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(t,o){1&t&&(i.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),i._UZ(3,"th",2),i.qZA()(),i.TgZ(4,"tbody",3),i.NdJ("selectedValueChange",function(d){return o._monthSelected(d)})("activeDateChange",function(d){return o._updateActiveDate(d)})("keyup",function(d){return o._handleCalendarBodyKeyup(d)})("keydown",function(d){return o._handleCalendarBodyKeydown(d)}),i.qZA()()),2&t&&(i.xp6(4),i.Q6J("label",o._yearLabel)("rows",o._months)("todayValue",o._todayMonth)("startValue",o._selectedMonth)("endValue",o._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",o._dateAdapter.getMonth(o.activeDate)))},dependencies:[kt],encapsulation:2,changeDetection:0}),c})(),Y=1,P=(()=>{class c{constructor(t,o,l,d,S){this._intl=t,this.calendar=o,this._dateAdapter=l,this._dateFormats=d,this._id="mat-calendar-header-"+Y++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>S.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}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:-b)}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:b)}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,o){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(o)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(o):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(o):n(this._dateAdapter,t,o,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const o=this._dateAdapter.getYear(this.calendar.activeDate)-s(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),l=o+b-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(l,0,1))]}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(St),i.Y36((0,i.Gpc)(()=>W)),i.Y36(B._A,8),i.Y36(B.sG,8),i.Y36(i.sBO))},c.\u0275cmp=i.Xpm({type:c,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Mt,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(t,o){1&t&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(2,"button",2),i.NdJ("click",function(){return o.currentPeriodClicked()}),i.TgZ(3,"span",3),i._uU(4),i.qZA(),i.O4$(),i.TgZ(5,"svg",4),i._UZ(6,"polygon",5),i.qZA()(),i.kcU(),i._UZ(7,"div",6),i.Hsn(8),i.TgZ(9,"button",7),i.NdJ("click",function(){return o.previousClicked()}),i.qZA(),i.TgZ(10,"button",8),i.NdJ("click",function(){return o.nextClicked()}),i.qZA()()(),i.TgZ(11,"label",9),i._uU(12),i.qZA()),2&t&&(i.xp6(2),i.uIk("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),i.xp6(2),i.Oqu(o.periodButtonText),i.xp6(1),i.ekj("mat-calendar-invert","month"!==o.calendar.currentView),i.xp6(4),i.Q6J("disabled",!o.previousEnabled()),i.uIk("aria-label",o.prevButtonLabel),i.xp6(1),i.Q6J("disabled",!o.nextEnabled()),i.uIk("aria-label",o.nextButtonLabel),i.xp6(1),i.Q6J("id",o._periodButtonLabelId),i.xp6(1),i.Oqu(o.periodButtonDescription))},dependencies:[$.lW,$.RK],encapsulation:2,changeDetection:0}),c})(),W=(()=>{class c{get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof U?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const o=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),o&&this.viewChanged.emit(o)}constructor(t,o,l,d){this._dateAdapter=o,this._dateFormats=l,this._changeDetectorRef=d,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this._userSelection=new i.vpe,this._userDragDrop=new i.vpe,this._activeDrag=null,this.stateChanges=new Z.x,this._intlChanges=t.changes.subscribe(()=>{d.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new z.C5(this.headerComponent||P),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 o=t.minDate&&!this._dateAdapter.sameDate(t.minDate.previousValue,t.minDate.currentValue)?t.minDate:void 0,l=t.maxDate&&!this._dateAdapter.sameDate(t.maxDate.previousValue,t.maxDate.currentValue)?t.maxDate:void 0,d=o||l||t.dateFilter;if(d&&!d.firstChange){const S=this._getCurrentViewComponent();S&&(this._changeDetectorRef.detectChanges(),S._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(t){const o=t.value;(this.selected instanceof U||o&&!this._dateAdapter.sameDate(o,this.selected))&&this.selectedChange.emit(o),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,o){this.activeDate=t,this.currentView=o}_dragStarted(t){this._activeDrag=t}_dragEnded(t){this._activeDrag&&(t.value&&this._userDragDrop.emit(t),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(St),i.Y36(B._A,8),i.Y36(B.sG,8),i.Y36(i.sBO))},c.\u0275cmp=i.Xpm({type:c,selectors:[["mat-calendar"]],viewQuery:function(t,o){if(1&t&&(i.Gf(G,5),i.Gf(D,5),i.Gf(g,5)),2&t){let l;i.iGM(l=i.CRH())&&(o.monthView=l.first),i.iGM(l=i.CRH())&&(o.yearView=l.first),i.iGM(l=i.CRH())&&(o.multiYearView=l.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[i._Bn([Yt]),i.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(t,o){1&t&&(i.YNc(0,Bt,0,0,"ng-template",0),i.TgZ(1,"div",1),i.YNc(2,Lt,1,11,"mat-month-view",2),i.YNc(3,Pt,1,6,"mat-year-view",3),i.YNc(4,Rt,1,6,"mat-multi-year-view",4),i.qZA()),2&t&&(i.Q6J("cdkPortalOutlet",o._calendarHeaderPortal),i.xp6(1),i.Q6J("ngSwitch",o.currentView),i.xp6(1),i.Q6J("ngSwitchCase","month"),i.xp6(1),i.Q6J("ngSwitchCase","year"),i.xp6(1),i.Q6J("ngSwitchCase","multi-year"))},dependencies:[_.RF,_.n9,e.kH,z.Pl,G,D,g],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;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),c})();const J={transformPanel:(0,X.X$)("transformPanel",[(0,X.eR)("void => enter-dropdown",(0,X.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,X.F4)([(0,X.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,X.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,X.eR)("void => enter-dialog",(0,X.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,X.F4)([(0,X.oB)({opacity:0,transform:"scale(0.7)"}),(0,X.oB)({transform:"none",opacity:1})]))),(0,X.eR)("* => void",(0,X.jt)("100ms linear",(0,X.oB)({opacity:0})))]),fadeInCalendar:(0,X.X$)("fadeInCalendar",[(0,X.SB)("void",(0,X.oB)({opacity:0})),(0,X.SB)("enter",(0,X.oB)({opacity:1})),(0,X.eR)("void => *",(0,X.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let nt=0;const ut=new i.OlP("mat-datepicker-scroll-strategy"),oe={provide:ut,deps:[R.aV],useFactory:function Jt(c){return()=>c.scrollStrategies.reposition()}},de=(0,B.pj)(class{constructor(c){this._elementRef=c}});let se=(()=>{class c extends de{constructor(t,o,l,d,S,K){super(t),this._changeDetectorRef=o,this._globalModel=l,this._dateAdapter=d,this._rangeSelectionStrategy=S,this._subscriptions=new rt.w0,this._animationDone=new Z.x,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=K.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const o=this._model.selection,l=t.value,d=o instanceof U;if(d&&this._rangeSelectionStrategy){const S=this._rangeSelectionStrategy.selectionFinished(l,o,t.event);this._model.updateSelection(S,this)}else l&&(d||!this._dateAdapter.sameDate(l,o))&&this._model.add(l);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(t){this._model.updateSelection(t.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(t){this._isAnimating="start"===t.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(t,o){this._model=t?this._globalModel.clone():this._globalModel,this._actionsPortal=t,o&&this._changeDetectorRef.detectChanges()}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(_t),i.Y36(B._A),i.Y36(Ft,8),i.Y36(St))},c.\u0275cmp=i.Xpm({type:c,selectors:[["mat-datepicker-content"]],viewQuery:function(t,o){if(1&t&&i.Gf(W,5),2&t){let l;i.iGM(l=i.CRH())&&(o._calendar=l.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,o){1&t&&i.WFA("@transformPanel.start",function(d){return o._handleAnimationEvent(d)})("@transformPanel.done",function(d){return o._handleAnimationEvent(d)}),2&t&&(i.d8E("@transformPanel",o._animationState),i.ekj("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[i.qOj],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,o){if(1&t&&(i.TgZ(0,"div",0)(1,"mat-calendar",1),i.NdJ("yearSelected",function(d){return o.datepicker._selectYear(d)})("monthSelected",function(d){return o.datepicker._selectMonth(d)})("viewChanged",function(d){return o.datepicker._viewChanged(d)})("_userSelection",function(d){return o._handleUserSelection(d)})("_userDragDrop",function(d){return o._handleUserDragDrop(d)}),i.qZA(),i.YNc(2,wt,0,0,"ng-template",2),i.TgZ(3,"button",3),i.NdJ("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),i._uU(4),i.qZA()()),2&t){let l;i.ekj("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),i.uIk("aria-modal",!0)("aria-labelledby",null!==(l=o._dialogLabelId)&&void 0!==l?l:void 0),i.xp6(1),i.Q6J("id",o.datepicker.id)("ngClass",o.datepicker.panelClass)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),i.xp6(1),i.Q6J("cdkPortalOutlet",o._actionsPortal),i.xp6(1),i.ekj("cdk-visually-hidden",!o._closeButtonFocused),i.Q6J("color",o.color||"primary"),i.xp6(1),i.Oqu(o._closeButtonText)}},dependencies:[_.mk,$.lW,e.mK,z.Pl,W],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[J.transformPanel,J.fadeInCalendar]},changeDetection:0}),c})(),qt=(()=>{class c{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=(0,gt.Ig)(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const o=(0,gt.Ig)(t);o!==this._disabled&&(this._disabled=o,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=(0,gt.Ig)(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=(0,gt.du)(t)}get opened(){return this._opened}set opened(t){(0,gt.Ig)(t)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(t,o,l,d,S,K,Zt){this._overlay=t,this._ngZone=o,this._viewContainerRef=l,this._dateAdapter=S,this._dir=K,this._model=Zt,this._inputStateChanges=rt.w0.EMPTY,this._document=(0,i.f3M)(_.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this.openedStream=new i.vpe,this.closedStream=new i.vpe,this._opened=!1,this.id="mat-datepicker-"+nt++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Z.x,this._scrollStrategy=d}ngOnChanges(t){const o=t.xPosition||t.yPosition;if(o&&!o.firstChange&&this._overlayRef){const l=this._overlayRef.getConfig().positionStrategy;l instanceof R._G&&(this._setConnectedPositions(l),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t,this._componentRef?.instance._assignActions(t,!0)}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,dt.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const t=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,o=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:l,location:d}=this._componentRef;l._startExitAnimation(),l._animationDone.pipe((0,ct.q)(1)).subscribe(()=>{const S=this._document.activeElement;t&&(!S||S===this._document.activeElement||d.nativeElement.contains(S))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}t?setTimeout(o):o()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._dialogLabelId=this.datepickerInput.getOverlayLabelId(),t._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const t=this.touchUi,o=new z.C5(se,this._viewContainerRef),l=this._overlayRef=this._overlay.create(new R.X_({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"dialog":"popup")}));this._getCloseStream(l).subscribe(d=>{d&&d.preventDefault(),this.close()}),l.keydownEvents().subscribe(d=>{const S=d.keyCode;(S===L.LH||S===L.JH||S===L.oh||S===L.SV||S===L.Ku||S===L.VM)&&d.preventDefault()}),this._componentRef=l.attach(o),this._forwardContentValues(this._componentRef.instance),t||this._ngZone.onStable.pipe((0,ct.q)(1)).subscribe(()=>l.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const o="end"===this.xPosition?"end":"start",l="start"===o?"end":"start",d="above"===this.yPosition?"bottom":"top",S="top"===d?"bottom":"top";return t.withPositions([{originX:o,originY:S,overlayX:o,overlayY:d},{originX:o,originY:d,overlayX:o,overlayY:S},{originX:l,originY:S,overlayX:l,overlayY:d},{originX:l,originY:d,overlayX:l,overlayY:S}])}_getCloseStream(t){const o=["ctrlKey","shiftKey","metaKey"];return(0,st.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,Et.h)(l=>l.keyCode===L.hY&&!(0,L.Vb)(l)||this.datepickerInput&&(0,L.Vb)(l,"altKey")&&l.keyCode===L.LH&&o.every(d=>!(0,L.Vb)(l,d)))))}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(R.aV),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(ut),i.Y36(B._A,8),i.Y36(ft.Is,8),i.Y36(_t))},c.\u0275dir=i.lG2({type:c,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[i.TTD]}),c})(),ce=(()=>{class c extends qt{}return c.\u0275fac=function(){let y;return function(o){return(y||(y=i.n5z(c)))(o||c)}}(),c.\u0275cmp=i.Xpm({type:c,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[i._Bn([Yt,{provide:qt,useExisting:c}]),i.qOj],decls:0,vars:0,template:function(t,o){},encapsulation:2,changeDetection:0}),c})();class re{constructor(y,t){this.target=y,this.targetElement=t,this.value=this.target.value}}let le=(()=>{class c{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const o=(0,gt.Ig)(t),l=this._elementRef.nativeElement;this._disabled!==o&&(this._disabled=o,this.stateChanges.next(void 0)),o&&this._isInitialized&&l.blur&&l.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(o=>{if(this._shouldHandleChangeEvent(o)){const l=this._getValueFromModel(o.selection);this._lastValueValid=this._isValidValue(l),this._cvaOnChange(l),this._onTouched(),this._formatValue(l),this.dateInput.emit(new re(this,this._elementRef.nativeElement)),this.dateChange.emit(new re(this,this._elementRef.nativeElement))}})}constructor(t,o,l){this._elementRef=t,this._dateAdapter=o,this._dateFormats=l,this.dateChange=new i.vpe,this.dateInput=new i.vpe,this.stateChanges=new Z.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=rt.w0.EMPTY,this._localeSubscription=rt.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=d=>{const S=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(d.value));return!S||this._matchesFilter(S)?null:{matDatepickerFilter:!0}},this._minValidator=d=>{const S=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(d.value)),K=this._getMinDate();return!K||!S||this._dateAdapter.compareDate(K,S)<=0?null:{matDatepickerMin:{min:K,actual:S}}},this._maxValidator=d=>{const S=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(d.value)),K=this._getMaxDate();return!K||!S||this._dateAdapter.compareDate(K,S)>=0?null:{matDatepickerMax:{max:K,actual:S}}},this._lastValueValid=!1,this._localeSubscription=o.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){h(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){(0,L.Vb)(t,"altKey")&&t.keyCode===L.JH&&["ctrlKey","shiftKey","metaKey"].every(d=>!(0,L.Vb)(t,d))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const o=this._lastValueValid;let l=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(l),l=this._dateAdapter.getValidDateOrNull(l);const d=!this._dateAdapter.sameDate(l,this.value);!l||d?this._cvaOnChange(l):(t&&!this.value&&this._cvaOnChange(l),o!==this._lastValueValid&&this._validatorOnChange()),d&&(this._assignValue(l),this.dateInput.emit(new re(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new re(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=null!=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const o=this._getDateFilter();return!o||o(t)}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(i.SBq),i.Y36(B._A,8),i.Y36(B.sG,8))},c.\u0275dir=i.lG2({type:c,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i.TTD]}),c})();function h(c,y){const t=Object.keys(c);for(let o of t){const{previousValue:l,currentValue:d}=c[o];if(!y.isDateInstance(l)||!y.isDateInstance(d))return!0;if(!y.sameDate(l,d))return!0}return!1}const p={provide:k.JU,useExisting:(0,i.Gpc)(()=>m),multi:!0},r={provide:k.Cf,useExisting:(0,i.Gpc)(()=>m),multi:!0};let m=(()=>{class c extends le{set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(o,this._min)||(this._min=o,this._validatorOnChange())}get max(){return this._max}set max(t){const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(o,this._max)||(this._max=o,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const o=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==o&&this._validatorOnChange()}constructor(t,o,l,d){super(t,o,l),this._formField=d,this._closedSubscription=rt.w0.EMPTY,this._validator=k.kI.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(i.SBq),i.Y36(B._A,8),i.Y36(B.sG,8),i.Y36(it.G_,8))},c.\u0275dir=i.lG2({type:c,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,o){1&t&&i.NdJ("input",function(d){return o._onInput(d.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(d){return o._onKeydown(d)}),2&t&&(i.Ikx("disabled",o.disabled),i.uIk("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",(null==o._datepicker?null:o._datepicker.opened)&&o._datepicker.id||null)("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[i._Bn([p,r,{provide:O.Jk,useExisting:c}]),i.qOj]}),c})(),v=(()=>{class c{}return c.\u0275fac=function(t){return new(t||c)},c.\u0275dir=i.lG2({type:c,selectors:[["","matDatepickerToggleIcon",""]]}),c})(),w=(()=>{class c{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=(0,gt.Ig)(t)}constructor(t,o,l){this._intl=t,this._changeDetectorRef=o,this._stateChanges=rt.w0.EMPTY;const d=Number(l);this.tabIndex=d||0===d?d:null}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:(0,bt.of)(),o=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,bt.of)(),l=this.datepicker?(0,st.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,bt.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,st.T)(this._intl.changes,t,o,l).subscribe(()=>this._changeDetectorRef.markForCheck())}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(St),i.Y36(i.sBO),i.$8M("tabindex"))},c.\u0275cmp=i.Xpm({type:c,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,o,l){if(1&t&&i.Suo(l,v,5),2&t){let d;i.iGM(d=i.CRH())&&(o._customIcon=d.first)}},viewQuery:function(t,o){if(1&t&&i.Gf(E,5),2&t){let l;i.iGM(l=i.CRH())&&(o._button=l.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,o){1&t&&i.NdJ("click",function(d){return o._open(d)}),2&t&&(i.uIk("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),i.ekj("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&"accent"===o.datepicker.color)("mat-warn",o.datepicker&&"warn"===o.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[i.TTD],ngContentSelectors:M,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,o){1&t&&(i.F$t(I),i.TgZ(0,"button",0,1),i.YNc(2,j,2,0,"svg",2),i.Hsn(3),i.qZA()),2&t&&(i.Q6J("disabled",o.disabled)("disableRipple",o.disableRipple),i.uIk("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex),i.xp6(2),i.Q6J("ngIf",!o._customIcon))},dependencies:[_.O5,$.RK],styles:[".mat-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),c})();function H(c){return Ut(c,!0)}function mt(c){return c.nodeType===Node.ELEMENT_NODE}function Ut(c,y){if(mt(c)&&y){const o=(c.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((l,d)=>{const S=document.getElementById(d);return S&&l.push(S),l},[]);if(o.length)return o.map(l=>Ut(l,!1)).join(" ")}if(mt(c)){const t=c.getAttribute("aria-label")?.trim();if(t)return t}if(function It(c){return"INPUT"===c.nodeName}(c)||function Tt(c){return"TEXTAREA"===c.nodeName}(c)){if(c.labels?.length)return Array.from(c.labels).map(l=>Ut(l,!1)).join(" ");const t=c.getAttribute("placeholder")?.trim();if(t)return t;const o=c.getAttribute("title")?.trim();if(o)return o}return(c.textContent||"").replace(/\s+/g," ").trim()}const Ot=new i.OlP("MAT_DATE_RANGE_INPUT_PARENT"),ie=(0,B.FD)((()=>{class c extends le{constructor(t,o,l,d,S,K,Zt,Wt){super(o,Zt,Wt),this._rangeInput=t,this._elementRef=o,this._defaultErrorStateMatcher=l,this._injector=d,this._parentForm=S,this._parentFormGroup=K,this._dir=(0,i.f3M)(ft.Is,{optional:!0})}ngOnInit(){const t=this._injector.get(k.a5,null,{optional:!0,self:!0});t&&(this.ngControl=t)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){const t=this._elementRef.nativeElement,o=t.value;return o.length>0?o:t.placeholder}_onInput(t){super._onInput(t),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:t}){return t!==this._rangeInput._startInput&&t!==this._rangeInput._endInput}_assignValueProgrammatically(t){super._assignValueProgrammatically(t),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return H(this._elementRef.nativeElement)}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(Ot),i.Y36(i.SBq),i.Y36(B.rD),i.Y36(i.zs3),i.Y36(k.F,8),i.Y36(k.sg,8),i.Y36(B._A,8),i.Y36(B.sG,8))},c.\u0275dir=i.lG2({type:c,features:[i.qOj]}),c})());let ue=(()=>{class c extends ie{constructor(t,o,l,d,S,K,Zt,Wt){super(t,o,l,d,S,K,Zt,Wt),this._startValidator=te=>{const jt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(te.value)),ae=this._model?this._model.selection.end:null;return!jt||!ae||this._dateAdapter.compareDate(jt,ae)<=0?null:{matStartDateInvalid:{end:ae,actual:jt}}},this._validator=k.kI.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(t){return t.start}_shouldHandleChangeEvent(t){return!(!super._shouldHandleChangeEvent(t)||(t.oldValue?.start?t.selection.start&&!this._dateAdapter.compareDate(t.oldValue.start,t.selection.start):!t.selection.start))}_assignValueToModel(t){if(this._model){const o=new U(t,this._model.selection.end);this._model.updateSelection(o,this)}}_formatValue(t){super._formatValue(t),this._rangeInput._handleChildValueChange()}_onKeydown(t){const o=this._rangeInput._endInput,l=this._elementRef.nativeElement,d="rtl"!==this._dir?.value;(t.keyCode===L.SV&&d||t.keyCode===L.oh&&!d)&&l.selectionStart===l.value.length&&l.selectionEnd===l.value.length?(t.preventDefault(),o._elementRef.nativeElement.setSelectionRange(0,0),o.focus()):super._onKeydown(t)}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(Ot),i.Y36(i.SBq),i.Y36(B.rD),i.Y36(i.zs3),i.Y36(k.F,8),i.Y36(k.sg,8),i.Y36(B._A,8),i.Y36(B.sG,8))},c.\u0275dir=i.lG2({type:c,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(t,o){1&t&&i.NdJ("input",function(d){return o._onInput(d.target.value)})("change",function(){return o._onChange()})("keydown",function(d){return o._onKeydown(d)})("blur",function(){return o._onBlur()}),2&t&&(i.Ikx("disabled",o.disabled),i.uIk("aria-haspopup",o._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==o._rangeInput.rangePicker?null:o._rangeInput.rangePicker.opened)&&o._rangeInput.rangePicker.id||null)("min",o._getMinDate()?o._dateAdapter.toIso8601(o._getMinDate()):null)("max",o._getMaxDate()?o._dateAdapter.toIso8601(o._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i._Bn([{provide:k.JU,useExisting:c,multi:!0},{provide:k.Cf,useExisting:c,multi:!0}]),i.qOj]}),c})(),me=(()=>{class c extends ie{constructor(t,o,l,d,S,K,Zt,Wt){super(t,o,l,d,S,K,Zt,Wt),this._endValidator=te=>{const jt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(te.value)),ae=this._model?this._model.selection.start:null;return!jt||!ae||this._dateAdapter.compareDate(jt,ae)>=0?null:{matEndDateInvalid:{start:ae,actual:jt}}},this._validator=k.kI.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(t){return t.end}_shouldHandleChangeEvent(t){return!(!super._shouldHandleChangeEvent(t)||(t.oldValue?.end?t.selection.end&&!this._dateAdapter.compareDate(t.oldValue.end,t.selection.end):!t.selection.end))}_assignValueToModel(t){if(this._model){const o=new U(this._model.selection.start,t);this._model.updateSelection(o,this)}}_onKeydown(t){const o=this._rangeInput._startInput,l=this._elementRef.nativeElement,d="rtl"!==this._dir?.value;if(t.keyCode!==L.ZH||l.value)if((t.keyCode===L.oh&&d||t.keyCode===L.SV&&!d)&&0===l.selectionStart&&0===l.selectionEnd){t.preventDefault();const S=o._elementRef.nativeElement.value.length;o._elementRef.nativeElement.setSelectionRange(S,S),o.focus()}else super._onKeydown(t);else o.focus()}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(Ot),i.Y36(i.SBq),i.Y36(B.rD),i.Y36(i.zs3),i.Y36(k.F,8),i.Y36(k.sg,8),i.Y36(B._A,8),i.Y36(B.sG,8))},c.\u0275dir=i.lG2({type:c,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(t,o){1&t&&i.NdJ("input",function(d){return o._onInput(d.target.value)})("change",function(){return o._onChange()})("keydown",function(d){return o._onKeydown(d)})("blur",function(){return o._onBlur()}),2&t&&(i.Ikx("disabled",o.disabled),i.uIk("aria-haspopup",o._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==o._rangeInput.rangePicker?null:o._rangeInput.rangePicker.opened)&&o._rangeInput.rangePicker.id||null)("min",o._getMinDate()?o._dateAdapter.toIso8601(o._getMinDate()):null)("max",o._getMaxDate()?o._dateAdapter.toIso8601(o._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i._Bn([{provide:k.JU,useExisting:c,multi:!0},{provide:k.Cf,useExisting:c,multi:!0}]),i.qOj]}),c})(),he=0,pe=(()=>{class c{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const t=this._startInput?._getPlaceholder()||"",o=this._endInput?._getPlaceholder()||"";return t||o?`${t} ${this.separator} ${o}`:""}get rangePicker(){return this._rangePicker}set rangePicker(t){t&&(this._model=t.registerInput(this),this._rangePicker=t,this._closedSubscription.unsubscribe(),this._closedSubscription=t.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(t){this._required=(0,gt.Ig)(t)}get dateFilter(){return this._dateFilter}set dateFilter(t){const o=this._startInput,l=this._endInput,d=o&&o._matchesFilter(o.value),S=l&&l._matchesFilter(o.value);this._dateFilter=t,o&&o._matchesFilter(o.value)!==d&&o._validatorOnChange(),l&&l._matchesFilter(l.value)!==S&&l._validatorOnChange()}get min(){return this._min}set min(t){const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(o,this._min)||(this._min=o,this._revalidate())}get max(){return this._max}set max(t){const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(o,this._max)||(this._max=o,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(t){const o=(0,gt.Ig)(t);o!==this._groupDisabled&&(this._groupDisabled=o,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const t=!!this._startInput&&this._startInput.isEmpty(),o=!!this._endInput&&this._endInput.isEmpty();return t&&o}constructor(t,o,l,d,S){if(this._changeDetectorRef=t,this._elementRef=o,this._dateAdapter=d,this._formField=S,this._closedSubscription=rt.w0.EMPTY,this.id="mat-date-range-input-"+he++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new Z.x,S?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const K=o.nativeElement.classList;K.add("mat-mdc-input-element"),K.add("mat-mdc-form-field-input-control")}this.ngControl=l}setDescribedByIds(t){this._ariaDescribedBy=t.length?t.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),(0,st.T)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(t){h(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(t){const o="start"===t?this._startInput:this._endInput;return o?o.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const t=this._formField;return t&&t._hasFloatingLabel()?t._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(t){this.focused=null!==t,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(t){this._startInput&&this._startInput._registerModel(t),this._endInput&&this._endInput._registerModel(t)}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(k.gN,10),i.Y36(B._A,8),i.Y36(it.G_,8))},c.\u0275cmp=i.Xpm({type:c,selectors:[["mat-date-range-input"]],contentQueries:function(t,o,l){if(1&t&&(i.Suo(l,ue,5),i.Suo(l,me,5)),2&t){let d;i.iGM(d=i.CRH())&&(o._startInput=d.first),i.iGM(d=i.CRH())&&(o._endInput=d.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(t,o){2&t&&(i.uIk("id",o.id)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedBy)("data-mat-calendar",o.rangePicker?o.rangePicker.id:null),i.ekj("mat-date-range-input-hide-placeholders",o._shouldHidePlaceholders())("mat-date-range-input-required",o.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[i._Bn([{provide:it.Eo,useExisting:c},{provide:Ot,useExisting:c}]),i.TTD],ngContentSelectors:q,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(t,o){1&t&&(i.F$t(N),i.TgZ(0,"div",0),i.NdJ("cdkFocusChange",function(d){return o._updateFocus(d)}),i.TgZ(1,"div",1),i.Hsn(2),i.TgZ(3,"span",2),i._uU(4),i.qZA()(),i.TgZ(5,"span",3),i._uU(6),i.qZA(),i.TgZ(7,"div",4),i.Hsn(8,1),i.TgZ(9,"span",2),i._uU(10),i.qZA()()()),2&t&&(i.xp6(4),i.Oqu(o._getInputMirrorValue("start")),i.xp6(1),i.ekj("mat-date-range-input-separator-hidden",o._shouldHideSeparator()),i.xp6(1),i.Oqu(o.separator),i.xp6(4),i.Oqu(o._getInputMirrorValue("end")))},dependencies:[e.kH],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0}),c})(),fe=(()=>{class c extends qt{_forwardContentValues(t){super._forwardContentValues(t);const o=this.datepickerInput;o&&(t.comparisonStart=o.comparisonStart,t.comparisonEnd=o.comparisonEnd,t.startDateAccessibleName=o._getStartDateAccessibleName(),t.endDateAccessibleName=o._getEndDateAccessibleName())}}return c.\u0275fac=function(){let y;return function(o){return(y||(y=i.n5z(c)))(o||c)}}(),c.\u0275cmp=i.Xpm({type:c,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[i._Bn([Qt,ne,{provide:qt,useExisting:c}]),i.qOj],decls:0,vars:0,template:function(t,o){},encapsulation:2,changeDetection:0}),c})(),ge=(()=>{class c{constructor(t){this._datepicker=t}_applySelection(){this._datepicker._applyPendingSelection(),this._datepicker.close()}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(qt))},c.\u0275dir=i.lG2({type:c,selectors:[["","matDatepickerApply",""],["","matDateRangePickerApply",""]],hostBindings:function(t,o){1&t&&i.NdJ("click",function(){return o._applySelection()})}}),c})(),_e=(()=>{class c{constructor(t){this._datepicker=t}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(qt))},c.\u0275dir=i.lG2({type:c,selectors:[["","matDatepickerCancel",""],["","matDateRangePickerCancel",""]],hostBindings:function(t,o){1&t&&i.NdJ("click",function(){return o._datepicker.close()})}}),c})(),be=(()=>{class c{constructor(t,o){this._datepicker=t,this._viewContainerRef=o}ngAfterViewInit(){this._portal=new z.UE(this._template,this._viewContainerRef),this._datepicker.registerActions(this._portal)}ngOnDestroy(){this._datepicker.removeActions(this._portal),this._portal&&this._portal.isAttached&&this._portal?.detach()}}return c.\u0275fac=function(t){return new(t||c)(i.Y36(qt),i.Y36(i.s_b))},c.\u0275cmp=i.Xpm({type:c,selectors:[["mat-datepicker-actions"],["mat-date-range-picker-actions"]],viewQuery:function(t,o){if(1&t&&i.Gf(i.Rgc,5),2&t){let l;i.iGM(l=i.CRH())&&(o._template=l.first)}},ngContentSelectors:Mt,decls:1,vars:0,consts:[[1,"mat-datepicker-actions"]],template:function(t,o){1&t&&(i.F$t(),i.YNc(0,et,2,0,"ng-template"))},styles:[".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),c})(),ve=(()=>{class c{}return c.\u0275fac=function(t){return new(t||c)},c.\u0275mod=i.oAB({type:c}),c.\u0275inj=i.cJS({providers:[St,oe],imports:[_.ez,$.ot,R.U8,e.rt,z.eL,B.BQ,lt.ZD]}),c})()},59549:($t,Ct,a)=>{a.d(Ct,{Eo:()=>tt,G_:()=>pt,KE:()=>ee,R9:()=>Vt,hX:()=>E,lN:()=>ne});var e=a(94650),R=a(40445),z=a(83353),_=a(77579),i=a(56451),$=a(82722),lt=a(36895),B=a(21281),Z=a(37340),rt=a(49643),st=a(3238);const bt=["matFormFieldNotchedOutline",""],L=["*"],ft=["textField"],dt=["iconPrefixContainer"],ct=["textPrefixContainer"];function C(T,G){1&T&&e._UZ(0,"span",19)}function Et(T,G){if(1&T){const b=e.EpF();e.TgZ(0,"label",17),e.NdJ("cdkObserveContent",function(){e.CHM(b);const g=e.oxw(2);return e.KtG(g._refreshOutlineNotchWidth())}),e.Hsn(1,1),e.YNc(2,C,1,0,"span",18),e.qZA()}if(2&T){const b=e.oxw(2);e.Q6J("floating",b._shouldLabelFloat())("cdkObserveContentDisabled",!b._hasOutline())("id",b._labelId),e.uIk("for",b._control.id)("aria-owns",b._control.id),e.xp6(2),e.Q6J("ngIf",!b.hideRequiredMarker&&b._control.required)}}function gt(T,G){if(1&T&&e.YNc(0,Et,3,6,"label",16),2&T){const b=e.oxw();e.Q6J("ngIf",b._hasFloatingLabel())}}function X(T,G){1&T&&e._UZ(0,"div",20)}function k(T,G){}function it(T,G){if(1&T&&e.YNc(0,k,0,0,"ng-template",22),2&T){e.oxw(2);const b=e.MAs(1);e.Q6J("ngTemplateOutlet",b)}}function O(T,G){if(1&T&&(e.TgZ(0,"div",21),e.YNc(1,it,1,1,"ng-template",9),e.qZA()),2&T){const b=e.oxw();e.Q6J("matFormFieldNotchedOutlineOpen",b._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",b._labelWidth),e.xp6(1),e.Q6J("ngIf",!b._forceDisplayInfixLabel())}}function V(T,G){1&T&&(e.TgZ(0,"div",23,24),e.Hsn(2,2),e.qZA())}function ht(T,G){1&T&&(e.TgZ(0,"div",25,26),e.Hsn(2,3),e.qZA())}function vt(T,G){}function xt(T,G){if(1&T&&e.YNc(0,vt,0,0,"ng-template",22),2&T){e.oxw();const b=e.MAs(1);e.Q6J("ngTemplateOutlet",b)}}function At(T,G){1&T&&(e.TgZ(0,"div",27),e.Hsn(1,4),e.qZA())}function Dt(T,G){1&T&&(e.TgZ(0,"div",28),e.Hsn(1,5),e.qZA())}function Mt(T,G){1&T&&e._UZ(0,"div",29)}function Bt(T,G){if(1&T&&(e.TgZ(0,"div",30),e.Hsn(1,6),e.qZA()),2&T){const b=e.oxw();e.Q6J("@transitionMessages",b._subscriptAnimationState)}}function Lt(T,G){if(1&T&&(e.TgZ(0,"mat-hint",34),e._uU(1),e.qZA()),2&T){const b=e.oxw(2);e.Q6J("id",b._hintLabelId),e.xp6(1),e.Oqu(b.hintLabel)}}function Pt(T,G){if(1&T&&(e.TgZ(0,"div",31),e.YNc(1,Lt,2,2,"mat-hint",32),e.Hsn(2,7),e._UZ(3,"div",33),e.Hsn(4,8),e.qZA()),2&T){const b=e.oxw();e.Q6J("@transitionMessages",b._subscriptAnimationState),e.xp6(1),e.Q6J("ngIf",b.hintLabel)}}const Rt=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],wt=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let E=(()=>{class T{}return T.\u0275fac=function(b){return new(b||T)},T.\u0275dir=e.lG2({type:T,selectors:[["mat-label"]]}),T})();const I=new e.OlP("MatError");let N=0,q=(()=>{class T{constructor(){this.align="start",this.id="mat-mdc-hint-"+N++}}return T.\u0275fac=function(b){return new(b||T)},T.\u0275dir=e.lG2({type:T,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(b,F){2&b&&(e.Ikx("id",F.id),e.uIk("align",null),e.ekj("mat-mdc-form-field-hint-end","end"===F.align))},inputs:{align:"align",id:"id"}}),T})();const et=new e.OlP("MatPrefix"),St=new e.OlP("MatSuffix");let Vt=(()=>{class T{constructor(){this._isText=!1}set _isTextSelector(b){this._isText=!0}}return T.\u0275fac=function(b){return new(b||T)},T.\u0275dir=e.lG2({type:T,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[e._Bn([{provide:St,useExisting:T}])]}),T})(),Gt=(()=>{class T{constructor(b){this._elementRef=b,this.floating=!1}getWidth(){return function kt(T){if(null!==T.offsetParent)return T.scrollWidth;const b=T.cloneNode(!0);b.style.setProperty("position","absolute"),b.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(b);const F=b.scrollWidth;return b.remove(),F}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return T.\u0275fac=function(b){return new(b||T)(e.Y36(e.SBq))},T.\u0275dir=e.lG2({type:T,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(b,F){2&b&&e.ekj("mdc-floating-label--float-above",F.floating)},inputs:{floating:"floating"}}),T})();const zt="mdc-line-ripple--active",Q="mdc-line-ripple--deactivating";let at=(()=>{class T{constructor(b,F){this._elementRef=b,this._handleTransitionEnd=g=>{const n=this._elementRef.nativeElement.classList,s=n.contains(Q);"opacity"===g.propertyName&&s&&n.remove(zt,Q)},F.runOutsideAngular(()=>{b.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const b=this._elementRef.nativeElement.classList;b.remove(Q),b.add(zt)}deactivate(){this._elementRef.nativeElement.classList.add(Q)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return T.\u0275fac=function(b){return new(b||T)(e.Y36(e.SBq),e.Y36(e.R0b))},T.\u0275dir=e.lG2({type:T,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),T})(),x=(()=>{class T{constructor(b,F){this._elementRef=b,this._ngZone=F,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const b=this._elementRef.nativeElement.querySelector(".mdc-floating-label");b?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(b.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>b.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return T.\u0275fac=function(b){return new(b||T)(e.Y36(e.SBq),e.Y36(e.R0b))},T.\u0275cmp=e.Xpm({type:T,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(b,F){2&b&&e.ekj("mdc-notched-outline--notched",F.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:bt,ngContentSelectors:L,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(b,F){1&b&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e._UZ(3,"div",2)),2&b&&(e.xp6(1),e.Udp("width",F._getNotchWidth()))},encapsulation:2,changeDetection:0}),T})();const A={transitionMessages:(0,Z.X$)("transitionMessages",[(0,Z.SB)("enter",(0,Z.oB)({opacity:1,transform:"translateY(0%)"})),(0,Z.eR)("void => enter",[(0,Z.oB)({opacity:0,transform:"translateY(-5px)"}),(0,Z.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let tt=(()=>{class T{}return T.\u0275fac=function(b){return new(b||T)},T.\u0275dir=e.lG2({type:T}),T})();const pt=new e.OlP("MatFormField"),ot=new e.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Yt=0,ee=(()=>{class T{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(b){this._hideRequiredMarker=(0,B.Ig)(b)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(b){b!==this._floatLabel&&(this._floatLabel=b,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(b){const F=this._appearance;this._appearance=b||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==F&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(b){this._subscriptSizing=b||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(b){this._hintLabel=b,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(b){this._explicitFormFieldControl=b}constructor(b,F,g,n,s,u,f,D){this._elementRef=b,this._changeDetectorRef=F,this._ngZone=g,this._dir=n,this._platform=s,this._defaults=u,this._animationMode=f,this._document=D,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+Yt++,this._hintLabelId="mat-mdc-hint-"+Yt++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new _.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,u&&(u.appearance&&(this.appearance=u.appearance),this._hideRequiredMarker=Boolean(u?.hideRequiredMarker),u.color&&(this.color=u.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const b=this._control;b.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${b.controlType}`),b.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),b.ngControl&&b.ngControl.valueChanges&&b.ngControl.valueChanges.pipe((0,$.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(b=>!b._isText),this._hasTextPrefix=!!this._prefixChildren.find(b=>b._isText),this._hasIconSuffix=!!this._suffixChildren.find(b=>!b._isText),this._hasTextSuffix=!!this._suffixChildren.find(b=>b._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,i.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,$.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(b){const F=this._control?this._control.ngControl:null;return F&&F[b]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let b=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&b.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const F=this._hintChildren?this._hintChildren.find(n=>"start"===n.align):null,g=this._hintChildren?this._hintChildren.find(n=>"end"===n.align):null;F?b.push(F.id):this._hintLabel&&b.push(this._hintLabelId),g&&b.push(g.id)}else this._errorChildren&&b.push(...this._errorChildren.map(F=>F.id));this._control.setDescribedByIds(b)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const b=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(b.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const F=this._iconPrefixContainer?.nativeElement,g=this._textPrefixContainer?.nativeElement,n=F?.getBoundingClientRect().width??0,s=g?.getBoundingClientRect().width??0;b.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${n+s}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const b=this._elementRef.nativeElement;if(b.getRootNode){const F=b.getRootNode();return F&&F!==b}return document.documentElement.contains(b)}}return T.\u0275fac=function(b){return new(b||T)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(R.Is),e.Y36(z.t4),e.Y36(ot,8),e.Y36(e.QbO,8),e.Y36(lt.K0))},T.\u0275cmp=e.Xpm({type:T,selectors:[["mat-form-field"]],contentQueries:function(b,F,g){if(1&b&&(e.Suo(g,E,5),e.Suo(g,E,7),e.Suo(g,tt,5),e.Suo(g,et,5),e.Suo(g,St,5),e.Suo(g,I,5),e.Suo(g,q,5)),2&b){let n;e.iGM(n=e.CRH())&&(F._labelChildNonStatic=n.first),e.iGM(n=e.CRH())&&(F._labelChildStatic=n.first),e.iGM(n=e.CRH())&&(F._formFieldControl=n.first),e.iGM(n=e.CRH())&&(F._prefixChildren=n),e.iGM(n=e.CRH())&&(F._suffixChildren=n),e.iGM(n=e.CRH())&&(F._errorChildren=n),e.iGM(n=e.CRH())&&(F._hintChildren=n)}},viewQuery:function(b,F){if(1&b&&(e.Gf(ft,5),e.Gf(dt,5),e.Gf(ct,5),e.Gf(Gt,5),e.Gf(x,5),e.Gf(at,5)),2&b){let g;e.iGM(g=e.CRH())&&(F._textField=g.first),e.iGM(g=e.CRH())&&(F._iconPrefixContainer=g.first),e.iGM(g=e.CRH())&&(F._textPrefixContainer=g.first),e.iGM(g=e.CRH())&&(F._floatingLabel=g.first),e.iGM(g=e.CRH())&&(F._notchedOutline=g.first),e.iGM(g=e.CRH())&&(F._lineRipple=g.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(b,F){2&b&&e.ekj("mat-mdc-form-field-label-always-float",F._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",F._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",F._hasIconSuffix)("mat-form-field-invalid",F._control.errorState)("mat-form-field-disabled",F._control.disabled)("mat-form-field-autofilled",F._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===F._animationMode)("mat-form-field-appearance-fill","fill"==F.appearance)("mat-form-field-appearance-outline","outline"==F.appearance)("mat-form-field-hide-placeholder",F._hasFloatingLabel()&&!F._shouldLabelFloat())("mat-focused",F._control.focused)("mat-primary","accent"!==F.color&&"warn"!==F.color)("mat-accent","accent"===F.color)("mat-warn","warn"===F.color)("ng-untouched",F._shouldForward("untouched"))("ng-touched",F._shouldForward("touched"))("ng-pristine",F._shouldForward("pristine"))("ng-dirty",F._shouldForward("dirty"))("ng-valid",F._shouldForward("valid"))("ng-invalid",F._shouldForward("invalid"))("ng-pending",F._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e._Bn([{provide:pt,useExisting:T}])],ngContentSelectors:wt,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(b,F){1&b&&(e.F$t(Rt),e.YNc(0,gt,1,1,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.NdJ("click",function(n){return F._control.onContainerClick&&F._control.onContainerClick(n)}),e.YNc(4,X,1,0,"div",3),e.TgZ(5,"div",4),e.YNc(6,O,2,3,"div",5),e.YNc(7,V,3,0,"div",6),e.YNc(8,ht,3,0,"div",7),e.TgZ(9,"div",8),e.YNc(10,xt,1,1,"ng-template",9),e.Hsn(11),e.qZA(),e.YNc(12,At,2,0,"div",10),e.YNc(13,Dt,2,0,"div",11),e.qZA(),e.YNc(14,Mt,1,0,"div",12),e.qZA(),e.TgZ(15,"div",13),e.YNc(16,Bt,2,1,"div",14),e.YNc(17,Pt,5,2,"div",15),e.qZA()),2&b&&(e.xp6(2),e.ekj("mdc-text-field--filled",!F._hasOutline())("mdc-text-field--outlined",F._hasOutline())("mdc-text-field--no-label",!F._hasFloatingLabel())("mdc-text-field--disabled",F._control.disabled)("mdc-text-field--invalid",F._control.errorState),e.xp6(2),e.Q6J("ngIf",!F._hasOutline()&&!F._control.disabled),e.xp6(2),e.Q6J("ngIf",F._hasOutline()),e.xp6(1),e.Q6J("ngIf",F._hasIconPrefix),e.xp6(1),e.Q6J("ngIf",F._hasTextPrefix),e.xp6(2),e.Q6J("ngIf",!F._hasOutline()||F._forceDisplayInfixLabel()),e.xp6(2),e.Q6J("ngIf",F._hasTextSuffix),e.xp6(1),e.Q6J("ngIf",F._hasIconSuffix),e.xp6(1),e.Q6J("ngIf",!F._hasOutline()),e.xp6(1),e.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===F.subscriptSizing),e.Q6J("ngSwitch",F._getDisplayedMessages()),e.xp6(1),e.Q6J("ngSwitchCase","error"),e.xp6(1),e.Q6J("ngSwitchCase","hint"))},dependencies:[lt.O5,lt.tP,lt.RF,lt.n9,rt.wD,q,Gt,x,at],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[A.transitionMessages]},changeDetection:0}),T})(),ne=(()=>{class T{}return T.\u0275fac=function(b){return new(b||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({imports:[st.BQ,lt.ez,rt.Q8,st.BQ]}),T})()},44144:($t,Ct,a)=>{a.d(Ct,{Jk:()=>dt,Nt:()=>gt,c:()=>X});var e=a(21281),R=a(83353),z=a(94650),_=a(60515),i=a(77579);const $=(0,R.i$)({passive:!0});let lt=(()=>{class k{constructor(O,V){this._platform=O,this._ngZone=V,this._monitoredElements=new Map}monitor(O){if(!this._platform.isBrowser)return _.E;const V=(0,e.fI)(O),ht=this._monitoredElements.get(V);if(ht)return ht.subject;const vt=new i.x,xt="cdk-text-field-autofilled",At=Dt=>{"cdk-text-field-autofill-start"!==Dt.animationName||V.classList.contains(xt)?"cdk-text-field-autofill-end"===Dt.animationName&&V.classList.contains(xt)&&(V.classList.remove(xt),this._ngZone.run(()=>vt.next({target:Dt.target,isAutofilled:!1}))):(V.classList.add(xt),this._ngZone.run(()=>vt.next({target:Dt.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{V.addEventListener("animationstart",At,$),V.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(V,{subject:vt,unlisten:()=>{V.removeEventListener("animationstart",At,$)}}),vt}stopMonitoring(O){const V=(0,e.fI)(O),ht=this._monitoredElements.get(V);ht&&(ht.unlisten(),ht.subject.complete(),V.classList.remove("cdk-text-field-autofill-monitored"),V.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(V))}ngOnDestroy(){this._monitoredElements.forEach((O,V)=>this.stopMonitoring(V))}}return k.\u0275fac=function(O){return new(O||k)(z.LFG(R.t4),z.LFG(z.R0b))},k.\u0275prov=z.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})(),rt=(()=>{class k{}return k.\u0275fac=function(O){return new(O||k)},k.\u0275mod=z.oAB({type:k}),k.\u0275inj=z.cJS({}),k})();var st=a(24006),bt=a(3238),L=a(59549);const dt=new z.OlP("MAT_INPUT_VALUE_ACCESSOR"),ct=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let C=0;const Et=(0,bt.FD)(class{constructor(k,it,O,V){this._defaultErrorStateMatcher=k,this._parentForm=it,this._parentFormGroup=O,this.ngControl=V,this.stateChanges=new i.x}});let gt=(()=>{class k extends Et{get disabled(){return this._disabled}set disabled(O){this._disabled=(0,e.Ig)(O),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(O){this._id=O||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(st.kI.required)??!1}set required(O){this._required=(0,e.Ig)(O)}get type(){return this._type}set type(O){this._type=O||"text",this._validateType(),!this._isTextarea&&(0,R.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(O){O!==this.value&&(this._inputValueAccessor.value=O,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(O){this._readonly=(0,e.Ig)(O)}constructor(O,V,ht,vt,xt,At,Dt,Mt,Bt,Lt){super(At,vt,xt,ht),this._elementRef=O,this._platform=V,this._autofillMonitor=Mt,this._formField=Lt,this._uid="mat-input-"+C++,this.focused=!1,this.stateChanges=new i.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(wt=>(0,R.qK)().has(wt)),this._iOSKeyupListener=wt=>{const E=wt.target;!E.value&&0===E.selectionStart&&0===E.selectionEnd&&(E.setSelectionRange(1,1),E.setSelectionRange(0,0))};const Pt=this._elementRef.nativeElement,Rt=Pt.nodeName.toLowerCase();this._inputValueAccessor=Dt||Pt,this._previousNativeValue=this.value,this.id=this.id,V.IOS&&Bt.runOutsideAngular(()=>{O.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Rt,this._isTextarea="textarea"===Rt,this._isInFormField=!!Lt,this._isNativeSelect&&(this.controlType=Pt.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(O=>{this.autofilled=O.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(O){this._elementRef.nativeElement.focus(O)}_focusChanged(O){O!==this.focused&&(this.focused=O,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const O=this._elementRef.nativeElement.value;this._previousNativeValue!==O&&(this._previousNativeValue=O,this.stateChanges.next())}_dirtyCheckPlaceholder(){const O=this._getPlaceholder();if(O!==this._previousPlaceholder){const V=this._elementRef.nativeElement;this._previousPlaceholder=O,O?V.setAttribute("placeholder",O):V.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){ct.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let O=this._elementRef.nativeElement.validity;return O&&O.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const O=this._elementRef.nativeElement,V=O.options[0];return this.focused||O.multiple||!this.empty||!!(O.selectedIndex>-1&&V&&V.label)}return this.focused||!this.empty}setDescribedByIds(O){O.length?this._elementRef.nativeElement.setAttribute("aria-describedby",O.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const O=this._elementRef.nativeElement;return this._isNativeSelect&&(O.multiple||O.size>1)}}return k.\u0275fac=function(O){return new(O||k)(z.Y36(z.SBq),z.Y36(R.t4),z.Y36(st.a5,10),z.Y36(st.F,8),z.Y36(st.sg,8),z.Y36(bt.rD),z.Y36(dt,10),z.Y36(lt),z.Y36(z.R0b),z.Y36(L.G_,8))},k.\u0275dir=z.lG2({type:k,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(O,V){1&O&&z.NdJ("focus",function(){return V._focusChanged(!0)})("blur",function(){return V._focusChanged(!1)})("input",function(){return V._onInput()}),2&O&&(z.Ikx("id",V.id)("disabled",V.disabled)("required",V.required),z.uIk("name",V.name||null)("readonly",V.readonly&&!V._isNativeSelect||null)("aria-invalid",V.empty&&V.required?null:V.errorState)("aria-required",V.required)("id",V.id),z.ekj("mat-input-server",V._isServer)("mat-mdc-form-field-textarea-control",V._isInFormField&&V._isTextarea)("mat-mdc-form-field-input-control",V._isInFormField)("mdc-text-field__input",V._isInFormField)("mat-mdc-native-select-inline",V._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[z._Bn([{provide:L.Eo,useExisting:k}]),z.qOj,z.TTD]}),k})(),X=(()=>{class k{}return k.\u0275fac=function(O){return new(O||k)},k.\u0275mod=z.oAB({type:k}),k.\u0275inj=z.cJS({imports:[bt.BQ,L.lN,L.lN,rt,bt.BQ]}),k})()},88796:($t,Ct,a)=>{a.d(Ct,{A0:()=>le,Cm:()=>T,ir:()=>Ft,w9:()=>qt});var e=a(94650),R=a(24006),z=a(82722),_=a(23601),i=a(68675),$=a(18505),lt=a(78372),B=a(39300),Z=a(54004),rt=a(66406),st=a(53101),bt=a(77579),L=a(54968),ft=a(56451),dt=a(36895);const ct=["content"],C=["scroll"],Et=["padding"],gt=function(h){return{searchTerm:h}};function X(h,p){if(1&h&&(e.TgZ(0,"div",6),e.GkF(1,7),e.qZA()),2&h){const r=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",r.headerTemplate)("ngTemplateOutletContext",e.VKq(2,gt,r.filterValue))}}function k(h,p){if(1&h&&(e.TgZ(0,"div",8),e.GkF(1,7),e.qZA()),2&h){const r=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",r.footerTemplate)("ngTemplateOutletContext",e.VKq(2,gt,r.filterValue))}}const it=["*"],O=["searchInput"];function V(h,p){if(1&h){const r=e.EpF();e.TgZ(0,"span",15),e.NdJ("click",function(){e.CHM(r);const v=e.oxw().$implicit,w=e.oxw(2);return e.KtG(w.unselect(v))}),e._uU(1,"\xd7"),e.qZA(),e._UZ(2,"span",16)}if(2&h){const r=e.oxw().$implicit,m=e.oxw(2);e.xp6(2),e.Q6J("ngItemLabel",r.label)("escape",m.escapeHTML)}}function ht(h,p){}const vt=function(h,p,r){return{item:h,clear:p,label:r}};function xt(h,p){if(1&h&&(e.TgZ(0,"div",12),e.YNc(1,V,3,2,"ng-template",null,13,e.W1O),e.YNc(3,ht,0,0,"ng-template",14),e.qZA()),2&h){const r=p.$implicit,m=e.MAs(2),v=e.oxw(2);e.ekj("ng-value-disabled",r.disabled),e.xp6(3),e.Q6J("ngTemplateOutlet",v.labelTemplate||m)("ngTemplateOutletContext",e.kEZ(4,vt,r.value,v.clearItem,r.label))}}function At(h,p){if(1&h&&(e.ynx(0),e.YNc(1,xt,4,8,"div",11),e.BQk()),2&h){const r=e.oxw();e.xp6(1),e.Q6J("ngForOf",r.selectedItems)("ngForTrackBy",r.trackByOption)}}function Dt(h,p){}const Mt=function(h,p){return{items:h,clear:p}};function Bt(h,p){if(1&h&&e.YNc(0,Dt,0,0,"ng-template",14),2&h){const r=e.oxw();e.Q6J("ngTemplateOutlet",r.multiLabelTemplate)("ngTemplateOutletContext",e.WLB(2,Mt,r.selectedValues,r.clearItem))}}function Lt(h,p){1&h&&e._UZ(0,"div",19)}function Pt(h,p){}function Rt(h,p){if(1&h&&(e.ynx(0),e.YNc(1,Lt,1,0,"ng-template",null,17,e.W1O),e.YNc(3,Pt,0,0,"ng-template",18),e.BQk()),2&h){const r=e.MAs(2),m=e.oxw();e.xp6(3),e.Q6J("ngTemplateOutlet",m.loadingSpinnerTemplate||r)}}function wt(h,p){if(1&h&&(e.TgZ(0,"span",20)(1,"span",21),e._uU(2,"\xd7"),e.qZA()()),2&h){const r=e.oxw();e.s9C("title",r.clearAllText)}}function E(h,p){if(1&h&&e._UZ(0,"span",27),2&h){const r=e.oxw().$implicit,m=e.oxw(2);e.Q6J("ngItemLabel",r.label)("escape",m.escapeHTML)}}function j(h,p){}const I=function(h,p,r,m){return{item:h,item$:p,index:r,searchTerm:m}};function M(h,p){if(1&h){const r=e.EpF();e.TgZ(0,"div",25),e.NdJ("click",function(){const w=e.CHM(r).$implicit,H=e.oxw(2);return e.KtG(H.toggleItem(w))})("mouseover",function(){const w=e.CHM(r).$implicit,H=e.oxw(2);return e.KtG(H.onItemHover(w))}),e.YNc(1,E,1,2,"ng-template",null,26,e.W1O),e.YNc(3,j,0,0,"ng-template",14),e.qZA()}if(2&h){const r=p.$implicit,m=e.MAs(2),v=e.oxw(2);e.ekj("ng-option-disabled",r.disabled)("ng-option-selected",r.selected)("ng-optgroup",r.children)("ng-option",!r.children)("ng-option-child",!!r.parent)("ng-option-marked",r===v.itemsList.markedItem),e.uIk("role",r.children?"group":"option")("aria-selected",r.selected)("id",null==r?null:r.htmlId),e.xp6(3),e.Q6J("ngTemplateOutlet",r.children?v.optgroupTemplate||m:v.optionTemplate||m)("ngTemplateOutletContext",e.l5B(17,I,r.value,r,r.index,v.searchTerm))}}function N(h,p){if(1&h&&(e.TgZ(0,"span")(1,"span",30),e._uU(2),e.qZA(),e._uU(3),e.qZA()),2&h){const r=e.oxw(3);e.xp6(2),e.Oqu(r.addTagText),e.xp6(1),e.hij('"',r.searchTerm,'"')}}function q(h,p){}function et(h,p){if(1&h){const r=e.EpF();e.TgZ(0,"div",28),e.NdJ("mouseover",function(){e.CHM(r);const v=e.oxw(2);return e.KtG(v.itemsList.unmarkItem())})("click",function(){e.CHM(r);const v=e.oxw(2);return e.KtG(v.selectTag())}),e.YNc(1,N,4,2,"ng-template",null,29,e.W1O),e.YNc(3,q,0,0,"ng-template",14),e.qZA()}if(2&h){const r=e.MAs(2),m=e.oxw(2);e.ekj("ng-option-marked",!m.itemsList.markedItem),e.xp6(3),e.Q6J("ngTemplateOutlet",m.tagTemplate||r)("ngTemplateOutletContext",e.VKq(4,gt,m.searchTerm))}}function yt(h,p){if(1&h&&(e.TgZ(0,"div",32),e._uU(1),e.qZA()),2&h){const r=e.oxw(3);e.xp6(1),e.Oqu(r.notFoundText)}}function St(h,p){}function Vt(h,p){if(1&h&&(e.ynx(0),e.YNc(1,yt,2,1,"ng-template",null,31,e.W1O),e.YNc(3,St,0,0,"ng-template",14),e.BQk()),2&h){const r=e.MAs(2),m=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",m.notFoundTemplate||r)("ngTemplateOutletContext",e.VKq(2,gt,m.searchTerm))}}function Gt(h,p){if(1&h&&(e.TgZ(0,"div",32),e._uU(1),e.qZA()),2&h){const r=e.oxw(3);e.xp6(1),e.Oqu(r.typeToSearchText)}}function kt(h,p){}function zt(h,p){if(1&h&&(e.ynx(0),e.YNc(1,Gt,2,1,"ng-template",null,33,e.W1O),e.YNc(3,kt,0,0,"ng-template",18),e.BQk()),2&h){const r=e.MAs(2),m=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",m.typeToSearchTemplate||r)}}function Q(h,p){if(1&h&&(e.TgZ(0,"div",32),e._uU(1),e.qZA()),2&h){const r=e.oxw(3);e.xp6(1),e.Oqu(r.loadingText)}}function at(h,p){}function x(h,p){if(1&h&&(e.ynx(0),e.YNc(1,Q,2,1,"ng-template",null,34,e.W1O),e.YNc(3,at,0,0,"ng-template",14),e.BQk()),2&h){const r=e.MAs(2),m=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",m.loadingTextTemplate||r)("ngTemplateOutletContext",e.VKq(2,gt,m.searchTerm))}}function A(h,p){if(1&h){const r=e.EpF();e.TgZ(0,"ng-dropdown-panel",22),e.NdJ("update",function(v){e.CHM(r);const w=e.oxw();return e.KtG(w.viewPortItems=v)})("scroll",function(v){e.CHM(r);const w=e.oxw();return e.KtG(w.scroll.emit(v))})("scrollToEnd",function(v){e.CHM(r);const w=e.oxw();return e.KtG(w.scrollToEnd.emit(v))})("outsideClick",function(){e.CHM(r);const v=e.oxw();return e.KtG(v.close())}),e.ynx(1),e.YNc(2,M,4,22,"div",23),e.YNc(3,et,4,6,"div",24),e.BQk(),e.YNc(4,Vt,4,4,"ng-container",3),e.YNc(5,zt,4,1,"ng-container",3),e.YNc(6,x,4,4,"ng-container",3),e.qZA()}if(2&h){const r=e.oxw();e.ekj("ng-select-multiple",r.multiple),e.Q6J("virtualScroll",r.virtualScroll)("bufferAmount",r.bufferAmount)("appendTo",r.appendTo)("position",r.dropdownPosition)("headerTemplate",r.headerTemplate)("footerTemplate",r.footerTemplate)("filterValue",r.searchTerm)("items",r.itemsList.filteredItems)("markedItem",r.itemsList.markedItem)("ngClass",r.appendTo?r.classes:null)("id",r.dropdownId),e.xp6(2),e.Q6J("ngForOf",r.viewPortItems)("ngForTrackBy",r.trackByOption),e.xp6(1),e.Q6J("ngIf",r.showAddTag),e.xp6(1),e.Q6J("ngIf",r.showNoItemsFound()),e.xp6(1),e.Q6J("ngIf",r.showTypeToSearch()),e.xp6(1),e.Q6J("ngIf",r.loading&&0===r.itemsList.filteredItems.length)}}const tt=/[&<>"']/g,U=RegExp(tt.source),_t={"&":"&","<":"<",">":">",'"':""","'":"'"};function pt(h){return null!=h}function ot(h){return"object"==typeof h&&pt(h)}function Ht(h){return h instanceof Function}let Qt=(()=>{class h{constructor(r){this.element=r,this.escape=!0}ngOnChanges(r){this.element.nativeElement.innerHTML=this.escape?function Kt(h){return h&&U.test(h)?h.replace(tt,p=>_t[p]):h}(this.ngItemLabel):this.ngItemLabel}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.SBq))},h.\u0275dir=e.lG2({type:h,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[e.TTD]}),h})(),Ft=(()=>{class h{constructor(r){this.template=r}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.Rgc))},h.\u0275dir=e.lG2({type:h,selectors:[["","ng-option-tmp",""]]}),h})(),Xt=(()=>{class h{constructor(r){this.template=r}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.Rgc))},h.\u0275dir=e.lG2({type:h,selectors:[["","ng-optgroup-tmp",""]]}),h})(),ee=(()=>{class h{constructor(r){this.template=r}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.Rgc))},h.\u0275dir=e.lG2({type:h,selectors:[["","ng-label-tmp",""]]}),h})(),ne=(()=>{class h{constructor(r){this.template=r}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.Rgc))},h.\u0275dir=e.lG2({type:h,selectors:[["","ng-multi-label-tmp",""]]}),h})(),T=(()=>{class h{constructor(r){this.template=r}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.Rgc))},h.\u0275dir=e.lG2({type:h,selectors:[["","ng-header-tmp",""]]}),h})(),G=(()=>{class h{constructor(r){this.template=r}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.Rgc))},h.\u0275dir=e.lG2({type:h,selectors:[["","ng-footer-tmp",""]]}),h})(),b=(()=>{class h{constructor(r){this.template=r}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.Rgc))},h.\u0275dir=e.lG2({type:h,selectors:[["","ng-notfound-tmp",""]]}),h})(),F=(()=>{class h{constructor(r){this.template=r}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.Rgc))},h.\u0275dir=e.lG2({type:h,selectors:[["","ng-typetosearch-tmp",""]]}),h})(),g=(()=>{class h{constructor(r){this.template=r}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.Rgc))},h.\u0275dir=e.lG2({type:h,selectors:[["","ng-loadingtext-tmp",""]]}),h})(),n=(()=>{class h{constructor(r){this.template=r}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.Rgc))},h.\u0275dir=e.lG2({type:h,selectors:[["","ng-tag-tmp",""]]}),h})(),s=(()=>{class h{constructor(r){this.template=r}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.Rgc))},h.\u0275dir=e.lG2({type:h,selectors:[["","ng-loadingspinner-tmp",""]]}),h})();function u(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const f={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function D(h){return h.replace(/[^\u0000-\u007E]/g,r=>f[r]||r)}class Y{constructor(p,r){this._ngSelect=p,this._selectionModel=r,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let p=this.selectedItems.length-1;for(;p>=0;p--){const r=this.selectedItems[p];if(!r.disabled)return r}return null}setItems(p){this._items=p.map((r,m)=>this.mapItem(r,m)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(p){if(p.selected||this.maxItemsSelected)return;const r=this._ngSelect.multiple;r||this.clearSelected(),this._selectionModel.select(p,r,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(p)}unselect(p){p.selected&&(this._selectionModel.unselect(p,this._ngSelect.multiple),this._ngSelect.hideSelected&&pt(p.index)&&this._ngSelect.multiple&&this._showSelected(p))}findItem(p){let r;return r=this._ngSelect.compareWith?m=>this._ngSelect.compareWith(m.value,p):this._ngSelect.bindValue?m=>!m.children&&this.resolveNested(m.value,this._ngSelect.bindValue)===p:m=>m.value===p||!m.children&&m.label&&m.label===this.resolveNested(p,this._ngSelect.bindLabel),this._items.find(m=>r(m))}addItem(p){const r=this.mapItem(p,this._items.length);return this._items.push(r),this._filteredItems.push(r),r}clearSelected(p=!1){this._selectionModel.clear(p),this._items.forEach(r=>{r.selected=p&&r.selected&&r.disabled,r.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(p){return p=D(p).toLocaleLowerCase(),this.filteredItems.find(r=>D(r.label).toLocaleLowerCase().substr(0,p.length)===p)}filter(p){if(!p)return void this.resetFilteredItems();this._filteredItems=[],p=this._ngSelect.searchFn?p:D(p).toLocaleLowerCase();const r=this._ngSelect.searchFn||this._defaultSearchFn,m=this._ngSelect.hideSelected;for(const v of Array.from(this._groups.keys())){const w=[];for(const H of this._groups.get(v))m&&(H.parent&&H.parent.selected||H.selected)||r(p,this._ngSelect.searchFn?H.value:H)&&w.push(H);if(w.length>0){const[H]=w.slice(-1);if(H.parent){const mt=this._items.find(It=>It===H.parent);this._filteredItems.push(mt)}this._filteredItems.push(...w)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(p=>!p.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(p){this._markedIndex=this._filteredItems.indexOf(p)}markSelectedOrDefault(p){if(0===this._filteredItems.length)return;const r=this._getLastMarkedIndex();this._markedIndex=r>-1?r:p?this.filteredItems.findIndex(m=>!m.disabled):-1}resolveNested(p,r){if(!ot(p))return p;if(-1===r.indexOf("."))return p[r];{const m=r.split(".");let v=p;for(let w=0,H=m.length;w<H;++w){if(null==v)return null;v=v[m[w]]}return v}}mapItem(p,r){const m=pt(p.$ngOptionLabel)?p.$ngOptionLabel:this.resolveNested(p,this._ngSelect.bindLabel),v=pt(p.$ngOptionValue)?p.$ngOptionValue:p;return{index:r,label:pt(m)?m.toString():"",value:v,disabled:p.disabled,htmlId:`${this._ngSelect.dropdownId}-${r}`}}mapSelectedItems(){const p=this._ngSelect.multiple;for(const r of this.selectedItems){const m=this._ngSelect.bindValue?this.resolveNested(r.value,this._ngSelect.bindValue):r.value,v=pt(m)?this.findItem(m):null;this._selectionModel.unselect(r,p),this._selectionModel.select(v||r,p,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(r=>-1===this.selectedItems.indexOf(r)))}_showSelected(p){if(this._filteredItems.push(p),p.parent){const r=p.parent;this._filteredItems.find(v=>v===r)||this._filteredItems.push(r)}else if(p.children)for(const r of p.children)r.selected=!1,this._filteredItems.push(r);this._filteredItems=[...this._filteredItems.sort((r,m)=>r.index-m.index)]}_hideSelected(p){this._filteredItems=this._filteredItems.filter(r=>r!==p),p.parent?p.parent.children.every(m=>m.selected)&&(this._filteredItems=this._filteredItems.filter(m=>m!==p.parent)):p.children&&(this._filteredItems=this.filteredItems.filter(r=>r.parent!==p))}_defaultSearchFn(p,r){return D(r.label).toLocaleLowerCase().indexOf(p)>-1}_getNextItemIndex(p){return p>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(p){0===this._filteredItems.length||this._filteredItems.every(r=>r.disabled)||(this._markedIndex=this._getNextItemIndex(p),this.markedItem.disabled&&this._stepToItem(p))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const p=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&p<0?-1:Math.max(this.markedIndex,p)}_groupBy(p,r){const m=new Map;if(0===p.length)return m;if(Array.isArray(p[0].value[r])){for(const H of p){const mt=(H.value[r]||[]).map((It,Tt)=>this.mapItem(It,Tt));m.set(H,mt)}return m}const v=Ht(this._ngSelect.groupBy),w=H=>{const mt=v?r(H.value):H.value[r];return pt(mt)?mt:void 0};for(const H of p){const mt=w(H),It=m.get(mt);It?It.push(H):m.set(mt,[H])}return m}_flatten(p){const r=Ht(this._ngSelect.groupBy),m=[];for(const v of Array.from(p.keys())){let w=m.length;if(void 0===v){const Ot=p.get(void 0)||[];m.push(...Ot.map(Nt=>(Nt.index=w++,Nt)));continue}const H=ot(v),mt={label:H?"":String(v),children:void 0,parent:null,index:w++,disabled:!this._ngSelect.selectableGroup,htmlId:u()},It=r?this._ngSelect.bindLabel:this._ngSelect.groupBy,Tt=this._ngSelect.groupValue||(()=>H?v.value:{[It]:v}),Ut=p.get(v).map(Ot=>(Ot.parent=mt,Ot.children=void 0,Ot.index=w++,Ot));mt.children=Ut,mt.value=Tt(v,Ut.map(Ot=>Ot.value)),m.push(mt),m.push(...Ut)}return m}}var P=(()=>{return(h=P||(P={}))[h.Tab=9]="Tab",h[h.Enter=13]="Enter",h[h.Esc=27]="Esc",h[h.Space=32]="Space",h[h.ArrowUp=38]="ArrowUp",h[h.ArrowDown=40]="ArrowDown",h[h.Backspace=8]="Backspace",P;var h})();let W=(()=>{class h{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(r,m,v){const w=this._dimensions,H=w.itemHeight*m,It=Math.max(0,r)/H*m;let Tt=Math.min(m,Math.ceil(It)+(w.itemsPerViewport+1));const Ot=Math.max(0,Tt-w.itemsPerViewport);let Nt=Math.min(Ot,Math.floor(It)),ie=w.itemHeight*Math.ceil(Nt)-w.itemHeight*Math.min(Nt,v);return ie=isNaN(ie)?0:ie,Nt=isNaN(Nt)?-1:Nt,Tt=isNaN(Tt)?-1:Tt,Nt-=v,Nt=Math.max(0,Nt),Tt+=v,Tt=Math.min(m,Tt),{topPadding:ie,scrollHeight:H,start:Nt,end:Tt}}setDimensions(r,m){const v=Math.max(1,Math.floor(m/r));this._dimensions={itemHeight:r,panelHeight:m,itemsPerViewport:v}}getScrollTo(r,m,v){const{panelHeight:w}=this.dimensions,H=r+m,It=v+w;return w>=H&&v===r?null:H>It?v+H-It:r<=v?r:null}}return h.\u0275fac=function(r){return new(r||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})();const J=["top","right","bottom","left"],nt=typeof requestAnimationFrame<"u"?rt.Z:st.E;let ut=(()=>{class h{constructor(r,m,v,w,H){this._renderer=r,this._zone=m,this._panelService=v,this._document=H,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new e.vpe,this.scroll=new e.vpe,this.scrollToEnd=new e.vpe,this.outsideClick=new e.vpe,this._destroy$=new bt.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=w.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(r){r!==this._itemsLength&&(this._itemsLength=r,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:r,panelHeight:m}=this._panelService.dimensions,v=this.markedItem.index*r;return m>v?0:v}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(r){if(r.items){const m=r.items;this._onItemsChange(m.currentValue,m.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(r,m=!1){if(!r)return;const v=this.items.indexOf(r);if(v<0||v>=this.itemsLength)return;let w;if(this.virtualScroll){const H=this._panelService.dimensions.itemHeight;w=this._panelService.getScrollTo(v*H,H,this._lastScrollPosition)}else{const H=this._dropdown.querySelector(`#${r.htmlId}`);w=this._panelService.getScrollTo(H.offsetTop,H.clientHeight,m?H.offsetTop:this._lastScrollPosition)}pt(w)&&(this._scrollablePanel.scrollTop=w)}scrollToTag(){const r=this._scrollablePanel;r.scrollTop=r.scrollHeight-r.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),J.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(r){J.forEach(v=>{const w=`ng-select-${v}`;this._renderer.removeClass(this._dropdown,w),this._renderer.removeClass(this._select,w)});const m=`ng-select-${r}`;this._renderer.addClass(this._dropdown,m),this._renderer.addClass(this._select,m)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,L.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,z.R)(this._destroy$),(0,_.e)(0,nt)).subscribe(r=>{const m=r.path||r.composedPath&&r.composedPath();this._onContentScrolled(m&&0!==m.length?m[0].scrollTop:r.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,ft.T)((0,L.R)(this._document,"touchstart",{capture:!0}),(0,L.R)(this._document,"mousedown",{capture:!0})).pipe((0,z.R)(this._destroy$)).subscribe(r=>this._checkToClose(r))})}_checkToClose(r){if(this._select.contains(r.target)||this._dropdown.contains(r.target))return;const m=r.path||r.composedPath&&r.composedPath();r.target&&r.target.shadowRoot&&m&&m[0]&&this._select.contains(m[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(r,m){this.items=r||[],this._scrollToEndFired=!1,this.itemsLength=r.length,this.virtualScroll?this._updateItemsRange(m):(this._setVirtualHeight(),this._updateItems(m))}_updateItems(r){this.update.emit(this.items),!1!==r&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,r)})})}_updateItemsRange(r){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{r?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(r){this.virtualScroll&&this._renderItemsRange(r),this._lastScrollPosition=r,this._fireScrollToEnd(r)}_updateVirtualHeight(r){this._updateScrollHeight&&(this._virtualPadding.style.height=`${r}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(r=null){if(r&&this._lastScrollPosition===r)return;const m=this._panelService.calculateItems(r=r||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(m.scrollHeight),this._contentPanel.style.transform=`translateY(${m.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(m.start,m.end)),this.scroll.emit({start:m.start,end:m.end})}),pt(r)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=r,this._lastScrollPosition=r)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[r]=this.items;return this.update.emit([r]),Promise.resolve().then(()=>{const v=this._dropdown.querySelector(`#${r.htmlId}`).clientHeight;return this._virtualPadding.style.height=v*this.itemsLength+"px",this._panelService.setDimensions(v,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(r){this._scrollToEndFired||0===r||r+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(r){if("auto"!==this.position)return this.position;const m=this._select.getBoundingClientRect(),v=document.documentElement.scrollTop||document.body.scrollTop;return m.top+window.pageYOffset+m.height+r.getBoundingClientRect().height>v+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const r=this._select.getBoundingClientRect(),m=this._parent.getBoundingClientRect();this._dropdown.style.left=r.left-m.left+"px",this._dropdown.style.width=r.width+"px",this._dropdown.style.minWidth=r.width+"px"}_updateYPosition(){const r=this._select.getBoundingClientRect(),m=this._parent.getBoundingClientRect(),v=r.height;"top"===this._currentPosition?(this._dropdown.style.bottom=m.bottom-r.bottom+v+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=r.top-m.top+v+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,L.R)(this._dropdown,"mousedown").pipe((0,z.R)(this._destroy$)).subscribe(r=>{"INPUT"!==r.target.tagName&&r.preventDefault()})})}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(W),e.Y36(e.SBq),e.Y36(dt.K0,8))},h.\u0275cmp=e.Xpm({type:h,selectors:[["ng-dropdown-panel"]],viewQuery:function(r,m){if(1&r&&(e.Gf(ct,7,e.SBq),e.Gf(C,7,e.SBq),e.Gf(Et,7,e.SBq)),2&r){let v;e.iGM(v=e.CRH())&&(m.contentElementRef=v.first),e.iGM(v=e.CRH())&&(m.scrollElementRef=v.first),e.iGM(v=e.CRH())&&(m.paddingElementRef=v.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[e.TTD],ngContentSelectors:it,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(r,m){1&r&&(e.F$t(),e.YNc(0,X,2,4,"div",0),e.TgZ(1,"div",1,2),e._UZ(3,"div",null,3),e.TgZ(5,"div",null,4),e.Hsn(7),e.qZA()(),e.YNc(8,k,2,4,"div",5)),2&r&&(e.Q6J("ngIf",m.headerTemplate),e.xp6(3),e.ekj("total-padding",m.virtualScroll),e.xp6(2),e.ekj("scrollable-content",m.virtualScroll&&m.items.length),e.xp6(3),e.Q6J("ngIf",m.footerTemplate))},dependencies:[dt.O5,dt.tP],encapsulation:2,changeDetection:0}),h})(),Jt=(()=>{class h{constructor(r){this.elementRef=r,this.stateChange$=new bt.x,this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=this._isDisabled(r)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(r){r.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(r){return null!=r&&"false"!=`${r}`}}return h.\u0275fac=function(r){return new(r||h)(e.Y36(e.SBq))},h.\u0275cmp=e.Xpm({type:h,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[e.TTD],ngContentSelectors:it,decls:1,vars:0,template:function(r,m){1&r&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),h})(),oe=(()=>{class h{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}return h.\u0275fac=function(r){return new(r||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})(),de=(()=>{class h{warn(r){console.warn(r)}}return h.\u0275fac=function(r){return new(r||h)},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const se=new e.OlP("ng-select-selection-model");let qt=(()=>{class h{constructor(r,m,v,w,H,mt,It){this.classes=r,this.autoFocus=m,this.config=v,this._cd=mt,this._console=It,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=Tt=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new e.vpe,this.focusEvent=new e.vpe,this.changeEvent=new e.vpe,this.openEvent=new e.vpe,this.closeEvent=new e.vpe,this.searchEvent=new e.vpe,this.clearEvent=new e.vpe,this.addEvent=new e.vpe,this.removeEvent=new e.vpe,this.scroll=new e.vpe,this.scrollToEnd=new e.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=u(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new bt.x,this._keyPress$=new bt.x,this._onChange=Tt=>{},this._onTouched=()=>{},this.clearItem=Tt=>{const Ut=this.selectedItems.find(Ot=>Ot.value===Tt);this.unselect(Ut)},this.trackByOption=(Tt,Ut)=>this.trackByFn?this.trackByFn(Ut.value):Ut,this._mergeGlobalConfig(v),this.itemsList=new Y(this,w()),this.element=H.nativeElement}get items(){return this._items}set items(r){null===r&&(r=[]),this._itemsAreUsed=!0,this._items=r}get compareWith(){return this._compareWith}set compareWith(r){if(null!=r&&!Ht(r))throw Error("`compareWith` must be a function.");this._compareWith=r}get clearSearchOnAdd(){return pt(this._clearSearchOnAdd)?this._clearSearchOnAdd:pt(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(r){this._clearSearchOnAdd=r}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(r=>r.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(r){r.multiple&&this.itemsList.clearSelected(),r.items&&this._setItems(r.items.currentValue||[]),r.isOpen&&(this._manualOpen=pt(r.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),pt(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(r){if(P[r.which]){if(!1===this.keyDownFn(r))return;this.handleKeyCode(r)}else r.key&&1===r.key.length&&this._keyPress$.next(r.key.toLocaleLowerCase())}handleKeyCode(r){switch(r.which){case P.ArrowDown:this._handleArrowDown(r);break;case P.ArrowUp:this._handleArrowUp(r);break;case P.Space:this._handleSpace(r);break;case P.Enter:this._handleEnter(r);break;case P.Tab:this._handleTab(r);break;case P.Esc:this.close(),r.preventDefault();break;case P.Backspace:this._handleBackspace()}}handleMousedown(r){const m=r.target;"INPUT"!==m.tagName&&r.preventDefault(),m.classList.contains("ng-clear-wrapper")?this.handleClearClick():m.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():m.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(r){this.itemsList.clearSelected(),this._handleWriteValue(r),this._cd.markForCheck()}registerOnChange(r){this._onChange=r}registerOnTouched(r){this._onTouched=r}setDisabledState(r){this._disabled=r,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(r){!r||r.disabled||this.disabled||(this.multiple&&r.selected?this.unselect(r):this.select(r),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(r){r.selected||(this.itemsList.select(r),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(r.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(r){r&&(this.itemsList.unselect(r),this.focus(),this._updateNgModel(),this.removeEvent.emit(r))}selectTag(){let r;r=Ht(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const m=v=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(v,null):this.itemsList.addItem(v);!function Yt(h){return h instanceof Promise}(r)?r&&this.select(m(r)):r.then(v=>this.select(m(v))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const r=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(m=>m.label.toLowerCase()===r)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(m=>m.label.toLowerCase()===r))&&!this.loading}showNoItemsFound(){const r=0===this.itemsList.filteredItems.length;return(r&&!this._isTypeahead&&!this.loading||r&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(r){this._isComposing=!1,!this.searchWhileComposing&&this.filter(r)}filter(r){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=r,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(r),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:r,items:this.itemsList.filteredItems.map(m=>m.value)}),this.open())}onInputFocus(r){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(r),this.focused=!0)}onInputBlur(r){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(r),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(r){r.disabled||this.itemsList.markItem(r)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const r=this.selectedItems&&this.selectedItems[0];this.searchTerm=r&&r.label||null}_setItems(r){const m=r[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=pt(m)?!ot(m):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(r),r.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&pt(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const r=v=>{this.items=v.map(w=>({$ngOptionValue:w.value,$ngOptionLabel:w.elementRef.nativeElement.innerHTML,disabled:w.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},m=()=>{const v=(0,ft.T)(this.ngOptions.changes,this._destroy$);(0,ft.T)(...this.ngOptions.map(w=>w.stateChange$)).pipe((0,z.R)(v)).subscribe(w=>{const H=this.itemsList.findItem(w.value);H.disabled=w.disabled,H.label=w.label||H.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,i.O)(this.ngOptions),(0,z.R)(this._destroy$)).subscribe(v=>{this.bindLabel=this._defaultLabel,r(v),m()})}_isValidWriteValue(r){if(!pt(r)||this.multiple&&""===r||Array.isArray(r)&&0===r.length)return!1;const m=v=>!(!pt(this.compareWith)&&ot(v)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(v)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(r)?r.every(v=>m(v)):(this._console.warn("Multiple select ngModel should be array."),!1):m(r)}_handleWriteValue(r){if(!this._isValidWriteValue(r))return;const m=v=>{let w=this.itemsList.findItem(v);if(w)this.itemsList.select(w);else{const H=ot(v);H||!H&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(v,null)):this.bindValue&&(w={[this.bindLabel]:null,[this.bindValue]:v},this.itemsList.select(this.itemsList.mapItem(w,null)))}};this.multiple?r.forEach(v=>m(v)):m(r)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,z.R)(this._destroy$),(0,$.b)(r=>this._pressedKeys.push(r)),(0,lt.b)(200),(0,B.h)(()=>this._pressedKeys.length>0),(0,Z.U)(()=>this._pressedKeys.join(""))).subscribe(r=>{const m=this.itemsList.findByLabel(r);m&&(this.isOpen?(this.itemsList.markItem(m),this._scrollToMarked(),this._cd.markForCheck()):this.select(m)),this._pressedKeys=[]})}_setInputAttributes(){const r=this.searchInput.nativeElement,m={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const v of Object.keys(m))r.setAttribute(v,m[v])}_updateNgModel(){const r=[];for(const v of this.selectedItems)if(this.bindValue){let w=null;w=v.children?v.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(v.value,this.bindValue),r.push(w)}else r.push(v.value);const m=this.selectedItems.map(v=>v.value);this.multiple?(this._onChange(r),this.changeEvent.emit(m)):(this._onChange(pt(r[0])?r[0]:null),this.changeEvent.emit(m[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(r){this.searchTerm=r,this._isTypeahead&&this.typeahead.next(r)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(r){!1===this.isOpen&&!this.addTag||(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),r.preventDefault()):this.showAddTag?(this.selectTag(),r.preventDefault()):this.close():this.close())}_handleEnter(r){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}r.preventDefault()}_handleSpace(r){this.isOpen||this._manualOpen||(this.open(),r.preventDefault())}_handleArrowDown(r){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),r.preventDefault()}_handleArrowUp(r){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),r.preventDefault())}_nextItemIsTag(r){const m=this.itemsList.markedIndex+r;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(m<0||m===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const r=this.searchTerm&&this.searchTerm.trim();return r&&r.length>=this.minTermLength}_mergeGlobalConfig(r){this.placeholder=this.placeholder||r.placeholder,this.notFoundText=this.notFoundText||r.notFoundText,this.typeToSearchText=this.typeToSearchText||r.typeToSearchText,this.addTagText=this.addTagText||r.addTagText,this.loadingText=this.loadingText||r.loadingText,this.clearAllText=this.clearAllText||r.clearAllText,this.virtualScroll=pt(this.virtualScroll)?this.virtualScroll:!!pt(r.disableVirtualScroll)&&!r.disableVirtualScroll,this.openOnEnter=pt(this.openOnEnter)?this.openOnEnter:r.openOnEnter,this.appendTo=this.appendTo||r.appendTo,this.bindValue=this.bindValue||r.bindValue,this.bindLabel=this.bindLabel||r.bindLabel,this.appearance=this.appearance||r.appearance}}return h.\u0275fac=function(r){return new(r||h)(e.$8M("class"),e.$8M("autofocus"),e.Y36(oe),e.Y36(se),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(de))},h.\u0275cmp=e.Xpm({type:h,selectors:[["ng-select"]],contentQueries:function(r,m,v){if(1&r&&(e.Suo(v,Ft,5,e.Rgc),e.Suo(v,Xt,5,e.Rgc),e.Suo(v,ee,5,e.Rgc),e.Suo(v,ne,5,e.Rgc),e.Suo(v,T,5,e.Rgc),e.Suo(v,G,5,e.Rgc),e.Suo(v,b,5,e.Rgc),e.Suo(v,F,5,e.Rgc),e.Suo(v,g,5,e.Rgc),e.Suo(v,n,5,e.Rgc),e.Suo(v,s,5,e.Rgc),e.Suo(v,Jt,5)),2&r){let w;e.iGM(w=e.CRH())&&(m.optionTemplate=w.first),e.iGM(w=e.CRH())&&(m.optgroupTemplate=w.first),e.iGM(w=e.CRH())&&(m.labelTemplate=w.first),e.iGM(w=e.CRH())&&(m.multiLabelTemplate=w.first),e.iGM(w=e.CRH())&&(m.headerTemplate=w.first),e.iGM(w=e.CRH())&&(m.footerTemplate=w.first),e.iGM(w=e.CRH())&&(m.notFoundTemplate=w.first),e.iGM(w=e.CRH())&&(m.typeToSearchTemplate=w.first),e.iGM(w=e.CRH())&&(m.loadingTextTemplate=w.first),e.iGM(w=e.CRH())&&(m.tagTemplate=w.first),e.iGM(w=e.CRH())&&(m.loadingSpinnerTemplate=w.first),e.iGM(w=e.CRH())&&(m.ngOptions=w)}},viewQuery:function(r,m){if(1&r&&(e.Gf(ut,5),e.Gf(O,7)),2&r){let v;e.iGM(v=e.CRH())&&(m.dropdownPanel=v.first),e.iGM(v=e.CRH())&&(m.searchInput=v.first)}},hostVars:20,hostBindings:function(r,m){1&r&&e.NdJ("keydown",function(w){return m.handleKeyDown(w)}),2&r&&e.ekj("ng-select-typeahead",m.typeahead)("ng-select-multiple",m.multiple)("ng-select-taggable",m.addTag)("ng-select-searchable",m.searchable)("ng-select-clearable",m.clearable)("ng-select-opened",m.isOpen)("ng-select",m.useDefaultClass)("ng-select-disabled",m.disabled)("ng-select-filtered",m.filtered)("ng-select-single",m.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[e._Bn([{provide:R.JU,useExisting:(0,e.Gpc)(()=>h),multi:!0},W]),e.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(r,m){if(1&r){const v=e.EpF();e.TgZ(0,"div",0),e.NdJ("mousedown",function(H){return m.handleMousedown(H)}),e.TgZ(1,"div",1)(2,"div",2),e._uU(3),e.qZA(),e.YNc(4,At,2,2,"ng-container",3),e.YNc(5,Bt,1,5,null,3),e.TgZ(6,"div",4)(7,"input",5,6),e.NdJ("input",function(){e.CHM(v);const H=e.MAs(8);return e.KtG(m.filter(H.value))})("compositionstart",function(){return m.onCompositionStart()})("compositionend",function(){e.CHM(v);const H=e.MAs(8);return e.KtG(m.onCompositionEnd(H.value))})("focus",function(H){return m.onInputFocus(H)})("blur",function(H){return m.onInputBlur(H)})("change",function(H){return H.stopPropagation()}),e.qZA()()(),e.YNc(9,Rt,4,1,"ng-container",3),e.YNc(10,wt,3,1,"span",7),e.TgZ(11,"span",8),e._UZ(12,"span",9),e.qZA()(),e.YNc(13,A,7,19,"ng-dropdown-panel",10)}2&r&&(e.ekj("ng-appearance-outline","outline"===m.appearance)("ng-has-value",m.hasValue),e.xp6(3),e.Oqu(m.placeholder),e.xp6(1),e.Q6J("ngIf",(!m.multiLabelTemplate||!m.multiple)&&m.selectedItems.length>0),e.xp6(1),e.Q6J("ngIf",m.multiple&&m.multiLabelTemplate&&m.selectedValues.length>0),e.xp6(1),e.uIk("aria-expanded",m.isOpen)("aria-owns",m.isOpen?m.dropdownId:null),e.xp6(1),e.Q6J("readOnly",!m.searchable||m.itemsList.maxItemsSelected)("disabled",m.disabled)("value",m.searchTerm?m.searchTerm:""),e.uIk("id",m.labelForId)("tabindex",m.tabIndex)("aria-activedescendant",m.isOpen?null==m.itemsList||null==m.itemsList.markedItem?null:m.itemsList.markedItem.htmlId:null)("aria-controls",m.isOpen?m.dropdownId:null),e.xp6(2),e.Q6J("ngIf",m.loading),e.xp6(1),e.Q6J("ngIf",m.showClear()),e.xp6(3),e.Q6J("ngIf",m.isOpen))},dependencies:[dt.mk,dt.sg,dt.O5,dt.tP,ut,Qt],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0}),h})();function ce(){return new re}class re{constructor(){this._selected=[]}get value(){return this._selected}select(p,r,m){if(p.selected=!0,(!p.children||!r&&m)&&this._selected.push(p),r)if(p.parent){const v=p.parent.children.length,w=p.parent.children.filter(H=>H.selected).length;p.parent.selected=v===w}else p.children&&(this._setChildrenSelectedState(p.children,!0),this._removeChildren(p),this._selected=m&&this._activeChildren(p)?[...this._selected.filter(v=>v.parent!==p),p]:[...this._selected,...p.children.filter(v=>!v.disabled)])}unselect(p,r){if(this._selected=this._selected.filter(m=>m!==p),p.selected=!1,r)if(p.parent&&p.parent.selected){const m=p.parent.children;this._removeParent(p.parent),this._removeChildren(p.parent),this._selected.push(...m.filter(v=>v!==p&&!v.disabled)),p.parent.selected=!1}else p.children&&(this._setChildrenSelectedState(p.children,!1),this._removeChildren(p))}clear(p){this._selected=p?this._selected.filter(r=>r.disabled):[]}_setChildrenSelectedState(p,r){for(const m of p)m.disabled||(m.selected=r)}_removeChildren(p){this._selected=[...this._selected.filter(r=>r.parent!==p),...p.children.filter(r=>r.parent===p&&r.disabled&&r.selected)]}_removeParent(p){this._selected=this._selected.filter(r=>r!==p)}_activeChildren(p){return p.children.every(r=>!r.disabled||r.selected)}}let le=(()=>{class h{}return h.\u0275fac=function(r){return new(r||h)},h.\u0275mod=e.oAB({type:h}),h.\u0275inj=e.cJS({providers:[{provide:se,useValue:ce}],imports:[dt.ez]}),h})()}}]);
|