var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"pt"});
"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\.?/,"").length,e=parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;if(i===Math.floor(i)&&i>=0&&i<=1)return 1;if(e===0&&!(i===0)&&i%1000000===0&&v===0||!(e>=0&&e<=5))return 4;return 5}global.ng.common.locales["pt"]=["pt",[["AM","PM"],u,u],u,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."],["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],u,[["a.C.","d.C."],u,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",u,u,u],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4\xA0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{"AUD":["AU$","$"],"BYN":[u,"\u0440."],"JPY":["JP\xA5","\xA5"],"PHP":[u,"\u20B1"],"PTE":["Esc."],"RON":[u,"L"],"SYP":[u,"S\xA3"],"THB":["\u0E3F"],"TWD":["NT$"],"USD":["US$","$"]},"ltr",plural,[[["meia-noite","meio-dia","da manh\xE3","da tarde","da noite","da madrugada"],u,u],[["meia-noite","meio-dia","manh\xE3","tarde","noite","madrugada"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","19:00"],["19:00","24:00"],["00:00","06:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);;
(self.webpackChunkkrooze=self.webpackChunkkrooze||[]).push([[179],{72616:(Xe,me,h)=>{"use strict";h.d(me,{j:()=>s});var e=h(43740);class s{static stringToDate(F){const Z=F?.toString();if(Z&&8===Z.length){const O=+Z.slice(0,4),H=+Z.slice(4,6)-1,z=+Z.slice(6);return new Date(O,H,z)}return null}static ngbDateToString(F){if(F&&F.year&&F.month&&F.day){const H=F.day;return`${F.year}${this.pad(F.month,2)}${this.pad(H,2)}`}}static stringToNgbDate(F){if(F&&8===F.length){const Z=+F.slice(0,4),O=+F.slice(4,6),H=+F.slice(6);return new e.qj(Z,O,H)}}static pad(F,Z){let O=F+"";for(;O.length<Z;)O="0"+O;return O}static ngbDateToKzDate(F){return this.stringToDate(this.ngbDateToString(F)||"")}}},6135:(Xe,me,h)=>{"use strict";h.d(me,{V:()=>K});var e=h(7913),s=h(87549);class K{static roomConfigurationToRoomSelection(Z){return new e.V({Rooms:[new s.c({PaxAges:this.roomConfigurationToPaxAges(Z)})]})}static roomConfigurationToPaxAges(Z){const O=[],H=Z.minCapacity,z=Z.selected.adts,N=Z.selected.chdAges||[];for(let E=0;E<(z||H);E++)O.push({PaxType:"ADT"});for(const E of N)O.push({PaxType:"CHD",PaxAge:E});return O}static roomConfigurationToChildrenAges(Z){const O=Z.Rooms[0].PaxAges.filter(H=>"CHD"===H.PaxType).map(H=>H.PaxAge).toString();return""!==O?O:null}}},57484:(Xe,me,h)=>{"use strict";h.d(me,{T:()=>Z});var e=h(80529),s=h(94650),K=h(27278),F=h(90263);let Z=(()=>{class O{constructor(z,N,E){this.modalService=z,this.authService=N,this.zone=E}static throwError(z){if(z)throw new e.UA(z);throw new Error("string"==typeof z?z:"Internal server error")}openErrorModal(z="",N=""){const E={title:z||"Ops. Algo deu errado.",description:N||"Estamos trabalhando para resolver o quanto antes. Desculpe pelo inconveniente.",primaryBtn:!0,primaryBtnDescription:"Ok",secundaryBtn:!1,showCloseBtn:!1,ngModalConfig:{size:"sm",centered:!0,backdrop:"static"}};this.modalService.openModalErroAlert(E)}}return O.\u0275fac=function(z){return new(z||O)(s.LFG(K.Z),s.LFG(F.e),s.LFG(s.R0b))},O.\u0275prov=s.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})()},84205:(Xe,me,h)=>{"use strict";h.d(me,{CR:()=>K,H3:()=>s,Xl:()=>e});class e{constructor(O){Object.assign(this,O)}}class s{constructor(O){Object.assign(this,O)}}class K{constructor(O){Object.assign(this,O)}}},83311:(Xe,me,h)=>{"use strict";h.d(me,{S:()=>s,W:()=>e});var e=(()=>{return(F=e||(e={})).byItinerary="ResultByItinerary",F.byShip="ResultByShip",F.byDate="ResultByDate",e;var F})(),s=(()=>{return(F=s||(s={})).byItinerary="Itinerary/Results",F.byShip="Ship/Results",F.byDate="Date/Results",s;var F})()},24658:(Xe,me,h)=>{"use strict";h.d(me,{U:()=>K});var e=h(36895),s=h(94650);let K=(()=>{class F{}return F.\u0275fac=function(O){return new(O||F)},F.\u0275mod=s.oAB({type:F}),F.\u0275inj=s.cJS({imports:[e.ez]}),F})()},66451:(Xe,me,h)=>{"use strict";h.d(me,{L:()=>K});var e=h(36895),s=h(94650);let K=(()=>{class F{transform(O,H,z,N="NaN"){if((O||0===O)&&H){if(z&&z?.length>0){const y=z.sort((U,b)=>U.order-b.order)[0];return`${Math.floor(O/y?.conversionRate)} ${y.currencyDisplay}`}{const E=H?.locale||"",y=H?.code||"",C="US$"===H?.display?"US$ ":H?.display||"",U=H?.digitsInfo||"1.0-0",b="1.0-0"===H?.digitsInfo?Math.floor(O):O;return(0,e.xG)(b||0,E,C,y,U)}}return N}}return F.\u0275fac=function(O){return new(O||F)},F.\u0275pipe=s.Yjl({name:"kzcurrency",type:F,pure:!0}),F})()},55496:(Xe,me,h)=>{"use strict";h.d(me,{E:()=>F});var e=h(26772),s=h(94650),K=h(27722);let F=(()=>{class Z{constructor(H){this.startupService=H}transform(H,z=e.xS.large){return"string"==typeof H?(0,e.X7)(H,this.startupService.config):(0,e.gJ)(H,z,this.startupService.config)}}return Z.\u0275fac=function(H){return new(H||Z)(s.Y36(K.q,16))},Z.\u0275pipe=s.Yjl({name:"contentImage",type:Z,pure:!0}),Z})()},26652:(Xe,me,h)=>{"use strict";h.d(me,{E:()=>K});var e=h(36895),s=h(94650);let K=(()=>{class F{}return F.\u0275fac=function(O){return new(O||F)},F.\u0275mod=s.oAB({type:F}),F.\u0275inj=s.cJS({imports:[e.ez]}),F})()},49607:(Xe,me,h)=>{"use strict";h.d(me,{O:()=>F});var e=h(26772),s=h(94650),K=h(27722);let F=(()=>{class Z{constructor(H){this.startupService=H}transform(H,z){return H?(0,e.S5)(H,z,this.startupService.config):""}}return Z.\u0275fac=function(H){return new(H||Z)(s.Y36(K.q,16))},Z.\u0275pipe=s.Yjl({name:"srcsetImage",type:Z,pure:!0}),Z})()},32868:(Xe,me,h)=>{"use strict";h.d(me,{P:()=>K});var e=h(36895),s=h(94650);let K=(()=>{class F{}return F.\u0275fac=function(O){return new(O||F)},F.\u0275mod=s.oAB({type:F}),F.\u0275inj=s.cJS({imports:[e.ez]}),F})()},52037:(Xe,me,h)=>{"use strict";h.d(me,{Y:()=>z});var e=h(80529),s=h(46528),K=h(24850),F=h(94650),Z=h(90263),O=h(27722);const H={headers:new e.WM({Accept:"application/json","Content-Type":"application/json"})};let z=(()=>{class N{constructor(y,C,U){this.http=y,this.auth=C,this.config=U,this.baseUrl=`${this.config?.config?.urlCruiseApi}/${this.config?.config?.culture}`}list(y){const C=`${this.baseUrl}/Agencies/?${(0,s.xU)(y)}`;return this.http.get(C,H).pipe((0,K.U)(U=>U.data))}get(y){return this.http.get(`${this.baseUrl}/Agencies/${y}`,H).pipe((0,K.U)(U=>U.data))}edit(y,C){const U=this.convertAgencyFormValue(y,C);return this.http.put(`${this.baseUrl}/Agencies`,U,H)}editAgencyCommission(y,C){const U={...y,selectedCommissionCode:C};return this.http.put(`${this.baseUrl}/Agencies`,U,H)}add(y){const C=this.convertAgencyFormValue(y);return this.http.post(`${this.baseUrl}/Agencies/`,C,H)}delete(y){return this.http.delete(`${this.baseUrl}/Agencies/${y}`,H)}getCruiseLines(){return this.http.get(`${this.baseUrl}/CruiseLines`,H).pipe((0,K.U)(C=>C.data))}getCommissions(y){return this.http.get(`${this.baseUrl}/Agencies/${y}/Commissions`,H).pipe((0,K.U)(U=>U.data))}getCommission(y){return this.http.get(`${this.baseUrl}/Commission/${y}`,H).pipe((0,K.U)(U=>U.data))}addCommissions(y,C){return this.http.post(`${this.baseUrl}/Agencies/${y}/Commissions`,C,H)}editCommissions(y,C){return this.http.put(`${this.baseUrl}/Agencies/${y}/Commissions`,C,H)}deleteCommissions(y,C){return this.http.delete(`${this.baseUrl}/Agencies/${y}/Commissions/${C}`,H)}listUsers(y,C){const U=`${this.baseUrl}/Users/?companyId=${y}&${(0,s.xU)(C)}`;return this.http.get(U,H).pipe((0,K.U)(b=>b.data))}getUser(y){return this.http.get(`${this.baseUrl}/Users/${y}`,H)}editUser(y){return this.http.put(`${this.baseUrl}/Users/${y?.id}`,y,H)}editMyAccount(y){return this.http.put(`${this.baseUrl}/Users/MyUser`,y,H)}addUser(y){return y.active=!0,this.http.post(`${this.baseUrl}/Users`,y,H)}deleteUser(y){return this.http.delete(`${this.baseUrl}/Users/${y}`,H)}listUsersRoles(){return this.http.get(`${this.baseUrl}/Users/SubRoles`,H).pipe((0,K.U)(C=>C.data))}listSpecialSkillsRoles(){return this.http.get(`${this.baseUrl}/Users/Roles`,H).pipe((0,K.U)(C=>C.data))}validateEmail(y,C){return this.http.get(`${this.baseUrl}/Users/ValidateEmail/?email=${C}&companyId=${y}`,H)}convertAgencyFormValue(y,C){return{...y,active:!!y.active,parent:{agencyId:this.auth.user.company_id},agencyData:{bairro:y.bairro,cep:y.cep,cidade:y.cidade,complemento:y.complemento,email:y.email,endereco:y.endereco,estado:y.estado,nome_emergencia:y.nome_emergencia,companyDocument:y.companyDocument,numero:y.numero,telefone_ddi:y.telefone_ddi,telefone_ddd:y.telefone_ddd,telefone:y.telefone,telefone_emergencia_ddi:y.telefone_emergencia_ddi,telefone_emergencia_ddd:y.telefone_emergencia_ddd,telefone_emergencia:y.telefone_emergencia}}}getParentUsers(y){const C=`${this.baseUrl}/Users/ParentUsers/?${(0,s.xU)(y)}`;return this.http.get(C,H).pipe((0,K.U)(U=>U.data))}}return N.\u0275fac=function(y){return new(y||N)(F.LFG(e.eN),F.LFG(Z.e),F.LFG(O.q))},N.\u0275prov=F.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},90263:(Xe,me,h)=>{"use strict";h.d(me,{e:()=>U});var e=h(591),s=h(21086),K=h(61737),F=h(87545),Z=h(2994),O=h(42394),H=h(94650),z=h(80529),N=h(36690),E=h(27722),y=h(27278),C=h(57924);let U=(()=>{class b{constructor(w,ee,oe,_e,Ne){this.http=w,this.router=ee,this.config=oe,this.modalService=_e,this.loadService=Ne,this.userSubject=new e.X(null),this.user$=this.userSubject.asObservable(),this.tokenKeyName="kz-token",this.userKeyName="kz-user",this.permissionKeyName="kz-permission",this.rolesKeyName="kz-roles"}isLogged(){const w="B2C"===this.config?.config?.clientBusiness?.toLocaleUpperCase(),ee=localStorage.getItem(this.tokenKeyName),oe=localStorage.getItem(this.userKeyName),_e=localStorage.getItem(this.permissionKeyName),Ne=localStorage.getItem(this.rolesKeyName),te=JSON.parse(oe)?.company_code;let de=!0;return ee&&!this.token&&(this.token=ee,(0,O.d8)(this.tokenKeyName,this.token,1)),oe&&!this.user&&(this.user=JSON.parse(oe),this.userSubject.next(JSON.parse(oe))),_e&&!this.permissions&&(this.permissions=_e),Ne&&!this.roles&&(this.roles=Ne),te&&(de=te.toLowerCase().indexOf(this.config?.config?.clientCode.toLowerCase())>-1),!(!this.token||!w)||(w&&"KRZ"!==this.config?.config?.clientCode?(this.token=this.config.tokenB2c,!0):de&&this.token)}login(w,ee){if(this.isLogged())return(0,s.of)(this.user);const oe=this.getLogin(w,ee),_e=this.getPermissions();let Ne;return oe.pipe((0,F.w)(te=>te.data.accessToken&&"success"===te.status?(Ne=te,this.token=te.data.accessToken,localStorage.setItem(this.tokenKeyName,this.token),_e):(0,K._)("Identifier invalid.")),(0,Z.b)(te=>{this.handleLogin(Ne,te)}))}saveToken(w,ee){this.token=w,(0,O.d8)(this.tokenKeyName,this.token,1),this.loadService.show("Autenticando usu\xe1rio","Aguarde enquanto realizamos sua autentica\xe7\xe3o"),this.getPermissions().subscribe(oe=>{if(oe?.company_code?.split("-")[0]===this.config?.config?.clientCode){const Ne=oe.components;this.user=oe,this.userSubject.next(oe),this.permissions=Ne,localStorage.setItem(this.permissionKeyName,this.permissions),localStorage.setItem(this.tokenKeyName,w),localStorage.setItem(this.userKeyName,JSON.stringify(this.user)),(0,O.d8)(this.tokenKeyName,w,1),ee?window.location.href=ee:this.router.navigate(["/"])}else{const Ne={type:void 0,title:"Erro ao fazer login",description:"Por favor tente novamente ou fale com o administrador",primaryBtn:!0,primaryBtnDescription:"Ok",secundaryBtn:!1,showCloseBtn:!1,ngModalConfig:{size:"sm",centered:!0,backdrop:"static"}};this.modalService.openModalAlert(Ne)}this.loadService.hide()},oe=>{this.loadService.hide()})}getLogin(w,ee){return this.http.post(`${this.config?.config?.urlAuth}/Account/Login`,{username:w,password:ee,companyCode:this.config?.config?.clientCode})}getPermissions(){return this.http.get(`${this.config?.config?.urlAuth}/connect/userinfo`)}handleLogin(w,ee){this.user=w.data.json,this.userSubject.next(w.data.json),this.permissions=ee.components,this.roles=ee.roles,localStorage.setItem(this.userKeyName,JSON.stringify(this.user)),localStorage.setItem(this.permissionKeyName,this.permissions),localStorage.setItem(this.rolesKeyName,this.roles),(0,O.d8)(this.tokenKeyName,this.token,.04)}changePassword(w){const ee={...w,companyCode:this.config?.config?.clientCode};return this.http.post(`${this.config?.config?.urlAuth}/Account/ChangePassword`,ee)}logout(){this.clearLoginInfo();const w=this.config?.config?.urlLogout;window.location.href=w||`${window.location.origin}/auth/login`}clearLoginInfo(){this.user=null,this.userSubject.next(null),this.token=null,this.roles=null,this.permissions=null,localStorage.removeItem(this.tokenKeyName),localStorage.removeItem(this.userKeyName),localStorage.removeItem(this.permissionKeyName),localStorage.removeItem(this.rolesKeyName),localStorage.removeItem("kz-nationalities"),(0,O.nJ)(this.tokenKeyName),(0,O.nJ)("kz-vendor-info"),(0,O.nJ)("kz-user-info"),(0,O.nJ)("KzThemeCvc"),(0,O.nJ)("access_token")}resetPassword(w){const ee={...w,companyCode:this.config?.config?.clientCode};return this.http.post(`${this.config?.config?.urlAuth}/Account/ResetPassword`,ee)}requestResetPassword(w){const ee={...w,companyCode:this.config?.config?.clientCode};return this.http.post(`${this.config?.config?.urlAuth}/Account/RequestResetPassword`,ee)}registerAgencyWithNoAuth(w){const ee={bairro:w.agency.bairro,cep:w.agency.cep,cidade:w.agency.cidade,complemento:w.agency.complemento,email:w.agency.email,endereco:w.agency.endereco,estado:w.agency.estado,companyDocument:w.agency.companyDocument,numero:w.agency.numero,telefone_ddi:w.agency.telefone_ddi,telefone_ddd:w.agency.telefone_ddd,telefone:w.agency.telefone},oe={agency:{name:w.agency.name,agencyData:ee,...ee,parent:{code:this.config?.config?.clientCode},active:!1},...w.agencyData,user:{name:w.adminUser.name,email:w.adminUser.email,password:w.adminUser.password,mustBeChangePassword:!1,active:!1,roles:[{name:"ADM_AG",code:"ADM_AG"}]}};return this.http.post(`${this.config?.config?.urlCruiseApi}/${this.config?.config?.culture}/Agencies/register`,oe)}updateUserToken(w){if(!this.user){const ee=localStorage.getItem(this.userKeyName);this.user=JSON.parse(ee)}this.user.usertoken=w,localStorage.setItem(this.userKeyName,JSON.stringify(this.user)),this.userSubject.next(JSON.parse(this.user))}getRegisterTermsNoAuth(){}getLoginCvcMapa(w){const ee=new FormData;return ee.append("access_token",w),this.http.post(`${this.config?.config?.urlAuth}/account/sso/cvc/?redirectUrl=local`,ee)}getLoginRdc(w){return this.http.get(`${this.config?.config?.urlAuth}/account/sso/rdc/?redirectUrl=local&token=${w}`)}getLoginSml(w){return this.http.get(`${this.config?.config?.urlAuth}/account/sso/sml/?redirectUrl=local&aToken=${w}`)}}return b.\u0275fac=function(w){return new(w||b)(H.LFG(z.eN),H.LFG(N.F0),H.LFG(E.q),H.LFG(y.Z),H.LFG(C.J))},b.\u0275prov=H.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},27722:(Xe,me,h)=>{"use strict";h.d(me,{q:()=>K});var e=h(94650),s=h(80529);let K=(()=>{class F{constructor(O){this.httpClient=O}setConfig(){return this.httpClient.get("./app-config.json").toPromise().then(O=>(this.config={tagManagerId:"B2C"===O?.clientBusiness?"GTM-57KHGGKM":"GTM-K527QKZ",...O},this.config))}readConfig(){if(this.config)return this.config}get tokenB2c(){if(this.config)return this.config.bToken}}return F.\u0275fac=function(O){return new(O||F)(e.LFG(s.eN))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})()},75820:(Xe,me,h)=>{"use strict";h.d(me,{_:()=>y});var e=h(80529),s=h(2994),K=h(24850),O=h(29509),H=h(94650),z=h(27722);let N=(()=>{class C{constructor(b){this.startupService=b}clearQuery(b){return b.replace(/ /g,"")}cabins(b){return this.clearQuery(`{\n\t\t  cabinOptions(sort: "cabin_type.id:desc", where: {ship: {id: ${b}}}) {\n\t\t\t  id\n\t\t\t  categories {\n\t\t\t\t  id\n\t\t\t\t  name_alias_${this.startupService?.config?.language}\n\t\t\t\t  code\n\t\t\t  }\n\t\t\t  cabin_type {\n\t\t\t\t  id\n\t\t\t\t  section: name_${this.startupService?.config?.language}\n\t\t\t  }\n\t\t\t  name: name_${this.startupService?.config?.language}\n\t\t\t  description: description_${this.startupService?.config?.language}\n\t\t\t  photos: media {\n\t\t\t\t  name\n\t\t\t\t  mime\n\t\t\t\t  hash\n\t\t\t\t  ext\n\t\t\t\t  url\n\t\t\t\t  formats\n\t\t\t  }\n\t\t\t  tourVirtualUrl: url_ship_tour\n\t\t\t  video: url_video\n\t\t\t  capacity_to\n\t\t\t  capacity_from\n\t\t\t  size_to\n\t\t\t  size_from\n\t\t  }\n\t}`)}entertainments(b){return this.clearQuery(`{\n\t\t\tentertainments(sort: "entertainment_category.id:asc", where: {ships: {id: ${b}}}) {\n\t\t\t\tid\n\t\t\t\ttitle: title_${this.startupService?.config?.language}\n\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\treservation_required\n\t\t\t\tis_speciality_restaurant\n\t\t\t\thas_reservation_fee\n\t\t\t\thas_advance_reservation_required\n\t\t\t\thas_additional_fee\n\t\t\t\thas_additional_charge\n\t\t\t\tcategory: entertainment_category {\n\t\t\t\t\tid\n\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t}\n\t\t\t\tlogo {\n\t\t\t\t\tformats\n\t\t\t\t\turl\n\t\t\t\t}\n\t\t\t\tphotos {\n\t\t\t\t\tname\n\t\t\t\t\tmime\n\t\t\t\t\thash\n\t\t\t\t\text\n\t\t\t\t\turl\n\t\t\t\t\tformats\n\t\t\t\t}\n\t\t\t\turl_video\n\t\t\t\tvirtual_tour_url\n\t\t\t\tentertainment_files {\n\t\t\t\t\tid\n\t\t\t\t\ttitle: title_${this.startupService?.config?.language}\n\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\tfile: file_${this.startupService?.config?.language} {\n\t\t\t\t\t\tname\n\t\t\t\t\t\tmime\n\t\t\t\t\t\thash\n\t\t\t\t\t\text\n\t\t\t\t\t\turl\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}`)}atTheSeaEntertainments(b){return this.clearQuery(`{\n\t\t\tentertainments(limit: 8, where: {ships: {id: ${b}}}) {\n\t\t\t\tid\n\t\t\t\tname: title_${this.startupService?.config?.language}\n\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\tphoto: photos {\n\t\t\t\t\turl\n\t\t\t\t\tformats\n\t\t\t\t}\n\t\t\t}\n\t\t}`)}deckPlan(b){return this.clearQuery(`{\n\t\t\tship(id: ${b}) {\n\t\t\t\tinitial_deck\n\t\t\t\ttotal_decks\n\t\t\t\tdecks: decks(sort: "floor:asc") {\n\t\t\t\t\tid\n\t\t\t\t\tname\n\t\t\t\t\tdeck: floor\n\t\t\t\t\tfloor\n\t\t\t\t\tsvg\n\t\t\t\t}\n\t\t\t\tdeck_legends(sort: "order:desc") {\n\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\tisFull: is_full\n\t\t\t\t\ticon {\n\t\t\t\t\t\turl\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}`)}deckLegends(b){return this.clearQuery(`{\n\t\t\tship(id: ${b}) {\n\t\t\t\tdeck_legends(sort: "order:desc") {\n\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\tisFull: is_full\n\t\t\t\t\ticon {\n\t\t\t\t\t\turl\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}`)}photos(b){return this.clearQuery(`{\n\t\t\tcabins: cabinOptions(where: { ship: { id: ${b} } }) {\n\t\t\tid\n\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\tphotos: media {\n\t\t\t\turl,\n\t\t\t\tformats\n\t\t\t}\n\t\t\t}\n\t\t\tships(where: {id: ${b}}) {\n\t\t\t\tid\n\t\t\t\tphotos {\n\t\t\t\t\turl,\n\t\t\t\t\tformats\n\t\t\t\t}\n\t\t\t}\n\t\t\tentertainments: entertainments(where: { ships: { id: ${b} } }) {\n\t\t\tid\n\t\t\tname: title_${this.startupService?.config?.language}\n\t\t\tphotos {\n\t\t\t\turl,\n\t\t\t\tformats\n\t\t\t}\n\t\t\t}\n\t\t}`)}videos(b){return this.clearQuery(`{\n\t\t\tcabins: cabinOptions(where: { ship: { id: ${b} } }) {\n\t\t\tid\n\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\turl: url_video\n\t\t\t}\n\t\t\tships(where: {id: ${b}}) {\n\t\t\t\tid\n\t\t\t\tname: name_alias_${this.startupService?.config?.language}\n\t\t\t\turl: video_url\n\t\t\t}\n\t\t\tentertainments: entertainments(where: { ships: { id: ${b} } }) {\n\t\t\tid\n\t\t\tname: title_${this.startupService?.config?.language}\n\t\t\turl: url_video\n\t\t\t}\n\t\t}`)}virtualTours(b){return this.clearQuery(`{\n\t\t\tcabins: cabinOptions(where: { ship: { id: ${b} } }) {\n\t\t\tid\n\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\turl: url_ship_tour\n\t\t\tphotos: media {\n\t\t\t\turl\n\t\t\t\tformats\n\t\t\t}\n\t\t\t}\n\t\t\tships(where: {id: ${b}}) {\n\t\t\t\tid\n\t\t\t\tname: name_alias_${this.startupService?.config?.language}\n\t\t\t\turl: virtual_tour_url\n\t\t\t\tphotos {\n\t\t\t\turl\n\t\t\t\tformats\n\t\t\t\t}\n\t\t\t}\n\t\t\tentertainments: entertainments(where: { ships: { id: ${b} } }) {\n\t\t\tid\n\t\t\tname: title_${this.startupService?.config?.language}\n\t\t\turl: virtual_tour_url\n\t\t\tphotos {\n\t\t\t\turl\n\t\t\t\tformats\n\t\t\t}\n\t\t\t}\n\t\t}`)}shipSpecs(b){return this.clearQuery(`query {\n\t\tships(where: {id: ${b}}) {\n\t\t\tlaunched_year\n\t\t\trenovation_year\n\t\t\ttotal_decks\n\t\t\ttotal_capacity\n\t\t\ttotal_cabins\n\t\t\tcrew\n\t\t\ttonnage\n\t\t\ttotal_capacity\n\t\t\tship_height\n\t\t\tship_length\n\t\t\tship_width\n\t\t\tship_size_type {\n\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\timage {\n\t\t\t\t\tformats\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}`)}shipPhotosByCode(b){return this.clearQuery(`query {\n\t\t\tships(where: {code: "${b}"}) {\n\t\t\t\tid\n\t\t\t\tphotos {\n\t\t\t\t\turl\n\t\t\t\t\tformats\n\t\t\t\t}\n\t\t\t\tship_content {\n\t\t\t\t\tid\n\t\t\t\t\tphotos {\n\t\t\t\t\t\turl\n\t\t\t\t\t\tformats\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t}`)}entertainment(b){return this.clearQuery(`query {\n\t\t\tentertainment: entertainments(where: { id: ${b} } ) {\n\t\t\t\tid\n\t\t\t\tlogo {\n\t\t\t\t\turl\n\t\t\t\t\tformats\n\t\t\t\t}\n\t\t\t\tname: title_${this.startupService?.config?.language}\n\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\tvirtual_tour_url\n\t\t\t\turl_video\n\t\t\t\tphotos {\n\t\t\t\turl\n\t\t\t\tformats\n\t\t\t\t}\n\t\t\t}\n\t}`)}cabin(b){return this.clearQuery(`query {\n\t\t\tcabinOption: cabinOptions(where: { id: ${b} } ) {\n\t\t\t\tid\n\t\t\t\tlogo {\n\t\t\t\t\turl\n\t\t\t\t}\n\t\t\t\tname: title_${this.startupService?.config?.language}\n\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\tvirtual_tour_url\n\t\t\t\turl_video\n\t\t\t\tphotos {\n\t\t\t\turl\n\t\t\t\tformats\n\t\t\t\t}\n\t\t\t\tcapacity_to\n\t\t\t\tcapacity_from\n\t\t\t\tsize_to\n\t\t\t\tsize_from\n\t\t\t}\n\t}`)}cabinDetail(b){return this.clearQuery(`\n            query {\n                cabinOption(id: ${b}) {\n                    id\n                    name: name_${this.startupService?.config?.language}\n                    description: description_${this.startupService?.config?.language}\n                    categories {\n                        id\n                        code\n                    }\n                    photos: media {\n                        formats\n                    }\n\t\t\t\t\tamenities {\n\t\t\t\t\t\tid\n\t\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\t\ticon_name\n\t\t\t\t\t}\n                    urlShipTour: url_ship_tour\n                    urlVideo: url_video\n                    capacity_to\n                    capacity_from\n                    size_to\n                    size_from\n                }\n            }\n        `)}locationLabels(b){return this.clearQuery(`query {\n\t\t\tlocations(where: {iata: ["${b.join('","')}"]}) {\n\t\t\t\tid\n\t\t\t\tiata\n\t\t\t\tname_pt\n\t\t\t\tname_es\n\t\t\t\tname_en\n\t\t\t\talias_map_name_pt\n\t\t\t\talias_map_name_es\n\t\t\t\talias_map_name_en\n\t\t\t}\n\t\t}`)}locationDetail(b){return this.clearQuery(`query {\n\t\t\tlocations(limit: 1, where: {iata: "${b}"}) {\n\t\t\t\tid\n\t\t\t\tiata\n\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\tlatitude\n\t\t\t\tlongitude\n\t\t\t\tisPublic\n\t\t\t\tisCapital\n\t\t\t\tisCoastalTown\n\t\t\t\tiso_a2\n\t\t\t\tphotos {\n\t\t\t\t\tcaption\n\t\t\t\t\turl\n\t\t\t\t\tformats\n\t\t\t\t}\n\t\t\t\thighlights: locations_highlights {\n\t\t\t\t\tid\n\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\tdifficult_type {\n\t\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\t\tdifficult_range\n\t\t\t\t\t}\n\t\t\t\t\thighlights_type {\n\t\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\t\ticon_name\n\t\t\t\t\t}\n\t\t\t\t\tphoto {\n\t\t\t\t\t\turl\n\t\t\t\t\t\tformats\n\t\t\t\t\t}\n\t\t\t\t\tphotos {\n\t\t\t\t\t\turl\n\t\t\t\t\t\tformats\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treference_location {\n\t\t\t\t\tid\n\t\t\t\t\tiata\n\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\thighlights: locations_highlights {\n\t\t\t\t\t\tid\n\t\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\t\tdifficult_type {\n\t\t\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\t\t\tdifficult_range\n\t\t\t\t\t\t}\n\t\t\t\t\t\thighlights_type {\n\t\t\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\t\t\ticon_name\n\t\t\t\t\t\t}\n\t\t\t\t\t\tphoto {\n\t\t\t\t\t\t\turl\n\t\t\t\t\t\t\tformats\n\t\t\t\t\t\t}\n\t\t\t\t\t\tphotos {\n\t\t\t\t\t\t\turl\n\t\t\t\t\t\t\tformats\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}`)}sailingBenefitsShip(b){return this.clearQuery(`\n\t\tsailingBenefits(sort: "order:asc", where: {id: [${b.toString()}], is_ship_highlight: true}) {\n\t\t\tid\n\t\t\torder\n\t\t\t  name: name_${this.startupService?.config?.language}\n\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\ticon_name\n\t\t\tread_more_url: read_more_url_${this.startupService?.config?.language}\n\t\t\tvideo_url: video_url_${this.startupService?.config?.language}\n\t\t\tphotos {\n\t\t\t\tformats\n\t\t\t}\n\t\t\tsailing_benefit_type {\n\t\t\t\tid\n\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t}\n\t\t  }\n\t\t`)}sailingBenefits(b){return this.clearQuery(`\n\t\t\tquery {\n\t\t\t\tsailingBenefits(sort: "order:asc", where: {id: [${b.toString()}]}) {\n\t\t\t\t\tid\n\t\t\t\t\torder\n\t\t\t\t  \tname: name_${this.startupService?.config?.language}\n\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\ticon_name\n\t\t\t\t\tread_more_url: read_more_url_${this.startupService?.config?.language}\n\t\t\t\t\tvideo_url: video_url_${this.startupService?.config?.language}\n\t\t\t\t\tphotos {\n\t\t\t\t\t\tformats\n\t\t\t\t\t}\n\t\t\t\t\tsailing_benefit_type {\n\t\t\t\t\t\tid\n\t\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\t}\n\t\t\t  \t}\n\t\t\t}`)}shipHome(b,G){return this.clearQuery(`\n\t\t\tquery {\n\t\t\t\tship(id: ${b}) {\n\t\t\t\t\tid\n\t\t\t\t\tname: name_alias_${this.startupService?.config?.language}\n\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\tvideo_url\n\t\t\t\t\tis_eco\n\t\t\t\t\tawards {\n\t\t\t\t\t\tid\n\t\t\t\t\t\tprefix: prefix_${this.startupService?.config?.language}\n\t\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\t\tawarded_brand {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\tname\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlink_url\n\t\t\t\t\t\tyear\n\t\t\t\t\t}\n\t\t\t\t\tentertainments(where: {is_main_highlights: true}) {\n\t\t\t\t\t\tid\n\t\t\t\t\t\ttitle: title_${this.startupService?.config?.language}\n\t\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\t\tphotos {\n\t\t\t\t\t\t\tcaption\n\t\t\t\t\t\t\turl\n\t\t\t\t\t\t\tformats\n\t\t\t\t\t\t}\n\t\t\t\t\t\tis_main_highlights\n\t\t\t\t\t}\n\t\t\t\t\tphotos {\n\t\t\t\t\t\tcaption\n\t\t\t\t\t\turl\n\t\t\t\t\t\tformats\n\t\t\t\t\t}\n\t\t\t\t\teco_features {\n\t\t\t\t\t\tid\n\t\t\t\t\t\ttitle: title_${this.startupService?.config?.language}\n\t\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\t\ticon: icon_name\n\t\t\t\t\t}\n\t\t\t\t\tsuitable_fors {\n\t\t\t\t\t\tid\n\t\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\t}\n\t\t\t\t\tship_size_type {\n\t\t\t\t\t\tid\n\t\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\t}\n\t\t\t\t\tlaunched_year\n\t\t\t\t\trenovation_year\n\t\t\t\t\ttotal_decks\n\t\t\t\t\ttotal_capacity\n\t\t\t\t\ttotal_cabins\n\t\t\t\t\tcrew\n\t\t\t\t}\n\t\t\t\tdressCodes(where: {ships: ${b}}) {\n\t\t\t\t\tid\n\t\t\t\t\ttitle: title_${this.startupService?.config?.language}\n\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\ticon: icon_name\n\t\t\t\t}\n\t\t\t\t${G.length>0?this.sailingBenefitsShip(G):""}\n\t\t\t}`)}shipAttractions(b){return this.clearQuery(`\n\t\t\tquery {\n\t\t\t\tevents(where: {code: "${b}"}) {\n\t\t\t\t\tid\n\t\t\t\t\tevent_name: event_name_${this.startupService?.config?.language}\n\t\t\t\t\tevent_description: event_description_${this.startupService?.config?.language}\n\t\t\t\t\tcover_images {\n\t\t\t\t\t  caption\n\t\t\t\t\t  url\n\t\t\t\t\t  formats\n\t\t\t\t\t}\n\t\t\t\t\tevent_section: event_section_${this.startupService?.config?.language} {\n\t\t\t\t\t\tbackground_color\n\t\t\t\t\t\ttitle_color\n\t\t\t\t\t\ttitle\n\t\t\t\t\t\tlogo {\n\t\t\t\t\t\t\tcaption\n\t\t\t\t\t\t\turl\n\t\t\t\t\t\t\tformats\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcover {\n\t\t\t\t\t\t\tcaption\n\t\t\t\t\t\t\turl\n\t\t\t\t\t\t\tformats\n\t\t\t\t\t\t}\n\t\t\t\t\t\tyoutube_video_urls\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t`)}getEventInfo(b){return this.clearQuery(`\n\t\t\tquery {\n\t\t\t\tevents(where: {code: "${b}"}) {\n\t\t\t\t\tid\n\t\t\t\t\tcover_images {\n\t\t\t\t\t  caption\n\t\t\t\t\t  url\n\t\t\t\t\t  formats\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t`)}deals(b){return this.clearQuery(`\n\t\t\tquery {\n\t\t\t\tdeals(where: {id: [${b}]}) {\n\t\t\t\t\tid\n\t\t\t\t\tname: name_${this.startupService?.config?.language}\n\t\t\t\t\ttooltip: tooltip_${this.startupService?.config?.language}\n\t\t\t\t\tdescription: description_${this.startupService?.config?.language}\n\t\t\t\t\turl: url_${this.startupService?.config?.language}\n\t\t\t\t\timage: image_${this.startupService?.config?.language} {\n\t\t\t\t\t\turl\n\t\t\t\t\t\tformats\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t  \t}\n\t\t`)}deckSvg(b){return this.clearQuery(`{\n\t\t\tdeck(id: ${b}) {\n\t\t\t\tid\n\t\t\t\tsvg\n\t\t\t}\n\t\t}`)}agreementDocument(b){return this.clearQuery(`query {\n\t\t\tagreementDocuments(where: {\n\t\t\tenabled: true\n\t\t\tagreement_document_locations: {\n\t\t\t  code: "${b}"\n\t\t\t}\n\t\t  }) {\n\t\t\tid,\n\t\t\tname: name_${this.startupService?.config?.language},\n\t\t\tdocument: document_${this.startupService?.config?.language} {\n\t\t\t  url\n\t\t\t}\n\t\t  }\n\t\t}`)}agreementDocumentByCompany(b,G){return this.clearQuery(`query {\n\t\t\tagreementDocuments(where: {\n\t\t\tenabled: true\n\t\t\tagreement_document_locations: {\n\t\t\t  code: "${b}"\n\t\t\t}\n\t\t\tcompanies: {\n\t\t\t  code: "${G}"\n\t\t\t}\n\t\t  }) {\n\t\t\tid,\n\t\t\tname: name_${this.startupService?.config?.language},\n\t\t\tdocument: document_${this.startupService?.config?.language} {\n\t\t\t  url\n\t\t\t}\n\t\t  }\n\t\t}`)}}return C.\u0275fac=function(b){return new(b||C)(H.LFG(z.q))},C.\u0275prov=H.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const E={headers:new e.WM({Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjExMTczOTcyLCJleHAiOjQ3MzUzNzYzNzJ9.S9mkVhVPteolnRrOIbuiAV2yQJqGcBV-pliKpWw6CwM"})};let y=(()=>{class C{constructor(b,G,w){this.http=b,this.queries=G,this.startupService=w,this.baseUrl=`${this.startupService?.config?.urlSearchApi}/${this.startupService?.config?.culture}/Search`}getAvailableOptions(b){return this.itineraryCode=b.departureInfo?.itineraryCode||b.itineraryCode,this.itineraryMapCode=b.departureInfo?.itineraryMapCode||b.itineraryMapCode,this.sailingDate=b.sailingDate,this.http.get(`${this.startupService?.config?.urlContentApi}/availableOptions/${b.shipId}`,E).pipe((0,s.b)(w=>{this.shipId=w.shipContentId}))}getHome(b){if(this.shipId)return this.shipHome(this.shipId,b)}shipHome(b,G){const w=encodeURI(this.queries.shipHome(b,G));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${w}`,E).pipe((0,K.U)(oe=>oe.data))}getAttractions(b){const G=encodeURI(this.queries.shipAttractions(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>ee.data))}getItinerary(b=null){return this.http.get(this.baseUrl+`/ItineraryDetails?itineraryCode=${b||this.itineraryCode}`,(0,O.C)(!1,this.startupService.config)).pipe((0,K.U)(w=>(w.data?.itineraryDetails.forEach((ee,oe)=>{ee.itineraryIndex=oe}),w.data)))}getLocationDetail(b){const G=encodeURI(this.queries.locationDetail(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>{const oe=ee.data.locations;return oe.length>0?oe[0]:null}))}getPhotos(){const b=encodeURI(this.queries.photos(this.shipId));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${b}`,E).pipe((0,K.U)(w=>w.data))}getVideos(){const b=encodeURI(this.queries.videos(this.shipId));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${b}`,E).pipe((0,K.U)(w=>w.data))}getVirtualTour(){const b=encodeURI(this.queries.virtualTours(this.shipId));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${b}`,E).pipe((0,K.U)(w=>w.data))}getCabins(){const b=encodeURI(this.queries.cabins(this.shipId));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${b}`,E).pipe((0,K.U)(w=>(w.data=function Z(C){C=(C=C.filter(b=>"indefinida"!==b.name?.toLocaleLowerCase())).filter(b=>"undefined"!==b.name?.toLocaleLowerCase());const U=[];return C.forEach(b=>{b.cabin_type&&(U.some(w=>w.id===b.cabin_type.id)||U.push(b.cabin_type))}),{cabinOptions:C,cabinTypes:U}}(w.data.cabinOptions),w.data)))}getCabin(b){const G=encodeURI(this.queries.cabin(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>{if(ee.data.cabin.length>0)return ee.data}))}getCabinDetail(b){const G=encodeURI(this.queries.cabinDetail(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>{if(ee.data)return ee.data}))}getEntertainments(){const b=encodeURI(this.queries.entertainments(this.shipId));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${b}`,E).pipe((0,K.U)(w=>function F(C){const U=[];C.forEach(w=>{w.category&&(U.includes(w.category.name)||U.push(w.category.name))});const b=U.reduce((w,ee)=>(w[ee]=[],w),{});C.forEach(w=>{!w.category||b[w.category.name].push(w)});const G=[];return U.forEach(w=>{G.push({id:b[w][0].category.id,items:b[w],section:b[w][0].category.name})}),G}(w.data.entertainments)))}getAtTheSeaEntertainments(){const b=encodeURI(this.queries.atTheSeaEntertainments(this.shipId));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${b}`,E).pipe((0,K.U)(w=>w.data.entertainments))}getEntertainment(b){const G=encodeURI(this.queries.entertainment(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>{if(ee.data.entertainment.length>0)return ee.data.entertainment[0]}))}getDeckPlan(){const b=encodeURI(this.queries.deckPlan(this.shipId));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${b}`,E).pipe((0,K.U)(w=>w.data))}getDeckLegends(b){const G=encodeURI(this.queries.deckLegends(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>ee.data.ship.deck_legends))}getSpecs(){return this.getSpecsByShipId(this.shipId)}getSpecsByShipId(b){const G=encodeURI(this.queries.shipSpecs(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>{if(ee.data?.ships.length>0)return ee.data?.ships[0]}))}getShipPhotosByCode(b){const G=encodeURI(this.queries.shipPhotosByCode(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>ee.data?.ships&&ee.data?.ships.length>0?ee.data?.ships[0]:null))}getSailingBenefits(b){const G=encodeURI(this.queries.sailingBenefits(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>ee.data))}getDeals(b){const G=encodeURI(this.queries.deals(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>ee.data))}getDeckSvg(b){const G=encodeURI(this.queries.deckSvg(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>ee.data))}getAgreementDocument(b){const G=encodeURI(this.queries.agreementDocument(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>ee.data))}getAgreementDocumentByCompany(b,G=""){const w=encodeURI(this.queries.agreementDocumentByCompany(b,G));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${w}`,E).pipe((0,K.U)(oe=>oe.data))}getEventInfo(b){const G=encodeURI(this.queries.getEventInfo(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E).pipe((0,K.U)(ee=>ee.data))}getLocationLabels(b){const G=encodeURI(this.queries.locationLabels(b));return this.http.get(`${this.startupService?.config?.urlContentApi}/graphql?query=${G}`,E)}}return C.\u0275fac=function(b){return new(b||C)(H.LFG(e.eN),H.LFG(N),H.LFG(z.q))},C.\u0275prov=H.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},92039:(Xe,me,h)=>{"use strict";h.d(me,{t:()=>O});var e=h(15814),s=h(94650),K=h(80529),F=h(90263),Z=h(27722);let O=(()=>{class H{constructor(N,E,y){this.http=N,this.auth=E,this.config=y,this.baseUrl=`${this.config?.config?.urlCruiseApi}/${this.config?.config?.culture}`}list(N){return this.http.get(`${this.baseUrl}/Currencies/GetQuotations/${N}`,e.c)}get(N){return this.http.get(`${this.baseUrl}/Currencies/GetQuotation/${N}`,e.c)}getExchangeCodes(){return this.http.get(`${this.baseUrl}/Currencies/CurrencyExchangesCodes`,e.c)}getQuotation(N){return this.http.get(`${this.baseUrl}/Currencies/GetQuotation/${N}`,e.c)}add(N,E){return this.http.post(`${this.baseUrl}/Currencies/Create`,{currencyExchangeCode:E,sellValue:N,buyValue:N},e.c)}}return H.\u0275fac=function(N){return new(N||H)(s.LFG(K.eN),s.LFG(F.e),s.LFG(Z.q))},H.\u0275prov=s.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})()},88168:(Xe,me,h)=>{"use strict";h.d(me,{y:()=>Z});var e=h(42394),s=h(12931),K=h(94650),F=h(27722);let Z=(()=>{class H{constructor(N){this.configService=N}mustSendData(){const N=!!this.configService.config?.clientTagManagerId,E=this.configService?.config?.clientCode?.toLocaleLowerCase();return N&&"B2C"===this.configService.config?.clientBusiness&&("cvc"===E||"cvco"===E)}sendData(N){!this.mustSendData()||this.tryCatch(()=>{dataLayer.push(N)})}tryCatch(N){try{N()}catch(E){newrelic.noticeError(E)}}push(N){this.tryCatch(()=>{let E={...N,plataform:"Site"};const y=(0,e.ej)("WEBVIEW");!!y&&"1"===y&&(E.plataform="App"),this.sendData(E)})}pushCheckout(N,E,y,C,U){this.tryCatch(()=>{const b=y.totalPrice?.finalCurrencyTotalValue.totalValue||0,G=y.paymentInfo?.numberInstallments||0,w=b/G,ee=`${G}x de R$ ${w}`;let oe={event:N,url:window.location.href,clientID:(0,e.ej)("_ga"),step:C||"",plataform:"Site"};const _e=(0,e.ej)("WEBVIEW");!!_e&&"1"===_e&&(oe.plataform="App"),"step1"===C?oe={...oe,step_name:"Step 1 - Dados pessoais",step_number:1}:"step2"===C&&(oe={...oe,step:"step2",step_name:"Step 2 - Pagamento",step_number:2,form_payment:"cartao de credito",installments:G,installments_text:ee,installments_value:w.toString()}),"purchase-cruise"===N&&(oe={...oe,form_payment:"cartao de credito",installments:G,installments_text:ee,installments_value:w.toString(),transaction_id:U,transaction_value:b.toString()});const Ne=!!y.insurance?.code,te=y.onBoardingItems?.length>0,de=y.excursionItems?.length>0;if(Ne||te||de){const J=[],Ie=this.getProductInfo(E,y);if(J.push(Ie),Ne){const Ze=this.getInsuranceInfo(E,y);J.push(Ze)}te&&y.onBoardingItems.forEach(Ze=>{const ot=this.getOnboardingInfo(Ze,E,y);J.push(ot)}),de&&y.excursionItems.forEach(Ze=>{const ot=this.getOnboardingInfo(Ze,E,y);J.push(ot)}),oe={...oe,cross:"cruise-cross",products:J}}else oe={...oe,...this.getProductInfo(E,y)};this.sendData(oe)})}pushSearch(N,E,y,C){this.tryCatch(()=>{const U=E?.filterOptions.roomConfiguration.value.Rooms[0]||{};let w={...O,event:N,adult:U?.totalAdults||2,child:U?.totalChilds||0,clientID:(0,e.ej)("_ga"),plataform:"Site"};const ee=(0,e.ej)("WEBVIEW");if(!!ee&&"1"===ee&&(w.plataform="App"),"click-cruise"===N&&C){const oe=y.results.map((Ne,te)=>{if(Ne.departureOptions){if(Ne.departureOptions.filter(J=>J.code===C?.departure?.code).length>0)return{el:Ne,index:te}}else if(Ne.code===C.departure.code)return{el:Ne,index:te}}).filter(Ne=>Ne),_e=oe.length>0?oe[0]:null;_e&&(w={...w,position:_e.index+1,...this.convertSelectedFare(C,_e.el)},this.sendData(w))}else"search-cruise"===N?(w={...w,...this.convertSearchFilters(E.filterOptions)},this.sendData(w)):"impressions-cruise"===N&&y?.results.length>0&&y.results.slice(0,5).forEach((_e,Ne)=>{w="ResultByItinerary"===y.resultType||"ResultByShip"===y.resultType?{...w,position:Ne+1,...this.convertItineraryResult(_e)}:{...w,position:Ne+1,...this.convertDateResult(_e)},this.sendData(w)})})}convertItineraryResult(N){const E=N.departureOptions[0],C=(N.itineraryMapCode||N.itinerary.itineraryCode)?.split("_")||[],U=(0,s.h6)(E.date),b=(0,s.E4)((0,s.Cz)(E.date),E.nights),G=(0,s.gg)(b),w=N.departure.name.split(", "),ee=N.arrive.name.split(", "),oe=C.length>0?C[0]:"",_e=w.length>1?w[1]:"",de="brasil"!==(ee.length>1?ee[1]:"").toLowerCase()||"brasil"!==_e.toLowerCase()?"internacional":"nacional",J=N.itineraryMapCode?.split("_")?.filter(Ie=>Ie!==oe).join(", ");return{cruise_name:E.ship.name,cruise_id:E.code,cabin_type:E.fares[0]?.type||"",company_name:E.cruiseLine.name,checkin_date:U,checkout_date:G,duration_days:E.nights,image:N.mapPath,origin_city:w.length>0?w[0]:"",origin_city_iata:oe,origin_country:_e,origin_tower:de,destination_city:N.itinerary.name,destination_city_iata:J,destination_tower:de,product_value:E.fares[0]?.totalAmount?.toString()||"0",product_tower:de,product_type:"cruise",url:window.location.href}}convertDateResult(N){const E=(0,s.h6)(N.date),y=(0,s.E4)((0,s.Cz)(N.date),N.nights),C=(0,s.gg)(y);return{cruise_name:N.ship.name,cruise_id:N.ship.id?.toString(),cabin_type:N.fares[0]?.type||"",checkin_date:E,checkout_date:C,company_name:N.cruiseLine.name,duration_days:N.nights,product_value:N.fares[0]?.totalAmount?.toString()||"0",url:window.location.href}}convertSelectedFare(N,E){const C=N.selectedFare?.itineraryMapCode?.split("_")||[],U=(0,s.h6)(N.departure.date),b=(0,s.E4)((0,s.Cz)(N.departure.date),N.departure.nights),G=(0,s.gg)(b);let w=[],ee=[];E.departure&&(w=E.departure.name.split(", "),ee=E.arrive.name.split(", "));const oe=w.length>1?w[1]:"",te="brasil"!==(ee.length>1?ee[1]:"").toLowerCase()||"brasil"!==oe.toLowerCase()?"internacional":"nacional";return{cruise_id:N.departure.code,cruise_name:N.departure.ship.name,cabin_type:N.selectedFare?.type||"",origin_city:w.length>0?w[0]:"",origin_city_iata:C.length>0?C[0]:"",origin_country:w.length>1?w[1]:"",origin_id:E.departure?.id?.toString()||"",destination_city:E.itinerary.name||"",destination_city_iata:C.slice(1,C.length-1).join(", ")||"",checkin_date:U,checkout_date:G,company_name:N.departure.cruiseLine.name,duration_days:N.departure.nights,product_value:N.selectedFare?.totalAmount?.toString()||"0",image:E.mapPath,origin_tower:te,destination_tower:te,product_tower:te,product_type:"cruise",url:window.location.href}}convertSearchFilters(N){let E="";N.duration.selected.fromValue&&N.duration.selected.toValue&&(E=`${N.duration.selected.fromValue}-${N.duration.selected.toValue}`);let y="",C="";N.ships.selected.forEach(Ne=>{N.ships.options.forEach(te=>{const de=te.children.filter(J=>J.id===Ne);de.length>0&&(y=[...new Set((y+(y?`, ${te.name}`:te.name)).split(", "))].join(", "),de.forEach(Ze=>{C=[...new Set((C+(C?`, ${Ze.name}`:Ze.name)).split(", "))].join(", ")}))})});let U="",b="";N.departure.selected.forEach(Ne=>{N.departure.options.forEach(te=>{const de=te.children.filter(J=>J.id===Ne);de.length>0&&(U=[...new Set((U+(U?`, ${te.name}`:te.name)).split(", "))].join(", "),de.forEach(Ze=>{b=[...new Set((b+(b?`, ${Ze.name}`:Ze.name)).split(", "))].join(", ")}))})});let G="",w="";N.arrive.selected.forEach(Ne=>{N.arrive.options.forEach(te=>{const de=te.children.filter(J=>J.id===Ne);de.length>0&&(G=[...new Set((G+(G?`, ${te.name}`:te.name)).split(", "))].join(", "),de.forEach(Ze=>{w=[...new Set((w+(w?`, ${Ze.name}`:Ze.name)).split(", "))].join(", ")}))})});const ee=(0,s.U9)(N.dates.selected.fromValue)||"",oe=(0,s.U9)(N.dates.selected.toValue)||"",_e=N.cabinType.selected.map(Ne=>Ne.name).join(", ");return{company_name:y,cruise_name:C,cabin_type:_e,checkin_date:ee,checkout_date:oe,duration_days:E,origin_city:U,origin_country:b,destination_city:G,destination_country:w,url:window.location.href}}getInsuranceInfo(N,E){const y=E.insurance,C=this.getProductTwoer(N),U="servico";return{product:U,product_tower:C,product_type:`${U}_${C}`,product_value:(y?.price.finalCurrencyTotalValue.totalValue||0).toString(),servico_id:y?.code,servico_name:`Seguro ${y?.name||y?.supplier?.name}`,servico_description:y?.code||"",image:""}}getOnboardingInfo(N,E,y){const C=this.getProductTwoer(E),U="servico";return{product:U,product_tower:C,product_type:`${U}_${C}`,product_value:N.value.totalAmount.finalCurrencyTotalValue.totalValue,servico_id:N.item.code,servico_name:N.item.name||N.item.description,servico_description:"",image:N.item.image||N.value.image||""}}getProductInfo(N,E){const y=E.totalPrice?.finalCurrencyTotalValue.totalValue||0,C=(0,s.h6)(N.sailingInfo.itinerary.sailingDate),U=(0,s.E4)((0,s.Cz)(N.sailingInfo.itinerary.sailingDate),N.sailingInfo.itinerary.nights),b=(0,s.gg)(U),G=N.sailingInfo.itinerary.itineraryMapCode.split("_"),w=N.sailingInfo.departure.name.split(", "),ee=w.length>0?w[0]:"",oe=w.length>1?w[1]:"",_e=this.getProductTwoer(N),Ne=N.sailingInfo.itinerary.name.split(" - ");let te="",de="";Ne.filter(ot=>ot.indexOf(ee)).forEach(ot=>{const lt=ot.split(", "),At=lt.length>0?lt[0]:"",qe=lt.length>1?lt[1]:"";te+=te?`, ${At}`:At,de+=de?`, ${qe}`:qe});const Ie=[...new Set(te.split(", "))].join(", "),Ze=[...new Set(de.split(", "))].join(", ");return{adult:E.paxInfo?.adt,child:E.paxInfo?.chd?.length,cruise_name:N.sailingInfo.ship.name,cruise_description:"",cruise_id:window.location.pathname.substr(10),turno_jantar:E.dinningOption?.name||"",cabin_type:E.cabinType?.name,cabin_number:E.selectedCabin?.cabin?.number||"",checkin_date:C,checkout_date:b,company_name:N.sailingInfo.cruiseLine?.name,duration_days:N.sailingInfo.itinerary.nights,origin_tower:_e,destination_tower:_e,product_tower:_e,product_type:"cruise",origin_city:ee,origin_city_iata:N.sailingInfo.departure.code,origin_country:oe,destination_city:Ie,destination_city_iata:G.slice(1,G.length-1).join(", ")||"",destination_country:Ze,product:"cruise",product_value:y.toString()}}getProductTwoer(N){const E=N.sailingInfo.departure.name.split(", "),y=N.sailingInfo.arrival.name.split(", "),C=E.length>1?E[1]:"";return"brasil"!==(y.length>1?y[1]:"").toLowerCase()||"brasil"!==C.toLowerCase()?"internacional":"nacional"}}return H.\u0275fac=function(N){return new(N||H)(K.LFG(F.q))},H.\u0275prov=K.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();const O={event:"",adult:2,child:0,clientID:"",cruise_name:"",cruise_description:"",cruise_id:"",turno_jantar:"",cabin_type:"",cabin_number:"",checkin_date:"",checkout_date:"",company_name:"",duration_days:0,image:"",origin_city:"",origin_city_iata:"",origin_country:"",origin_state:"",destination_city:"",destination_city_iata:"",destination_country:"",destination_id:"",destination_state:"",destination_tower:"",position:0,product:"cruise",product_tower:"",product_type:"",product_value:"",url:""}},46038:(Xe,me,h)=>{"use strict";h.d(me,{q:()=>Ge});var e=h(12931),s=h(33340);function Z(Y){let $="[";return!Y||Y.length<1?"[]":(Y.forEach((x,ie)=>{$+=0===ie?`${x.name}`:`,${x.name}`}),$+="]",$)}function H(Y,$){let x="[";return!Y||Y.length<1?"[]":(Y.forEach((ie,q)=>{const Q=function O(Y,$){let x="";return $.find(ie=>{if(ie.hasChildren){const q=ie.children.find(Q=>Q.id===Y);return q&&(x=q.code),!!q}}),x}(ie.id,$);x+=0===q?`${Q}`:`,${Q}`}),x+="]",x)}function z(Y){return Y.fromValue?`${Y.fromValue}-${Y.toValue}`:""}function N(Y){return Y&&(0,e.CL)(Y)||""}function E(Y,$){let x="[";return $.forEach((q,Q)=>{Y.filter(ne=>{ne.isMarked&&ne.id===q&&(x+=0===Q?ne.code:`-${ne.code}`)})}),Y.filter(q=>q.indeterminate).filter((q,Q)=>{x+=0===$.length&&0===Q?q.code:`-${q.code}`}),x+="]",x}function y(Y,$,x){let ie="[";return $.forEach((q,Q)=>{Y.filter(ne=>{ne.isMarked&&ne.id===q&&ne.children.forEach((ve,Pe)=>{ie+=0===Q&&0===Pe?ve.code:`-${ve.code}`})})}),x.forEach((q,Q)=>{Y.filter(ne=>{(ne.indeterminate||ne.checked)&&ne.children.filter(ve=>{ve.checked&&ve.id===q&&(ie+=0===$.length&&0===Q?ve.code:`-${ve.code}`)})})}),ie+="]",ie}function G(Y){const $=Y.departure.selected,x=Y.arrive.selected;return 1===$.length&&1===x.length&&$[0]===x[0]?"yes":"no"}function ee(Y){return`${Y.cruiseLine.name||""} - ${Y.ship.name||""}`}function oe(Y){return{adult:Y?.adult||"",children:Y?.children||"",passenger:Y?Y.adult+Y.children:""}}function _e(Y,$){let x="";const ie=$.find(q=>{if(q.hasChildren)return!!q.children.find(ne=>ne.id===Y)});return ie&&(x=ie.code),x}function de(Y,$,x,ie,q,Q,ne){const ve=[],{adult:Pe,children:_t,passenger:rt}=oe(ne);return Y.forEach((It,ct)=>{ve.push({item_id:It.sailingCode,item_name:ee(It.departureOptions[0]),affiliation:ie,coupon:q||"",discount:Q||"",index:ct,item_brand:It.departureOptions[0].cruiseLine.name||"",item_category:"",item_item_category2:"",item_item_category3:"",item_item_category4:"",item_item_category5:"",item_list_id:"search_result",item_list_name:"search_result",item_variant:$.type||"",price:$.price||"",quantity:1,departure_date:It.departureOptions[0].date||"",arrival_city_code:It.arrive.code,departure_city_code:It.departure.code,port_of_call_city_codes:It.itineraryMapCode,fare:"",destination_code:"",arrival_country_code:_e(It.arrive.id,x),departure_country_code:_e(It.arrive.id,x),experience_name:"",passenger:rt,adult:Pe,children:_t,nights:It.departureOptions[0].nights})}),ve}function ot(Y){return Y&&Y.length>0?Y.split(",").length:0}function At(Y){return Y.experiences[0].categories[0].price.finalCurrencyTotalValue.totalValue}function wt(Y){let $=0;const x=At(Y[0]),ie=function qe(Y){return Y.experiences[0].categories[0].price.finalCurrencyTotalValue.totalValueBeforeDiscount}(Y[0]);return ie>x&&($=ie-x),$}function re(Y){const $=Y.description,x=[];return Y.experiences[0].categories.forEach(q=>{x.push(q.name)}),`${$} - ${x.join(",")}`}function Ee(Y,$,x,ie,q){const Q=[],ne=ot(x.chd),ve=Y.cabinOptions.find(It=>It.cabinType.code===$.code),rt=(Number(x.adt)||0)+(Number(ne)||0);return ve&&Q.push({item_id:q||Y.sailingCode||"",item_name:ee(Y.sailingInfo),affiliation:ie,coupon:x.discounts||"",discount:wt(Y.cabinOptions),index:0,item_brand:Y.sailingInfo.cruiseLine.code||"",item_category:re(ve),item_item_category2:ve.experiences[0].name,item_item_category3:"",item_item_category4:"",item_item_category5:"",item_list_id:"search_result",item_list_name:"search_result",item_variant:ve.cabinType.name,price:At(ve),quantity:1,departure_date:Y.sailingInfo.itinerary.sailingDate,arrival_city_code:Y.sailingInfo.arrival.code,departure_city_code:Y.sailingInfo.departure.code,port_of_call_city_codes:Y.sailingInfo.itinerary.itineraryMapCode,fare:ve.experiences[0].categories[0].fare.name||"",destination_code:"",arrival_country_code:Y.sailingInfo.arrival.country,departure_country_code:Y.sailingInfo.departure.country,experience_name:ve.experiences[0].name,passenger:rt,adult:x.adt,children:ne,nights:Y.sailingInfo.itinerary.nights}),Q}function Le(Y){let $="";return Y&&""!==Y.code&&($="O"===Y.code?"your_choise":"Main"===Y.code||"1"===Y.code?"first":"second"),$}function Dt(Y){return Y?Y.totalValueBeforeDiscount-Y.totalValue:0}function Tt(Y){return Y&&Y.selected?Y.selected.name:""}function pt(Y){const $=Y.adults;let x=0;return Y.childrenAges&&(x=Y.childrenAges.length),{adult:$,children:x,passenger:$+x}}function Be(Y,$,x,ie){const q=Y.discounts.applied&&Y.discounts.applied.length>0,{adult:Q,children:ne,passenger:ve}=pt(Y.checkoutOptions.request);return{item_id:ie,item_name:ee(Y.sailingInfo),affiliation:x,coupon:q?Y.discounts.applied[0].code:"",discount:q?Dt($.totalPrice?.finalCurrencyTotalValue):0,index:0,item_brand:Y.sailingInfo.cruiseLine.code||"",item_category:re($.cabinOption),item_category2:$.experience?.name||"",item_category3:"",item_category4:"",item_category5:"",item_list_id:"search_result",item_list_name:"search_result",item_variant:$.cabinType?.name,price:$.totalPrice?.finalCurrencyTotalValue.totalValue,quantity:1,departure_date:Y.sailingInfo.itinerary.sailingDate,arrival_city_code:Y.sailingInfo.arrival.code,departure_city_code:Y.sailingInfo.departure.code,port_of_call_city_codes:Y.sailingInfo.itinerary.itineraryMapCode,fare:Tt($.fareCodesDrop),destination_code:Y.sailingInfo.destinations||"",arrival_country_code:Y.sailingInfo.arrival.country,departure_country_code:Y.sailingInfo.departure.country,experience_name:$.experience?.name||"",passenger:ve,adult:Q,children:ne,nights:Y.sailingInfo.itinerary.nights}}function ft(Y,$,x,ie){if(!$.insurance)return;const{adult:q,children:Q,passenger:ne}=pt(Y.checkoutOptions.request);return{item_id:`${ie}_SEGURO`,item_name:"Seguro Stands",affiliation:x,coupon:"",discount:"",index:0,item_brand:$.insurance?.name,item_category:"Seguro",item_item_category2:"",item_item_category3:"",item_item_category4:"",item_item_category5:"",item_list_id:"add_to_cart",item_list_name:"add_to_cart",item_variant:"Stand",price:$.insurance.price.finalCurrencyTotalValue.totalValue/ne||0,quantity:ne,passenger:ne,adult:q,children:Q,nights:Y.sailingInfo.itinerary.nights}}function gt(Y){let $=0,x=1;return Y.priceByCabin?$=Y.totalAmount.finalCurrencyTotalValue.totalValue:(x=Y.passengers.length,$=Y.totalAmount.finalCurrencyTotalValue.totalValue/x||0),{price:$,quantity:x}}function Et(Y,$,x,ie){if(!$.onBoardingItems)return;const{adult:q,children:Q,passenger:ne}=pt(Y.checkoutOptions.request),ve=[];return $.onBoardingItems.forEach(Pe=>{const{quantity:_t,price:rt}=gt(Pe.value);ve.push({item_id:`${ie}_${Pe.item.name}`,item_name:Pe.item.name,affiliation:x,coupon:"",discount:"",index:0,item_brand:Y.sailingInfo.ship.name,item_category:Pe.value.categoryName,item_item_category2:Pe.value.categoryName,item_item_category3:"",item_item_category4:"",item_item_category5:"",item_list_id:"add_to_cart",item_list_name:"add_to_cart",item_variant:Pe.item.code,price:rt,quantity:_t,passenger:ne,adult:q,children:Q,nights:Y.sailingInfo.itinerary.nights})}),ve}function Mt(Y,$,x,ie){if(!$.excursionItems)return;const{adult:q,children:Q,passenger:ne}=pt(Y.checkoutOptions.request),ve=[];return $.excursionItems.forEach(Pe=>{const{quantity:_t,price:rt}=gt(Pe.value);ve.push({item_id:`${ie}_${Pe.item.name}`,item_name:Pe.item.name,affiliation:x,coupon:"",discount:"",index:0,item_brand:Y.sailingInfo.ship.name,item_category:Pe.value.categoryName||"",item_item_category2:Pe.value.categoryName||"",item_item_category3:"",item_item_category4:"",item_item_category5:"",item_list_id:"add_to_cart",item_list_name:"add_to_cart",item_variant:Pe.item.code,price:rt,quantity:_t,passenger:ne,adult:q,children:Q,nights:Y.sailingInfo.itinerary.nights})}),ve}function Qt(Y){return Y.substring(0,2)}function ye(Y){return Y.substring(2,4)}function Ae(Y){return Y.substring(4,8)}function A(Y){var $=new Date,x=$.getFullYear(),ie=parseInt(Qt(Y)),q=parseInt(ye(Y)),ne=x-parseInt(Ae(Y)),ve=$.getMonth()+1;return(ve<q||ve==q&&(new Date).getDate()<ie)&&ne--,ne}function We(Y,$,x){let ie={user_id:Y};if($&&(ie.user_zip=x.zip,ie.user_city=$.cidade,ie.user_state=$.estado,ie.user_neighborhood=$.bairro,ie.user_country="Brasil"),x.birthday){const q=(0,e.V5)(x.birthday);ie.user_date_of_birth=Qt(q),ie.user_month_of_birth=ye(q),ie.user_years_of_birth=Ae(q)}return x.gender&&(ie.user_gender="M"===x.gender?"Homem":"Mulher"),x.name&&(ie.name=x.name),x.email&&(ie.email=x.email),x.phone&&(ie.mobile_phone=x.phonePrefix+x.phone),ie}var Qe=(()=>{return(Y=Qe||(Qe={})).VIEW_PROMOTION="view_promotion",Y.SELECT_PROMOTION="select_promotion",Y.SEARCH_QUERY="search_query",Y.VIEW_ITEM_LIST="view_item_list",Y.SELECT_ITEM="select_item",Y.VIEW_IDENTIFICATION="view_identification",Y.ADD_PASSENGER="add_passenger",Y.VIEW_ITEM="view_item",Y.ADD_TO_CART="add_to_cart",Y.VIEW_CART="view_cart",Y.BEGIN_CHECKOUT="begin_checkout",Y.ADD_IDENTIFICATION_PASSENGER="add_identification_passeger",Y.ADD_PAYMENT_INFO="add_payment_info",Y.PURCHASE="purchase",Y.REMOVE_FROM_CART="remove_from_cart",Y.IDENTIFICATION="identification",Y.VIEW_EXHAUSTED="view_exhausted",Qe;var Y})(),Ye=h(87224),Oe=h(94650),Ke=h(27722),yt=h(90263);let Ge=(()=>{class Y{constructor(x,ie){this.configService=x,this.authService=ie}getAffiliation(){return this.configService.config?.clientName}mustSendData(){return"B2C"===this.configService.config?.clientBusiness}sendData(x){!this.mustSendData()||this.tryCatch(()=>{dataLayer.push({ecommerce:null}),dataLayer.push(x)})}tryCatch(x){try{x()}catch(ie){newrelic.noticeError(ie)}}pushViewPromotion(x,ie){this.tryCatch(()=>{const q=function K(Y,$){const x=[];return $.forEach(ie=>{x.push({promotion_id:ie.id,promotion_name:ie.title,creative_slot:"Home | Cards",location_id:`Home | ${Y}`})}),x}(x,ie);this.sendData({event:Qe.VIEW_PROMOTION,ecommerce:{promotions:q}})})}pushClickPromotion(x,ie){this.tryCatch(()=>{const q=function F(Y,$){return{promotion_id:$.id,promotion_name:$.title,creative_slot:"Home | Cards",location_id:`Home | ${Y}`}}(x,ie);this.sendData({event:Qe.SELECT_PROMOTION,ecommerce:{promotions:[q]}})})}pushClickSearch(x,ie){this.tryCatch(()=>{const q=function w(Y,$){const x=function C(Y){const $=[];return Y.cruiseCompanies.selected.forEach(x=>{Y.ships.options.find(ie=>{if(ie.id===x){const q=[];ie.children.forEach(ne=>{q.push(ne.code)}),$.push({code:ie.code,ships:q})}})}),Y.ships.selected.forEach(x=>{Y.ships.options.find(ie=>{(ie.indeterminate||ie.checked)&&ie.children.find(q=>{if(q.id===x){const Q=$.find(ne=>ne.code===ie.code);Q?Q.ships.push(q.code):$.push({code:ie.code,ships:[q.code]})}})})}),$}(Y),ie=function U(Y){let $="[";return Y.forEach((x,ie)=>{$+=0===ie?x.code:`-${x.code}`}),$+="]",$}(x),q=function b(Y){let $="";return Y.forEach((x,ie)=>{$+=0===ie?x.code:`-${x.code}`,$+="[",x.ships.forEach((q,Q)=>{$+=0===Q?q:`-${q}`}),$+="]"}),$}(x);return{destinations:Z(Y.destination.selected),duration:z(Y.duration.selected),departure_range_date_start:N(Y.dates.selected.fromValue),departure_range_date_end:N(Y.dates.selected.toValue),arrival_countries_code:E(Y.arrive.options,Y.arriveCountries.selected),arrival_cities_code:y(Y.arrive.options,Y.arriveCountries.selected,Y.arrive.selected),departure_countries_code:E(Y.departure.options,Y.departureCountries.selected),departure_cities_code:y(Y.departure.options,Y.departureCountries.selected,Y.departure.selected),cruise_lines:ie,ships:q,port_of_call_city_codes:H(Y.portsOfCall.selected,$),circular_itinerary:G(Y),passenger:Y.roomConfiguration.selected.adts}}(x,ie),Q={event:Qe.SEARCH_QUERY,...q};this.sendData(Q)})}pushInitSearchPage(x,ie,q,Q){this.tryCatch(()=>{const ne=this.getAffiliation(),ve=function Ne(Y,$,x,ie,q,Q){const ne=[],{adult:ve,children:Pe,passenger:_t}=oe(Q);return Y.forEach((rt,It)=>{rt.departureOptions.forEach((ct,jt)=>{ne.push({item_id:ct.code,item_name:ee(ct),affiliation:x,coupon:ie||"",discount:q||"",index:It,item_brand:ct.cruiseLine.name||"",item_category:"",item_item_category2:"",item_item_category3:"",item_item_category4:"",item_item_category5:"",item_list_id:"search_result",item_list_name:"search_result",item_variant:ct.fares[0].type||"",price:rt.bestPrice||"",quantity:1,departure_date:ct.date||"",arrival_city_code:rt.arrive.code,departure_city_code:rt.departure.code,port_of_call_city_codes:rt.itineraryMapCode,fare:"",destination_code:"",arrival_country_code:_e(rt.arrive.id,$),departure_country_code:_e(rt.arrive.id,$),experience_name:"",passenger:_t,adult:ve,children:Pe,nights:ct.nights})})}),ne}(x,ie,ne,q,Q);this.sendData({event:Qe.VIEW_ITEM_LIST,ecommerce:{items:ve}})})}pushMoreItemsSearchPage(x,ie,q,Q){this.tryCatch(()=>{const ne=this.getAffiliation(),ve=function te(Y,$,x,ie,q,Q){const ne=[],{adult:ve,children:Pe,passenger:_t}=oe(Q);return Y.departureOptions.forEach((rt,It)=>{ne.push({item_id:rt.code,item_name:ee(rt),affiliation:x,coupon:ie||"",discount:q||"",index:It,item_brand:rt.cruiseLine.name||"",item_category:"",item_item_category2:"",item_item_category3:"",item_item_category4:"",item_item_category5:"",item_list_id:"search_result",item_list_name:"search_result",item_variant:rt.fares[0].type||"",price:Y.bestPrice||"",quantity:1,departure_date:rt.date||"",arrival_city_code:Y.arrive.code,departure_city_code:Y.departure.code,port_of_call_city_codes:Y.itineraryMapCode,fare:"",destination_code:"",arrival_country_code:_e(Y.arrive.id,$),departure_country_code:_e(Y.arrive.id,$),experience_name:"",passenger:_t,adult:ve,children:Pe,nights:rt.nights})}),ne}(x,ie,ne,q,Q);this.sendData({event:Qe.VIEW_ITEM_LIST,ecommerce:{items:ve}})})}pushSelectItemSearchPage(x,ie,q,Q,ne){this.tryCatch(()=>{const ve=this.getAffiliation(),Pe=de([x],ie,q,ve,Q,ne);this.sendData({event:Qe.SELECT_ITEM,ecommerce:{items:Pe}})})}pushViewIdentificationInSearchPage(x,ie,q,Q,ne,ve){this.tryCatch(()=>{const Pe=this.getAffiliation(),_t=de([x],ie,q,Pe,Q,ne,ve);this.sendData({event:Qe.VIEW_IDENTIFICATION,ecommerce:{items:_t}})})}pushViewIdentificationInCheckoutPage(x,ie,q,Q,ne,ve){this.tryCatch(()=>{const Pe=this.getAffiliation(),_t=de([x],ie,q,Pe,Q,ne,ve);this.sendData({event:Qe.VIEW_IDENTIFICATION,ecommerce:{items:_t}})})}pushViewIdentificationInLeadCheckoutPage(x,ie,q,Q,ne,ve){this.tryCatch(()=>{const Pe=this.getAffiliation(),_t=function Ie(Y,$,x,ie,q,Q,ne){const ve=[],Pe=Y.sailingInfo.itinerary.details.length;return ve.push({item_id:$,item_name:ee(Y.sailingInfo),affiliation:ie,coupon:q||"",discount:Q||"",index:0,item_brand:Y.sailingInfo.cruiseLine.name||"",item_category:"",item_item_category2:"",item_item_category3:"",item_item_category4:"",item_item_category5:"",item_list_id:"search_result",item_list_name:"search_result",item_variant:"",price:"",quantity:1,departure_date:Y.sailingInfo.itinerary.sailingDate||"",arrival_city_code:Y.sailingInfo.itinerary.details[Pe-1].iata,departure_city_code:Y.sailingInfo.itinerary.details[0].iata,port_of_call_city_codes:Y.sailingInfo.itinerary.itineraryMapCode,fare:"",destination_code:"",arrival_country_code:Y.sailingInfo.arrival.country,departure_country_code:Y.sailingInfo.departure.country,experience_name:"",passenger:ne,adult:0,children:0,nights:Y.sailingInfo.itinerary.nights}),ve}(x,ie,0,Pe,Q,ne,ve);this.sendData({event:Qe.VIEW_IDENTIFICATION,ecommerce:{items:_t}})})}pushAddPassengersInCheckoutPage(x,ie,q,Q,ne){this.tryCatch(()=>{const ve=this.getAffiliation(),Pe=function lt(Y,$,x,ie,q){const Q=[],ne=ot($.chd);return Y.forEach((ve,Pe)=>{Q.push({item_id:ve.sailingCode,item_name:ee(ve.departureOptions[0]),affiliation:x,coupon:ie||"",discount:q||"",index:Pe,item_brand:ve.departureOptions[0].cruiseLine.name||"",item_category:"",item_item_category2:"",item_item_category3:"",item_item_category4:"",item_item_category5:"",item_list_id:"search_result",item_list_name:"search_result",item_variant:ve.departureOptions[0].fares[0].type||"",price:ve.bestPrice,quantity:1,departure_date:ve.departureOptions[0].date||"",arrival_city_code:ve.arrive.name,departure_city_code:ve.departure.name,port_of_call_city_codes:ve.itineraryMapCode,fare:"",destination_code:"",arrival_country_code:"",departure_country_code:"",experience_name:"",passenger:$.adt+ne,adult:$.adt,children:ne,nights:ve.departureOptions[0].nights})}),Q}([x],ie,ve,Q,ne);this.sendData({event:Qe.ADD_PASSENGER,access_cabin:ie.accessCabin?"yes":"no",cruise_loyalty_name:ie.loyaltyName||"",currency:q,value:x.bestPrice,ecommerce:{items:Pe}})})}pushViewItemCheckoutPage(x,ie,q,Q){this.tryCatch(()=>{const ne=this.getAffiliation(),ve=Ee(x,ie,q,ne,Q),Pe={event:Qe.VIEW_ITEM,currency:x.currencyInfo.finalCurrency.code,value:At(x.cabinOptions[0]),ecommerce:{items:ve}};this.sendData(Pe)})}pushSelectItemCheckoutPage(x,ie,q,Q){this.tryCatch(()=>{const ne=this.getAffiliation(),ve=Ee(x,ie,q,ne,Q);this.sendData({event:Qe.SELECT_ITEM,ecommerce:{items:ve}})})}pushViewItemExhausted(){this.tryCatch(()=>{this.sendData({event:Qe.VIEW_EXHAUSTED,view_exhausted:"Esgotou"})})}pushViewItemListOtherCategoriesCheckoutPage(x,ie,q,Q){this.tryCatch(()=>{const ne=this.getAffiliation(),ve=function Ve(Y,$,x,ie,q){const Q=[],ne=ot(x.chd),Pe=(Y.cabinOptions.find(ct=>ct.cabinType.code===$.code),Y.cabinOptions.filter(ct=>ct.cabinType.code===$.code)||[]),It=(Number(x.adt)||0)+(Number(ne)||0);return Pe.shift(),Pe.length>0&&Pe.forEach((ct,jt)=>{Q.push({item_id:q||Y.sailingCode||"",item_name:ee(Y.sailingInfo),affiliation:ie,coupon:x.discounts||"",discount:wt(Y.cabinOptions),index:jt,item_brand:Y.sailingInfo.cruiseLine.code||"",item_category:re(ct),item_item_category2:ct.experiences[0].name,item_item_category3:"",item_item_category4:"",item_item_category5:"",item_list_id:"search_result",item_list_name:"search_result",item_variant:ct.cabinType.name,price:At(ct),quantity:1,departure_date:Y.sailingInfo.itinerary.sailingDate,arrival_city_code:Y.sailingInfo.arrival.code,departure_city_code:Y.sailingInfo.departure.code,port_of_call_city_codes:Y.sailingInfo.itinerary.itineraryMapCode,fare:ct.experiences[0].categories[0].fare.name||"",destination_code:"",arrival_country_code:Y.sailingInfo.arrival.country,departure_country_code:Y.sailingInfo.departure.country,experience_name:ct.experiences[0].name,passenger:It,adult:x.adt,children:ne,nights:Y.sailingInfo.itinerary.nights})}),Q}(x,ie,q,ne,Q);if(ve.length>0){const Pe={event:Qe.VIEW_ITEM_LIST,currency:x.currencyInfo.finalCurrency.code,value:At(x.cabinOptions[0]),ecommerce:{items:ve}};this.sendData(Pe)}})}pushAddToCartCheckoutPage(x,ie,q,Q){this.tryCatch(()=>{const ne=this.getAffiliation(),{dinningOption:ve,selectedCabin:Pe,insurance:_t}=ie;if(!Q||ve&&Pe&&_t){const rt=[],It=Be(x,ie,ne,q);rt.push(It);const ct=ft(x,ie,ne,q);ct&&rt.push(ct);const jt=Et(x,ie,ne,q);jt&&rt.push(...jt);const Kt=Mt(x,ie,ne,q);Kt&&rt.push(...Kt);const On={event:Qe.ADD_TO_CART,currency:x.checkoutOptions.companyConfiguration.currency.code,value:ie.totalPrice?.finalCurrencyTotalValue.totalValue,dinner_time:Le(ie.dinningOption),ecommerce:{items:rt}};this.sendData(On)}else this.pushAsyncAddToCartCheckoutPage(x,q,Q)})}pushAsyncAddToCartCheckoutPage(x,ie,q){q?.pipe((0,Ye.P)()).subscribe(Q=>{Q&&this.pushAddToCartCheckoutPage(x,Q,ie)})}pushAsyncBeginCartCheckoutPage(x,ie,q){q?.pipe((0,Ye.P)()).subscribe(Q=>{Q&&this.pushBeginCartCheckoutPage(x,Q,ie)})}pushAsyncViewCartCheckoutPage(x,ie,q){q?.pipe((0,Ye.P)()).subscribe(Q=>{Q&&this.pushViewCartCheckoutPage(x,Q,ie)})}pushViewCartCheckoutPage(x,ie,q,Q){this.tryCatch(()=>{const ne=this.getAffiliation(),{dinningOption:ve,selectedCabin:Pe,insurance:_t}=ie;if(!Q||ve&&Pe&&_t){const rt=[],It=Be(x,ie,ne,q);rt.push(It);const ct=ft(x,ie,ne,q);ct&&rt.push(ct);const jt=Et(x,ie,ne,q);jt&&rt.push(...jt);const Kt=Mt(x,ie,ne,q);Kt&&rt.push(...Kt);const On={event:Qe.VIEW_CART,currency:x.checkoutOptions.companyConfiguration.currency.code,value:ie.totalPrice?.finalCurrencyTotalValue.totalValue,dinner_time:Le(ie.dinningOption),ecommerce:{items:rt}};this.sendData(On)}else this.pushAsyncViewCartCheckoutPage(x,q,Q)})}pushBeginCartCheckoutPage(x,ie,q,Q){this.tryCatch(()=>{const ne=this.getAffiliation(),{dinningOption:ve,selectedCabin:Pe,insurance:_t}=ie;if(!Q||ve&&Pe&&_t){const rt=[],It=Be(x,ie,ne,q);rt.push(It);const ct=ft(x,ie,ne,q);ct&&rt.push(ct);const jt=Et(x,ie,ne,q);jt&&rt.push(...jt);const Kt=Mt(x,ie,ne,q);Kt&&rt.push(...Kt),this.sendData({event:Qe.BEGIN_CHECKOUT,currency:x.checkoutOptions.companyConfiguration.currency.code,value:ie.totalPrice?.finalCurrencyTotalValue.totalValue,ecommerce:{items:rt}})}else this.pushAsyncBeginCartCheckoutPage(x,q,Q)})}pushAddIdentificationCheckoutPage(x,ie,q){this.tryCatch(()=>{const Q=this.getAffiliation(),ne=function j(Y,$,x,ie){const q=$.paxInfo?.passengers||[],Q=q.length;return{access_cabin:$.accessCabin,cruise_loyalty_name:$.loyaltyProgramInfo?.redeem.length>0?$.loyaltyProgramInfo?.redeem[0].loyaltyName:"",pax1_gender:q[0].gender||"",pax2_gender:Q>1?q[1].gender:"",pax3_gender:Q>2?q[2].gender:"",pax4_gender:Q>3?q[3].gender:"",pax1_nationality:q[0].birthPlace||q[0].birthday||"",pax2_nationality:Q>1?q[1].birthPlace||q[1].birthday:"",pax3_nationality:Q>2?q[2].birthPlace||q[2].birthday:"",pax4_nationality:Q>3?q[3].birthPlace||q[3].birthday:"",usercontractor_zip:q[0].zipCode||"",usercontractor_city:q[0].city||"",usercontractor_state:q[0].state||"",usercontractor_neighborhood:q[0].district||"",usercontractor_date_of_birth:Qt(q[0].birthPlace||q[0].birthday)||"",usercontractor_month_of_birth:ye(q[0].birthPlace||q[0].birthday)||"",usercontractor_years_of_birth:Ae(q[0].birthPlace||q[0].birthday)||"",usercontractor_gender_buyer:q[0].gender||"",pax1_age:A(q[0].birthPlace||q[0].birthday)||"",pax2_age:Q>1?A(q[1].birthPlace||q[1].birthday):"",pax3_age:Q>2?A(q[2].birthPlace||q[2].birthday):"",pax4_age:Q>3?A(q[3].birthPlace||q[3].birthday):""}}(0,ie),ve=[],Pe=Be(x,ie,Q,q);ve.push(Pe);const _t=ft(x,ie,Q,q);_t&&ve.push(_t);const rt=Et(x,ie,Q,q);rt&&ve.push(...rt);const It=Mt(x,ie,Q,q);It&&ve.push(...It);const ct={event:Qe.ADD_IDENTIFICATION_PASSENGER,currency:x.checkoutOptions.companyConfiguration.currency.code,value:ie.totalPrice?.finalCurrencyTotalValue.totalValue,...ne,ecommerce:{items:ve}};this.sendData(ct)})}pushAddPaymentInfoCheckoutPage(x,ie,q){this.tryCatch(()=>{const Q=this.getAffiliation(),ne=[],ve=Be(x,ie,Q,q);ne.push(ve);const Pe=ft(x,ie,Q,q);Pe&&ne.push(Pe);const _t=Et(x,ie,Q,q);_t&&ne.push(..._t);const rt=Mt(x,ie,Q,q);rt&&ne.push(...rt),this.sendData({event:Qe.ADD_PAYMENT_INFO,currency:x.checkoutOptions.companyConfiguration.currency.code,value:ie.totalPrice?.finalCurrencyTotalValue.totalValue,payment_type:"Cart\xe3o de Cr\xe9dito",number_of_installment:ie.paymentInfo?.numberInstallments,ecommerce:{items:ne}})})}pushConfirmPaymentCheckoutPage(x,ie,q,Q){this.tryCatch(()=>{const ne=this.getAffiliation(),ve=function De(Y,$,x,ie,q,Q,ne){const{portCharge:ve,serviceTax:Pe,localTax:_t,totalTax:rt}=function he(Y){let $=0,x=0,ie=0,q=0;return Y&&0!==Y.length?(Y.forEach(Q=>{Q.details.forEach(ne=>{"PortCharge"===ne.chargeType&&($+=ne.value.finalCurrency),"ServiceTax"===ne.chargeType&&(x+=ne.value.finalCurrency),"LocalTax"===ne.chargeType&&(ie+=ne.value.finalCurrency)})}),q=$+x+ie,{portCharge:$,serviceTax:x,localTax:ie,totalTax:q}):{portCharge:$,serviceTax:x,localTax:ie}}($.category?.price.priceDetails);let It=0;if(Y?.loyaltyProgramInfo){const jt=(0,s.o)(Y?.loyaltyProgramInfo,Q,ne);jt.length>0&&(It=$.category?.price?.finalCurrencyTotalValue?.totalCabinWithoutNCF*jt[0].conversionRate)}return{transaction_id:q||0,tax:rt,exchange_rate:Y.currencyInfo.exchangeRate,total_cabin_value_with_ncf:$.category?.price.finalCurrencyTotalValue.totalCabinValue,total_cabin_value_without_ncf:$.category?.price.finalCurrencyTotalValue.totalCabinWithoutNCF,total_commission_value:$.category?.price.finalCurrencyTotalValue.totalCommission,total_commission_value_agency:$.category?.price.finalCurrencyTotalValue.totalCommissionAgency,port_charge:ve,service_tax:Pe,local_tax:_t,total_value_before_discount:$.category?.price.finalCurrencyTotalValue.totalValueBeforeDiscount,total_net:$.category?.price.finalCurrencyTotalValue.totalNet,total_net_agency:$.category?.price.finalCurrencyTotalValue.totalNetAgency,sale_currency:Y?.currencyInfo.finalCurrency.code,loyalty_points_earned:It}}(x,ie,0,0,Q,this.configService.config,this.authService.user),Pe=[],_t=Be(x,ie,ne,q);Pe.push(_t);const rt=ft(x,ie,ne,q);rt&&Pe.push(rt);const It=Et(x,ie,ne,q);It&&Pe.push(...It);const ct=Mt(x,ie,ne,q);ct&&Pe.push(...ct);const jt={event:Qe.PURCHASE,currency:x.checkoutOptions.companyConfiguration.currency.code,value:ie.totalPrice?.finalCurrencyTotalValue.totalValue,...ve,ecommerce:{items:Pe}};this.sendData(jt)})}pushRemoveFromCartCheckoutPage(x,ie,q){this.tryCatch(()=>{const Q=this.getAffiliation(),ne=[],ve=Be(x,ie,Q,q);ne.push(ve);const Pe=ft(x,ie,Q,q);Pe&&ne.push(Pe);const _t=Et(x,ie,Q,q);_t&&ne.push(..._t);const rt=Mt(x,ie,Q,q);rt&&ne.push(...rt),this.sendData({event:Qe.REMOVE_FROM_CART,currency:x.checkoutOptions.companyConfiguration.currency.code,value:ie.totalPrice?.finalCurrencyTotalValue.totalValue,ecommerce:{items:ne}})})}pushIdentificationUser(x,ie,q){this.tryCatch(()=>{const Q=We(x,ie,q),ne={event:Qe.IDENTIFICATION,...Q};this.sendData(ne)})}pushIdentificationUsers(x,ie,q){this.tryCatch(()=>{const Q=We(x,ie,q),ne={event:Qe.IDENTIFICATION,...Q};this.sendData(ne)})}pushAddPassengersInLeadCheckoutPage(x,ie,q,Q,ne,ve){this.tryCatch(()=>{const Pe=this.getAffiliation(),_t=function Ze(Y,$,x,ie,q,Q,ne){const ve=[],Pe=""==ne.queryParams.chd?0:ne.queryParams.chd.split(",").length,_t=ne.queryParams.adt+Pe,rt=Y.sailingInfo.itinerary.details.length;return ve.push({item_id:$,item_name:ee(Y.sailingInfo),affiliation:ie,coupon:q||"",discount:Q||"",index:0,item_brand:Y.sailingInfo.cruiseLine.name||"",item_category:"",item_item_category2:"",item_item_category3:"",item_item_category4:"",item_item_category5:"",item_list_id:"search_result",item_list_name:"search_result",item_variant:"",price:"",quantity:1,departure_date:Y.sailingInfo.itinerary.sailingDate||"",arrival_city_code:Y.sailingInfo.itinerary.details[rt-1].iata,departure_city_code:Y.sailingInfo.itinerary.details[0].iata,port_of_call_city_codes:Y.sailingInfo.itinerary.itineraryMapCode,fare:"",destination_code:"",arrival_country_code:Y.sailingInfo.arrival.country,departure_country_code:Y.sailingInfo.departure.country,experience_name:"",passenger:_t,adult:ne.queryParams.adt,children:Pe,nights:Y.sailingInfo.itinerary.nights}),ve}(x,ie,0,Pe,Q,ne,ve);this.sendData({event:Qe.ADD_PASSENGER,access_cabin:ve.accessCabin?"yes":"no",cruise_loyalty_name:ve.loyaltyName||"",currency:"",value:ve.expectedPrice||"",ecommerce:{items:_t}})})}}return Y.\u0275fac=function(x){return new(x||Y)(Oe.LFG(Ke.q),Oe.LFG(yt.e))},Y.\u0275prov=Oe.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})()},29509:(Xe,me,h)=>{"use strict";h.d(me,{C:()=>K,c:()=>s});var e=h(80529);const s={headers:new e.WM({Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("kz-token")})};function K(F=!1,Z){const O=window.localStorage.getItem("kz-token")||Z?.bToken;return{headers:new e.WM({Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer "+(F?Z?.qToken:O)})}}},57924:(Xe,me,h)=>{"use strict";h.d(me,{J:()=>s});var e=h(94650);let s=(()=>{class K{show(Z="Loading",O){this.isLoading=!0,this.title=Z,this.description=O}hide(){this.isLoading=!1,this.title=null,this.description=null}}return K.\u0275fac=function(Z){return new(Z||K)},K.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},27278:(Xe,me,h)=>{"use strict";h.d(me,{Z:()=>G});var e=h(94650),s=h(43740),K=h(11481),F=h(36895);function Z(w,ee){if(1&w){const oe=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(oe);const Ne=e.oxw();return e.KtG(Ne.activeModal.dismiss("close"))}),e.TgZ(1,"span",9),e.SDv(2,10),e.qZA()()}}function O(w,ee){1&w&&e._UZ(0,"i",15)}function H(w,ee){1&w&&e._UZ(0,"i",16)}function z(w,ee){1&w&&e._UZ(0,"i",17)}function N(w,ee){if(1&w&&(e.TgZ(0,"div",11),e.YNc(1,O,1,0,"i",12),e.YNc(2,H,1,0,"i",13),e.YNc(3,z,1,0,"i",14),e.qZA()),2&w){const oe=e.oxw();e.xp6(1),e.Q6J("ngIf","success"===oe.type),e.xp6(1),e.Q6J("ngIf","warning"===oe.type),e.xp6(1),e.Q6J("ngIf","error"===oe.type)}}function E(w,ee){if(1&w){const oe=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(oe);const Ne=e.oxw(2);return e.KtG(Ne.secondaryEmit())}),e._uU(1),e.qZA()}if(2&w){const oe=e.oxw(2);e.xp6(1),e.Oqu(oe.secondaryBtnDescription)}}function y(w,ee){if(1&w){const oe=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(oe);const Ne=e.oxw(2);return e.KtG(Ne.primaryEmit())}),e._uU(1),e.qZA()}if(2&w){const oe=e.oxw(2);e.xp6(1),e.Oqu(oe.primaryBtnDescription)}}function C(w,ee){if(1&w&&(e.TgZ(0,"div",18),e.YNc(1,E,2,1,"button",19),e.YNc(2,y,2,1,"button",20),e.qZA()),2&w){const oe=e.oxw();e.xp6(1),e.Q6J("ngIf",oe.secundaryBtn),e.xp6(1),e.Q6J("ngIf",oe.primaryBtn)}}let U=(()=>{class w{constructor(oe,_e){this.activeModal=oe,this.sanitizer=_e}ngOnInit(){this.alertConfig&&(this.ngModalConfig=this.alertConfig.ngModalConfig,this.type=this.alertConfig.type,this.title=this.alertConfig.title,this.description=this.sanitizeHtml(this.alertConfig.description),this.primaryBtn=this.alertConfig.primaryBtn,this.primaryBtnDescription=this.alertConfig.primaryBtnDescription||"Ok",this.secundaryBtn=this.alertConfig.secundaryBtn,this.secondaryBtnDescription=this.alertConfig.secondaryBtnDescription||"Cancelar",this.showCloseBtn=this.alertConfig.showCloseBtn)}primaryEmit(){this.activeModal.close(!0)}secondaryEmit(){this.activeModal.close(!1)}sanitizeHtml(oe){return this.sanitizer.bypassSecurityTrustHtml(oe)}}return w.\u0275fac=function(oe){return new(oe||w)(e.Y36(s.Kz),e.Y36(K.H7))},w.\u0275cmp=e.Xpm({type:w,selectors:[["app-modal-alert"]],inputs:{alertConfig:"alertConfig"},decls:9,vars:5,consts:function(){let ee;return ee="Fechar",[[1,"modal-alert-container"],[1,"modal-body"],["type","button","class","close btn btn-light","aria-label","Close",3,"click",4,"ngIf"],["class","icons",4,"ngIf"],[1,"modal-title"],[1,"modal-description"],[3,"innerHTML"],["class","modal-buttons",4,"ngIf"],["type","button","aria-label","Close",1,"close","btn","btn-light",3,"click"],[1,"sr-only"],ee,[1,"icons"],["class","icon-check-circle",4,"ngIf"],["class","icon-alert-triangle",4,"ngIf"],["class","icon-x-octagon",4,"ngIf"],[1,"icon-check-circle"],[1,"icon-alert-triangle"],[1,"icon-x-octagon"],[1,"modal-buttons"],["class","btn btn-link","type","button",3,"click",4,"ngIf"],["class","btn btn-primary","type","button",3,"click",4,"ngIf"],["type","button",1,"btn","btn-link",3,"click"],["type","button",1,"btn","btn-primary",3,"click"]]},template:function(oe,_e){1&oe&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Z,3,0,"button",2),e.YNc(3,N,4,3,"div",3),e.TgZ(4,"h2",4),e._uU(5),e.qZA(),e.TgZ(6,"div",5),e._UZ(7,"span",6),e.qZA(),e.YNc(8,C,3,2,"div",7),e.qZA()()),2&oe&&(e.xp6(2),e.Q6J("ngIf",_e.showCloseBtn),e.xp6(1),e.Q6J("ngIf",_e.type),e.xp6(2),e.Oqu(_e.title),e.xp6(2),e.Q6J("innerHTML",_e.description,e.oJD),e.xp6(1),e.Q6J("ngIf",_e.secundaryBtn||_e.primaryBtn))},dependencies:[F.O5],encapsulation:2}),w})();var b=h(36690);let G=(()=>{class w{constructor(oe,_e,Ne){this.ngbModal=oe,this.location=_e,this.router=Ne,this.hasAlertOpened=!1}openModal(oe,_e){return this.ngbModal.open(oe,_e)}hasOpenModals(){return this.ngbModal.hasOpenModals()}closeModal(){this.hasOpenModals()&&this.closeAllModals()}closeAllModals(oe){this.ngbModal.dismissAll(oe)}openModalAlert(oe,_e=null,Ne=null,te=null){const de=this.openModal(U,oe.ngModalConfig);de.componentInstance.alertConfig=oe,de.result.then(J=>{J?_e&&_e():Ne&&Ne()},()=>te?te():null)}openModalErroAlert(oe,_e=null,Ne=null,te=null){if(!this.hasAlertOpened){const de=this.openModal(U,oe.ngModalConfig);de.componentInstance.alertConfig=oe,this.hasAlertOpened=!0,de.result.then(J=>{this.hasAlertOpened=!1,J?_e&&_e():Ne&&Ne()},()=>{this.hasAlertOpened=!1,te&&te()})}}openImportLocALert(oe,_e){const Ne={type:void 0,title:"Localizador n\xE3o foi encontrado",description:"Deseja importar este localizador?",primaryBtn:!0,primaryBtnDescription:"Sim",secundaryBtn:!0,secondaryBtnDescription:"N\xE3o",showCloseBtn:!1,ngModalConfig:{size:"sm",centered:!0,backdrop:"static"}},te=this.openModal(U,Ne.ngModalConfig);te.componentInstance.alertConfig=Ne,te.result.then(de=>{de&&oe(!0)})}confirm(oe,_e=null,Ne=null,te=null){const de={primaryBtn:!0,primaryBtnDescription:"Sim",secundaryBtn:!0,secondaryBtnDescription:"N\xE3o",showCloseBtn:!0,ngModalConfig:{size:"sm",centered:!0},...oe},J=this.openModal(U,de.ngModalConfig);J.componentInstance.alertConfig=de,J.result.then(Ie=>{Ie?_e&&_e():Ne&&Ne()},()=>te?te():null)}}return w.\u0275fac=function(oe){return new(oe||w)(e.LFG(s.FF),e.LFG(F.Ye),e.LFG(b.F0))},w.\u0275prov=e.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},5819:(Xe,me,h)=>{"use strict";h.d(me,{q:()=>H});var e=h(80529),s=h(46528),K=h(94650),F=h(90263),Z=h(27722);const O={headers:new e.WM({Accept:"application/json","Content-Type":"application/json"})};let H=(()=>{class z{constructor(E,y,C){this.http=E,this.auth=y,this.config=C,this.companies=[],this.baseUrl=`${this.config?.config?.urlCruiseApi}/${this.config?.config?.culture}`}hasPermission(E){if(E&&this.auth.permissions){const y=this.auth.permissions.split(",").map(C=>C.split(":")[0]);return E instanceof Array?y.some(U=>E.map(b=>b.toUpperCase()).includes(U)):"string"==typeof E&&y.includes(E.toUpperCase())}return!1}listRoles(){return this.http.get(`${this.baseUrl}/Roles/`,O)}addRole(E){return this.http.post(`${this.baseUrl}/Roles`,E,O)}updateRole(E){return this.http.put(`${this.baseUrl}/Roles/${E.roleId}/`,E,O)}deleteRole(E){return this.http.delete(`${this.baseUrl}/Roles/${E}`,O)}listUsers(E,y=1,C){const U=(0,s.xU)({...C,page:y});return this.http.get(`${this.baseUrl}/Roles/users/?companyId=${E}&${U}`,O)}listRolesUsers(E,y=1,C){const U=(0,s.xU)({...C,page:y});return this.http.get(`${this.baseUrl}/Roles/${E}/users/?${U}`,O)}removeRoleUser(E,y){return this.http.delete(`${this.baseUrl}/Roles/${E}/users/${y}`,O)}addUserToRole(E,y){return this.http.post(`${this.baseUrl}/Roles/${E}/users`,{userId:y},O)}listComponents(E=1,y){const C=(0,s.xU)({...y,page:E});return this.http.get(`${this.baseUrl}/Roles/components/?${C}`,O)}listRoleComponents(E,y=1,C){const U=(0,s.xU)({...C,page:y});return this.http.get(`${this.baseUrl}/Roles/${E}/components/?${U}`,O)}addComponentToRole(E,y){return this.http.post(`${this.baseUrl}/Roles/${E}/components`,{componentId:y},O)}addComponent(E){return this.http.post(`${this.baseUrl}/Roles/components`,E,O)}removeComponentRole(E,y){return this.http.delete(`${this.baseUrl}/Roles/${E}/components/${y}`,O)}updatePermissions(E,y,C){return this.http.put(`${this.baseUrl}/Roles/${E}/components/${y}`,C,O)}getCompanies(){return this.http.get(`${this.baseUrl}/Roles/companies?onlyParent=true`,O)}}return z.\u0275fac=function(E){return new(E||z)(K.LFG(e.eN),K.LFG(F.e),K.LFG(Z.q))},z.\u0275prov=K.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})()},93484:(Xe,me,h)=>{"use strict";h.d(me,{z:()=>w});var K,e=h(12931),s=h(591),F=new Uint8Array(16);function Z(){if(!K&&!(K=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return K(F)}const O=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,z=function H(ee){return"string"==typeof ee&&O.test(ee)};for(var N=[],E=0;E<256;++E)N.push((E+256).toString(16).substr(1));const b=function U(ee,oe,_e){var Ne=(ee=ee||{}).random||(ee.rng||Z)();if(Ne[6]=15&Ne[6]|64,Ne[8]=63&Ne[8]|128,oe){_e=_e||0;for(var te=0;te<16;++te)oe[_e+te]=Ne[te];return oe}return function y(ee){var oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,_e=(N[ee[oe+0]]+N[ee[oe+1]]+N[ee[oe+2]]+N[ee[oe+3]]+"-"+N[ee[oe+4]]+N[ee[oe+5]]+"-"+N[ee[oe+6]]+N[ee[oe+7]]+"-"+N[ee[oe+8]]+N[ee[oe+9]]+"-"+N[ee[oe+10]]+N[ee[oe+11]]+N[ee[oe+12]]+N[ee[oe+13]]+N[ee[oe+14]]+N[ee[oe+15]]).toLowerCase();if(!z(_e))throw TypeError("Stringified UUID is invalid");return _e}(Ne)};var G=h(94650);let w=(()=>{class ee{constructor(){this.REPORT_STATE={filters:[],sort:"",page:1,pageSize:10,visibleFields:[]},this.reportSubject=new s.X(this.REPORT_STATE),this.currentReport$=this.reportSubject.asObservable()}resetReportState(){this.reportSubject.next({filters:[],sort:"",page:1,pageSize:10,visibleFields:[]})}addFilter(_e){let Ne=this.reportSubject.value.filters.filter(J=>J.id!==_e.id),te=_e;if(("date"===_e.field.type||"datetime"===_e.field.type)&&"range"===_e.operator.code){const J=_e.value.fromValue,Ie=(0,e.yp)((0,e.E4)((0,e.Mv)(_e.value.toValue),1));te.value=`${J}-${Ie}`}Ne.push({...te,id:b()});const de={...this.reportSubject.value,filters:Ne};this.reportSubject.next(de)}deleteFilter(_e){const Ne=this.reportSubject.value.filters.filter(de=>de.id!==_e.id),te={...this.reportSubject.value,filters:Ne};this.reportSubject.next(te)}resetFilters(){const _e={...this.reportSubject.value,filters:[]};this.reportSubject.next(_e)}getSort(){return this.reportSubject.value.sort}getPage(){return this.reportSubject.value.page}getPageSize(){return this.reportSubject.value.pageSize}getOperatorsArray(_e){let Ne=[];switch(_e){case"string":Ne=[{key:"contains",label:"Cont\xE9m",code:"contains"},{key:"does not contains",label:"N\xE3o cont\xE9m",code:"ncontains"}];break;case"float":case"number":case"Olddate":Ne=[{key:"is",label:"\xC9",code:"eq"},{key:"is not",label:"N\xE3o \xE9",code:"ne"},{key:"is greater than",label:"\xC9 maior que",code:"gt"},{key:"is greater or equal than",label:"\xC9 maior ou igual a",code:"gte"},{key:"is lower than",label:"\xC9 menor do que",code:"lt"},{key:"is lower or equal than",label:"\xC9 menor ou igual a",code:"lte"}];break;case"enum":Ne=[{key:"is",label:"\xC9",code:"eq"}];break;case"boolean":Ne=[{key:"is",label:"\xC9",code:"eq"},{key:"is not",label:"N\xE3o \xE9",code:"ne"}];break;case"datetime":case"date":Ne=[{key:"today",label:"Hoje",code:"today"},{key:"yesterday",label:"Ontem",code:"yesterday"},{key:"week",label:"Esta semana",code:"week"},{key:"month",label:"Este m\xEAs",code:"month"},{key:"lastSeven",label:"\xDAltimos 7 dias",code:"lastSeven"},{key:"lastThirty",label:"\xDAltimos 30 dias",code:"lastThirty"},{key:"range",label:"Escolha datas",code:"range"}]}return Ne}convertQueryParamToFilterArray(_e,Ne){const te=[];let de="",J=0,Ie=10;for(const[ot,lt]of Object.entries(Ne)){if("sort"===ot&&(de=lt),"page"===ot&&(J=isNaN(Number(lt))?1:Number(lt)),"pageSize"===ot){const At=[10,25,50,100],qe=isNaN(Number(lt))?10:Number(lt);Ie=At.reduce((re,Ee)=>Math.abs(Ee-qe)<Math.abs(re-qe)?Ee:re)}if(ot.includes("_")){const At=ot.split("_")[0],qe=ot.split("_")[1],wt=_e.filter(re=>re?.key===At);if(wt.length>0){const re=this.getOperatorsArray(wt[0].type).filter(Ee=>Ee?.code===qe);re.length>0&&te.push({id:b(),field:wt[0],operator:re[0],value:lt})}}}const Ze={...this.reportSubject.value,filters:te};de&&(Ze.sort=de),J&&(Ze.page=J),Ie&&(Ze.pageSize=Ie),this.reportSubject.next(Ze)}parseDateFilter(_e){let Ne="";if("today"===_e.operator.code){const te=(0,e.yp)(new Date);Ne=`${_e.field.key}_eq=${te}`}else if("yesterday"===_e.operator.code){const te=(0,e.yp)((0,e.E4)(new Date,-1));Ne=`${_e.field.key}_eq=${te}`}else if("week"===_e.operator.code){const te=new Date,de=(0,e.yp)((0,e.lX)(te)),J=(0,e.yp)((0,e.E4)((0,e.$5)(te),1));Ne=`${_e.field.key}_gte=${de}&${_e.field.key}_lt=${J}`}else if("month"===_e.operator.code){const te=new Date,de=(0,e.yp)((0,e.lu)(te)),J=(0,e.yp)((0,e.E4)((0,e.ql)(te),1));Ne=`${_e.field.key}_gte=${de}&${_e.field.key}_lt=${J}`}else if("lastSeven"===_e.operator.code){const te=new Date,de=(0,e.yp)((0,e.E4)(te,-7)),J=(0,e.yp)(te);Ne=`${_e.field.key}_gte=${de}&${_e.field.key}_lt=${J}`}else if("lastThirty"===_e.operator.code){const te=new Date,de=(0,e.yp)((0,e.E4)(te,-30)),J=(0,e.yp)(te);Ne=`${_e.field.key}_gte=${de}&${_e.field.key}_lt=${J}`}else if("range"===_e.operator.code){const te=_e.value.split("-");Ne=`${_e.field.key}_gte=${te[0]}&${_e.field.key}_lt=${te[1]}`}return Ne}getQueryString(){const _e=[];return this.reportSubject.value.filters.forEach(Ne=>{let te=Ne.value;const de=Ne.field?.type;if("date"===de||"datetime"===de){const J=this.parseDateFilter(Ne);_e.push(J)}else _e.push(`${Ne.field.key}_${Ne.operator.code}=${te}`)}),_e.join("&")}getQueryParamsObject(){const _e={};return this.reportSubject.value.filters.forEach(Ne=>{_e[`${Ne.field.key}_${Ne.operator.code}`]=Ne.value}),this.reportSubject.value.sort&&(_e.sort=this.reportSubject.value.sort),this.reportSubject.value.page&&(_e.page=this.reportSubject.value.page),this.reportSubject.value.pageSize&&(_e.pageSize=this.reportSubject.value.pageSize),_e}applyPage(_e){const Ne={...this.reportSubject.value,page:_e};this.reportSubject.next(Ne)}applyPageSize(_e){const Ne={...this.reportSubject.value,pageSize:_e};this.reportSubject.next(Ne)}applySort(_e){let Ne="";Ne=this.reportSubject.value.sort===`${_e.key}:ASC`?`${_e.key}:DESC`:this.reportSubject.value.sort===`${_e.key}:DESC`?"":`${_e.key}:ASC`;const te={...this.reportSubject.value,sort:Ne};this.reportSubject.next(te)}}return ee.\u0275fac=function(_e){return new(_e||ee)},ee.\u0275prov=G.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})()},64298:(Xe,me,h)=>{"use strict";h.d(me,{F:()=>E});var e=h(21086),s=h(24850),K=h(29509),F=h(46528),Z=h(94650),O=h(80529),H=h(27722),z=h(27278),N=h(93484);let E=(()=>{class y{constructor(U,b,G,w){this.http=U,this.config=b,this.modalService=G,this.reportFilterService=w,this.baseUrl=`${this.config?.config?.urlCruiseApi}/${this.config?.config?.culture}`,this.baseContentUrl=`${this.config?.config?.urlApiContent}/${this.config?.config?.culture}`}listReportsPcl(U,b){const G=(0,F.xU)({...U,itemsPerPage:9999,page:1});return this.http.get(`${this.baseUrl}/Reports/BookingsPCL/${b}?${G}`,K.c)}getLatestBookings(){return this.http.get(`${this.baseUrl}/Reports/BookingsInOptionPerUser/?ItemsPerPage=5`,K.c).pipe((0,s.U)(b=>b.data))}findFile(U,b=null){let G;return G=b?`${this.baseUrl}/Retrieve/FindFile?locator=${U}&cruiseLineCode=${b}`:`${this.baseUrl}/Retrieve/FindFile?locator=${U}`,this.http.get(G,K.c).pipe((0,s.U)(w=>w.data))}createFile(U,b){this.http.post(`${this.baseUrl}/File/Create`,{},K.c).pipe((0,s.U)(w=>w.data)).subscribe(w=>{if(w)window.location.href=`/retrieve/${w.codFile}/${U}/${b}`;else{const ee={type:void 0,title:"N\xE3o foi poss\xEDvel importar localizador",description:"Um erro ocorreu ao tentar importar o localizador",primaryBtn:!0,primaryBtnDescription:"Ok",secundaryBtn:!1,showCloseBtn:!0,ngModalConfig:{size:"sm",centered:!0}};this.modalService.openModalAlert(ee)}})}listCruiseLines(){const U=`${this.baseUrl}/CruiseLines`;return this.cruiseLines?(0,e.of)(this.cruiseLines):this.http.get(U,K.c).pipe((0,s.U)(G=>(this.cruiseLines=G.data,this.cruiseLines)))}listTasks(U,b){return this.http.get(`${this.config?.config?.urlCruiseApi}/v1/${this.config?.config?.culture}/Tasks/?StartDate=${U}&endDate=${b}`,K.c).pipe((0,s.U)(w=>w.data))}editTask(U){return this.http.put(`${this.config?.config?.urlCruiseApi}/v1/${this.config?.config?.culture}/Tasks/`,U,K.c)}addTask(U){return this.http.post(`${this.config?.config?.urlCruiseApi}/v1/${this.config?.config?.culture}/Tasks/`,U,K.c)}deleteTasks(U){return this.http.delete(`${this.config?.config?.urlCruiseApi}/v1/${this.config?.config?.culture}/Tasks/${U}`,K.c)}getNews(U,b){return this.http.get(`${this.baseContentUrl}/News?ItemsPerPage=4&page=${U}&SortBy=${b}`,K.c).pipe((0,s.U)(w=>w.data))}incrementNewsView(U){this.http.post(`${this.baseContentUrl}/News/IncrementViews/${U}`,K.c).subscribe()}getReports(U){let b=this.reportFilterService.getQueryString();const G=this.reportFilterService.getPage(),w=this.reportFilterService.getSort(),ee=this.reportFilterService.getPageSize()||10;return b&&(b=`&${b}`),this.http.get(`${this.baseUrl}/Reports/${U}/Results?Page=${G}&Sort=${w}${b}&PageSize=${ee}`,K.c)}getGroupBooks(U,b,G){let w=this.reportFilterService.getQueryString();const ee=this.reportFilterService.getPage(),oe=this.reportFilterService.getSort(),_e=this.reportFilterService.getPageSize()||10;return w&&(w=`&${w}`),this.http.get(`${this.baseUrl}/Reports/${U}/Results?groupId_contains=${b}&sailingCode_contains=${G}&Page=${ee}&Sort=${oe}${w}&PageSize=${_e}`,K.c)}getConfigReports(U){return this.http.get(`${this.baseUrl}/Reports/${U}/Configuration`,K.c)}getExportReport(U,b,G){let w=this.reportFilterService.getQueryString();const ee=this.reportFilterService.getPage(),oe=this.reportFilterService.getPageSize()||10,_e=this.reportFilterService.getSort(),Ne=[];b&&b.forEach(J=>{Ne.push(J.key)});const te={headers:{Authorization:"Bearer "+window.localStorage.getItem("kz-token")},responseType:"blob"},de=`${this.baseUrl}/Reports/${U}/Export?format=${G}&fields=${Ne.join(",")}&${w}&Page=${ee}&PageSize=${oe}&Sort=${_e}`;return this.http.get(de,te)}}return y.\u0275fac=function(U){return new(U||y)(Z.LFG(O.eN),Z.LFG(H.q),Z.LFG(z.Z),Z.LFG(N.z))},y.\u0275prov=Z.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})()},87136:(Xe,me,h)=>{"use strict";h.d(me,{d:()=>y});var e=h(591),s=h(29509),K=h(7778),F=h(2994),Z=h(24850),O=h(46528),H=h(94650),z=h(80529),N=h(27722),E=h(27278);let y=(()=>{class C{constructor(b,G,w){this.http=b,this.configStartup=G,this.modalService=w,this.baseUrl=`${this.configStartup.config?.urlCruiseApi}/${this.configStartup.config?.culture}`,this.baseUrlAllotmentApi=`${this.configStartup.config?.urlAllotmentApi}/${this.configStartup.config?.culture}`,this.transferAdditionalSubject=new e.X({}),this.transferAdditional$=this.transferAdditionalSubject.asObservable()}getRetrieve(b,G=""){let w=`${this.baseUrl}/Retrieve/${b}`;return this.fileId=b,G&&(w=`${this.baseUrl}/Retrieve/${b}?gatewayCode=${G}`),this.http.get(w,s.c).pipe((0,F.b)(ee=>{const oe=ee.data;if("success"===ee.status&&oe){oe.retrieveConfig.formConfigJson=JSON.parse(oe.retrieveConfig?.formConfig||null);const _e=oe.passengers||[];_e&&_e.length>0&&(oe.passengers=oe.passengers.map((Ne,te)=>(0,K.uo)(Ne,te)))}}))}editPax(b){const G=`${this.baseUrl}/Retrieve/EditPax`,w={fileId:this.fileId,passengers:b.map((ee,oe)=>(0,K.ly)(ee,oe))};return this.http.put(G,w,s.c)}getOccupations(){return this.http.get(`${this.baseUrl}/Payment/Boleto/${this.fileId}/Occupations`,s.c)}changeUser(b){return this.http.put(`${this.baseUrl}/Retrieve/${this.fileId}/ChangeUser`,{userId:b.id,companyCode:b.companyCode,companyId:b.companyId},s.c)}updateOperator(b){return this.http.put(`${this.baseUrl}/Retrieve/UpdateOperator`,{operatorId:b,fileId:this.fileId},s.c)}changeVisualStatus(b){return this.http.put(`${this.baseUrl}/Status/Visual/${this.fileId}`,{statusId:b},s.c)}changeDateVisual(b){return this.http.put(`${this.baseUrl}/Booking/${this.fileId}/ExtendVisualDeadline`,{newDeadlineDate:b},s.c)}extendBooking(){return this.http.put(`${this.baseUrl}/Booking/${this.fileId}/ExtendBooking`,s.c)}confirmBooking(){return this.http.put(`${this.baseUrl}/Booking/${this.fileId}/ForceConfirm`,s.c)}changeCurrency(b){return this.http.put(`${this.baseUrl}/Currencies/${this.fileId}`,{currencyValue:b},s.c)}sendEticket(b){return this.http.post(`${this.baseUrl}/Retrieve/${this.fileId}/SendEticket`,{email:b},s.c)}cancelFee(){return this.http.get(`${this.baseUrl}/Booking/${this.fileId}/CancelFee`,s.c)}cancelReserve(){return this.http.delete(`${this.baseUrl}/Booking/${this.fileId}/Cancel`,s.c)}editNote(b){return this.http.put(`${this.baseUrl}/Retrieve/Notes/${this.fileId}`,b,s.c)}editExternalCode(b){return this.http.post(`${this.baseUrl}/Retrieve/UpdateFile`,{fileId:this.fileId,externalFile:b},s.c)}getImportLoc(b,G,w,ee){return this.http.post(`${this.baseUrl}/Retrieve/Import?locator=${b}&cruiseLineCode=${G}`,{locator:b,cruiseLineCode:G,vendorInfo:ee,user:w},s.c)}processIntegration(){return this.http.get(`${this.baseUrl}/Retrieve/ProcessIntegration/${this.fileId}`,s.c)}getExternalFile(){return this.http.get(`${this.baseUrl}/Retrieve/getExternalFile/${this.fileId}`,s.c)}addAdditional(b,G){return this.http.post(`${this.baseUrl}/Booking/${this.fileId}/AdditionalItem`,{itemCategory:G,itemCode:b.item.code,itemDescription:b.item.name,date:b.value.date,passengerIndex:b.value.passengers},s.c)}deleteAdditional(b,G){return this.http.delete(`${this.baseUrl}/Booking/${this.fileId}/AdditionalItem?itemCode=${b}&itemDescription=${G}`,s.c)}getBookingHistory(){return this.http.get(`${this.baseUrl}/Booking/${this.fileId}/History`,s.c)}addTransferInAdditional(b,G){this.transferAdditionalSubject.next({hasTransfer:!0,cityCodes:b,urlRedirect:G})}updateMilesAccrual(b,G){return this.http.post(`${this.baseUrl}/Retrieve/UpdateMilesAccrual`,{fileId:this.fileId,newAccrualPoints:b,userId:G},s.c)}migratePayments(b){return this.http.post(`${this.baseUrl}/Retrieve/${this.fileId}/PaymentTransfer`,{bookNumberDestination:b},s.c)}applyDiscount(b){return this.http.post(`${this.baseUrl}/Booking/${this.fileId}/ApplyDiscount`,{paxDestination:b.infosForm.person,description:b.infosForm.description,code:"",discount:b.valueDiscount},s.c)}sendBookEmail(){return this.http.get(`${this.baseUrl}/Email/BookConfirm/${this.fileId}`,s.c)}reactivateBooking(b){return this.http.put(`${this.baseUrlAllotmentApi}/Booking/reactivate`,{bookLocator:b,cabinNumber:""},s.c)}getCabins(b,G){const w=`${this.baseUrl}/Offers/SailingInfo/${b}?${(0,O.xU)({...G})}`;return this.http.get(w,s.c).pipe((0,Z.U)(ee=>ee.data))}upgradeNoPriceChange(b,G){return this.http.put(`${this.baseUrl}/Booking/${this.fileId}/upgradenopricechange`,{categoryCode:b,cabinCode:G},s.c)}upgradePriceChange(b,G){return this.http.put(`${this.baseUrl}/Booking/${this.fileId}/upgradepricechange`,{categoryCode:b,cabinCode:G},s.c)}addCoupon(b){return this.http.post(`${this.baseUrl}/Booking/${this.fileId}/applycoupon`,{code:b},s.c)}removeCoupon(b){return this.http.delete(`${this.baseUrl}/Booking/${this.fileId}/removecoupon/${b}`,s.c)}getCommissions(){return this.http.get(`${this.baseUrl}/Commission/Booking/${this.fileId}`,s.c).pipe((0,Z.U)(G=>G.data))}editCommissions(b){return this.http.put(`${this.baseUrl}/Commission/Booking/${this.fileId}`,b,s.c)}}return C.\u0275fac=function(b){return new(b||C)(H.LFG(z.eN),H.LFG(N.q),H.LFG(E.Z))},C.\u0275prov=H.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},42915:(Xe,me,h)=>{"use strict";h.d(me,{O:()=>O});var e=h(36895),s=h(23753),K=h(80013),F=h(75778),Z=h(94650);let O=(()=>{class H{constructor(N){this.document=N,this.breakpoints={xs:0,sm:992,md:992,lg:992,xl:1200},(0,s.R)(window,"resize").pipe((0,K.b)(200),(0,F.x)()).subscribe(E=>{this.updateValues()}),this.updateValues()}updateValues(){this.screenSize=this.document.body.offsetWidth,this.isExtraSmall=this.screenSize<this.breakpoints.sm,this.isSmall=this.screenSize>=this.breakpoints.sm&&this.screenSize<this.breakpoints.md,this.isMedium=this.screenSize>=this.breakpoints.md&&this.screenSize<this.breakpoints.lg,this.isLarge=this.screenSize>=this.breakpoints.lg&&this.screenSize<this.breakpoints.xl,this.isExtraLarge=this.screenSize>=this.breakpoints.xl}isUp(N){if(this.breakpoints[N])return this.screenSize>this.breakpoints[N];console.error("Invalid breakpoint")}isDown(N){if(this.breakpoints[N])return this.screenSize<this.breakpoints[N];console.error("Invalid breakpoint")}isBetween(N,E){return this.isUp(N)&&this.isDown(E)}}return H.\u0275fac=function(N){return new(N||H)(Z.LFG(e.K0))},H.\u0275prov=Z.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})()},97721:(Xe,me,h)=>{"use strict";h.d(me,{V:()=>z});var e=h(24850),s=h(21086),K=h(29509),F=h(94650),Z=h(27722),O=h(57924),H=h(80529);let z=(()=>{class N{constructor(y,C,U){this.startupService=y,this.load=C,this.http=U,this.searchConfig=null,this.baseUrl=`${this.startupService?.config?.urlSearchApi}/${this.startupService?.config?.culture}/Search`}resolve(){return this.load.show("Carregando busca","Aguarde alguns instantes"),this.getSearchConfig()}getSearchConfig(){return this.searchConfig?(0,s.of)(this.searchConfig):this.http.get(this.baseUrl+"/SearchConfiguration",K.c).pipe((0,e.U)(y=>(this.searchConfig=y.data,y.data)))}}return N.\u0275fac=function(y){return new(y||N)(F.LFG(Z.q),F.LFG(O.J),F.LFG(H.eN))},N.\u0275prov=F.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},79417:(Xe,me,h)=>{"use strict";h.d(me,{o:()=>oe});var e=h(29509),s=h(591),K=h(30567),F=h(21086),Z=h(24850);function O(..._e){const Ne=_e.length;if(0===Ne)throw new Error("list of properties cannot be empty.");return te=>(0,Z.U)(function H(_e,Ne){return de=>{let J=de;for(let Ie=0;Ie<Ne;Ie++){const Ze=J[_e[Ie]];if(!(typeof Ze<"u"))return;J=Ze}return J}}(_e,Ne))(te)}var z=h(84205),N=h(46528),E=h(57484),y=h(83311),C=h(94650),U=h(80529),b=h(57924),G=h(27722),w=h(97721),ee=h(88168);let oe=(()=>{class _e{constructor(te,de,J,Ie,Ze){this.http=te,this.load=de,this.configStartup=J,this.searchResolve=Ie,this.gtmCvcService=Ze,this.searchFiltersInfoSubject=new s.X(null),this.searchFiltersInfo$=this.searchFiltersInfoSubject.asObservable(),this.filterLoadingSubject=new s.X([]),this.isFilterLoading$=this.filterLoadingSubject.asObservable(),this.searchResultSubject=new s.X([]),this.searchResuls$=this.searchResultSubject.asObservable(),this.searchSummarySubject=new s.X([]),this.searchSummary$=this.searchSummarySubject.asObservable(),this.isSummaryLoadingSubject=new s.X(!0),this.isSummaryLoading$=this.isSummaryLoadingSubject.asObservable(),this.showAdvancedSearchSubject=new s.X(!1),this.showAdvancedSearch$=this.showAdvancedSearchSubject.asObservable(),this.sessionAvailableShips=null,this.sessionAvailableLocations=null,this.sessionAvailableLocationsDeparture=null,this.sessionAvailableLocationsArrival=null,this.cache={},this.baseUrl=`${this.configStartup?.config?.urlSearchApi}/${this.configStartup?.config?.culture}/Search`}toggleAdvancedSearch(te){this.showAdvancedSearchSubject.next(te)}getSearchFilterInfo(te=!1){const de=this.getSessionStorageData("/AvailableShips","sessionAvailableShips"),J=this.getSessionStorageData("/AvailableLocations","sessionAvailableLocationsDeparture"),Ie=this.getSessionStorageData("/AvailableLocations","sessionAvailableLocationsArrival"),Ze=this.getSessionStorageData("/AvailableLocations","sessionAvailableLocations"),ot=this.searchResolve.getSearchConfig();if(this.searchQuery){const lt=this.get("/FilterOptions?"+(0,N.xU)(this.searchQuery));this.filterLoadingSubject.next(!0),(0,K.D)({availableShips:de,availableLocationsDeparture:J,availableLocationsArrival:Ie,availableLocations:Ze,filterOptions:lt,searchConfig:ot}).pipe((0,Z.U)(At=>{if(this.searchQuery)return(0,N.mn)(At,this.searchQuery),At})).subscribe(At=>{this.load.hide(),this.filterLoadingSubject.next(!1),this.searchFiltersInfoSubject.next(At)},At=>{this.load.hide(),this.filterLoadingSubject.next(!1),E.T.throwError(At)})}}updateSearchFiltersInfo(te=!1){let de=!0;if(te)this.clearSearchQuery(),this.getSearchResults(),this.getsearchSummary();else if(this.searchQuery){const J=(0,N.xU)(this.searchQuery);this.searchQuery=(0,N.uP)(this.searchFiltersInfoSubject.value.filterOptions),de=J!==(0,N.xU)(this.searchQuery)}de&&this.getSearchFilterInfo()}get(te){return this.http.get(this.baseUrl+te,(0,e.C)(!1,this.configStartup.config)).pipe((0,Z.U)(J=>J.data))}clearSearchResults(){this.searchResultSubject.next(null)}getSearchResults(){if(this.clearSearchResults(),this.searchQuery){const te=`${this.baseUrl}/${this.urlSearchView}?${(0,N.xU)(this.searchQuery)}`;this.isSummaryLoadingSubject.next(!1),this.http.get(te,(0,e.C)(!1,this.configStartup.config)).pipe(O("data"),(0,Z.U)(de=>((0,N.Vy)(de),(0,N.ww)(de),de))).subscribe(de=>{this.searchResultSubject.next(de),this.isSummaryLoadingSubject.next(!0),this.pushGtmSearch("impressions-cruise")})}}changePage(te){this.searchQuery&&(this.searchQuery={...this.searchQuery,page:te})}searchSummaryFilter(te){this.searchFiltersInfoSubject.value.filterOptions.ships.options.forEach(Ie=>{Ie.checked=!1,Ie.isMarked=!1,Ie.children.forEach(Ze=>Ze.checked=!1)});const de=this.searchFiltersInfoSubject.value.filterOptions.cruiseCompanies.selected.filter(Ie=>te===Ie);this.searchFiltersInfoSubject.value.filterOptions.cruiseCompanies.selected=de,this.searchFiltersInfoSubject.value.filterOptions.ships.selected=[];const J=this.searchFiltersInfoSubject.value.filterOptions.ships.options.find(Ie=>Ie.id===te);J.isMarked=!0,J.checked=!0,J.children.forEach(Ie=>Ie.checked=!0),this.updateSearchFiltersInfo(),this.getSearchResults(),this.getsearchSummary()}loadMoreItinerary(te,de=null){const Ie=this.baseUrl+`/${te}/MoreResults/?${de?`ShipId=${de}&`:""}${(0,N.xU)(this.searchQuery||{})}`;return this.http.get(Ie,(0,e.C)(!1,this.configStartup.config)).pipe(O("data"),(0,Z.U)(Ze=>((0,N.Zi)(Ze.departureOptions),Ze.departureOptions)))}getsearchSummary(){if(this.searchSummarySubject.next(null),this.searchResolve.searchConfig.showSearchSummary&&this.searchQuery){const te=(0,N.Zj)({...this.searchQuery}),de=`${this.baseUrl}/PriceSummaryByCruiseLine?${(0,N.xU)(te)}`;this.http.get(de,(0,e.C)(!1,this.configStartup.config)).pipe(O("data")).subscribe(J=>{J.cruiseLines=(0,N.JP)(J),this.searchSummarySubject.next(J)},J=>{console.error(J)})}else this.searchSummarySubject.next({cruiseLines:[]})}get urlSearchView(){switch(this.searchQuery?.viewBy){case y.W.byItinerary:return y.S.byItinerary;case y.W.byShip:return y.S.byShip;case y.W.byDate:return y.S.byDate;default:return y.S.byItinerary}}getCabinCapacity(te,de){let J=this.baseUrl+`/CabinCapacity/?sailingCode=${te}`;return de&&(J+=`&cabinTypeId=${de}`),this.http.get(J,(0,e.C)(!1,this.configStartup.config)).pipe((0,Z.U)(Ie=>Ie.data))}getSessionStorageData(te,de){const J=this.cache[de];if(J){const Ie=JSON.parse(JSON.stringify(J));return(0,F.of)(Ie)}return this.http.get(this.baseUrl+te,(0,e.C)(!1,this.configStartup.config)).pipe((0,Z.U)(Ie=>{const Ze=Ie.data;return this.cache[de]=JSON.parse(JSON.stringify(Ze)),Ze}))}getPortOfCall(te){const de=(0,N.uP)(this.searchFiltersInfoSubject.value.filterOptions),J=(0,N.gl)(de),Ie=(0,N.xU)(J);this.http.get(Ie?`${this.baseUrl}/PortOfCall?criteria=${te}&${Ie}`:`${this.baseUrl}/PortOfCall?criteria=${te}`,(0,e.C)(!1,this.configStartup.config)).pipe((0,Z.U)(ot=>ot.data)).subscribe(ot=>{this.searchFiltersInfoSubject.value.filterOptions.portsOfCall.options=ot})}selectPortOfCall(te){this.searchFiltersInfoSubject.value.filterOptions.portsOfCall.selected=te,this.searchFiltersInfoSubject.value.filterOptions.portsOfCall.options=[]}clearSearchQuery(){this.searchQuery&&(this.searchQuery=new z.Xl({sortBy:this.searchQuery.sortBy,viewBy:this.searchQuery.viewBy,priceByCabin:this.searchQuery.priceByCabin,taxAndFeesIncluded:this.searchQuery.taxAndFeesIncluded}))}setSearchQuery(te){const de={destinations:te.destinations||"",duration:te.duration||"",departureDates:te.departureDates||"",ships:te.ships||"",cruiseCompanies:te.cruiseCompanies||"",price:te.price||"",departures:te.departures||"",arrivals:te.arrivals||"",departureCountries:te.departureCountries||"",arrivalCountries:te.arrivalCountries||"",portsOfCall:te.portsOfCall||"",navigationsType:te.navigationsType||"",cabinTypes:te.cabinTypes||"",promotions:te.promotions||"",overnight:te.overnight||"",hasFlights:te.hasFlights||"",hasMap:te.hasMap||"",hasEvent:te.hasEvent||"",arrivalDepartureSamePort:te.arrivalDepartureSamePort||"",holidays:te.holidays||"",adults:te.adults||"",childrenAges:te.childrenAges||"",page:te.page||0,sortBy:te.sortBy?te.sortBy:this.searchResolve.searchConfig.withTaxes?`${this.searchResolve.searchConfig.sort}_WithTax`:this.searchResolve.searchConfig.sort,viewBy:te.viewBy&&te.viewBy,priceByCabin:te.priceByCabin?te.priceByCabin:"cabin"===this.searchResolve.searchConfig.price,taxAndFeesIncluded:te.taxAndFeesIncluded?te.taxAndFeesIncluded:this.searchResolve.searchConfig.withTaxes,campaignId:te.campaignId||""};("string"==typeof de.taxAndFeesIncluded||"string"==typeof de.priceByCabin)&&(de.taxAndFeesIncluded="true"===de.taxAndFeesIncluded,de.priceByCabin="true"===de.priceByCabin),this.searchQuery=de}removePriceCabinFilter(){this.searchFiltersInfoSubject.value.filterOptions.cabinType.options.forEach(de=>de.checked=!1),this.searchFiltersInfoSubject.value.filterOptions.cabinType.selected=[];const te=this.searchFiltersInfoSubject.value.filterOptions.aditionalFilters.find(de=>"Price"===de.queryName);te.selected.minValue=null,te.selected.maxValue=null}reloadSearchPage(te){this.setSearchQuery(te),this.getSearchFilterInfo(),this.getsearchSummary(),this.getSearchResults()}getRedemptionPrices(){return this.http.put(this.baseUrl+"/Redemption/Prices",{cruiseList:[{cost:0,channel:"string",destinationRegion:"string",destinationCity:"string",departureCountry:"string",departureCity:"string",arriveCountry:"string",arriveCity:"string",duration:0,cruiseCompany:"string",ship:"string",capacity:0,cabinType:"string"}]},e.c)}pushGtmSearch(te,de){this.gtmCvcService.pushSearch(te,this.searchFiltersInfoSubject.value,this.searchResultSubject.value,de)}}return _e.\u0275fac=function(te){return new(te||_e)(C.LFG(U.eN),C.LFG(b.J),C.LFG(G.q),C.LFG(w.V),C.LFG(ee.y))},_e.\u0275prov=C.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})()},17120:(Xe,me,h)=>{"use strict";h.d(me,{M:()=>C});var e=h(88415),K=h(42394),F=h(21086),Z=h(80529),O=h(24850),H=h(94650),z=h(42915),N=h(97721),E=h(27278),y=h(27722);let C=(()=>{class b{constructor(w,ee,oe,_e,Ne){this.http=w,this.screenService=ee,this.searchResolver=oe,this.modalService=_e,this.configStartupService=Ne,this.cookieHomeName="INTRO_HOME",this.cookieSearchName="INTRO_SEARCH",this.buttonsConfig={nextLabel:"Pr\xF3ximo",prevLabel:"Anterior",doneLabel:"Conclu\xEDdo",hidePrev:!0},this.searchIntro=null,this.homeIntro=null,this.baseUrl=`${this.configStartupService?.config?.urlCruiseApi}/${this.configStartupService?.config?.culture}`}showIntro(w,ee=!1){if(ee)return(0,F.of)(!0);const oe=this.screenService.isLarge||this.screenService.isExtraLarge,Ne=""!==(0,K.ej)(w);return oe?Ne?(0,F.of)(!1):this.checkUserIntro(w):(0,F.of)(!1)}openModalHomeIntro(w=!1){this.showIntro(this.cookieHomeName,w).subscribe({next:ee=>{if(ee){const oe={title:"Bem-Vindo"+" \u{1f603}",description:"Seja bem vindo a nova vers\xE3o do seu buscador de cruzeiros."+"<br/>"+"Gostar\xEDamos de mostrar as novas funcionalidades."+"<br/>"+"Podemos seguir em frente?",secondaryBtnDescription:"N\xE3o, obrigado"};this.modalService.confirm(oe,()=>{this.showHomeIntro()},()=>{this.setUserIntro(this.cookieHomeName)})}}})}openModalSearchIntro(w=!1){this.showIntro(this.cookieSearchName,w).subscribe({next:ee=>{if(ee){const oe={title:"Que legal, voc\xEA fez sua primeira busca!",description:"Podemos mostrar o que tem novo aqui?",secondaryBtnDescription:"N\xE3o, obrigado"};this.modalService.confirm(oe,()=>{this.showSearchIntro()},()=>{this.setUserIntro(this.cookieSearchName)})}}})}showHomeIntro(){this.homeIntro=e().setOptions({...this.buttonsConfig,steps:[{element:document.querySelector("app-news"),intro:"Fique atualizado com as \xFAltimas not\xEDcias do mundo dos cruzeiros.",position:"right"},{element:document.querySelector("app-calendar-tasks"),intro:"Organize suas pend\xEAncias adicionando tarefas ao seu calend\xE1rio"+" "+"e receba diariamente um e-mail com o resumo de tudo que voc\xEA tem para fazer."+"<br/><b>"+"Dica:"+"</b> "+"O sistema adiciona automaticamente os lembretes para voc\xEA efetuar o pagamento de suas reservas.",position:"left"},{element:document.querySelector("#latestBookingsContainer"),intro:"Veja aqui suas \xFAltimas reservas que ainda n\xE3o foram pagas."},{element:document.querySelector("app-search-form"),intro:"Um novo buscador com muitas op\xE7\xF5es para voc\xEA encontrar o cruzeiro ideal."},{element:document.querySelectorAll("app-search-form app-form-dropdown")[0],intro:"Agora voc\xEA pode selecionar um ou mais destinos, portos de embarques, navio e companhias mar\xEDtimas.",position:"right"},{element:document.querySelectorAll("app-search-form app-form-dropdown")[2],intro:"Agora \xE9 poss\xEDvel escolher qualquer per\xEDodo para o embarque."+"<br/><b>"+"Dica:"+"</b> "+"Se Voc\xEA deseja saber as datas de sa\xEDda de um determinado navio \xE9 s\xF3 selecionar o navio e o calend\xE1rio mostrar\xE1 as datas de embarque do navio selecionado.",position:"right"},{element:document.querySelectorAll("app-search-form app-form-dropdown")[7],intro:"Procure por destinos que os navios visitam, independente do porto de embarque e desembarque."+"<br/><b>"+"Dica:"+"</b> "+"Se voc\xEA digitar dois ou mais destinos, voc\xEA encontrar\xE1 os navios que visitam todos esses portos.",position:"left"}]}).goToStep(1).start().oncomplete(()=>{this.setUserIntro(this.cookieHomeName)})}showSearchIntro(){let w;w=this.searchResolver.searchConfig.showSearchSummary?{...this.buttonsConfig,steps:[{element:document.querySelector("app-search-filters"),intro:"Aqui voc\xEA tem mais op\xE7\xF5es de filtros",position:"right"},{element:document.querySelector("#dropdownViewBy"),intro:"Veja o resultado da sua busca de v\xE1rias formas diferentes",position:"right"},{element:document.querySelector("app-search-summary"),intro:"Veja um resumo dos melhores pre\xE7os para cada companhia mar\xEDtima"},{element:document.querySelector("app-search-results-itinerary .departure-options__prices"),intro:"Sinalizaremos sempre que houver uma promo\xE7\xE3o especial"},{element:document.querySelector("app-search-results-itinerary .departure-options__ship-info-button"),intro:"Tenha um mundo de informa\xE7\xF5es a respeito do navio e do itiner\xE1rio",position:"right"}]}:{...this.buttonsConfig,steps:[{element:document.querySelector("app-search-filters"),intro:"Aqui voc\xEA tem mais op\xE7\xF5es de filtros",position:"right"},{element:document.querySelector("#dropdownViewBy"),intro:"Veja o resultado da sua busca de v\xE1rias formas diferentes",position:"left"},{element:document.querySelector("app-search-results-itinerary .departure-options__prices"),intro:"Sinalizaremos sempre que houver uma promo\xE7\xE3o especial"},{element:document.querySelector("app-search-results-itinerary .departure-options__ship-info-button"),intro:"Tenha um mundo de informa\xE7\xF5es a respeito do navio e do itiner\xE1rio",position:"right"}]},this.searchIntro=e().setOptions(w).goToStep(1).start().oncomplete(()=>{this.setUserIntro(this.cookieSearchName)})}checkUserIntro(w){return this.http.get(`${this.baseUrl}/Users/has-onboarding/?code=${w}`,U).pipe((0,O.U)(oe=>{const _e=!!oe?.data;return _e&&(0,K.d8)(w,"true",99999),!_e}))}setUserIntro(w){this.http.post(`${this.baseUrl}/Users/user-onboarding`,{code:w},U).subscribe({complete:()=>{(0,K.d8)(w,"true",99999)}})}}return b.\u0275fac=function(w){return new(w||b)(H.LFG(Z.eN),H.LFG(z.O),H.LFG(N.V),H.LFG(E.Z),H.LFG(y.q))},b.\u0275prov=H.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();const U={headers:new Z.WM({Accept:"application/json","Content-Type":"application/json"})}},7778:(Xe,me,h)=>{"use strict";h.d(me,{XF:()=>y,YZ:()=>Ne,aW:()=>U,eu:()=>N,Cz:()=>ee,nC:()=>oe,B2:()=>Z,Tg:()=>_e,Yk:()=>O,fk:()=>z,ly:()=>G,uo:()=>w,m_:()=>H,Hm:()=>b,cN:()=>C});var s=(()=>{return(de=s||(s={}))[de.baby=0]="baby",de[de.child=1]="child",de[de.young=2]="young",de[de.adult=3]="adult",de[de.senior=4]="senior",s;var de})(),K=h(12931),F=h(40968);function Z(de,J){return"bestFares"===J.code||de.forEach(Ie=>{Ie.experiences.forEach(Ze=>{const ot=Ze.categories.filter(lt=>lt.fare.code===J.code);Ze.categories=ot}),Ie.experiences=Ie.experiences.filter(Ze=>Ze.categories.length>0)}),de.filter(Ie=>Ie.experiences.length>0)}function O(de){const J=[];return de.onBoardingItems.forEach(Ie=>{J.push(Ie.value.totalAmount)}),de.excursionItems.forEach(Ie=>{J.push(Ie.value.totalAmount)}),(0,F.H_)(J)}function H(de){const J=[],Ie=de.category?.price;return J.push({finalCurrencyTotalValue:Ie?.finalCurrencyTotalValue,originalCurrencyTotalValue:Ie?.originalCurrencyTotalValue}),J.push(de.insurance?.price||(0,F.H_)([])),J.push(O(de)),(0,F.H_)(J)}function z(de){const J=[{code:"bestFares",name:"MELHORES PROMO\xC7\xD5ES"}];return de.forEach(Ie=>{Ie.experiences.forEach(Ze=>{Ze.categories.forEach(ot=>{J.some(lt=>lt.code===ot.fare.code)||J.push(ot.fare)})})}),J}function N(de,J){let Ie=0,Ze=0,ot=0;return de.forEach(lt=>{switch(function E(de,J){return de<J.babyMaxMonthsAge/12?s.baby:de<J.childMaxAge?s.child:de<J.youngMaxAge?s.young:s.adult}(lt,J)){case s.baby:ot++;break;case s.child:Ze++;break;case s.young:Ie++}}),{youngCount:Ie,childCount:Ze,babyCount:ot}}const y={title:"Algo deu errado ao acessar esta sa\xEDda",description:"Tente outra data ou volte mais tarde",primaryBtn:!0,secundaryBtn:!1,primaryBtnDescription:"Ok"},C={title:"A sa\xEDda n\xE3o est\xE1 dispon\xEDvel",description:"Infelizmente todas as cabines j\xE1 foram vendidas.",primaryBtn:!0,secundaryBtn:!1,primaryBtnDescription:"Ok"},U={title:"Mudamos sua cabine",description:"A cabine que voc\xEA queria esgotou, mas voc\xEA ainda pode fazer este mesmo cruzeiro em outro tipo de cabine.",primaryBtn:!0,secundaryBtn:!1,primaryBtnDescription:"Ok"};function b(){window.history.back()}function G(de,J){return de.passengerIndex=de.passengerIndex||J,de.birthday=de.birthday&&(0,K.B9)(de.birthday),de.documentIssuedDate=de.documentIssuedDate&&(0,K.B9)(de.documentIssuedDate),de.documentExpirationDate=de.documentExpirationDate&&(0,K.B9)(de.documentExpirationDate),de.otherDocumentIssuedDate=de.otherDocumentIssuedDate&&(0,K.B9)(de.otherDocumentIssuedDate)||de.otherDocumentExpirationDate&&(0,K.yp)((0,K.E4)(new Date,-365)),de.otherDocumentExpirationDate=de.otherDocumentExpirationDate&&(0,K.B9)(de.otherDocumentExpirationDate),de}function w(de,J){return de.passengerIndex=de.passengerIndex||J,de.birthday=de.birthday&&(0,K.Jk)(de.birthday),de.documentIssuedDate=de.documentIssuedDate&&(0,K.Jk)(de.documentIssuedDate),de.documentExpirationDate=de.documentExpirationDate&&(0,K.Jk)(de.documentExpirationDate),de.otherDocumentIssuedDate=de.otherDocumentIssuedDate&&(0,K.Jk)(de.otherDocumentIssuedDate),de.otherDocumentExpirationDate=de.otherDocumentExpirationDate&&(0,K.Jk)(de.otherDocumentExpirationDate),de}function ee(de,J){const Ie=J;if(Ie&&de){const Ze={zipCode:Ie.cep,street:Ie.endereco,addressNumber:Ie.numero,addressComplement:Ie.complemento,district:Ie.bairro,state:Ie.estado,city:Ie.cidade,phonePrefix:Ie.telefone_ddi?.replace("+",""),phone:Ie.telefone_ddd+Ie.telefone?.replace("-","")};de.forEach((ot,lt)=>{de[lt]={...ot,...Ze}})}}function oe(de,J){J&&J.length>0&&de&&de.length>0&&J?.map(Ze=>(Ze.birthday=(0,K.Jk)(Ze.birthday)||"",Ze)).forEach((Ze,ot)=>{de[ot]={...de[ot],...Ze}})}function _e(de){if(de){const J=`${de.zipCode.substring(0,5)}-${de.zipCode.substring(5)}`;return`${de.street}, ${de.number}, ${de.complement} ${de.neighborhood} - ${de.city} - ${de.state} - ${J}`}return""}function Ne(de,J,Ie){const Ze=[];let ot=0;return de.forEach(lt=>{const At=(0,K.W7)(lt.birthday,J);Ie&&At.ageYears>Ie.youngMaxAge?ot++:Ze.push(At.ageYears)}),{adt:ot,chd:Ze.toString()}}},42394:(Xe,me,h)=>{"use strict";function e(F){const Z=document.cookie.split(";"),O=Z.length,H=`${F}=`;let z;for(let N=0;N<O;N+=1)if(z=Z[N].replace(/^\s+/g,""),0===z.indexOf(H))return z.substring(H.length,z.length);return""}function s(F,Z,O,H="",z="/"){const N=new Date;N.setTime(N.getTime()+24*O*60*60*1e3);const E=`expires=${N.toUTCString()}`;document.cookie=`${F}=${Z}; ${E}${z?`; path=${z}`:""}${H?`; domain=${H}`:""}; SameSite=Lax`}function K(F){s(F,"",-1)}h.d(me,{d8:()=>s,ej:()=>e,nJ:()=>K})},12931:(Xe,me,h)=>{"use strict";h.d(me,{$5:()=>qe,B9:()=>U,CL:()=>w,Cz:()=>E,E4:()=>lt,JR:()=>z,Jk:()=>C,Lb:()=>pt,MU:()=>Dt,Mv:()=>G,RG:()=>Ve,U9:()=>oe,V:()=>J,V5:()=>O,W7:()=>K,Xk:()=>H,YR:()=>de,bv:()=>ee,gg:()=>Ie,h6:()=>N,i0:()=>Ne,k9:()=>y,lX:()=>At,lu:()=>wt,pt:()=>Tt,ql:()=>re,vk:()=>Le,wp:()=>Z,yp:()=>_e});var e=h(36895),s=h(43740);function K(Be,ft){const gt=ft?G(ft):new Date,Et=y(Be);let Mt=gt.getFullYear()-Et.getFullYear();const Qt=gt.getMonth()-Et.getMonth(),ye=12*Mt+Qt;return(Qt<0||0===Qt&&gt.getDate()<Et.getDate())&&Mt--,{ageYears:Mt,ageMonths:ye}}function Z(Be){let ft="";if(Be){const gt=Be.toString();if(gt&&8===gt.length){const Et=gt.slice(0,4),Mt=gt.slice(4,6);ft=`${gt.slice(6)}/${Mt}/${Et}`}}return ft}function O(Be){let ft="";if(Be){const gt=Be.toString();if(gt&&8===gt.length){const Et=gt.slice(0,4),Mt=gt.slice(4,6);ft=`${gt.slice(6)}${Mt}${Et}`}}return ft}function H(Be){let ft="";if(Be){const gt=Be.toString();if(gt&&8===gt.length){const Et=gt.slice(2,4),Mt=gt.slice(4,6);ft=`${gt.slice(6)}/${Mt}/${Et}`}}return ft}function z(Be){let ft="";if(Be){const gt=Be.toString();gt&&8===gt.length&&(ft=`${gt.slice(0,2)}/${gt.slice(2,4)}/${gt.slice(4)}`)}return ft}function N(Be){const ft=Be.toString();return ft&&8===ft.length?`${ft.slice(0,4)}-${ft.slice(4,6)}-${ft.slice(6)}`:ft}function E(Be){const ft=Be?.toString();if(ft&&8===ft.length){const gt=+ft.slice(0,4),Et=+ft.slice(4,6)-1,Mt=+ft.slice(6);return new Date(gt,Et,Mt)}return new Date}function y(Be){if(Be&&8===Be.length){const ft=+Be.substr(0,2),gt=+Be.substr(2,2)-1,Et=+Be.substr(4,8);return new Date(Et,gt,ft)}}function C(Be){return Z(Be).split("/").join("")}function U(Be){if(Be&&8===Be.length){const ft=Be.substr(0,2),gt=Be.substr(2,2);return`${Be.substr(4,8)}${gt}${ft}`}}function G(Be){if(Be&&8===Be.length){const ft=+Be.slice(0,4),gt=+Be.slice(4,6)-1,Et=+Be.slice(6);return new Date(ft,gt,Et)}}function w(Be){if(Be&&Be.year&&Be.month&&Be.day){const Et=Be.day;return`${Be.year}${Le(Be.month,2)}${Le(Et,2)}`}}function ee(Be){if(Be&&Be.year&&Be.month&&Be.day)return new Date(Be.year,Be.month-1,Be.day)}function oe(Be){if(Be&&Be.year&&Be.month&&Be.day){const Et=Be.day;return`${Be.year}-${Le(Be.month,2)}-${Le(Et,2)}`}}function _e(Be){return Be?Ne(Ie(Be)):""}function Ne(Be){return Be?.split("-").join("")}function de(Be){return Be?.split("-").reverse().join("/")}function J(Be){return`${Ie(Be)}T${function ot(Be){const ft=Be.getHours(),gt=Be.getMinutes(),Et=Be.getSeconds();return`${Le(ft,2)}:${Le(gt,2)}:${Le(Et,2)}`}(Be)}`}function Ie(Be){const ft=Be.getFullYear(),gt=Be.getMonth()+1,Et=Be.getDate();return`${ft}-${Le(gt,2)}-${Le(Et,2)}`}function lt(Be,ft){const gt=new Date(Be);return gt.setDate(gt.getDate()+ft),gt}const At=Be=>{const ft=Be.getDay(),{year:gt,month:Et,day:Mt}=Ee(Be);return new Date(gt,Et,Mt-ft)},qe=Be=>{const ft=Be.getDay(),{year:gt,month:Et,day:Mt}=Ee(Be);return new Date(gt,Et,Mt+(6-ft))},wt=Be=>{const{year:ft,month:gt}=Ee(Be);return new Date(ft,gt,1)},re=Be=>{const{year:ft,month:gt}=Ee(Be);return new Date(ft,gt+1,0)},Ee=Be=>({year:Be.getFullYear(),month:Be.getMonth(),day:Be.getDate()});function Ve(Be,ft,gt){return Be.getTime()===ft.getTime()?(0,e.p6)(Be,"dd MMMM yy",gt):Be.getFullYear()!==ft.getFullYear()?`${(0,e.p6)(Be,"dd MMMM yy",gt)} - ${(0,e.p6)(ft,"dd MMMM yy",gt)}`:Be.getMonth()!==ft.getMonth()?`${(0,e.p6)(Be,"dd MMMM",gt)} - ${(0,e.p6)(ft,"dd MMMM yy",gt)}`:`${(0,e.p6)(Be,"dd",gt)} - ${(0,e.p6)(ft,"dd MMMM yy",gt)}`}function Le(Be,ft){let gt=Be+"";for(;gt.length<ft;)gt="0"+gt;return gt}function Dt(Be,ft){const Et=Date.UTC(Be.getFullYear(),Be.getMonth(),Be.getDate()),Mt=Date.UTC(ft.getFullYear(),ft.getMonth(),ft.getDate());return Math.floor((Mt-Et)/864e5)}function Tt(Be){const{year:ft,month:gt,day:Et}=Ee(Be);return new s.qj(ft,gt+1,Et)}function pt(Be){const ft=+Be.slice(0,4),gt=+Be.slice(4,6),Et=+Be.slice(6);return new s.qj(ft,gt,Et)}},26772:(Xe,me,h)=>{"use strict";function e(O,H){O.large&&(O.large.url=O.large?.url.replace(`${H.urlStrapiMedia}/`,`${H.urlMedia}/`)),O.medium&&(O.medium.url=O.medium?.url.replace(`${H.urlStrapiMedia}/`,`${H.urlMedia}/`)),O.small&&(O.small.url=O.small?.url.replace(`${H.urlStrapiMedia}/`,`${H.urlMedia}/`)),O.thumbnail&&(O.thumbnail.url=O.thumbnail?.url.replace(`${H.urlStrapiMedia}/`,`${H.urlMedia}/`))}function s(O,H){return O.replace(`${H.urlStrapiMedia}/`,`${H?.urlMedia}/`)}function K(O,H,z){let N;switch(e(O,z),H){case Z.large:return O[H]?N=O[H]?.url:[Z.medium,Z.small,Z.thumbnail].some(y=>!!O[y]&&(N=O[y]?.url,!0)),N;case Z.medium:return O[H]?O[H]?.url||"":([Z.small,Z.thumbnail].some(y=>!!O[y]&&(N=O[y]?.url,!0)),N);case Z.small:return O[H]?N=O[H]?.url:O[Z.thumbnail]&&(N=O[Z.thumbnail]?.url),N;default:return O.thumbnail?.url||""}}function F(O,H,z){e(O,z);const N=[];switch(H){case Z.large:O.large&&N.push(O.large.url+" 1200w"),O.medium&&N.push(O.medium.url+" 992w"),O.small&&N.push(O.small.url+" 768w"),O.thumbnail&&N.push(O.thumbnail.url+" 576w");break;case Z.medium:O.medium&&N.push(O.medium.url+" 992w"),O.small&&N.push(O.small.url+" 768w"),O.thumbnail&&N.push(O.thumbnail.url+" 576w");break;case Z.small:O.small&&N.push(O.small.url+" 768w"),O.thumbnail&&N.push(O.thumbnail.url+" 576w");break;default:O.thumbnail&&N.push(O.thumbnail.url+" 576w")}return N.toString().replace(/,/g,", ")}h.d(me,{S5:()=>F,X7:()=>s,gJ:()=>K,xS:()=>Z});var Z=(()=>{return(O=Z||(Z={})).large="large",O.medium="medium",O.small="small",O.thumbnail="thumbnail",Z;var O})()},23938:(Xe,me,h)=>{"use strict";function K(y,C){return[y.lat+(C.lat-y.lat)/3,y.lng+(C.lng-y.lng)/3]}function F(y,C){return[y.lat+2*(C.lat-y.lat)/3,y.lng+2*(C.lng-y.lng)/3]}function Z(y){return[y.lat,y.lng]}function O(y){const[C,U]=y;return{lat:C,lng:U}}function H(y){let C,U;return y.routeInfo?(C=Z(y.routeInfo.controls[0]),U=Z(y.routeInfo.controls[1])):(C=K(y.initialPort.markerpoint,y.finalPort.markerpoint),U=F(y.initialPort.markerpoint,y.finalPort.markerpoint)),{cp1:C,cp2:U}}function z(y){console.log(`latLng clicked: ${y.latlng.lat}, ${y.latlng.lng}`)}function N(y,C){return{cp1:K(O(y),O(C)),cp2:F(O(y),O(C))}}function E(y=null){let U;switch(y){case"pt":U="ckm4xxndw0l3y17o7w78qir0y";break;case"es":U="ckmcb26vx7py217o7p5gdb7o6";break;case"en":U="ckmcb46auaih317p8d7equtr6";break;default:U="ckm24gt6k3gwf17s86ee35by0"}return`https://api.mapbox.com/styles/v1/krooze/${U}/tiles/256/{z}/{x}/{y}?fresh=true&access_token=pk.eyJ1Ijoia3Jvb3plIiwiYSI6ImNrbHc5aTBjMzJnZGgydWx3MGM3dTl3dTUifQ.idZPCt0GOme9hBpUoGLyIg&v2`}h.d(me,{FN:()=>Z,Op:()=>H,eu:()=>z,kR:()=>E,uC:()=>N})},40968:(Xe,me,h)=>{"use strict";function e(O){return O.reduce((z,N)=>{const E=z.finalCurrencyTotalValue,y=z.originalCurrencyTotalValue;return E&&(E.totalCommission+=N.finalCurrencyTotalValue?.totalCommission||0,E.totalValue+=N.finalCurrencyTotalValue?.totalValue||0,E.totalValueBeforeDiscount+=N.finalCurrencyTotalValue?.totalValueBeforeDiscount||0),y&&(y.totalCommission+=N.originalCurrencyTotalValue?.totalCommission||0,y.totalValue+=N.originalCurrencyTotalValue?.totalValue||0,y.totalValueBeforeDiscount+=N.originalCurrencyTotalValue?.totalValueBeforeDiscount||0),z},{finalCurrencyTotalValue:{totalCommission:0,totalValue:0,totalValueBeforeDiscount:0},originalCurrencyTotalValue:{totalCommission:0,totalValue:0,totalValueBeforeDiscount:0}})}function s(O){const H=[];return O.forEach(z=>{const N=JSON.stringify(z),E=JSON.parse(N),y=H.filter(C=>C.chargeType===E.chargeType);if(y.length>0){const C=y[0];C.finalCurrency=C.finalCurrency+E.finalCurrency,C.originalCurrency=C.originalCurrency+E.originalCurrency}else H.push(E)}),H}function K(O,H,z){return new Array(H).fill(0).map((N,E)=>F(O,E+1)).filter(N=>N>=z)}function F(O=0,H=1){const z=O/H||0;return z-Math.trunc(z)>0?+(z+.005).toFixed(2):+z}function Z(O,H,z){if(0===O)throw new Error("O primeiro valor n\xe3o pode ser zero");return H*z/O}h.d(me,{H2:()=>Z,H_:()=>e,Uk:()=>F,WR:()=>K,bq:()=>s})},46528:(Xe,me,h)=>{"use strict";h.d(me,{Vy:()=>Ie,gl:()=>E,uP:()=>O,Zj:()=>y,mn:()=>H,JP:()=>C,ww:()=>Ze,Zi:()=>ot,xU:()=>z,OX:()=>N,AX:()=>wt});var e=h(72616),s=h(84205);class K{static typeaheadToQuery(Ee,Ve){if(Ee.length>0){const Le=[],Dt=[];return Ee.forEach(Tt=>{Tt.isMarked&&!Tt.children||Tt.isMarked?Le.push(Tt.id):Tt.children?.filter(Be=>Be.checked)?.forEach(Be=>{Dt.push(Be.id)})}),Ve?Dt.toString():Le.toString()}return""}static typeaheadToString(Ee){if(Ee.length>0){const Ve=[];return Ee.forEach(Le=>{Le.checked&&!Le.children?Ve.push(Le.id):Le.children?.filter(Tt=>Tt.checked)?.forEach(Tt=>{Ve.push(Tt.id)})}),Ve.toString()}return""}static typeaheadPortOfCallToQuery(Ee){if(Ee.length>0){const Ve=[];return Ee.forEach(Le=>{Ve.push(Le.id)}),Ve.toString()}return""}}var F=h(6135),Z=h(83311);function O(re){let Ee=new s.Xl({});return re&&(Ee={destinations:K.typeaheadToQuery(re.destination.options,!1),duration:U(re.duration.selected.fromValue,re.duration.selected.toValue),departureDates:U(e.j.ngbDateToString(re.dates.selected.fromValue),e.j.ngbDateToString(re.dates.selected.toValue||re.dates.selected.fromValue)),ships:K.typeaheadToQuery(re.ships.options,!0),cruiseCompanies:K.typeaheadToQuery(re.ships.options,!1),adults:re.roomConfiguration.value.totalAdults||re.roomConfiguration.value.minCapacity,childrenAges:F.V.roomConfigurationToChildrenAges(re.roomConfiguration.value),departures:K.typeaheadToQuery(re.departure.options,!0),arrivals:K.typeaheadToQuery(re.arrive.options,!0),departureCountries:K.typeaheadToQuery(re.departure.options,!1),arrivalCountries:K.typeaheadToQuery(re.arrive.options,!1),portsOfCall:K.typeaheadPortOfCallToQuery(re.portsOfCall.selected),cabinTypes:b(re.cabinType.selected),promotions:G(re.promotions.selected),overnight:re.overnight.selected?"true":"",hasFlights:re.hasFlights.selected?"true":"",hasMap:null===re.hasMap.selected||!0===re.hasMap.selected?"":"false",hasEvent:re.hasEvent.selected?"true":"",arrivalDepartureSamePort:re.arrivalDepartureSamePort.selected?"true":"",navigationsType:"",price:U(re.aditionalFilters.find(Ve=>"Price"===Ve.queryName).selected.minValue,re.aditionalFilters.find(Ve=>"Price"===Ve.queryName).selected.maxValue,re.priceByCabin,re.roomConfiguration.value.totalPax),holidays:"",sortBy:re.sortBy.selected+(re.taxAndFeesIncluded?"_WithTax":""),viewBy:re.viewBy.selected,priceByCabin:re.priceByCabin,taxAndFeesIncluded:re.taxAndFeesIncluded},Ee.adults=qe(Ee.adults,2),Ee.duration=qe(Ee.duration,null),Ee.price=qe(Ee.price,null),Ee.destinations=qe(Ee.destinations,""),Ee.arrivals=qe(Ee.arrivals,""),Ee.departures=qe(Ee.departures,""),Ee.departureCountries=qe(Ee.departureCountries,""),Ee.arrivalCountries=qe(Ee.arrivalCountries,""),Ee.portsOfCall=qe(Ee.portsOfCall,""),Ee.ships=qe(Ee.ships,""),Ee.cruiseCompanies=qe(Ee.cruiseCompanies,""),Ee.cabinTypes=qe(Ee.cabinTypes,""),Ee.viewBy=qe(Ee.viewBy,"ResultByItinerary")),Ee}function H(re,Ee){(function te(re){re.value=F.V.roomConfigurationToRoomSelection(re)})(re.filterOptions.roomConfiguration),function Ne(re){re.options=re.options.map(Ee=>e.j.stringToDate(Ee)),re.min=e.j.stringToNgbDate(re.min),re.max=e.j.stringToNgbDate(re.max),re.selected.fromValue===re.selected.toValue&&(re.selected.toValue=""),re.selected.fromValue=e.j.stringToNgbDate(re.selected.fromValue),re.selected.toValue=e.j.stringToNgbDate(re.selected.toValue)}(re.filterOptions.dates),function de(re){const Ve=0===re.selected.toValue?null:re.selected.toValue;re.selected.fromValue=re.selected.fromValue||(0===re.selected.fromValue?null:re.selected.fromValue),re.selected.toValue=re.selected.toValue||Ve}(re.filterOptions.duration),function ee(re){const Ee=[];re.selected.forEach(Ve=>Ee.push(Ve.id)),re.options.forEach(Ve=>{Ve.searchKeys=_e(Ve),Ve.isMarked=Ee.includes(Ve.id)})}(re.filterOptions.destination),w(re.availableShips.ships,re.filterOptions.ships,re.filterOptions.cruiseCompanies),w(re.availableLocationsDeparture.locations,re.filterOptions.departure,re.filterOptions.departureCountries),w(re.availableLocationsArrival.locations,re.filterOptions.arrive,re.filterOptions.arriveCountries),function lt(re,Ee){re.filterOptions.taxAndFeesIncluded=void 0===Ee.taxAndFeesIncluded?re.searchConfig.withTaxes:Ee.taxAndFeesIncluded,re.filterOptions.priceByCabin=void 0===Ee.priceByCabin?"cabin"===re.searchConfig.price:Ee.priceByCabin,re.searchConfig.price=void 0===Ee.price?re.searchConfig.price:Ee.price;const Ve=[{name:"Itiner\xE1rio",value:"ResultByItinerary"},{name:"Navio",value:"ResultByShip"},{name:"Data",value:"ResultByDate"}];re.filterOptions.viewBy={options:Ve,selected:Ee.viewBy||re.searchConfig.view};const Le=[{name:"Recomendado",value:"Recommended"},{name:"Menor pre\xE7o",value:"Price"},{name:"Maior pre\xE7o",value:"PriceDesc"}];re.filterOptions.sortBy={options:Le,selected:Ee.sortBy?.replace("_WithTax","")||re.searchConfig.sort}}(re,Ee),function oe(re,Ee){const Ve=[];if(Ee.portsOfCall){const Le=Ee.portsOfCall.split(",").map(Dt=>parseInt(Dt,10));re.availableLocations.locations.forEach(Dt=>{Dt.children.find(Tt=>{Le.forEach(pt=>{Tt.id===pt&&Ve.push({id:Tt.id,name:Tt.name,checked:!0})})})}),re.filterOptions.portsOfCall={options:[],selected:Ve}}else re.filterOptions.portsOfCall={options:[],selected:[]}}(re,Ee),At(re.filterOptions.cabinType),At(re.filterOptions.promotions),function J(re,Ee,Ve){Ee||(re.selected.minValue=re.selected.minValue/Ve,re.selected.maxValue=re.selected.maxValue/Ve)}(re.filterOptions.aditionalFilters.find(Ve=>"Price"===Ve.queryName),re.filterOptions.priceByCabin,re.filterOptions.roomConfiguration.value.totalPax)}function z(re){return Object.entries(N(re)).map(([Ee,Ve])=>Ee+"="+Ve).join("&")}function N(re){return Object.entries(re).filter(([Ee,Ve])=>null!==Ve&&""!==Ve&&void 0!==Ve&&NaN!==Ve).reduce((Ee,[Ve,Le])=>({...Ee,[Ve]:Le}),{})}function E(re){return new s.CR({destinations:re.destinations||null,duration:re.duration||null,departureDates:re.departureDates||null,ships:re.ships||null,cruiseCompanies:re.cruiseCompanies||null,price:re.price||null,departures:re.departures||null,arrivals:re.arrivals||null,departureCountries:re.departureCountries||null,arrivalCountries:re.arrivalCountries||null,portsOfCall:re.portsOfCall||null,navigationsType:re.navigationsType||null,cabinTypes:re.cabinTypes||null,holidays:re.holidays||null,adults:re.adults||null,childrenAges:re.childrenAges||null,promotions:re.promotions||null,overnight:re.overnight||null,hasFlights:re.hasFlights||null,hasMap:re.hasMap||null,hasEvent:re.hasEvent||null,arrivalDepartureSamePort:re.arrivalDepartureSamePort||null})}function y(re){return new s.H3({destinations:re.destinations||null,duration:re.duration||null,departureDates:re.departureDates||null,ships:re.ships||null,cruiseCompanies:re.cruiseCompanies||null,price:re.price||null,departures:re.departures||null,arrivals:re.arrivals||null,departureCountries:re.departureCountries||null,arrivalCountries:re.arrivalCountries||null,portsOfCall:re.portsOfCall||null,navigationsType:re.navigationsType||null,cabinTypes:re.cabinTypes||null,promotions:re.promotions||null,overnight:re.overnight||null,hasFlights:re.hasFlights||null,hasMap:re.hasMap||null,hasEvent:re.hasEvent||null,arrivalDepartureSamePort:re.arrivalDepartureSamePort||null,holidays:re.holidays||null,adults:re.adults||null,childrenAges:re.childrenAges||null,sortBy:re.sortBy||null,excludeTax:!(re.taxAndFeesIncluded||void 0===re.taxAndFeesIncluded)})}function C(re){for(const Ee of re.cruiseLines)for(const Ve of re.labels)Ee.values.filter(Dt=>Dt.labelId===Ve.id).length>0||Ee.values.push({labelId:Ve.id,price:void 0,isBestPrice:!1}),Ee.values.sort((Dt,Tt)=>Dt.labelId-Tt.labelId);return re.cruiseLines}function U(re,Ee,Ve=!0,Le=null){if(Ve){const Tt=Ee||"";return`${re||(Ee?"0":"")}${Tt?",":""}${Tt}`}{const Tt=Ee*Le||"";return`${re*Le||(Ee?"0":"")}${Tt?",":""}${Tt}`}}function b(re){const Ee=[];return re.forEach(Ve=>{Ve.checked&&Ee.push(Ve.id)}),Ee.toString()}function G(re){const Ee=[];return re.forEach(Ve=>{Ee.push(Ve.id)}),Ee.toString()}function w(re,Ee,Ve){let Dt=!1;const pt=[...re].filter(Be=>{const ft=Ve.options.includes(Be.id),gt=Be.children?.filter(Et=>Ee.options.includes(Et.id)).length>0;return ft||gt}).map(Be=>{const ft=Ve.selected.includes(Be.id),gt=Be.children.filter(Mt=>Ee.options.includes(Mt.id));gt?.map(Mt=>(Mt.searchKeys=_e(Mt),Mt.reference&&Mt.state?(Mt.name=`${Mt.name} (${Mt.reference})`,Mt.nameOption=`${Mt.name}, ${Mt.state}`):Mt.reference?(Mt.name=`${Mt.name} (${Mt.reference})`,Mt.nameOption=Mt.name):Mt.nameOption=Mt.state?`${Mt.name}, ${Mt.state}`:Mt.name,Mt.checked=!!ft||Ee.selected.includes(Mt.id),Mt.isVisible=!0,Mt));const Et=Be.children.filter(Mt=>Mt.checked);return Be.searchKeys=_e(Be),Be.checked=Be.isMarked=Ve.selected.includes(Be.id),Be.indeterminate=Et.length>0&&Et.length!==Be.children.length,Be.children=gt,Be});Dt=pt.filter(Be=>Be.children.length>0).length>0,Ee.options=Dt?pt.filter(Be=>Be.children.length>0):pt}function _e(re){const Ee=re.searchKeys||null,Ve=[];re.keywords&&Ve.push(re.keywords),re.keywords!==re.name&&Ve.push(re.name),re.reference&&Ve.push(re.reference),re.state&&Ve.push(re.state),Ve.forEach(Tt=>{let pt;if(Tt.toLowerCase().split("").some(Be=>(pt="\xe1\xe0\xe3\xe2\xe4\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf3\xf2\xf5\xf4\xf6\xfa\xf9\xfb\xfc\xf1".includes(Be),pt)),pt){const Be=Tt.normalize("NFD").replace(/[\u0300-\u036f]/g,"");Ve.includes(Be)||Ve.push(Be)}});const Dt=Ve.toString();return Ee!==Dt?Dt:Ee}function Ie(re){re.results?.forEach(re.resultType!==Z.W.byDate?Ee=>{Ee.departureOptions.forEach(Ve=>{Ve.sailingBenefitsTypes={cruise:[],date:[],thematic:[]},Ve.sailingBenefitsTypes.cruise=Ve.sailingBenefits.filter(Le=>1===Le.type),Ve.sailingBenefitsTypes.date=Ve.sailingBenefits.filter(Le=>2===Le.type),Ve.sailingBenefitsTypes.thematic=Ve.sailingBenefits.filter(Le=>3===Le.type)})}:Ee=>{Ee.sailingBenefitsTypes={cruise:[],date:[],thematic:[]},Ee.sailingBenefitsTypes.cruise=Ee.sailingBenefits.filter(Ve=>1===Ve.type),Ee.sailingBenefitsTypes.date=Ee.sailingBenefits.filter(Ve=>2===Ve.type),Ee.sailingBenefitsTypes.thematic=Ee.sailingBenefits.filter(Ve=>3===Ve.type)})}function Ze(re){re.results?.forEach(re.resultType!==Z.W.byDate?Ee=>{Ee.departureOptions.forEach(Ve=>{Ve.fares.forEach(Le=>{if(Le.deals?.length>0){const Dt=[];Le.deals.forEach(pt=>{Dt.push(pt.toolTip)});const Tt=Dt.toString().replace(/,/g,", ");Le.dealsTooltip=Tt,Le.hasDeals=!0}else Le.hasDeals=!1})})}:Ee=>{Ee.fares.forEach(Ve=>{if(Ve.deals?.length>0){const Le=[];Ve.deals.forEach(Tt=>{Le.push(Tt.toolTip)});const Dt=Le.toString().replace(/,/g,", ");Ve.dealsTooltip=Dt,Ve.hasDeals=!0}else Ve.hasDeals=!1})})}function ot(re){re.forEach(Ee=>{Ee.fares.forEach(Ve=>{if(Ve.deals?.length>0){const Le=[];Ve.deals.forEach(Tt=>{Le.push(Tt.toolTip)});const Dt=Le.toString().replace(/,/g,", ");Ve.dealsTooltip=Dt,Ve.hasDeals=!0}else Ve.hasDeals=!1})}),re.forEach(Ee=>{Ee.sailingBenefitsTypes={cruise:null,date:null,thematic:null},Ee.sailingBenefitsTypes.cruise=Ee.sailingBenefits.filter(Ve=>1===Ve.type),Ee.sailingBenefitsTypes.date=Ee.sailingBenefits.filter(Ve=>2===Ve.type),Ee.sailingBenefitsTypes.thematic=Ee.sailingBenefits.filter(Ve=>3===Ve.type)})}function At(re){const Ee=re.options.map(Ve=>(Ve.checked=!!Ve.checked&&Ve.checked,Ve));Ee.sort((Ve,Le)=>Ve.id>Le.id?1:Le.id>Ve.id?-1:0),re.options=Ee}function qe(re,Ee){return re===Ee?null:re}function wt(re){setTimeout(re(),350)}},71267:(Xe,me,h)=>{"use strict";h.d(me,{p:()=>e});const e={required:"Este campo \xE9 obrigat\xF3rio.",mustMatch:"Esta senha est\xE1 diferente.",minlength:"M\xEDnimo inv\xE1lido.",email:"E-mail inv\xE1lido.",pattern:"A senha deve conter letras, n\xFAmeros e s\xEDmbolos.",taken:"Este e-mail j\xE1 est\xE1 cadastrado",invalid:"inv\xE1lido",cpfInvalid:"CPF Inv\xe1lido.",cnpjInvalid:"CNPJ Inv\xe1lido.",invalidDate:"Data inv\xE1lida",invalidYear:"Ano inv\xE1lido",compareDatesInvalid:"Deve ser posterior \xE0 data de embarque.",dateAfterNow:"Data deve ser maior que a data de hoje.",dateBefore:"Data menor que a data atual.",multipleEmailValidator:"E-mail inv\xE1lido",cardNumberMinMaxLength:"O n\xFAmero do cart\xE3o deve ter entre 14 e 16 caracteres.",expirationMinMaxLength:"A validade deve estar entre 4-6 caracteres.",cvvMinMaxLength:"CVV deve ter entre 3-4 caracteres.",passwordMinMaxlength:"Senha deve ter entre 8-20 caracteres.",nameMinLength:"Este campo deve ter no m\xEDnimo 3 caracteres.",phoneMinLength:"Este campo deve ter no m\xEDnimo 10 caracteres.",openDateMinLength:"Este campo deve ter entre 4-6 caracteres."}},26286:(Xe,me,h)=>{"use strict";h.d(me,{x:()=>Z});var e=h(94650),s=h(88996),K=h(36895);function F(O,H){if(1&O){const z=e.EpF();e.TgZ(0,"div",1)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"button",2),e.NdJ("click",function(){e.CHM(z);const E=e.oxw();return e.KtG(E.hideAlert())}),e._UZ(4,"i",3),e.qZA()()}if(2&O){const z=e.oxw();e.xp6(2),e.Oqu(z.alert.description)}}let Z=(()=>{class O{constructor(z){this.masterPageService=z,this.alert=null}ngOnInit(){this.getAlert()}hideAlert(){this.alert=null}getAlert(){this.masterPageService.getAlert().subscribe(z=>{z.data.length>0&&(this.alert=z.data[0])})}}return O.\u0275fac=function(z){return new(z||O)(e.Y36(s.y))},O.\u0275cmp=e.Xpm({type:O,selectors:[["app-alert-system"]],decls:1,vars:1,consts:[["class","alert-system",4,"ngIf"],[1,"alert-system"],["type","button",3,"click"],[1,"icon-x"]],template:function(z,N){1&z&&e.YNc(0,F,5,1,"div",0),2&z&&e.Q6J("ngIf",N.alert)},dependencies:[K.O5],styles:[".alert-system[_ngcontent-%COMP%]{width:100%;z-index:1;display:flex;align-items:center;justify-content:center;padding:.65rem 1rem;background-color:#1a73e8}.alert-system[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff;margin-right:20px}.alert-system[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border:none;outline:none;width:25px;height:25px;border-radius:50%}.alert-system[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#1a73e8;font-weight:700}@-webkit-keyframes hide{0%{transform:translateY(-100px)}to{transform:translateY(0)}}@keyframes hide{0%{transform:translateY(-100px)}to{transform:translateY(0)}}"]}),O})()},53400:(Xe,me,h)=>{"use strict";h.d(me,{D:()=>Qt});var e=h(94650),s=h(43740),K=h(27722),F=h(36895),Z=h(24006),O=h(70824),H=h(90263);function z(ye,Ae){1&ye&&(e.TgZ(0,"div",4),e._UZ(1,"div",5),e.qZA())}function N(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){const De=e.CHM(A).$implicit,We=e.oxw(3);return e.KtG(We.changeSeller(De))}),e.TgZ(1,"div")(2,"h3",11),e._uU(3),e.ALo(4,"titlecase"),e.qZA(),e.TgZ(5,"span",12),e._uU(6),e.ALo(7,"lowercase"),e.qZA()(),e._UZ(8,"i",13),e.qZA()}if(2&ye){const A=Ae.$implicit;e.xp6(3),e.Oqu(e.lcZ(4,2,A.name)),e.xp6(3),e.Oqu(e.lcZ(7,4,A.email))}}function E(ye,Ae){if(1&ye&&(e.ynx(0),e.TgZ(1,"div",8),e.YNc(2,N,9,6,"div",9),e.qZA(),e.BQk()),2&ye){const A=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",A.sellers)}}function y(ye,Ae){1&ye&&(e.ynx(0),e.TgZ(1,"span",14),e.SDv(2,15),e.qZA(),e.BQk())}function C(ye,Ae){if(1&ye&&(e.TgZ(0,"div")(1,"h2",6),e._uU(2,"Profissional respons\xe1vel"),e.qZA(),e.TgZ(3,"p"),e._uU(4),e.qZA(),e.YNc(5,E,3,1,"ng-container",7),e.YNc(6,y,3,0,"ng-container",7),e.qZA()),2&ye){const A=e.oxw();e.xp6(4),e.Oqu(A.selected.agency.name),e.xp6(1),e.Q6J("ngIf",A.sellers.length>0),e.xp6(1),e.Q6J("ngIf",A.sellers.length<=0)}}function U(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){const De=e.CHM(A).$implicit,We=e.oxw(3);return e.KtG(We.changeAttendant(De))}),e.TgZ(1,"div")(2,"h3",11),e._uU(3),e.ALo(4,"titlecase"),e.qZA(),e.TgZ(5,"span",12),e._uU(6),e.ALo(7,"lowercase"),e.qZA()(),e._UZ(8,"i",13),e.qZA()}if(2&ye){const A=Ae.$implicit;e.xp6(3),e.Oqu(e.lcZ(4,2,A.name)),e.xp6(3),e.Oqu(e.lcZ(7,4,A.email))}}function b(ye,Ae){if(1&ye&&(e.ynx(0),e.TgZ(1,"div",8),e.YNc(2,U,9,6,"div",9),e.qZA(),e.BQk()),2&ye){const A=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",A.attendants)}}function G(ye,Ae){1&ye&&(e.ynx(0),e.TgZ(1,"span",14),e.SDv(2,19),e.qZA(),e.BQk())}function w(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"div")(1,"button",16),e.NdJ("click",function(){e.CHM(A);const he=e.oxw();return e.KtG(he.changeStep(-1))}),e._UZ(2,"i",17),e.TgZ(3,"span"),e.SDv(4,18),e.qZA()(),e.TgZ(5,"h2",6),e._uU(6,"Atendente da filial CVC"),e.qZA(),e.TgZ(7,"p"),e._uU(8),e.qZA(),e.YNc(9,b,3,1,"ng-container",7),e.YNc(10,G,3,0,"ng-container",7),e.qZA()}if(2&ye){const A=e.oxw();e.xp6(8),e.Oqu(A.selected.agency.name),e.xp6(1),e.Q6J("ngIf",A.attendants.length>0),e.xp6(1),e.Q6J("ngIf",A.sellers.length<=0)}}function ee(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"div")(1,"div",20)(2,"h2"),e.SDv(3,21),e.qZA(),e.TgZ(4,"p")(5,"span"),e.SDv(6,22),e.qZA(),e._uU(7,"\xa0"),e.TgZ(8,"strong"),e._uU(9),e.ALo(10,"titlecase"),e.qZA(),e._uU(11,"."),e.qZA(),e.TgZ(12,"div",23)(13,"button",24),e.NdJ("click",function(){e.CHM(A);const he=e.oxw();return e.KtG(he.changeStep(he.isMultibrand?-1:-2))}),e.SDv(14,25),e.qZA(),e.TgZ(15,"button",26),e.NdJ("click",function(){e.CHM(A);const he=e.oxw();return e.KtG(he.submitSeller())}),e.SDv(16,27),e.qZA()()()()}if(2&ye){const A=e.oxw();e.xp6(9),e.Oqu(e.lcZ(10,1,A.selected.seller.name))}}let oe=(()=>{class ye{constructor(A,j,he,De){this.fb=A,this.activeModal=j,this.vendorsService=he,this.auth=De,this.changeSellerEvent=new e.vpe,this.agencies=[],this.sellers=[],this.attendants=[],this.step=0,this.pageAgency=1,this.isMultibrand=!1,this.selected={agency:null,seller:null,attendant:null},this.search=this.fb.group({agency:[]}),this.isMultibrand="True"===this.auth.user?.is_multibrand}ngOnInit(){this.vendorsService.initVendors(),this.listAgencies()}listAgencies(){this.listBranch(this.vendorsService.branchId||"1000")}listBranch(A){this.step=0,this.vendorsService.listBranch(A).subscribe({next:j=>{j.branchId&&(this.selected.agency=j,this.listSellers(),this.listAttendants())},error:j=>{}})}listSellers(){const A=this.selected.agency.agencyId||this.selected.agency.branchId;A&&(this.step=0,this.sellers=[],this.vendorsService.listSellers(A).subscribe({next:j=>{const he=j;he&&he.length>0&&(this.step=1,this.sellers=he)},error:j=>{this.step=1}}))}listAttendants(){const A=this.selected.agency.agencyId||this.selected.agency.branchId;this.attendants=[],A&&this.isMultibrand&&(this.step=0,this.vendorsService.listAttendants(A).subscribe({next:j=>{j&&j.length>0&&(this.attendants=j)},error:j=>{}}))}changeStep(A){this.step+=A}changeSeller(A){this.selected.seller=A,this.changeStep(this.isMultibrand?1:2)}changeAttendant(A){this.selected.attendant=A,this.changeStep(1)}submitSeller(){const A=this.selected.seller,j=this.selected.attendant,he=this.selected.agency;this.vendorsService.setSeller(A,he,j);const De=JSON.stringify(this.vendorsService.getSellerInfo(A,he,j));this.changeSellerEvent.emit(De),this.activeModal.close()}ngOnDestroy(){this.subAgency?.unsubscribe()}}return ye.\u0275fac=function(A){return new(A||ye)(e.Y36(Z.QS),e.Y36(s.Kz),e.Y36(O.x),e.Y36(H.e))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["app-change-seller-cvc-v2"]],inputs:{sailingInfo:"sailingInfo",cruiseLine:"cruiseLine",selectedSeller:"selectedSeller"},outputs:{changeSellerEvent:"changeSellerEvent"},decls:6,vars:6,consts:function(){let Ae,A,j,he,De,We,Qe;return Ae="Nenhum vendedor registrado encontrado.",A="Voltar",j="Nenhum vendedor registrado encontrado.",he="Voc\xEA est\xE1 mudando de vendedor",De="A venda do cruzeiro ser\xE1 atribu\xEDda ao vendedor",We="Voltar",Qe="Alterar vendedor",[[3,"ngSwitch"],[1,"container-group-seller",3,"formGroup"],["class","text-center pt-5 pb-5",4,"ngSwitchCase"],[4,"ngSwitchCase"],[1,"text-center","pt-5","pb-5"],[1,"load-spinner"],[1,"mb-0"],[4,"ngIf"],[1,"container-group-seller__container-card"],["class","card w-100 container-group-seller__card-button",3,"click",4,"ngFor","ngForOf"],[1,"card","w-100","container-group-seller__card-button",3,"click"],[1,"card-title","pricing-card-title","m-0"],[1,"d-block","text-muted","f-2"],[1,"icon-chevron-right"],[1,"d-block","pt-5","pb-5","text-center"],Ae,[1,"btn","btn-link","p-0",3,"click"],[1,"icon-arrow-left"],A,j,[1,"text-center","my-4"],he,De,[1,"group-buttons","mt-5"],[1,"btn","btn-link",3,"click"],We,["type","button",1,"btn","btn-primary",3,"click"],Qe]},template:function(A,j){1&A&&(e.ynx(0,0),e.TgZ(1,"form",1),e.YNc(2,z,2,0,"div",2),e.YNc(3,C,7,3,"div",3),e.YNc(4,w,11,3,"div",3),e.YNc(5,ee,17,3,"div",3),e.qZA(),e.BQk()),2&A&&(e.Q6J("ngSwitch",j.step),e.xp6(1),e.Q6J("formGroup",j.search),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",1),e.xp6(1),e.Q6J("ngSwitchCase",2),e.xp6(1),e.Q6J("ngSwitchCase",3))},dependencies:[F.sg,F.O5,F.RF,F.n9,Z._Y,Z.JL,Z.sg,F.i8,F.rS],encapsulation:2}),ye})();var _e=h(80013),Ne=h(75778),te=h(48177),de=h(52037);function J(ye,Ae){if(1&ye&&(e.TgZ(0,"span",16),e._uU(1),e.qZA()),2&ye){const A=e.oxw().$implicit;e.xp6(1),e.Oqu(A.parent.name)}}function Ie(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){const De=e.CHM(A).$implicit,We=e.oxw(4);return e.KtG(We.changeAgency(De))}),e.TgZ(1,"div"),e.YNc(2,J,2,1,"span",13),e.TgZ(3,"h3",14),e._uU(4),e.qZA()(),e._UZ(5,"i",15),e.qZA()}if(2&ye){const A=Ae.$implicit;e.xp6(2),e.Q6J("ngIf",null==A.parent?null:A.parent.agencyId),e.xp6(2),e.Oqu(A.name)}}function Ze(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"div",17)(1,"button",18),e.NdJ("click",function(){e.CHM(A);const he=e.oxw(4);return e.KtG(he.changePageAgency(-1))}),e._UZ(2,"i",19),e.qZA(),e.TgZ(3,"div"),e._uU(4),e.qZA(),e.TgZ(5,"button",18),e.NdJ("click",function(){e.CHM(A);const he=e.oxw(4);return e.KtG(he.changePageAgency(1))}),e._UZ(6,"i",15),e.qZA()()}if(2&ye){const A=e.oxw(4);e.xp6(1),e.Q6J("disabled",1===A.pageAgency),e.xp6(3),e.AsE("",A.pageAgency,"/",A.totalPagesAgency,""),e.xp6(1),e.Q6J("disabled",A.pageAgency===A.totalPagesAgency)}}function ot(ye,Ae){if(1&ye&&(e.ynx(0),e.TgZ(1,"div",9),e.YNc(2,Ie,6,2,"div",10),e.qZA(),e.YNc(3,Ze,7,4,"div",11),e.BQk()),2&ye){const A=e.oxw(3);e.xp6(2),e.Q6J("ngForOf",A.agencies),e.xp6(1),e.Q6J("ngIf",A.totalPagesAgency>1)}}function lt(ye,Ae){1&ye&&(e.ynx(0),e.TgZ(1,"span",20),e.SDv(2,21),e.qZA(),e.BQk())}function At(ye,Ae){if(1&ye&&(e.TgZ(0,"div")(1,"h2",5),e.SDv(2,6),e.qZA(),e._UZ(3,"input",7),e.YNc(4,ot,4,2,"ng-container",8),e.YNc(5,lt,3,0,"ng-container",8),e.qZA()),2&ye){const A=e.oxw(2);e.xp6(4),e.Q6J("ngIf",A.agencies.length>0),e.xp6(1),e.Q6J("ngIf",A.agencies.length<=0)}}function qe(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){const De=e.CHM(A).$implicit,We=e.oxw(4);return e.KtG(We.changeSeller(De))}),e.TgZ(1,"div")(2,"h3",14),e._uU(3),e.ALo(4,"titlecase"),e.qZA(),e.TgZ(5,"span",16),e._uU(6),e.ALo(7,"lowercase"),e.qZA()(),e._UZ(8,"i",15),e.qZA()}if(2&ye){const A=Ae.$implicit;e.xp6(3),e.Oqu(e.lcZ(4,2,A.name)),e.xp6(3),e.Oqu(e.lcZ(7,4,A.email))}}function wt(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"div",28)(1,"button",18),e.NdJ("click",function(){e.CHM(A);const he=e.oxw(4);return e.KtG(he.changePageSeller(-1))}),e._UZ(2,"i",19),e.qZA(),e.TgZ(3,"div"),e._uU(4),e.qZA(),e.TgZ(5,"button",18),e.NdJ("click",function(){e.CHM(A);const he=e.oxw(4);return e.KtG(he.changePageSeller(1))}),e._UZ(6,"i",15),e.qZA()()}if(2&ye){const A=e.oxw(4);e.xp6(1),e.Q6J("disabled",1===A.pageSellers),e.xp6(3),e.AsE("",A.pageSellers,"/",A.totalPagesSellers,""),e.xp6(1),e.Q6J("disabled",A.pageSellers===A.totalPagesSellers)}}function re(ye,Ae){if(1&ye&&(e.ynx(0),e.TgZ(1,"div",9),e.YNc(2,qe,9,6,"div",10),e.qZA(),e.YNc(3,wt,7,4,"div",27),e.BQk()),2&ye){const A=e.oxw(3);e.xp6(2),e.Q6J("ngForOf",A.sellers),e.xp6(1),e.Q6J("ngIf",A.totalPagesSellers>1)}}function Ee(ye,Ae){1&ye&&(e.ynx(0),e.TgZ(1,"span",20),e.SDv(2,29),e.qZA(),e.BQk())}function Ve(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"div")(1,"button",22),e.NdJ("click",function(){e.CHM(A);const he=e.oxw(2);return e.KtG(he.changeStep(-1))}),e._UZ(2,"i",23),e.TgZ(3,"span"),e.SDv(4,24),e.qZA()(),e.TgZ(5,"h2"),e.SDv(6,25),e.qZA(),e._UZ(7,"input",26),e.YNc(8,re,4,2,"ng-container",8),e.YNc(9,Ee,3,0,"ng-container",8),e.qZA()}if(2&ye){const A=e.oxw(2);e.xp6(8),e.Q6J("ngIf",A.sellers.length>0),e.xp6(1),e.Q6J("ngIf",A.sellers.length<=0)}}function Le(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"div")(1,"div",30)(2,"h2"),e.SDv(3,31),e.qZA(),e.TgZ(4,"p")(5,"span"),e.SDv(6,32),e.qZA(),e._uU(7),e.ALo(8,"titlecase"),e.qZA(),e.TgZ(9,"div",33)(10,"button",34),e.NdJ("click",function(){e.CHM(A);const he=e.oxw(2);return e.KtG(he.changeStep(-1))}),e.SDv(11,35),e.qZA(),e.TgZ(12,"button",36),e.NdJ("click",function(){e.CHM(A);const he=e.oxw(2);return e.KtG(he.submitSeller())}),e.SDv(13,37),e.qZA()()()()}if(2&ye){const A=e.oxw(2);e.xp6(7),e.hij(" ",e.lcZ(8,1,A.selected.seller.name),".")}}function Dt(ye,Ae){if(1&ye&&(e.TgZ(0,"form",3),e.YNc(1,At,6,2,"div",4),e.YNc(2,Ve,10,2,"div",4),e.YNc(3,Le,14,3,"div",4),e.qZA()),2&ye){const A=e.oxw();e.Q6J("formGroup",A.search),e.xp6(1),e.Q6J("ngSwitchCase",1),e.xp6(1),e.Q6J("ngSwitchCase",2),e.xp6(1),e.Q6J("ngSwitchCase",3)}}function Tt(ye,Ae){1&ye&&(e.TgZ(0,"div",38),e._UZ(1,"div",39),e.qZA())}let pt=(()=>{class ye{constructor(A,j,he,De){this.fb=A,this.activeModal=j,this.changeSellerDefaultService=he,this.agenciesService=De,this.changeSellerEvent=new e.vpe,this.isLoading=!1,this.agencies=[],this.sellers=[],this.step=1,this.pageSellers=1,this.pageAgency=1,this.selected={agency:null,seller:null},this.search=this.fb.group({agency:[],seller:[]})}ngOnInit(){this.listAgencies(),this.subAgency=this.search.get("agency")?.valueChanges.pipe((0,_e.b)(1e3),(0,Ne.x)()).subscribe(A=>{this.listAgencies(!0)}),this.subSellers=this.search.get("seller")?.valueChanges.pipe((0,_e.b)(1e3),(0,Ne.x)()).subscribe(A=>{this.listSellers(!0)})}listAgencies(A=!1){A&&(this.pageAgency=1);const j=this.search.get("agency")?.value;this.isLoading=!0,this.agencies=[],this.agenciesService.list({name:j,active:!0,page:this.pageAgency}).subscribe({next:he=>{const De=he.items;this.pageAgency=he.pagination.currentPage,this.totalPagesAgency=he.pagination.totalPages,De&&De.length>0&&(this.agencies=De)},complete:()=>{this.isLoading=!1},error:he=>{this.isLoading=!1}})}listSellers(A=!1){A&&(this.pageSellers=1);const j=this.selected.agency.agencyId,he=this.search.get("seller")?.value;this.sellers=[],j&&(this.isLoading=!0,this.agenciesService.listUsers(j,{name:he,active:!0,page:this.pageSellers}).subscribe({next:De=>{const We=De.users;this.pageSellers=De.currentPage,this.totalPagesSellers=De.totalPages,We&&We.length>0&&(this.sellers=We)},complete:()=>{this.isLoading=!1},error:De=>{this.isLoading=!1}}))}changePageSeller(A){this.pageSellers+=A,this.listSellers()}changePageAgency(A){this.pageAgency+=A,this.listAgencies()}changeStep(A){this.step+=A}changeAgency(A){this.selected.agency=A,this.listSellers(),this.changeStep(1)}changeSeller(A){this.selected.seller=A,this.changeStep(1)}submitSeller(){const A=this.selected.seller;this.changeSellerDefaultService.setUser(A),this.changeSellerEvent.emit(A),this.activeModal.close()}ngOnDestroy(){this.subAgency?.unsubscribe(),this.subSellers?.unsubscribe()}}return ye.\u0275fac=function(A){return new(A||ye)(e.Y36(Z.QS),e.Y36(s.Kz),e.Y36(te.o),e.Y36(de.Y))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["app-change-seller-default"]],inputs:{selectedSeller:"selectedSeller"},outputs:{changeSellerEvent:"changeSellerEvent"},decls:3,vars:3,consts:function(){let Ae,A,j,he,De,We,Qe,Ye,Oe,Ke,yt;return Ae="Selecione uma ag\xEAncia",A="Digite um nome para filtrar",j="Nenhuma ag\xEAncia cadastrada foi encontrada.",he="Voltar",De="Selecione um Vendedor",We="Digite um nome para filtrar",Qe="Nenhum vendedor registrado encontrado.",Ye="Voc\xEA est\xE1 mudando de vendedor",Oe="A venda do cruzeiro ser\xE1 atribu\xEDda ao vendedor",Ke="Cancelar",yt="Alterar vendedor",[[3,"ngSwitch"],["class","container-group-seller",3,"formGroup",4,"ngIf"],["class","text-center pt-5 pb-5",4,"ngIf"],[1,"container-group-seller",3,"formGroup"],[4,"ngSwitchCase"],[1,"mb-3"],Ae,["type","search","formControlName","agency","placeholder",A,1,"form-control","mb-3"],[4,"ngIf"],[1,"container-group-seller__container-card"],["class","card w-100 container-group-seller__card-button",3,"click",4,"ngFor","ngForOf"],["class","pagination-arrow mb-0",4,"ngIf"],[1,"card","w-100","container-group-seller__card-button",3,"click"],["class","d-block text-muted f-2",4,"ngIf"],[1,"card-title","pricing-card-title","m-0"],[1,"icon-chevron-right"],[1,"d-block","text-muted","f-2"],[1,"pagination-arrow","mb-0"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],[1,"icon-chevron-left"],[1,"d-block","pt-5","pb-5","text-center"],j,["type","button",1,"btn","btn-link","p-0",3,"click"],[1,"icon-arrow-left"],he,De,["type","search","formControlName","seller","placeholder",We,1,"form-control","mb-3"],["class","pagination-arrow",4,"ngIf"],[1,"pagination-arrow"],Qe,[1,"text-center","my-4"],Ye,Oe,[1,"group-buttons","mt-5"],[1,"btn","btn-link",3,"click"],Ke,["type","button",1,"btn","btn-primary",3,"click"],yt,[1,"text-center","pt-5","pb-5"],[1,"load-spinner"]]},template:function(A,j){1&A&&(e.ynx(0,0),e.YNc(1,Dt,4,4,"form",1),e.BQk(),e.YNc(2,Tt,2,0,"div",2)),2&A&&(e.Q6J("ngSwitch",j.step),e.xp6(1),e.Q6J("ngIf",!j.isLoading),e.xp6(1),e.Q6J("ngIf",j.isLoading))},dependencies:[F.sg,F.O5,F.RF,F.n9,Z._Y,Z.Fj,Z.JJ,Z.JL,Z.sg,Z.u,F.i8,F.rS],encapsulation:2}),ye})();var Be=h(4422);function ft(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"button",4),e.NdJ("click",function(){e.CHM(A);const he=e.oxw();return e.KtG(he.activeModal.dismiss("Cross click"))}),e.qZA()}}function gt(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"app-change-seller-cvc-v2",5),e.NdJ("changeSellerEvent",function(he){e.CHM(A);const De=e.oxw();return e.KtG(De.changeSeller(he))})("blockUserToBookingEvent",function(he){e.CHM(A);const De=e.oxw();return e.KtG(De.blockUserToBookingEvent.emit(he))}),e.qZA()}if(2&ye){const A=e.oxw();e.Q6J("selectedSeller",A.selectedSeller)("sailingInfo",A.sailingInfo)("cruiseLine",A.cruiseLine)}}function Et(ye,Ae){if(1&ye){const A=e.EpF();e.TgZ(0,"app-change-seller-default",7),e.NdJ("changeSellerEvent",function(he){e.CHM(A);const De=e.oxw(2);return e.KtG(De.changeSeller(he))}),e.qZA()}if(2&ye){const A=e.oxw(2);e.Q6J("selectedSeller",A.selectedSeller)}}function Mt(ye,Ae){1&ye&&(e.ynx(0),e.YNc(1,Et,1,1,"app-change-seller-default",6),e.BQk()),2&ye&&(e.xp6(1),e.Q6J("hasPermission","FRONT_ENABLE_CHANGE_USER"))}let Qt=(()=>{class ye{constructor(A,j){this.activeModal=A,this.startupConfig=j,this.isRequiredSelectSeller=!1,this.changeSellerEvent=new e.vpe,this.blockUserToBookingEvent=new e.vpe}ngOnInit(){const A=this.startupConfig.config?.clientCode.toLocaleLowerCase();this.componentName="cvc"===A?"cvc-v2":A}changeSeller(A){this.changeSellerEvent.emit(A)}}return ye.\u0275fac=function(A){return new(A||ye)(e.Y36(s.Kz),e.Y36(K.q))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["app-change-seller-modal"]],inputs:{selectedSeller:"selectedSeller",sailingInfo:"sailingInfo",cruiseLine:"cruiseLine",isRequiredSelectSeller:"isRequiredSelectSeller"},outputs:{changeSellerEvent:"changeSellerEvent",blockUserToBookingEvent:"blockUserToBookingEvent"},decls:5,vars:3,consts:[["type","button","class","close","aria-label","Close",3,"click",4,"ngIf"],[1,"modal-body"],[3,"selectedSeller","sailingInfo","cruiseLine","changeSellerEvent","blockUserToBookingEvent",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"close",3,"click"],[3,"selectedSeller","sailingInfo","cruiseLine","changeSellerEvent","blockUserToBookingEvent"],[3,"selectedSeller","changeSellerEvent",4,"hasPermission"],[3,"selectedSeller","changeSellerEvent"]],template:function(A,j){1&A&&(e.TgZ(0,"div"),e.YNc(1,ft,1,0,"button",0),e.qZA(),e.TgZ(2,"div",1),e.YNc(3,gt,1,3,"app-change-seller-cvc-v2",2),e.YNc(4,Mt,2,1,"ng-container",3),e.qZA()),2&A&&(e.xp6(1),e.Q6J("ngIf",!j.isRequiredSelectSeller),e.xp6(2),e.Q6J("ngIf","cvc-v2"===j.componentName),e.xp6(1),e.Q6J("ngIf","cvc"!==j.componentName&&"cvc-v2"!==j.componentName))},dependencies:[F.O5,oe,pt,Be.l],encapsulation:2}),ye})()},65462:(Xe,me,h)=>{"use strict";h.d(me,{K:()=>N});var e=h(36895),s=h(24006),K=h(20315),F=h(53921),Z=h(94650);let O=(()=>{class E{}return E.\u0275fac=function(C){return new(C||E)},E.\u0275mod=Z.oAB({type:E}),E.\u0275inj=Z.cJS({imports:[e.ez,s.u5,s.UX,K.Q,F.yI.forRoot({validation:!1})]}),E})(),H=(()=>{class E{}return E.\u0275fac=function(C){return new(C||E)},E.\u0275mod=Z.oAB({type:E}),E.\u0275inj=Z.cJS({imports:[e.ez,s.u5,K.Q,s.UX]}),E})();var z=h(8148);let N=(()=>{class E{}return E.\u0275fac=function(C){return new(C||E)},E.\u0275mod=Z.oAB({type:E}),E.\u0275inj=Z.cJS({imports:[e.ez,O,H,z.r]}),E})()},70824:(Xe,me,h)=>{"use strict";h.d(me,{x:()=>H});var e=h(80529),s=h(591),K=h(42394),F=h(94650),Z=h(27722),O=h(27278);let H=(()=>{class z{constructor(E,y,C){this.http=E,this.configStartup=y,this.modalService=C,this.cvcVendorsSelected=new s.X(null),this.cvcVendorsSelected$=this.cvcVendorsSelected.asObservable(),this.isSellerLoadingSubject=new s.X(null),this.isSellerLoading$=this.isSellerLoadingSubject.asObservable();const U=this.configStartup.config?.developmentMode,oe=U?"f4f7347c-5a98-44e0-a561-45505971de69":"31816830-caa0-4609-8734-6cab49aec30a";this.cvcBaseUrlApi=U?"https://apihom.services.cvc.com.br/corp-bo-salespartner":"https://api.services.cvc.com.br/corp-bo-salespartner",this.headerCvcOptions={headers:new e.WM({Accept:"application/json","Content-Type":"application/json","X-Api-Key":oe,"Access-Control-Allow-Origin":"*"})}}listBranches(E=1,y){return this.http.get(`${this.cvcBaseUrlApi}/branches?page=${E}`,this.headerCvcOptions)}listBranch(E){return this.http.get(`${this.cvcBaseUrlApi}/branches/${E}`,this.headerCvcOptions)}listSellers(E){let y;return y=this.agencyId?`${this.cvcBaseUrlApi}/agencies/${this.agencyId}/sellers`:`${this.cvcBaseUrlApi}/branches/${E}/sellers`,this.http.get(y,this.headerCvcOptions)}listAttendants(E){return this.http.get(`${this.cvcBaseUrlApi}/branches/${E}/sellers`,this.headerCvcOptions)}getSellerInfo(E,y,C){let U={Filial:{cvcbranchId:y.branchId,name:y.name,address:y.address,personCode:E.personId||0},TipoVenda:{id:1,description:"DIRETA"},Intermediario:{},Atendente:{},Vendedor:{id:E.externalID,name:E.name,email:E.email}};return C&&(U.Atendente={id:C?.externalID,name:C?.name,email:C?.email,agencyId:this.agencyId}),U}setSeller(E,y,C){const U=this.getSellerInfo(E,y,C);(0,K.d8)("kz-vendor-info",JSON.stringify(U),365),this.cvcVendorsSelected.next(JSON.parse(JSON.stringify(U)))}initVendors(E){const y=JSON.parse(localStorage.getItem("kz-user")||"");this.userId=y.sub.split(":")[0],this.userName=y.name,this.branchId=y.loja,this.agencyId=y.agencia,this.userId&&this.branchId&&(this.isSellerLoadingSubject.next(!0),this.listBranch(this.branchId).subscribe({next:C=>{C?this.selectFirstSeller(C,E):this.getBackupBranch(y,E)},complete:()=>{this.isSellerLoadingSubject.next(!1)},error:C=>{this.getBackupBranch(y,E)}}))}getBackupBranch(E,y){const U=(E.infoExtra?JSON.parse(E.infoExtra):null).session?.branch?.id;this.listBranch(U).subscribe({next:b=>{b?this.selectFirstSeller(b,y):y?y():this.showUserError()},complete:()=>{this.isSellerLoadingSubject.next(!1)},error:b=>{y?y():this.showUserError()}})}showUserError(){this.modalService.confirm({title:"Erro ao encontrar usu\xe1rio",description:"Verifique a reserva ap\xf3s a cria\xe7\xe3o ou contate o suporte",secundaryBtn:!1,primaryBtnDescription:"Ok"})}selectFirstSeller(E,y){this.listSellers(E.branchId).subscribe({next:C=>{const U=C;let b;if(U.length>0){const G=this.userId?.toString().toUpperCase();if(b=U.find(w=>{let ee=!1;return(w.personId?.toString().toUpperCase()===G||w.externalID?.toString().toUpperCase()===G||w.login?.toString().toUpperCase()===G||w.name?.toUpperCase()===this.userName?.toUpperCase())&&(ee=!0),ee}),!b)return this.isSellerLoadingSubject.next(!1),y?y():void 0;this.setSeller(b,E),this.isSellerLoadingSubject.next(!1)}},error:()=>{this.isSellerLoadingSubject.next(!1),y&&y()}})}}return z.\u0275fac=function(E){return new(E||z)(F.LFG(e.eN),F.LFG(Z.q),F.LFG(O.Z))},z.\u0275prov=F.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})()},48177:(Xe,me,h)=>{"use strict";h.d(me,{o:()=>Z});var e=h(591),s=h(42394),K=h(94650),F=h(80529);let Z=(()=>{class O{constructor(z){this.http=z,this.selectedUserSubject=new e.X(null),this.selectedUser$=this.selectedUserSubject.asObservable()}getUserInfo(z){return z||(z=JSON.parse(localStorage.getItem("kz-user")||"")),{userId:z.id,userName:z.name,companyId:z.companyId||z.company_id,companyCode:z.companyCode||z.company_code}}setUser(z=null){(0,s.d8)("kz-user-info",JSON.stringify(this.getUserInfo(z)),9999),this.selectedUserSubject.next(this.getUserInfo(z))}}return O.\u0275fac=function(z){return new(z||O)(K.LFG(F.eN))},O.\u0275prov=K.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})()},9245:(Xe,me,h)=>{"use strict";h.d(me,{o:()=>H});var e=h(94650),s=h(36895);function K(z,N){1&z&&(e.TgZ(0,"span",4),e.SDv(1,5),e.qZA())}function F(z,N){1&z&&(e.TgZ(0,"span",4),e.SDv(1,6),e.qZA())}const Z=function(z){return{active:z}},O=["*"];let H=(()=>{class z{constructor(){this.isCollapsedChange=new e.vpe}get isCollapsed(){return this.componentIsCollapsed||!1}set isCollapsed(E){this.componentIsCollapsed=E,this.isCollapsedChange.emit(E)}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275cmp=e.Xpm({type:z,selectors:[["app-collapse"]],inputs:{name:"name",isCollapsed:"isCollapsed"},outputs:{isCollapsedChange:"isCollapsedChange"},ngContentSelectors:O,decls:7,vars:7,consts:function(){let N,E;return N="Mostrar",E="Ocultar",[[1,"collapse-container",3,"ngClass"],["type","button",1,"collapse__button",3,"click"],["class","sr-only",4,"ngIf"],[1,"collapse__content",3,"hidden"],[1,"sr-only"],N,E]},template:function(E,y){1&E&&(e.F$t(),e.TgZ(0,"div",0)(1,"button",1),e.NdJ("click",function(){return y.isCollapsed=!y.isCollapsed}),e._uU(2),e.YNc(3,K,2,0,"span",2),e.YNc(4,F,2,0,"span",2),e.qZA(),e.TgZ(5,"div",3),e.Hsn(6),e.qZA()()),2&E&&(e.Q6J("ngClass",e.VKq(5,Z,!y.isCollapsed)),e.xp6(2),e.hij(" ",y.name," "),e.xp6(1),e.Q6J("ngIf",y.isCollapsed),e.xp6(1),e.Q6J("ngIf",!y.isCollapsed),e.xp6(1),e.Q6J("hidden",y.isCollapsed))},dependencies:[s.mk,s.O5],encapsulation:2}),z})()},20503:(Xe,me,h)=>{"use strict";h.d(me,{N:()=>H});var e=h(36895),s=h(66976),K=h(24006),F=h(53921),Z=h(24658),O=h(94650);let H=(()=>{class z{}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=O.oAB({type:z}),z.\u0275inj=O.cJS({imports:[e.ez,s.qD,K.u5,K.UX,Z.U,F.yI.forRoot({validation:!1})]}),z})()},67229:(Xe,me,h)=>{"use strict";h.d(me,{w:()=>K});var e=h(36895),s=h(94650);let K=(()=>{class F{}return F.\u0275fac=function(O){return new(O||F)},F.\u0275mod=s.oAB({type:F}),F.\u0275inj=s.cJS({imports:[e.ez]}),F})()},73478:(Xe,me,h)=>{"use strict";h.d(me,{S:()=>F});var e=h(26772),s=h(94650),K=h(27722);let F=(()=>{class O{constructor(z){this.startupService=z}transform(z,...N){const E=Z[z.toLocaleLowerCase()];return E?(0,e.X7)(E,this.startupService):""}}return O.\u0275fac=function(z){return new(z||O)(s.Y36(K.q,16))},O.\u0275pipe=s.Yjl({name:"cruiseLineLogo",type:O,pure:!0}),O})();const Z={aza:"https://media.krooze.com.br/cia_aza_172f3c9ad1/cia-aza.svg_cia_aza_172f3c9ad1.svg",clb:"https://media.krooze.com.br/cia_clb_931ca11e9b/cia-clb.svg_cia_clb_931ca11e9b.svg",costa:"https://media.krooze.com.br/cia_costa_4b56db8dc7/cia-costa.svg_cia_costa_4b56db8dc7.svg",carnival:"https://media.krooze.com.br/carnival_e68097c7b1/carnival.svg_carnival_e68097c7b1.svg",cun:"https://media.krooze.com.br/cia_cun_6733884b98/cia-cun.svg_cia_cun_6733884b98.svg",cvc:"https://media.krooze.com.br/cia_cvc_bf6ee65495/cia-cvc.svg_cia_cvc_bf6ee65495.svg",dcl:"https://media.krooze.com.br/cia_dcl_a02f75edce/cia-dcl.svg_cia_dcl_a02f75edce.svg",ejs:"https://media.krooze.com.br/cia_ejs_c768a0c08b/cia-ejs.svg_cia_ejs_c768a0c08b.svg",hal:"https://media.krooze.com.br/cia_hal_61625779e8/cia-hal.svg_cia_hal_61625779e8.svg",msc:"https://media.krooze.com.br/cia_msc_3f5da059db/cia-msc.svg_cia_msc_3f5da059db.svg",ncl:"https://media.krooze.com.br/cia_ncl_072c7389a3/cia-ncl.svg_cia_ncl_072c7389a3.svg",oce:"https://media.krooze.com.br/cia_oce_2335c87ad3/cia-oce.svg_cia_oce_2335c87ad3.svg",pcl:"https://media.krooze.com.br/cia_pcl_a54afc9fbf/cia-pcl.svg_cia_pcl_a54afc9fbf.svg",pclmxn:"https://media.krooze.com.br/cia_pclmxn_c7b82f2e22/cia-pclmxn.svg_cia_pclmxn_c7b82f2e22.svg",plmt:"https://media.krooze.com.br/cia_plmt_09558f21be/cia-plmt.svg_cia_plmt_09558f21be.svg",promoacao:"https://media.krooze.com.br/cia_promoacao_b63470622a/cia-promoacao.svg_cia_promoacao_b63470622a.svg",rccl:"https://media.krooze.com.br/cia_rccl_2a4ce4c34e/cia-rccl.svg_cia_rccl_2a4ce4c34e.svg",reg:"https://media.krooze.com.br/cia_reg_0c29a0dd7e/cia-reg.svg_cia_reg_0c29a0dd7e.svg",sbn:"https://media.krooze.com.br/cia_sbn_0107d311e4/cia-sbn.svg_cia_sbn_0107d311e4.svg",she:"https://media.krooze.com.br/cia_she_ff16163258/cia-she.svg_cia_she_ff16163258.svg",sse:"https://media.krooze.com.br/cia_sse_668a94ca66/cia-sse.svg_cia_sse_668a94ca66.svg",cry:"https://media.krooze.com.br/crystal_logo_dcad5e47dd/crystal-logo.png_crystal_logo_dcad5e47dd.png",clty:"https://media.krooze.com.br/celestyal_logo_8099e0741d/celestyal-logo.png_celestyal_logo_8099e0741d.png"}},59021:(Xe,me,h)=>{"use strict";h.d(me,{s:()=>F});var e=h(36895),s=h(24006),K=h(94650);let F=(()=>{class Z{}return Z.\u0275fac=function(H){return new(H||Z)},Z.\u0275mod=K.oAB({type:Z}),Z.\u0275inj=K.cJS({imports:[e.ez,s.u5]}),Z})()},98895:(Xe,me,h)=>{"use strict";h.d(me,{v:()=>y});var e=h(94650),s=h(36895),K=h(43740);function F(C,U){if(1&C&&(e.TgZ(0,"div",12),e._UZ(1,"i"),e.qZA()),2&C){const b=e.oxw();e.xp6(1),e.Gre("icon-",b.icon,"")}}function Z(C,U){if(1&C&&(e.TgZ(0,"div",13),e._uU(1),e.qZA()),2&C){const b=e.oxw();e.xp6(1),e.Oqu(b.label)}}const O=function(C){return{"font-weight":C}},H=function(C){return{"has-value":C}};function z(C,U){if(1&C&&(e.TgZ(0,"div",14),e._uU(1),e.qZA()),2&C){const b=e.oxw();e.Q6J("ngStyle",e.VKq(3,O,b.isDefaultLabel?null:600))("ngClass",e.VKq(5,H,!b.isDefaultLabel)),e.xp6(1),e.Oqu(b.value)}}const N=function(C){return{"lock-class":C}},E=["*"];let y=(()=>{class C{constructor(){this.lockBit=!1,this.disabledDrop=!1,this.closeEvent=new e.vpe}openChange(b){b||this.closeEvent.emit()}}return C.\u0275fac=function(b){return new(b||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["app-form-dropdown"]],inputs:{label:"label",value:"value",icon:"icon",open:"open",isDefaultLabel:"isDefaultLabel",id:"id",lockBit:"lockBit",disabledDrop:"disabledDrop"},outputs:{closeEvent:"closeEvent"},ngContentSelectors:E,decls:13,vars:8,consts:function(){let U;return U="Confirmar",[["ngbDropdown","",1,"form-dropdown",3,"id","ngClass","openChange"],["myDrop","ngbDropdown"],["type","button","ngbDropdownToggle","",1,"form-dropdown__input",3,"disabled"],["class","form-dropdown__icon",4,"ngIf"],[1,"form-dropdown__content"],["class","form-dropdown__label",4,"ngIf"],["class","form-dropdown__value",3,"ngStyle","ngClass",4,"ngIf"],["ngbDropdownMenu","",1,"form-dropdown__drop"],[3,"click"],[1,"form-dropdown__footer"],["type","button",1,"btn","btn-link",3,"click"],U,[1,"form-dropdown__icon"],[1,"form-dropdown__label"],[1,"form-dropdown__value",3,"ngStyle","ngClass"]]},template:function(b,G){if(1&b){const w=e.EpF();e.F$t(),e.TgZ(0,"div",0,1),e.NdJ("openChange",function(oe){return G.openChange(oe)}),e.TgZ(2,"button",2),e.YNc(3,F,2,3,"div",3),e.TgZ(4,"div",4),e.YNc(5,Z,2,1,"div",5),e.YNc(6,z,2,7,"div",6),e.qZA()(),e.TgZ(7,"div",7)(8,"div",8),e.NdJ("click",function(oe){return oe.stopPropagation()}),e.Hsn(9),e.TgZ(10,"div",9)(11,"button",10),e.NdJ("click",function(){e.CHM(w);const oe=e.MAs(1);return e.KtG(oe.close())}),e.SDv(12,11),e.qZA()()()()()}2&b&&(e.Q6J("id",G.id)("ngClass",e.VKq(6,N,G.lockBit)),e.xp6(2),e.Q6J("disabled",G.lockBit&&"form-dropdown-arrive"===G.id||G.disabledDrop),e.xp6(1),e.Q6J("ngIf",G.icon),e.xp6(2),e.Q6J("ngIf",G.label),e.xp6(1),e.Q6J("ngIf",G.value))},dependencies:[s.mk,s.O5,s.PC,K.jt,K.iD,K.Vi],styles:['.form-dropdown[_ngcontent-%COMP%]{display:block}.form-dropdown__input[_ngcontent-%COMP%]{border:var(--kz-input-border);padding:.25rem 1.5rem .25rem .5rem;text-align:left;width:100%}.form-dropdown__input[_ngcontent-%COMP%]:after{position:absolute;top:50%;right:.5rem}.form-dropdown__input[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;line-height:1rem;max-width:100%}.form-dropdown__input[_ngcontent-%COMP%]:disabled{background-color:#e9e9e9;color:#9c9c9c}.form-dropdown__input[_ngcontent-%COMP%]:disabled   .form-dropdown__content[_ngcontent-%COMP%]   .form-dropdown__label[_ngcontent-%COMP%]{color:#9c9c9c}.form-dropdown__icon[_ngcontent-%COMP%] + .form-dropdown__content[_ngcontent-%COMP%]{margin-left:.5rem}.form-dropdown__value[_ngcontent-%COMP%], .form-dropdown__label[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.form-dropdown__label[_ngcontent-%COMP%]{font-size:.75rem}#form-dropdown-departure[_ngcontent-%COMP%]   .dropdown-toggle.form-dropdown__input[_ngcontent-%COMP%]{background-image:radial-gradient(circle at calc(100% + 6px) calc(50% + -0px),rgba(0,0,0,0) 0,rgba(0,0,0,0) 12px,var(--kz-input-border-color) 12px,var(--kz-input-border-color) 13.5px,var(--kz-input-background-color) 13.5px)}#form-dropdown-departure[_ngcontent-%COMP%]   .dropdown-toggle.form-dropdown__input[_ngcontent-%COMP%]:before{content:"";width:3px;height:22px;display:inline-block;position:absolute;right:-2px;bottom:calc(50% - 11px);background:var(--kz-input-background-color);border:none}@media (max-width: 991px){#form-dropdown-departure[_ngcontent-%COMP%]   .dropdown-toggle.form-dropdown__input[_ngcontent-%COMP%]{background-image:radial-gradient(circle at calc(100% - 30px) calc(100% + 6px),rgba(0,0,0,0) 0,rgba(0,0,0,0) 12px,var(--kz-input-border-color) 12px,var(--kz-input-border-color) 13.5px,var(--kz-input-background-color) 13.5px)}#form-dropdown-departure[_ngcontent-%COMP%]   .dropdown-toggle.form-dropdown__input[_ngcontent-%COMP%]:before{top:inherit;bottom:0;right:20px;width:22px;height:2px}}#form-dropdown-arrive[_ngcontent-%COMP%]   .dropdown-toggle.form-dropdown__input[_ngcontent-%COMP%]{background-image:radial-gradient(circle at -6px calc(50% + -0px),rgba(0,0,0,0) 0,rgba(0,0,0,0) 12px,var(--kz-input-border-color) 12px,var(--kz-input-border-color) 13.5px,var(--kz-input-background-color) 13.5px)}#form-dropdown-arrive[_ngcontent-%COMP%]   .dropdown-toggle.form-dropdown__input[_ngcontent-%COMP%]:before{content:"";width:3px;height:22px;display:inline-block;position:absolute;left:-1px;bottom:calc(50% - 11px);background:var(--kz-input-background-color);border:none}@media (max-width: 991px){#form-dropdown-arrive[_ngcontent-%COMP%]   .dropdown-toggle.form-dropdown__input[_ngcontent-%COMP%]{background-image:radial-gradient(circle at calc(100% - 30px) -6px,rgba(0,0,0,0) 0,rgba(0,0,0,0) 12px,var(--kz-input-border-color) 12px,var(--kz-input-border-color) 13.5px,var(--kz-input-background-color) 13.5px)}#form-dropdown-arrive[_ngcontent-%COMP%]   .dropdown-toggle.form-dropdown__input[_ngcontent-%COMP%]:before{left:inherit;right:21px;top:0;width:21px;height:2px}}#form-dropdown-arrive[_ngcontent-%COMP%]   .dropdown-toggle.form-dropdown__input[_ngcontent-%COMP%]:disabled{background-image:radial-gradient(circle at -6px calc(50% + -0px),rgba(0,0,0,0) 0,rgba(0,0,0,0) 12px,var(--kz-input-border-color) 12px,var(--kz-input-border-color) 13.5px,#e9e9e9 13.5px);color:#9c9c9c}#form-dropdown-arrive[_ngcontent-%COMP%]   .dropdown-toggle.form-dropdown__input[_ngcontent-%COMP%]:disabled   .form-dropdown__content[_ngcontent-%COMP%]   .form-dropdown__label[_ngcontent-%COMP%]{color:#9c9c9c}@media (max-width: 991px){#form-dropdown-arrive[_ngcontent-%COMP%]   .dropdown-toggle.form-dropdown__input[_ngcontent-%COMP%]:disabled{background-image:radial-gradient(circle at calc(100% - 30px) -6px,rgba(0,0,0,0) 0,rgba(0,0,0,0) 12px,var(--kz-input-border-color) 12px,var(--kz-input-border-color) 13.5px,#e9e9e9 13.5px)}}']}),C})()},58146:(Xe,me,h)=>{"use strict";h.d(me,{V:()=>N});var e=h(24006),s=h(94650),K=h(71267),F=h(36895);function Z(E,y){if(1&E&&(s.TgZ(0,"small",2),s._uU(1),s.qZA()),2&E){const C=s.oxw(2);s.xp6(1),s.hij(" ",C.getErrorMessage()," ")}}function O(E,y){if(1&E&&(s.TgZ(0,"div"),s.YNc(1,Z,2,1,"small",1),s.qZA()),2&E){const C=s.oxw();s.xp6(1),s.Q6J("ngIf",C.hasError)}}let H=(()=>{class E{constructor(){}mountErrorMessage(C){return"asyncMessage"===C?this.form?.errors?.[C]:K.p[C]||K.p.invalid}getErrorMessage(){const C=this.form?.errors;if(C){const U=Object.keys(C);if(U?.length>0)return this.mountErrorMessage(U[0])}}get hasError(){return!!this.form&&this.form.invalid&&(this.form.dirty||this.form.touched)}}return E.\u0275fac=function(C){return new(C||E)},E.\u0275cmp=s.Xpm({type:E,selectors:[["app-error-message"]],inputs:{form:"form"},decls:1,vars:1,consts:[[4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"text-danger"]],template:function(C,U){1&C&&s.YNc(0,O,2,1,"div",0),2&C&&s.Q6J("ngIf",null==U.form?null:U.form.errors)},dependencies:[F.O5],encapsulation:2}),E})();const z=["*"];let N=(()=>{class E{constructor(){}ngAfterContentInit(){if(this.input=this.model||this.control,void 0===this.input)throw new Error("app-form-field component should be used with ngModel ou formControlName")}get isRequired(){return this.input.isRequierd&&(this.input.dirty||this.input.touched)}get hasError(){return this.input.invalid&&(this.input.dirty||this.input.touched)}}return E.\u0275fac=function(C){return new(C||E)},E.\u0275cmp=s.Xpm({type:E,selectors:[["app-form-field"]],contentQueries:function(C,U,b){if(1&C&&(s.Suo(b,e.On,5),s.Suo(b,e.u,5)),2&C){let G;s.iGM(G=s.CRH())&&(U.model=G.first),s.iGM(G=s.CRH())&&(U.control=G.first)}},ngContentSelectors:z,decls:3,vars:3,consts:[[1,"form-group"],[3,"form"]],template:function(C,U){1&C&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s._UZ(2,"app-error-message",1),s.qZA()),2&C&&(s.ekj("has-error",U.hasError),s.xp6(2),s.Q6J("form",U.input.control))},dependencies:[H],encapsulation:2}),E})()},31301:(Xe,me,h)=>{"use strict";h.d(me,{v:()=>Ne});var e=h(26772),s=h(94650),K=h(43740),F=h(36895);let Z=(()=>{class te{constructor(J,Ie){this.renderer=J,this.el=Ie,this.swipeGap=100,this.timer=null,this.swipeEvent=new s.vpe,this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchMove=this.handleTouchMove.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this)}ngOnInit(){this.directiveElement=this.el.nativeElement,this.renderer.listen(this.directiveElement,"touchstart",this.handleTouchStart),this.renderer.listen(this.directiveElement,"touchmove",this.handleTouchMove),this.renderer.listen(this.directiveElement,"touchend",this.handleTouchEnd)}getTouches(J){return J.touches||J.originalEvent.touches}handleTouchEnd(){this.xDiff&&Math.abs(this.xDiff)&&(this.xDiff>this.swipeGap?this.swipeEvent.emit("left"):this.xDiff<-1*this.swipeGap&&this.swipeEvent.emit("right"))}handleTouchStart(J){const Ie=this.getTouches(J)[0];this.xDown=Ie.clientX}handleTouchMove(J){!this.xDown||(this.xUp=J.touches[0].clientX,this.xUp&&(this.xDiff=this.xDown-this.xUp))}}return te.\u0275fac=function(J){return new(J||te)(s.Y36(s.Qsj),s.Y36(s.SBq))},te.\u0275dir=s.lG2({type:te,selectors:[["","appSwipe",""]],outputs:{swipeEvent:"swipeEvent"}}),te})();var O=h(55496),H=h(49607);const z=["carousel"],N=["thumb"];function E(te,de){if(1&te){const J=s.EpF();s.TgZ(0,"button",2),s.NdJ("click",function(){s.CHM(J);const Ze=s.oxw();return s.KtG(Ze.activeModal.dismiss("Cross click"))}),s.TgZ(1,"span",3),s._UZ(2,"i",4),s.qZA()()}}function y(te,de){if(1&te&&(s._UZ(0,"img",12),s.ALo(1,"srcsetImage"),s.ALo(2,"contentImage")),2&te){const J=s.oxw().$implicit,Ie=s.oxw(2);s.Q6J("srcset",s.xi3(1,3,J.formats,Ie.imageLargeSize),s.LSH)("src",s.xi3(2,6,J.formats,Ie.imageLargeSize),s.LSH)("alt",J.name)}}function C(te,de){1&te&&s.YNc(0,y,3,9,"ng-template",11),2&te&&s.Q6J("id","slide-"+de.index)}function U(te,de){if(1&te&&(s.TgZ(0,"div",14)(1,"span"),s._uU(2),s.qZA(),s.TgZ(3,"span"),s._uU(4),s.qZA()()),2&te){const J=s.oxw(),Ie=J.$implicit,Ze=J.index,ot=s.oxw(2);s.xp6(2),s.hij(" ",Ie.name," "),s.xp6(2),s.AsE(" ",Ze+1,"/",ot.imagesList.length," ")}}function b(te,de){if(1&te&&(s.TgZ(0,"div"),s.YNc(1,U,5,3,"div",13),s.qZA()),2&te){const J=de.index;s.oxw();const Ie=s.MAs(2);s.xp6(1),s.Q6J("ngIf",Ie.activeId==="slide-"+J)}}const G=function(te){return{selected:te}};function w(te,de){if(1&te){const J=s.EpF();s.TgZ(0,"button",17,18),s.NdJ("click",function(){s.CHM(J);const Ze=s.oxw().index;s.oxw(2);const ot=s.MAs(2);return s.KtG(ot.select("slide-"+Ze))}),s._UZ(2,"img",12),s.ALo(3,"srcsetImage"),s.ALo(4,"contentImage"),s.qZA()}if(2&te){const J=s.oxw(),Ie=J.index,Ze=J.$implicit;s.oxw(2);const ot=s.MAs(2),lt=s.oxw();s.Q6J("id","thumb-"+Ie)("ngClass",s.VKq(11,G,ot.activeId==="slide-"+Ie)),s.xp6(2),s.Q6J("srcset",s.xi3(3,5,Ze.formats,lt.imageThumbSize),s.LSH)("src",s.xi3(4,8,Ze.formats,lt.imageThumbSize),s.LSH)("alt",Ze.name)}}function ee(te,de){if(1&te&&(s.TgZ(0,"li"),s.YNc(1,w,5,13,"button",16),s.qZA()),2&te){const J=de.$implicit;s.xp6(1),s.Q6J("ngIf",J.formats)}}function oe(te,de){if(1&te&&(s.TgZ(0,"ul",15),s.YNc(1,ee,2,1,"li",8),s.qZA()),2&te){const J=s.oxw(2);s.xp6(1),s.Q6J("ngForOf",J.imagesList)}}function _e(te,de){if(1&te){const J=s.EpF();s.TgZ(0,"div",5)(1,"ngb-carousel",6,7),s.NdJ("swipeEvent",function(Ze){s.CHM(J);const ot=s.oxw();return s.KtG(ot.onSlideSwipe(Ze))})("slide",function(Ze){s.CHM(J);const ot=s.oxw();return s.KtG(ot.onSlide(Ze))}),s.YNc(3,C,1,1,null,8),s.qZA(),s.TgZ(4,"div",9),s.YNc(5,b,2,1,"div",8),s.qZA(),s.YNc(6,oe,2,1,"ul",10),s.qZA()}if(2&te){const J=s.oxw();s.xp6(1),s.Q6J("showNavigationArrows",J.showNavigationArrows)("activeId",J.currentId)("showNavigationIndicators",J.showNavigationIndicators)("animation",!1),s.xp6(2),s.Q6J("ngForOf",J.imagesList),s.xp6(2),s.Q6J("ngForOf",J.imagesList),s.xp6(1),s.Q6J("ngIf",J.imagesList.length>0&&J.isCompleteGallery)}}let Ne=(()=>{class te{constructor(J){this.activeModal=J,this.isCompleteGallery=!0,this.showNavigationIndicators=!1,this.imageThumbSize=e.xS.thumbnail,this.imageLargeSize=e.xS.large}ngOnInit(){this.currentId="slide-"+(this.current?this.current:"0"),this.imagesList&&(this.showNavigationArrows=this.imagesList.length>1)}ngAfterViewInit(){setTimeout(()=>{this.scrollToActiveThumb()},200)}onSlideSwipe(J){"right"===J?this.carousel?.prev():"left"===J&&this.carousel?.next()}scrollToActiveThumb(){const J=this.thumb?.filter(Ie=>Ie.nativeElement.id.replace("thumb-","")===this.currentId?.replace("slide-",""));J&&J.length>0&&J[0].nativeElement.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}onSlide(J){this.currentId=J.current,this.scrollToActiveThumb()}}return te.\u0275fac=function(J){return new(J||te)(s.Y36(K.Kz))},te.\u0275cmp=s.Xpm({type:te,selectors:[["app-gallery"]],viewQuery:function(J,Ie){if(1&J&&(s.Gf(z,5),s.Gf(N,5)),2&J){let Ze;s.iGM(Ze=s.CRH())&&(Ie.carousel=Ze.first),s.iGM(Ze=s.CRH())&&(Ie.thumb=Ze)}},inputs:{imagesList:"imagesList",current:"current",isCompleteGallery:"isCompleteGallery"},decls:2,vars:2,consts:[["type","button","class","btn close","aria-label","Close",3,"click",4,"ngIf"],["class","carousel-images",4,"ngIf"],["type","button","aria-label","Close",1,"btn","close",3,"click"],["aria-hidden","true"],["appSvgIcon","icon-close"],[1,"carousel-images"],["appSwipe","","ngbAutofocus","",1,"carousel-images__main-images",3,"showNavigationArrows","activeId","showNavigationIndicators","animation","swipeEvent","slide"],["carousel",""],[4,"ngFor","ngForOf"],[1,"carousel-images__info"],["class","carousel-images__thumbs",4,"ngIf"],["ngbSlide","",3,"id"],[3,"srcset","src","alt"],["class","carousel-images__main-images__title",4,"ngIf"],[1,"carousel-images__main-images__title"],[1,"carousel-images__thumbs"],[3,"id","ngClass","click",4,"ngIf"],[3,"id","ngClass","click"],["thumb",""]],template:function(J,Ie){1&J&&(s.YNc(0,E,3,0,"button",0),s.YNc(1,_e,7,7,"div",1)),2&J&&(s.Q6J("ngIf",Ie.activeModal&&Ie.imagesList&&Ie.isCompleteGallery),s.xp6(1),s.Q6J("ngIf",Ie.imagesList))},dependencies:[F.mk,F.sg,F.O5,K.uo,K.xl,Z,O.E,H.O],styles:[".carousel-images__main-images[_ngcontent-%COMP%]{outline:none}.carousel-images__main-images[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.carousel-images__main-images[_ngcontent-%COMP%]   .carousel-item[_ngcontent-%COMP%]{opacity:0;transition:.6s;pointer-events:none}.carousel-images__main-images[_ngcontent-%COMP%]   .carousel-item.active[_ngcontent-%COMP%]{opacity:1;pointer-events:inherit}.carousel-images__main-images__title[_ngcontent-%COMP%]{color:#fff;display:flex;justify-content:space-between;align-items:center}@media (max-width: 576px){.carousel-images__main-images__title[_ngcontent-%COMP%]{width:100%;bottom:.75rem;left:50%;transform:translate(-50%);position:fixed;justify-content:space-around}}.carousel-images__info[_ngcontent-%COMP%]{padding:.75rem}@media (max-width: 576px){.carousel-images__info[_ngcontent-%COMP%]{padding:0}}.carousel-images__thumbs[_ngcontent-%COMP%]{margin:0;overflow:auto;white-space:nowrap;overflow:-moz-scrollbars-none;-ms-overflow-style:none}@media (max-width: 576px){.carousel-images__thumbs[_ngcontent-%COMP%]{display:block}}.carousel-images__thumbs[_ngcontent-%COMP%]::-webkit-scrollbar{display:none;width:0px;background:transparent}.carousel-images__thumbs[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline-block}.carousel-images__thumbs[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;background-color:transparent;padding:0;border:2px solid #000;cursor:pointer}.carousel-images__thumbs[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus{outline:none}.carousel-images__thumbs[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   button.selected[_ngcontent-%COMP%]{border-color:#fff}.carousel-images__thumbs[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:80px}.carousel-images__thumbs[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-left:1rem}.carousel-images[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{background-color:#000;border:none;position:fixed;right:10px;top:10px;z-index:1;fill:#fff;padding:10px}.carousel-images[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]   .svg-icon[_ngcontent-%COMP%]{width:25px!important;height:25px!important}"]}),te})()},59496:(Xe,me,h)=>{"use strict";h.d(me,{U:()=>O});var e=h(36895),s=h(43740),K=h(26652),F=h(94650);let Z=(()=>{class H{}return H.\u0275fac=function(N){return new(N||H)},H.\u0275mod=F.oAB({type:H}),H.\u0275inj=F.cJS({imports:[e.ez]}),H})(),O=(()=>{class H{}return H.\u0275fac=function(N){return new(N||H)},H.\u0275mod=F.oAB({type:H}),H.\u0275inj=F.cJS({imports:[e.ez,s.mH,Z,K.E]}),H})()},16636:(Xe,me,h)=>{"use strict";h.d(me,{a:()=>K});var e=h(94650),s=h(27722);let K=(()=>{class F{constructor(O,H,z){this.el=O,this.renderer=H,this.startupService=z}ngAfterViewInit(){if(this.iconCode){const O=this.renderer.createElement("img");this.renderer.addClass(O,"kz-icon"),this.renderer.setAttribute(O,"src",`${this.startupService?.config?.urlMedia}/icons/${this.iconCode}.svg`),this.renderer.setAttribute(O,"alt",this.iconAlt||""),this.renderer.appendChild(this.el.nativeElement,O),this.iconWidth&&this.renderer.setAttribute(O,"width",this.iconWidth)}}}return F.\u0275fac=function(O){return new(O||F)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(s.q))},F.\u0275dir=e.lG2({type:F,selectors:[["","appIcon",""]],inputs:{iconCode:"iconCode",iconAlt:"iconAlt",iconWidth:"iconWidth"}}),F})()},20315:(Xe,me,h)=>{"use strict";h.d(me,{Q:()=>K});var e=h(36895),s=h(94650);let K=(()=>{class F{}return F.\u0275fac=function(O){return new(O||F)},F.\u0275mod=s.oAB({type:F}),F.\u0275inj=s.cJS({imports:[e.ez]}),F})()},69100:(Xe,me,h)=>{"use strict";h.d(me,{B:()=>C});var e=h(94650),s=h(17120),K=h(36895),F=h(73478),Z=h(66451);function O(U,b){if(1&U&&(e.TgZ(0,"span"),e._uU(1),e.TgZ(2,"strong"),e._uU(3),e.qZA()()),2&U){const G=e.oxw().$implicit;e.xp6(1),e.hij(" \u2022 ",G.companyCode,": "),e.xp6(2),e.Oqu(G.externalId)}}function H(U,b){if(1&U&&(e.TgZ(0,"div"),e._UZ(1,"i",13),e._uU(2),e._UZ(3,"i",14),e._uU(4),e.qZA()),2&U){const G=e.oxw(2).$implicit;e.xp6(2),e.hij(" ",G.boardingPort.name," "),e.xp6(2),e.hij(" ",G.landingPort.name," ")}}function z(U,b){if(1&U&&(e.TgZ(0,"div"),e._UZ(1,"i",13)(2,"i",14),e._uU(3),e.qZA()),2&U){const G=e.oxw(2).$implicit;e.xp6(3),e.hij(" ",G.boardingPort.name," ")}}function N(U,b){if(1&U&&(e.TgZ(0,"div"),e.YNc(1,H,5,2,"div",0),e.YNc(2,z,4,1,"div",0),e.qZA()),2&U){const G=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",G.boardingPort.code!==G.landingPort.code),e.xp6(1),e.Q6J("ngIf",G.boardingPort.code===G.landingPort.code)}}function E(U,b){if(1&U&&(e.TgZ(0,"a",2)(1,"div",3),e._UZ(2,"img",4),e.ALo(3,"cruiseLineLogo"),e.qZA(),e.TgZ(4,"div",5)(5,"div")(6,"span"),e._uU(7),e.qZA(),e._uU(8," \u2022 "),e.TgZ(9,"span"),e.SDv(10,6),e.qZA(),e._uU(11,": "),e.TgZ(12,"span"),e._uU(13),e.ALo(14,"date"),e.qZA()(),e.TgZ(15,"div"),e._uU(16," LOC: "),e.TgZ(17,"strong"),e._uU(18),e.qZA(),e.YNc(19,O,4,2,"span",0),e.qZA()(),e.TgZ(20,"div",7)(21,"div"),e._uU(22),e.TgZ(23,"span"),e._uU(24),e.ALo(25,"date"),e.TgZ(26,"span"),e.SDv(27,8),e.qZA()()(),e.YNc(28,N,3,2,"div",0),e.qZA(),e.TgZ(29,"div",9)(30,"div"),e.SDv(31,10),e.qZA(),e.TgZ(32,"strong"),e._uU(33),e.qZA()(),e.TgZ(34,"div",11)(35,"div"),e.SDv(36,12),e.qZA(),e.TgZ(37,"strong"),e._uU(38),e.ALo(39,"kzcurrency"),e.qZA()()()),2&U){const G=b.$implicit,w=e.oxw(2);e.Q6J("href",w.onRetrieve(G),e.LSH),e.xp6(2),e.Q6J("src",e.lcZ(3,15,G.cruiseLineCode),e.LSH),e.xp6(4),e.Gre("booking-card__status booking-card__status--",G.bookingStatus.toLowerCase(),""),e.xp6(1),e.Oqu(G.bookingStatus),e.xp6(6),e.Oqu(e.xi3(14,17,G.bookingExpirationDate,"dd MMM yyyy")),e.xp6(5),e.Oqu(G.locator),e.xp6(1),e.Q6J("ngIf",G.externalId),e.xp6(3),e.hij("",G.shipName," \u2022 "),e.xp6(2),e.AsE(" ",e.xi3(25,20,G.boardingDate,"dd MMM yyyy")," \u2022 ",G.nights," "),e.xp6(4),e.Q6J("ngIf",G.boardingPort&&G.landingPort),e.xp6(5),e.Oqu(G.name),e.xp6(5),e.hij(" ",e.xi3(39,23,G.totalAmount,w.currency)," ")}}function y(U,b){if(1&U&&(e.TgZ(0,"div"),e.YNc(1,E,40,26,"a",1),e.qZA()),2&U){const G=e.oxw();e.xp6(1),e.Q6J("ngForOf",G.bookings.items)}}let C=(()=>{class U{constructor(G){this.tourService=G}onRetrieve(G){return`/retrieve/${G.fileId}`}}return U.\u0275fac=function(G){return new(G||U)(e.Y36(s.M))},U.\u0275cmp=e.Xpm({type:U,selectors:[["app-latest-bookings"]],inputs:{bookings:"bookings",currency:"currency"},decls:1,vars:1,consts:function(){let b,G,w,ee;return b="Validade",G="noites",w="Cliente",ee="Total",[[4,"ngIf"],["class","booking-card card","role","button",3,"href",4,"ngFor","ngForOf"],["role","button",1,"booking-card","card",3,"href"],[1,"booking-card__image"],["alt","",3,"src"],[1,"booking-card__info",2,"flex","3"],b,[1,"booking-card__info",2,"flex","5"],G,[1,"booking-card__info",2,"flex","2"],w,[1,"booking-card__info"],ee,[1,"icon-arrow-up-right"],[1,"icon-arrow-down-left"]]},template:function(G,w){1&G&&e.YNc(0,y,2,1,"div",0),2&G&&e.Q6J("ngIf",w.currency&&w.bookings)},dependencies:[K.sg,K.O5,K.uU,F.S,Z.L]}),U})()},20281:(Xe,me,h)=>{"use strict";h.d(me,{n:()=>C});var e=h(33340),s=h(94650),K=h(27722),F=h(90263),Z=h(36895),O=h(43740);function H(U,b){1&U&&(s.TgZ(0,"span",10),s.SDv(1,11),s.qZA())}function z(U,b){if(1&U&&(s.TgZ(0,"div",12),s._uU(1),s.qZA()),2&U){const G=s.oxw().$implicit;s.xp6(1),s.Oqu(G.loyaltyName)}}function N(U,b){1&U&&(s.TgZ(0,"span",10),s._uU(1,"ganham"),s.qZA())}function E(U,b){if(1&U&&(s.TgZ(0,"div",5),s.YNc(1,H,2,0,"span",6),s.YNc(2,z,2,1,"div",7),s.YNc(3,N,2,0,"span",6),s.TgZ(4,"span",8),s._uU(5),s.ALo(6,"number"),s.qZA(),s.TgZ(7,"span",9),s._uU(8),s.ALo(9,"lowercase"),s.qZA()()),2&U){const G=b.$implicit,w=b.index,ee=s.oxw(2);s.xp6(1),s.Q6J("ngIf",0===w),s.xp6(1),s.Q6J("ngIf",0!==w),s.xp6(1),s.Q6J("ngIf",0!==w),s.xp6(2),s.hij("\xa0",s.xi3(6,5,ee.totalPrice*G.conversionRate,"0.0-0"),""),s.xp6(3),s.hij("\xa0",s.lcZ(9,8,G.currencyDisplay),"")}}function y(U,b){if(1&U&&(s.TgZ(0,"div")(1,"div",2),s.YNc(2,E,10,10,"div",3),s.qZA(),s._UZ(3,"i",4),s.qZA()),2&U){const G=s.oxw();s.Gre("accrual-info ",G.className+"-accrual-info",""),s.xp6(2),s.Q6J("ngForOf",G.accrual)}}let C=(()=>{class U{constructor(G,w){this.startupConfig=G,this.auth=w,this.totalPrice=0,this.accrual=[],this.clientCode=this.startupConfig.config?.clientCode?.toLocaleUpperCase()||"",this.clientSubCode=this.startupConfig.config?.clientSubCode?.toLocaleUpperCase()||"",this.className=this.clientSubCode?`${this.clientCode}_${this.clientSubCode}`:`${this.clientCode}`}ngOnInit(){this.loyalty&&this.startupConfig.config&&(this.accrual=(0,e.o)(this.loyalty,this.startupConfig.config,this.auth.user))}}return U.\u0275fac=function(G){return new(G||U)(s.Y36(K.q),s.Y36(F.e))},U.\u0275cmp=s.Xpm({type:U,selectors:[["app-default-accrual-info"]],inputs:{loyalty:"loyalty",totalPrice:"totalPrice"},decls:2,vars:1,consts:function(){let b;return b="Ganhe",[[1,"price-summary__loyalty"],[3,"class",4,"ngIf"],[1,"accrual-info__wrapper"],["class","accrual-info__content",4,"ngFor","ngForOf"],["triggers","mouseenter:mouseleave","ngbPopover","Para o c\xe1lculo \xe9 considerado apenas o valor pago pela reserva, excluindo todas as taxas e opcionais selecionados.",1,"accrual-info__icon","icon-info","ml-2","d-none"],[1,"accrual-info__content"],["class","accrual-info__win",4,"ngIf"],["class","accrual-info__description",4,"ngIf"],[1,"accrual-info__price"],[1,"accrual-info__display"],[1,"accrual-info__win"],b,[1,"accrual-info__description"]]},template:function(G,w){1&G&&(s.TgZ(0,"div",0),s.YNc(1,y,4,4,"div",1),s.qZA()),2&G&&(s.xp6(1),s.Q6J("ngIf",w.accrual.length>0))},dependencies:[Z.sg,Z.O5,O.o8,Z.i8,Z.JJ],encapsulation:2}),U})()},27297:(Xe,me,h)=>{"use strict";h.d(me,{x:()=>re});var e=h(33340),s=h(94650),K=h(27722),F=h(90263),Z=h(36895),O=h(20281),H=h(12931),z=h(19116),N=h(43740);function E(Ee,Ve){1&Ee&&(s.TgZ(0,"strong",13),s._uU(1,"Pagar e juntar milhas"),s.qZA())}function y(Ee,Ve){if(1&Ee&&(s.TgZ(0,"div")(1,"strong",14),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.TgZ(4,"span",15),s._uU(5),s.qZA()()),2&Ee){const Le=s.oxw(2);s.xp6(2),s.Oqu(s.gM2(3,2,null==Le.fare?null:Le.fare.price,null==Le.currencyInfo?null:Le.currencyInfo.code,null==Le.currencyInfo?null:Le.currencyInfo.display,"1.2-2")),s.xp6(3),s.Oqu(Le.pricePaxMessage)}}function C(Ee,Ve){1&Ee&&(s.TgZ(0,"span",21),s._uU(1,"Junte"),s.qZA())}function U(Ee,Ve){if(1&Ee&&(s.TgZ(0,"div",22),s._uU(1),s.qZA()),2&Ee){const Le=s.oxw().$implicit;s.xp6(1),s.Oqu(Le.loyaltyName)}}function b(Ee,Ve){1&Ee&&(s.TgZ(0,"span",21),s._uU(1,"Junte"),s.qZA())}function G(Ee,Ve){if(1&Ee&&(s.TgZ(0,"div",16),s.YNc(1,C,2,0,"span",17),s.YNc(2,U,2,1,"div",18),s.YNc(3,b,2,0,"span",17),s.TgZ(4,"span",19),s._uU(5),s.ALo(6,"number"),s.qZA(),s.TgZ(7,"span",20),s._uU(8),s.ALo(9,"lowercase"),s.qZA()()),2&Ee){const Le=Ve.$implicit,Dt=Ve.index,Tt=s.oxw(2);s.xp6(1),s.Q6J("ngIf",0===Dt),s.xp6(1),s.Q6J("ngIf",0!==Dt),s.xp6(1),s.Q6J("ngIf",0!==Dt),s.xp6(2),s.hij("\xa0",s.xi3(6,5,Tt.cabinAmountWithNCF*Le.conversionRate,"0.0-0"),""),s.xp6(3),s.hij("\xa0",s.lcZ(9,8,Le.currencyDisplay),"")}}function w(Ee,Ve){1&Ee&&(s.TgZ(0,"div",9)(1,"div",5)(2,"div",23),s._UZ(3,"img",24),s.TgZ(4,"div",25)(5,"span"),s._uU(6,"Pague tamb\xe9m com milhas ou"),s.qZA(),s.TgZ(7,"strong"),s._uU(8,"Smiles & Money"),s.qZA()()()()())}function ee(Ee,Ve){if(1&Ee&&(s.TgZ(0,"tr")(1,"td",30),s._uU(2,"Use suas milhas"),s.qZA(),s.TgZ(3,"td"),s._uU(4),s.ALo(5,"number"),s.qZA(),s.TgZ(6,"td"),s._uU(7,"-"),s.qZA(),s.TgZ(8,"td"),s._uU(9),s.ALo(10,"currency"),s.qZA(),s.TgZ(11,"td"),s._uU(12),s.ALo(13,"currency"),s.qZA()()),2&Ee){const Le=s.oxw(3);s.xp6(4),s.Oqu(s.xi3(5,3,Le.useMiles.priceInMiles/Le.priceBy,"0.0-0")),s.xp6(5),s.Oqu(s.gM2(10,6,(null==Le.smilesCruisePrice?null:Le.smilesCruisePrice.taxesSmiles)/Le.priceBy,null==Le.currencyInfo?null:Le.currencyInfo.code,null==Le.currencyInfo?null:Le.currencyInfo.display,"1.2-2")),s.xp6(3),s.Oqu(s.gM2(13,11,(null==Le.smilesCruisePrice?null:Le.smilesCruisePrice.taxesSmiles)/Le.priceBy,null==Le.currencyInfo?null:Le.currencyInfo.code,null==Le.currencyInfo?null:Le.currencyInfo.display,"1.2-2"))}}function oe(Ee,Ve){1&Ee&&(s.TgZ(0,"td",32),s._uU(1,"Smiles & Money"),s.qZA())}function _e(Ee,Ve){if(1&Ee&&(s.TgZ(0,"tr"),s.YNc(1,oe,2,0,"td",31),s.TgZ(2,"td"),s._uU(3),s.ALo(4,"number"),s.qZA(),s.TgZ(5,"td"),s._uU(6),s.ALo(7,"currency"),s.qZA(),s.TgZ(8,"td"),s._uU(9),s.ALo(10,"currency"),s.qZA(),s.TgZ(11,"td"),s._uU(12),s.ALo(13,"currency"),s.qZA()()),2&Ee){const Le=s.oxw(),Dt=Le.index,Tt=Le.$implicit,pt=s.oxw(3);s.xp6(1),s.Q6J("ngIf",0===Dt),s.xp6(2),s.Oqu(s.xi3(4,5,(null==pt.smilesCruisePrice.smilesAndMoneyOffers[Tt]?null:pt.smilesCruisePrice.smilesAndMoneyOffers[Tt].priceInMiles)/pt.priceBy,"0.0-0")),s.xp6(3),s.Oqu(s.gM2(7,8,(null==pt.smilesCruisePrice.smilesAndMoneyOffers[Tt]?null:pt.smilesCruisePrice.smilesAndMoneyOffers[Tt].priceInMoney)/pt.priceBy,null==pt.currencyInfo?null:pt.currencyInfo.code,null==pt.currencyInfo?null:pt.currencyInfo.display,"1.2-2")),s.xp6(3),s.Oqu(s.gM2(10,13,(null==pt.smilesCruisePrice?null:pt.smilesCruisePrice.taxesSmiles)/pt.priceBy,null==pt.currencyInfo?null:pt.currencyInfo.code,null==pt.currencyInfo?null:pt.currencyInfo.display,"1.2-2")),s.xp6(3),s.Oqu(s.gM2(13,18,((null==pt.smilesCruisePrice.smilesAndMoneyOffers[Tt]?null:pt.smilesCruisePrice.smilesAndMoneyOffers[Tt].priceInMoney)+(null==pt.smilesCruisePrice?null:pt.smilesCruisePrice.taxesSmiles))/pt.priceBy,null==pt.currencyInfo?null:pt.currencyInfo.code,null==pt.currencyInfo?null:pt.currencyInfo.display,"1.2-2"))}}function Ne(Ee,Ve){if(1&Ee&&(s.ynx(0),s.YNc(1,_e,14,23,"tr",6),s.BQk()),2&Ee){const Le=Ve.$implicit,Dt=s.oxw(3);s.xp6(1),s.Q6J("ngIf",Dt.smilesCruisePrice.smilesAndMoneyOffers[Le])}}function te(Ee,Ve){1&Ee&&(s.TgZ(0,"span"),s._uU(1,"Valores por pessoa"),s.qZA())}function de(Ee,Ve){1&Ee&&(s.TgZ(0,"span"),s._uU(1,"Valores por cabine"),s.qZA())}function J(Ee,Ve){if(1&Ee&&(s.TgZ(0,"div",26)(1,"table",27)(2,"thead")(3,"tr"),s._UZ(4,"th"),s.TgZ(5,"th"),s._uU(6,"Milhas"),s.qZA(),s.TgZ(7,"th"),s._uU(8,"Cabine"),s.qZA(),s.TgZ(9,"th"),s._uU(10,"Taxas"),s.qZA(),s.TgZ(11,"th"),s._uU(12,"Total (R$)"),s.qZA()()(),s.TgZ(13,"tbody"),s.YNc(14,ee,14,16,"tr",6),s.YNc(15,Ne,2,1,"ng-container",28),s.qZA()(),s.TgZ(16,"div",29),s.YNc(17,te,2,0,"span",6),s.YNc(18,de,2,0,"span",6),s.qZA()()),2&Ee){const Le=s.oxw(2);s.xp6(14),s.Q6J("ngIf",Le.useMiles),s.xp6(1),s.Q6J("ngForOf",Le.smilesMoneyOptions),s.xp6(2),s.Q6J("ngIf",1!==Le.priceBy),s.xp6(1),s.Q6J("ngIf",1===Le.priceBy)}}function Ie(Ee,Ve){1&Ee&&(s.TgZ(0,"div",33)(1,"div",34),s._UZ(2,"span")(3,"span")(4,"span")(5,"span"),s.qZA()())}const Ze=function(Ee){return{"SML-accrual-info--hover":Ee}};function ot(Ee,Ve){if(1&Ee&&(s.TgZ(0,"div",1)(1,"div",2)(2,"div",3),s.YNc(3,E,2,0,"strong",4),s.TgZ(4,"div",5),s.YNc(5,y,6,7,"div",6),s.YNc(6,G,10,10,"div",7),s.qZA()(),s.YNc(7,w,9,0,"div",8),s.TgZ(8,"div",9),s.YNc(9,J,19,4,"div",10),s.YNc(10,Ie,6,0,"div",11),s.qZA()(),s._UZ(11,"i",12),s.qZA()),2&Ee){const Le=s.oxw();s.Gre("accrual-info ",Le.className+"-accrual-info",""),s.Q6J("ngClass",s.VKq(10,Ze,Le.isPopoverContent)),s.xp6(3),s.Q6J("ngIf",Le.isPopoverContent),s.xp6(2),s.Q6J("ngIf",Le.isPopoverContent),s.xp6(1),s.Q6J("ngForOf",Le.accrual),s.xp6(1),s.Q6J("ngIf",!Le.isPopoverContent),s.xp6(2),s.Q6J("ngIf",Le.isPopoverContent&&Le.currencyInfo&&Le.smilesCruisePrice&&!Le.isLoading),s.xp6(1),s.Q6J("ngIf",Le.isLoading)}}let lt=(()=>{class Ee{constructor(Le,Dt,Tt){this.startupConfig=Le,this.auth=Dt,this.smilesService=Tt,this.totalPrice=0,this.cabinAmountWithNCF=0,this.isPopoverContent=!1,this.accrual=[],this.isLoading=!1,this.smilesMoneyOptions=["offerSmiles1","offerSmiles2","offerSmiles3","offerSmiles4","offerSmiles5","offerBaseClubeS&M4"],this.availabledOptions=[],this.isClubeSmilesOuDiamante=!1,this.priceBy=1,this.clientCode=this.startupConfig.config?.clientCode?.toLocaleUpperCase()||"",this.clientSubCode=this.startupConfig.config?.clientSubCode?.toLocaleUpperCase()||"",this.className=this.clientSubCode?`${this.clientCode}_${this.clientSubCode}`:`${this.clientCode}`,this.isClubeSmilesOuDiamante="true"===this.auth.user?.ClubeSmilesOuDiamante}ngOnInit(){this.loyalty&&this.startupConfig.config&&(this.accrual=(0,e.o)(this.loyalty,this.startupConfig.config,this.auth.user)),this.isPopoverContent&&this.getOptions(),this.filterOptions&&(this.priceBy=this.filterOptions.priceByCabin?1:this.filterOptions.roomConfiguration.selected.adts)}getOptions(){this.isLoading=!0;const Le=this.getSmilesRequestObj();Le&&this.smilesService.getRedemptionPrices(Le).subscribe({next:Dt=>{if(Dt?.cruiseList&&Dt?.cruiseList.length>0&&(this.smilesCruisePrice=Dt.cruiseList[0],this.smilesCruisePrice.smilesProductList.length>0)){const Tt=this.isClubeSmilesOuDiamante?"ClubeSmiles":"Smiles";this.useMiles=this.smilesCruisePrice.smilesProductList.find(pt=>pt.name===Tt)}this.isLoading=!1},error:Dt=>{this.isLoading=!1}})}getSmilesRequestObj(){if(this.totalPrice&&this.departure&&this.fare&&this.searchResult){const Le=this.cabinAmountWithNCF,Dt=this.totalPrice-this.cabinAmountWithNCF,Tt=this.searchResult.departure.name.split(", ")[0],pt=this.searchResult.departure.name.split(", ")[1],Be=this.searchResult.arrive.name.split(", ")[0],ft=this.searchResult.arrive.name.split(", ")[1],gt=(0,H.h6)(this.searchResult.sailingCode.split("_")[2]);return{cruiseList:[{cost:Le,taxes:Dt,channel:"WEB",destinationRegion:this.searchResult.itinerary.destination,destinationCity:this.searchResult.itinerary.name,departureCountry:pt,departureCity:Tt,arriveCountry:ft,arriveCity:Be,duration:this.departure.nights||2,cruiseCompany:this.departure.cruiseLine?.name,ship:this.departure.ship?.name,capacity:2,date:gt,cabinType:this.fare.type}]}}}}return Ee.\u0275fac=function(Le){return new(Le||Ee)(s.Y36(K.q),s.Y36(F.e),s.Y36(z.F))},Ee.\u0275cmp=s.Xpm({type:Ee,selectors:[["app-sml-accrual-info"]],inputs:{departure:"departure",filterOptions:"filterOptions",fare:"fare",currencyInfo:"currencyInfo",loyalty:"loyalty",totalPrice:"totalPrice",cabinAmountWithNCF:"cabinAmountWithNCF",searchResult:"searchResult",isPopoverContent:"isPopoverContent",pricePaxMessage:"pricePaxMessage"},decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],[1,"accrual-info__wrapper"],[1,"box-wrapper"],["class","title-text-extra",4,"ngIf"],[1,"box-content"],[4,"ngIf"],["class","accrual-info__content",4,"ngFor","ngForOf"],["class","box-extra","style","min-width: 180px;",4,"ngIf"],[1,"box-extra",2,"min-width","180px"],["class","box-table",4,"ngIf"],["class","placeholder mt-3",4,"ngIf"],["triggers","mouseenter:mouseleave","ngbPopover","Para o c\xe1lculo \xe9 considerado apenas o valor pago pela reserva, excluindo todas as taxas e opcionais selecionados.",1,"accrual-info__icon","icon-info","ml-2","d-none"],[1,"title-text-extra"],[1,"strong-money-text-extra"],[2,"font-size","12px","color","#ccc","display","block"],[1,"accrual-info__content"],["class","accrual-info__win",4,"ngIf"],["class","accrual-info__description",4,"ngIf"],[1,"accrual-info__price"],[1,"accrual-info__display"],[1,"accrual-info__win"],[1,"accrual-info__description"],[1,"extra-info"],["src","https://media.krooze.com.br/icon_money_info_9a858bc636/icon-money-info.png_icon_money_info_9a858bc636.png","alt",""],[1,"entra-info-text"],[1,"box-table"],[1,"table-accrual",2,"table-layout","fixed"],[4,"ngFor","ngForOf"],[1,"card","card-info-accrual"],[1,"t-title-table"],["rowspan","999","class","t-title-table",4,"ngIf"],["rowspan","999",1,"t-title-table"],[1,"placeholder","mt-3"],[1,"placeholder__content"]],template:function(Le,Dt){1&Le&&s.YNc(0,ot,12,12,"div",0),2&Le&&s.Q6J("ngIf",Dt.accrual.length>0)},dependencies:[Z.mk,Z.sg,Z.O5,N.o8,Z.i8,Z.JJ,Z.H9],encapsulation:2}),Ee})();function At(Ee,Ve){if(1&Ee&&s._UZ(0,"app-default-accrual-info",3),2&Ee){const Le=s.oxw(2);s.Q6J("loyalty",Le.loyalty)("totalPrice",Le.totalPrice)}}function qe(Ee,Ve){if(1&Ee&&s._UZ(0,"app-sml-accrual-info",4),2&Ee){const Le=s.oxw(2);s.Q6J("loyalty",Le.loyalty)("totalPrice",Le.totalPrice)("cabinAmountWithNCF",Le.cabinAmountWithNCF)("isPopoverContent",Le.isPopoverContent)("searchResult",Le.searchResult)("departure",Le.departure)("filterOptions",Le.filterOptions)("fare",Le.fare)("currencyInfo",Le.currencyInfo)("pricePaxMessage",Le.pricePaxMessage)}}function wt(Ee,Ve){if(1&Ee&&(s.ynx(0),s.YNc(1,At,1,2,"app-default-accrual-info",1),s.YNc(2,qe,1,10,"app-sml-accrual-info",2),s.BQk()),2&Ee){const Le=s.oxw();s.xp6(1),s.Q6J("ngIf","RDC"!==Le.clientCode&&"SML"!==Le.clientCode),s.xp6(1),s.Q6J("ngIf","SML"===Le.clientCode)}}let re=(()=>{class Ee{constructor(Le,Dt){this.startupConfig=Le,this.auth=Dt,this.totalPrice=0,this.cabinAmountWithNCF=0,this.isPopoverContent=!1,this.accrual=[],this.clientCode=this.startupConfig.config?.clientCode?.toLocaleUpperCase()||"",this.clientSubCode=this.startupConfig.config?.clientSubCode?.toLocaleUpperCase()||"",this.className=this.clientSubCode?`${this.clientCode}_${this.clientSubCode}`:`${this.clientCode}`}ngOnInit(){this.loyalty&&this.startupConfig.config&&(this.accrual=(0,e.o)(this.loyalty,this.startupConfig.config,this.auth.user))}}return Ee.\u0275fac=function(Le){return new(Le||Ee)(s.Y36(K.q),s.Y36(F.e))},Ee.\u0275cmp=s.Xpm({type:Ee,selectors:[["app-loyalty-accrual-info"]],inputs:{loyalty:"loyalty",departure:"departure",filterOptions:"filterOptions",fare:"fare",currencyInfo:"currencyInfo",totalPrice:"totalPrice",cabinAmountWithNCF:"cabinAmountWithNCF",isPopoverContent:"isPopoverContent",searchResult:"searchResult",pricePaxMessage:"pricePaxMessage"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"loyalty","totalPrice",4,"ngIf"],[3,"loyalty","totalPrice","cabinAmountWithNCF","isPopoverContent","searchResult","departure","filterOptions","fare","currencyInfo","pricePaxMessage",4,"ngIf"],[3,"loyalty","totalPrice"],[3,"loyalty","totalPrice","cabinAmountWithNCF","isPopoverContent","searchResult","departure","filterOptions","fare","currencyInfo","pricePaxMessage"]],template:function(Le,Dt){1&Le&&s.YNc(0,wt,3,2,"ng-container",0),2&Le&&s.Q6J("ngIf",Dt.loyalty&&Dt.totalPrice)},dependencies:[Z.O5,O.n,lt],encapsulation:2}),Ee})()},33340:(Xe,me,h)=>{"use strict";function e(F,Z,O){return K(F.accrual,Z,O)}function s(F,Z,O){return K(F.accrual,Z,O)}function K(F,Z,O){let H=[];const z=F.sort((N,E)=>N.order-E.order);if(z&&z.length>0)if(Z.clientSubCode){const N=z.find(E=>E.loyaltyCode?.toLocaleUpperCase()===`${Z.clientCode}_${Z.clientSubCode}`);N.push(N||z[0])}else H="sml"===Z?.clientCode.toLocaleLowerCase()&&"true"===O?.ClubeSmilesOuDiamante&&z.length>1?[z[1]]:z;return H}h.d(me,{U:()=>s,o:()=>e})},19116:(Xe,me,h)=>{"use strict";h.d(me,{F:()=>z});var e=h(29509),s=h(591),K=h(36895),F=h(94650),Z=h(80529),O=h(27722),H=h(90263);let z=(()=>{class N{constructor(y,C,U,b){this.http=y,this.configStartup=C,this.auth=U,this.document=b,this.SML_STATE={selectedOption:void 0,smilesCruisePrice:void 0,priceInMoney:0,priceInMiles:0,taxes:0,otherValues:0,totalToBePaidInMoney:0,taxesServicesAndOthersValue:0},this.currentSMLSubject=new s.X(this.SML_STATE),this.currentSML$=this.currentSMLSubject.asObservable(),this.head=this.document.getElementsByTagName("head")[0],this.body=this.document.getElementsByTagName("body")[0],this.baseUrl=`${this.configStartup?.config?.urlSearchApi}/${this.configStartup?.config?.culture}/Search`}changeSelectedOption(y,C){const U=this.currentSMLSubject.value,b=U.taxes+U.otherValues;let G=0,w=0,ee=0;y?.totalValue&&(C?(G=C?.priceInMoney||0,w=C.priceInMiles||0):G=y?.totalValue),ee=C?G+b:G;const oe={...this.currentSMLSubject.value,selectedOption:C,priceInMoney:G,priceInMiles:w,totalToBePaidInMoney:ee,taxesServicesAndOthersValue:b};this.currentSMLSubject.next(oe)}changeTaxes(y=0,C=0){const U={...this.currentSMLSubject.value,taxes:y,otherValues:C};this.currentSMLSubject.next(U)}getRedemptionPrices(y){return this.http.put(this.baseUrl+"/Redemption/Prices",y,e.c)}getState(){return this.currentSMLSubject.value}performSilentAuth(){const y=this;window.auth0.getTokenSilently({audience:"https://smiles.api",scope:"create:redemption"}).then(C=>{y.auth.updateUserToken(C)}).catch(C=>{console.error("Error obtaining token silently:",C)})}}return N.\u0275fac=function(y){return new(y||N)(F.LFG(Z.eN),F.LFG(O.q),F.LFG(H.e),F.LFG(K.K0))},N.\u0275prov=F.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},62174:(Xe,me,h)=>{"use strict";h.d(me,{F:()=>Ne});var e=h(24006),s=h(57484),K=h(53400),F=h(94650),Z=h(64298),O=h(90263),H=h(27722),z=h(27278),N=h(87136),E=h(5819),y=h(36895),C=h(43740);function U(te,de){if(1&te){const J=F.EpF();F.TgZ(0,"button",17),F.NdJ("click",function(){const ot=F.CHM(J).$implicit,lt=F.oxw(3);return F.KtG(lt.activeCruiseLine=ot)}),F._uU(1),F.qZA()}if(2&te){const J=de.$implicit;F.xp6(1),F.Oqu(J.name)}}function b(te,de){if(1&te&&(F.TgZ(0,"div",13)(1,"button",14),F._uU(2),F.qZA(),F.TgZ(3,"div",15),F.YNc(4,U,2,1,"button",16),F.qZA()()),2&te){const J=F.oxw(2);F.xp6(2),F.Oqu(J.activeCruiseLine.name),F.xp6(2),F.Q6J("ngForOf",J.cruiseLines)}}function G(te,de){if(1&te&&(F.TgZ(0,"input",18),F.DtL(1,19),F.qZA()),2&te){const J=F.oxw(2);F.pQV(null==J.activeCruiseLine?null:J.activeCruiseLine.shortName),F.QtT(1)}}function w(te,de){if(1&te&&F._UZ(0,"input",20),2&te){const J=F.oxw(2);F.Q6J("placeholder",null==J.activeCruiseLine?null:J.activeCruiseLine.name)}}function ee(te,de){1&te&&(F.TgZ(0,"span"),F.SDv(1,21),F.qZA())}function oe(te,de){1&te&&(F.TgZ(0,"span"),F.SDv(1,22),F.qZA())}function _e(te,de){if(1&te){const J=F.EpF();F.TgZ(0,"div",3)(1,"form",4),F.NdJ("ngSubmit",function(){F.CHM(J);const Ze=F.oxw();return F.KtG(Ze.findFile())}),F.TgZ(2,"div",5),F.YNc(3,b,5,2,"div",6),F.qZA(),F.TgZ(4,"div",7)(5,"div",8),F.YNc(6,G,2,1,"input",9),F.YNc(7,w,1,1,"input",9),F.qZA()(),F.TgZ(8,"div",10)(9,"button",11),F.YNc(10,ee,2,0,"span",12),F.YNc(11,oe,2,0,"span",12),F.qZA()()()()}if(2&te){const J=F.oxw();F.xp6(1),F.Q6J("formGroup",J.form),F.xp6(2),F.Q6J("ngIf",J.cruiseLines&&J.cruiseLines.length>1),F.xp6(3),F.Q6J("ngIf",null==J.activeCruiseLine?null:J.activeCruiseLine.id),F.xp6(1),F.Q6J("ngIf",!(null!=J.activeCruiseLine&&J.activeCruiseLine.id)),F.xp6(2),F.Q6J("disabled",J.isLoading),F.xp6(1),F.Q6J("ngIf",!J.isLoading),F.xp6(1),F.Q6J("ngIf",J.isLoading)}}let Ne=(()=>{class te{constructor(J,Ie,Ze,ot,lt,At,qe){this.reportService=J,this.authService=Ie,this.fb=Ze,this.startupService=ot,this.modalService=lt,this.retrieveService=At,this.permissionsService=qe,this.cruiseLines=[{code:null,id:null,name:"Pedido"+` ${this.startupService?.config?.clientName}`,shortName:"Pedido"}],this.form=this.fb.group({locator:[null,[e.kI.required]]})}ngOnInit(){this.listShips()}findFile(){const J=this.activeCruiseLine.code,Ie=this.form.value.locator?.trim();this.form.valid&&(this.isLoading=!0,J?this.reportService.findFile(Ie,J).subscribe(ot=>{const lt=ot.fileId;lt&&0!==lt?window.open(`/retrieve/${lt}`):this.modalService.openImportLocALert(At=>{At&&this.selectUserBeforeImport(Ie,J)},Ie),this.isLoading=!1},ot=>{this.isLoading=!1,s.T.throwError(ot)}):this.reportService.findFile(Ie).subscribe(ot=>{const lt=ot.fileId;if(lt&&0!==lt)window.open(`/retrieve/${lt}`);else{const At={type:void 0,title:"Pedido n\xE3o encontrado",description:"Por favor verifique o c\xF3digo e tente novamente",primaryBtn:!0,primaryBtnDescription:"Ok",secundaryBtn:!1,showCloseBtn:!1,ngModalConfig:{size:"sm",centered:!0,backdrop:"static"}};this.modalService.openModalAlert(At)}this.isLoading=!1},ot=>{this.isLoading=!1,s.T.throwError(ot)}))}selectUserBeforeImport(J,Ie){if(!this.permissionsService.hasPermission("FRONT_ENABLE_CHANGE_USER"))return void this.getImportLoc(J,Ie);const ot=this.modalService.openModal(K.D,{centered:!0,size:"sm"});ot.componentInstance.changeSellerEvent.subscribe(lt=>{let At,qe;"string"==typeof lt?qe=lt:At={userId:lt.id,companyCode:lt.companyCode,companyId:lt.companyId},this.getImportLoc(J,Ie,At,qe),ot.close()})}getImportLoc(J,Ie,Ze,ot){this.retrieveService.getImportLoc(J,Ie,Ze,ot).subscribe({next:lt=>{window.open(`/retrieve/${lt.data.fileId}`)},error:lt=>{this.isLoading=!1,s.T.throwError(lt)}})}listShips(){this.reportService.listCruiseLines().subscribe(J=>{J&&(this.cruiseLines="DIS"===this.startupService?.config?.clientCode?[...J]:[...this.cruiseLines,...J],this.activeCruiseLine=this.cruiseLines[0])})}}return te.\u0275fac=function(J){return new(J||te)(F.Y36(Z.F),F.Y36(O.e),F.Y36(e.QS),F.Y36(H.q),F.Y36(z.Z),F.Y36(N.d),F.Y36(E.q))},te.\u0275cmp=F.Xpm({type:te,selectors:[["app-open-loc"]],decls:4,vars:1,consts:function(){let de,J,Ie,Ze;return de="Buscar reserva",J="Digite o localizador da " + "\ufffd0\ufffd" + "",Ie="Buscar",Ze="Buscando...",[[1,"title-import-loc"],de,["class","card",4,"ngIf"],[1,"card"],["autocomplete","off",1,"row",3,"formGroup","ngSubmit"],[1,"col-12"],["ngbDropdown","","class","d-inline-block w-100",4,"ngIf"],[1,"col-lg-8"],[1,"form-group","m-0"],["type","text","class","form-control","formControlName","locator","id","locator",3,"placeholder",4,"ngIf"],[1,"col-lg-4"],["type","submit",1,"btn","btn-outline-primary","w-100",3,"disabled"],[4,"ngIf"],["ngbDropdown","",1,"d-inline-block","w-100"],["type","button","id","dropdownBasic1","ngbDropdownToggle","",1,"mb-2","drop-special"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","text","formControlName","locator","id","locator",1,"form-control",6,"placeholder"],["placeholder",J],["type","text","formControlName","locator","id","locator",1,"form-control",3,"placeholder"],Ie,Ze]},template:function(J,Ie){1&J&&(F.TgZ(0,"h2",0)(1,"span"),F.SDv(2,1),F.qZA()(),F.YNc(3,_e,12,7,"div",2)),2&J&&(F.xp6(3),F.Q6J("ngIf",null==Ie.activeCruiseLine?null:Ie.activeCruiseLine.name))},dependencies:[y.sg,y.O5,e._Y,e.Fj,e.JJ,e.JL,e.sg,e.u,C.jt,C.iD,C.Vi,C.TH],encapsulation:2}),te})()},37028:(Xe,me,h)=>{"use strict";h.d(me,{v:()=>O});var e=h(36895),s=h(24006),K=h(43740),F=h(65462),Z=h(94650);let O=(()=>{class H{}return H.\u0275fac=function(N){return new(N||H)},H.\u0275mod=Z.oAB({type:H}),H.\u0275inj=Z.cJS({imports:[e.ez,s.u5,s.UX,K.XC,F.K]}),H})()},28896:(Xe,me,h)=>{"use strict";h.d(me,{V:()=>oe});var e=h(94650),s=h(87549),K=h(7913);class F{constructor(){this.LabelType="ICON",this.minAdultsPerRoom=1,this.maxAdultsPerRoom=4,this.minChildsPerRoom=0,this.maxChildsPerRoom=0,this.maxPaxPerRoom=void 0,this.maxPaxForSelection=4,this.maxRoomsForSelection=1,this.childsAgesValues=[{PaxAge:0,AgeLabel:"0 "+"anos",PaxType:"CHD"},{PaxAge:1,AgeLabel:"1 "+"ano",PaxType:"CHD"},{PaxAge:2,AgeLabel:"2 "+"anos",PaxType:"CHD"},{PaxAge:3,AgeLabel:"3 "+"anos",PaxType:"CHD"},{PaxAge:4,AgeLabel:"4 "+"anos",PaxType:"CHD"},{PaxAge:5,AgeLabel:"5 "+"anos",PaxType:"CHD"},{PaxAge:6,AgeLabel:"6 "+"anos",PaxType:"CHD"},{PaxAge:7,AgeLabel:"7 "+"anos",PaxType:"CHD"},{PaxAge:8,AgeLabel:"8 "+"anos",PaxType:"CHD"},{PaxAge:9,AgeLabel:"9 "+"anos",PaxType:"CHD"},{PaxAge:10,AgeLabel:"10 "+"anos",PaxType:"CHD"},{PaxAge:11,AgeLabel:"11 "+"anos",PaxType:"CHD"},{PaxAge:12,AgeLabel:"12 "+"anos",PaxType:"CHD"},{PaxAge:13,AgeLabel:"13 "+"anos",PaxType:"CHD"},{PaxAge:14,AgeLabel:"14 "+"anos",PaxType:"CHD"},{PaxAge:15,AgeLabel:"15 "+"anos",PaxType:"CHD"},{PaxAge:16,AgeLabel:"16 "+"anos",PaxType:"CHD"},{PaxAge:17,AgeLabel:"17 "+"anos",PaxType:"CHD"}],this.TextConfig={Label_Room:"Cabine",Plural_Room:"Cabines",Label_Passenger:"Passageiro",Plural_Passenger:"Passageiros",Label_Adult:"Passageiro",Plural_Adult:"Passageiros",Subtitle_Adult:void 0,Label_Child:"Crian\xE7a",Plural_Child:"Crian\xE7as",Subtitle_Child:"At\xE9"+" 17 "+"anos",Subtitle_Child_Age:"idade no dia do embarque",Label_AddRoom:"Adicionar cabine",Label_RemoveRoom:"Remover",Label_Close:"Confirmar"},this.InitialDisplay=new K.V({Rooms:[new s.c({PaxAges:[{PaxType:"ADT"},{PaxType:"ADT"}]})]}),this.RoomAddedDisplay=new s.c({PaxAges:[{PaxType:"ADT"}]})}}var Z=h(36895);let O=(()=>{class _e{constructor(te,de){this.el=te,this.renderer=de,this.rootClassName="quantity-picker",this.appQuantityPicker=0,this.nkzQuantityPickerChange=new e.vpe(!0),this.max=99,this.min=0,this.maxPaxPerRoom=!1,this.incrementQuantity=this.incrementQuantity.bind(this),this.decrementQuantity=this.decrementQuantity.bind(this),this.constructElements=this.constructElements.bind(this),this.constructElementsButtons=this.constructElementsButtons.bind(this),this.constructElements(),this.constructElementsButtons()}constructElements(){this.renderer.addClass(this.el.nativeElement,`${this.rootClassName}__input`),this.renderer.setAttribute(this.el.nativeElement,"readonly","readonly")}constructElementsButtons(){this.btnMinus=this.constructSingleButton("minus"),this.renderer.listen(this.btnMinus,"click",this.decrementQuantity),this.renderer.insertBefore(this.el.nativeElement.parentNode,this.btnMinus,this.el.nativeElement),this.btnPlus=this.constructSingleButton("plus"),this.renderer.listen(this.btnPlus,"click",this.incrementQuantity),this.renderer.appendChild(this.el.nativeElement.parentNode,this.btnPlus)}constructSingleButton(te){const de=this.renderer.createElement("button");this.renderer.setProperty(de,"type","button"),this.renderer.addClass(de,`${this.rootClassName}__button`),this.renderer.addClass(de,"vbt-num"),this.renderer.addClass(de,te);let J=null;return J=this.renderer.createText("minus"===te?"-":"+"),this.renderer.appendChild(de,J),de}ngOnInit(){this.min=typeof this.min>"u"||null===this.min?0:this.min,this.max=typeof this.max>"u"||null===this.max?99:this.max,(this.appQuantityPicker<this.min||this.appQuantityPicker>this.max)&&(this.appQuantityPicker<this.min&&(this.appQuantityPicker=this.min),this.appQuantityPicker>this.max&&(this.appQuantityPicker=this.max),this.emitQuantityChange(!1)),this.handleDisabledButtons(),this.renderer.setAttribute(this.el.nativeElement,"value",this.appQuantityPicker.toString())}ngOnChanges(te){if(te.maxPaxPerRoom&&this.handleDisabledButtons(),te.appQuantityPicker&&!te.appQuantityPicker.firstChange){const de=parseInt(te.appQuantityPicker.currentValue,10);this.appQuantityPicker=de,this.min&&de<this.min&&(this.appQuantityPicker=this.min),this.max&&de>this.max&&(this.appQuantityPicker=this.max),this.emitQuantityChange(),this.handleDisabledButtons()}}handleDisabledButtons(){this.renderer.removeClass(this.btnMinus,"disabled"),this.renderer.removeClass(this.btnPlus,"disabled"),(+this.appQuantityPicker==+this.max||this.maxPaxPerRoom)&&this.renderer.addClass(this.btnPlus,"disabled"),+this.appQuantityPicker==+this.min&&this.renderer.addClass(this.btnMinus,"disabled")}incrementQuantity(){const te=+this.appQuantityPicker;this.appQuantityPicker=+this.appQuantityPicker,this.appQuantityPicker=this.appQuantityPicker>this.max-1?this.max:this.appQuantityPicker+1,te!==this.appQuantityPicker&&(this.emitQuantityChange(),this.handleDisabledButtons())}decrementQuantity(){const te=+this.appQuantityPicker;this.appQuantityPicker=+this.appQuantityPicker,this.appQuantityPicker>this.min&&(this.appQuantityPicker=this.appQuantityPicker-1),te!==this.appQuantityPicker&&(this.emitQuantityChange(),this.handleDisabledButtons())}emitQuantityChange(te=!0){if(this.onValueChange){const de=this.onValueChange(this.appQuantityPicker);de&&(this.appQuantityPicker=de)}te&&this.renderer.setAttribute(this.el.nativeElement,"value",this.appQuantityPicker.toString()),this.nkzQuantityPickerChange.emit(this.appQuantityPicker)}}return _e.\u0275fac=function(te){return new(te||_e)(e.Y36(e.SBq),e.Y36(e.Qsj))},_e.\u0275dir=e.lG2({type:_e,selectors:[["input","appQuantityPicker",""]],inputs:{appQuantityPicker:"appQuantityPicker",max:"max",min:"min",onValueChange:"onValueChange",maxPaxPerRoom:"maxPaxPerRoom"},outputs:{nkzQuantityPickerChange:"nkzQuantityPickerChange"},features:[e.TTD]}),_e})();const H=["appQuantityPicker",""],z=["*"];let N=(()=>{class _e{constructor(){}}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275cmp=e.Xpm({type:_e,selectors:[["","appQuantityPicker",""]],attrs:H,ngContentSelectors:z,decls:1,vars:0,template:function(te,de){1&te&&(e.F$t(),e.Hsn(0))},styles:[".quantity-picker{display:flex;justify-content:space-between;min-width:270px}.quantity-picker__input{color:#363636;font-size:1rem;line-height:2rem;text-align:center;margin:0 .25rem;max-width:45px;border:0;background-color:transparent;vertical-align:middle}.quantity-picker__input:-moz-read-only{pointer-events:none}.quantity-picker__input:read-only{pointer-events:none}.quantity-picker__button{background-color:transparent;border:1px solid #363636;width:2rem;height:2rem;line-height:1rem;font-size:1rem;padding:0;vertical-align:middle;cursor:pointer}.quantity-picker__button.disabled{border-color:#c7c7c7;color:#c7c7c7;pointer-events:none;cursor:default}\n"],encapsulation:2}),_e})();var E=h(24006);function y(_e,Ne){if(1&_e){const te=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(J){e.CHM(te);const Ie=e.oxw().index,Ze=e.oxw();return J.stopPropagation(),e.KtG(Ze.data.RemoveRoom(Ie))}),e._uU(1),e.qZA()}if(2&_e){const te=e.oxw(2);e.xp6(1),e.hij(" ",null==te.currentConfig?null:te.currentConfig.TextConfig.Label_RemoveRoom," ")}}function C(_e,Ne){if(1&_e){const te=e.EpF();e.TgZ(0,"div")(1,"div",12)(2,"label",7),e._uU(3),e.TgZ(4,"small"),e._uU(5),e.qZA()(),e.TgZ(6,"div",13)(7,"input",8),e.NdJ("nkzQuantityPickerChange",function(J){e.CHM(te);const Ie=e.oxw().$implicit;return e.KtG(Ie.totalChilds=J)}),e.qZA()()()()}if(2&_e){const te=e.oxw().$implicit,de=e.oxw();e.xp6(3),e.hij(" ",null==de.currentConfig.TextConfig?null:de.currentConfig.TextConfig.Plural_Child," "),e.xp6(2),e.Oqu(null==de.currentConfig.TextConfig?null:de.currentConfig.TextConfig.Subtitle_Child),e.xp6(2),e.Q6J("appQuantityPicker",te.totalChilds)("maxPaxPerRoom",de.currentConfig.maxPaxPerRoom===te.totalAdults+te.totalChilds)("min",de.currentConfig.minChildsPerRoom)("max",de.currentConfig.maxChildsPerRoom)}}function U(_e,Ne){if(1&_e&&(e.TgZ(0,"option",20),e._uU(1),e.qZA()),2&_e){const te=Ne.$implicit;e.Q6J("ngValue",te.PaxAge),e.xp6(1),e.hij(" ",te.AgeLabel," ")}}function b(_e,Ne){if(1&_e){const te=e.EpF();e.TgZ(0,"div",16)(1,"label",7),e._uU(2),e.TgZ(3,"small"),e._uU(4),e.qZA()(),e.TgZ(5,"div",17)(6,"select",18),e.NdJ("ngModelChange",function(J){const Ze=e.CHM(te).$implicit;return e.KtG(Ze.PaxAge=J)})("change",function(){const Ie=e.CHM(te).$implicit,Ze=e.oxw(3);return e.KtG(Ze.SetPaxType(Ie))}),e.YNc(7,U,2,2,"option",19),e.qZA()()()}if(2&_e){const te=Ne.$implicit,de=Ne.index,J=e.oxw(3);e.xp6(2),e.AsE(" ",null==J.currentConfig?null:J.currentConfig.TextConfig.Label_Child," ",de+1," "),e.xp6(2),e.Oqu(null==J.currentConfig?null:J.currentConfig.TextConfig.Subtitle_Child_Age),e.xp6(2),e.Q6J("ngModel",te.PaxAge),e.xp6(1),e.Q6J("ngForOf",J.currentConfig.childsAgesValues)}}function G(_e,Ne){if(1&_e&&(e.TgZ(0,"div",14),e.YNc(1,b,8,5,"div",15),e.qZA()),2&_e){const te=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",te.childAges)}}function w(_e,Ne){if(1&_e){const te=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"span"),e._uU(3),e.qZA(),e.YNc(4,y,2,1,"button",5),e.qZA(),e.TgZ(5,"div",6)(6,"label",7),e._uU(7),e.TgZ(8,"small"),e._uU(9),e.qZA()(),e.TgZ(10,"div")(11,"input",8),e.NdJ("nkzQuantityPickerChange",function(J){const Ze=e.CHM(te).$implicit;return e.KtG(Ze.totalAdults=J)}),e.qZA()()(),e.YNc(12,C,8,6,"div",9),e.YNc(13,G,2,1,"div",10),e.qZA()}if(2&_e){const te=Ne.$implicit,de=Ne.index,J=e.oxw();e.xp6(3),e.AsE("",null==J.currentConfig?null:J.currentConfig.TextConfig.Label_Room," ",de+1,""),e.xp6(1),e.Q6J("ngIf",0!==de),e.xp6(3),e.hij(" ",null==J.currentConfig?null:J.currentConfig.TextConfig.Plural_Adult," "),e.xp6(2),e.Oqu(null==J.currentConfig?null:J.currentConfig.TextConfig.Subtitle_Adult),e.xp6(2),e.Q6J("appQuantityPicker",te.totalAdults)("maxPaxPerRoom",J.currentConfig.maxPaxPerRoom===te.totalAdults+te.totalChilds)("min",J.currentConfig.minAdultsPerRoom)("max",(null==J.roomConfiguration?null:J.roomConfiguration.maxCapacity)||J.currentConfig.maxAdultsPerRoom),e.xp6(1),e.Q6J("ngIf",0!==J.currentConfig.maxChildsPerRoom),e.xp6(1),e.Q6J("ngIf",0!==J.currentConfig.maxChildsPerRoom&&te.totalChilds>0)}}function ee(_e,Ne){if(1&_e){const te=e.EpF();e.TgZ(0,"div",21)(1,"button",22),e.NdJ("click",function(){e.CHM(te);const J=e.oxw();return e.KtG(J.data.AddRoom())}),e._uU(2),e.qZA()()}if(2&_e){const te=e.oxw();e.xp6(1),e.Q6J("disabled",(null==te.currentConfig?null:te.currentConfig.maxRoomsForSelection)<=te.data.totalRooms),e.xp6(1),e.hij(" ",null==te.currentConfig?null:te.currentConfig.TextConfig.Label_AddRoom," ")}}let oe=(()=>{class _e{constructor(te){this.cdr=te,this.nkzRoomsDataChange=new e.vpe(!0),this.dataChange=new e.vpe,this.currentConfig=new F}get data(){if(this.componentDataValue)return this.componentDataValue}set data(te){this.componentDataValue=te,this.dataChange.emit(this.componentDataValue)}get roomConfigurationInput(){return this.roomConfiguration}set roomConfigurationInput(te){this.roomConfiguration=te}ngOnInit(){if(this.nkzConfig&&(this.currentConfig=this.merge(this.nkzConfig)),!this.data)throw Error("O valor de data \xe9 null ou undefined")}merge(te){return{...this.currentConfig,...te}}SetPaxType(te){this.currentConfig?.childsAgesValues&&(te.PaxType=this.currentConfig.childsAgesValues.filter(de=>de.PaxAge===te.PaxAge)[0].PaxType)}}return _e.\u0275fac=function(te){return new(te||_e)(e.Y36(e.sBO))},_e.\u0275cmp=e.Xpm({type:_e,selectors:[["app-passengers-picker"]],inputs:{nkzRoomsData:"nkzRoomsData",nkzRoomLabel:"nkzRoomLabel",maxRooms:"maxRooms",nkzShowInputLabels:"nkzShowInputLabels",nkzConfig:"nkzConfig",data:"data",roomConfigurationInput:"roomConfigurationInput"},outputs:{nkzRoomsDataChange:"nkzRoomsDataChange",dataChange:"dataChange"},decls:3,vars:2,consts:[[1,"passengers-picker"],["class","passengers-picker__room-container",4,"ngFor","ngForOf"],["class","passengers-picker__footer",4,"ngIf"],[1,"passengers-picker__room-container"],[1,"passengers-picker__room-container__title-container"],["type","button","class","passengers-picker__remove-room",3,"click",4,"ngIf"],[1,"quantity-selector","quantity-selector--adult"],[1,"quantity-selector__label"],["type","text","inputmode","numeric",3,"appQuantityPicker","maxPaxPerRoom","min","max","nkzQuantityPickerChange"],[4,"ngIf"],["class","passengers-picker__wrapper-childAges",4,"ngIf"],["type","button",1,"passengers-picker__remove-room",3,"click"],[1,"quantity-selector","quantity-selector--child"],[1,"quantity-selector__quantity-picker"],[1,"passengers-picker__wrapper-childAges"],["class","passengers-picker__childAges quantity-selector",4,"ngFor","ngForOf"],[1,"passengers-picker__childAges","quantity-selector"],[1,"quantity-selector__select","nkz-form-field"],[1,"nkz-select",3,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"passengers-picker__footer"],["type","button",1,"passengers-picker__footer__add-room",3,"disabled","click"]],template:function(te,de){1&te&&(e.TgZ(0,"div",0),e.YNc(1,w,14,11,"div",1),e.YNc(2,ee,3,2,"div",2),e.qZA()),2&te&&(e.xp6(1),e.Q6J("ngForOf",de.data.Rooms),e.xp6(1),e.Q6J("ngIf",1!==de.currentConfig.maxRoomsForSelection))},dependencies:[Z.sg,Z.O5,O,N,E.YN,E.Kr,E.EJ,E.JJ,E.On],styles:[".passengers-picker[_ngcontent-%COMP%]{background:white;max-width:300px}.passengers-picker__footer[_ngcontent-%COMP%]{padding:1rem 0;overflow:hidden;border-top:1px solid #e7e7e7}.passengers-picker__footer__close[_ngcontent-%COMP%]{float:right}.passengers-picker__room-container[_ngcontent-%COMP%]{padding:1rem 0}.passengers-picker__room-container__title-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:1rem;margin-bottom:.5rem;color:#9b9b9b}.passengers-picker__room-container[_ngcontent-%COMP%] + .passengers-picker__room-container[_ngcontent-%COMP%]{border-top:1px solid #e7e7e7}.quantity-selector[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0}.quantity-selector__label[_ngcontent-%COMP%]{flex:2}.quantity-selector__label[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{display:block;color:#9b9b9b}.quantity-selector__select[_ngcontent-%COMP%]{flex:1}"]}),_e})()},54945:(Xe,me,h)=>{"use strict";h.d(me,{$:()=>N});var e=h(36895),s=h(24006),K=h(49627),F=h(7913),Z=h(87549),O=h(94650);let H=(()=>{class E{constructor(){this.LabelType="TEXT",this.minAdultsPerRoom=1,this.maxAdultsPerRoom=9,this.minChildsPerRoom=0,this.maxChildsPerRoom=4,this.maxPaxPerRoom=void 0,this.maxPaxForSelection=void 0,this.maxRoomsForSelection=3,this.childsAgesValues=[{PaxAge:0,AgeLabel:"at\xe9 1 ano",PaxType:"INF"},{PaxAge:1,AgeLabel:"1 ano",PaxType:"INF"},{PaxAge:2,AgeLabel:"2 anos",PaxType:"CHD"},{PaxAge:3,AgeLabel:"3 anos",PaxType:"CHD"},{PaxAge:4,AgeLabel:"4 anos",PaxType:"CHD"},{PaxAge:5,AgeLabel:"5 anos",PaxType:"CHD"},{PaxAge:6,AgeLabel:"6 anos",PaxType:"CHD"},{PaxAge:7,AgeLabel:"7 anos",PaxType:"CHD"},{PaxAge:8,AgeLabel:"8 anos",PaxType:"CHD"},{PaxAge:9,AgeLabel:"9 anos",PaxType:"CHD"},{PaxAge:10,AgeLabel:"10 anos",PaxType:"CHD"},{PaxAge:11,AgeLabel:"11 anos",PaxType:"CHD"},{PaxAge:12,AgeLabel:"12 anos",PaxType:"CHD"},{PaxAge:13,AgeLabel:"13 anos",PaxType:"CHD"},{PaxAge:14,AgeLabel:"14 anos",PaxType:"CHD"},{PaxAge:15,AgeLabel:"15 anos",PaxType:"CHD"},{PaxAge:16,AgeLabel:"16 anos",PaxType:"YNG"},{PaxAge:17,AgeLabel:"17 anos",PaxType:"YNG"}],this.TextConfig={Label_Room:"Quarto",Plural_Room:"Quartos",Label_Passenger:"Passageiro",Plural_Passenger:"Passageiros",Label_Adult:"Adulto",Plural_Adult:"Adultos",Subtitle_Adult:"+18 anos",Label_Child:"Crian\xe7a",Plural_Child:"Crian\xe7as",Subtitle_Child:"0 a 17 anos",Subtitle_Child_Age:"idade no embarque",Label_AddRoom:"+ adicionar quarto",Label_RemoveRoom:"eliminar",Label_Close:"OK"},this.InitialDisplay=new F.V({Rooms:[new Z.c({PaxAges:[{PaxType:"ADT"},{PaxType:"ADT"}]})]}),this.RoomAddedDisplay=new Z.c({PaxAges:[{PaxType:"ADT"}]})}}return E.\u0275fac=function(C){return new(C||E)},E.\u0275prov=O.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})(),z=(()=>{class E{}return E.injector=null,E})(),N=(()=>{class E{constructor(C){this.injector=C,z.injector=this.injector}}return E.\u0275fac=function(C){return new(C||E)(O.LFG(O.zs3))},E.\u0275mod=O.oAB({type:E}),E.\u0275inj=O.cJS({providers:[H],imports:[e.ez,K.f,s.u5]}),E})()},87549:(Xe,me,h)=>{"use strict";h.d(me,{c:()=>K});let e=null;class K{constructor(Z){this.PaxAges=[],Z&&Object.assign(this,Z)}get childAges(){return this.PaxAges.filter(Z=>"INF"===Z.PaxType||"CHD"===Z.PaxType||"YNG"===Z.PaxType)}get totalChilds(){return this.PaxAges.filter(Z=>"INF"===Z.PaxType||"CHD"===Z.PaxType||"YNG"===Z.PaxType).length}set totalChilds(Z){if(Z>this.totalChilds){const O=Z-this.totalChilds;for(let H=0;H<O;H++)this.AddPax((null==e&&(e={PaxAge:0,PaxType:"CHD"}),{...e}))}else if(Z<this.totalChilds){const O=this.totalChilds-Z;for(let H=0;H<O;H++)this.RemoveOnePax(["INF","YNG","CHD"])}}get totalAdults(){return this.PaxAges.filter(Z=>"ADT"===Z.PaxType).length}set totalAdults(Z){if(Z>this.totalAdults){const O=Z-this.totalAdults;for(let H=0;H<O;H++)this.AddPax({PaxType:"ADT"})}else if(Z<this.totalAdults){const O=this.totalAdults-Z;for(let H=0;H<O;H++)this.RemoveOnePax("ADT")}}AddPax(Z){this.PaxAges.push(Z)}RemoveOnePax(Z){const O=this.PaxAges.map(z=>z.PaxType);let H=-1;if(Array.isArray(Z))for(const z of Z){const N=O.lastIndexOf(z);(!H||H<N)&&(H=N)}else H=O.lastIndexOf(Z);H>-1&&this.PaxAges.splice(H,1)}}},7913:(Xe,me,h)=>{"use strict";h.d(me,{V:()=>e});class e{constructor(K){this.Rooms=[],K&&Object.assign(this,K)}get totalChilds(){return this.Rooms.reduce((K,F)=>K+F.totalChilds,0)}get totalAdults(){return this.Rooms.reduce((K,F)=>K+F.totalAdults,0)}get totalPax(){return this.totalAdults+this.totalChilds}get totalRooms(){return this.Rooms.length}AddRoom(K){this.Rooms.push(K)}RemoveRoom(K){this.Rooms.splice(K,1)}}},4422:(Xe,me,h)=>{"use strict";h.d(me,{l:()=>F});var s=h(94650),K=h(90263);let F=(()=>{class Z{constructor(H,z,N,E){this.element=H,this.templateRef=z,this.viewContainer=N,this.auth=E,this.isHidden=!0}set hasPermission(H){this.componentCode=H,this.updateView()}updateView(){this.checkPermission()?this.isHidden&&(this.viewContainer.createEmbeddedView(this.templateRef),this.isHidden=!1):(this.isHidden=!0,this.viewContainer.clear())}checkPermission(){const H=this.auth.permissions||this.auth.user?.components;let z=!1;return this.componentCode&&(z=class e{static hasPermission(O,H){if(O&&H){const z=H.split(",").map(N=>N.split(":")[0]);return O instanceof Array?z.some(E=>O.map(y=>y.toUpperCase()).includes(E)):"string"==typeof O&&z.includes(O.toUpperCase())}return!1}}.hasPermission(this.componentCode,H)),z}}return Z.\u0275fac=function(H){return new(H||Z)(s.Y36(s.SBq),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(K.e))},Z.\u0275dir=s.lG2({type:Z,selectors:[["","hasPermission",""]],inputs:{hasPermission:"hasPermission"}}),Z})()},8148:(Xe,me,h)=>{"use strict";h.d(me,{r:()=>K});var e=h(36895),s=h(94650);let K=(()=>{class F{}return F.\u0275fac=function(O){return new(O||F)},F.\u0275mod=s.oAB({type:F}),F.\u0275inj=s.cJS({imports:[e.ez]}),F})()},49627:(Xe,me,h)=>{"use strict";h.d(me,{f:()=>F});var e=h(36895),s=h(24006),K=h(94650);let F=(()=>{class Z{}return Z.\u0275fac=function(H){return new(H||Z)},Z.\u0275mod=K.oAB({type:Z}),Z.\u0275inj=K.cJS({imports:[e.ez,s.u5]}),Z})()},55616:(Xe,me,h)=>{"use strict";h.d(me,{l:()=>N});var e=h(94650),s=h(43740),K=h(12931),F=h(36895);const Z=["dp"];function O(E,y){if(1&E&&(e.TgZ(0,"span",17),e._uU(1),e.qZA()),2&E){const C=e.oxw();e.xp6(1),e.Oqu(C.invalidMsg)}}function H(E,y){if(1&E){const C=e.EpF();e.TgZ(0,"span",18),e.NdJ("mouseenter",function(){const G=e.CHM(C).$implicit,w=e.oxw();return e.KtG(w.hoveredDate=G)})("mouseleave",function(){e.CHM(C);const b=e.oxw();return e.KtG(b.hoveredDate=null)}),e._uU(1),e.qZA()}if(2&E){const C=y.$implicit,U=y.focused,b=e.oxw();e.ekj("focused",U)("range",b.isRange(C))("faded",b.isHovered(C)||b.isInside(C)),e.xp6(1),e.hij(" ",C.day," ")}}const z=function(E){return{"border-color":E}};let N=(()=>{class E{constructor(C,U){this.calendar=C,this.formatter=U,this.dateChange=new e.vpe,this.hoveredDate=null,this.outsideDays="visible",this.fromDateActive=!0,this.toDateActive=!1,this.isFromValid=!0,this.isToValid=!0,this.invalidMsg=""}ngOnInit(){this.displayMonths=this.displayMonths||2}onDateSelection(C){this.isFromValid=!0,this.isToValid=!0,this.toDate||!this.fromDate||C.before(this.fromDate)?this.dateChange.emit({fromDate:C}):this.dateChange.emit({fromDate:this.fromDate,toDate:C})}isInvalidDate(C){if(8!==C.length)return!0;const U=C.slice(0,2),b=C.slice(2,4),G=C.slice(4,8),w=new s.qj(parseInt(G),parseInt(b),parseInt(U));return!this.calendar.isValid(w)}onCheckInputDates(C,U){const b="* Data inv\xE1lida",w=C.target.value;if(!w||""===w)return this.dateChange.emit(U?{}:{fromDate:this.fromDate,toDate:void 0});const ee=w.replace(/[^0-9]/g,"");if(this.isInvalidDate(ee))return this.invalidMsg=b,this.isFromValid=!U,void(this.isToValid=!!U);const oe=(0,K.pt)((0,K.k9)(ee));return this.availableDates&&0===this.containsDate(oe)?.length?(this.invalidMsg="* Data indispon\xEDvel",this.isFromValid=!U,void(this.isToValid=!!U)):(this.isFromValid=!0,this.isToValid=!0,U&&oe.after(this.toDate)?(this.invalidMsg="*Esta data deve ser superior a outra",void(this.isFromValid=!1)):!U&&oe.before(this.fromDate)?(this.invalidMsg="* Esta data n\xE3o \xE9 posterior \xE0 outra data",void(this.isToValid=!1)):U?(this.datePicker?.navigateTo(oe),this.dateChange.emit({fromDate:oe})):(this.datePicker?.focusDate(oe),this.dateChange.emit({fromDate:this.fromDate,toDate:oe})))}isHovered(C){return this.fromDate&&!this.toDate&&this.hoveredDate&&C.after(this.fromDate)&&C.before(this.hoveredDate)}isInside(C){return C.after(this.fromDate)&&C.before(this.toDate)}isRange(C){return C.equals(this.fromDate)||C.equals(this.toDate)||this.isInside(C)||this.isHovered(C)}get isDisabled(){if(this.availableDates)return C=>0===this.containsDate(C)?.length}containsDate(C){return this.availableDates?.filter(b=>{const G=b.getFullYear(),w=b.getMonth()+1;return b.getDate()===C.day&&w===C.month&&G===C.year})}parseDate(C){let U="";if(C){const b=C.year,G=C.month;U=`${(0,K.vk)(C.day,2)}/${(0,K.vk)(G,2)}/${b}`}return U}clearDates(){this.dateChange.emit({fromDate:void 0,toDate:void 0}),this.isFromValid=!0,this.isToValid=!0}}return E.\u0275fac=function(C){return new(C||E)(e.Y36(s.vL),e.Y36(s.NG))},E.\u0275cmp=e.Xpm({type:E,selectors:[["app-range-datepicker"]],viewQuery:function(C,U){if(1&C&&e.Gf(Z,5),2&C){let b;e.iGM(b=e.CRH())&&(U.datePicker=b.first)}},inputs:{availableDates:"availableDates",displayMonths:"displayMonths",minDate:"minDate",maxDate:"maxDate",fromDate:"fromDate",toDate:"toDate"},outputs:{dateChange:"dateChange"},decls:20,vars:21,consts:function(){let y,C,U,b,G;return y="De",C="DD/MM/AAAA",U="At\xE9",b="DD/MM/AAAA",G="Limpar",[[1,"range-datepicker"],[1,"range-datepicker__header"],["for","dpFromDate"],y,["inputmode","numeric","maxlength","10","minlength","8","placeholder",C,"name","dpFromDate",1,"range-datepicker-input","jest-from-date",3,"ngStyle","value","blur"],["dpFromDate",""],["for","dpToDate"],U,["inputmode","numeric","maxlength","10","minlength","8","placeholder",b,"name","dpToDate",1,"range-datepicker-input","jest-to-date",3,"disabled","ngStyle","value","blur"],["dpToDate",""],["class","text-danger",4,"ngIf"],[1,"range-datepicker__calendar"],["navigation","arrows","outsideDays","hidden",3,"markDisabled","startDate","minDate","maxDate","outsideDays","displayMonths","dayTemplate","dateSelect"],["dp",""],["t",""],["type","button",1,"range-datepicker__clear",3,"click"],G,[1,"text-danger"],[1,"custom-day",3,"mouseenter","mouseleave"]]},template:function(C,U){if(1&C&&(e.TgZ(0,"div",0)(1,"div",1)(2,"label",2)(3,"span"),e.SDv(4,3),e.qZA(),e.TgZ(5,"input",4,5),e.NdJ("blur",function(G){return U.onCheckInputDates(G,!0)}),e.qZA()(),e.TgZ(7,"label",6)(8,"span"),e.SDv(9,7),e.qZA(),e.TgZ(10,"input",8,9),e.NdJ("blur",function(G){return U.onCheckInputDates(G,!1)}),e.qZA()()(),e.YNc(12,O,2,1,"span",10),e.TgZ(13,"div",11)(14,"ngb-datepicker",12,13),e.NdJ("dateSelect",function(G){return U.onDateSelection(G)}),e.qZA(),e.YNc(16,H,2,7,"ng-template",null,14,e.W1O),e.qZA()(),e.TgZ(18,"button",15),e.NdJ("click",function(){return U.clearDates()}),e.SDv(19,16),e.qZA()),2&C){const b=e.MAs(17);e.xp6(5),e.ekj("active",U.fromDateActive),e.Q6J("ngStyle",e.VKq(17,z,U.isFromValid?null:"red"))("value",U.parseDate(U.fromDate)),e.xp6(5),e.ekj("active",U.toDateActive),e.Q6J("disabled",!U.fromDate)("ngStyle",e.VKq(19,z,U.isToValid?null:"red"))("value",U.parseDate(U.toDate)),e.xp6(2),e.Q6J("ngIf",!U.isFromValid||!U.isToValid),e.xp6(2),e.Q6J("markDisabled",U.isDisabled)("startDate",U.fromDate)("minDate",U.minDate)("maxDate",U.maxDate)("outsideDays",U.outsideDays)("displayMonths",U.displayMonths)("dayTemplate",b)}},dependencies:[F.O5,F.PC,s.VL],styles:[".custom-day[_ngcontent-%COMP%]{text-align:center;padding:.185rem .25rem;display:inline-block;height:2rem;width:2rem}.custom-day.range[_ngcontent-%COMP%], .custom-day[_ngcontent-%COMP%]:hover{background-color:#1a73e8;color:#fff}.custom-day.faded[_ngcontent-%COMP%]{background-color:#368dff}.active[_ngcontent-%COMP%]{border:1px solid #1a73e8}"]}),E})()},50348:(Xe,me,h)=>{"use strict";h.d(me,{D:()=>O});var e=h(94650),s=h(36895),K=h(43740);function F(H,z){if(1&H&&(e.TgZ(0,"span",6),e._uU(1),e.qZA()),2&H){const N=e.oxw(2);e.xp6(1),e.hij("(",N.votes,")")}}function Z(H,z){if(1&H&&(e.TgZ(0,"div",1),e.O4$(),e.TgZ(1,"svg",2),e._UZ(2,"path",3),e.qZA(),e.kcU(),e.TgZ(3,"span",4),e._uU(4),e.qZA(),e.YNc(5,F,2,1,"span",5),e.qZA()),2&H){const N=e.oxw();e.s9C("ngbTooltip",N.reference),e.xp6(4),e.Oqu(N.score),e.xp6(1),e.Q6J("ngIf",N.votes)}}let O=(()=>{class H{constructor(){}}return H.\u0275fac=function(N){return new(N||H)},H.\u0275cmp=e.Xpm({type:H,selectors:[["app-rating"]],inputs:{score:"score",votes:"votes",reference:"reference"},decls:1,vars:1,consts:[["class","rating","placement","right",3,"ngbTooltip",4,"ngIf"],["placement","right",1,"rating",3,"ngbTooltip"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","viewBox","0 0 14 14"],["d","M7.823.5l1.8,3.877h3.493a.858.858,0,0,1,.6,1.5L10.687,8.865l1.68,3.867a.916.916,0,0,1-1.3,1.146L7,11.589,2.94,13.877a.916.916,0,0,1-1.3-1.146l1.68-3.864L.291,5.878a.857.857,0,0,1,.6-1.5H4.379L6.172.5A.93.93,0,0,1,7.823.5Z","transform","translate(0 0)","fill","#edba34"],[1,"rating__score"],["class","rating__votes",4,"ngIf"],[1,"rating__votes"]],template:function(N,E){1&N&&e.YNc(0,Z,6,3,"div",0),2&N&&e.Q6J("ngIf",E.score)},dependencies:[s.O5,K._L],styles:[".rating[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin-left:.5rem}.rating[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin-left:.25rem}.rating__score[_ngcontent-%COMP%]{color:#000;font-weight:500}.rating__votes[_ngcontent-%COMP%]{color:#adb5bd;font-size:.87rem}"]}),H})()},25971:(Xe,me,h)=>{"use strict";h.d(me,{a:()=>K});var e=h(36895),s=h(94650);let K=(()=>{class F{}return F.\u0275fac=function(O){return new(O||F)},F.\u0275mod=s.oAB({type:F}),F.\u0275inj=s.cJS({imports:[e.ez]}),F})()},46909:(Xe,me,h)=>{"use strict";h.d(me,{d:()=>Ne});var e=h(94650),s=h(28084),K=h(24006),F=h(43740),Z=h(36895),O=h(9245),H=h(4422);function z(te,de){if(1&te){const J=e.EpF();e.TgZ(0,"div",24)(1,"input",25),e.NdJ("change",function(){const ot=e.CHM(J).$implicit,lt=e.oxw(3);return e.KtG(lt.selectCabin(ot))}),e.qZA(),e.TgZ(2,"label",26),e._uU(3),e.qZA()()}if(2&te){const J=de.$implicit,Ie=de.index;e.xp6(1),e.Q6J("id","cabinType-"+Ie)("value",J.name)("checked",J.checked),e.xp6(1),e.Q6J("for","cabinType-"+Ie),e.xp6(1),e.hij(" ",J.name," ")}}function N(te,de){if(1&te){const J=e.EpF();e.TgZ(0,"app-collapse",16)(1,"div",17),e.YNc(2,z,4,5,"div",18),e.qZA(),e.TgZ(3,"div",19)(4,"button",20),e.NdJ("click",function(){e.CHM(J);const Ze=e.oxw(2);return e.KtG(Ze.clearCabinTypes())}),e.SDv(5,21),e.qZA(),e.TgZ(6,"button",22),e.NdJ("click",function(){e.CHM(J);const Ze=e.oxw(2);return e.KtG(Ze.onSubmitCabins())}),e.SDv(7,23),e.qZA()()()}if(2&te){const J=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",J.filterOptions.cabinType.options)}}function E(te,de){if(1&te){const J=e.EpF();e.TgZ(0,"div",24)(1,"input",30),e.NdJ("change",function(){const ot=e.CHM(J).$implicit,lt=e.oxw(3);return e.KtG(lt.selectPromotion(ot))}),e.qZA(),e.TgZ(2,"label",26),e._uU(3),e.qZA()()}if(2&te){const J=de.$implicit,Ie=de.index;e.xp6(1),e.Q6J("id","promotion-"+Ie)("value",J.name)("checked",J.checked),e.xp6(1),e.Q6J("for","promotion-"+Ie),e.xp6(1),e.hij(" ",J.name," ")}}function y(te,de){if(1&te){const J=e.EpF();e.TgZ(0,"app-collapse",27)(1,"div",17),e.YNc(2,E,4,5,"div",18),e.qZA(),e.TgZ(3,"div",19)(4,"button",20),e.NdJ("click",function(){e.CHM(J);const Ze=e.oxw(2);return e.KtG(Ze.clearPromotions())}),e.SDv(5,28),e.qZA(),e.TgZ(6,"button",22),e.NdJ("click",function(){e.CHM(J);const Ze=e.oxw(2);return e.KtG(Ze.onSubmitPromotions())}),e.SDv(7,29),e.qZA()()()}if(2&te){const J=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",J.filterOptions.promotions.options)}}function C(te,de){if(1&te){const J=e.EpF();e.TgZ(0,"div",24)(1,"input",44),e.NdJ("change",function(){e.CHM(J);const Ze=e.oxw(3);return e.KtG(Ze.selectHasMap(null==Ze.filterOptions.hasMap?null:Ze.filterOptions.hasMap.selected))}),e.qZA(),e.TgZ(2,"label",45),e.SDv(3,46),e.qZA()()}if(2&te){const J=e.oxw(3);e.xp6(1),e.Q6J("value",null==J.filterOptions.hasMap?null:J.filterOptions.hasMap.selected)("checked",!1===(null==J.filterOptions.hasMap?null:J.filterOptions.hasMap.selected))}}function U(te,de){if(1&te){const J=e.EpF();e.TgZ(0,"app-collapse",31)(1,"div",17)(2,"div",24)(3,"input",32),e.NdJ("change",function(){e.CHM(J);const Ze=e.oxw(2);return e.KtG(Ze.filterOptions.hasFlights.selected=!(null!=Ze.filterOptions.hasFlights&&Ze.filterOptions.hasFlights.selected))}),e.qZA(),e.TgZ(4,"label",33),e.SDv(5,34),e.qZA()(),e.TgZ(6,"div",24)(7,"input",35),e.NdJ("change",function(){e.CHM(J);const Ze=e.oxw(2);return e.KtG(Ze.filterOptions.hasEvent.selected=!(null!=Ze.filterOptions.hasEvent&&Ze.filterOptions.hasEvent.selected))}),e.qZA(),e.TgZ(8,"label",36),e.SDv(9,37),e.qZA()(),e.TgZ(10,"div",24)(11,"input",38),e.NdJ("change",function(){e.CHM(J);const Ze=e.oxw(2);return e.KtG(Ze.filterOptions.overnight.selected=!(null!=Ze.filterOptions.overnight&&Ze.filterOptions.overnight.selected))}),e.qZA(),e.TgZ(12,"label",39),e.SDv(13,40),e.qZA()(),e.YNc(14,C,4,2,"div",41),e.qZA(),e.TgZ(15,"div",19)(16,"button",20),e.NdJ("click",function(){e.CHM(J);const Ze=e.oxw(2);return e.KtG(Ze.clearOthers())}),e.SDv(17,42),e.qZA(),e.TgZ(18,"button",22),e.NdJ("click",function(){e.CHM(J);const Ze=e.oxw(2);return e.KtG(Ze.onSubmit())}),e.SDv(19,43),e.qZA()()()}if(2&te){const J=e.oxw(2);e.xp6(3),e.Q6J("value",null==J.filterOptions.hasFlights?null:J.filterOptions.hasFlights.selected)("checked",null==J.filterOptions.hasFlights?null:J.filterOptions.hasFlights.selected),e.xp6(4),e.Q6J("value",null==J.filterOptions.hasEvent?null:J.filterOptions.hasEvent.selected)("checked",null==J.filterOptions.hasEvent?null:J.filterOptions.hasEvent.selected),e.xp6(4),e.Q6J("value",null==J.filterOptions.overnight?null:J.filterOptions.overnight.selected)("checked",null==J.filterOptions.overnight?null:J.filterOptions.overnight.selected),e.xp6(3),e.Q6J("hasPermission","FRONT_ENABLE_MAP")}}function b(te,de){if(1&te){const J=e.EpF();e.TgZ(0,"label",51)(1,"span",4),e._uU(2),e.qZA(),e.TgZ(3,"input",52),e.NdJ("change",function(){e.CHM(J);const Ze=e.oxw(3);return e.KtG(Ze.onSubmit())}),e.qZA(),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e._UZ(6,"i"),e.qZA()}if(2&te){const J=e.oxw().$implicit;e.Q6J("for",J.queryName),e.xp6(2),e.Oqu(J.labelBefore),e.xp6(1),e.Q6J("id",J.queryName),e.xp6(2),e.Oqu(J.labelAfter)}}function G(te,de){if(1&te){const J=e.EpF();e.TgZ(0,"div",24)(1,"input",53),e.NdJ("change",function(){e.CHM(J);const Ze=e.oxw(4);return e.KtG(Ze.onSubmit())}),e.qZA(),e.TgZ(2,"label",26),e._uU(3),e.qZA()()}if(2&te){const J=de.$implicit,Ie=de.index,Ze=e.oxw(2).$implicit;e.xp6(1),e.Q6J("name",Ze.queryName)("id",Ze.queryName+"-"+Ie)("value",J.name),e.xp6(1),e.Q6J("for",Ze.queryName+"-"+Ie),e.xp6(1),e.Oqu(J.name)}}function w(te,de){if(1&te&&(e.TgZ(0,"div",17),e.YNc(1,G,4,5,"div",18),e.qZA()),2&te){const J=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",J.options)}}function ee(te,de){if(1&te){const J=e.EpF();e.TgZ(0,"div",54)(1,"label")(2,"span"),e.SDv(3,55),e.qZA(),e._UZ(4,"input",56),e.qZA(),e.TgZ(5,"label")(6,"span"),e.SDv(7,57),e.qZA(),e._UZ(8,"input",58),e.qZA(),e.TgZ(9,"button",59),e.NdJ("click",function(){e.CHM(J);const Ze=e.oxw(3);return e.KtG(Ze.clearPriceInputs())}),e.SDv(10,60),e.qZA(),e.TgZ(11,"button",61),e.NdJ("click",function(){e.CHM(J);const Ze=e.oxw(3);return e.KtG(Ze.onSubmitPrice())}),e.SDv(12,62),e.qZA()()}if(2&te){const J=e.oxw().$implicit,Ie=e.oxw(2);e.xp6(4),e.Q6J("placeholder",Ie.currencyDisplay)("min",Ie.roundPrice(J.min,!0))("max",Ie.roundPrice(J.max,!1))("formControl",Ie.inputFrom),e.xp6(4),e.Q6J("placeholder",Ie.currencyDisplay)("min",Ie.roundPrice(J.min,!0))("max",Ie.roundPrice(J.max,!1))("formControl",Ie.inputTo)}}function oe(te,de){if(1&te&&(e.TgZ(0,"app-collapse",47),e.YNc(1,b,7,4,"label",48),e.YNc(2,w,2,1,"div",49),e.YNc(3,ee,13,8,"div",50),e.qZA()),2&te){const J=de.$implicit;e.s9C("name",J.title),e.xp6(1),e.Q6J("ngIf","boolean"===J.type),e.xp6(1),e.Q6J("ngIf","multselect"===J.type&&(null==J.options?null:J.options.length)>0),e.xp6(1),e.Q6J("ngIf","range"===J.type)}}function _e(te,de){if(1&te){const J=e.EpF();e.TgZ(0,"form",1)(1,"app-collapse",2)(2,"label",3)(3,"span",4),e.SDv(4,5),e.qZA(),e.TgZ(5,"input",6),e.NdJ("ngModelChange",function(Ze){e.CHM(J);const ot=e.oxw();return e.KtG(ot.filterOptions.taxAndFeesIncluded=Ze)})("change",function(){e.CHM(J);const Ze=e.oxw();return e.KtG(Ze.onSubmit())}),e.qZA(),e._UZ(6,"i"),e.qZA()(),e.TgZ(7,"app-collapse",7)(8,"label",8)(9,"span",4),e.SDv(10,9),e.qZA(),e.TgZ(11,"input",10),e.NdJ("ngModelChange",function(Ze){e.CHM(J);const ot=e.oxw();return e.KtG(ot.filterOptions.priceByCabin=Ze)})("change",function(){e.CHM(J);const Ze=e.oxw();return e.KtG(Ze.onSubmit())}),e.qZA(),e._UZ(12,"i"),e.TgZ(13,"span",4),e.SDv(14,11),e.qZA()()(),e.YNc(15,N,8,1,"app-collapse",12),e.YNc(16,y,8,1,"app-collapse",13),e.YNc(17,U,20,7,"app-collapse",14),e.YNc(18,oe,4,4,"app-collapse",15),e.qZA()}if(2&te){const J=e.oxw();e.xp6(5),e.Q6J("ngModel",J.filterOptions.taxAndFeesIncluded),e.xp6(6),e.Q6J("ngModel",J.filterOptions.priceByCabin),e.xp6(4),e.Q6J("ngIf",J.filterOptions.cabinType.options.length>0),e.xp6(1),e.Q6J("ngIf",J.filterOptions.promotions.options.length>0),e.xp6(1),e.Q6J("ngIf",J.filterOptions.hasEvent.options.length>0||J.filterOptions.overnight||J.filterOptions.hasFlights),e.xp6(1),e.Q6J("ngForOf",J.filterOptions.aditionalFilters)}}let Ne=(()=>{class te{constructor(J){this.ngbModal=J,this.submitForm=new e.vpe,this.inputFrom=new K.p4,this.inputTo=new K.p4,this.selectedCabins=[],this.selectedPromotions=[]}ngOnInit(){this.currencyDisplay=this.currency?.display||"",this.getPriceInput(),this.getCabinsSelected(),this.getPromotionsSelected()}ngOnChanges(J){J.filterOptions&&(this.getPriceInput(),this.getCabinsSelected(),this.getPromotionsSelected())}onSubmit(J=!1){this.submitForm.emit(),this.isCompact&&this.ngbModal.close()}onSubmitCabins(){this.filterOptions.cabinType.selected=this.selectedCabins,this.onSubmit()}onSubmitPromotions(){this.filterOptions.promotions.selected=this.selectedPromotions,this.onSubmit()}onSubmitPrice(){const J=this.filterOptions.aditionalFilters.find(Ie=>"Price"===Ie.queryName);J.selected.minValue=this.inputFrom.value,J.selected.maxValue=this.inputTo.value,this.onSubmit()}updateSelectedOptions(J,Ie){this.filterOptions.aditionalFilters[J].selected=Ie,this.onSubmit()}getCabinsSelected(){const J=this.filterOptions.cabinType.options.filter(Ie=>!0===Ie.checked);this.selectedCabins=J}getPromotionsSelected(){const J=this.filterOptions.promotions.options.filter(Ie=>!0===Ie.checked);this.selectedPromotions=J}selectCabin(J){J.checked=!J.checked,J.checked?this.selectedCabins.push(J):this.selectedCabins=this.selectedCabins.filter(Ie=>J.id!==Ie.id)}selectPromotion(J){J.checked=!J.checked,J.checked?this.selectedPromotions.push(J):this.selectedPromotions=this.selectedPromotions.filter(Ie=>J.id!==Ie.id)}selectHasMap(J){this.filterOptions.hasMap.selected=!1===this.filterOptions.hasMap.selected&&null}getPriceInput(){const J=this.filterOptions.aditionalFilters.find(ot=>"Price"===ot.queryName),Ze=J.selected.maxValue||null;this.inputFrom.setValue(this.roundPrice(J.selected.minValue||null,!0),{emitEvent:!1}),this.inputTo.setValue(this.roundPrice(Ze,!1),{emitEvent:!1})}clearPriceInputs(){this.inputFrom.setValue(null,{emitEvent:!1}),this.inputTo.setValue(null,{emitEvent:!1}),this.onSubmitPrice()}clearCabinTypes(){this.filterOptions.cabinType.options.forEach(J=>J.checked=!1),this.selectedCabins=[],this.onSubmitCabins()}clearPromotions(){this.filterOptions.promotions.options.forEach(J=>J.checked=!1),this.selectedPromotions=[],this.onSubmitPromotions()}clearOthers(){this.filterOptions.hasMap.selected=null,this.filterOptions.hasEvent.selected=!1,this.filterOptions.overnight.selected=!1,this.filterOptions.hasFlights.selected=!1,this.onSubmit()}roundPrice(J,Ie){return J?Ie?Math.floor(J):Math.ceil(J):null}}return te.\u0275fac=function(J){return new(J||te)(e.Y36(F.Kz))},te.\u0275cmp=e.Xpm({type:te,selectors:[["app-search-filters"]],viewQuery:function(J,Ie){if(1&J&&e.Gf(s.t,5),2&J){let Ze;e.iGM(Ze=e.CRH())&&(Ie.typeaheads=Ze)}},inputs:{filterOptions:"filterOptions",currency:"currency",searchConfig:"searchConfig",isCompact:"isCompact"},outputs:{submitForm:"submitForm"},features:[e.TTD],decls:1,vars:1,consts:function(){let de,J,Ie,Ze,ot,lt,At,qe,wt,re,Ee,Ve,Le,Dt,Tt,pt,Be,ft,gt,Et,Mt,Qt;return de="Taxas",J="Incluir",Ie="Pre\xE7o por",Ze="Passageiros",ot="Cabine",lt="Tipo de cabine",At="Promo\xE7\xF5es",qe="Outros filtros",wt="Limpar",re="Aplicar",Ee="Limpar",Ve="Aplicar",Le="Pacote com a\xE9reo",Dt=" Cruzeiros tem\xE1ticos",Tt=" Itiner\xE1rio com pernoite",pt="Limpar",Be="Aplicar",ft=" Itiner\xE1rio sem mapa",gt="De",Et="At\xE9",Mt="Limpar",Qt="Aplicar",[["class","search-filters",4,"ngIf"],[1,"search-filters"],["name",de],[1,"toggle-switch","toggle-switch-sm"],[1,"toggle-switch__label-text"],J,["type","checkbox","name","taxAndFeesIncluded","id","taxAndFeesIncluded",1,"form-check-input",3,"ngModel","ngModelChange","change"],["name",Ie],[1,"toggle-switch","toggle-switch-sm","toggle-switch-toggle"],Ze,["type","checkbox","name","priceBy","id","priceBy",3,"ngModel","ngModelChange","change"],ot,["name",lt,4,"ngIf"],["name",At,4,"ngIf"],["name",qe,4,"ngIf"],[3,"name",4,"ngFor","ngForOf"],["name",lt],[1,"checkbox-container"],["class","form-check",4,"ngFor","ngForOf"],[1,"buttons"],["type","button",1,"buttons__clear",3,"click"],wt,["type","button",1,"buttons__apply",3,"click"],re,[1,"form-check"],["type","checkbox","name","cabinType",1,"form-check-input",3,"id","value","checked","change"],[1,"form-check-label",3,"for"],["name",At],Ee,Ve,["type","checkbox","name","promotion",1,"form-check-input",3,"id","value","checked","change"],["name",qe],["type","checkbox","name","packageAir","id","packageAir",1,"form-check-input",3,"value","checked","change"],["for","packageAir",1,"form-check-label"],Le,["type","checkbox","name","promotion","id","hasEvent",1,"form-check-input",3,"value","checked","change"],["for","hasEvent",1,"form-check-label"],Dt,["type","checkbox","name","overnight","id","overnight",1,"form-check-input",3,"value","checked","change"],["for","overnight",1,"form-check-label"],Tt,["class","form-check",4,"hasPermission"],pt,Be,["type","checkbox","name","noMap","id","noMap",1,"form-check-input",3,"value","checked","change"],["for","noMap",1,"form-check-label"],ft,[3,"name"],["class","toggle-switch toggle-switch-sm",3,"for",4,"ngIf"],["class","checkbox-container",4,"ngIf"],["class","range-slider-container",4,"ngIf"],[1,"toggle-switch","toggle-switch-sm",3,"for"],["type","checkbox",3,"id","change"],["type","checkbox",1,"form-check-input",3,"name","id","value","change"],[1,"range-slider-container"],gt,["type","number","name","fromPrice","onkeypress","return event.charCode >= 48 && event.charCode <= 57",3,"placeholder","min","max","formControl"],Et,["type","number","name","toPrice","onkeypress","return event.charCode >= 48 && event.charCode <= 57",3,"placeholder","min","max","formControl"],["type","button",1,"range-slider-container__clear",3,"click"],Mt,["type","button",1,"range-slider-container__apply",3,"click"],Qt]},template:function(J,Ie){1&J&&e.YNc(0,_e,19,6,"form",0),2&J&&e.Q6J("ngIf",Ie.filterOptions)},dependencies:[Z.sg,Z.O5,K._Y,K.Fj,K.wV,K.Wl,K.JJ,K.JL,K.qQ,K.Fd,K.On,K.F,K.oH,O.o,H.l],changeDetection:0}),te})()},66460:(Xe,me,h)=>{"use strict";h.d(me,{g:()=>yt});var e=h(36895),s=h(94650),K=h(72616),F=h(43740),Z=h(62174);let O=(()=>{class Ge{constructor($){this.modal=$}}return Ge.\u0275fac=function($){return new($||Ge)(s.Y36(F.Kz))},Ge.\u0275cmp=s.Xpm({type:Ge,selectors:[["app-modal-import-loc"]],decls:3,vars:0,consts:[["type","button","aria-label","Close",1,"close",3,"click"],[1,"modal-body"]],template:function($,x){1&$&&(s.TgZ(0,"button",0),s.NdJ("click",function(){return x.modal.dismiss("Cross click")}),s.qZA(),s.TgZ(1,"div",1),s._UZ(2,"app-open-loc"),s.qZA())},dependencies:[Z.F]}),Ge})();var H=h(79417),z=h(42915),N=h(27722),E=h(27278),y=h(46038),C=h(24006),U=h(98895),b=h(55616),G=h(28084),w=h(24850),ee=h(80013),oe=h(92198),_e=h(20676);function Ne(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"button",2),s.NdJ("click",function(){const q=s.CHM($).$implicit,Q=s.oxw();return s.KtG(Q.removeOption(q))}),s.TgZ(1,"span",3),s._uU(2),s.qZA(),s.TgZ(3,"span",4),s.SDv(4,5),s.qZA()()}if(2&Ge){const $=Y.$implicit;s.xp6(2),s.Oqu($.name)}}let te=(()=>{class Ge{constructor(){this.removeChip=new s.vpe}removeOption($){$.checked=!1,this.removeChip.emit($)}}return Ge.\u0275fac=function($){return new($||Ge)},Ge.\u0275cmp=s.Xpm({type:Ge,selectors:[["app-selected-chips"]],inputs:{options:"options"},outputs:{removeChip:"removeChip"},decls:2,vars:1,consts:function(){let Y;return Y="Remover",[[1,"chips-list"],["type","button","class","chips-list__item",3,"click",4,"ngFor","ngForOf"],["type","button",1,"chips-list__item",3,"click"],[1,"chips-list__item__name"],[1,"sr-only"],Y]},template:function($,x){1&$&&(s.TgZ(0,"div",0),s.YNc(1,Ne,5,1,"button",1),s.qZA()),2&$&&(s.xp6(1),s.Q6J("ngForOf",x.options))},dependencies:[e.sg],encapsulation:2}),Ge})();const de=["inputControl"];function J(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"button",10),s.NdJ("click",function(){s.CHM($);const ie=s.oxw();return s.KtG(ie.clearInput())}),s.TgZ(1,"span",11),s.SDv(2,12),s.qZA()()}}function Ie(Ge,Y){1&Ge&&(s.TgZ(0,"div",13),s._UZ(1,"div",14),s.qZA())}function Ze(Ge,Y){if(1&Ge&&(s.TgZ(0,"div",15)(1,"span"),s.SDv(2,16),s.qZA(),s.TgZ(3,"strong"),s._uU(4),s.qZA()()),2&Ge){const $=s.oxw();s.xp6(4),s.hij(' "',$.searchInput.value,'"')}}function ot(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"app-typeahead-options",19),s.NdJ("optionChange",function(ie){s.CHM($);const q=s.oxw(2);return s.KtG(q.emitCheckedOption(ie))}),s.qZA()}if(2&Ge){const $=s.oxw().$implicit,x=s.oxw();s.Q6J("option",$)("canSelectGroup",x.canSelectGroup)}}function lt(Ge,Y){if(1&Ge&&(s.TgZ(0,"div",17),s.YNc(1,ot,1,2,"app-typeahead-options",18),s.qZA()),2&Ge){const $=s.oxw();s.xp6(1),s.Q6J("ngIf",!$.isLoading)}}function At(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){s.CHM($);const ie=s.oxw();return s.KtG(ie.clear())}),s.SDv(1,21),s.qZA()}}let qe=(()=>{class Ge{constructor(){this.selectedCheckbox=new s.vpe,this.updateQuery=new s.vpe,this.getSearch=new s.vpe,this.isLoading=!0,this.searchInput=new C.p4,this.hasInput=!1}ngOnInit(){void 0===this.canSelectGroup&&(this.canSelectGroup=!0),this.searchInput.valueChanges.pipe((0,w.U)($=>(this.hasInput=!1,$.trim().toLowerCase())),(0,ee.b)(400),(0,oe.h)($=>$.length>2||0===$.length)).subscribe($=>{this.hasInput=!0,$.length>2?(this.isLoading=!0,this.getSearch.emit($)):this.optionsWithoutSelected=[]})}ngOnChanges($){this.optionsWithoutSelected=this.handleSelectedOptions(),this.selectedOptions=this.asyncSelectedOptions,$.asyncSearchResult&&(this.isLoading=!1)}clear(){this.selectedOptions=[],this.isLoading=!0,this.updateQuery.emit(this.selectedOptions),this.selectedCheckbox.emit(),this.searchInput.setValue("",{emitEvent:!1}),this.inputControl?.nativeElement.focus()}clearInput(){this.searchInput.setValue(""),this.inputControl?.nativeElement.focus()}remove($){this.typeaheadOptions?.forEach(x=>x.remove($))}emitCheckedOption($){this.isLoading=!0,this.addRemoveSelectedOption($),this.updateQuery.emit(this.selectedOptions),this.selectedCheckbox.emit(),this.searchInput.setValue("",{emitEvent:!1}),this.inputControl?.nativeElement.focus()}addRemoveSelectedOption($){$.checked?($.name=$.name.split(", ")[0],this.selectedOptions.push($)):this.selectedOptions=this.selectedOptions.filter(x=>x.id!==$.id),this.optionsWithoutSelected=this.handleSelectedOptions()}handleSelectedOptions(){return this.asyncSearchResult.filter($=>!this.selectedOptions.some(x=>($.checked=!1,$.id===x.id)))}}return Ge.\u0275fac=function($){return new($||Ge)},Ge.\u0275cmp=s.Xpm({type:Ge,selectors:[["app-typeahead-async"]],viewQuery:function($,x){if(1&$&&(s.Gf(de,5),s.Gf(_e.J,5)),2&$){let ie;s.iGM(ie=s.CRH())&&(x.inputControl=ie.first),s.iGM(ie=s.CRH())&&(x.typeaheadOptions=ie)}},inputs:{asyncSearchResult:"asyncSearchResult",asyncSelectedOptions:"asyncSelectedOptions",canSelectGroup:"canSelectGroup"},outputs:{selectedCheckbox:"selectedCheckbox",updateQuery:"updateQuery",getSearch:"getSearch"},features:[s.TTD],decls:10,vars:7,consts:function(){let Y,$,x,ie;return Y="Digite para filtrar",$="Limpar",x="Nenhum resultado encontrado com o termo",ie="Limpar",[[1,"typeahead"],[1,"typeahead__input-wrapper"],["placeholder",Y,"autocomplete","off",1,"typeahead__input",3,"formControl"],["inputControl",""],["type","button","class","typeahead__clear-input",3,"click",4,"ngIf"],[3,"options","removeChip"],["class","text-center pt-3 pb-3",4,"ngIf"],["class","no-results-found",4,"ngIf"],["class","typeahead__list-options",4,"ngFor","ngForOf"],["type","button","class","btn btn-light typeahead__clear-values",3,"click",4,"ngIf"],["type","button",1,"typeahead__clear-input",3,"click"],[1,"sr-only"],$,[1,"text-center","pt-3","pb-3"],[1,"load-spinner","load-spinner--md"],[1,"no-results-found"],x,[1,"typeahead__list-options"],[3,"option","canSelectGroup","optionChange",4,"ngIf"],[3,"option","canSelectGroup","optionChange"],["type","button",1,"btn","btn-light","typeahead__clear-values",3,"click"],ie]},template:function($,x){1&$&&(s.TgZ(0,"div",0)(1,"div",1),s._UZ(2,"input",2,3),s.YNc(4,J,3,0,"button",4),s.qZA(),s.TgZ(5,"app-selected-chips",5),s.NdJ("removeChip",function(q){return x.emitCheckedOption(q)}),s.qZA(),s.YNc(6,Ie,2,0,"div",6),s.YNc(7,Ze,5,1,"div",7),s.YNc(8,lt,2,1,"div",8),s.qZA(),s.YNc(9,At,2,0,"button",9)),2&$&&(s.xp6(2),s.Q6J("formControl",x.searchInput),s.xp6(2),s.Q6J("ngIf",x.searchInput.value),s.xp6(1),s.Q6J("options",x.selectedOptions),s.xp6(1),s.Q6J("ngIf",x.isLoading),s.xp6(1),s.Q6J("ngIf",0===x.optionsWithoutSelected.length&&!x.isLoading&&""!==x.searchInput.value&&x.hasInput),s.xp6(1),s.Q6J("ngForOf",x.optionsWithoutSelected),s.xp6(1),s.Q6J("ngIf",x.optionsWithoutSelected))},dependencies:[e.sg,e.O5,C.Fj,C.JJ,C.oH,_e.J,te],styles:[".typeahead[_ngcontent-%COMP%]{max-width:300px;margin-bottom:.5rem}.typeahead__input-wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:.5rem}.typeahead__input[_ngcontent-%COMP%]{width:100%}.typeahead__clear-input[_ngcontent-%COMP%]{position:absolute;top:0;right:0;border:0;background-color:transparent;cursor:pointer}.no-results-found[_ngcontent-%COMP%]{text-align:center;padding:1rem;font-size:.87rem}"]}),Ge})();var wt=h(28896);let re=(()=>{class Ge{constructor($,x){this.el=$,this.renderer=x,this.scrollToElement=this.scrollToElement.bind(this)}ngOnInit(){this.renderer.listen(this.el.nativeElement,"click",this.scrollToElement)}getFocusElement($){return $.querySelector(this.appFocusElement)??(null!=$.parentElement?this.getFocusElement($.parentElement):null)}scrollToElement(){const $=this.getFocusElement(this.el.nativeElement);$?.focus&&$.focus()}}return Ge.\u0275fac=function($){return new($||Ge)(s.Y36(s.SBq),s.Y36(s.Qsj))},Ge.\u0275dir=s.lG2({type:Ge,selectors:[["","appFocusElement",""]],inputs:{appFocusElement:"appFocusElement"}}),Ge})();const Ee=function(Ge){return{color:Ge}},Ve=function(Ge){return{display:Ge}};function Le(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"div")(1,"label",8),s._uU(2),s.TgZ(3,"input",9),s.NdJ("change",function(ie){s.CHM($);const q=s.oxw(2);return s.KtG(q.selectDuration(ie))}),s.qZA(),s._UZ(4,"i",10),s.qZA()()}if(2&Ge){const $=Y.$implicit;s.xp6(1),s.Q6J("for",$.id)("ngStyle",s.VKq(7,Ee,$.checked?"#1a73e8":"black")),s.xp6(1),s.hij(" ",$.label," "),s.xp6(1),s.Q6J("id",$.id)("value",$.value)("checked",$.checked),s.xp6(1),s.Q6J("ngStyle",s.VKq(9,Ve,$.checked?"inline-block":"none"))}}function Dt(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"label",11),s.NdJ("click",function(){s.CHM($);const ie=s.oxw(2);return s.KtG(ie.changeView())}),s.SDv(1,12),s.qZA()}}function Tt(Ge,Y){if(1&Ge&&(s.TgZ(0,"div",4)(1,"div",5),s.YNc(2,Le,5,11,"div",6),s.YNc(3,Dt,2,0,"label",7),s.qZA()()),2&Ge){const $=s.oxw();s.xp6(2),s.Q6J("ngForOf",$.labels),s.xp6(1),s.Q6J("ngIf",$.hasMoreDurations)}}function pt(Ge,Y){1&Ge&&(s.TgZ(0,"span",24),s.SDv(1,25),s.qZA())}const Be=function(Ge){return{"border-color":Ge}};function ft(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"div",13)(1,"div",14),s.NdJ("click",function(){s.CHM($);const ie=s.oxw();return s.KtG(ie.changeView())}),s._UZ(2,"i",15),s.TgZ(3,"span"),s.SDv(4,16),s.qZA()(),s.TgZ(5,"div")(6,"span"),s.SDv(7,17),s.qZA()(),s.TgZ(8,"div",18)(9,"label")(10,"span"),s.SDv(11,19),s.qZA(),s._UZ(12,"input",20),s.qZA(),s.TgZ(13,"label")(14,"span"),s.SDv(15,21),s.qZA(),s._UZ(16,"input",22),s.qZA()(),s.YNc(17,pt,2,0,"span",23),s.qZA()}if(2&Ge){const $=s.oxw();s.xp6(8),s.Q6J("formGroup",$.durationInputs),s.xp6(8),s.Q6J("ngStyle",s.VKq(3,Be,null!=$.durationInputs&&null!=$.durationInputs.controls.inputTo.errors&&$.durationInputs.controls.inputTo.errors.inputTo||null!=$.durationInputs&&null!=$.durationInputs.controls.inputFrom.errors&&$.durationInputs.controls.inputFrom.errors.inputTo?"red":null)),s.xp6(1),s.Q6J("ngIf",(null==$.durationInputs||null==$.durationInputs.controls.inputTo.errors?null:$.durationInputs.controls.inputTo.errors.inputTo)||(null==$.durationInputs||null==$.durationInputs.controls.inputFrom.errors?null:$.durationInputs.controls.inputFrom.errors.inputTo))}}let gt=(()=>{class Ge{constructor(){this.isDurationList=!0}ngOnInit(){this.durationInputs=new C.nJ({inputFrom:new C.p4(null,[C.kI.required,this.checkInputsValidator("inputTo")]),inputTo:new C.p4(null,[this.checkInputsValidator("inputFrom")])}),this.getLabels(),this.setValues()}ngOnChanges($){$.max&&!$.max.firstChange&&this.getLabels(),$.selected&&!$.selected.firstChange&&this.setValues()}getLabels(){const $="noites",ie=[{id:1,label:"1 - 2 "+$,value:{fromValue:1,toValue:2},checked:!1},{id:2,label:"3 - 5 "+$,value:{fromValue:3,toValue:5},checked:!1},{id:3,label:"6 - 11 "+$,value:{fromValue:6,toValue:11},checked:!1},{id:4,label:"12 "+"ou mais",value:{fromValue:12,toValue:this.max},checked:!1}].filter(q=>this.options.some(Q=>{switch(q.id){case 1:return Q<=q.value.toValue;case 2:case 3:return Q>=q.value.fromValue&&Q<=q.value.toValue;case 4:return Q>=q.value.fromValue}}));this.hasMoreDurations=!0,this.labels=ie}setValues(){if(this.selected.fromValue&&this.selected.toValue){const $=this.labels.find(x=>x.value.fromValue===this.selected.fromValue&&x.value.toValue===this.selected.toValue);$?$.checked=!0:(this.labels.forEach(x=>x.checked=!1),this.durationInputs?.setValue({inputFrom:this.selected.fromValue,inputTo:this.selected.toValue}),this.isDurationList=!1)}else this.labels.forEach($=>$.checked=!1),this.durationInputs?.reset()}selectDuration($){this.durationInputs?.reset(),this.labels.forEach(q=>q.checked=!1);const x=+$.target.id,ie=this.labels.find(q=>q.id===x);ie.checked=!0,this.selected.fromValue=ie.value.fromValue,this.selected.toValue=ie.value.toValue}changeView(){this.isDurationList=!this.isDurationList}confirmValues(){const $=this.durationInputs?.get("inputFrom")?.value,x=this.durationInputs?.get("inputTo")?.value;this.durationInputs?.valid&&!this.isDurationList&&(x?(this.selected.fromValue=$,this.selected.toValue=x):(this.durationInputs.patchValue({inputTo:$}),this.selected.fromValue=$,this.selected.toValue=$)),this.isDurationList=!($&&x)}clear(){this.selected.fromValue=null,this.selected.toValue=null,this.labels.forEach($=>$.checked=!1),this.durationInputs?.reset()}checkInputsValidator($){return x=>{const ie=this.durationInputs?.get($);return ie?.value&&x?.value?"inputFrom"===$?ie.value>x.value?{inputTo:!0}:(ie.setErrors(null),null):ie.value<x.value?{inputTo:!0}:(ie.setErrors(null),null):null}}}return Ge.\u0275fac=function($){return new($||Ge)},Ge.\u0275cmp=s.Xpm({type:Ge,selectors:[["app-duration"]],inputs:{options:"options",selected:"selected",max:"max",min:"min"},features:[s.TTD],decls:4,vars:2,consts:function(){let Y,$,x,ie,q,Q,ne;return Y="Limpar",$="Outro per\xEDodo",x="Voltar",ie="Digite a dura\xE7\xE3o desejada",q="De",Q="At\xE9",ne="* Esta dura\xE7\xE3o precisa ser maior que a outra",[["class","duration-container",4,"ngIf"],["class","duration-others",4,"ngIf"],["type","button",1,"duration-container__clear",3,"click"],Y,[1,"duration-container"],[1,"duration-options"],[4,"ngFor","ngForOf"],["class","duration-options__label",3,"click",4,"ngIf"],[1,"duration-options__label",3,"for","ngStyle"],["type","radio","name","duration",3,"id","value","checked","change"],[1,"icon-check",3,"ngStyle"],[1,"duration-options__label",3,"click"],$,[1,"duration-others"],[1,"duration-others__back",3,"click"],[1,"icon-arrow-left"],x,ie,[3,"formGroup"],q,["type","number","name","durationFrom","formControlName","inputFrom","onkeypress","return event.charCode >= 48 && event.charCode <= 57",1,"duration-dropdown__input-min"],Q,["type","number","name","durationTo","formControlName","inputTo","onkeypress","return event.charCode >= 48 && event.charCode <= 57",1,"duration-dropdown__input-max",3,"ngStyle"],["class","text-danger",4,"ngIf"],[1,"text-danger"],ne]},template:function($,x){1&$&&(s.YNc(0,Tt,4,2,"div",0),s.YNc(1,ft,18,5,"div",1),s.TgZ(2,"button",2),s.NdJ("click",function(){return x.clear()}),s.SDv(3,3),s.qZA()),2&$&&(s.Q6J("ngIf",x.isDurationList),s.xp6(1),s.Q6J("ngIf",!x.isDurationList))},dependencies:[e.sg,e.O5,e.PC,C.Fj,C.wV,C.JJ,C.JL,C.sg,C.u]}),Ge})();function Et(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"div",7)(1,"app-form-dropdown",31),s.NdJ("closeEvent",function(){s.CHM($);const ie=s.MAs(3),q=s.oxw(2);return ie.confirmValues(),s.KtG(q.onFormChange())}),s._UZ(2,"app-duration",32,33),s.qZA()()}if(2&Ge){const $=s.oxw(2);s.xp6(1),s.Q6J("value",$.getDurationLabel.labelValue)("isDefaultLabel",$.getDurationLabel.isDefaultLabel)("disabledDrop",$.isCampoDesabilitado("Duration")),s.xp6(1),s.Q6J("options",$.filterOptions.duration.options)("selected",$.filterOptions.duration.selected)("min",$.filterOptions.duration.min)("max",$.filterOptions.duration.max)}}function Mt(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"app-form-dropdown",36),s.NdJ("closeEvent",function(){s.CHM($);const ie=s.oxw(3);return s.KtG(ie.onFormChange())}),s.TgZ(1,"app-typeahead",16),s.NdJ("selectedCheckbox",function(){s.CHM($);const ie=s.oxw(3);return s.KtG(ie.updateTypeaheadLabel("ships"))}),s.qZA()()}if(2&Ge){const $=s.oxw(3);s.Q6J("value",$.shipsLabel.labelValue)("isDefaultLabel",$.shipsLabel.isDefaultLabel)("appFocusElement",".typeahead__input")("disabledDrop",$.isCampoDesabilitado("Cia or ship")),s.xp6(1),s.Q6J("options",$.filterOptions.ships.options)}}const Qt=function(){return[]};function ye(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"app-form-dropdown",37),s.NdJ("closeEvent",function(){s.CHM($);const ie=s.oxw(3);return s.KtG(ie.onFormChange())}),s.TgZ(1,"app-typeahead",16),s.NdJ("selectedCheckbox",function(){s.CHM($);const ie=s.oxw(3);return s.KtG(ie.updateTypeaheadLabel("ships"))}),s.qZA()()}if(2&Ge){const $=s.oxw(3);s.Q6J("value",$.shipsLabel.labelValue)("isDefaultLabel",$.shipsLabel.isDefaultLabel)("appFocusElement",".typeahead__input")("disabledDrop",$.isCampoDesabilitado("Ship")),s.xp6(1),s.Q6J("options",$.filterOptions.ships.options.length>0?$.filterOptions.ships.options[0].children:s.DdM(5,Qt))}}function Ae(Ge,Y){if(1&Ge&&(s.TgZ(0,"div",3),s.YNc(1,Mt,2,5,"app-form-dropdown",34),s.YNc(2,ye,2,6,"app-form-dropdown",35),s.qZA()),2&Ge){const $=s.oxw(2);s.xp6(1),s.Q6J("ngIf",!$.searchConfig.onlyShips),s.xp6(1),s.Q6J("ngIf",$.searchConfig.onlyShips)}}function A(Ge,Y){1&Ge&&s._UZ(0,"span",43)}function j(Ge,Y){1&Ge&&s._UZ(0,"span",44)}function he(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"div",38)(1,"input",39),s.NdJ("change",function(){s.CHM($);const ie=s.oxw(2);return s.KtG(ie.changeArrivalDeparture())}),s.qZA(),s.TgZ(2,"label",40),s.YNc(3,A,1,0,"span",41),s.YNc(4,j,1,0,"span",42),s.qZA()()}if(2&Ge){const $=s.oxw(2);s.xp6(1),s.Q6J("disabled",$.isCampoDesabilitado("LockBit"))("checked",!0===$.filterOptions.arrivalDepartureSamePort.selected),s.xp6(2),s.Q6J("ngIf",!0!==$.filterOptions.arrivalDepartureSamePort.selected&&!$.isCampoDesabilitado("LockBit")),s.xp6(1),s.Q6J("ngIf",!0===$.filterOptions.arrivalDepartureSamePort.selected||$.isCampoDesabilitado("LockBit"))}}const De=function(Ge){return{"no-lock":Ge}};function We(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"div",45)(1,"app-form-dropdown",46),s.NdJ("closeEvent",function(){s.CHM($);const ie=s.oxw(2);return s.KtG(ie.onFormChange())}),s.TgZ(2,"app-typeahead",16),s.NdJ("selectedCheckbox",function(){s.CHM($);const ie=s.oxw(2);return s.KtG(ie.updateTypeaheadLabel("arrive"))}),s.qZA()()()}if(2&Ge){const $=s.oxw(2);s.Q6J("ngClass",s.VKq(8,De,!$.screenSize.isDown("lg")&&$.isCompact&&!$.showMobileAdvancedSearch)),s.xp6(1),s.Q6J("id","form-dropdown-arrive")("lockBit",$.filterOptions.arrivalDepartureSamePort.selected)("value",$.arriveLabel.labelValue)("isDefaultLabel",$.arriveLabel.isDefaultLabel)("appFocusElement",".typeahead__input")("disabledDrop",$.isCampoDesabilitado("Arrive")),s.xp6(1),s.Q6J("options",$.filterOptions.arrive.options)}}function Qe(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"div",47)(1,"app-form-dropdown",48),s.NdJ("closeEvent",function(){s.CHM($);const ie=s.MAs(3);return s.oxw(2).onFormChange(),s.KtG(ie.clearInput())}),s.TgZ(2,"app-typeahead-async",49,50),s.NdJ("selectedCheckbox",function(){s.CHM($);const ie=s.oxw(2);return s.KtG(ie.updateTypeaheadLabel("portsOfCall"))})("updateQuery",function(ie){s.CHM($);const q=s.oxw(2);return s.KtG(q.onPortOfCallChange(ie))})("getSearch",function(ie){s.CHM($);const q=s.oxw(2);return s.KtG(q.getPortOfCall(ie))}),s.qZA()()()}if(2&Ge){const $=s.oxw(2);s.xp6(1),s.Q6J("appFocusElement",".typeahead__input")("value",$.portOfCallLabel.labelValue)("isDefaultLabel",$.portOfCallLabel.isDefaultLabel)("disabledDrop",$.isCampoDesabilitado("Port of call")),s.xp6(1),s.Q6J("asyncSearchResult",$.filterOptions.portsOfCall.options)("asyncSelectedOptions",$.filterOptions.portsOfCall.selected)}}function Ye(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"button",51),s.NdJ("click",function(){s.CHM($);const ie=s.oxw(2);return s.KtG(ie.toggleAdvancedSearch(!ie.showMobileAdvancedSearch))}),s.TgZ(1,"span"),s.SDv(2,52),s.qZA(),s._UZ(3,"i"),s.qZA()}if(2&Ge){const $=s.oxw(2);s.xp6(3),s.Tol($.showMobileAdvancedSearch?"icon-chevron-up":"icon-chevron-down")}}const Oe=function(Ge){return{"advanced-search":Ge}};function Ke(Ge,Y){if(1&Ge){const $=s.EpF();s.TgZ(0,"form",1),s.NdJ("ngSubmit",function(){s.CHM($);const ie=s.oxw();return s.KtG(ie.onSubmit())}),s.TgZ(1,"div",2)(2,"div",3)(3,"app-form-dropdown",4),s.NdJ("closeEvent",function(){s.CHM($);const ie=s.oxw();return s.KtG(ie.onFormChange())}),s.TgZ(4,"app-typeahead",5),s.NdJ("confirmOptions",function(ie){s.CHM($);const q=s.oxw();return s.KtG(q.filterOptions.destination.options=ie)})("selectedCheckbox",function(){s.CHM($);const ie=s.oxw();return s.KtG(ie.updateTypeaheadLabel("destination"))}),s.qZA()()(),s.YNc(5,Et,4,7,"div",6),s.TgZ(6,"div",7)(7,"app-form-dropdown",8),s.NdJ("closeEvent",function(){s.CHM($);const ie=s.oxw();return s.KtG(ie.onFormChange())}),s.TgZ(8,"app-range-datepicker",9,10),s.NdJ("dateChange",function(ie){s.CHM($);const q=s.oxw();return s.KtG(q.onChangeDate(ie))}),s.qZA()()(),s.YNc(10,Ae,3,2,"div",11),s.TgZ(11,"div",7)(12,"app-form-dropdown",12),s.NdJ("closeEvent",function(){s.CHM($);const ie=s.oxw();return s.KtG(ie.onFormChange())}),s.TgZ(13,"app-passengers-picker",13),s.NdJ("dataChange",function(ie){s.CHM($);const q=s.oxw();return s.KtG(q.filterOptions.roomConfiguration.value=ie)}),s.qZA()()(),s.TgZ(14,"div",14)(15,"app-form-dropdown",15),s.NdJ("closeEvent",function(){s.CHM($);const ie=s.oxw();return s.KtG(ie.onFormChange())}),s.TgZ(16,"app-typeahead",16),s.NdJ("selectedCheckbox",function(){s.CHM($);const ie=s.oxw();return s.KtG(ie.updateTypeaheadLabel("departure"))}),s.qZA()(),s.YNc(17,he,5,4,"div",17),s.qZA(),s.YNc(18,We,3,10,"div",18),s.YNc(19,Qe,4,6,"div",19),s.qZA(),s.TgZ(20,"div",20)(21,"div",21),s.YNc(22,Ye,4,2,"button",22),s.qZA(),s.TgZ(23,"div",23)(24,"button",24),s.NdJ("click",function(){s.CHM($);const ie=s.oxw();return s.KtG(ie.resetForm())}),s.SDv(25,25),s.qZA(),s.TgZ(26,"button",26),s.SDv(27,27),s.qZA(),s.TgZ(28,"button",28),s.NdJ("click",function(){s.CHM($);const ie=s.oxw();return s.KtG(ie.openModalImportLoc())}),s._uU(29,"Importa loc"),s.qZA()(),s.TgZ(30,"div",29),s._UZ(31,"div",30),s.qZA()()()}if(2&Ge){const $=s.oxw();s.Q6J("ngClass",s.VKq(36,Oe,$.showMobileAdvancedSearch)),s.xp6(3),s.Q6J("appFocusElement",".typeahead__input")("value",$.destinationLabel.labelValue)("isDefaultLabel",$.destinationLabel.isDefaultLabel)("disabledDrop",$.isCampoDesabilitado("Destination")),s.xp6(1),s.Q6J("options",$.filterOptions.destination.options),s.xp6(1),s.Q6J("ngIf",!$.isCompact||$.showMobileAdvancedSearch),s.xp6(2),s.Q6J("value",$.getDateLabel.labelValue)("isDefaultLabel",$.getDateLabel.isDefaultLabel)("disabledDrop",$.isCampoDesabilitado("Date")),s.xp6(1),s.Q6J("fromDate",$.filterOptions.dates.selected.fromValue)("toDate",$.filterOptions.dates.selected.toValue)("minDate",$.filterOptions.dates.min)("maxDate",$.filterOptions.dates.max)("displayMonths",$.isCompact?1:2)("availableDates",$.filterOptions.dates.options),s.xp6(2),s.Q6J("ngIf",!$.isCompact||$.showMobileAdvancedSearch),s.xp6(2),s.Q6J("value",$.getPaxLabel.labelValue)("isDefaultLabel",$.getPaxLabel.isDefaultLabel)("disabledDrop",$.isCampoDesabilitado("Passengers")),s.xp6(1),s.Q6J("data",$.filterOptions.roomConfiguration.value)("roomConfigurationInput",$.filterOptions.roomConfiguration)("nkzConfig",$.nkzPaxPickerConfig),s.xp6(1),s.Q6J("ngClass",s.VKq(38,De,!$.screenSize.isDown("lg")&&$.isCompact&&!$.showMobileAdvancedSearch)),s.xp6(1),s.Q6J("label",$.getDepartureLabel())("id","form-dropdown-departure")("lockBit",$.filterOptions.arrivalDepartureSamePort.selected)("value",$.departureLabel.labelValue)("isDefaultLabel",$.departureLabel.isDefaultLabel)("appFocusElement",".typeahead__input")("disabledDrop",$.isCampoDesabilitado("Departure")),s.xp6(1),s.Q6J("options",$.filterOptions.departure.options),s.xp6(1),s.Q6J("ngIf",!(!$.screenSize.isDown("lg")&&$.isCompact&&!$.showMobileAdvancedSearch)),s.xp6(1),s.Q6J("ngIf",!(!$.screenSize.isDown("lg")&&$.isCompact&&!$.showMobileAdvancedSearch)),s.xp6(1),s.Q6J("ngIf",!$.isCompact||$.showMobileAdvancedSearch),s.xp6(3),s.Q6J("ngIf",$.isCompact)}}let yt=(()=>{class Ge{constructor($,x,ie,q,Q){this.searchService=$,this.screenSize=x,this.config=ie,this.modalService=q,this.gtmKzService=Q,this.fieldsToDisable=[],this.changeForm=new s.vpe,this.submitForm=new s.vpe,this.dateFormat="yyyy-MM-dd",this.showMobileAdvancedSearch=!1,this.shipsLabel={labelValue:"",isDefaultLabel:!0},this.destinationLabel={labelValue:"",isDefaultLabel:!0},this.arriveLabel={labelValue:"",isDefaultLabel:!0},this.departureLabel={labelValue:"",isDefaultLabel:!0},this.portOfCallLabel={labelValue:"",isDefaultLabel:!0}}ngOnInit(){this.filterOptionsSubscription=this.searchService.searchFiltersInfo$.subscribe($=>{this.filterOptions=$.filterOptions,this.availableLocations=$.availableLocations.locations,this.shipsLabel=this.getTypeaheadLabel("ships"),this.destinationLabel=this.getTypeaheadLabel("destination"),this.arriveLabel=this.getTypeaheadLabel("arrive"),this.departureLabel=this.getTypeaheadLabel("departure"),this.portOfCallLabel=this.getPortOfCallLabel()})}ngOnDestroy(){this.filterOptionsSubscription?.unsubscribe()}toggleAdvancedSearch($){this.showMobileAdvancedSearch=$,this.searchService.toggleAdvancedSearch($)}onPortOfCallChange($){this.searchService.selectPortOfCall($)}onFormChange($=!1){this.changeForm.emit($)}onSubmit(){this.gtmKzService.pushClickSearch(this.filterOptions,this.availableLocations),this.submitForm.emit(!0)}onChangeDate($){this.filterOptions.dates.selected.fromValue=$.fromDate,this.filterOptions.dates.selected.toValue=$.toDate}resetForm(){this.updateTypeaheadLabel("destination"),this.updateTypeaheadLabel("ships"),this.updateTypeaheadLabel("departure"),this.updateTypeaheadLabel("arrive"),this.updateTypeaheadLabel("portsOfCall"),this.onFormChange(!0)}updateSelectedOptions($,x){this.filterOptions[$].options=x}isCampoDesabilitado($){return this.fieldsToDisable.includes($)}updateTypeaheadLabel($){switch($){case"destination":this.destinationLabel=this.getTypeaheadLabel("destination");break;case"ships":this.shipsLabel=this.getTypeaheadLabel("ships");break;case"departure":this.departureLabel=this.getTypeaheadLabel("departure");break;case"arrive":this.arriveLabel=this.getTypeaheadLabel("arrive");break;case"portsOfCall":this.portOfCallLabel=this.getPortOfCallLabel();break;default:return "Qualquer"}}getTypeaheadLabel($){let x,ie;if(!this.filterOptions)return ie=!0,x=this.getDefaultSelectedOptions($),{labelValue:x,isDefaultLabel:ie};const q=this.getSelectedTypeahead($);return q&&q.length>0?(ie=!1,x=q.toString().replace(/,/g,", ")):(ie=!0,x=this.getDefaultSelectedOptions($)),{labelValue:x,isDefaultLabel:ie}}getDefaultSelectedOptions($){switch($){case"destination":return "Qualquer destino";case"ships":return "Qualquer navio";case"departure":return "Qualquer porto";case"arrive":return this.filterOptions.arrivalDepartureSamePort.selected?"Mesmo porto do embarque":"Qualquer porto";default:return "Qualquer"}}getSelectedTypeahead($){const x=this.filterOptions[$].options.filter(ie=>{const q=ie.children?.filter(Q=>Q.checked).length>0;return ie.isMarked||q});if(x.length>0){const ie=[];return x.forEach(q=>{q.isMarked?ie.push(q.name):q.children?.filter(ne=>ne.checked).forEach(ne=>{ie.push(ne.name)})}),ie}}getPortOfCallLabel(){const $=this.filterOptions.portsOfCall.selected,x=[];let ie,q;return $.length>0?($.forEach(Q=>{x.push(Q.name)}),ie=x.toString().replace(/,/g,", "),q=!1):(ie="Qualquer porto",q=!0),{labelValue:ie,isDefaultLabel:q}}getPortOfCall($){this.searchService.getPortOfCall($)}getShipLabel(){return this.getTypeaheadLabel("ships")}get getPaxLabel(){let x,ie;x=this.filterOptions.roomConfiguration.value.Rooms[0].PaxAges.length;const q="Passageiro",Q="Passageiros";return ie=x>1?Q.toLocaleLowerCase():q.toLocaleLowerCase(),{labelValue:`${x} ${ie}`,isDefaultLabel:2===x}}get getDurationLabel(){const $=this.filterOptions.duration.selected.fromValue,x=this.filterOptions.duration.selected.toValue;let ie,q;return $===this.filterOptions.duration.min&&x===this.filterOptions.duration.max||!$||!x?(ie="Qualquer dura\xE7\xE3o",q=!0):(ie=`${$} - ${x} ${"Noites".toLocaleLowerCase()}`,q=!1),{labelValue:ie,isDefaultLabel:q}}convertNgbDate($){return $?new Date($.year,$.month-1,$.day):null}get nkzPaxPickerConfig(){return{maxPaxPerRoom:this.filterOptions.roomConfiguration.maxCapacity,maxRoomsForSelection:this.filterOptions.roomConfiguration.value.totalRooms}}get getDateLabel(){const $=K.j.ngbDateToKzDate(this.filterOptions.dates.selected.fromValue),x=K.j.ngbDateToKzDate(this.filterOptions.dates.selected.toValue);let ie,q;return $&&!x&&this.config.config?(ie=!1,q=(0,e.p6)($,"dd MMMM yy",this.config.config.culture)):$&&x&&this.config.config?(ie=!1,q=$.getTime()===x.getTime()?(0,e.p6)($,"dd MMMM yy",this.config.config.culture):$.getFullYear()!==x.getFullYear()?`${(0,e.p6)($,"dd MMMM yy",this.config.config.culture)} - ${(0,e.p6)(x,"dd MMMM yy",this.config.config.culture)}`:$.getMonth()!==x.getMonth()?`${(0,e.p6)($,"dd MMMM",this.config.config.culture)} - ${(0,e.p6)(x,"dd MMMM yy",this.config.config.culture)}`:`${(0,e.p6)($,"dd",this.config.config.culture)} - ${(0,e.p6)(x,"dd MMMM yy",this.config.config.culture)}`):(ie=!0,q="Qualquer data"),{labelValue:q,isDefaultLabel:ie}}openModalImportLoc(){this.modalService.openModal(O,{size:"sm"})}changeArrivalDeparture(){this.filterOptions.arrivalDepartureSamePort.selected=null===this.filterOptions.arrivalDepartureSamePort.selected,this.onFormChange()}getDepartureLabel(){return this.filterOptions.arrivalDepartureSamePort.selected?"embarque e desembarque":"Embarque"}}return Ge.\u0275fac=function($){return new($||Ge)(s.Y36(H.o),s.Y36(z.O),s.Y36(N.q),s.Y36(E.Z),s.Y36(y.q))},Ge.\u0275cmp=s.Xpm({type:Ge,selectors:[["app-search-form"]],inputs:{searchConfig:"searchConfig",isCompact:"isCompact",fieldsToDisable:"fieldsToDisable"},outputs:{changeForm:"changeForm",submitForm:"submitForm"},decls:1,vars:1,consts:function(){let Y,$,x,ie,q,Q,ne,ve,Pe,_t,rt,It;return Y="Destinos",$="Data",x="Passageiro",ie="Limpar busca",q="Buscar",Q="Dura\xE7\xE3o",ne="Companhia ou navio",ve="Navio",Pe="Usar o mesmo porto do embarque no desembarque",_t="Desembarque",rt="Passar por",It="Busca avan\xE7ada",[["class","search-form",3,"ngClass","ngSubmit",4,"ngIf"],[1,"search-form",3,"ngClass","ngSubmit"],[1,"search-form__fields","row"],[1,"col-12","col-lg-3","col-xl-3"],["icon","map-pin","label",Y,3,"appFocusElement","value","isDefaultLabel","disabledDrop","closeEvent"],[3,"options","confirmOptions","selectedCheckbox"],["class","col-12 col-lg-3 col-xl-2",4,"ngIf"],[1,"col-12","col-lg-3","col-xl-2"],["icon","calendar","label",$,3,"value","isDefaultLabel","disabledDrop","closeEvent"],[3,"fromDate","toDate","minDate","maxDate","displayMonths","availableDates","dateChange"],["datePicker",""],["class","col-12 col-lg-3 col-xl-3",4,"ngIf"],["icon","user","label",x,"appFocusElement",".quantity-picker__button.plus",3,"value","isDefaultLabel","disabledDrop","closeEvent"],[3,"data","roomConfigurationInput","nkzConfig","dataChange"],[1,"col-12","col-lg-3","col-xl-3","search-form__departure",3,"ngClass"],["icon","arrow-up-right",3,"label","id","lockBit","value","isDefaultLabel","appFocusElement","disabledDrop","closeEvent"],[3,"options","selectedCheckbox"],["class","search-form__checkbox-lock",4,"ngIf"],["class","col-12 col-lg-3 col-xl-4 search-form__arrive",3,"ngClass",4,"ngIf"],["class","col-12 col-lg-3 col-xl-5 search-form__port-of-call",4,"ngIf"],[1,"search-form__footer"],[1,"search-form__results"],["type","button","class","btn btn-link p-0",3,"click",4,"ngIf"],[1,"search-form__action"],["type","button",1,"btn","btn-link",3,"click"],ie,["type","submit",1,"btn","btn-primary","button-search-home"],q,["type","button","id","button-search-import-loc",1,"btn","btn-outline-primary","ml-2",3,"click"],[1,"search-form__action","search-form__action--loading"],[1,"load-spinner","load-spinner--md"],["icon","clock","label",Q,3,"value","isDefaultLabel","disabledDrop","closeEvent"],[3,"options","selected","min","max"],["duration",""],["icon","anchor","label",ne,3,"value","isDefaultLabel","appFocusElement","disabledDrop","closeEvent",4,"ngIf"],["icon","anchor","label",ve,3,"value","isDefaultLabel","appFocusElement","disabledDrop","closeEvent",4,"ngIf"],["icon","anchor","label",ne,3,"value","isDefaultLabel","appFocusElement","disabledDrop","closeEvent"],["icon","anchor","label",ve,3,"value","isDefaultLabel","appFocusElement","disabledDrop","closeEvent"],[1,"search-form__checkbox-lock"],["type","checkbox","id","arrivalDepartureSamePort",1,"form-check-input",3,"disabled","checked","change"],["for","arrivalDepartureSamePort","aria-label","Arrival departure same port","ngbTooltip",Pe,1,"form-check-label","ml-1"],["class","bg-unlock",4,"ngIf"],["class","bg-lock",4,"ngIf"],[1,"bg-unlock"],[1,"bg-lock"],[1,"col-12","col-lg-3","col-xl-4","search-form__arrive",3,"ngClass"],["icon","arrow-down-right","label",_t,3,"id","lockBit","value","isDefaultLabel","appFocusElement","disabledDrop","closeEvent"],[1,"col-12","col-lg-3","col-xl-5","search-form__port-of-call"],["icon","crosshair","label",rt,1,"portOfCall",3,"appFocusElement","value","isDefaultLabel","disabledDrop","closeEvent"],[3,"asyncSearchResult","asyncSelectedOptions","selectedCheckbox","updateQuery","getSearch"],["portsOfCall",""],["type","button",1,"btn","btn-link","p-0",3,"click"],It]},template:function($,x){1&$&&s.YNc(0,Ke,32,40,"form",0),2&$&&s.Q6J("ngIf",x.filterOptions&&x.searchConfig)},dependencies:[e.mk,e.O5,C._Y,C.JL,C.F,U.v,b.l,G.t,qe,wt.V,re,gt,F._L],styles:[".search-form[_ngcontent-%COMP%]{border:1px solid #e7e7e7;padding:1rem}.search-form__footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-top:1rem}.search-form__fields[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:1rem}.search-form__checkbox-lock[_ngcontent-%COMP%]{position:absolute;bottom:-5px;right:-10px;z-index:1;transform:translateY(-50%);padding:2px}@media (max-width: 991px){.search-form__checkbox-lock[_ngcontent-%COMP%]{bottom:-38px;right:29px}}.search-form__checkbox-lock[_ngcontent-%COMP%]   .form-check-input[type=checkbox][_ngcontent-%COMP%]{display:none}.search-form__checkbox-lock[_ngcontent-%COMP%]   .form-check-input[type=checkbox][_ngcontent-%COMP%] + .form-check-label[_ngcontent-%COMP%]{display:inline-block;margin:0;cursor:pointer;opacity:.8}.search-form__checkbox-lock[_ngcontent-%COMP%]   .form-check-input[type=checkbox][_ngcontent-%COMP%] + .form-check-label[_ngcontent-%COMP%]:hover{opacity:1}.search-form__checkbox-lock[_ngcontent-%COMP%]   .form-check-input[type=checkbox][_ngcontent-%COMP%] + .form-check-label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:inline-block;width:16px;height:16px}.search-form__checkbox-lock[_ngcontent-%COMP%]   .form-check-input[type=checkbox][_ngcontent-%COMP%] + .form-check-label[_ngcontent-%COMP%] > span.bg-unlock[_ngcontent-%COMP%]{background:url(https://media.krooze.com.br/icons/lock-unlock.svg) no-repeat center center;background-size:contain}.search-form__checkbox-lock[_ngcontent-%COMP%]   .form-check-input[type=checkbox][_ngcontent-%COMP%] + .form-check-label[_ngcontent-%COMP%] > span.bg-lock[_ngcontent-%COMP%]{background:url(https://media.krooze.com.br/icons/lock-1.svg) no-repeat 0px center;background-size:contain}.search-form__checkbox-lock[_ngcontent-%COMP%]   .form-check-input[type=checkbox][_ngcontent-%COMP%]:checked + .form-check-label[_ngcontent-%COMP%]{color:#000}.search-form__departure[_ngcontent-%COMP%]{position:relative}.search-form__departure.no-lock[_ngcontent-%COMP%]     .dropdown-toggle.form-dropdown__input{background-image:none!important;background-image:initial!important}.search-form__departure.no-lock[_ngcontent-%COMP%]     .dropdown-toggle.form-dropdown__input:before{display:none!important}.search-form[_ngcontent-%COMP%]   .duration-dropdown[_ngcontent-%COMP%]{padding:1rem}.search-form__results[_ngcontent-%COMP%]{color:#ccc}"]}),Ge})()},83857:(Xe,me,h)=>{"use strict";h.d(me,{$:()=>At});var e=h(94650),s=h(12931),K=h(11481),F=h(59273),Z=h(27722),O=h(36895),H=h(27297),z=h(43740),N=h(50348),E=h(16636),y=h(66451);function C(qe,wt){if(1&qe&&e._UZ(0,"app-rating",26),2&qe){const re=e.oxw().$implicit;e.Q6J("score",re.rating.score)("votes",re.rating.votes)("reference",re.rating.reference)}}function U(qe,wt){if(1&qe&&e._UZ(0,"app-loyalty-accrual-info",33),2&qe){const re=e.oxw().$implicit,Ee=e.oxw().$implicit,Ve=e.oxw();e.Q6J("isPopoverContent",!0)("totalPrice",re.totalAmount)("cabinAmountWithNCF",re.cabinAmountWithNCF)("loyalty",Ve.loyalty)("searchResult",Ee)("departure",Ee)("filterOptions",Ve.searchInfo.filterOptions)("fare",re)("currencyInfo",Ve.searchInfo.searchConfig.currency)("pricePaxMessage",Ve.getPricePax()+"\n"+Ve.getPriceTax())}}function b(qe,wt){if(1&qe){const re=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){e.CHM(re);const Ve=e.oxw().$implicit,Le=e.oxw(2);return e.KtG(Le.openDealsDetail(Ve.deals))}),e.qZA()}if(2&qe){const re=e.oxw().$implicit;e.Gre("price-options__promotion deals-",re.deals&&re.deals.length>0?re.deals[0].type:"",""),e.s9C("ngbTooltip",re.dealsTooltip)}}function G(qe,wt){if(1&qe&&(e.TgZ(0,"div",35),e._uU(1),e.ALo(2,"kzcurrency"),e.qZA()),2&qe){const re=e.oxw().$implicit,Ee=e.oxw(2);e.xp6(1),e.hij(" ",e.Dn7(2,1,re.price,Ee.searchInfo.searchConfig.currency,null==re.loyalty?null:re.loyalty.redeem)," ")}}function w(qe,wt){1&qe&&(e.TgZ(0,"div",35)(1,"span",36),e._uU(2,"\u2014\u2014"),e.qZA()())}const ee=function(qe,wt){return{"cheapest-fare":qe,"price-options__hilight":wt}},oe=function(qe){return{"cheapest-fare":qe}};function _e(qe,wt){if(1&qe){const re=e.EpF();e.TgZ(0,"div",27),e.YNc(1,U,1,10,"ng-template",null,28,e.W1O),e.YNc(3,b,1,4,"button",29),e.TgZ(4,"button",30),e.NdJ("click",function(Ve){const Dt=e.CHM(re).$implicit,Tt=e.oxw().$implicit,pt=e.oxw();return e.KtG(pt.selectFare(Tt,Ve,Dt))}),e.TgZ(5,"span",31),e._uU(6),e.qZA(),e.YNc(7,G,3,5,"div",32),e.YNc(8,w,3,0,"div",32),e.qZA()()}if(2&qe){const re=wt.$implicit,Ee=e.MAs(2),Ve=e.oxw(2);e.Q6J("ngClass",e.WLB(9,ee,re.isCheapest,re.deals&&re.deals.length>0)),e.xp6(3),e.Q6J("ngIf",re.hasDeals),e.xp6(1),e.Q6J("ngClass",e.VKq(12,oe,re.isCheapest))("disabled",!re.price)("ngbPopover",Ee)("triggers",Ve.loyalty?"mouseenter:mouseleave":""),e.xp6(2),e.Oqu(re.type),e.xp6(1),e.Q6J("ngIf",re.price),e.xp6(1),e.Q6J("ngIf",!re.price)}}function Ne(qe,wt){if(1&qe){const re=e.EpF();e.TgZ(0,"button",38),e.NdJ("click",function(){e.CHM(re);const Ve=e.oxw(2).$implicit,Le=e.oxw();return e.KtG(Le.openSailingBenefitsDetail(Ve))}),e._UZ(1,"span",39),e.qZA()}if(2&qe){const re=wt.$implicit;e.s9C("ngbTooltip",re.name),e.xp6(1),e.Q6J("iconCode",re.icon)("iconAlt",re.name)}}function te(qe,wt){if(1&qe&&(e.TgZ(0,"span"),e.YNc(1,Ne,2,3,"button",37),e.qZA()),2&qe){const re=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",re.sailingBenefitsTypes.thematic)}}function de(qe,wt){1&qe&&(e.TgZ(0,"span"),e._uU(1," | "),e.qZA())}function J(qe,wt){if(1&qe){const re=e.EpF();e.TgZ(0,"button",38),e.NdJ("click",function(){e.CHM(re);const Ve=e.oxw(2).$implicit,Le=e.oxw();return e.KtG(Le.openSailingBenefitsDetail(Ve))}),e._UZ(1,"span",39),e.qZA()}if(2&qe){const re=wt.$implicit;e.s9C("ngbTooltip",re.name),e.xp6(1),e.Q6J("iconCode",re.icon)("iconAlt",re.name)}}function Ie(qe,wt){if(1&qe&&(e.TgZ(0,"span"),e.YNc(1,J,2,3,"button",37),e.qZA()),2&qe){const re=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",re.sailingBenefitsTypes.cruise)}}function Ze(qe,wt){1&qe&&(e.TgZ(0,"span"),e.SDv(1,40),e.qZA())}function ot(qe,wt){1&qe&&(e.TgZ(0,"span"),e.SDv(1,41),e.qZA())}function lt(qe,wt){if(1&qe){const re=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"div",5),e.NdJ("click",function(){const Le=e.CHM(re).$implicit,Dt=e.oxw();return e.KtG(Dt.openShipDetail(Le,!0))}),e.TgZ(3,"span",6),e._uU(4),e.ALo(5,"date"),e.qZA(),e.TgZ(6,"span",7)(7,"div",8),e._uU(8),e.ALo(9,"uppercase"),e.ALo(10,"date"),e.qZA(),e.TgZ(11,"div",9),e._uU(12),e.ALo(13,"date"),e.qZA()()(),e.TgZ(14,"div",10),e.NdJ("click",function(){const Le=e.CHM(re).$implicit,Dt=e.oxw();return e.KtG(Dt.openShipDetail(Le,!0))}),e.TgZ(15,"div",11),e._uU(16),e.ALo(17,"number"),e.qZA(),e.TgZ(18,"div",12),e.SDv(19,13),e.qZA()(),e.TgZ(20,"div",14)(21,"button",15),e.NdJ("click",function(){const Le=e.CHM(re).$implicit,Dt=e.oxw();return e.KtG(Dt.openShipDetail(Le))}),e._uU(22),e.qZA(),e.YNc(23,C,1,3,"app-rating",16),e.TgZ(24,"div",17),e.NdJ("click",function(){const Le=e.CHM(re).$implicit,Dt=e.oxw();return e.KtG(Dt.openShipDetail(Le,!0))}),e._UZ(25,"i",18),e._uU(26),e.qZA()()(),e.TgZ(27,"div",19),e.YNc(28,_e,9,14,"div",20),e.qZA(),e.TgZ(29,"div",21)(30,"div",22),e.YNc(31,te,2,1,"span",23),e.YNc(32,de,2,0,"span",23),e.YNc(33,Ie,2,1,"span",23),e.qZA(),e.TgZ(34,"div",24)(35,"button",25),e.NdJ("click",function(Ve){const Dt=e.CHM(re).$implicit,Tt=e.oxw();return e.KtG(Tt.selectFare(Dt,Ve))}),e.YNc(36,Ze,2,0,"span",23),e.YNc(37,ot,2,0,"span",23),e.qZA()()()()}if(2&qe){const re=wt.$implicit,Ee=e.oxw();e.xp6(4),e.Oqu(e.xi3(5,15,Ee.handleDate(re.date),"dd")),e.xp6(4),e.Oqu(e.lcZ(9,18,e.xi3(10,20,Ee.handleDate(re.date),"MMM"))),e.xp6(4),e.Oqu(e.xi3(13,23,Ee.handleDate(re.date),"yyyy")),e.xp6(4),e.hij(" ",e.xi3(17,26,re.nights,"2.0-0")," "),e.xp6(3),e.pQV(re.nights),e.QtT(19),e.xp6(3),e.hij(" ",re.ship.name," "),e.xp6(1),e.Q6J("ngIf",re.rating),e.xp6(1),e.s9C("ngbTooltip",re.itinerary.name),e.xp6(2),e.hij(" ",re.itinerary.name," "),e.xp6(2),e.Q6J("ngForOf",re.fares),e.xp6(3),e.Q6J("ngIf",re.sailingBenefitsTypes.thematic.length>0),e.xp6(1),e.Q6J("ngIf",re.sailingBenefitsTypes.thematic.length>0&&re.sailingBenefitsTypes.cruise.length>0),e.xp6(1),e.Q6J("ngIf",re.sailingBenefitsTypes.cruise.length>0),e.xp6(3),e.Q6J("ngIf",re.cruiseLine.onlineBooking),e.xp6(1),e.Q6J("ngIf",!re.cruiseLine.onlineBooking)}}let At=(()=>{class qe{constructor(re,Ee,Ve){this.sanitizer=re,this.service=Ee,this.startupService=Ve,this.itens=[],this.selectFareEvent=new e.vpe,this.openShipInfoEvent=new e.vpe,this.openSailingBenefitsEvent=new e.vpe,this.openDealsEvent=new e.vpe,this.searchInfo={},this.searchResults={}}ngOnInit(){this.getFarePrice()}get price(){return 0}getFarePrice(){const re=this.searchInfo.filterOptions.priceByCabin,Ee=this.searchInfo.filterOptions.roomConfiguration.value.totalPax;this.itens.forEach(Ve=>{Ve.fares.forEach(Le=>{Le.price=re?this.searchInfo.filterOptions.taxAndFeesIncluded?Math.trunc(Le.totalAmount):Math.trunc(Le.cabinAmountWithNCF):this.searchInfo.filterOptions.taxAndFeesIncluded?Math.trunc(Le.totalAmount/Ee):Math.trunc(Le.cabinAmountWithNCF/Ee)})})}getPriceTax(){const re="Taxas j\xE1 inclusas",Ee="Mais taxas";return(this.searchInfo.filterOptions.taxAndFeesIncluded?re:Ee).toLocaleLowerCase()}getPricePax(){const Ee=this.searchInfo.filterOptions.roomConfiguration.value.totalPax,Ve=`${Ee} ${Ee>1?"Pessoas":"Pessoa"}`;return(this.searchInfo.filterOptions.priceByCabin?"para"+" "+Ve:"Por pessoa").toLocaleLowerCase()}printSvg(re){return this.sanitizer.bypassSecurityTrustHtml(re)}selectFare(re,Ee,Ve){re.code=re.sailingCode,this.selectFareEvent.emit({departure:re,fares:Ve||re.fares,eventClick:Ee})}openShipDetail(re,Ee=!1){const Ve=re.cruiseLine.code.toLowerCase();this.openShipInfoEvent.emit({shipId:re.ship.id,itineraryCode:re.itinerary.itineraryCode,itineraryMapCode:re.itinerary.itineraryMapCode,sailingDate:re.date,sailingBenefits:re.sailingBenefits,cruiseLineCode:Ve,showItineraryTabFirst:Ee,departureInfo:re})}openSailingBenefitsDetail(re){this.openSailingBenefitsEvent.emit(re)}openDealsDetail(re){this.openDealsEvent.emit(re)}handleDate(re){return(0,s.Mv)(re)}}return qe.\u0275fac=function(re){return new(re||qe)(e.Y36(K.H7),e.Y36(F.k),e.Y36(Z.q))},qe.\u0275cmp=e.Xpm({type:qe,selectors:[["app-search-results-date"]],inputs:{searchInfo:"searchInfo",searchResults:"searchResults",itens:"itens",loyalty:"loyalty"},outputs:{selectFareEvent:"selectFareEvent",openShipInfoEvent:"openShipInfoEvent",openSailingBenefitsEvent:"openSailingBenefitsEvent",openDealsEvent:"openDealsEvent"},decls:7,vars:7,consts:function(){let wt,re,Ee,Ve;return wt="{VAR_PLURAL, plural, =1 {noite} other {noites}}",wt=e.Zx4(wt,{VAR_PLURAL:"\ufffd0\ufffd"}),re="" + wt + "",Ee="Selecionar",Ve="Em breve",[[1,"search-result","search-result--date"],[1,"search-result__header"],["class","departure-options departure-options--data",4,"ngFor","ngForOf"],[1,"departure-options","departure-options--data"],[1,"departure-options__left-container"],["role","button",1,"departure-options__date",3,"click"],[1,"view-date__day"],[1,"view-date__group"],[1,"view-date__month"],[1,"view-date__year"],["role","button",1,"departure-options__nights",3,"click"],[1,"departure-options__nights__number"],[1,"departure-options__nights__description"],re,[1,"departure-options__info","departure-options__info--date"],["type","button",1,"departure-options__ship-info-button","btn","btn-link",3,"click"],[3,"score","votes","reference",4,"ngIf"],["placement","top-left","role","button",3,"ngbTooltip","click"],[1,"icon-map-pin"],[1,"departure-options__prices"],["class","price-options",3,"ngClass",4,"ngFor","ngForOf"],[1,"departure-options__content-button-icons"],[1,"departure-options__icons"],[4,"ngIf"],[1,"departure-options__actions"],["type","button",1,"btn","btn-outline-primary","btn-sm",3,"click"],[3,"score","votes","reference"],[1,"price-options",3,"ngClass"],["popContent",""],["type","button","container","body","triggers","hover",3,"class","ngbTooltip","click",4,"ngIf"],["type","button","popoverClass","popoverLoyaltyAccrual","container","body",1,"price-options__button",3,"ngClass","disabled","ngbPopover","triggers","click"],[1,"price-options__label"],["class","price-options__price",4,"ngIf"],[3,"isPopoverContent","totalPrice","cabinAmountWithNCF","loyalty","searchResult","departure","filterOptions","fare","currencyInfo","pricePaxMessage"],["type","button","container","body","triggers","hover",3,"ngbTooltip","click"],[1,"price-options__price"],[1,"price-options__price__currency"],["type","button","class","btn btn-link","container","body","triggers","hover",3,"ngbTooltip","click",4,"ngFor","ngForOf"],["type","button","container","body","triggers","hover",1,"btn","btn-link",3,"ngbTooltip","click"],["appIcon","",1,"departure-options__icon",3,"iconCode","iconAlt"],Ee,Ve]},template:function(re,Ee){1&re&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h2"),e._uU(3),e.ALo(4,"titlecase"),e.ALo(5,"date"),e.qZA()(),e.YNc(6,lt,38,29,"div",2),e.qZA()),2&re&&(e.xp6(3),e.Oqu(e.lcZ(4,2,e.xi3(5,4,Ee.handleDate(Ee.itens[0].date),"MMMM yyyy"))),e.xp6(3),e.Q6J("ngForOf",Ee.itens))},dependencies:[O.mk,O.sg,O.O5,H.x,z._L,N.D,E.a,z.o8,O.gd,O.JJ,O.rS,O.uU,y.L],encapsulation:2}),qe})()},88962:(Xe,me,h)=>{"use strict";h.d(me,{E:()=>Ge});var e=h(94650),s=h(72616),K=h(57484),F=h(79417),Z=h(27722),O=h(46038),H=h(36690),z=h(36895),N=h(27297),E=h(43740),y=h(50348),C=h(4422),U=h(16636),b=h(73478),G=h(55496),w=h(66451);function ee(Y,$){if(1&Y&&e._UZ(0,"img",13),2&Y){const x=e.oxw(2);e.Q6J("src",x.item.mapPath,e.LSH)("alt",null==x.item.itinerary?null:x.item.itinerary.name)}}function oe(Y,$){if(1&Y&&(e._UZ(0,"img",13),e.ALo(1,"contentImage")),2&Y){const x=e.oxw(2);e.Q6J("src",x.item.eventSummary.image,e.LSH)("alt",e.lcZ(1,2,x.item.eventSummary.name))}}function _e(Y,$){if(1&Y&&(e.TgZ(0,"div"),e._UZ(1,"i",14),e.TgZ(2,"span"),e.SDv(3,15),e.qZA(),e.TgZ(4,"span",16),e._uU(5,":"),e.qZA(),e._uU(6),e._UZ(7,"i",17),e.TgZ(8,"span"),e.SDv(9,18),e.qZA(),e.TgZ(10,"span",16),e._uU(11,":"),e.qZA(),e._uU(12),e.qZA()),2&Y){const x=e.oxw(2);e.xp6(6),e.hij(" ",null==x.item.departure?null:x.item.departure.name," "),e.xp6(6),e.hij(" ",null==x.item.arrive?null:x.item.arrive.name," ")}}function Ne(Y,$){if(1&Y&&(e.TgZ(0,"div"),e._UZ(1,"i",14)(2,"i",17),e.TgZ(3,"span"),e.SDv(4,19),e.qZA(),e.TgZ(5,"span",16),e._uU(6,":"),e.qZA(),e._uU(7),e.qZA()),2&Y){const x=e.oxw(2);e.xp6(7),e.hij(" ",null==x.item.departure?null:x.item.departure.name," ")}}function te(Y,$){if(1&Y&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Y){const x=e.oxw(3);e.xp6(1),e.Oqu(null==x.item.itinerary?null:x.item.itinerary.name)}}function de(Y,$){1&Y&&(e.TgZ(0,"span",22),e.SDv(1,23),e.qZA())}function J(Y,$){if(1&Y&&(e.ynx(0),e.TgZ(1,"h2"),e._UZ(2,"i",20),e._uU(3,"\xa0 "),e.YNc(4,te,2,1,"span",7),e.YNc(5,de,2,0,"span",21),e.qZA(),e.BQk()),2&Y){const x=e.oxw(2);e.xp6(4),e.Q6J("ngIf",null==x.item.itinerary?null:x.item.itinerary.name),e.xp6(1),e.Q6J("ngIf",!(null!=x.item.itinerary&&x.item.itinerary.name))}}function Ie(Y,$){if(1&Y&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Y){const x=e.oxw(3);e.xp6(1),e.Oqu(x.item.eventSummary.name)}}function Ze(Y,$){if(1&Y&&(e.TgZ(0,"p",25),e._UZ(1,"i",26),e._uU(2),e.qZA()),2&Y){const x=e.oxw(3);e.xp6(2),e.hij(" ",null==x.item.itinerary?null:x.item.itinerary.name," ")}}function ot(Y,$){if(1&Y&&(e.ynx(0),e.TgZ(1,"h2"),e.YNc(2,Ie,2,1,"span",7),e.qZA(),e.YNc(3,Ze,3,1,"p",24),e.BQk()),2&Y){const x=e.oxw(2);e.xp6(2),e.Q6J("ngIf",null==x.item.eventSummary?null:x.item.eventSummary.name),e.xp6(1),e.Q6J("ngIf",null==x.item.itinerary?null:x.item.itinerary.name)}}function lt(Y,$){if(1&Y&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"kzcurrency"),e.qZA()),2&Y){const x=e.oxw(2);e.xp6(1),e.hij(" ",e.Dn7(2,1,x.item.bestPrice,x.searchInfo.searchConfig.currency,null==x.item.loyalty?null:x.item.loyalty.redeem)," ")}}function At(Y,$){if(1&Y&&e._UZ(0,"app-loyalty-accrual-info",27),2&Y){const x=e.oxw(2);e.Q6J("loyalty",x.loyalty)("totalPrice",x.item.bestPrice)("cabinAmountWithNCF",x.item.bestCabinAmountWithNCF)("currencyInfo",x.searchInfo.searchConfig.currency)("filterOptions",x.searchInfo.filterOptions)}}function qe(Y,$){if(1&Y&&(e.TgZ(0,"span",30),e._uU(1),e.qZA()),2&Y){const x=$.$implicit;e.xp6(1),e.Oqu(x)}}function wt(Y,$){if(1&Y&&(e.TgZ(0,"div",28),e.YNc(1,qe,2,1,"span",29),e.qZA()),2&Y){const x=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",x.item.commonAmenities)}}function re(Y,$){1&Y&&(e.TgZ(0,"span",56),e._uU(1,"\u2022"),e.qZA())}function Ee(Y,$){if(1&Y){const x=e.EpF();e.TgZ(0,"button",59),e.NdJ("click",function(){e.CHM(x);const q=e.oxw(2).$implicit,Q=e.oxw(2);return e.KtG(Q.openSailingBenefitsDetail(q))}),e._UZ(1,"span",60),e.qZA()}if(2&Y){const x=$.$implicit;e.s9C("ngbTooltip",x.name),e.xp6(1),e.Q6J("iconCode",x.icon)("iconAlt",x.name)}}function Ve(Y,$){if(1&Y&&(e.TgZ(0,"span",57),e.YNc(1,Ee,2,3,"button",58),e._uU(2," \u2022 "),e.qZA()),2&Y){const x=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",x.sailingBenefitsTypes.date)}}function Le(Y,$){1&Y&&(e.TgZ(0,"span",61),e._uU(1,"\u2022"),e.qZA())}function Dt(Y,$){if(1&Y&&e._UZ(0,"app-rating",62),2&Y){const x=e.oxw().$implicit;e.Q6J("score",x.rating.score)("votes",x.rating.votes)("reference",x.rating.reference)}}function Tt(Y,$){if(1&Y&&e._UZ(0,"app-loyalty-accrual-info",69),2&Y){const x=e.oxw().$implicit,ie=e.oxw().$implicit,q=e.oxw(2);e.Q6J("isPopoverContent",!0)("totalPrice",x.totalAmount)("cabinAmountWithNCF",x.cabinAmountWithNCF)("loyalty",q.loyalty)("searchResult",q.item)("departure",ie)("filterOptions",q.searchInfo.filterOptions)("fare",x)("currencyInfo",q.searchInfo.searchConfig.currency)("pricePaxMessage",q.getPricePax()+"\n"+q.getPriceTax())}}function pt(Y,$){if(1&Y){const x=e.EpF();e.TgZ(0,"button",70),e.NdJ("click",function(){e.CHM(x);const q=e.oxw().$implicit,Q=e.oxw(3);return e.KtG(Q.openDealsDetail(q.deals))}),e.qZA()}if(2&Y){const x=e.oxw().$implicit;e.Gre("price-options__promotion deals-",x.deals&&x.deals.length>0?x.deals[0].type:"",""),e.s9C("ngbTooltip",x.dealsTooltip)}}function Be(Y,$){if(1&Y&&(e.TgZ(0,"div",71)(1,"span"),e._uU(2),e.ALo(3,"kzcurrency"),e.qZA()()),2&Y){const x=e.oxw().$implicit,ie=e.oxw(3);e.xp6(2),e.Oqu(e.Dn7(3,1,x.price,ie.searchInfo.searchConfig.currency,null==ie.item.loyalty?null:ie.item.loyalty.redeem))}}function ft(Y,$){1&Y&&(e.TgZ(0,"div",71)(1,"span",72),e._uU(2,"\u2014\u2014"),e.qZA()())}const gt=function(Y,$){return{"cheapest-fare":Y,"price-options__hilight":$}};function Et(Y,$){if(1&Y){const x=e.EpF();e.TgZ(0,"div",63),e.YNc(1,Tt,1,10,"ng-template",null,64,e.W1O),e.YNc(3,pt,1,4,"button",65),e.TgZ(4,"button",66),e.NdJ("click",function(q){const ne=e.CHM(x).$implicit,ve=e.oxw().$implicit,Pe=e.oxw(2);return e.KtG(Pe.selectFare(ve,q,ne))}),e.TgZ(5,"span",67),e._uU(6),e.qZA(),e.YNc(7,Be,4,5,"div",68),e.YNc(8,ft,3,0,"div",68),e.qZA()()}if(2&Y){const x=$.$implicit,ie=e.MAs(2),q=e.oxw().$implicit,Q=e.oxw(2);e.Q6J("ngClass",e.WLB(8,gt,x.isCheapest,x.deals&&x.deals.length>0)),e.xp6(3),e.Q6J("ngIf",x.hasDeals),e.xp6(1),e.Q6J("disabled",!q.cruiseLine.onlineBooking||!x.price)("ngbPopover",ie)("triggers",Q.loyalty?"mouseenter:mouseleave":""),e.xp6(2),e.Oqu(x.type),e.xp6(1),e.Q6J("ngIf",x.price),e.xp6(1),e.Q6J("ngIf",!x.price)}}function Mt(Y,$){if(1&Y){const x=e.EpF();e.TgZ(0,"button",59),e.NdJ("click",function(){e.CHM(x);const q=e.oxw(2).$implicit,Q=e.oxw(2);return e.KtG(Q.openSailingBenefitsDetail(q))}),e._UZ(1,"span",60),e.qZA()}if(2&Y){const x=$.$implicit;e.s9C("ngbTooltip",x.name),e.xp6(1),e.Q6J("iconCode",x.icon)("iconAlt",x.name)}}function Qt(Y,$){if(1&Y&&(e.TgZ(0,"span",73),e.YNc(1,Mt,2,3,"button",58),e.qZA()),2&Y){const x=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",x.sailingBenefitsTypes.thematic)}}function ye(Y,$){if(1&Y){const x=e.EpF();e.TgZ(0,"button",70),e.NdJ("click",function(){e.CHM(x);const q=e.oxw(2).$implicit,Q=e.oxw(2);return e.KtG(Q.openSailingBenefitsDetail(q))}),e._UZ(1,"span",60),e.qZA()}if(2&Y){const x=$.$implicit;e.Gre("btn btn-link benefit-",x.code,""),e.s9C("ngbTooltip",x.name),e.xp6(1),e.Q6J("iconCode",x.icon)("iconAlt",x.name)}}function Ae(Y,$){if(1&Y&&(e.TgZ(0,"span",74),e.YNc(1,ye,2,6,"button",75),e.qZA()),2&Y){const x=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",x.sailingBenefitsTypes.cruise)}}function A(Y,$){if(1&Y){const x=e.EpF();e.TgZ(0,"span",76)(1,"button",77),e.NdJ("click",function(){e.CHM(x);const q=e.oxw().$implicit,Q=e.oxw(2);return e.KtG(Q.openSailingBenefitsDetail(q))}),e.TgZ(2,"span",78),e._uU(3,"+"),e.qZA()()()}}function j(Y,$){1&Y&&(e.TgZ(0,"span"),e.SDv(1,79),e.qZA())}function he(Y,$){1&Y&&(e.TgZ(0,"span"),e.SDv(1,80),e.qZA())}const De=function(Y){return[Y]};function We(Y,$){if(1&Y&&(e.TgZ(0,"div",81)(1,"a",82)(2,"span",83),e._uU(3,"\xa0"),e.qZA()()()),2&Y){const x=e.oxw().$implicit,ie=e.oxw(2);e.xp6(1),e.Q6J("routerLink",e.VKq(4,De,"/maps/"+ie.item.itinerary.itineraryCode)+"/"+x.itineraryMapCode),e.xp6(1),e.Gre("badge badge-",x.containsMap?"success":"danger","")}}function Qe(Y,$){if(1&Y){const x=e.EpF();e.TgZ(0,"div",31)(1,"div",32)(2,"button",33),e.NdJ("click",function(){const Q=e.CHM(x).$implicit,ne=e.oxw(2);return e.KtG(ne.openShipDetail(Q))}),e._UZ(3,"img",13),e.ALo(4,"cruiseLineLogo"),e.qZA(),e.TgZ(5,"div",34)(6,"div")(7,"button",35),e.NdJ("click",function(){const Q=e.CHM(x).$implicit,ne=e.oxw(2);return e.KtG(ne.openShipDetail(Q,!0))}),e._uU(8),e.ALo(9,"date"),e.qZA(),e.YNc(10,re,2,0,"span",36),e.YNc(11,Ve,3,1,"span",37),e.TgZ(12,"button",38),e.NdJ("click",function(){const Q=e.CHM(x).$implicit,ne=e.oxw(2);return e.KtG(ne.openShipDetail(Q,!0))}),e.YNc(13,Le,2,0,"span",39),e.TgZ(14,"span",40),e.SDv(15,41),e.ALo(16,"number"),e.qZA()()(),e.TgZ(17,"button",42),e.NdJ("click",function(){const Q=e.CHM(x).$implicit,ne=e.oxw(2);return e.KtG(ne.openShipDetail(Q))}),e._uU(18),e.qZA(),e.YNc(19,Dt,1,3,"app-rating",43),e.qZA()(),e.TgZ(20,"div",44),e.YNc(21,Et,9,11,"div",45),e.qZA(),e.TgZ(22,"div",46)(23,"div",47),e.YNc(24,Qt,2,1,"span",48),e.YNc(25,Ae,2,1,"span",49),e.YNc(26,A,4,0,"span",50),e.qZA(),e.TgZ(27,"div",51)(28,"div",52)(29,"div",53)(30,"div",8)(31,"small"),e._uU(32,"A partir de"),e.qZA(),e.TgZ(33,"span"),e._uU(34),e.ALo(35,"kzcurrency"),e.qZA()()(),e.TgZ(36,"button",54),e.NdJ("click",function(q){const ne=e.CHM(x).$implicit,ve=e.oxw(2);return e.KtG(ve.selectFare(ne,q))}),e.YNc(37,j,2,0,"span",7),e.YNc(38,he,2,0,"span",7),e.qZA()(),e.YNc(39,We,4,6,"div",55),e.qZA()()()}if(2&Y){const x=$.$implicit,ie=e.oxw(2);let q;e.xp6(3),e.Q6J("src",e.lcZ(4,18,x.cruiseLine.code),e.LSH)("alt",x.cruiseLine.name),e.xp6(5),e.hij(" ",e.xi3(9,20,ie.handleDate(x.date),"dd MMM yyyy")," \xa0\u2022 "),e.xp6(2),e.Q6J("ngIf",x.sailingBenefitsTypes.date.length),e.xp6(1),e.Q6J("ngIf",x.sailingBenefitsTypes.date.length>0),e.xp6(2),e.Q6J("ngIf",x.sailingBenefitsTypes.date.length),e.xp6(3),e.pQV(x.nights)(e.xi3(16,23,x.nights,"2.0-0")),e.QtT(15),e.xp6(2),e.hij(" ",null==x.ship?null:x.ship.name," "),e.xp6(1),e.Q6J("ngIf",x.rating),e.xp6(2),e.Q6J("ngForOf",x.fares),e.xp6(3),e.Q6J("ngIf",x.sailingBenefitsTypes.thematic.length>0),e.xp6(1),e.Q6J("ngIf",x.sailingBenefitsTypes.cruise.length>0),e.xp6(1),e.Q6J("ngIf",x.showPlusIcon),e.xp6(8),e.Oqu(e.xi3(35,26,null==(q=ie.getShipestFare(x.fares))?null:q.price,ie.searchInfo.searchConfig.currency)),e.xp6(3),e.Q6J("ngIf",x.cruiseLine.onlineBooking),e.xp6(1),e.Q6J("ngIf",!x.cruiseLine.onlineBooking),e.xp6(1),e.Q6J("hasPermission","FRONT_ENABLE_MAP")}}function Ye(Y,$){if(1&Y){const x=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(x);const q=e.oxw(3);return e.KtG(q.loadMore())}),e._UZ(1,"i",88),e.TgZ(2,"span"),e.SDv(3,89),e.qZA()()}}function Oe(Y,$){1&Y&&(e.TgZ(0,"button",90)(1,"span"),e.SDv(2,91),e.qZA()()),2&Y&&e.uIk("disabled",!0)}function Ke(Y,$){if(1&Y&&(e.TgZ(0,"div",84),e.YNc(1,Ye,4,0,"button",85),e.YNc(2,Oe,3,1,"button",86),e.qZA()),2&Y){const x=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!x.isLoading),e.xp6(1),e.Q6J("ngIf",x.isLoading)}}function yt(Y,$){if(1&Y&&(e.TgZ(0,"div",1)(1,"div",2)(2,"div",3),e.YNc(3,ee,1,2,"img",4),e.YNc(4,oe,2,4,"img",4),e.qZA(),e.TgZ(5,"div",5)(6,"div",6),e.YNc(7,_e,13,2,"div",7),e.YNc(8,Ne,8,1,"div",7),e.qZA(),e.YNc(9,J,6,2,"ng-container",7),e.YNc(10,ot,4,2,"ng-container",7),e.TgZ(11,"div",8),e.YNc(12,lt,3,5,"span",7),e.TgZ(13,"small"),e._uU(14),e._UZ(15,"br"),e._uU(16),e.qZA()(),e.YNc(17,At,1,5,"app-loyalty-accrual-info",9),e.YNc(18,wt,2,1,"div",10),e.qZA()(),e.YNc(19,Qe,40,29,"div",11),e.YNc(20,Ke,3,2,"div",12),e.qZA()),2&Y){const x=e.oxw();e.xp6(3),e.Q6J("ngIf",x.item.mapPath&&!(null!=x.item.eventSummary&&x.item.eventSummary.image)),e.xp6(1),e.Q6J("ngIf",null==x.item.eventSummary?null:x.item.eventSummary.image),e.xp6(3),e.Q6J("ngIf",(null==x.item.departure?null:x.item.departure.name)!==(null==x.item.arrive?null:x.item.arrive.name)),e.xp6(1),e.Q6J("ngIf",(null==x.item.departure?null:x.item.departure.name)===(null==x.item.arrive?null:x.item.arrive.name)),e.xp6(1),e.Q6J("ngIf",!(null!=x.item.eventSummary&&x.item.eventSummary.code)),e.xp6(1),e.Q6J("ngIf",null==x.item.eventSummary?null:x.item.eventSummary.code),e.xp6(2),e.Q6J("ngIf",x.item.bestPrice),e.xp6(2),e.hij("",x.getPricePax()," "),e.xp6(2),e.Oqu(x.getPriceTax()),e.xp6(1),e.Q6J("ngIf",x.loyalty),e.xp6(1),e.Q6J("ngIf",x.item.commonAmenities),e.xp6(1),e.Q6J("ngForOf",x.item.departureOptions),e.xp6(1),e.Q6J("ngIf",x.item.totalDepartures!==x.item.departureOptions.length)}}let Ge=(()=>{class Y{constructor(x,ie,q,Q){this.searchService=x,this.startupService=ie,this.gtmKzService=q,this.route=Q,this.selectFareEvent=new e.vpe,this.openShipInfoEvent=new e.vpe,this.openSailingBenefitsEvent=new e.vpe,this.openDealsEvent=new e.vpe,this.loadMoreItems=new e.vpe,this.searchInfo={},this.item={}}ngOnInit(){this.countIcons(this.item.departureOptions),this.getBestPrice(),this.getFarePrice()}getBestPrice(){const ie=this.searchInfo.filterOptions.roomConfiguration.value.totalPax;this.item.bestPrice=this.searchInfo.filterOptions.priceByCabin?this.searchInfo.filterOptions.taxAndFeesIncluded?this.item.bestTotalAmount:this.item.bestCabinAmountWithNCF:this.searchInfo.filterOptions.taxAndFeesIncluded?this.item.bestTotalAmount/ie:this.item.bestCabinAmountWithNCF/ie}getFarePrice(){const x=this.searchInfo.filterOptions.priceByCabin,ie=this.searchInfo.filterOptions.roomConfiguration.value.totalPax;this.item.departureOptions.forEach(q=>{q.fares.forEach(Q=>{Q.price=x?this.searchInfo.filterOptions.taxAndFeesIncluded?Math.trunc(Q.totalAmount):Math.trunc(Q.cabinAmountWithNCF):this.searchInfo.filterOptions.taxAndFeesIncluded?Math.trunc(Q.totalAmount/ie):Math.trunc(Q.cabinAmountWithNCF/ie)})})}getPriceTax(){const x="Taxas j\xE1 inclusas",ie="Mais taxas";return(this.searchInfo.filterOptions.taxAndFeesIncluded?x:ie).toLocaleLowerCase()}getPricePax(){const ie=this.searchInfo.filterOptions.roomConfiguration.value.totalPax,q=`${ie} ${ie>1?"Pessoas":"Pessoa"}`;return(this.searchInfo.filterOptions.priceByCabin?"para"+" "+q:"Por pessoa").toLocaleLowerCase()}selectFare(x,ie,q){this.selectFareEvent.emit({departure:x,fares:q||x.fares,eventClick:ie})}getShipestFare(x){const ie=x.filter(q=>q.price&&q.price>0);return ie.length>0?ie[0]:null}openShipDetail(x,ie=!1){const q=x.cruiseLine.code.toLowerCase();this.openShipInfoEvent.emit({shipId:x.ship.id,itineraryCode:this.item.itinerary.itineraryCode,itineraryMapCode:x.itineraryMapCode,sailingDate:x.date,sailingBenefits:x.sailingBenefits,cruiseLineCode:q,showItineraryTabFirst:ie,departureInfo:x})}openSailingBenefitsDetail(x){this.openSailingBenefitsEvent.emit(x)}openDealsDetail(x){this.openDealsEvent.emit(x)}loadMore(){this.isLoading=!0,this.searchService.loadMoreItinerary(this.item.itinerary.hashSimilarItineraries).subscribe(ie=>{this.item.departureOptions=ie,this.getFarePrice(),this.countIcons(this.item.departureOptions),this.loadMoreItems.emit(this.item),this.isLoading=!1},ie=>{this.isLoading=!1,K.T.throwError(ie)})}countIcons(x){x.forEach(ie=>{const q=ie.sailingBenefitsTypes.thematic.length,ne=ie.sailingBenefitsTypes.cruise.length+ie.sailingBenefitsTypes.thematic.length;let ve=q;if(ie.sailingBenefitsTypes.cruise.length>3-q){const _t=[];ie.sailingBenefitsTypes?.cruise.forEach((rt,It)=>{It<4-q&&(_t.push(rt),ve++)}),ie.sailingBenefitsTypes.cruise=_t}ie.showPlusIcon=ne-ve>4?ne-ve+1:null})}handleDate(x){return s.j.stringToDate(x)}}return Y.\u0275fac=function(x){return new(x||Y)(e.Y36(F.o),e.Y36(Z.q),e.Y36(O.q),e.Y36(H.gz))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["app-search-results-itinerary"]],inputs:{searchInfo:"searchInfo",item:"item",loyalty:"loyalty"},outputs:{selectFareEvent:"selectFareEvent",openShipInfoEvent:"openShipInfoEvent",openSailingBenefitsEvent:"openSailingBenefitsEvent",openDealsEvent:"openDealsEvent",loadMoreItems:"loadMoreItems"},decls:1,vars:1,consts:function(){let $,x,ie,q,Q,ne,ve,Pe,_t,rt,It,ct;return $="Embarque",x="Desembarque",ie="Embarque e desembarque",q="Passar por",Q="Sem paradas",ne="Passar por",ve="{VAR_PLURAL, plural, =1 {{INTERPOLATION} noite} other {{INTERPOLATION} noites}}",ve=e.Zx4(ve,{VAR_PLURAL:"\ufffd0\ufffd",INTERPOLATION:"\ufffd1\ufffd"}),Pe="" + ve + "",_t="Selecionar",rt="Em breve",It="Carregar mais op\xE7\xF5es",ct="Carregando...",[["class","search-result search-result--itinerary",4,"ngIf"],[1,"search-result","search-result--itinerary"],[1,"search-result__header"],[1,"search-result__image"],[3,"src","alt",4,"ngIf"],[1,"search-result__info"],[1,"search-result__departure"],[4,"ngIf"],[1,"search-result__price"],[3,"loyalty","totalPrice","cabinAmountWithNCF","currencyInfo","filterOptions",4,"ngIf"],["class","search-result__badges",4,"ngIf"],["class","departure-options",4,"ngFor","ngForOf"],["class","search-result__load-more",4,"ngIf"],[3,"src","alt"],[1,"icon-arrow-up-right"],$,[1,"point"],[1,"icon-arrow-down-left"],x,ie,["title",q,1,"icon-map-pin"],["style","color: #adb5bd",4,"ngIf"],[2,"color","#adb5bd"],Q,["style","font-size: 0.87rem;","class","text-muted",4,"ngIf"],[1,"text-muted",2,"font-size","0.87rem"],["title",ne,1,"icon-map-pin"],[3,"loyalty","totalPrice","cabinAmountWithNCF","currencyInfo","filterOptions"],[1,"search-result__badges"],["class","badge badge-faded-primary",4,"ngFor","ngForOf"],[1,"badge","badge-faded-primary"],[1,"departure-options"],[1,"departure-options__left-container"],["type","button",1,"departure-options__image",3,"click"],[1,"departure-options__info"],["type","button",1,"departure-options__date-itinerary-button","btn","btn-link",3,"click"],["class","ml-2",4,"ngIf"],["class","button-icon",4,"ngIf"],["type","button",1,"departure-options__date-itinerary-button","add-arrow","btn","btn-link",3,"click"],["class","mr-2",4,"ngIf"],[1,"ml-2","qtd-nights"],Pe,["type","button",1,"departure-options__ship-info-button","btn","btn-link",3,"click"],[3,"score","votes","reference",4,"ngIf"],[1,"departure-options__prices"],["class","price-options",3,"ngClass",4,"ngFor","ngForOf"],[1,"departure-options__content-button-icons","departure-options__content-button-icons--end"],[1,"departure-options__icons"],["class","icons-thematic",4,"ngIf"],["class","icons-right",4,"ngIf"],["class","icon-more",4,"ngIf"],[1,"departure-options__actions"],[1,"departure-options__actions__button-container"],[1,"departure-options__actions__btn-price","d-none"],["type","button",1,"btn","btn-outline-primary","btn-sm",3,"click"],["class","edit-map-button d-inline-block ml-3",4,"hasPermission"],[1,"ml-2"],[1,"button-icon"],["type","button","class","btn btn-link","container","body","triggers","hover",3,"ngbTooltip","click",4,"ngFor","ngForOf"],["type","button","container","body","triggers","hover",1,"btn","btn-link",3,"ngbTooltip","click"],["appIcon","",1,"departure-options__icon",3,"iconCode","iconAlt"],[1,"mr-2"],[3,"score","votes","reference"],[1,"price-options",3,"ngClass"],["popContent",""],["type","button","container","body","triggers","hover",3,"class","ngbTooltip","click",4,"ngIf"],["type","button","popoverClass","popoverLoyaltyAccrual","container","body",1,"price-options__button",3,"disabled","ngbPopover","triggers","click"],[1,"price-options__label"],["class","price-options__price",4,"ngIf"],[3,"isPopoverContent","totalPrice","cabinAmountWithNCF","loyalty","searchResult","departure","filterOptions","fare","currencyInfo","pricePaxMessage"],["type","button","container","body","triggers","hover",3,"ngbTooltip","click"],[1,"price-options__price"],[1,"price-options__price__currency"],[1,"icons-thematic"],[1,"icons-right"],["type","button","container","body","triggers","hover",3,"class","ngbTooltip","click",4,"ngFor","ngForOf"],[1,"icon-more"],["type","button","container","body","triggers","hover",1,"btn","btn-link",3,"click"],[1,"counter"],_t,rt,[1,"edit-map-button","d-inline-block","ml-3"],["ngbTooltip","Editar mapa",3,"routerLink"],[2,"padding","0","width","8px","border-radius","8px","height","8px"],[1,"search-result__load-more"],["type","button","class","btn btn-light-primary w-100",3,"click",4,"ngIf"],["type","button","class","btn btn-light-primary w-100",4,"ngIf"],["type","button",1,"btn","btn-light-primary","w-100",3,"click"],[1,"icon-plus"],It,["type","button",1,"btn","btn-light-primary","w-100"],ct]},template:function(x,ie){1&x&&e.YNc(0,yt,21,13,"div",0),2&x&&e.Q6J("ngIf",ie.item&&ie.searchInfo)},dependencies:[z.mk,z.sg,z.O5,H.yS,N.x,E._L,y.D,C.l,U.a,E.o8,z.JJ,z.uU,b.S,G.E,w.L],encapsulation:2}),Y})()},60156:(Xe,me,h)=>{"use strict";h.d(me,{c:()=>ye});var e=h(94650),s=h(12931),K=h(57484),F=h(26772),Z=h(59273),O=h(11481),H=h(79417),z=h(36895),N=h(27297),E=h(43740),y=h(50348),C=h(16636),U=h(73478),b=h(55496),G=h(49607),w=h(66451);function ee(Ae,A){if(1&Ae){const j=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(j);const De=e.oxw();return e.KtG(De.openShipDetail(De.item))}),e._UZ(1,"img",22),e.ALo(2,"srcsetImage"),e.ALo(3,"contentImage"),e.TgZ(4,"span"),e.ynx(5),e.SDv(6,23),e.BQk(),e._UZ(7,"i",24),e.qZA()()}if(2&Ae){const j=e.oxw();e.xp6(1),e.Q6J("srcset",e.xi3(2,3,j.item.ship.image,j.imageFormat),e.LSH)("src",e.xi3(3,6,j.item.ship.image,j.imageFormat),e.LSH)("alt",null==j.item.ship?null:j.item.ship.name)}}function oe(Ae,A){if(1&Ae&&(e.TgZ(0,"div",25),e._UZ(1,"img",18),e.qZA()),2&Ae){const j=e.oxw();e.xp6(1),e.Q6J("src",j.item.mapPath,e.LSH)("alt",null==j.item.itinerary?null:j.item.itinerary.name)}}function _e(Ae,A){if(1&Ae&&(e.TgZ(0,"div"),e._UZ(1,"i",26),e.TgZ(2,"span"),e.SDv(3,27),e.qZA(),e._uU(4),e._UZ(5,"i",28),e.TgZ(6,"span"),e.SDv(7,29),e.qZA(),e._uU(8),e.qZA()),2&Ae){const j=e.oxw();e.xp6(4),e.hij(": ",null==j.item.departure?null:j.item.departure.name," "),e.xp6(4),e.hij(": ",null==j.item.arrive?null:j.item.arrive.name," ")}}function Ne(Ae,A){if(1&Ae&&(e.TgZ(0,"div"),e._UZ(1,"i",26)(2,"i",28),e.TgZ(3,"span"),e.SDv(4,30),e.qZA(),e._uU(5),e.qZA()),2&Ae){const j=e.oxw();e.xp6(5),e.hij(": ",null==j.item.departure?null:j.item.departure.name," ")}}function te(Ae,A){if(1&Ae&&e._UZ(0,"app-rating",31),2&Ae){const j=e.oxw();e.Q6J("score",j.item.rating.score)("votes",null==j.item.rating?null:j.item.rating.votes)("reference",j.item.rating.reference)}}function de(Ae,A){if(1&Ae&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Ae){const j=e.oxw();e.xp6(1),e.Oqu(null==j.item.itinerary?null:j.item.itinerary.name)}}function J(Ae,A){1&Ae&&(e.TgZ(0,"span",32),e.SDv(1,33),e.qZA())}function Ie(Ae,A){if(1&Ae&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"kzcurrency"),e.qZA()),2&Ae){const j=e.oxw();e.xp6(1),e.hij(" ",e.Dn7(2,1,j.item.bestPrice,j.searchInfo.searchConfig.currency,null==j.loyalty?null:j.loyalty.redeem)," ")}}function Ze(Ae,A){if(1&Ae&&e._UZ(0,"app-loyalty-accrual-info",34),2&Ae){const j=e.oxw();e.Q6J("loyalty",j.loyalty)("totalPrice",j.item.bestPrice)("cabinAmountWithNCF",j.item.bestCabinAmountWithNCF)("filterOptions",j.searchInfo.filterOptions)}}function ot(Ae,A){if(1&Ae){const j=e.EpF();e.TgZ(0,"button",35),e.NdJ("click",function(){e.CHM(j);const De=e.oxw();return e.KtG(De.openSailingBenefitsDetail(De.sailingBenefitsTypes))}),e._uU(1),e.qZA()}if(2&Ae){const j=A.$implicit;e.xp6(1),e.Oqu(j.name)}}function lt(Ae,A){if(1&Ae){const j=e.EpF();e.TgZ(0,"button",53),e.NdJ("click",function(){e.CHM(j);const De=e.oxw(2).$implicit,We=e.oxw();return e.KtG(We.openSailingBenefitsDetail(De))}),e._UZ(1,"span",54),e.TgZ(2,"div",55),e._uU(3),e.qZA()()}if(2&Ae){const j=A.$implicit;e.xp6(1),e.Q6J("iconCode",j.icon)("iconAlt",j.name),e.xp6(2),e.hij(" ",j.name," ")}}function At(Ae,A){if(1&Ae&&(e.TgZ(0,"span",51),e.YNc(1,lt,4,3,"button",52),e.qZA()),2&Ae){const j=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",j.sailingBenefitsTypes.date)}}function qe(Ae,A){if(1&Ae&&e._UZ(0,"app-loyalty-accrual-info",62),2&Ae){const j=e.oxw().$implicit,he=e.oxw(2);e.Q6J("filterOptions",he.searchInfo.filterOptions)("totalPrice",j.totalAmount)("totalPrice",j.cabinAmountWithNCF)("loyalty",he.loyalty)("isPopoverContent",!0)}}function wt(Ae,A){if(1&Ae){const j=e.EpF();e.TgZ(0,"button",63),e.NdJ("click",function(){e.CHM(j);const De=e.oxw().$implicit,We=e.oxw(2);return e.KtG(We.openDealsDetail(De.deals))}),e.qZA()}if(2&Ae){const j=e.oxw().$implicit;e.Gre("price-options__promotion deals-",j.deals&&j.deals.length>0?j.deals[0].type:"",""),e.s9C("ngbTooltip",j.dealsTooltip)}}function re(Ae,A){if(1&Ae&&(e.TgZ(0,"div",64),e._uU(1),e.ALo(2,"kzcurrency"),e.qZA()),2&Ae){const j=e.oxw().$implicit,he=e.oxw(2);e.xp6(1),e.hij(" ",e.Dn7(2,1,j.price,he.searchInfo.searchConfig.currency,null==j.loyalty?null:j.loyalty.redeem)," ")}}function Ee(Ae,A){1&Ae&&(e.TgZ(0,"div",64)(1,"span",65),e._uU(2,"\u2014\u2014"),e.qZA()())}const Ve=function(Ae,A){return{"cheapest-fare":Ae,"price-options__hilight":A}},Le=function(Ae){return{"cheapest-fare":Ae}};function Dt(Ae,A){if(1&Ae){const j=e.EpF();e.TgZ(0,"div",56),e.YNc(1,qe,1,5,"ng-template",null,57,e.W1O),e.YNc(3,wt,1,4,"button",58),e.TgZ(4,"button",59),e.NdJ("click",function(De){const Qe=e.CHM(j).$implicit,Ye=e.oxw().$implicit,Oe=e.oxw();return e.KtG(Oe.selectFare(Ye,Oe.item.cruiseLine,De,Qe))}),e.TgZ(5,"span",60),e._uU(6),e.qZA(),e.YNc(7,re,3,5,"div",61),e.YNc(8,Ee,3,0,"div",61),e.qZA()()}if(2&Ae){const j=A.$implicit,he=e.MAs(2),De=e.oxw().$implicit,We=e.oxw();e.Q6J("ngClass",e.WLB(9,Ve,j.isCheapest,j.deals&&j.deals.length>0)),e.xp6(3),e.Q6J("ngIf",j.hasDeals),e.xp6(1),e.Q6J("ngClass",e.VKq(12,Le,j.isCheapest))("disabled",!De.cruiseLine.onlineBooking||!j.price)("ngbPopover",he)("triggers",We.loyalty?"mouseenter:mouseleave":""),e.xp6(2),e.Oqu(j.type),e.xp6(1),e.Q6J("ngIf",j.price),e.xp6(1),e.Q6J("ngIf",!j.price)}}function Tt(Ae,A){if(1&Ae){const j=e.EpF();e.TgZ(0,"button",68),e.NdJ("click",function(){e.CHM(j);const De=e.oxw(2).$implicit,We=e.oxw();return e.KtG(We.openSailingBenefitsDetail(De))}),e._UZ(1,"span",69),e.qZA()}if(2&Ae){const j=A.$implicit;e.s9C("ngbTooltip",j.name),e.xp6(1),e.Q6J("iconCode",j.icon)("iconAlt",j.name)}}function pt(Ae,A){if(1&Ae&&(e.TgZ(0,"span",66),e.YNc(1,Tt,2,3,"button",67),e.qZA()),2&Ae){const j=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",j.sailingBenefitsTypes.thematic)}}function Be(Ae,A){1&Ae&&(e.TgZ(0,"span"),e.SDv(1,70),e.qZA())}function ft(Ae,A){1&Ae&&(e.TgZ(0,"span"),e.SDv(1,71),e.qZA())}function gt(Ae,A){if(1&Ae){const j=e.EpF();e.TgZ(0,"div",36)(1,"div",37)(2,"div",38),e.YNc(3,At,2,1,"span",39),e.TgZ(4,"span",40),e._uU(5),e.ALo(6,"date"),e.ALo(7,"date"),e.ALo(8,"date"),e.qZA()(),e.TgZ(9,"div",41),e.NdJ("click",function(){const We=e.CHM(j).$implicit,Qe=e.oxw();return e.KtG(Qe.openShipDetail(Qe.item,!0,We))}),e.TgZ(10,"span",42),e._uU(11),e.ALo(12,"number"),e.qZA(),e.TgZ(13,"span",43),e.SDv(14,44),e.qZA()()(),e.TgZ(15,"div",45),e.YNc(16,Dt,9,14,"div",46),e.qZA(),e.TgZ(17,"div",47),e.YNc(18,pt,2,1,"span",48),e.TgZ(19,"div",49)(20,"button",50),e.NdJ("click",function(De){const Qe=e.CHM(j).$implicit,Ye=e.oxw();return e.KtG(Ye.selectFare(Qe,Ye.item.cruiseLine,De))}),e.YNc(21,Be,2,0,"span",8),e.YNc(22,ft,2,0,"span",8),e.qZA()()()()}if(2&Ae){const j=A.$implicit,he=e.oxw();e.xp6(3),e.Q6J("ngIf",j.sailingBenefitsTypes.date.length>0),e.xp6(2),e.lnq(" ",e.xi3(6,10,he.handleDate(j.date),"dd")," ",e.xi3(7,13,he.handleDate(j.date),"MMM")," ",e.xi3(8,16,he.handleDate(j.date),"yyyy")," "),e.xp6(6),e.Oqu(e.xi3(12,19,j.nights,"2.0-0")),e.xp6(3),e.pQV(j.nights),e.QtT(14),e.xp6(2),e.Q6J("ngForOf",j.fares),e.xp6(2),e.Q6J("ngIf",j.sailingBenefitsTypes.thematic.length>0),e.xp6(3),e.Q6J("ngIf",j.cruiseLine.onlineBooking),e.xp6(1),e.Q6J("ngIf",!j.cruiseLine.onlineBooking)}}function Et(Ae,A){if(1&Ae){const j=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(j);const De=e.oxw(2);return e.KtG(De.loadMore())}),e._UZ(1,"i",76),e.TgZ(2,"span"),e.SDv(3,77),e.qZA()()}}function Mt(Ae,A){1&Ae&&(e.TgZ(0,"button",78)(1,"span"),e.SDv(2,79),e.qZA()()),2&Ae&&e.uIk("disabled",!0)}function Qt(Ae,A){if(1&Ae&&(e.TgZ(0,"div",72),e.YNc(1,Et,4,0,"button",73),e.YNc(2,Mt,3,1,"button",74),e.qZA()),2&Ae){const j=e.oxw();e.xp6(1),e.Q6J("ngIf",!j.isLoading),e.xp6(1),e.Q6J("ngIf",j.isLoading)}}let ye=(()=>{class Ae{constructor(j,he,De){this.service=j,this.sanitizer=he,this.searchService=De,this.selectFareEvent=new e.vpe,this.openShipInfoEvent=new e.vpe,this.openSailingBenefitsEvent=new e.vpe,this.openDealsEvent=new e.vpe,this.loadMoreEvent=new e.vpe,this.imageFormat=F.xS.small,this.sailingBenefitsTypes={cruise:[],date:[],thematic:[]},this.searchInfo={},this.item={},this.sailingBenefitsTypes={}}ngOnInit(){this.item.departureOptions[0].sailingBenefitsTypes&&(this.sailingBenefitsTypes.cruise=this.item.departureOptions[0].sailingBenefitsTypes.cruise),this.getBestPrice(),this.getFarePrice()}get price(){return 0}getBestPrice(){const j=this.searchInfo?.filterOptions.priceByCabin,he=this.searchInfo?.filterOptions.roomConfiguration.value.totalPax;this.item.bestPrice=j?this.searchInfo.filterOptions.taxAndFeesIncluded?this.item.bestTotalAmount:this.item.bestCabinAmountWithNCF:this.searchInfo?.filterOptions.taxAndFeesIncluded?this.item?.bestTotalAmount/he:this.item.bestCabinAmountWithNCF/he}getFarePrice(){const j=this.searchInfo?.filterOptions.priceByCabin,he=this.searchInfo?.filterOptions.roomConfiguration.value.totalPax;this.item?.departureOptions.forEach(De=>{De.fares.forEach(We=>{We.price=j?this.searchInfo?.filterOptions.taxAndFeesIncluded?Math.trunc(We.totalAmount):Math.trunc(We.cabinAmountWithNCF):this.searchInfo?.filterOptions.taxAndFeesIncluded?Math.trunc(We.totalAmount/he):Math.trunc(We.cabinAmountWithNCF/he)})})}getPriceTax(){const j="Taxas j\xE1 inclusas",he="Mais taxas";return(this.searchInfo?.filterOptions.taxAndFeesIncluded?j:he).toLocaleLowerCase()}getPricePax(){const j=this.searchInfo?.filterOptions.priceByCabin,he=this.searchInfo?.filterOptions.roomConfiguration.value.totalPax,De=`${he} ${he>1?"Pessoas":"Pessoa"}`;return(j?"para"+" "+De:"Por pessoa").toLocaleLowerCase()}printSvg(j){return this.sanitizer.bypassSecurityTrustHtml(j)}selectFare(j,he,De,We){j.cruiseLine={...he},this.selectFareEvent.emit({departure:j,fares:We||j.fares,eventClick:De})}openShipDetail(j,he=!1,De=null){const We=j.cruiseLine.code.toLowerCase(),Qe=j.ship.id,Ye=j.itinerary.itineraryCode,Oe=De?.itineraryMapCode,Ke=De?.date;this.openShipInfoEvent.emit(De?{shipId:Qe,itineraryCode:Ye,itineraryMapCode:Oe,showItineraryTabFirst:he,sailingDate:Ke,sailingBenefits:De.sailingBenefits,cruiseLineCode:We,departureInfo:De}:{shipId:Qe,itineraryCode:Ye,cruiseLineCode:We,sailingBenefits:this.sailingBenefitsTypes.cruise,showItineraryTabFirst:he})}openSailingBenefitsDetail(j){this.openSailingBenefitsEvent.emit(j)}openDealsDetail(j){this.openDealsEvent.emit(j)}loadMore(){this.loadMoreEvent.emit(),this.isLoading=!0,this.searchService.loadMoreItinerary(this.item.itinerary.hashSimilarItineraries,this.item?.ship.id).subscribe(j=>{this.item.departureOptions=j,this.item.departureOptions[0].sailingBenefitsTypes&&(this.sailingBenefitsTypes.cruise=this.item.departureOptions[0].sailingBenefitsTypes.cruise),this.getFarePrice(),this.isLoading=!1},j=>{this.isLoading=!1,K.T.throwError(j)})}handleDate(j){if(j)return(0,s.Mv)(j.toString())}}return Ae.\u0275fac=function(j){return new(j||Ae)(e.Y36(Z.k),e.Y36(O.H7),e.Y36(H.o))},Ae.\u0275cmp=e.Xpm({type:Ae,selectors:[["app-search-results-ship"]],inputs:{searchInfo:"searchInfo",item:"item",loyalty:"loyalty"},outputs:{selectFareEvent:"selectFareEvent",openShipInfoEvent:"openShipInfoEvent",openSailingBenefitsEvent:"openSailingBenefitsEvent",openDealsEvent:"openDealsEvent",loadMoreEvent:"loadMoreEvent"},decls:33,vars:19,consts:function(){let A,j,he,De,We,Qe,Ye,Oe,Ke,yt,Ge;return A="Passar por",j="Ver navio",he="Embarque",De="Desembarque",We="Embarque e desembarque",Qe="Sem paradas",Ye="{VAR_PLURAL, plural, =1 {noite} other {noites}}",Ye=e.Zx4(Ye,{VAR_PLURAL:"\ufffd0\ufffd"}),Oe="Selecionar",Ke="Em breve",yt="Carregar mais op\xE7\xF5es",Ge="Carregando...",[[1,"search-result","search-result--ship"],[1,"search-result__image-wrapper"],["type","button","class","search-result__ship-image",3,"click",4,"ngIf"],["class","search-result__image",4,"ngIf"],[1,"search-result__content-wrapper"],[1,"search-result__header"],[1,"search-result__info"],[1,"search-result__departure"],[4,"ngIf"],[3,"score","votes","reference",4,"ngIf"],["title",A,1,"icon-map-pin"],["style","color: #adb5bd",4,"ngIf"],[1,"search-result__price"],[3,"loyalty","totalPrice","cabinAmountWithNCF","filterOptions",4,"ngIf"],[1,"search-result__badges"],["type","button","class","btn badge badge-faded-primary",3,"click",4,"ngFor","ngForOf"],[1,"search-results__top-content"],["type","button",1,"search-results__cruise-line-logo",3,"click"],[3,"src","alt"],["class","departure-options departure-options--ship",4,"ngFor","ngForOf"],["class","search-result__load-more",4,"ngIf"],["type","button",1,"search-result__ship-image",3,"click"],[3,"srcset","src","alt"],j,[1,"icon-arrow-right"],[1,"search-result__image"],[1,"icon-arrow-up-right"],he,[1,"icon-arrow-down-left"],De,We,[3,"score","votes","reference"],[2,"color","#adb5bd"],Qe,[3,"loyalty","totalPrice","cabinAmountWithNCF","filterOptions"],["type","button",1,"btn","badge","badge-faded-primary",3,"click"],[1,"departure-options","departure-options--ship"],[1,"departure-options__left-container"],[1,"departure-options__date"],["class","departure-options__holidays-icon",4,"ngIf"],[1,"view-date-group"],["role","button",1,"departure-options__nights",3,"click"],[1,"number"],[1,"description"],Ye,[1,"departure-options__prices"],["class","price-options",3,"ngClass",4,"ngFor","ngForOf"],[1,"departure-options__content-button-icons","departure-options__content-button-icons--end"],["class","departure-options__thematics-icons",4,"ngIf"],[1,"departure-options__actions"],["type","button",1,"btn","btn-outline-primary","btn-sm",3,"click"],[1,"departure-options__holidays-icon"],["type","button","class","btn btn-link",3,"click",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-link",3,"click"],["appIcon","",1,"icon",3,"iconCode","iconAlt"],[1,"name"],[1,"price-options",3,"ngClass"],["popContent",""],["type","button","container","body","triggers","hover",3,"class","ngbTooltip","click",4,"ngIf"],["type","button","popoverClass","popoverLoyaltyAccrual","container","body",1,"price-options__button",3,"ngClass","disabled","ngbPopover","triggers","click"],[1,"price-options__label"],["class","price-options__price",4,"ngIf"],[3,"filterOptions","totalPrice","loyalty","isPopoverContent"],["type","button","container","body","triggers","hover",3,"ngbTooltip","click"],[1,"price-options__price"],[1,"price-options__price__currency"],[1,"departure-options__thematics-icons"],["type","button","class","btn btn-link","container","body","triggers","hover",3,"ngbTooltip","click",4,"ngFor","ngForOf"],["type","button","container","body","triggers","hover",1,"btn","btn-link",3,"ngbTooltip","click"],["appIcon","",1,"departure-options__icon",3,"iconCode","iconAlt"],Oe,Ke,[1,"search-result__load-more"],["type","button","class","btn btn-light-primary w-100",3,"click",4,"ngIf"],["type","button","class","btn btn-light-primary w-100",4,"ngIf"],["type","button",1,"btn","btn-light-primary","w-100",3,"click"],[1,"icon-plus"],yt,["type","button",1,"btn","btn-light-primary","w-100"],Ge]},template:function(j,he){1&j&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,ee,8,9,"button",2),e.YNc(3,oe,2,2,"div",3),e.qZA(),e.TgZ(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7),e.YNc(8,_e,9,2,"div",8),e.YNc(9,Ne,6,1,"div",8),e.qZA(),e.TgZ(10,"h2"),e._uU(11),e.qZA(),e.YNc(12,te,1,3,"app-rating",9),e.TgZ(13,"p"),e._UZ(14,"i",10),e._uU(15,"\xa0 "),e.YNc(16,de,2,1,"span",8),e.YNc(17,J,2,0,"span",11),e.qZA(),e.TgZ(18,"div",12),e.YNc(19,Ie,3,5,"span",8),e.TgZ(20,"small"),e._uU(21),e._UZ(22,"br"),e._uU(23),e.qZA()(),e.YNc(24,Ze,1,4,"app-loyalty-accrual-info",13),e.TgZ(25,"div",14),e.YNc(26,ot,2,1,"button",15),e.qZA()(),e.TgZ(27,"div",16)(28,"button",17),e.NdJ("click",function(){return he.openShipDetail(he.item)}),e._UZ(29,"img",18),e.ALo(30,"cruiseLineLogo"),e.qZA()()(),e.YNc(31,gt,23,22,"div",19),e.YNc(32,Qt,3,2,"div",20),e.qZA()()),2&j&&(e.xp6(2),e.Q6J("ngIf",he.item.ship.image),e.xp6(1),e.Q6J("ngIf",he.item.mapPath),e.xp6(5),e.Q6J("ngIf",(null==he.item.departure?null:he.item.departure.name)!==(null==he.item.arrive?null:he.item.arrive.name)),e.xp6(1),e.Q6J("ngIf",(null==he.item.departure?null:he.item.departure.name)===(null==he.item.arrive?null:he.item.arrive.name)),e.xp6(2),e.Oqu(null==he.item.ship?null:he.item.ship.name),e.xp6(1),e.Q6J("ngIf",he.item.rating),e.xp6(4),e.Q6J("ngIf",null==he.item.itinerary?null:he.item.itinerary.name),e.xp6(1),e.Q6J("ngIf",!(null!=he.item.itinerary&&he.item.itinerary.name)),e.xp6(2),e.Q6J("ngIf",he.item.bestPrice),e.xp6(2),e.hij("",he.getPricePax()," "),e.xp6(2),e.Oqu(he.getPriceTax()),e.xp6(1),e.Q6J("ngIf",he.loyalty),e.xp6(2),e.Q6J("ngForOf",he.sailingBenefitsTypes.cruise),e.xp6(3),e.Q6J("src",e.lcZ(30,17,he.item.cruiseLine.code),e.LSH)("alt",he.item.cruiseLine.name),e.xp6(2),e.Q6J("ngForOf",he.item.departureOptions),e.xp6(1),e.Q6J("ngIf",he.item.totalDepartures!==he.item.departureOptions.length))},dependencies:[z.mk,z.sg,z.O5,N.x,E._L,y.D,C.a,E.o8,z.JJ,z.uU,U.S,b.E,G.O,w.L],encapsulation:2}),Ae})()},35485:(Xe,me,h)=>{"use strict";h.d(me,{a:()=>G});var e=h(94650),s=h(83311),K=h(59273),F=h(36895),Z=h(88962),O=h(83857),H=h(60156);function z(w,ee){if(1&w){const oe=e.EpF();e.TgZ(0,"app-search-results-itinerary",4),e.NdJ("selectFareEvent",function(Ne){const de=e.CHM(oe).$implicit,J=e.oxw(3);return e.KtG(J.selectFare(Ne,de))})("openSailingBenefitsEvent",function(Ne){e.CHM(oe);const te=e.oxw(3);return e.KtG(te.openSailingBenefitsDetail(Ne))})("openShipInfoEvent",function(Ne){e.CHM(oe);const te=e.oxw(3);return e.KtG(te.openShipDetail(Ne))})("openDealsEvent",function(Ne){e.CHM(oe);const te=e.oxw(3);return e.KtG(te.openDealsDetail(Ne))})("loadMoreItems",function(Ne){e.CHM(oe);const te=e.oxw(3);return e.KtG(te.handlerLoadMoreItems(Ne))}),e.qZA()}if(2&w){const oe=ee.$implicit,_e=e.oxw(3);e.Q6J("item",oe)("searchInfo",_e.searchInfo)("loyalty",oe.loyalty)}}function N(w,ee){if(1&w&&(e.TgZ(0,"div"),e.YNc(1,z,1,3,"app-search-results-itinerary",3),e.qZA()),2&w){const oe=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",oe.searchResults.results)}}function E(w,ee){if(1&w){const oe=e.EpF();e.TgZ(0,"app-search-results-ship",6),e.NdJ("selectFareEvent",function(Ne){const de=e.CHM(oe).$implicit,J=e.oxw(3);return e.KtG(J.selectFare(Ne,de))})("openSailingBenefitsEvent",function(Ne){e.CHM(oe);const te=e.oxw(3);return e.KtG(te.openSailingBenefitsDetail(Ne))})("openShipInfoEvent",function(Ne){e.CHM(oe);const te=e.oxw(3);return e.KtG(te.openShipDetail(Ne))})("openDealsEvent",function(Ne){e.CHM(oe);const te=e.oxw(3);return e.KtG(te.openDealsDetail(Ne))}),e.qZA()}if(2&w){const oe=ee.$implicit,_e=e.oxw(3);e.Q6J("searchInfo",_e.searchInfo)("item",oe)("loyalty",oe.loyalty)}}function y(w,ee){if(1&w&&(e.TgZ(0,"div"),e.YNc(1,E,1,3,"app-search-results-ship",5),e.qZA()),2&w){const oe=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",oe.searchResults.results)}}function C(w,ee){if(1&w){const oe=e.EpF();e.TgZ(0,"app-search-results-date",8),e.NdJ("selectFareEvent",function(Ne){const de=e.CHM(oe).$implicit,J=e.oxw(3);return e.KtG(J.selectFare(Ne,de))})("openSailingBenefitsEvent",function(Ne){e.CHM(oe);const te=e.oxw(3);return e.KtG(te.openSailingBenefitsDetail(Ne))})("openShipInfoEvent",function(Ne){e.CHM(oe);const te=e.oxw(3);return e.KtG(te.openShipDetail(Ne))})("openDealsEvent",function(Ne){e.CHM(oe);const te=e.oxw(3);return e.KtG(te.openDealsDetail(Ne))}),e.qZA()}if(2&w){const oe=ee.$implicit,_e=e.oxw(3);e.Q6J("searchInfo",_e.searchInfo)("searchResults",_e.searchResults)("itens",oe)("loyalty",_e.searchResults.loyalty)}}function U(w,ee){if(1&w&&(e.TgZ(0,"div"),e.YNc(1,C,1,4,"app-search-results-date",7),e.qZA()),2&w){const oe=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",oe.groupResult)}}function b(w,ee){if(1&w&&(e.TgZ(0,"div",1),e.YNc(1,N,2,1,"div",2),e.YNc(2,y,2,1,"div",2),e.YNc(3,U,2,1,"div",2),e.qZA()),2&w){const oe=e.oxw();e.xp6(1),e.Q6J("ngIf","ResultByItinerary"===oe.searchResults.resultType),e.xp6(1),e.Q6J("ngIf","ResultByShip"===oe.searchResults.resultType),e.xp6(1),e.Q6J("ngIf","ResultByDate"===oe.searchResults.resultType)}}let G=(()=>{class w{constructor(oe){this.service=oe,this.selectFareEvent=new e.vpe,this.openShipInfoEvent=new e.vpe,this.openSailingBenefitsEvent=new e.vpe,this.openDealsEvent=new e.vpe,this.loadMoreItems=new e.vpe}ngOnInit(){this.searchResults?.resultType===s.W.byDate&&this.groupByMonthYear(this.searchResults.results)}groupByMonthYear(oe){this.groupResult=oe.reduce((_e,Ne)=>(_e[Ne.date.slice(0,6)]=[..._e[Ne.date.slice(0,6)]||[],Ne],_e),{}),this.groupResult=Object.values(this.groupResult)}selectFare(oe,_e){const Ne=oe.eventClick.target;if("icon-dollar-sign"!==Ne.className&&"price-options__promotion"!==Ne.className){let te;te=Array.isArray(oe.fares)?oe.fares.filter(J=>J.totalAmount).sort((J,Ie)=>J.totalAmount-Ie.totalAmount)[0]:oe.fares;const de={...oe,selectedFare:te,itemSelected:_e};this.selectFareEvent.emit(de)}}openShipDetail(oe){this.openShipInfoEvent.emit(oe)}openSailingBenefitsDetail(oe){this.openSailingBenefitsEvent.emit(oe)}openDealsDetail(oe){this.openDealsEvent.emit(oe)}handlerLoadMoreItems(oe){this.loadMoreItems.emit(oe)}}return w.\u0275fac=function(oe){return new(oe||w)(e.Y36(K.k))},w.\u0275cmp=e.Xpm({type:w,selectors:[["app-search-results"]],inputs:{searchInfo:"searchInfo",searchResults:"searchResults"},outputs:{selectFareEvent:"selectFareEvent",openShipInfoEvent:"openShipInfoEvent",openSailingBenefitsEvent:"openSailingBenefitsEvent",openDealsEvent:"openDealsEvent",loadMoreItems:"loadMoreItems"},decls:1,vars:1,consts:[["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngIf"],[3,"item","searchInfo","loyalty","selectFareEvent","openSailingBenefitsEvent","openShipInfoEvent","openDealsEvent","loadMoreItems",4,"ngFor","ngForOf"],[3,"item","searchInfo","loyalty","selectFareEvent","openSailingBenefitsEvent","openShipInfoEvent","openDealsEvent","loadMoreItems"],[3,"searchInfo","item","loyalty","selectFareEvent","openSailingBenefitsEvent","openShipInfoEvent","openDealsEvent",4,"ngFor","ngForOf"],[3,"searchInfo","item","loyalty","selectFareEvent","openSailingBenefitsEvent","openShipInfoEvent","openDealsEvent"],[3,"searchInfo","searchResults","itens","loyalty","selectFareEvent","openSailingBenefitsEvent","openShipInfoEvent","openDealsEvent",4,"ngFor","ngForOf"],[3,"searchInfo","searchResults","itens","loyalty","selectFareEvent","openSailingBenefitsEvent","openShipInfoEvent","openDealsEvent"]],template:function(oe,_e){1&oe&&e.YNc(0,b,4,3,"div",0),2&oe&&e.Q6J("ngIf",_e.searchResults&&_e.searchInfo)},dependencies:[F.sg,F.O5,Z.E,O.$,H.c],encapsulation:2}),w})()},59273:(Xe,me,h)=>{"use strict";h.d(me,{k:()=>K});var e=h(94650),s=h(79417);let K=(()=>{class F{constructor(O){this.searchService=O,this.searchInfo$=this.searchService.searchFiltersInfo$}}return F.\u0275fac=function(O){return new(O||F)(e.LFG(s.o))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})()},6640:(Xe,me,h)=>{"use strict";h.d(me,{W:()=>H});var e=h(53921),s=h(36895),K=h(20315),F=h(24006),Z=h(66976),O=h(94650);let H=(()=>{class z{}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=O.oAB({type:z}),z.\u0275inj=O.cJS({imports:[s.ez,F.UX,Z.qD,K.Q,e.yI.forRoot()]}),z})()},66976:(Xe,me,h)=>{"use strict";h.d(me,{e_:()=>Ye,vY:()=>De.v,Uo:()=>he.U,mj:()=>K,fn:()=>O,qD:()=>N,di:()=>ee,b$:()=>J,JB:()=>Ie,Pq:()=>re,bK:()=>At,Rj:()=>Tt,ql:()=>Mt,IJ:()=>U,_h:()=>We._});var e=h(36895),s=h(94650);let K=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({imports:[e.ez]}),Oe})();var F=h(24006),Z=h(43740);let O=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({imports:[e.ez,F.u5,Z.XC]}),Oe})();h(58146);var z=h(59021);let N=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({imports:[e.ez,F.u5,z.s]}),Oe})();h(69100);var y=h(67229),C=h(24658);let U=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({imports:[e.ez,y.w,C.U]}),Oe})();var b=h(8148),G=h(49627),w=h(20503);let ee=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({imports:[e.ez,F.u5,Z.dT,G.f,b.r,C.U,w.N,Z.dT]}),Oe})();function _e(Oe){return parseInt(`${Oe}`,10)}function Ne(Oe){return!isNaN(_e(Oe))}function te(Oe){return Ne(Oe)?`0${Oe}`.slice(-2):""}h(27297);let de=(()=>{class Oe extends Z.NG{parse(yt){if(null!=yt){const Ge=yt.trim().split("/");if(1===Ge.length&&Ne(Ge[0]))return{day:_e(Ge[0]),month:null,year:null};if(2===Ge.length&&Ne(Ge[0])&&Ne(Ge[1]))return{day:_e(Ge[0]),month:_e(Ge[1]),year:null};if(3===Ge.length&&Ne(Ge[0])&&Ne(Ge[1])&&Ne(Ge[2]))return{day:_e(Ge[0]),month:_e(Ge[1]),year:_e(Ge[2])}}return null}format(yt){return yt?`${Ne(yt.day)?te(yt.day):""}/${Ne(yt.month)?te(yt.month):""}/${yt.year}`:""}}return Oe.\u0275fac=function(){let Ke;return function(Ge){return(Ke||(Ke=s.n5z(Oe)))(Ge||Oe)}}(),Oe.\u0275prov=s.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),J=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({providers:[{provide:Z.NG,useClass:de}],imports:[e.ez,F.UX,Z.M]}),Oe})(),Ie=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({providers:[Z.Kz],imports:[e.ez,Z.XC]}),Oe})();var Ze=h(6453),ot=h(85547);let lt=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({imports:[e.ez,F.u5,F.UX]}),Oe})(),At=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({providers:[Z.Kz],imports:[e.ez,F.u5,F.UX,Ze.Q,ot.H,K,lt,b.r]}),Oe})();var qe=h(46909);function wt(Oe,Ke){if(1&Oe&&(s.TgZ(0,"div",5),s._UZ(1,"app-search-filters",6),s.qZA()),2&Oe){const yt=s.oxw();s.xp6(1),s.Q6J("filterOptions",yt.filterOptions)("currency",yt.searchConfig.currency)("searchConfig",yt.searchConfig)("isCompact",!0)}}let re=(()=>{class Oe{constructor(yt){this.activeModal=yt}}return Oe.\u0275fac=function(yt){return new(yt||Oe)(s.Y36(Z.Kz))},Oe.\u0275cmp=s.Xpm({type:Oe,selectors:[["app-search-filters-modal"]],inputs:{filterOptions:"filterOptions"},decls:5,vars:1,consts:function(){let Ke;return Ke="Filtros",[[1,"modal-header","modal-header--mobile-fixed"],[1,"modal-title"],Ke,["type","button","aria-label","Close",1,"close",2,"background-color","transparent","border","none","outline","none",3,"click"],["class","modal-body",4,"ngIf"],[1,"modal-body"],[3,"filterOptions","currency","searchConfig","isCompact"]]},template:function(yt,Ge){1&yt&&(s.TgZ(0,"div",0)(1,"h5",1),s.SDv(2,2),s.qZA(),s.TgZ(3,"button",3),s.NdJ("click",function(){return Ge.activeModal.dismiss()}),s.qZA()(),s.YNc(4,wt,2,4,"div",4)),2&yt&&(s.xp6(4),s.Q6J("ngIf",Ge.filterOptions))},dependencies:[e.O5,qe.d],encapsulation:2}),Oe})();var Ee=h(54945);let Ve=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({}),Oe})();var Le=h(37028);let Dt=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({imports:[e.ez,Le.v]}),Oe})(),Tt=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({imports:[e.ez,F.u5,F.UX,O,J,Ze.Q,ot.H,Ee.$,Ve,ee,lt,Dt,Z.HK]}),Oe})();h(66460);let Be=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({imports:[e.ez,Z.HK]}),Oe})();var ft=h(36690),gt=h(20315),Et=h(26652);let Mt=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({imports:[e.ez,ft.Bz,ee,Z.HK,y.w,Be,Z.XC,b.r,gt.Q,Et.E,Z.dT,C.U]}),Oe})();h(35485),h(88962),h(60156),h(83857),h(59273);var he=h(59496),De=h(31301),We=h(59826);h(26286);let Ye=(()=>{class Oe{}return Oe.\u0275fac=function(yt){return new(yt||Oe)},Oe.\u0275mod=s.oAB({type:Oe}),Oe.\u0275inj=s.cJS({imports:[e.ez]}),Oe})()},6453:(Xe,me,h)=>{"use strict";h.d(me,{Q:()=>F});var e=h(36895),s=h(24006),K=h(94650);let F=(()=>{class Z{}return Z.\u0275fac=function(H){return new(H||Z)},Z.\u0275mod=K.oAB({type:Z}),Z.\u0275inj=K.cJS({imports:[e.ez,s.u5]}),Z})()},20676:(Xe,me,h)=>{"use strict";h.d(me,{J:()=>y});var e=h(94650),s=h(36895),K=h(24006);function F(C,U){if(1&C){const b=e.EpF();e.TgZ(0,"label",6)(1,"input",7),e.NdJ("change",function(){e.CHM(b);const w=e.oxw(2);return e.KtG(w.toggleSelection())})("ngModelChange",function(w){e.CHM(b);const ee=e.oxw(2);return e.KtG(ee.option.checked=w)})("indeterminateChange",function(w){e.CHM(b);const ee=e.oxw(2);return e.KtG(ee.option.indeterminate=w)}),e.qZA(),e._uU(2),e.qZA()}if(2&C){const b=e.oxw(2);e.xp6(1),e.Q6J("ngModel",b.option.checked)("indeterminate",b.option.indeterminate),e.xp6(1),e.hij(" ",b.option.name," ")}}function Z(C,U){if(1&C&&(e.TgZ(0,"span",6),e._uU(1),e.qZA()),2&C){const b=e.oxw(2);e.xp6(1),e.hij(" ",b.option.name," ")}}function O(C,U){if(1&C){const b=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(b);const w=e.oxw(2);return e.KtG(w.option.isVisible=!w.option.isVisible)}),e.TgZ(1,"span",9),e._uU(2,"toggle"),e.qZA()()}}const H=function(C){return{display:C}};function z(C,U){if(1&C){const b=e.EpF();e.TgZ(0,"li",12)(1,"label",13)(2,"input",14),e.NdJ("ngModelChange",function(w){const oe=e.CHM(b).$implicit;return e.KtG(oe.checked=w)})("change",function(){e.CHM(b);const w=e.oxw(3);return e.KtG(w.onSelectionChange())}),e.qZA(),e._uU(3),e.qZA()()}if(2&C){const b=U.$implicit;e.Q6J("ngStyle",e.VKq(4,H,b.isVisible?"block":"none")),e.xp6(2),e.Q6J("value",b.id)("ngModel",b.checked),e.xp6(1),e.hij(" ",b.nameOption," ")}}function N(C,U){if(1&C&&(e.TgZ(0,"ul",10),e.YNc(1,z,4,6,"li",11),e.qZA()),2&C){const b=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,H,b.option.isVisible?"block":"none")),e.xp6(1),e.Q6J("ngForOf",b.option.children)}}function E(C,U){if(1&C&&(e.TgZ(0,"div",1)(1,"div",2),e.YNc(2,F,3,3,"label",3),e.YNc(3,Z,2,1,"span",3),e.YNc(4,O,3,0,"button",4),e.qZA(),e.YNc(5,N,2,4,"ul",5),e.qZA()),2&C){const b=e.oxw();e.xp6(2),e.Q6J("ngIf",b.canSelectGroup),e.xp6(1),e.Q6J("ngIf",!b.canSelectGroup),e.xp6(1),e.Q6J("ngIf",(null==b.option.children?null:b.option.children.length)>0),e.xp6(1),e.Q6J("ngIf",(null==b.option.children?null:b.option.children.length)>0)}}let y=(()=>{class C{constructor(){this.optionChange=new e.vpe}get childrenTotalChecked(){return this.option?.children?this.option.children.filter(b=>b.checked).length:0}ngOnInit(){this.handleParentCheckbox()}onSelectionChange(){this.handleParentCheckbox(),this.emitSelectedOptions()}handleParentCheckbox(){if(this.option?.children){const b=this.option.children.length;this.childrenTotalChecked>0&&this.childrenTotalChecked<b?(this.option.indeterminate=!0,this.option.checked=!1,this.option.isMarked=!1):this.childrenTotalChecked===b?(this.option.indeterminate=!1,this.option.checked=!0):(this.option.indeterminate=!1,this.option.checked=!1,this.option.isMarked=!1)}}emitSelectedOptions(){this.optionChange.emit({...this.option})}toggleSelection(){this.option?.checked?this.selectAll():this.deselectAll(),this.emitSelectedOptions()}selectAll(){this.option&&(this.option.checked=!0,this.option.checked=!0,this.option.isMarked=!0,this.option.children?.forEach(b=>{b.checked=!0}))}deselectAll(){this.option&&(this.option.checked=!1,this.option.checked=!1,this.option.isMarked=!1,this.option.children?.forEach(b=>{b.checked=!1}))}remove(b){b.id===this.option?.id&&(this.deselectAll(),this.onSelectionChange())}clear(){this.deselectAll(),this.onSelectionChange()}}return C.\u0275fac=function(b){return new(b||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["app-typeahead-options"]],inputs:{option:"option",canSelectGroup:"canSelectGroup"},outputs:{optionChange:"optionChange"},decls:1,vars:1,consts:[["class","typeahead-options",4,"ngIf"],[1,"typeahead-options"],[1,"typeahead-options__parent-group"],["class","typeahead-options__parent-label",4,"ngIf"],["type","button","class","typeahead-options__toggle-arrow",3,"click",4,"ngIf"],["class","typeahead-options__list",3,"ngStyle",4,"ngIf"],[1,"typeahead-options__parent-label"],["type","checkbox",1,"typeahead-options__parent-checkbox",3,"ngModel","indeterminate","change","ngModelChange","indeterminateChange"],["type","button",1,"typeahead-options__toggle-arrow",3,"click"],[1,"sr-only"],[1,"typeahead-options__list",3,"ngStyle"],["class","typeahead-options__list-child",3,"ngStyle",4,"ngFor","ngForOf"],[1,"typeahead-options__list-child",3,"ngStyle"],[1,"typeahead-options__child-label"],["type","checkbox",1,"typeahead-options__child-checkbox",3,"value","ngModel","ngModelChange","change"]],template:function(b,G){1&b&&e.YNc(0,E,6,4,"div",0),2&b&&e.Q6J("ngIf",G.option)},dependencies:[s.sg,s.O5,s.PC,K.Wl,K.JJ,K.On],styles:[".typeahead-options__parent-group[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}.typeahead-options__parent-label[_ngcontent-%COMP%]{flex:1}.typeahead-options__list[_ngcontent-%COMP%]{list-style:none;margin:.5rem 0;padding-left:1rem}.typeahead-options__toggle-arrow[_ngcontent-%COMP%]{background-color:transparent;border:0;padding:0}.typeahead-options__toggle-arrow[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:1rem;height:1rem;vertical-align:middle}.typeahead-options__child-label[_ngcontent-%COMP%]{display:block}"]}),C})()},28084:(Xe,me,h)=>{"use strict";h.d(me,{t:()=>C});var e=h(94650),s=h(24006),K=h(1059),F=h(80013),Z=h(24850),O=h(20676),H=h(36895);function z(U,b){if(1&U){const G=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(G);const ee=e.oxw(2);return e.KtG(ee.myControl.setValue(""))}),e.TgZ(1,"span",9),e.SDv(2,10),e.qZA()()}}function N(U,b){if(1&U){const G=e.EpF();e.TgZ(0,"div",11)(1,"app-typeahead-options",12),e.NdJ("optionChange",function(){e.CHM(G);const ee=e.oxw(2);return e.KtG(ee.emitCheckedOption())}),e.qZA()()}if(2&U){const G=b.$implicit,w=e.oxw(2);e.xp6(1),e.Q6J("option",G)("canSelectGroup",w.canSelectGroup)}}function E(U,b){if(1&U&&(e.TgZ(0,"div",2)(1,"div",3),e._UZ(2,"input",4,5),e.YNc(4,z,3,0,"button",6),e.qZA(),e.YNc(5,N,2,2,"div",7),e.ALo(6,"async"),e.qZA()),2&U){const G=e.oxw();e.xp6(2),e.Q6J("formControl",G.myControl),e.xp6(2),e.Q6J("ngIf",G.myControl.value),e.xp6(1),e.Q6J("ngForOf",e.lcZ(6,3,G.asyncOptionsResult||G.filteredOptions))}}function y(U,b){if(1&U){const G=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(G);const ee=e.oxw();return e.KtG(ee.clear())}),e.SDv(1,14),e.qZA()}}let C=(()=>{class U{constructor(){this.options=[],this.confirmOptions=new e.vpe,this.selectedCheckbox=new e.vpe,this.myControl=new s.p4}ngOnInit(){if(void 0===this.canSelectGroup&&(this.canSelectGroup=!0),!this.options)throw Error('You must provide "options" as prop for app-typeahead component');this.filteredOptions=this.myControl.valueChanges.pipe((0,K.O)(""),(0,F.b)(200),(0,Z.U)(G=>this.filter(G)))}ngOnChanges(G){G.options&&this.myControl.setValue("")}filter(G){if(G){const w=G.toLowerCase().trim();return this.options.map(ee=>(ee.isVisible=!0,ee.children?.forEach(oe=>{oe.isVisible=oe.searchKeys?-1!==oe.searchKeys.toLowerCase().indexOf(w):-1!==oe.name.toLowerCase().indexOf(w)}),ee)).filter(ee=>ee.searchKeys?-1!==ee.searchKeys.toLowerCase().indexOf(w)||ee.children?.some(oe=>-1!==oe.searchKeys.toLowerCase().indexOf(w)):-1!==ee.name.toLowerCase().indexOf(w)||ee.children?.some(oe=>-1!==oe.name.toLowerCase().indexOf(w)))}return this.options.map(w=>(w.isVisible=!1,w.children?.forEach(ee=>{ee.isVisible=!0}),w))}clear(){this.typeaheadOptions?.forEach(G=>{G.clear()})}remove(G){this.typeaheadOptions?.forEach(w=>w.remove(G))}emitCheckedOption(){this.selectedCheckbox.emit()}}return U.\u0275fac=function(G){return new(G||U)},U.\u0275cmp=e.Xpm({type:U,selectors:[["app-typeahead"]],viewQuery:function(G,w){if(1&G&&e.Gf(O.J,5),2&G){let ee;e.iGM(ee=e.CRH())&&(w.typeaheadOptions=ee)}},inputs:{options:"options",canSelectGroup:"canSelectGroup",asyncOptionsResult:"asyncOptionsResult"},outputs:{confirmOptions:"confirmOptions",selectedCheckbox:"selectedCheckbox"},features:[e.TTD],decls:2,vars:2,consts:function(){let b,G,w;return b="Digite para filtrar",G="Limpar",w="Limpar",[["class","typeahead",4,"ngIf"],["type","button","class","btn btn-light typeahead__clear-values",3,"click",4,"ngIf"],[1,"typeahead"],[1,"typeahead__input-wrapper"],["placeholder",b,"autocomplete","off",1,"typeahead__input",3,"formControl"],["inputControl",""],["type","button","class","typeahead__clear-input",3,"click",4,"ngIf"],["class","typeahead__list-options",4,"ngFor","ngForOf"],["type","button",1,"typeahead__clear-input",3,"click"],[1,"sr-only"],G,[1,"typeahead__list-options"],[3,"option","canSelectGroup","optionChange"],["type","button",1,"btn","btn-light","typeahead__clear-values",3,"click"],w]},template:function(G,w){1&G&&(e.YNc(0,E,7,5,"div",0),e.YNc(1,y,2,0,"button",1)),2&G&&(e.Q6J("ngIf",w.options),e.xp6(1),e.Q6J("ngIf",w.options))},dependencies:[H.sg,H.O5,s.Fj,s.JJ,s.oH,O.J,H.Ov],styles:[".typeahead[_ngcontent-%COMP%]{max-width:300px;margin-bottom:.5rem}.typeahead__input-wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:.5rem}.typeahead__input[_ngcontent-%COMP%]{width:100%}.typeahead__clear-input[_ngcontent-%COMP%]{position:absolute;top:0;right:0;border:0;background-color:transparent;cursor:pointer}"]}),U})()},85547:(Xe,me,h)=>{"use strict";h.d(me,{H:()=>Z});var e=h(36895),s=h(80529),K=h(24006),F=h(94650);let Z=(()=>{class O{}return O.\u0275fac=function(z){return new(z||O)},O.\u0275mod=F.oAB({type:O}),O.\u0275inj=F.cJS({imports:[e.ez,K.u5,K.UX,s.JF]}),O})()},59826:(Xe,me,h)=>{"use strict";h.d(me,{_:()=>O});var e=h(94650),s=h(11481),K=h(43740),F=h(36895);function Z(H,z){if(1&H&&(e.TgZ(0,"div"),e._UZ(1,"div",4),e.qZA()),2&H){const N=e.oxw();e.xp6(1),e.Q6J("innerHTML",N.content,e.oJD)}}let O=(()=>{class H{constructor(N,E){this.sanitizer=N,this.activeModal=E}ngOnInit(){this.content=this.sanitizer.bypassSecurityTrustHtml(`<iframe id="virtual-tour-iframe" class="full-fixed" type="text/html" src="${this.virtualTourUrl}" frameborder="0"></iframe>`)}}return H.\u0275fac=function(N){return new(N||H)(e.Y36(s.H7),e.Y36(K.Kz))},H.\u0275cmp=e.Xpm({type:H,selectors:[["app-virtual-tour-modal"]],inputs:{virtualTourUrl:"virtualTourUrl"},decls:4,vars:1,consts:[[4,"ngIf"],["type","button","aria-label","Close",1,"btn","close",3,"click"],["aria-hidden","true"],["appSvgIcon","icon-close"],[1,"virtual-tour-content",3,"innerHTML"]],template:function(N,E){1&N&&(e.YNc(0,Z,2,1,"div",0),e.TgZ(1,"button",1),e.NdJ("click",function(){return E.activeModal.dismiss()}),e.TgZ(2,"span",2),e._UZ(3,"i",3),e.qZA()()),2&N&&e.Q6J("ngIf",E.virtualTourUrl)},dependencies:[F.O5],encapsulation:2}),H})()},15814:(Xe,me,h)=>{"use strict";h.d(me,{N:()=>Z,c:()=>O});var e=h(23938),s=h(80529),K=h(94650),F=h(27722);let Z=(()=>{class H{constructor(N,E){this.config=N,this.http=E,this.myMap={},this.zoom=-1,this.center=null,this.baseApiUrl=this.config?.config?.urlContentApi,this.mapUrl=e.kR(this.config?.config?.language)}create(N,E,y="map"){this.myMap[y]=L.map(y,{renderer:L.svg(),zoomDelta:.1,zoomSnap:0}).setView(N||[0,0],E||5),L.tileLayer(this.mapUrl).addTo(this.myMap[y])}drawItinerary(N,E){this.myMap[E]&&(this.myMap[E].off(),this.myMap[E].remove()),this.itinerary=N,setTimeout(()=>{this.create(N.center||[0,0],N.zoom||5,E),this.portMarkers=new Set,N?.routes?.forEach(y=>{this.drawRoute(y,E)})},100)}drawRoute(N,E){const y=[],C=N.routeInfo;if(C&&C.curves){for(const U of C.curves)y.push(L.curve(["M",U.start,"C",U.cp1,U.cp2,U.end],{weight:2,color:"#295895"}));N.finalPort&&N.initialPort&&(y.push(this.addCircleMarker(N.initialPort,N.routeInfo?.markers[0])),y.push(this.addCircleMarker(N.finalPort,N.routeInfo?.markers[1]))),L.layerGroup(y).addTo(this.myMap[E])}}flyTo(N,E){const y=new L.LatLng(N[0],N[1]);this.myMap[E].flyTo(y,11)}resetZoom(N){if(this.itinerary?.center){const E=L.latLng(this.itinerary.center[0],this.itinerary.center[1]);this.myMap[N].setView(E,this.itinerary.zoom)}}addCircleMarker(N,E){if(this.itinerary?.routes){let y,C;return this.itinerary.routes[this.itinerary.routes.length-1].finalPort?.iata===N.iata?(y="#295895",C="white"):this.itinerary.routes[0].initialPort?.iata===N.iata?(y="#295895",C="#295895"):(y="#295895",C="white"),L.circleMarker(N.markerpoint,{color:y||"black",fillColor:C||"orange",fillOpacity:1,weight:2,radius:5,draggable:"true"})}}getItineraryMap(N){return this.http.get(`${this.baseApiUrl}/itinerary-maps/?itineraryMapCode=${N}`,O)}}return H.\u0275fac=function(N){return new(N||H)(K.LFG(F.q),K.LFG(s.eN))},H.\u0275prov=K.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();const O={headers:new s.WM({Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywiaWF0IjoxNjE0OTUwNTA4LCJleHAiOjQ3MzkxNTI5MDh9.6WoRWfbaLk8Ze2APmmgIQuYhG0a8NJkCHM1cSx3tqtU"})}},80037:(Xe,me,h)=>{"use strict";h.d(me,{I:()=>G});var e=h(36895),s=h(36690),K=h(8148),F=h(43740),Z=h(94650);let O=(()=>{class w{}return w.\u0275fac=function(oe){return new(oe||w)},w.\u0275mod=Z.oAB({type:w}),w.\u0275inj=Z.cJS({imports:[e.ez,F.XC,s.Bz,K.r]}),w})();var H=h(24006),z=h(59021),N=h(32868);let E=(()=>{class w{}return w.\u0275fac=function(oe){return new(oe||w)},w.\u0275mod=Z.oAB({type:w}),w.\u0275inj=Z.cJS({imports:[e.ez,s.Bz,F.XC,K.r]}),w})();var y=h(24658),C=h(20315);let U=(()=>{class w{}return w.\u0275fac=function(oe){return new(oe||w)},w.\u0275mod=Z.oAB({type:w}),w.\u0275inj=Z.cJS({imports:[e.ez]}),w})();var b=h(25971);let G=(()=>{class w{}return w.\u0275fac=function(oe){return new(oe||w)},w.\u0275mod=Z.oAB({type:w}),w.\u0275inj=Z.cJS({imports:[e.ez,s.Bz,H.UX,O,F.XC,K.r,z.s,N.P,F.lQ,E,F.XC,U,y.U,C.Q,b.a,F.HK]}),w})()},88996:(Xe,me,h)=>{"use strict";h.d(me,{y:()=>z});var e=h(49671),s=h(36895),K=h(94650),F=h(42394),Z=h(80529),O=h(11481),H=h(27722);let z=(()=>{class N{constructor(y,C,U,b,G){this.http=y,this.cfr=C,this.titleService=U,this.configService=b,this.document=G,this.config=this.configService.config,this.company=this.config?.clientCode?.toLocaleLowerCase(),this.subCode=this.config?.clientSubCode?.toLocaleLowerCase(),this.head=this.document.getElementsByTagName("head")[0],this.body=this.document.getElementsByTagName("body")[0],"cvc"===this.company||"cvco"===this.company?this.setThemeQueryCvc():this.themeCode="dism"===this.company||"disb"===this.company||"disbo"===this.company||"disc"===this.company||"disa"===this.company||"disl"===this.company||"dislo"===this.company?"discover":"agxo"===this.company||"agxi"===this.company?"agx":"pclm"===this.company||"pclb"===this.company?"dis":"4cao"===this.company?"4ca":"kano"===this.company?"kan":"prao"===this.company?"pra":"suns"===this.company?"sun":"ingo"===this.company?"ing":"orco"===this.company?"orc":"almo"===this.company?"alm":this.company,this.config&&(this.enableSearchIndex(),this.getManager(),this.loadIcon(),this.loadStyle(),this.titleService.setTitle(this.config.pageTitle))}loadHeader(y){var C=this;h(17847)(`./${this.themeCode}/header/header.component`).then(U=>{const b=U[Object.keys(U)[0]];this.themeCode&&(new b).company===this.themeCode&&y.createComponent(this.cfr.resolveComponentFactory(b)).injector.get(K.sBO).markForCheck()}).catch(function(){var U=(0,e.Z)(function*(b){const{DefaultHeaderComponent:G}=yield Promise.all([h.e(1163),h.e(8592),h.e(6282)]).then(h.bind(h,76282));y.createComponent(C.cfr.resolveComponentFactory(G)).injector.get(K.sBO).markForCheck()});return function(b){return U.apply(this,arguments)}}())}loadFooter(y){var C=this;h(89070)(`./${this.themeCode}/footer/footer.component`).then(U=>{const b=U[Object.keys(U)[0]];(new b).company===this.themeCode&&y.createComponent(this.cfr.resolveComponentFactory(b)).injector.get(K.sBO).markForCheck()}).catch(function(){var U=(0,e.Z)(function*(b){const{DefaultFooterComponent:G}=yield h.e(456).then(h.bind(h,70456));y.createComponent(C.cfr.resolveComponentFactory(G)).injector.get(K.sBO).markForCheck()});return function(b){return U.apply(this,arguments)}}())}setThemeQueryCvc(){if("b2b"===this.config?.clientBusiness?.toLocaleLowerCase()){const y=document.location.search,C=y.indexOf("theme"),U=-1!==C?y.substring(C)?.split("=")[1]?.split("&")[0]:"";("cvco"===U||"cvc"===U)&&(0,F.d8)("KzThemeCvc",U,9999);const b=(0,F.ej)("KzThemeCvc");b&&b.toLocaleLowerCase(),this.body.classList.add("cvc-b2b-mapa")}this.themeCode="cvco"}loadHeaderComponent(y){y.clear(),this.loadHeader(y)}loadFooterComponent(y){y.clear(),this.loadFooter(y)}loadIcon(){if(this.config){const y=this.document.createElement("link");y.id="client-icon",y.rel="icon",y.type="image/x-icon",y.href=this.config.faviconUrl,this.head.appendChild(y)}}loadStyle(){const y="default",C=this.document.getElementsByTagName("head")[0],U=this.document.getElementById("kz-style");if(U)U.href=y;else{const b=this.document.createElement("link");b.id="kz-style",b.rel="stylesheet",b.href=`${y}.css?v=${Math.random().toString().replace(".","")}`,C.appendChild(b)}}getAlert(){if(this.config)return this.http.get(`${this.config.urlCruiseApi}/${this.config.culture}/Alerts`)}getManager(){const y=this.config?.tagManagerId,C=this.config?.clientTagManagerId;y&&this.addTagManager(y),C&&this.addTagManager(C)}addTagManager(y){const C=this.document.createElement("script");C.innerHTML=`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n\t\tnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n\t\tj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n\t\t'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n\t\t})(window,document,'script','dataLayer','${y}');`;const b=this.document.createElement("noscript");b.innerHTML=`<iframe src="https://www.googletagmanager.com/ns.html?id=${y}"\n\t\theight="0" width="0" style="display:none;visibility:hidden"></iframe>`,this.head.prepend(C),this.body.appendChild(b)}enableSearchIndex(){if("b2b"===this.config?.clientBusiness?.toLocaleLowerCase()){const y=this.document.createElement("meta");y.name="googlebot",y.content="noindex";const C=this.document.createElement("meta");y.name="robots",y.content="noindex",this.head.prepend(y),this.head.prepend(C)}}}return N.\u0275fac=function(y){return new(y||N)(K.LFG(Z.eN),K.LFG(K._Vd),K.LFG(O.Dx),K.LFG(H.q),K.LFG(s.K0))},N.\u0275prov=K.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})()},6831:(Xe,me,h)=>{"use strict";var e=h(11481),s=h(94650),K=h(42394),F=h(36895),Z=h(27722),O=h(36690),H=h(90263);let z=(()=>{class Re{constructor(He){this.viewContainerRef=He}}return Re.\u0275fac=function(He){return new(He||Re)(s.Y36(s.s_b))},Re.\u0275dir=s.lG2({type:Re,selectors:[["","appMasterpageHost",""]]}),Re})();var N=h(88996);function E(Re,St){}let y=(()=>{class Re{constructor(He,mt){this.masterPageService=He,this.auth=mt}ngOnInit(){this.user$=this.auth.user$,this.headerHost&&this.masterPageService.loadHeaderComponent(this.headerHost.viewContainerRef)}}return Re.\u0275fac=function(He){return new(He||Re)(s.Y36(N.y),s.Y36(H.e))},Re.\u0275cmp=s.Xpm({type:Re,selectors:[["app-header"]],viewQuery:function(He,mt){if(1&He&&s.Gf(z,7),2&He){let $t;s.iGM($t=s.CRH())&&(mt.headerHost=$t.first)}},decls:1,vars:0,consts:[["appMasterpageHost",""]],template:function(He,mt){1&He&&s.YNc(0,E,0,0,"ng-template",0)},dependencies:[z],encapsulation:2,changeDetection:0}),Re})();function C(Re,St){}let U=(()=>{class Re{constructor(He){this.masterPageService=He}ngOnInit(){if(this.masterPageHost){const He=this.masterPageHost?.viewContainerRef;this.masterPageService.loadFooterComponent(He)}}}return Re.\u0275fac=function(He){return new(He||Re)(s.Y36(N.y))},Re.\u0275cmp=s.Xpm({type:Re,selectors:[["app-footer"]],viewQuery:function(He,mt){if(1&He&&s.Gf(z,7),2&He){let $t;s.iGM($t=s.CRH())&&(mt.masterPageHost=$t.first)}},decls:1,vars:0,consts:[["appMasterpageHost",""]],template:function(He,mt){1&He&&s.YNc(0,C,0,0,"ng-template",0)},dependencies:[z],encapsulation:2,changeDetection:0}),Re})();var b=h(75820);function G(Re,St){if(1&Re){const He=s.EpF();s.TgZ(0,"div")(1,"div",1)(2,"div"),s._uU(3),s.TgZ(4,"a",2),s._UZ(5,"i",3),s.qZA()(),s.TgZ(6,"div")(7,"button",4),s.NdJ("click",function(){s.CHM(He);const $t=s.oxw();return s.KtG($t.confirm())}),s._uU(8,"Ok"),s.qZA()()()()}if(2&Re){const He=s.oxw();s.xp6(3),s.hij(" ",He.message.name," "),s.xp6(1),s.Q6J("href",He.message.document.url,s.LSH)}}let w=(()=>{class Re{constructor(He,mt){this.contentService=He,this.configStartup=mt}ngOnInit(){const He=this.configStartup.config?.clientBusiness?.toUpperCase(),mt=K.ej("PRIVACY_COOKIES");"B2C"===He&&!mt&&this.getAgreementDocument()}getAgreementDocument(){this.contentService.getAgreementDocumentByCompany("PRIVACY_COOKIES",this.configStartup.config?.clientCode).subscribe({next:He=>{const mt=He.agreementDocuments;mt&&mt.length>0&&(this.message=mt[0])}})}confirm(){this.message=null,K.d8("PRIVACY_COOKIES","true",9999)}}return Re.\u0275fac=function(He){return new(He||Re)(s.Y36(b._),s.Y36(Z.q))},Re.\u0275cmp=s.Xpm({type:Re,selectors:[["app-privacy-cookies"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"privacy-cookies"],["target","_blank",3,"href"],[1,"icon-external-link"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(He,mt){1&He&&s.YNc(0,G,9,2,"div",0),2&He&&s.Q6J("ngIf",mt.message)},dependencies:[F.O5],styles:[".privacy-cookies[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background:white;position:fixed;width:100%;bottom:1rem;max-width:1420px;left:50%;transform:translate(-50%);padding:1rem;border-radius:16px;border:1px solid #e7e7e7;z-index:999}@media (max-width: 600px){.privacy-cookies[_ngcontent-%COMP%]{display:block}}@media (max-width: 600px){.privacy-cookies[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{width:100%;margin-top:1rem}}"]}),Re})();var ee=h(92039);function oe(Re,St){if(1&Re&&(s.TgZ(0,"div",1)(1,"span"),s._uU(2,"C\xe2mbio vigente:"),s.qZA(),s.TgZ(3,"span"),s._uU(4),s.ALo(5,"currency"),s.qZA()()),2&Re){const He=s.oxw();s.xp6(4),s.Oqu(s.gM2(5,1,He.currencyConversion,He.finalCurrency.code,He.finalCurrency.display,"1.2-2"))}}let _e=(()=>{class Re{constructor(He,mt){this.currenciesService=He,this.auth=mt,this.currencyExchangeCode="",this.currencyConversion=0,this.isLoading=!1,this.showComponent=!1}ngOnInit(){this.showComponent=!!this.auth.isLogged(),this.showComponent&&this.getExchangeCode()}getExchangeCode(){this.isLoading=!0,this.currenciesService.getExchangeCodes().subscribe({next:He=>{const mt=He.data?.currencyExchangeCodes?.find($t=>$t);this.finalCurrency=mt?.finalCurrency,this.currencyExchangeCode=mt?.currencyExchangeCode,this.getQuotation()}})}getQuotation(){this.currenciesService.getQuotation(this.currencyExchangeCode).subscribe({next:He=>{this.currencyConversion=He.data?.sellValue||0}})}}return Re.\u0275fac=function(He){return new(He||Re)(s.Y36(ee.t),s.Y36(H.e))},Re.\u0275cmp=s.Xpm({type:Re,selectors:[["app-currency-quotation"]],inputs:{currencyExchangeCode:"currencyExchangeCode"},decls:1,vars:1,consts:[["class","currency-quotation-content",4,"ngIf"],[1,"currency-quotation-content"]],template:function(He,mt){1&He&&s.YNc(0,oe,6,6,"div",0),2&He&&s.Q6J("ngIf",mt.currencyConversion>0&&mt.finalCurrency)},dependencies:[F.O5,F.H9],styles:[".currency-quotation-content[_ngcontent-%COMP%]{font-size:.87rem;padding:.25rem;text-align:center;background:#e7e7e7}"]}),Re})();var Ne=h(26286),te=h(57924);function de(Re,St){if(1&Re&&(s.TgZ(0,"div",6),s._uU(1),s.qZA()),2&Re){const He=s.oxw(2);s.xp6(1),s.hij(" ",He.load.description," ")}}function J(Re,St){if(1&Re&&(s.TgZ(0,"div",1)(1,"div",2),s._UZ(2,"div",3),s.TgZ(3,"div",4),s._uU(4),s.qZA(),s.YNc(5,de,2,1,"div",5),s.qZA()()),2&Re){const He=s.oxw();s.xp6(4),s.Oqu(He.load.title),s.xp6(1),s.Q6J("ngIf",He.load.description)}}let Ie=(()=>{class Re{constructor(He){this.load=He}}return Re.\u0275fac=function(He){return new(He||Re)(s.Y36(te.J))},Re.\u0275cmp=s.Xpm({type:Re,selectors:[["app-load-container"]],decls:1,vars:1,consts:[["class","load-container",4,"ngIf"],[1,"load-container"],[1,"load-content"],[1,"homehero-bg"],[1,"loading-title"],["class","loading-subtitle",4,"ngIf"],[1,"loading-subtitle"]],template:function(He,mt){1&He&&s.YNc(0,J,6,2,"div",0),2&He&&s.Q6J("ngIf",mt.load.isLoading||!mt.load.title&&mt.load.description)},dependencies:[F.O5],styles:['.load-container[_ngcontent-%COMP%]{position:fixed;z-index:1000000000000000300000000000;inset:0;background:var(--kz-loading-background-color)}.load-content[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);padding:0 1rem}.load-content[_ngcontent-%COMP%]:before{content:"";display:block;height:18px;width:120px;margin:0 auto;border-radius:20px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1NzYiIGhlaWdodD0iMjAuOCIgdmlld0JveD0iMCAwIDU3NiAyMC44Ij4KICA8cGF0aCBpZD0iUGF0aF84NDQiIGRhdGEtbmFtZT0iUGF0aCA4NDQiIGQ9Ik01NjEuNiwxNC40Yy0zLjIsNC44LTQuOCw2LjQtOS42LDYuNHMtNi40LTMuMi05LjYtNi40QzUzOS4yLDkuNiw1MzYsNC44LDUyOCw0LjhzLTExLjIsNC44LTE0LjQsOS42LTQuOCw2LjQtOS42LDYuNC02LjQtMy4yLTkuNi02LjRDNDkxLjIsOS42LDQ4OCw0LjgsNDgwLDQuOHMtMTEuMiw0LjgtMTQuNCw5LjYtNC44LDYuNC05LjYsNi40LTYuNC0zLjItOS42LTYuNEM0NDMuMiw5LjYsNDQwLDQuOCw0MzIsNC44cy0xMS4yLDQuOC0xNC40LDkuNi00LjgsNi40LTkuNiw2LjQtNi40LTMuMi05LjYtNi40QzM5NS4yLDkuNiwzOTIsNC44LDM4NCw0LjhzLTExLjIsNC44LTE0LjQsOS42LTQuOCw2LjQtOS42LDYuNC02LjQtMy4yLTkuNi02LjRDMzQ3LjIsOS42LDM0NCw0LjgsMzM2LDQuOHMtMTEuMiw0LjgtMTQuNCw5LjYtNC44LDYuNC05LjYsNi40LTYuNC0zLjItOS42LTYuNEMyOTkuMiw5LjYsMjk2LDQuOCwyODgsNC44cy0xMS4yLDQuOC0xNC40LDkuNi00LjgsNi40LTkuNiw2LjQtNi40LTMuMi05LjYtNi40QzI1MS4yLDkuNiwyNDgsNC44LDI0MCw0LjhzLTExLjIsNC44LTE0LjQsOS42LTQuOCw2LjQtOS42LDYuNC02LjQtMy4yLTkuNi02LjRDMjAzLjIsOS42LDIwMCw0LjgsMTkyLDQuOHMtMTEuMiw0LjgtMTQuNCw5LjYtNC44LDYuNC05LjYsNi40LTYuNC0zLjItOS42LTYuNEMxNTUuMiw5LjYsMTUyLDQuOCwxNDQsNC44cy0xMS4yLDQuOC0xNC40LDkuNi00LjgsNi40LTkuNiw2LjQtNi40LTMuMi05LjYtNi40QzEwNy4yLDkuNiwxMDQsNC44LDk2LDQuOFM4NC44LDkuNiw4MS42LDE0LjRzLTQuOCw2LjQtOS42LDYuNC02LjQtMy4yLTkuNi02LjRDNTkuMiw5LjYsNTYsNC44LDQ4LDQuOFMzNi44LDkuNiwzMy42LDE0LjRzLTQuOCw2LjQtOS42LDYuNC02LjQtMy4yLTkuNi02LjRDMTEuMiw5LjYsOCw0LjgsMCw0LjhWOS42YzQuOCwwLDYuNCwzLjIsOS42LDYuNCwzLjIsNC44LDYuNCw5LjYsMTQuNCw5LjZTMzUuMiwyMC44LDM4LjQsMTYsNDMuMiw5LjYsNDgsOS42czYuNCwzLjIsOS42LDYuNGMzLjIsNC44LDYuNCw5LjYsMTQuNCw5LjZTODMuMiwyMC44LDg2LjQsMTYsOTEuMiw5LjYsOTYsOS42czYuNCwzLjIsOS42LDYuNGMzLjIsNC44LDYuNCw5LjYsMTQuNCw5LjZzMTEuMi00LjgsMTQuNC05LjYsNC44LTYuNCw5LjYtNi40LDYuNCwzLjIsOS42LDYuNGMzLjIsNC44LDYuNCw5LjYsMTQuNCw5LjZzMTEuMi00LjgsMTQuNC05LjYsNC44LTYuNCw5LjYtNi40LDYuNCwzLjIsOS42LDYuNGMzLjIsNC44LDYuNCw5LjYsMTQuNCw5LjZzMTEuMi00LjgsMTQuNC05LjYsNC44LTYuNCw5LjYtNi40LDYuNCwzLjIsOS42LDYuNGMzLjIsNC44LDYuNCw5LjYsMTQuNCw5LjZzMTEuMi00LjgsMTQuNC05LjYsNC44LTYuNCw5LjYtNi40LDYuNCwzLjIsOS42LDYuNGMzLjIsNC44LDYuNCw5LjYsMTQuNCw5LjZzMTEuMi00LjgsMTQuNC05LjYsNC44LTYuNCw5LjYtNi40LDYuNCwzLjIsOS42LDYuNGMzLjIsNC44LDYuNCw5LjYsMTQuNCw5LjZzMTEuMi00LjgsMTQuNC05LjYsNC44LTYuNCw5LjYtNi40LDYuNCwzLjIsOS42LDYuNGMzLjIsNC44LDYuNCw5LjYsMTQuNCw5LjZzMTEuMi00LjgsMTQuNC05LjYsNC44LTYuNCw5LjYtNi40LDYuNCwzLjIsOS42LDYuNGMzLjIsNC44LDYuNCw5LjYsMTQuNCw5LjZzMTEuMi00LjgsMTQuNC05LjYsNC44LTYuNCw5LjYtNi40LDYuNCwzLjIsOS42LDYuNGMzLjIsNC44LDYuNCw5LjYsMTQuNCw5LjZzMTEuMi00LjgsMTQuNC05LjYsNC44LTYuNCw5LjYtNi40LDYuNCwzLjIsOS42LDYuNGMzLjIsNC44LDYuNCw5LjYsMTQuNCw5LjZzMTEuMi00LjgsMTQuNC05LjYsNC44LTYuNCw5LjYtNi40VjQuOGMtOCwwLTEyLjgsNC44LTE0LjQsOS42aDBaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIC00LjgpIiBmaWxsPSIjMWE3M2U4Ii8+Cjwvc3ZnPgo=);background-repeat:no-repeat;background-position:0 0;-webkit-animation:shift 3s linear infinite;animation:shift 3s linear infinite;background-size:200% 18px}.loading-subtitle[_ngcontent-%COMP%], .loading-title[_ngcontent-%COMP%]{text-align:center}.loading-title[_ngcontent-%COMP%]{margin-top:.75rem;font-size:var(--kz-loading-title-font-size);font-weight:var(--kz-loading-title-font-weight);color:var(--kz-loading-title-font-color)}.loading-subtitle[_ngcontent-%COMP%]{margin-top:.5rem;font-size:var(--kz-loading-subtitle-font-size);font-weight:var(--kz-loading-subtitle-font-weight);color:var(--kz-loading-subtitle-font-color)}@-webkit-keyframes shift{to{background-position:100% 0}}@keyframes shift{to{background-position:100% 0}}']}),Re})();function Ze(Re,St){1&Re&&s._UZ(0,"app-alert-system")}function ot(Re,St){1&Re&&s._UZ(0,"app-currency-quotation")}let lt=(()=>{class Re{constructor(He,mt,$t,Te){this.configService=He,this.route=mt,this.auth=$t,this.document=Te,this.webviewClass="",this.company=this.configService?.config?.clientCode.toLocaleLowerCase(),this.clientBussiness=this.configService?.config?.clientBusiness?.toLocaleLowerCase(),this.document.querySelector("#kz-app").style.display="block"}ngOnInit(){this.user$=this.auth.user$,this.route.queryParams.subscribe(He=>{const{webview:mt}=He;if(this.webviewClass=mt&&"1"===mt?"is-webview":"",mt&&"1"===mt)this.webviewClass="is-webview",(0,K.d8)("WEBVIEW","1",99999999);else{const $t=(0,K.ej)("WEBVIEW");$t&&"1"===$t&&(this.webviewClass="is-webview")}}),this.verifySwCache()}verifySwCache(){window.navigator&&navigator.serviceWorker&&navigator.serviceWorker.getRegistrations().then(function(He){for(let mt of He)mt.unregister()})}get page(){const He=window.location.pathname.replace("/","").split("/")[0];return""===He?"home":He}}return Re.\u0275fac=function(He){return new(He||Re)(s.Y36(Z.q),s.Y36(O.gz),s.Y36(H.e),s.Y36(F.K0))},Re.\u0275cmp=s.Xpm({type:Re,selectors:[["app-root"]],decls:9,vars:5,consts:[[3,"ngClass"],[4,"ngIf"]],template:function(He,mt){1&He&&(s.TgZ(0,"div",0),s._UZ(1,"app-load-container"),s.YNc(2,Ze,1,0,"app-alert-system",1),s.ALo(3,"async"),s._UZ(4,"app-header")(5,"router-outlet")(6,"app-footer"),s.YNc(7,ot,1,0,"app-currency-quotation",1),s._UZ(8,"app-privacy-cookies"),s.qZA()),2&He&&(s.Q6J("ngClass",mt.page+"-page kz-"+mt.company+" kz-"+mt.clientBussiness+" "+mt.webviewClass),s.xp6(2),s.Q6J("ngIf",s.lcZ(3,3,mt.user$)),s.xp6(5),s.Q6J("ngIf","disb"===mt.company))},dependencies:[F.mk,F.O5,O.lC,y,U,w,_e,Ne.x,Ie,F.Ov],encapsulation:2}),Re})();var At=h(57484),qe=h(80529),wt=h(27278);let re=(()=>{class Re{constructor(He){this.injector=He}get isOnline(){return navigator.onLine}handleError(He){const mt=this.injector.get(At.T),$t=this.injector.get(wt.Z);if(He instanceof qe.UA){if(this.isOnline)mt.openErrorModal("",He?.error?.message||He?.message);else{const Se="N\xE3o foi poss\xEDvel se comunicar com o servidor",fe="Por favor, verifique sua conex\xE3o com a internet";mt.openErrorModal(Se,fe),console.error("Lost connection")}console.error("Server Error!",He)}else if(/Loading chunk [\d]+ failed/.test(He.message)){const Se={title:"Uma nova vers\xE3o est\xE1 dispon\xEDvel",description:"Para garantir uma melhor experi\xEAncia, recarregue a p\xE1gina antes de continuar",primaryBtnDescription:"Atualizar",secundaryBtn:!1,showCloseBtn:!1};$t.confirm(Se,()=>this.refreshPage(),void 0,()=>this.refreshPage())}else console.error("Client Error!",He)}refreshPage(){window.location.reload()}}return Re.\u0275fac=function(He){return new(He||Re)(s.LFG(s.zs3))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();var Ee=h(21086);let Ve=(()=>{class Re{constructor(He,mt){this.authService=He,this.router=mt}canActivate(He,mt){return this.authService.isLogged()?(this.routeURL=this.router.url,(0,Ee.of)(!0)):(this.authService.logout(),(0,Ee.of)(!1))}}return Re.\u0275fac=function(He){return new(He||Re)(s.LFG(H.e),s.LFG(O.F0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();var Le=h(97721);let Dt=(()=>{class Re extends O.eV{constructor(He,mt){super(),this.title=He,this.configService=mt}updateTitle(He){const mt=this.buildTitle(He);void 0!==mt&&this.title.setTitle(`${mt} \u2022 ${this.configService.config?.pageTitle||""}`)}}return Re.\u0275fac=function(He){return new(He||Re)(s.LFG(e.Dx),s.LFG(Z.q))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();const Tt=[{path:"auth",loadChildren:()=>Promise.all([h.e(3273),h.e(8592),h.e(8976)]).then(h.bind(h,98976)).then(Re=>Re.AuthModule)},{path:"",pathMatch:"full",loadChildren:()=>Promise.all([h.e(3273),h.e(4660),h.e(2651),h.e(2372)]).then(h.bind(h,22372)).then(Re=>Re.HomePageModule),canActivate:[Ve],resolve:{searchConfig:Le.V}},{path:"search",loadChildren:()=>Promise.all([h.e(9486),h.e(4660),h.e(9578),h.e(5671),h.e(5237),h.e(3748)]).then(h.bind(h,53748)).then(Re=>Re.SearchPageModule),canActivate:[Ve],resolve:{searchConfig:Le.V}},{path:"busca",loadChildren:()=>h.e(7673).then(h.bind(h,27673)).then(Re=>Re.SearchRedirectPageModule),canActivate:[Ve]},{path:"checkout",loadChildren:()=>Promise.all([h.e(3273),h.e(9486),h.e(4660),h.e(9578),h.e(5671),h.e(5237),h.e(2180),h.e(2522),h.e(6617),h.e(2448)]).then(h.bind(h,12448)).then(Re=>Re.CheckoutPageModule)},{path:"styleguide",loadChildren:()=>Promise.all([h.e(3273),h.e(9486),h.e(9578),h.e(2180),h.e(2651),h.e(7936)]).then(h.bind(h,17936)).then(Re=>Re.StyleguideModule),canActivate:[Ve]},{path:"admin",loadChildren:()=>Promise.all([h.e(3273),h.e(8592),h.e(1487)]).then(h.bind(h,1487)).then(Re=>Re.AdminModule),canActivate:[Ve]},{path:"reports",loadChildren:()=>Promise.all([h.e(864),h.e(108)]).then(h.bind(h,80108)).then(Re=>Re.ReportsPageModule),canActivate:[Ve]},{path:"retrieve",loadChildren:()=>Promise.all([h.e(3273),h.e(9486),h.e(4660),h.e(9578),h.e(5671),h.e(5237),h.e(2180),h.e(2522),h.e(6617),h.e(2651),h.e(2448),h.e(769),h.e(6708),h.e(8592),h.e(7617)]).then(h.bind(h,7617)).then(Re=>Re.RetrievePageModule),canActivate:[Ve]},{path:"quote",loadChildren:()=>Promise.all([h.e(3273),h.e(9486),h.e(4660),h.e(9578),h.e(5671),h.e(5237),h.e(2180),h.e(2522),h.e(6617),h.e(2651),h.e(2448),h.e(6708),h.e(6005)]).then(h.bind(h,86005)).then(Re=>Re.QuotePageModule)},{path:"maps",loadChildren:()=>h.e(1187).then(h.bind(h,21187)).then(Re=>Re.MapsPageModule),canActivate:[Ve]},{path:"groups",loadChildren:()=>Promise.all([h.e(9486),h.e(5237),h.e(6617),h.e(864),h.e(2687)]).then(h.bind(h,22687)).then(Re=>Re.GroupsPageModule),canActivate:[Ve]},{path:"coupons",loadChildren:()=>Promise.all([h.e(769),h.e(8592),h.e(8286)]).then(h.bind(h,48286)).then(Re=>Re.CouponsPageModule),canActivate:[Ve]},{path:"payment-link",loadChildren:()=>Promise.all([h.e(3273),h.e(2522),h.e(5121)]).then(h.bind(h,32601)).then(Re=>Re.PaymentLinkPageModule)},{path:"allotment",loadChildren:()=>Promise.all([h.e(769),h.e(8592),h.e(3339)]).then(h.bind(h,93339)).then(Re=>Re.AllotmentModule),canActivate:[Ve]},{path:"my-cruises",loadChildren:()=>Promise.all([h.e(4660),h.e(9578),h.e(5671),h.e(9106)]).then(h.bind(h,19106)).then(Re=>Re.MyCruisesModule),canActivate:[Ve]}];let pt=(()=>{class Re{}return Re.\u0275fac=function(He){return new(He||Re)},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({providers:[{provide:O.eV,useClass:Dt}],imports:[O.Bz.forRoot(Tt,{relativeLinkResolution:"legacy"}),O.Bz]}),Re})();var Be=h(80037);let ft=(()=>{class Re{}return Re.\u0275fac=function(He){return new(He||Re)},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({imports:[F.ez]}),Re})();var gt=h(68896),Et=h(61737),Mt=h(24850),Qt=h(27221);let ye=(()=>{class Re{constructor(He,mt,$t){this.authService=He,this.startConfig=mt,this.errorService=$t}intercept(He,mt){const $t=-1!==He.url.toLocaleLowerCase().indexOf("/search/"),Se=(-1!==He.url.toLocaleLowerCase().indexOf("id-test.krooze")||He.url.toLocaleLowerCase().indexOf("id.krooze"),-1!==He.url.toLocaleLowerCase().indexOf("api-content")),fe=-1!==He.url.toLocaleLowerCase().indexOf("api-cruise")||-1!==He.url.toLocaleLowerCase().indexOf("localhost"),ze=-1!==He.url.indexOf("/Account/ChangePassword"),ut=-1!==He.url.indexOf("connect/userinfo"),Nt=-1!==He.url.indexOf("site3"),tn=-1!==He.url.indexOf("apipreprod.krooze"),Yt=-1!==He.url.toLocaleLowerCase().indexOf("api-allotment"),wn=ut||$t||fe||ze||Se||Nt||tn||Yt,xi=ut||$t||fe||ze||Se||Nt||tn,qt=localStorage.getItem("kz-user");let oi=null,ir=null,Ai=null;qt&&""!==qt&&(oi=JSON.parse(qt),ir=oi.is_multibrand||null,Ai=oi.can_view_presale||null);let jn={};xi&&(jn={CompanyCode:this.startConfig?.config?.clientCode},ir&&(jn={...jn,multibrand:`${ir}`}),Ai&&(jn={...jn,canViewPresale:`${Ai}`})),this.authService.token&&wn&&(jn={...jn,Authorization:`Bearer ${this.authService.token}`});const Hn=He.clone({setHeaders:jn});return mt.handle(Hn).pipe((0,Mt.U)(Nn=>{if("error"!==Nn?.body?.status)return Nn;this.displayErrorMessage(Nn.body?.message||Nn.body?.data?.message,Nn.body)}),(0,Qt.K)(Nn=>401===Nn.status?(console.error("Server Error!",Nn),this.authService.logout(),gt.E):403===Nn.status?(console.error("Forbidden!",Nn),Nn.url?.includes("/SailingInfo/")?(0,Et._)(Nn):gt.E):(500===Nn.status&&"error"===Nn.error.status&&this.displayErrorMessage(Nn.error.message||Nn.error.data?.message,Nn.error),(0,Et._)(Nn))))}displayErrorMessage(He,mt){throw this.errorService.openErrorModal("",He),mt}}return Re.\u0275fac=function(He){return new(He||Re)(s.LFG(H.e),s.LFG(Z.q),s.LFG(At.T))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),Ae=(()=>{class Re{}return Re.\u0275fac=function(He){return new(He||Re)},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({providers:[{provide:qe.TP,useClass:ye,multi:!0}]}),Re})();var A=h(6640),j=h(53921);let he=(()=>{class Re{}return Re.\u0275fac=function(He){return new(He||Re)},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({imports:[F.ez]}),Re})();var De=h(88514),We=h(23753),Qe=h(61221),Ye=h(5529),Oe=h(87274),Ke=h(36787),yt=h(92198),Ge=h(87545),Y=h(82536),x=h(72986),ie=h(2994),q=h(29177);const Q="Service workers are disabled or not supported by this browser";class ve{constructor(St){if(this.serviceWorker=St,St){const mt=(0,We.R)(St,"controllerchange").pipe((0,Mt.U)(()=>St.controller)),$t=(0,De.P)(()=>(0,Ee.of)(St.controller)),Te=(0,Qe.z)($t,mt);this.worker=Te.pipe((0,yt.h)(Nt=>!!Nt)),this.registration=this.worker.pipe((0,Ge.w)(()=>St.getRegistration()));const ut=(0,We.R)(St,"message").pipe((0,Mt.U)(Nt=>Nt.data)).pipe((0,yt.h)(Nt=>Nt&&Nt.type)).pipe(function $(Re){return Re?(0,Y.O)(()=>new Ye.xQ,Re):(0,Y.O)(new Ye.xQ)}());ut.connect(),this.events=ut}else this.worker=this.events=this.registration=function ne(Re){return(0,De.P)(()=>(0,Et._)(new Error(Re)))}(Q)}postMessage(St,He){return this.worker.pipe((0,x.q)(1),(0,ie.b)(mt=>{mt.postMessage({action:St,...He})})).toPromise().then(()=>{})}postMessageWithOperation(St,He,mt){const $t=this.waitForOperationCompleted(mt),Te=this.postMessage(St,He);return Promise.all([Te,$t]).then(([,Se])=>Se)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(St){let He;return He="string"==typeof St?mt=>mt.type===St:mt=>St.includes(mt.type),this.events.pipe((0,yt.h)(He))}nextEventOfType(St){return this.eventsOfType(St).pipe((0,x.q)(1))}waitForOperationCompleted(St){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,yt.h)(He=>He.nonce===St),(0,x.q)(1),(0,Mt.U)(He=>{if(void 0!==He.result)return He.result;throw new Error(He.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Pe=(()=>{class Re{constructor(He){if(this.sw=He,this.subscriptionChanges=new Ye.xQ,!He.isEnabled)return this.messages=Oe.C,this.notificationClicks=Oe.C,void(this.subscription=Oe.C);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Mt.U)($t=>$t.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Mt.U)($t=>$t.data)),this.pushManager=this.sw.registration.pipe((0,Mt.U)($t=>$t.pushManager));const mt=this.pushManager.pipe((0,Ge.w)($t=>$t.getSubscription()));this.subscription=(0,Ke.T)(mt,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(He){if(!this.sw.isEnabled)return Promise.reject(new Error(Q));const mt={userVisibleOnly:!0};let $t=this.decodeBase64(He.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),Te=new Uint8Array(new ArrayBuffer($t.length));for(let Se=0;Se<$t.length;Se++)Te[Se]=$t.charCodeAt(Se);return mt.applicationServerKey=Te,this.pushManager.pipe((0,Ge.w)(Se=>Se.subscribe(mt)),(0,x.q)(1)).toPromise().then(Se=>(this.subscriptionChanges.next(Se),Se))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,x.q)(1),(0,Ge.w)(mt=>{if(null===mt)throw new Error("Not subscribed to push notifications.");return mt.unsubscribe().then($t=>{if(!$t)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Q))}decodeBase64(He){return atob(He)}}return Re.\u0275fac=function(He){return new(He||Re)(s.LFG(ve))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),_t=(()=>{class Re{constructor(He){if(this.sw=He,!He.isEnabled)return this.versionUpdates=Oe.C,this.available=Oe.C,this.activated=Oe.C,void(this.unrecoverable=Oe.C);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,yt.h)(mt=>"VERSION_READY"===mt.type),(0,Mt.U)(mt=>({type:"UPDATE_AVAILABLE",current:mt.currentVersion,available:mt.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Q));const He=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:He},He)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Q));const He=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:He},He)}}return Re.\u0275fac=function(He){return new(He||Re)(s.LFG(ve))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class rt{}const It=new s.OlP("NGSW_REGISTER_SCRIPT");function ct(Re,St,He,mt){return()=>{if(!(0,F.NF)(mt)||!("serviceWorker"in navigator)||!1===He.enabled)return;let $t;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof He.registrationStrategy)$t=He.registrationStrategy();else{const[Se,...fe]=(He.registrationStrategy||"registerWhenStable:30000").split(":");switch(Se){case"registerImmediately":$t=(0,Ee.of)(null);break;case"registerWithDelay":$t=jt(+fe[0]||0);break;case"registerWhenStable":$t=fe[0]?(0,Ke.T)(Kt(Re),jt(+fe[0])):Kt(Re);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${He.registrationStrategy}`)}}Re.get(s.R0b).runOutsideAngular(()=>$t.pipe((0,x.q)(1)).subscribe(()=>navigator.serviceWorker.register(St,{scope:He.scope}).catch(Se=>console.error("Service worker registration failed with:",Se))))}}function jt(Re){return(0,Ee.of)(null).pipe((0,q.g)(Re))}function Kt(Re){return Re.get(s.z2F).isStable.pipe((0,yt.h)(He=>He))}function On(Re,St){return new ve((0,F.NF)(St)&&!1!==Re.enabled?navigator.serviceWorker:void 0)}let sn=(()=>{class Re{static register(He,mt={}){return{ngModule:Re,providers:[{provide:It,useValue:He},{provide:rt,useValue:mt},{provide:ve,useFactory:On,deps:[rt,s.Lbi]},{provide:s.ip1,useFactory:ct,deps:[s.zs3,It,rt,s.Lbi],multi:!0}]}}}return Re.\u0275fac=function(He){return new(He||Re)},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({providers:[Pe,_t]}),Re})();const zt=void 0,en=["pt",[["AM","PM"],zt,zt],zt,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."]],zt,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],zt,[["a.C.","d.C."],zt,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",zt,zt,zt],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[zt,"\u0440."],JPY:["JP\xa5","\xa5"],PHP:[zt,"\u20b1"],PTE:["Esc."],RON:[zt,"L"],SYP:[zt,"S\xa3"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"]},"ltr",function an(Re){const He=Math.floor(Math.abs(Re)),mt=Re.toString().replace(/^[^.]*\.?/,"").length,$t=parseInt(Re.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return He===Math.floor(He)&&He>=0&&He<=1?1:0===$t&&0!==He&&He%1e6==0&&0===mt||!($t>=0&&$t<=5)?4:5}],rn=void 0,Qn=["es",[["a.\xa0m.","p.\xa0m."],rn,rn],rn,[["D","L","M","X","J","V","S"],["dom","lun","mar","mi\xe9","jue","vie","s\xe1b"],["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"],["DO","LU","MA","MI","JU","VI","SA"]],rn,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene","feb","mar","abr","may","jun","jul","ago","sept","oct","nov","dic"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],rn,[["a. C.","d. C."],rn,["antes de Cristo","despu\xe9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1}, {0}",rn,rn,rn],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[rn,"$"],BRL:[rn,"R$"],BYN:[rn,"\u0440."],CAD:[rn,"$"],CNY:[rn,"\xa5"],EGP:[],ESP:["\u20a7"],GBP:[rn,"\xa3"],HKD:[rn,"$"],ILS:[rn,"\u20aa"],INR:[rn,"\u20b9"],JPY:[rn,"\xa5"],KRW:[rn,"\u20a9"],MXN:[rn,"$"],NZD:[rn,"$"],PHP:[rn,"\u20b1"],RON:[rn,"L"],THB:["\u0e3f"],TWD:[rn,"NT$"],USD:["US$","$"],XAF:[],XCD:[rn,"$"],XOF:[]},"ltr",function Jn(Re){const St=Re,He=Math.floor(Math.abs(Re)),mt=Re.toString().replace(/^[^.]*\.?/,"").length,$t=parseInt(Re.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return 1===St?1:0===$t&&0!==He&&He%1e6==0&&0===mt||!($t>=0&&$t<=5)?4:5}],fi=void 0,Hi=["en",[["a","p"],["AM","PM"],fi],[["AM","PM"],fi,fi],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],fi,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],fi,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",fi,"{1} 'at' {0}",fi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function wi(Re){const He=Math.floor(Math.abs(Re)),mt=Re.toString().replace(/^[^.]*\.?/,"").length;return 1===He&&0===mt?1:5}];var _i=h(66976);(0,F.qS)(en,"pt"),(0,F.qS)(Qn,"es"),(0,F.qS)(Hi,"en");const bi=Re=>()=>Re.setConfig();let Bn=(()=>{class Re{}return Re.\u0275fac=function(He){return new(He||Re)},Re.\u0275mod=s.oAB({type:Re,bootstrap:[lt]}),Re.\u0275inj=s.cJS({providers:[Z.q,{provide:s.ip1,useFactory:bi,multi:!0,deps:[Z.q]},At.T,{provide:s.qLn,useClass:re}],imports:[e.b2,pt,Be.I,ft,Ae,qe.JF,A.W,he,_i.e_,j.yI.forRoot({validation:!1}),sn.register("ngsw-worker.js",{enabled:!1})]}),Re})();(0,s.G48)(),e.q6().bootstrapModule(Bn).catch(Re=>console.error(Re))},53921:(Xe,me,h)=>{"use strict";h.d(me,{hx:()=>ft,yI:()=>Et});var e=h(94650);var qe=h(24006),wt=h(36895);const re=new e.OlP("config"),Ee=new e.OlP("NEW_CONFIG"),Ve=new e.OlP("INITIAL_CONFIG"),Le={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},Dt=["Hh:m0:s0","Hh:m0","m0:s0"],Tt=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let pt=(()=>{class ye{constructor(A){this._config=A,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(j,he,De,We)=>{const Qe=j.split(De),Ye=Qe.length>1?`${De}${Qe[1]}`:"";let Oe=Qe[0];const Ke=this.separatorLimit.replace(/\s/g,"");Ke&&+Ke&&(Oe="-"===Oe[0]?`-${Oe.slice(1,Oe.length).slice(0,Ke.length)}`:Oe.slice(0,Ke.length));const yt=/(\d+)(\d{3})/;for(;he&&yt.test(Oe);)Oe=Oe.replace(yt,"$1"+he+"$2");return void 0===We?Oe+Ye:0===We?Oe:Oe+Ye.substr(0,We+1)},this.percentage=j=>Number(j)>=0&&Number(j)<=100,this.getPrecision=j=>{const he=j.split(".");return he.length>1?Number(he[he.length-1]):1/0},this.checkAndRemoveSuffix=j=>{var he,De,We;for(let Qe=(null===(he=this.suffix)||void 0===he?void 0:he.length)-1;Qe>=0;Qe--){const Ye=this.suffix.substr(Qe,null===(De=this.suffix)||void 0===De?void 0:De.length);if(j.includes(Ye)&&(Qe-1<0||!j.includes(this.suffix.substr(Qe-1,null===(We=this.suffix)||void 0===We?void 0:We.length))))return j.replace(Ye,"")}return j},this.checkInputPrecision=(j,he,De)=>{if(he<1/0){const We=new RegExp(this._charToRegExpExpression(De)+`\\d{${he}}.*$`),Qe=j.match(We);Qe&&Qe[0].length-1>he&&(j=j.substring(0,j.length-(Qe[0].length-1-he))),0===he&&j.endsWith(De)&&(j=j.substring(0,j.length-1))}return j},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(A,j){const[he,De]=j;return this.customPattern=De,this.applyMask(A,he)}applyMask(A,j,he=0,De=!1,We=!1,Qe=(()=>{})){if(null==A||void 0===j)return"";let Ye=0,Oe="",Ke=!1,yt=!1,Ge=1,Y=!1;A.slice(0,this.prefix.length)===this.prefix&&(A=A.slice(this.prefix.length,A.length)),this.suffix&&A?.length>0&&(A=this.checkAndRemoveSuffix(A));const $=A.toString().split("");"IP"===j&&(this.ipError=$.filter(ve=>"."===ve).length<3&&$.length<7,j="099.099.099.099");const x=[];for(let ve=0;ve<A.length;ve++)A[ve].match("\\d")&&x.push(A[ve]);if("CPF_CNPJ"===j&&(this.cpfCnpjError=11!==x.length&&14!==x.length,j=x.length>11?"00.000.000/0000-00":"000.000.000-00"),j.startsWith("percent")){if(A.match("[a-z]|[A-Z]")||A.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){A=this._stripToDecimal(A);const ve=this.getPrecision(j);A=this.checkInputPrecision(A,ve,this.decimalMarker)}A.indexOf(".")>0&&!this.percentage(A.substring(0,A.indexOf(".")))&&(A=`${A.substring(0,A.indexOf(".")-1)}${A.substring(A.indexOf("."),A.length)}`),Oe=this.percentage(A)?A:A.substring(0,A.length-1)}else if(j.startsWith("separator")){(A.match("[w\u0430-\u044f\u0410-\u042f]")||A.match("[\u0401\u0451\u0410-\u044f]")||A.match("[a-z]|[A-Z]")||A.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||A.match("[^A-Za-z0-9,]"))&&(A=this._stripToDecimal(A)),A=A.length>1&&"0"===A[0]&&A[1]!==this.decimalMarker&&!We?A.slice(1,A.length):A;const ve=this._charToRegExpExpression(this.thousandSeparator),Pe=this._charToRegExpExpression(this.decimalMarker),_t='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(ve,"").replace(Pe,""),rt=new RegExp("["+_t+"]");A.match(rt)&&(A=A.substring(0,A.length-1));const It=this.getPrecision(j),ct=(A=this.checkInputPrecision(A,It,this.decimalMarker)).replace(new RegExp(ve,"g"),"");Oe=this._formatWithSeparators(ct,this.thousandSeparator,this.decimalMarker,It);const jt=Oe.indexOf(",")-A.indexOf(","),Kt=Oe.length-A.length;if(Kt>0&&","!==Oe[he]){yt=!0;let On=0;do{this._shift.add(he+On),On++}while(On<Kt)}else 0!==jt&&he>0&&!(Oe.indexOf(",")>=he&&he>3)||!(Oe.indexOf(".")>=he&&he>3)&&Kt<=0?(this._shift.clear(),yt=!0,Ge=Kt,this._shift.add(he+=Kt)):this._shift.clear()}else for(let ve=0,Pe=$[0];ve<$.length&&Ye!==j.length;ve++,Pe=$[ve])if(this._checkSymbolMask(Pe,j[Ye])&&"?"===j[Ye+1])Oe+=Pe,Ye+=2;else if("*"===j[Ye+1]&&Ke&&this._checkSymbolMask(Pe,j[Ye+2]))Oe+=Pe,Ye+=3,Ke=!1;else if(this._checkSymbolMask(Pe,j[Ye])&&"*"===j[Ye+1])Oe+=Pe,Ke=!0;else if("?"===j[Ye+1]&&this._checkSymbolMask(Pe,j[Ye+2]))Oe+=Pe,Ye+=3;else if(this._checkSymbolMask(Pe,j[Ye])){if("H"===j[Ye]&&Number(Pe)>2){Ye+=1,this._shiftStep(j,Ye,$.length),ve--,this.leadZeroDateTime&&(Oe+="0");continue}if("h"===j[Ye]&&"2"===Oe&&Number(Pe)>3){Ye+=1,ve--;continue}if("m"===j[Ye]&&Number(Pe)>5){Ye+=1,this._shiftStep(j,Ye,$.length),ve--,this.leadZeroDateTime&&(Oe+="0");continue}if("s"===j[Ye]&&Number(Pe)>5){Ye+=1,this._shiftStep(j,Ye,$.length),ve--,this.leadZeroDateTime&&(Oe+="0");continue}const _t=31;if("d"===j[Ye]&&(Number(Pe)>3&&this.leadZeroDateTime||Number(A.slice(Ye,Ye+2))>_t||"/"===A[Ye+1])){Ye+=1,this._shiftStep(j,Ye,$.length),ve--,this.leadZeroDateTime&&(Oe+="0");continue}if("M"===j[Ye]){const It=0===Ye&&(Number(Pe)>2||Number(A.slice(Ye,Ye+2))>12||"/"===A[Ye+1]),ct=A.slice(Ye-3,Ye-1).includes("/")&&("/"===A[Ye-2]&&Number(A.slice(Ye-1,Ye+1))>12&&"/"!==A[Ye]||"/"===A[Ye]||"/"===A[Ye-3]&&Number(A.slice(Ye-2,Ye))>12&&"/"!==A[Ye-1]||"/"===A[Ye-1]),jt=Number(A.slice(Ye-3,Ye-1))<=_t&&!A.slice(Ye-3,Ye-1).includes("/")&&"/"===A[Ye-1]&&(Number(A.slice(Ye,Ye+2))>12||"/"===A[Ye+1]),Kt=Number(A.slice(Ye-3,Ye-1))>_t&&!A.slice(Ye-3,Ye-1).includes("/")&&!A.slice(Ye-2,Ye).includes("/")&&Number(A.slice(Ye-2,Ye))>12,On=Number(A.slice(Ye-3,Ye-1))<=_t&&!A.slice(Ye-3,Ye-1).includes("/")&&"/"!==A[Ye-1]&&Number(A.slice(Ye-1,Ye+1))>12;if(Number(Pe)>1&&this.leadZeroDateTime||It||ct||jt||Kt||On){Ye+=1,this._shiftStep(j,Ye,$.length),ve--,this.leadZeroDateTime&&(Oe+="0");continue}}Oe+=Pe,Ye++}else-1!==this.maskSpecialCharacters.indexOf(j[Ye])?(Oe+=j[Ye],Ye++,this._shiftStep(j,Ye,$.length),ve--):this.maskSpecialCharacters.indexOf(Pe)>-1&&this.maskAvailablePatterns[j[Ye]]&&this.maskAvailablePatterns[j[Ye]].optional?(!!$[Ye]&&"099.099.099.099"!==j&&"000.000.000-00"!==j&&"00.000.000/0000-00"!==j&&(Oe+=$[Ye]),Ye++,ve--):"*"===this.maskExpression[Ye+1]&&this._findSpecialChar(this.maskExpression[Ye+2])&&this._findSpecialChar(Pe)===this.maskExpression[Ye+2]&&Ke||"?"===this.maskExpression[Ye+1]&&this._findSpecialChar(this.maskExpression[Ye+2])&&this._findSpecialChar(Pe)===this.maskExpression[Ye+2]&&Ke?(Ye+=3,Oe+=Pe):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(Pe)<0&&Pe!==this.placeHolderCharacter&&(Y=!0);Oe.length+1===j.length&&-1!==this.maskSpecialCharacters.indexOf(j[j.length-1])&&(Oe+=j[j.length-1]);let ie=he+1;for(;this._shift.has(ie);)Ge++,ie++;let q=De?Ye:this._shift.has(he)?Ge:0;Y&&q--,Qe(q,yt),Ge<0&&this._shift.clear();let Q=!1;We&&(Q=$.every(ve=>this.maskSpecialCharacters.includes(ve)));let ne=`${this.prefix}${Q?"":Oe}${this.suffix}`;return 0===Oe.length&&(ne=`${this.prefix}${Oe}`),ne}_findSpecialChar(A){return this.maskSpecialCharacters.find(j=>j===A)}_checkSymbolMask(A,j){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[j]&&this.maskAvailablePatterns[j].pattern&&this.maskAvailablePatterns[j].pattern.test(A)}_stripToDecimal(A){return A.split("").filter((j,he)=>j.match("^-?\\d")||j.match("\\s")||"."===j||","===j||"-"===j&&0===he&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(A){return A&&(" "===A?"\\s":"[\\^$.|?*+()".indexOf(A)>=0?"\\"+A:A)}_shiftStep(A,j,he){const De=/[*?]/g.test(A.slice(0,j))?he:j;this._shift.add(De+this.prefix.length||0)}}return ye.\u0275fac=function(A){return new(A||ye)(e.LFG(re))},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Be=(()=>{class ye extends pt{constructor(A,j,he,De){super(j),this.document=A,this._config=j,this._elementRef=he,this._renderer=De,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this.onChange=We=>{}}applyMask(A,j,he=0,De=!1,We=!1,Qe=(()=>{})){if(!j)return A;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(A||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(A||"#")),!A&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const Ye=A&&"number"==typeof this.selStart?A[this.selStart]:"";let Oe="";if(this.hiddenInput&&!this.writingValue){let Y=this.actualValue.split("");""!==A&&Y.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(A.length>Y.length?Y.splice(this.selStart,0,Ye):A.length<Y.length&&(Y.length-A.length==1?Y.splice(this.selStart-1,1):Y.splice(this.selStart,this.selEnd-this.selStart))):Y=[],Oe=this.actualValue.length&&Y.length<=A.length?this.shiftTypedSymbols(Y.join("")):A}Oe=Boolean(Oe)&&Oe.length?Oe:A;const Ke=super.applyMask(Oe,j,he,De,We,Qe);if(this.actualValue=this.getActualValue(Ke),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(Y=>Y!==this.decimalMarker)),this.formControlResult(Ke),!this.showMaskTyped)return this.hiddenInput&&Ke&&Ke.length?this.hideInput(Ke,this.maskExpression):Ke;const yt=Ke.length,Ge=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const Y=this._numberSkipedSymbols(Ke);return Ke+Ge.slice(yt+Y)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?Ke+Ge:Ke+Ge.slice(yt)}_numberSkipedSymbols(A){const j=/(^|\D)(\d\D)/g;let he=j.exec(A),De=0;for(;null!=he;)De+=1,he=j.exec(A);return De}applyValueChanges(A=0,j,he,De=(()=>{})){const We=this._elementRef.nativeElement;We.value=this.applyMask(We.value,this.maskExpression,A,j,he,De),We!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(A,j){return A.split("").map((he,De)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[j[De]]&&this.maskAvailablePatterns[j[De]].symbol?this.maskAvailablePatterns[j[De]].symbol:he).join("")}getActualValue(A){const j=A.split("").filter((he,De)=>this._checkSymbolMask(he,this.maskExpression[De])||this.maskSpecialCharacters.includes(this.maskExpression[De])&&he===this.maskExpression[De]);return j.join("")===A?j.join(""):A}shiftTypedSymbols(A){let j="";return(A&&A.split("").map((De,We)=>{if(this.maskSpecialCharacters.includes(A[We+1])&&A[We+1]!==this.maskExpression[We+1])return j=De,A[We+1];if(j.length){const Qe=j;return j="",Qe}return De})||[]).join("")}showMaskInInput(A){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(A){if("IP"===this.maskExpression)return this._checkForIp(A);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(A)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const A=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==A.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(A.value,this.maskExpression))}set formElementProperty([A,j]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,A,j))}checkSpecialCharAmount(A){return A.split("").filter(he=>this._findSpecialChar(he)).length}removeMask(A){return this._removeMask(this._removeSuffix(this._removePrefix(A)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(A){if("#"===A)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const j=[];for(let he=0;he<A.length;he++)A[he].match("\\d")&&j.push(A[he]);return j.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:j.length>3&&j.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:j.length>6&&j.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(A){const j=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,he=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===A)return j;const De=[];for(let We=0;We<A.length;We++)A[We].match("\\d")&&De.push(A[We]);return De.length<=3?j.slice(De.length,j.length):De.length>3&&De.length<=6?j.slice(De.length+1,j.length):De.length>6&&De.length<=9?j.slice(De.length+2,j.length):De.length>9&&De.length<11?j.slice(De.length+3,j.length):11===De.length?"":12===De.length?he.slice(17===A.length?16:15,he.length):De.length>12&&De.length<=14?he.slice(De.length+4,he.length):""}formControlResult(A){this.writingValue||this.maskChanged?this.maskChanged=!1:Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(A)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(A)):this._removeSuffix(A))}_toNumber(A){if(!this.isNumberValue||""===A)return A;const j=Number(A);return Number.isNaN(j)?A:j}_removeMask(A,j){return A&&A.replace(this._regExpForRemove(j),"")}_removePrefix(A){return this.prefix?A&&A.replace(this.prefix,""):A}_removeSuffix(A){return this.suffix?A&&A.replace(this.suffix,""):A}_retrieveSeparatorValue(A){return this._removeMask(this._removeSuffix(this._removePrefix(A)),this.maskSpecialCharacters)}_regExpForRemove(A){return new RegExp(A.map(j=>`\\${j}`).join("|"),"gi")}_checkSymbols(A){if(""===A)return A;const j=this._retrieveSeparatorPrecision(this.maskExpression);let he=this._retrieveSeparatorValue(A);return"."!==this.decimalMarker&&(he=he.replace(this.decimalMarker,".")),this.isNumberValue?j?A===this.decimalMarker?null:this._checkPrecision(this.maskExpression,he):Number(he):he}_retrieveSeparatorPrecision(A){const j=A.match(new RegExp("^separator\\.([^d]*)"));return j?Number(j[1]):null}_checkPrecision(A,j){return A.indexOf("2")>0?Number(j).toFixed(2):Number(j)}}return ye.\u0275fac=function(A){return new(A||ye)(e.LFG(wt.K0),e.LFG(re),e.LFG(e.SBq),e.LFG(e.Qsj))},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),ft=(()=>{class ye{constructor(A,j,he){this.document=A,this._maskService=j,this._config=he,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=De=>{},this.onTouch=()=>{}}ngOnChanges(A){const{maskExpression:j,specialCharacters:he,patterns:De,prefix:We,suffix:Qe,thousandSeparator:Ye,decimalMarker:Oe,dropSpecialCharacters:Ke,hiddenInput:yt,showMaskTyped:Ge,placeHolderCharacter:Y,shownMaskExpression:$,showTemplate:x,clearIfNotMatch:ie,validation:q,separatorLimit:Q,allowNegativeNumbers:ne,leadZeroDateTime:ve}=A;if(j&&(j.currentValue!==j.previousValue&&!j.firstChange&&(this._maskService.maskChanged=!0),this._maskValue=j.currentValue||"",j.currentValue&&j.currentValue.split("||").length>1&&(this._maskExpressionArray=j.currentValue.split("||").sort((Pe,_t)=>Pe.length-_t.length),this._maskValue=this._maskExpressionArray[0],this.maskExpression=this._maskExpressionArray[0],this._maskService.maskExpression=this._maskExpressionArray[0])),he){if(!he.currentValue||!Array.isArray(he.currentValue))return;this._maskService.maskSpecialCharacters=he.currentValue||[]}De&&De.currentValue&&(this._maskService.maskAvailablePatterns=De.currentValue),We&&(this._maskService.prefix=We.currentValue),Qe&&(this._maskService.suffix=Qe.currentValue),Ye&&(this._maskService.thousandSeparator=Ye.currentValue),Oe&&(this._maskService.decimalMarker=Oe.currentValue),Ke&&(this._maskService.dropSpecialCharacters=Ke.currentValue),yt&&(this._maskService.hiddenInput=yt.currentValue),Ge&&(this._maskService.showMaskTyped=Ge.currentValue),Y&&(this._maskService.placeHolderCharacter=Y.currentValue),$&&(this._maskService.shownMaskExpression=$.currentValue),x&&(this._maskService.showTemplate=x.currentValue),ie&&(this._maskService.clearIfNotMatch=ie.currentValue),q&&(this._maskService.validation=q.currentValue),Q&&(this._maskService.separatorLimit=Q.currentValue),ne&&(this._maskService.allowNegativeNumbers=ne.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(Pe=>"-"!==Pe))),ve&&(this._maskService.leadZeroDateTime=ve.currentValue),this._applyMask()}validate({value:A}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(A);if(this._maskService.cpfCnpjError)return this._createValidationError(A);if(this._maskValue.startsWith("separator")||Tt.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(Dt.includes(this._maskValue))return this._validateTime(A);if(A&&A.toString().length>=1){let j=0;for(const he in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[he].optional&&!0===this._maskService.maskAvailablePatterns[he].optional&&(this._maskValue.indexOf(he)!==this._maskValue.lastIndexOf(he)?j+=this._maskValue.split("").filter(We=>We===he).join("").length:-1!==this._maskValue.indexOf(he)&&j++,-1!==this._maskValue.indexOf(he)&&A.toString().length>=this._maskValue.indexOf(he)||j===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&A.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4||1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&A.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&A.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(A);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const he=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-j:this._maskValue.length-j;if(A.toString().length<he)return this._createValidationError(A)}}return null}onPaste(){this._justPasted=!0}onInput(A){const j=A.target;if(this._inputValue=j.value,this._setMask(),!this._maskValue)return void this.onChange(j.value);const he=1===j.selectionStart?j.selectionStart+this._maskService.prefix.length:j.selectionStart;let De=0,We=!1;if(this._maskService.applyValueChanges(he,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(Ye,Oe)=>{this._justPasted=!1,De=Ye,We=Oe}),this.document.activeElement!==j)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let Qe=this._position?this._inputValue.length+he+De:he+("Backspace"!==this._code||We?De:0);Qe>this._getActualInputLength()&&(Qe=this._getActualInputLength()),Qe<0&&(Qe=0),j.setSelectionRange(Qe,Qe),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(A){if(!this._maskValue)return;const j=A.target;null!==j&&null!==j.selectionStart&&j.selectionStart===j.selectionEnd&&j.selectionStart>this._maskService.prefix.length&&38!==A.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),j.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===j.value?(j.focus(),j.setSelectionRange(0,0)):j.selectionStart>this._maskService.actualValue.length&&j.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const We=j.value&&j.value!==this._maskService.prefix?j.value:this._maskService.prefix+this._maskService.maskIsShown;j.value!==We&&(j.value=We),(j.selectionStart||j.selectionEnd)<=this._maskService.prefix.length?j.selectionStart=this._maskService.prefix.length:j.selectionEnd>this._getActualInputLength()&&(j.selectionEnd=this._getActualInputLength())}onKeyDown(A){var j;if(!this._maskValue)return;this._code=A.code?A.code:A.key;const he=A.target;if(this._inputValue=he.value,this._setMask(),38===A.keyCode&&A.preventDefault(),37===A.keyCode||8===A.keyCode||46===A.keyCode){if(8===A.keyCode&&0===he.value.length&&(he.selectionStart=he.selectionEnd),8===A.keyCode&&0!==he.selectionStart)if(this.specialCharacters=null!==(j=this.specialCharacters)&&void 0!==j&&j.length?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&he.selectionStart<=this.prefix.length)he.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==he.selectionStart&&1!==he.selectionStart)for(;this.specialCharacters.includes(this._inputValue[he.selectionStart-1].toString())&&(this.prefix.length>=1&&he.selectionStart>this.prefix.length||0===this.prefix.length);)he.setSelectionRange(he.selectionStart-1,he.selectionStart-1);this.suffixCheckOnPressDelete(A.keyCode,he)}this.suffixCheckOnPressDelete(A.keyCode,he),this._maskService.prefix.length&&he.selectionStart<=this._maskService.prefix.length&&he.selectionEnd<=this._maskService.prefix.length&&A.preventDefault();const De=he.selectionStart;8===A.keyCode&&!he.readOnly&&0===De&&he.selectionEnd===he.value.length&&0!==he.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<he.selectionStart?he.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===A.keyCode&&!0===A.ctrlKey||65===A.keyCode&&!0===A.metaKey)&&(he.setSelectionRange(0,this._getActualInputLength()),A.preventDefault()),this._maskService.selStart=he.selectionStart,this._maskService.selEnd=he.selectionEnd}writeValue(A){return function N(ye,Ae,A,j){return new(A||(A=Promise))(function(De,We){function Qe(Ke){try{Oe(j.next(Ke))}catch(yt){We(yt)}}function Ye(Ke){try{Oe(j.throw(Ke))}catch(yt){We(yt)}}function Oe(Ke){Ke.done?De(Ke.value):function he(De){return De instanceof A?De:new A(function(We){We(De)})}(Ke.value).then(Qe,Ye)}Oe((j=j.apply(ye,Ae||[])).next())})}(this,void 0,void 0,function*(){"object"==typeof A&&null!==A&&"value"in A&&("disable"in A&&this.setDisabledState(Boolean(A.disable)),A=A.value),void 0===A&&(A=""),"number"==typeof A&&(A=String(A),A="."!==this.decimalMarker?A.replace(".",this.decimalMarker):A,this._maskService.isNumberValue=!0),this._inputValue=A,this._setMask(),A&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(A,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",A],this._inputValue=A})}registerOnChange(A){this.onChange=A,this._maskService.onChange=this.onChange}registerOnTouched(A){this.onTouch=A}suffixCheckOnPressDelete(A,j){46===A&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=j.selectionStart&&j.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===A&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length<j.selectionStart&&j.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),1===this.suffix.length&&this._inputValue.length===j.selectionStart&&j.setSelectionRange(j.selectionStart-1,j.selectionStart-1))}setDisabledState(A){this._maskService.formElementProperty=["disabled",A]}_repeatPatternSymbols(A){return A.match(/{[0-9]+}/)&&A.split("").reduce((j,he,De)=>{if(this._start="{"===he?De:this._start,"}"!==he)return this._maskService._findSpecialChar(he)?j+he:j;this._end=De;const We=Number(A.slice(this._start+1,this._end));return j+new Array(We+1).join(A[this._start-1])},"")||A}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(A){const j=this._maskValue.split("").filter(he=>":"!==he).length;return A&&(0==+A[A.length-1]&&A.length<j||A.length<=j-2)?this._createValidationError(A):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(A){return{mask:{requiredMask:this._maskValue,actualValue:A}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(A=>{var j,he;const De=(null===(j=this._maskService.removeMask(this._inputValue))||void 0===j?void 0:j.length)<=(null===(he=this._maskService.removeMask(A))||void 0===he?void 0:he.length);if(this._inputValue&&De)return this._maskValue=A,this.maskExpression=A,this._maskService.maskExpression=A,De;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return ye.\u0275fac=function(A){return new(A||ye)(e.Y36(wt.K0),e.Y36(Be),e.Y36(re))},ye.\u0275dir=e.lG2({type:ye,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(A,j){1&A&&e.NdJ("paste",function(){return j.onPaste()})("input",function(De){return j.onInput(De)})("blur",function(){return j.onBlur()})("click",function(De){return j.onFocus(De)})("keydown",function(De){return j.onKeyDown(De)})},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime"},features:[e._Bn([{provide:qe.JU,useExisting:(0,e.Gpc)(()=>ye),multi:!0},{provide:qe.Cf,useExisting:(0,e.Gpc)(()=>ye),multi:!0},Be]),e.TTD]}),ye})(),Et=(()=>{class ye{static forRoot(A){return{ngModule:ye,providers:[{provide:Ee,useValue:A},{provide:Ve,useValue:Le},{provide:re,useFactory:Mt,deps:[Ve,Ee]},pt]}}static forChild(){return{ngModule:ye}}}return ye.\u0275fac=function(A){return new(A||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({}),ye})();function Mt(ye,Ae){return Object.assign(Object.assign({},ye),Ae instanceof Function?Ae():Ae)}const Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Qt.KeyboardEvent||(Qt.KeyboardEvent=function(ye,Ae){})},591:(Xe,me,h)=>{"use strict";h.d(me,{X:()=>K});var e=h(5529),s=h(95279);class K extends e.xQ{constructor(Z){super(),this._value=Z}get value(){return this.getValue()}_subscribe(Z){const O=super._subscribe(Z);return O&&!O.closed&&Z.next(this._value),O}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(Z){super.next(this._value=Z)}}},51869:(Xe,me,h)=>{"use strict";h.d(me,{d:()=>s});var e=h(43489);class s extends e.L{constructor(F,Z,O){super(),this.parent=F,this.outerValue=Z,this.outerIndex=O,this.index=0}_next(F){this.parent.notifyNext(this.outerValue,F,this.outerIndex,this.index++,this)}_error(F){this.parent.notifyError(F,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},56498:(Xe,me,h)=>{"use strict";h.d(me,{y:()=>N});var e=h(43489),K=h(57668),F=h(73292),O=h(93821),H=h(4843),z=h(92830);let N=(()=>{class y{constructor(U){this._isScalar=!1,U&&(this._subscribe=U)}lift(U){const b=new y;return b.source=this,b.operator=U,b}subscribe(U,b,G){const{operator:w}=this,ee=function Z(y,C,U){if(y){if(y instanceof e.L)return y;if(y[K.b])return y[K.b]()}return y||C||U?new e.L(y,C,U):new e.L(F.c)}(U,b,G);if(ee.add(w?w.call(ee,this.source):this.source||z.v.useDeprecatedSynchronousErrorHandling&&!ee.syncErrorThrowable?this._subscribe(ee):this._trySubscribe(ee)),z.v.useDeprecatedSynchronousErrorHandling&&ee.syncErrorThrowable&&(ee.syncErrorThrowable=!1,ee.syncErrorThrown))throw ee.syncErrorValue;return ee}_trySubscribe(U){try{return this._subscribe(U)}catch(b){z.v.useDeprecatedSynchronousErrorHandling&&(U.syncErrorThrown=!0,U.syncErrorValue=b),function s(y){for(;y;){const{closed:C,destination:U,isStopped:b}=y;if(C||b)return!1;y=U&&U instanceof e.L?U:null}return!0}(U)?U.error(b):console.warn(b)}}forEach(U,b){return new(b=E(b))((G,w)=>{let ee;ee=this.subscribe(oe=>{try{U(oe)}catch(_e){w(_e),ee&&ee.unsubscribe()}},w,G)})}_subscribe(U){const{source:b}=this;return b&&b.subscribe(U)}[O.L](){return this}pipe(...U){return 0===U.length?this:(0,H.U)(U)(this)}toPromise(U){return new(U=E(U))((b,G)=>{let w;this.subscribe(ee=>w=ee,ee=>G(ee),()=>b(w))})}}return y.create=C=>new y(C),y})();function E(y){if(y||(y=z.v.Promise||Promise),!y)throw new Error("no Promise impl found");return y}},73292:(Xe,me,h)=>{"use strict";h.d(me,{c:()=>K});var e=h(92830),s=h(22782);const K={closed:!0,next(F){},error(F){if(e.v.useDeprecatedSynchronousErrorHandling)throw F;(0,s.z)(F)},complete(){}}},826:(Xe,me,h)=>{"use strict";h.d(me,{L:()=>s});var e=h(43489);class s extends e.L{notifyNext(F,Z,O,H,z){this.destination.next(Z)}notifyError(F,Z){this.destination.error(F)}notifyComplete(F){this.destination.complete()}}},5529:(Xe,me,h)=>{"use strict";h.d(me,{xQ:()=>z,Yc:()=>H});var e=h(56498),s=h(43489),K=h(42654),F=h(95279);class Z extends K.w{constructor(y,C){super(),this.subject=y,this.subscriber=C,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const y=this.subject,C=y.observers;if(this.subject=null,!C||0===C.length||y.isStopped||y.closed)return;const U=C.indexOf(this.subscriber);-1!==U&&C.splice(U,1)}}var O=h(57668);class H extends s.L{constructor(y){super(y),this.destination=y}}let z=(()=>{class E extends e.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[O.b](){return new H(this)}lift(C){const U=new N(this,this);return U.operator=C,U}next(C){if(this.closed)throw new F.N;if(!this.isStopped){const{observers:U}=this,b=U.length,G=U.slice();for(let w=0;w<b;w++)G[w].next(C)}}error(C){if(this.closed)throw new F.N;this.hasError=!0,this.thrownError=C,this.isStopped=!0;const{observers:U}=this,b=U.length,G=U.slice();for(let w=0;w<b;w++)G[w].error(C);this.observers.length=0}complete(){if(this.closed)throw new F.N;this.isStopped=!0;const{observers:C}=this,U=C.length,b=C.slice();for(let G=0;G<U;G++)b[G].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(C){if(this.closed)throw new F.N;return super._trySubscribe(C)}_subscribe(C){if(this.closed)throw new F.N;return this.hasError?(C.error(this.thrownError),K.w.EMPTY):this.isStopped?(C.complete(),K.w.EMPTY):(this.observers.push(C),new Z(this,C))}asObservable(){const C=new e.y;return C.source=this,C}}return E.create=(y,C)=>new N(y,C),E})();class N extends z{constructor(y,C){super(),this.destination=y,this.source=C}next(y){const{destination:C}=this;C&&C.next&&C.next(y)}error(y){const{destination:C}=this;C&&C.error&&this.destination.error(y)}complete(){const{destination:y}=this;y&&y.complete&&this.destination.complete()}_subscribe(y){const{source:C}=this;return C?this.source.subscribe(y):K.w.EMPTY}}},43489:(Xe,me,h)=>{"use strict";h.d(me,{L:()=>H});var e=h(67043),s=h(73292),K=h(42654),F=h(57668),Z=h(92830),O=h(22782);class H extends K.w{constructor(E,y,C){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!E){this.destination=s.c;break}if("object"==typeof E){E instanceof H?(this.syncErrorThrowable=E.syncErrorThrowable,this.destination=E,E.add(this)):(this.syncErrorThrowable=!0,this.destination=new z(this,E));break}default:this.syncErrorThrowable=!0,this.destination=new z(this,E,y,C)}}[F.b](){return this}static create(E,y,C){const U=new H(E,y,C);return U.syncErrorThrowable=!1,U}next(E){this.isStopped||this._next(E)}error(E){this.isStopped||(this.isStopped=!0,this._error(E))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(E){this.destination.next(E)}_error(E){this.destination.error(E),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:E}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=E,this}}class z extends H{constructor(E,y,C,U){super(),this._parentSubscriber=E;let b,G=this;(0,e.m)(y)?b=y:y&&(b=y.next,C=y.error,U=y.complete,y!==s.c&&(G=Object.create(y),(0,e.m)(G.unsubscribe)&&this.add(G.unsubscribe.bind(G)),G.unsubscribe=this.unsubscribe.bind(this))),this._context=G,this._next=b,this._error=C,this._complete=U}next(E){if(!this.isStopped&&this._next){const{_parentSubscriber:y}=this;Z.v.useDeprecatedSynchronousErrorHandling&&y.syncErrorThrowable?this.__tryOrSetError(y,this._next,E)&&this.unsubscribe():this.__tryOrUnsub(this._next,E)}}error(E){if(!this.isStopped){const{_parentSubscriber:y}=this,{useDeprecatedSynchronousErrorHandling:C}=Z.v;if(this._error)C&&y.syncErrorThrowable?(this.__tryOrSetError(y,this._error,E),this.unsubscribe()):(this.__tryOrUnsub(this._error,E),this.unsubscribe());else if(y.syncErrorThrowable)C?(y.syncErrorValue=E,y.syncErrorThrown=!0):(0,O.z)(E),this.unsubscribe();else{if(this.unsubscribe(),C)throw E;(0,O.z)(E)}}}complete(){if(!this.isStopped){const{_parentSubscriber:E}=this;if(this._complete){const y=()=>this._complete.call(this._context);Z.v.useDeprecatedSynchronousErrorHandling&&E.syncErrorThrowable?(this.__tryOrSetError(E,y),this.unsubscribe()):(this.__tryOrUnsub(y),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(E,y){try{E.call(this._context,y)}catch(C){if(this.unsubscribe(),Z.v.useDeprecatedSynchronousErrorHandling)throw C;(0,O.z)(C)}}__tryOrSetError(E,y,C){if(!Z.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{y.call(this._context,C)}catch(U){return Z.v.useDeprecatedSynchronousErrorHandling?(E.syncErrorValue=U,E.syncErrorThrown=!0,!0):((0,O.z)(U),!0)}return!1}_unsubscribe(){const{_parentSubscriber:E}=this;this._context=null,this._parentSubscriber=null,E.unsubscribe()}}},42654:(Xe,me,h)=>{"use strict";h.d(me,{w:()=>O});var e=h(66688),s=h(57830),K=h(67043);const Z=(()=>{function z(N){return Error.call(this),this.message=N?`${N.length} errors occurred during unsubscription:\n${N.map((E,y)=>`${y+1}) ${E.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=N,this}return z.prototype=Object.create(Error.prototype),z})();class O{constructor(N){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,N&&(this._unsubscribe=N)}unsubscribe(){let N;if(this.closed)return;let{_parentOrParents:E,_unsubscribe:y,_subscriptions:C}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,E instanceof O)E.remove(this);else if(null!==E)for(let U=0;U<E.length;++U)E[U].remove(this);if((0,K.m)(y))try{y.call(this)}catch(U){N=U instanceof Z?H(U.errors):[U]}if((0,e.k)(C)){let U=-1,b=C.length;for(;++U<b;){const G=C[U];if((0,s.K)(G))try{G.unsubscribe()}catch(w){N=N||[],w instanceof Z?N=N.concat(H(w.errors)):N.push(w)}}}if(N)throw new Z(N)}add(N){let E=N;if(!N)return O.EMPTY;switch(typeof N){case"function":E=new O(N);case"object":if(E===this||E.closed||"function"!=typeof E.unsubscribe)return E;if(this.closed)return E.unsubscribe(),E;if(!(E instanceof O)){const U=E;E=new O,E._subscriptions=[U]}break;default:throw new Error("unrecognized teardown "+N+" added to Subscription.")}let{_parentOrParents:y}=E;if(null===y)E._parentOrParents=this;else if(y instanceof O){if(y===this)return E;E._parentOrParents=[y,this]}else{if(-1!==y.indexOf(this))return E;y.push(this)}const C=this._subscriptions;return null===C?this._subscriptions=[E]:C.push(E),E}remove(N){const E=this._subscriptions;if(E){const y=E.indexOf(N);-1!==y&&E.splice(y,1)}}}var z;function H(z){return z.reduce((N,E)=>N.concat(E instanceof Z?E.errors:E),[])}O.EMPTY=((z=new O).closed=!0,z)},92830:(Xe,me,h)=>{"use strict";h.d(me,{v:()=>s});let e=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(K){if(K){const F=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+F.stack)}else e&&console.log("RxJS: Back to a better error behavior. Thank you. <3");e=K},get useDeprecatedSynchronousErrorHandling(){return e}}},71762:(Xe,me,h)=>{"use strict";h.d(me,{N:()=>O,c:()=>Z});var e=h(5529),s=h(56498),K=h(42654),F=h(74327);class Z extends s.y{constructor(y,C){super(),this.source=y,this.subjectFactory=C,this._refCount=0,this._isComplete=!1}_subscribe(y){return this.getSubject().subscribe(y)}getSubject(){const y=this._subject;return(!y||y.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let y=this._connection;return y||(this._isComplete=!1,y=this._connection=new K.w,y.add(this.source.subscribe(new H(this.getSubject(),this))),y.closed&&(this._connection=null,y=K.w.EMPTY)),y}refCount(){return(0,F.x)()(this)}}const O=(()=>{const E=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:E._subscribe},_isComplete:{value:E._isComplete,writable:!0},getSubject:{value:E.getSubject},connect:{value:E.connect},refCount:{value:E.refCount}}})();class H extends e.Yc{constructor(y,C){super(y),this.connectable=C}_error(y){this._unsubscribe(),super._error(y)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const y=this.connectable;if(y){this.connectable=null;const C=y._connection;y._refCount=0,y._subject=null,y._connection=null,C&&C.unsubscribe()}}}},36053:(Xe,me,h)=>{"use strict";h.d(me,{aj:()=>H});var e=h(72866),s=h(66688),K=h(826),F=h(69054),Z=h(33009);const O={};function H(...E){let y=null,C=null;return(0,e.K)(E[E.length-1])&&(C=E.pop()),"function"==typeof E[E.length-1]&&(y=E.pop()),1===E.length&&(0,s.k)(E[0])&&(E=E[0]),(0,Z.n)(E,C).lift(new z(y))}class z{constructor(y){this.resultSelector=y}call(y,C){return C.subscribe(new N(y,this.resultSelector))}}class N extends K.L{constructor(y,C){super(y),this.resultSelector=C,this.active=0,this.values=[],this.observables=[]}_next(y){this.values.push(O),this.observables.push(y)}_complete(){const y=this.observables,C=y.length;if(0===C)this.destination.complete();else{this.active=C,this.toRespond=C;for(let U=0;U<C;U++){const b=y[U];this.add((0,F.D)(this,b,b,U))}}}notifyComplete(y){0==(this.active-=1)&&this.destination.complete()}notifyNext(y,C,U,b,G){const w=this.values,oe=this.toRespond?w[U]===O?--this.toRespond:this.toRespond:0;w[U]=C,0===oe&&(this.resultSelector?this._tryResultSelector(w):this.destination.next(w.slice()))}_tryResultSelector(y){let C;try{C=this.resultSelector.apply(this,y)}catch(U){return void this.destination.error(U)}this.destination.next(C)}}},61221:(Xe,me,h)=>{"use strict";h.d(me,{z:()=>F});var e=h(21086),s=h(89146);function F(...Z){return function K(){return(0,s.J)(1)}()((0,e.of)(...Z))}},88514:(Xe,me,h)=>{"use strict";h.d(me,{P:()=>F});var e=h(56498),s=h(5254),K=h(68896);function F(Z){return new e.y(O=>{let H;try{H=Z()}catch(N){return void O.error(N)}return(H?(0,s.D)(H):(0,K.c)()).subscribe(O)})}},68896:(Xe,me,h)=>{"use strict";h.d(me,{E:()=>s,c:()=>K});var e=h(56498);const s=new e.y(Z=>Z.complete());function K(Z){return Z?function F(Z){return new e.y(O=>Z.schedule(()=>O.complete()))}(Z):s}},30567:(Xe,me,h)=>{"use strict";h.d(me,{D:()=>O});var e=h(56498),s=h(66688),K=h(24850),F=h(57830),Z=h(5254);function O(...z){if(1===z.length){const N=z[0];if((0,s.k)(N))return H(N,null);if((0,F.K)(N)&&Object.getPrototypeOf(N)===Object.prototype){const E=Object.keys(N);return H(E.map(y=>N[y]),E)}}if("function"==typeof z[z.length-1]){const N=z.pop();return H(z=1===z.length&&(0,s.k)(z[0])?z[0]:z,null).pipe((0,K.U)(E=>N(...E)))}return H(z,null)}function H(z,N){return new e.y(E=>{const y=z.length;if(0===y)return void E.complete();const C=new Array(y);let U=0,b=0;for(let G=0;G<y;G++){const w=(0,Z.D)(z[G]);let ee=!1;E.add(w.subscribe({next:oe=>{ee||(ee=!0,b++),C[G]=oe},error:oe=>E.error(oe),complete:()=>{U++,(U===y||!ee)&&(b===y&&E.next(N?N.reduce((oe,_e,Ne)=>(oe[_e]=C[Ne],oe),{}):C),E.complete())}}))}})}},5254:(Xe,me,h)=>{"use strict";h.d(me,{D:()=>G});var e=h(56498),s=h(59249),K=h(42654),F=h(93821),H=h(66454),z=h(5430),y=h(98955),C=h(58515);function G(w,ee){return ee?function b(w,ee){if(null!=w){if(function E(w){return w&&"function"==typeof w[F.L]}(w))return function Z(w,ee){return new e.y(oe=>{const _e=new K.w;return _e.add(ee.schedule(()=>{const Ne=w[F.L]();_e.add(Ne.subscribe({next(te){_e.add(ee.schedule(()=>oe.next(te)))},error(te){_e.add(ee.schedule(()=>oe.error(te)))},complete(){_e.add(ee.schedule(()=>oe.complete()))}}))})),_e})}(w,ee);if((0,y.t)(w))return function O(w,ee){return new e.y(oe=>{const _e=new K.w;return _e.add(ee.schedule(()=>w.then(Ne=>{_e.add(ee.schedule(()=>{oe.next(Ne),_e.add(ee.schedule(()=>oe.complete()))}))},Ne=>{_e.add(ee.schedule(()=>oe.error(Ne)))}))),_e})}(w,ee);if((0,C.z)(w))return(0,H.r)(w,ee);if(function U(w){return w&&"function"==typeof w[z.hZ]}(w)||"string"==typeof w)return function N(w,ee){if(!w)throw new Error("Iterable cannot be null");return new e.y(oe=>{const _e=new K.w;let Ne;return _e.add(()=>{Ne&&"function"==typeof Ne.return&&Ne.return()}),_e.add(ee.schedule(()=>{Ne=w[z.hZ](),_e.add(ee.schedule(function(){if(oe.closed)return;let te,de;try{const J=Ne.next();te=J.value,de=J.done}catch(J){return void oe.error(J)}de?oe.complete():(oe.next(te),this.schedule())}))})),_e})}(w,ee)}throw new TypeError((null!==w&&typeof w||w)+" is not observable")}(w,ee):w instanceof e.y?w:new e.y((0,s.s)(w))}},33009:(Xe,me,h)=>{"use strict";h.d(me,{n:()=>F});var e=h(56498),s=h(13650),K=h(66454);function F(Z,O){return O?(0,K.r)(Z,O):new e.y((0,s.V)(Z))}},23753:(Xe,me,h)=>{"use strict";h.d(me,{R:()=>O});var e=h(56498),s=h(66688),K=h(67043),F=h(24850);function O(y,C,U,b){return(0,K.m)(U)&&(b=U,U=void 0),b?O(y,C,U).pipe((0,F.U)(G=>(0,s.k)(G)?b(...G):b(G))):new e.y(G=>{H(y,C,function w(ee){G.next(arguments.length>1?Array.prototype.slice.call(arguments):ee)},G,U)})}function H(y,C,U,b,G){let w;if(function E(y){return y&&"function"==typeof y.addEventListener&&"function"==typeof y.removeEventListener}(y)){const ee=y;y.addEventListener(C,U,G),w=()=>ee.removeEventListener(C,U,G)}else if(function N(y){return y&&"function"==typeof y.on&&"function"==typeof y.off}(y)){const ee=y;y.on(C,U),w=()=>ee.off(C,U)}else if(function z(y){return y&&"function"==typeof y.addListener&&"function"==typeof y.removeListener}(y)){const ee=y;y.addListener(C,U),w=()=>ee.removeListener(C,U)}else{if(!y||!y.length)throw new TypeError("Invalid event target");for(let ee=0,oe=y.length;ee<oe;ee++)H(y[ee],C,U,b,G)}b.add(w)}},36787:(Xe,me,h)=>{"use strict";h.d(me,{T:()=>Z});var e=h(56498),s=h(72866),K=h(89146),F=h(33009);function Z(...O){let H=Number.POSITIVE_INFINITY,z=null,N=O[O.length-1];return(0,s.K)(N)?(z=O.pop(),O.length>1&&"number"==typeof O[O.length-1]&&(H=O.pop())):"number"==typeof N&&(H=O.pop()),null===z&&1===O.length&&O[0]instanceof e.y?O[0]:(0,K.J)(H)((0,F.n)(O,z))}},87274:(Xe,me,h)=>{"use strict";h.d(me,{C:()=>K});var e=h(56498),s=h(67876);const K=new e.y(s.Z)},21086:(Xe,me,h)=>{"use strict";h.d(me,{of:()=>F});var e=h(72866),s=h(33009),K=h(66454);function F(...Z){let O=Z[Z.length-1];return(0,e.K)(O)?(Z.pop(),(0,K.r)(Z,O)):(0,s.n)(Z)}},61737:(Xe,me,h)=>{"use strict";h.d(me,{_:()=>s});var e=h(56498);function s(F,Z){return new e.y(Z?O=>Z.schedule(K,0,{error:F,subscriber:O}):O=>O.error(F))}function K({error:F,subscriber:Z}){Z.error(F)}},27221:(Xe,me,h)=>{"use strict";h.d(me,{K:()=>F});var e=h(826),s=h(51869),K=h(69054);function F(H){return function(N){const E=new Z(H),y=N.lift(E);return E.caught=y}}class Z{constructor(z){this.selector=z}call(z,N){return N.subscribe(new O(z,this.selector,this.caught))}}class O extends e.L{constructor(z,N,E){super(z),this.selector=N,this.caught=E}error(z){if(!this.isStopped){let N;try{N=this.selector(z,this.caught)}catch(C){return void super.error(C)}this._unsubscribeAndRecycle();const E=new s.d(this,void 0,void 0);this.add(E);const y=(0,K.D)(this,N,void 0,void 0,E);y!==E&&this.add(y)}}}},21406:(Xe,me,h)=>{"use strict";h.d(me,{b:()=>s});var e=h(61709);function s(K,F){return(0,e.zg)(K,F,1)}},80013:(Xe,me,h)=>{"use strict";h.d(me,{b:()=>K});var e=h(43489),s=h(16014);function K(H,z=s.P){return N=>N.lift(new F(H,z))}class F{constructor(z,N){this.dueTime=z,this.scheduler=N}call(z,N){return N.subscribe(new Z(z,this.dueTime,this.scheduler))}}class Z extends e.L{constructor(z,N,E){super(z),this.dueTime=N,this.scheduler=E,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(z){this.clearDebounce(),this.lastValue=z,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(O,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:z}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(z)}}clearDebounce(){const z=this.debouncedSubscription;null!==z&&(this.remove(z),z.unsubscribe(),this.debouncedSubscription=null)}}function O(H){H.debouncedNext()}},47314:(Xe,me,h)=>{"use strict";h.d(me,{d:()=>s});var e=h(43489);function s(Z=null){return O=>O.lift(new K(Z))}class K{constructor(O){this.defaultValue=O}call(O,H){return H.subscribe(new F(O,this.defaultValue))}}class F extends e.L{constructor(O,H){super(O),this.defaultValue=H,this.isEmpty=!0}_next(O){this.isEmpty=!1,this.destination.next(O)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},29177:(Xe,me,h)=>{"use strict";h.d(me,{g:()=>N});var e=h(16014),K=h(43489),F=h(68896),Z=h(21086),O=h(61737);class z{constructor(b,G,w){this.kind=b,this.value=G,this.error=w,this.hasValue="N"===b}observe(b){switch(this.kind){case"N":return b.next&&b.next(this.value);case"E":return b.error&&b.error(this.error);case"C":return b.complete&&b.complete()}}do(b,G,w){switch(this.kind){case"N":return b&&b(this.value);case"E":return G&&G(this.error);case"C":return w&&w()}}accept(b,G,w){return b&&"function"==typeof b.next?this.observe(b):this.do(b,G,w)}toObservable(){switch(this.kind){case"N":return(0,Z.of)(this.value);case"E":return(0,O._)(this.error);case"C":return(0,F.c)()}throw new Error("unexpected notification kind value")}static createNext(b){return typeof b<"u"?new z("N",b):z.undefinedValueNotification}static createError(b){return new z("E",void 0,b)}static createComplete(){return z.completeNotification}}function N(U,b=e.P){const w=function s(U){return U instanceof Date&&!isNaN(+U)}(U)?+U-b.now():Math.abs(U);return ee=>ee.lift(new E(w,b))}z.completeNotification=new z("C"),z.undefinedValueNotification=new z("N",void 0);class E{constructor(b,G){this.delay=b,this.scheduler=G}call(b,G){return G.subscribe(new y(b,this.delay,this.scheduler))}}class y extends K.L{constructor(b,G,w){super(b),this.delay=G,this.scheduler=w,this.queue=[],this.active=!1,this.errored=!1}static dispatch(b){const G=b.source,w=G.queue,ee=b.scheduler,oe=b.destination;for(;w.length>0&&w[0].time-ee.now()<=0;)w.shift().notification.observe(oe);if(w.length>0){const _e=Math.max(0,w[0].time-ee.now());this.schedule(b,_e)}else this.unsubscribe(),G.active=!1}_schedule(b){this.active=!0,this.destination.add(b.schedule(y.dispatch,this.delay,{source:this,destination:this.destination,scheduler:b}))}scheduleNotification(b){if(!0===this.errored)return;const G=this.scheduler,w=new C(G.now()+this.delay,b);this.queue.push(w),!1===this.active&&this._schedule(G)}_next(b){this.scheduleNotification(z.createNext(b))}_error(b){this.errored=!0,this.queue=[],this.destination.error(b),this.unsubscribe()}_complete(){this.scheduleNotification(z.createComplete()),this.unsubscribe()}}class C{constructor(b,G){this.time=b,this.notification=G}}},75778:(Xe,me,h)=>{"use strict";h.d(me,{x:()=>s});var e=h(43489);function s(Z,O){return H=>H.lift(new K(Z,O))}class K{constructor(O,H){this.compare=O,this.keySelector=H}call(O,H){return H.subscribe(new F(O,this.compare,this.keySelector))}}class F extends e.L{constructor(O,H,z){super(O),this.keySelector=z,this.hasKey=!1,"function"==typeof H&&(this.compare=H)}compare(O,H){return O===H}_next(O){let H;try{const{keySelector:N}=this;H=N?N(O):O}catch(N){return this.destination.error(N)}let z=!1;if(this.hasKey)try{const{compare:N}=this;z=N(this.key,H)}catch(N){return this.destination.error(N)}else this.hasKey=!0;z||(this.key=H,this.destination.next(O))}}},92198:(Xe,me,h)=>{"use strict";h.d(me,{h:()=>s});var e=h(43489);function s(Z,O){return function(z){return z.lift(new K(Z,O))}}class K{constructor(O,H){this.predicate=O,this.thisArg=H}call(O,H){return H.subscribe(new F(O,this.predicate,this.thisArg))}}class F extends e.L{constructor(O,H,z){super(O),this.predicate=H,this.thisArg=z,this.count=0}_next(O){let H;try{H=this.predicate.call(this.thisArg,O,this.count++)}catch(z){return void this.destination.error(z)}H&&this.destination.next(O)}}},87224:(Xe,me,h)=>{"use strict";h.d(me,{P:()=>H});var e=h(84450),s=h(92198),K=h(72986),F=h(47314),Z=h(34907),O=h(35379);function H(z,N){const E=arguments.length>=2;return y=>y.pipe(z?(0,s.h)((C,U)=>z(C,U,y)):O.y,(0,K.q)(1),E?(0,F.d)(N):(0,Z.T)(()=>new e.K))}},24850:(Xe,me,h)=>{"use strict";h.d(me,{U:()=>s});var e=h(43489);function s(Z,O){return function(z){if("function"!=typeof Z)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return z.lift(new K(Z,O))}}class K{constructor(O,H){this.project=O,this.thisArg=H}call(O,H){return H.subscribe(new F(O,this.project,this.thisArg))}}class F extends e.L{constructor(O,H,z){super(O),this.project=H,this.count=0,this.thisArg=z||this}_next(O){let H;try{H=this.project.call(this.thisArg,O,this.count++)}catch(z){return void this.destination.error(z)}this.destination.next(H)}}},89146:(Xe,me,h)=>{"use strict";h.d(me,{J:()=>K});var e=h(61709),s=h(35379);function K(F=Number.POSITIVE_INFINITY){return(0,e.zg)(s.y,F)}},61709:(Xe,me,h)=>{"use strict";h.d(me,{zg:()=>O});var e=h(69054),s=h(826),K=h(51869),F=h(24850),Z=h(5254);function O(N,E,y=Number.POSITIVE_INFINITY){return"function"==typeof E?C=>C.pipe(O((U,b)=>(0,Z.D)(N(U,b)).pipe((0,F.U)((G,w)=>E(U,G,b,w))),y)):("number"==typeof E&&(y=E),C=>C.lift(new H(N,y)))}class H{constructor(E,y=Number.POSITIVE_INFINITY){this.project=E,this.concurrent=y}call(E,y){return y.subscribe(new z(E,this.project,this.concurrent))}}class z extends s.L{constructor(E,y,C=Number.POSITIVE_INFINITY){super(E),this.project=y,this.concurrent=C,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(E){this.active<this.concurrent?this._tryNext(E):this.buffer.push(E)}_tryNext(E){let y;const C=this.index++;try{y=this.project(E,C)}catch(U){return void this.destination.error(U)}this.active++,this._innerSub(y,E,C)}_innerSub(E,y,C){const U=new K.d(this,y,C),b=this.destination;b.add(U);const G=(0,e.D)(this,E,void 0,void 0,U);G!==U&&b.add(G)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(E,y,C,U,b){this.destination.next(y)}notifyComplete(E){const y=this.buffer;this.remove(E),this.active--,y.length>0?this._next(y.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},82536:(Xe,me,h)=>{"use strict";h.d(me,{O:()=>s});var e=h(71762);function s(F,Z){return function(H){let z;if(z="function"==typeof F?F:function(){return F},"function"==typeof Z)return H.lift(new K(z,Z));const N=Object.create(H,e.N);return N.source=H,N.subjectFactory=z,N}}class K{constructor(Z,O){this.subjectFactory=Z,this.selector=O}call(Z,O){const{selector:H}=this,z=this.subjectFactory(),N=H(z).subscribe(Z);return N.add(O.subscribe(z)),N}}},74327:(Xe,me,h)=>{"use strict";h.d(me,{x:()=>s});var e=h(43489);function s(){return function(O){return O.lift(new K(O))}}class K{constructor(O){this.connectable=O}call(O,H){const{connectable:z}=this;z._refCount++;const N=new F(O,z),E=H.subscribe(N);return N.closed||(N.connection=z.connect()),E}}class F extends e.L{constructor(O,H){super(O),this.connectable=H}_unsubscribe(){const{connectable:O}=this;if(!O)return void(this.connection=null);this.connectable=null;const H=O._refCount;if(H<=0)return void(this.connection=null);if(O._refCount=H-1,H>1)return void(this.connection=null);const{connection:z}=this,N=O._connection;this.connection=null,N&&(!z||N===z)&&N.unsubscribe()}}},88117:(Xe,me,h)=>{"use strict";h.d(me,{B:()=>Z});var e=h(82536),s=h(74327),K=h(5529);function F(){return new K.xQ}function Z(){return O=>(0,s.x)()((0,e.O)(F)(O))}},1059:(Xe,me,h)=>{"use strict";h.d(me,{O:()=>K});var e=h(61221),s=h(72866);function K(...F){const Z=F[F.length-1];return(0,s.K)(Z)?(F.pop(),O=>(0,e.z)(F,O,Z)):O=>(0,e.z)(F,O)}},87545:(Xe,me,h)=>{"use strict";h.d(me,{w:()=>O});var e=h(826),s=h(51869),K=h(69054),F=h(24850),Z=h(5254);function O(N,E){return"function"==typeof E?y=>y.pipe(O((C,U)=>(0,Z.D)(N(C,U)).pipe((0,F.U)((b,G)=>E(C,b,U,G))))):y=>y.lift(new H(N))}class H{constructor(E){this.project=E}call(E,y){return y.subscribe(new z(E,this.project))}}class z extends e.L{constructor(E,y){super(E),this.project=y,this.index=0}_next(E){let y;const C=this.index++;try{y=this.project(E,C)}catch(U){return void this.destination.error(U)}this._innerSub(y,E,C)}_innerSub(E,y,C){const U=this.innerSubscription;U&&U.unsubscribe();const b=new s.d(this,y,C),G=this.destination;G.add(b),this.innerSubscription=(0,K.D)(this,E,void 0,void 0,b),this.innerSubscription!==b&&G.add(this.innerSubscription)}_complete(){const{innerSubscription:E}=this;(!E||E.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(E){this.destination.remove(E),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(E,y,C,U,b){this.destination.next(y)}}},72986:(Xe,me,h)=>{"use strict";h.d(me,{q:()=>F});var e=h(43489),s=h(94231),K=h(68896);function F(H){return z=>0===H?(0,K.c)():z.lift(new Z(H))}class Z{constructor(z){if(this.total=z,this.total<0)throw new s.W}call(z,N){return N.subscribe(new O(z,this.total))}}class O extends e.L{constructor(z,N){super(z),this.total=N,this.count=0}_next(z){const N=this.total,E=++this.count;E<=N&&(this.destination.next(z),E===N&&(this.destination.complete(),this.unsubscribe()))}}},2994:(Xe,me,h)=>{"use strict";h.d(me,{b:()=>F});var e=h(43489),s=h(67876),K=h(67043);function F(H,z,N){return function(y){return y.lift(new Z(H,z,N))}}class Z{constructor(z,N,E){this.nextOrObserver=z,this.error=N,this.complete=E}call(z,N){return N.subscribe(new O(z,this.nextOrObserver,this.error,this.complete))}}class O extends e.L{constructor(z,N,E,y){super(z),this._tapNext=s.Z,this._tapError=s.Z,this._tapComplete=s.Z,this._tapError=E||s.Z,this._tapComplete=y||s.Z,(0,K.m)(N)?(this._context=this,this._tapNext=N):N&&(this._context=N,this._tapNext=N.next||s.Z,this._tapError=N.error||s.Z,this._tapComplete=N.complete||s.Z)}_next(z){try{this._tapNext.call(this._context,z)}catch(N){return void this.destination.error(N)}this.destination.next(z)}_error(z){try{this._tapError.call(this._context,z)}catch(N){return void this.destination.error(N)}this.destination.error(z)}_complete(){try{this._tapComplete.call(this._context)}catch(z){return void this.destination.error(z)}return this.destination.complete()}}},34907:(Xe,me,h)=>{"use strict";h.d(me,{T:()=>K});var e=h(84450),s=h(43489);function K(H=O){return z=>z.lift(new F(H))}class F{constructor(z){this.errorFactory=z}call(z,N){return N.subscribe(new Z(z,this.errorFactory))}}class Z extends s.L{constructor(z,N){super(z),this.errorFactory=N,this.hasValue=!1}_next(z){this.hasValue=!0,this.destination.next(z)}_complete(){if(this.hasValue)return this.destination.complete();{let z;try{z=this.errorFactory()}catch(N){z=N}this.destination.error(z)}}}function O(){return new e.K}},66454:(Xe,me,h)=>{"use strict";h.d(me,{r:()=>K});var e=h(56498),s=h(42654);function K(F,Z){return new e.y(O=>{const H=new s.w;let z=0;return H.add(Z.schedule(function(){z!==F.length?(O.next(F[z++]),O.closed||H.add(this.schedule())):O.complete()})),H})}},16014:(Xe,me,h)=>{"use strict";h.d(me,{P:()=>O});var e=h(42654);class s extends e.w{constructor(z,N){super()}schedule(z,N=0){return this}}let F=(()=>{class H{constructor(N,E=H.now){this.SchedulerAction=N,this.now=E}schedule(N,E=0,y){return new this.SchedulerAction(this,N).schedule(y,E)}}return H.now=()=>Date.now(),H})();class Z extends F{constructor(z,N=F.now){super(z,()=>Z.delegate&&Z.delegate!==this?Z.delegate.now():N()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(z,N=0,E){return Z.delegate&&Z.delegate!==this?Z.delegate.schedule(z,N,E):super.schedule(z,N,E)}flush(z){const{actions:N}=this;if(this.active)return void N.push(z);let E;this.active=!0;do{if(E=z.execute(z.state,z.delay))break}while(z=N.shift());if(this.active=!1,E){for(;z=N.shift();)z.unsubscribe();throw E}}}const O=new Z(class K extends s{constructor(z,N){super(z,N),this.scheduler=z,this.work=N,this.pending=!1}schedule(z,N=0){if(this.closed)return this;this.state=z;const E=this.id,y=this.scheduler;return null!=E&&(this.id=this.recycleAsyncId(y,E,N)),this.pending=!0,this.delay=N,this.id=this.id||this.requestAsyncId(y,this.id,N),this}requestAsyncId(z,N,E=0){return setInterval(z.flush.bind(z,this),E)}recycleAsyncId(z,N,E=0){if(null!==E&&this.delay===E&&!1===this.pending)return N;clearInterval(N)}execute(z,N){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const E=this._execute(z,N);if(E)return E;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(z,N){let y,E=!1;try{this.work(z)}catch(C){E=!0,y=!!C&&C||new Error(C)}if(E)return this.unsubscribe(),y}_unsubscribe(){const z=this.id,N=this.scheduler,E=N.actions,y=E.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==y&&E.splice(y,1),null!=z&&(this.id=this.recycleAsyncId(N,z,null)),this.delay=null}})},5430:(Xe,me,h)=>{"use strict";h.d(me,{hZ:()=>s});const s=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},93821:(Xe,me,h)=>{"use strict";h.d(me,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},57668:(Xe,me,h)=>{"use strict";h.d(me,{b:()=>e});const e="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},94231:(Xe,me,h)=>{"use strict";h.d(me,{W:()=>s});const s=(()=>{function K(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return K.prototype=Object.create(Error.prototype),K})()},84450:(Xe,me,h)=>{"use strict";h.d(me,{K:()=>s});const s=(()=>{function K(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return K.prototype=Object.create(Error.prototype),K})()},95279:(Xe,me,h)=>{"use strict";h.d(me,{N:()=>s});const s=(()=>{function K(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return K.prototype=Object.create(Error.prototype),K})()},22782:(Xe,me,h)=>{"use strict";function e(s){setTimeout(()=>{throw s},0)}h.d(me,{z:()=>e})},35379:(Xe,me,h)=>{"use strict";function e(s){return s}h.d(me,{y:()=>e})},66688:(Xe,me,h)=>{"use strict";h.d(me,{k:()=>e});const e=Array.isArray||(s=>s&&"number"==typeof s.length)},58515:(Xe,me,h)=>{"use strict";h.d(me,{z:()=>e});const e=s=>s&&"number"==typeof s.length&&"function"!=typeof s},67043:(Xe,me,h)=>{"use strict";function e(s){return"function"==typeof s}h.d(me,{m:()=>e})},57830:(Xe,me,h)=>{"use strict";function e(s){return null!==s&&"object"==typeof s}h.d(me,{K:()=>e})},98955:(Xe,me,h)=>{"use strict";function e(s){return!!s&&"function"!=typeof s.subscribe&&"function"==typeof s.then}h.d(me,{t:()=>e})},72866:(Xe,me,h)=>{"use strict";function e(s){return s&&"function"==typeof s.schedule}h.d(me,{K:()=>e})},67876:(Xe,me,h)=>{"use strict";function e(){}h.d(me,{Z:()=>e})},4843:(Xe,me,h)=>{"use strict";h.d(me,{U:()=>K,z:()=>s});var e=h(35379);function s(...F){return K(F)}function K(F){return 0===F.length?e.y:1===F.length?F[0]:function(O){return F.reduce((H,z)=>z(H),O)}}},59249:(Xe,me,h)=>{"use strict";h.d(me,{s:()=>y});var e=h(13650),s=h(22782),F=h(5430),O=h(93821),z=h(58515),N=h(98955),E=h(57830);const y=C=>{if(C&&"function"==typeof C[O.L])return(C=>U=>{const b=C[O.L]();if("function"!=typeof b.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return b.subscribe(U)})(C);if((0,z.z)(C))return(0,e.V)(C);if((0,N.t)(C))return(C=>U=>(C.then(b=>{U.closed||(U.next(b),U.complete())},b=>U.error(b)).then(null,s.z),U))(C);if(C&&"function"==typeof C[F.hZ])return(C=>U=>{const b=C[F.hZ]();for(;;){const G=b.next();if(G.done){U.complete();break}if(U.next(G.value),U.closed)break}return"function"==typeof b.return&&U.add(()=>{b.return&&b.return()}),U})(C);{const b=`You provided ${(0,E.K)(C)?"an invalid object":`'${C}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(b)}}},13650:(Xe,me,h)=>{"use strict";h.d(me,{V:()=>e});const e=s=>K=>{for(let F=0,Z=s.length;F<Z&&!K.closed;F++)K.next(s[F]);K.complete()}},69054:(Xe,me,h)=>{"use strict";h.d(me,{D:()=>F});var e=h(51869),s=h(59249),K=h(56498);function F(Z,O,H,z,N=new e.d(Z,H,z)){if(!N.closed)return O instanceof K.y?O.subscribe(N):(0,s.s)(O)(N)}},88415:function(Xe){Xe.exports=function(){"use strict";function me(k){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(se){return typeof se}:function(se){return se&&"function"==typeof Symbol&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se})(k)}var k,h=(k={},function(se){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"introjs-stamp";return k[pe]=k[pe]||0,void 0===se[pe]&&(se[pe]=k[pe]++),se[pe]});function e(k,se,pe){if(k)for(var Me=0,$e=k.length;Me<$e;Me++)se(k[Me],Me);"function"==typeof pe&&pe()}var s=new function(){var k="introjs_event";this._id=function(se,pe,Me,$e){return pe+h(Me)+($e?"_".concat(h($e)):"")},this.on=function(se,pe,Me,$e,Fe){var ht=this._id.apply(this,arguments),nt=function(vt){return Me.call($e||se,vt||window.event)};"addEventListener"in se?se.addEventListener(pe,nt,Fe):"attachEvent"in se&&se.attachEvent("on".concat(pe),nt),se[k]=se[k]||{},se[k][ht]=nt},this.off=function(se,pe,Me,$e,Fe){var ht=this._id.apply(this,arguments),nt=se[k]&&se[k][ht];nt&&("removeEventListener"in se?se.removeEventListener(pe,nt,Fe):"detachEvent"in se&&se.detachEvent("on".concat(pe),nt),se[k][ht]=null)}},K=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function F(k,se){return k(se={exports:{}},se.exports),se.exports}var Z=function(k){return k&&k.Math==Math&&k},O=Z("object"==typeof globalThis&&globalThis)||Z("object"==typeof window&&window)||Z("object"==typeof self&&self)||Z("object"==typeof K&&K)||function(){return this}()||Function("return this")(),H=function(k){try{return!!k()}catch{return!0}},z=!H(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),N={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,y={f:E&&!N.call({1:2},1)?function(k){var se=E(this,k);return!!se&&se.enumerable}:N},C=function(k,se){return{enumerable:!(1&k),configurable:!(2&k),writable:!(4&k),value:se}},U={}.toString,b=function(k){return U.call(k).slice(8,-1)},G="".split,w=H(function(){return!Object("z").propertyIsEnumerable(0)})?function(k){return"String"==b(k)?G.call(k,""):Object(k)}:Object,ee=function(k){if(null==k)throw TypeError("Can't call method on "+k);return k},oe=function(k){return w(ee(k))},_e=function(k){return"object"==typeof k?null!==k:"function"==typeof k},Ne=function(k,se){if(!_e(k))return k;var pe,Me;if(se&&"function"==typeof(pe=k.toString)&&!_e(Me=pe.call(k))||"function"==typeof(pe=k.valueOf)&&!_e(Me=pe.call(k))||!se&&"function"==typeof(pe=k.toString)&&!_e(Me=pe.call(k)))return Me;throw TypeError("Can't convert object to primitive value")},te={}.hasOwnProperty,de=function(k,se){return te.call(k,se)},J=O.document,Ie=_e(J)&&_e(J.createElement),Ze=function(k){return Ie?J.createElement(k):{}},ot=!z&&!H(function(){return 7!=Object.defineProperty(Ze("div"),"a",{get:function(){return 7}}).a}),lt=Object.getOwnPropertyDescriptor,At={f:z?lt:function(k,se){if(k=oe(k),se=Ne(se,!0),ot)try{return lt(k,se)}catch{}if(de(k,se))return C(!y.f.call(k,se),k[se])}},qe=function(k){if(!_e(k))throw TypeError(String(k)+" is not an object");return k},wt=Object.defineProperty,re={f:z?wt:function(k,se,pe){if(qe(k),se=Ne(se,!0),qe(pe),ot)try{return wt(k,se,pe)}catch{}if("get"in pe||"set"in pe)throw TypeError("Accessors not supported");return"value"in pe&&(k[se]=pe.value),k}},Ee=z?function(k,se,pe){return re.f(k,se,C(1,pe))}:function(k,se,pe){return k[se]=pe,k},Ve=function(k,se){try{Ee(O,k,se)}catch{O[k]=se}return se},Le=O["__core-js_shared__"]||Ve("__core-js_shared__",{}),Dt=Function.toString;"function"!=typeof Le.inspectSource&&(Le.inspectSource=function(k){return Dt.call(k)});var Tt,pt,Be,ft=Le.inspectSource,gt=O.WeakMap,Et="function"==typeof gt&&/native code/.test(ft(gt)),Mt=F(function(k){(k.exports=function(se,pe){return Le[se]||(Le[se]=void 0!==pe?pe:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})}),Qt=0,ye=Math.random(),Ae=function(k){return"Symbol("+String(void 0===k?"":k)+")_"+(++Qt+ye).toString(36)},A=Mt("keys"),j=function(k){return A[k]||(A[k]=Ae(k))},he={};if(Et){var We=Le.state||(Le.state=new(0,O.WeakMap)),Qe=We.get,Ye=We.has,Oe=We.set;Tt=function(k,se){return se.facade=k,Oe.call(We,k,se),se},pt=function(k){return Qe.call(We,k)||{}},Be=function(k){return Ye.call(We,k)}}else{var Ke=j("state");he[Ke]=!0,Tt=function(k,se){return se.facade=k,Ee(k,Ke,se),se},pt=function(k){return de(k,Ke)?k[Ke]:{}},Be=function(k){return de(k,Ke)}}var yt={set:Tt,get:pt,has:Be,enforce:function(k){return Be(k)?pt(k):Tt(k,{})},getterFor:function(k){return function(se){var pe;if(!_e(se)||(pe=pt(se)).type!==k)throw TypeError("Incompatible receiver, "+k+" required");return pe}}},Ge=F(function(k){var se=yt.get,pe=yt.enforce,Me=String(String).split("String");(k.exports=function($e,Fe,ht,nt){var vt,xt=!!nt&&!!nt.unsafe,kt=!!nt&&!!nt.enumerable,Gt=!!nt&&!!nt.noTargetGet;"function"==typeof ht&&("string"!=typeof Fe||de(ht,"name")||Ee(ht,"name",Fe),(vt=pe(ht)).source||(vt.source=Me.join("string"==typeof Fe?Fe:""))),$e!==O?(xt?!Gt&&$e[Fe]&&(kt=!0):delete $e[Fe],kt?$e[Fe]=ht:Ee($e,Fe,ht)):kt?$e[Fe]=ht:Ve(Fe,ht)})(Function.prototype,"toString",function(){return"function"==typeof this&&se(this).source||ft(this)})}),Y=O,$=function(k){return"function"==typeof k?k:void 0},x=function(k,se){return arguments.length<2?$(Y[k])||$(O[k]):Y[k]&&Y[k][se]||O[k]&&O[k][se]},ie=Math.ceil,q=Math.floor,Q=function(k){return isNaN(k=+k)?0:(k>0?q:ie)(k)},ne=Math.min,ve=function(k){return k>0?ne(Q(k),9007199254740991):0},Pe=Math.max,_t=Math.min,rt=function(k,se){var pe=Q(k);return pe<0?Pe(pe+se,0):_t(pe,se)},It=function(k){return function(se,pe,Me){var $e,Fe=oe(se),ht=ve(Fe.length),nt=rt(Me,ht);if(k&&pe!=pe){for(;ht>nt;)if(($e=Fe[nt++])!=$e)return!0}else for(;ht>nt;nt++)if((k||nt in Fe)&&Fe[nt]===pe)return k||nt||0;return!k&&-1}},ct={includes:It(!0),indexOf:It(!1)},jt=ct.indexOf,Kt=function(k,se){var pe,Me=oe(k),$e=0,Fe=[];for(pe in Me)!de(he,pe)&&de(Me,pe)&&Fe.push(pe);for(;se.length>$e;)de(Me,pe=se[$e++])&&(~jt(Fe,pe)||Fe.push(pe));return Fe},On=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sn=On.concat("length","prototype"),zt={f:Object.getOwnPropertyNames||function(k){return Kt(k,sn)}},an={f:Object.getOwnPropertySymbols},en=x("Reflect","ownKeys")||function(k){var se=zt.f(qe(k)),pe=an.f;return pe?se.concat(pe(k)):se},rn=function(k,se){for(var pe=en(se),Me=re.f,$e=At.f,Fe=0;Fe<pe.length;Fe++){var ht=pe[Fe];de(k,ht)||Me(k,ht,$e(se,ht))}},Jn=/#|\.prototype\./,Qn=function(k,se){var pe=wi[fi(k)];return pe==_i||pe!=Hi&&("function"==typeof se?H(se):!!se)},fi=Qn.normalize=function(k){return String(k).replace(Jn,".").toLowerCase()},wi=Qn.data={},Hi=Qn.NATIVE="N",_i=Qn.POLYFILL="P",bi=Qn,Bn=At.f,nn=function(k,se){var pe,Me,$e,Fe,ht,nt=k.target,vt=k.global,xt=k.stat;if(pe=vt?O:xt?O[nt]||Ve(nt,{}):(O[nt]||{}).prototype)for(Me in se){if(Fe=se[Me],$e=k.noTargetGet?(ht=Bn(pe,Me))&&ht.value:pe[Me],!bi(vt?Me:nt+(xt?".":"#")+Me,k.forced)&&void 0!==$e){if(typeof Fe==typeof $e)continue;rn(Fe,$e)}(k.sham||$e&&$e.sham)&&Ee(Fe,"sham",!0),Ge(pe,Me,Fe,k)}},Re=function(){var k=qe(this),se="";return k.global&&(se+="g"),k.ignoreCase&&(se+="i"),k.multiline&&(se+="m"),k.dotAll&&(se+="s"),k.unicode&&(se+="u"),k.sticky&&(se+="y"),se};function St(k,se){return RegExp(k,se)}var He,mt,$t={UNSUPPORTED_Y:H(function(){var k=St("a","y");return k.lastIndex=2,null!=k.exec("abcd")}),BROKEN_CARET:H(function(){var k=St("^r","gy");return k.lastIndex=2,null!=k.exec("str")})},Te=RegExp.prototype.exec,Se=String.prototype.replace,fe=Te,ze=(mt=/b*/g,Te.call(He=/a/,"a"),Te.call(mt,"a"),0!==He.lastIndex||0!==mt.lastIndex),ut=$t.UNSUPPORTED_Y||$t.BROKEN_CARET,Nt=void 0!==/()??/.exec("")[1];(ze||Nt||ut)&&(fe=function(k){var se,pe,Me,$e,Fe=this,ht=ut&&Fe.sticky,nt=Re.call(Fe),vt=Fe.source,xt=0,kt=k;return ht&&(-1===(nt=nt.replace("y","")).indexOf("g")&&(nt+="g"),kt=String(k).slice(Fe.lastIndex),Fe.lastIndex>0&&(!Fe.multiline||Fe.multiline&&"\n"!==k[Fe.lastIndex-1])&&(vt="(?: "+vt+")",kt=" "+kt,xt++),pe=new RegExp("^(?:"+vt+")",nt)),Nt&&(pe=new RegExp("^"+vt+"$(?!\\s)",nt)),ze&&(se=Fe.lastIndex),Me=Te.call(ht?pe:Fe,kt),ht?Me?(Me.input=Me.input.slice(xt),Me[0]=Me[0].slice(xt),Me.index=Fe.lastIndex,Fe.lastIndex+=Me[0].length):Fe.lastIndex=0:ze&&Me&&(Fe.lastIndex=Fe.global?Me.index+Me[0].length:se),Nt&&Me&&Me.length>1&&Se.call(Me[0],pe,function(){for($e=1;$e<arguments.length-2;$e++)void 0===arguments[$e]&&(Me[$e]=void 0)}),Me});var tn=fe;nn({target:"RegExp",proto:!0,forced:/./.exec!==tn},{exec:tn});var Yt,wn,xi="process"==b(O.process),qt=x("navigator","userAgent")||"",oi=O.process,ir=oi&&oi.versions,Ai=ir&&ir.v8;Ai?wn=(Yt=Ai.split("."))[0]+Yt[1]:qt&&(!(Yt=qt.match(/Edge\/(\d+)/))||Yt[1]>=74)&&(Yt=qt.match(/Chrome\/(\d+)/))&&(wn=Yt[1]);var jn=wn&&+wn,Hn=!!Object.getOwnPropertySymbols&&!H(function(){return!Symbol.sham&&(xi?38===jn:jn>37&&jn<41)}),Nn=Hn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gi=Mt("wks"),Si=O.Symbol,Ri=Nn?Si:Si&&Si.withoutSetter||Ae,si=function(k){return de(gi,k)&&(Hn||"string"==typeof gi[k])||(gi[k]=Hn&&de(Si,k)?Si[k]:Ri("Symbol."+k)),gi[k]},bn=si("species"),Or=!H(function(){var k=/./;return k.exec=function(){var se=[];return se.groups={a:"7"},se},"7"!=="".replace(k,"$<a>")}),rr="$0"==="a".replace(/./,"$0"),Yi=si("replace"),Wi=!!/./[Yi]&&""===/./[Yi]("a","$0"),br=!H(function(){var k=/(?:)/,se=k.exec;k.exec=function(){return se.apply(this,arguments)};var pe="ab".split(k);return 2!==pe.length||"a"!==pe[0]||"b"!==pe[1]}),Ni=function(k,se,pe,Me){var $e=si(k),Fe=!H(function(){var Gt={};return Gt[$e]=function(){return 7},7!=""[k](Gt)}),ht=Fe&&!H(function(){var Gt=!1,_n=/a/;return"split"===k&&((_n={}).constructor={},_n.constructor[bn]=function(){return _n},_n.flags="",_n[$e]=/./[$e]),_n.exec=function(){return Gt=!0,null},_n[$e](""),!Gt});if(!Fe||!ht||"replace"===k&&(!Or||!rr||Wi)||"split"===k&&!br){var nt=/./[$e],vt=pe($e,""[k],function(Gt,_n,yn,Xn,ei){return _n.exec===tn?Fe&&!ei?{done:!0,value:nt.call(_n,yn,Xn)}:{done:!0,value:Gt.call(yn,_n,Xn)}:{done:!1}},{REPLACE_KEEPS_$0:rr,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Wi}),kt=vt[1];Ge(String.prototype,k,vt[0]),Ge(RegExp.prototype,$e,2==se?function(Gt,_n){return kt.call(Gt,this,_n)}:function(Gt){return kt.call(Gt,this)})}Me&&Ee(RegExp.prototype[$e],"sham",!0)},Ji=function(k){return function(se,pe){var Me,$e,Fe=String(ee(se)),ht=Q(pe),nt=Fe.length;return ht<0||ht>=nt?k?"":void 0:(Me=Fe.charCodeAt(ht))<55296||Me>56319||ht+1===nt||($e=Fe.charCodeAt(ht+1))<56320||$e>57343?k?Fe.charAt(ht):Me:k?Fe.slice(ht,ht+2):$e-56320+(Me-55296<<10)+65536}},mi=(Ji(!1),Ji(!0)),Ur=function(k,se,pe){return se+(pe?mi(k,se).length:1)},Zn=function(k,se){var pe=k.exec;if("function"==typeof pe){var Me=pe.call(k,se);if("object"!=typeof Me)throw TypeError("RegExp exec method returned something other than an Object or null");return Me}if("RegExp"!==b(k))throw TypeError("RegExp#exec called on incompatible receiver");return tn.call(k,se)};Ni("match",1,function(k,se,pe){return[function(Me){var $e=ee(this),Fe=Me?.[k];return void 0!==Fe?Fe.call(Me,$e):new RegExp(Me)[k](String($e))},function(Me){var $e=pe(se,Me,this);if($e.done)return $e.value;var Fe=qe(Me),ht=String(this);if(!Fe.global)return Zn(Fe,ht);var nt=Fe.unicode;Fe.lastIndex=0;for(var vt,xt=[],kt=0;null!==(vt=Zn(Fe,ht));){var Gt=String(vt[0]);xt[kt]=Gt,""===Gt&&(Fe.lastIndex=Ur(ht,ve(Fe.lastIndex),nt)),kt++}return 0===kt?null:xt}]});var Ei=Array.isArray||function(k){return"Array"==b(k)},Qi=function(k){return Object(ee(k))},qi=function(k,se,pe){var Me=Ne(se);Me in k?re.f(k,Me,C(0,pe)):k[Me]=pe},Vr=si("species"),Di=function(k,se){var pe;return Ei(k)&&("function"!=typeof(pe=k.constructor)||pe!==Array&&!Ei(pe.prototype)?_e(pe)&&null===(pe=pe[Vr])&&(pe=void 0):pe=void 0),new(void 0===pe?Array:pe)(0===se?0:se)},or=si("species"),wr=function(k){return jn>=51||!H(function(){var se=[];return(se.constructor={})[or]=function(){return{foo:1}},1!==se[k](Boolean).foo})},Xi=si("isConcatSpreadable"),jr=jn>=51||!H(function(){var k=[];return k[Xi]=!1,k.concat()[0]!==k}),vs=wr("concat"),Ui=function(k){if(!_e(k))return!1;var se=k[Xi];return void 0!==se?!!se:Ei(k)};nn({target:"Array",proto:!0,forced:!jr||!vs},{concat:function(k){var se,pe,Me,$e,Fe,ht=Qi(this),nt=Di(ht,0),vt=0;for(se=-1,Me=arguments.length;se<Me;se++)if(Ui(Fe=-1===se?ht:arguments[se])){if(vt+($e=ve(Fe.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(pe=0;pe<$e;pe++,vt++)pe in Fe&&qi(nt,vt,Fe[pe])}else{if(vt>=9007199254740991)throw TypeError("Maximum allowed index exceeded");qi(nt,vt++,Fe)}return nt.length=vt,nt}});var zo={};zo[si("toStringTag")]="z";var Go="[object z]"===String(zo),Zo=si("toStringTag"),ys="Arguments"==b(function(){return arguments}()),mo=Go?b:function(k){var se,pe,Me;return void 0===k?"Undefined":null===k?"Null":"string"==typeof(pe=function($e,Fe){try{return $e[Fe]}catch{}}(se=Object(k),Zo))?pe:ys?b(se):"Object"==(Me=b(se))&&"function"==typeof se.callee?"Arguments":Me};Go||Ge(Object.prototype,"toString",Go?{}.toString:function(){return"[object "+mo(this)+"]"},{unsafe:!0});var Po=RegExp.prototype,lo=Po.toString;(H(function(){return"/a/b"!=lo.call({source:"a",flags:"b"})})||"toString"!=lo.name)&&Ge(RegExp.prototype,"toString",function(){var k=qe(this),se=String(k.source),pe=k.flags;return"/"+se+"/"+String(void 0===pe&&k instanceof RegExp&&!("flags"in Po)?Re.call(k):pe)},{unsafe:!0});var vo=si("match"),qr=function(k){var se;return _e(k)&&(void 0!==(se=k[vo])?!!se:"RegExp"==b(k))},co=function(k){if("function"!=typeof k)throw TypeError(String(k)+" is not a function");return k},Nr=si("species"),zr=[].push,er=Math.min,tr=!H(function(){return!RegExp(4294967295,"y")});function ai(k,se){if(k instanceof SVGElement){var pe=k.getAttribute("class")||"";pe.match(se)||k.setAttribute("class","".concat(pe," ").concat(se))}else void 0!==k.classList?e(se.split(" "),function(Me){k.classList.add(Me)}):k.className.match(se)||(k.className+=" ".concat(se))}function Ir(k,se){var pe="";return k.currentStyle?pe=k.currentStyle[se]:document.defaultView&&document.defaultView.getComputedStyle&&(pe=document.defaultView.getComputedStyle(k,null).getPropertyValue(se)),pe&&pe.toLowerCase?pe.toLowerCase():pe}function uo(k){var se=k.element;if(this._options.scrollToElement){var pe=function(Me){var $e=window.getComputedStyle(Me),Fe="absolute"===$e.position,ht=/(auto|scroll)/;if("fixed"===$e.position)return document.body;for(var nt=Me;nt=nt.parentElement;)if($e=window.getComputedStyle(nt),(!Fe||"static"!==$e.position)&&ht.test($e.overflow+$e.overflowY+$e.overflowX))return nt;return document.body}(se);pe!==document.body&&(pe.scrollTop=se.offsetTop-pe.offsetTop)}}function Li(){if(void 0!==window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var k=document.documentElement;return{width:k.clientWidth,height:k.clientHeight}}function Gr(k,se,pe){var Me,nt,$e=se.element;if("off"!==k&&this._options.scrollToElement&&(Me="tooltip"===k?pe.getBoundingClientRect():$e.getBoundingClientRect(),!((nt=$e.getBoundingClientRect()).top>=0&&nt.left>=0&&nt.bottom+80<=window.innerHeight&&nt.right<=window.innerWidth))){var Fe=Li().height;Me.bottom-(Me.bottom-Me.top)<0||$e.clientHeight>Fe?window.scrollBy(0,Me.top-(Fe/2-Me.height/2)-this._options.scrollPadding):window.scrollBy(0,Me.top-(Fe/2-Me.height/2)+this._options.scrollPadding)}}function sr(k){k.setAttribute("role","button"),k.tabIndex=0}Ni("split",2,function(k,se,pe){var Me;return Me="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function($e,Fe){var ht=String(ee(this)),nt=void 0===Fe?4294967295:Fe>>>0;if(0===nt)return[];if(void 0===$e)return[ht];if(!qr($e))return se.call(ht,$e,nt);for(var vt,xt,kt,Gt=[],yn=0,Xn=new RegExp($e.source,($e.ignoreCase?"i":"")+($e.multiline?"m":"")+($e.unicode?"u":"")+($e.sticky?"y":"")+"g");(vt=tn.call(Xn,ht))&&!((xt=Xn.lastIndex)>yn&&(Gt.push(ht.slice(yn,vt.index)),vt.length>1&&vt.index<ht.length&&zr.apply(Gt,vt.slice(1)),kt=vt[0].length,yn=xt,Gt.length>=nt));)Xn.lastIndex===vt.index&&Xn.lastIndex++;return yn===ht.length?!kt&&Xn.test("")||Gt.push(""):Gt.push(ht.slice(yn)),Gt.length>nt?Gt.slice(0,nt):Gt}:"0".split(void 0,0).length?function($e,Fe){return void 0===$e&&0===Fe?[]:se.call(this,$e,Fe)}:se,[function($e,Fe){var ht=ee(this),nt=$e?.[k];return void 0!==nt?nt.call($e,ht,Fe):Me.call(String(ht),$e,Fe)},function($e,Fe){var ht=pe(Me,$e,this,Fe,Me!==se);if(ht.done)return ht.value;var yi,ui,Fi,nt=qe($e),vt=String(this),xt=(yi=RegExp,void 0===(Fi=qe(nt).constructor)||null==(ui=qe(Fi)[Nr])?yi:co(ui)),kt=nt.unicode,_n=new xt(tr?nt:"^(?:"+nt.source+")",(nt.ignoreCase?"i":"")+(nt.multiline?"m":"")+(nt.unicode?"u":"")+(tr?"y":"g")),yn=void 0===Fe?4294967295:Fe>>>0;if(0===yn)return[];if(0===vt.length)return null===Zn(_n,vt)?[vt]:[];for(var Xn=0,ei=0,Fn=[];ei<vt.length;){_n.lastIndex=tr?ei:0;var ti,vi=Zn(_n,tr?vt:vt.slice(ei));if(null===vi||(ti=er(ve(_n.lastIndex+(tr?0:ei)),vt.length))===Xn)ei=Ur(vt,ei,kt);else{if(Fn.push(vt.slice(Xn,ei)),Fn.length===yn)return Fn;for(var Gn=1;Gn<=vi.length-1;Gn++)if(Fn.push(vi[Gn]),Fn.length===yn)return Fn;ei=Xn=ti}}return Fn.push(vt.slice(Xn)),Fn}]},!tr);var dr=Object.keys||function(k){return Kt(k,On)},Pr=Object.assign,Xr=Object.defineProperty,eo=!Pr||H(function(){if(z&&1!==Pr({b:1},Pr(Xr({},"a",{enumerable:!0,get:function(){Xr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var k={},se={},pe=Symbol();return k[pe]=7,"abcdefghijklmnopqrst".split("").forEach(function(Me){se[Me]=Me}),7!=Pr({},k)[pe]||"abcdefghijklmnopqrst"!=dr(Pr({},se)).join("")})?function(k,se){for(var pe=Qi(k),Me=arguments.length,$e=1,Fe=an.f,ht=y.f;Me>$e;)for(var nt,vt=w(arguments[$e++]),xt=Fe?dr(vt).concat(Fe(vt)):dr(vt),kt=xt.length,Gt=0;kt>Gt;)nt=xt[Gt++],z&&!ht.call(vt,nt)||(pe[nt]=vt[nt]);return pe}:Pr;function xr(k,se){var pe=document.body,Me=document.documentElement,$e=window.pageYOffset||Me.scrollTop||pe.scrollTop,Fe=window.pageXOffset||Me.scrollLeft||pe.scrollLeft;se=se||pe;var ht=k.getBoundingClientRect(),nt=se.getBoundingClientRect(),vt=Ir(se,"position"),xt={width:ht.width,height:ht.height};return"body"!==se.tagName.toLowerCase()&&"relative"===vt||"sticky"===vt?Object.assign(xt,{top:ht.top-nt.top,left:ht.left-nt.left}):Object.assign(xt,{top:ht.top+$e,left:ht.left+Fe})}function ri(k){var se=k.parentNode;return!(!se||"HTML"===se.nodeName)&&("fixed"===Ir(k,"position")||ri(se))}nn({target:"Object",stat:!0,forced:Object.assign!==eo},{assign:eo});var ho=Math.floor,Zr="".replace,yo=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Kr=/\$([$&'`]|\d{1,2})/g,Wo=function(k,se,pe,Me,$e,Fe){var ht=pe+k.length,nt=Me.length,vt=Kr;return void 0!==$e&&($e=Qi($e),vt=yo),Zr.call(Fe,vt,function(xt,kt){var Gt;switch(kt.charAt(0)){case"$":return"$";case"&":return k;case"`":return se.slice(0,pe);case"'":return se.slice(ht);case"<":Gt=$e[kt.slice(1,-1)];break;default:var _n=+kt;if(0===_n)return xt;if(_n>nt){var yn=ho(_n/10);return 0===yn?xt:yn<=nt?void 0===Me[yn-1]?kt.charAt(1):Me[yn-1]+kt.charAt(1):xt}Gt=Me[_n-1]}return void 0===Gt?"":Gt})},Kn=Math.max,xo=Math.min;function to(k,se){if(k instanceof SVGElement){var pe=k.getAttribute("class")||"";k.setAttribute("class",pe.replace(se,"").replace(/^\s+|\s+$/g,""))}else k.className=k.className.replace(se,"").replace(/^\s+|\s+$/g,"")}function ki(k,se){var pe="";if(k.style.cssText&&(pe+=k.style.cssText),"string"==typeof se)pe+=se;else for(var Me in se)pe+="".concat(Me,":").concat(se[Me],";");k.style.cssText=pe}function ni(k){if(k){if(!this._introItems[this._currentStep])return;var se=this._introItems[this._currentStep],pe=xr(se.element,this._targetElement),Me=this._options.helperElementPadding;ri(se.element)?ai(k,"introjs-fixedTooltip"):to(k,"introjs-fixedTooltip"),"floating"===se.position&&(Me=0),ki(k,{width:"".concat(pe.width+Me,"px"),height:"".concat(pe.height+Me,"px"),top:"".concat(pe.top-Me/2,"px"),left:"".concat(pe.left-Me/2,"px")})}}Ni("replace",2,function(k,se,pe,Me){var $e=Me.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,Fe=Me.REPLACE_KEEPS_$0,ht=$e?"$":"$0";return[function(nt,vt){var xt=ee(this),kt=nt?.[k];return void 0!==kt?kt.call(nt,xt,vt):se.call(String(xt),nt,vt)},function(nt,vt){if(!$e&&Fe||"string"==typeof vt&&-1===vt.indexOf(ht)){var xt=pe(se,nt,this,vt);if(xt.done)return xt.value}var kt=qe(nt),Gt=String(this),_n="function"==typeof vt;_n||(vt=String(vt));var yn=kt.global;if(yn){var Xn=kt.unicode;kt.lastIndex=0}for(var ei=[];;){var Fn=Zn(kt,Gt);if(null===Fn||(ei.push(Fn),!yn))break;""===String(Fn[0])&&(kt.lastIndex=Ur(Gt,ve(kt.lastIndex),Xn))}for(var ti,vi="",Gn=0,lr=0;lr<ei.length;lr++){Fn=ei[lr];for(var yi=String(Fn[0]),ui=Kn(xo(Q(Fn.index),Gt.length),0),Fi=[],Dr=1;Dr<Fn.length;Dr++)Fi.push(void 0===(ti=Fn[Dr])?ti:String(ti));var Wr=Fn.groups;if(_n){var gr=[yi].concat(Fi,ui,Gt);void 0!==Wr&&gr.push(Wr);var Eo=String(vt.apply(void 0,gr))}else Eo=Wo(yi,Gt,ui,Fi,Wr,vt);ui>=Gn&&(vi+=Gt.slice(Gn,ui)+Eo,Gn=ui+yi.length)}return vi+Gt.slice(Gn)}]});var Sr,hr=z?Object.defineProperties:function(k,se){qe(k);for(var pe,Me=dr(se),$e=Me.length,Fe=0;$e>Fe;)re.f(k,pe=Me[Fe++],se[pe]);return k},Rr=x("document","documentElement"),Dn=j("IE_PROTO"),Co=function(){},ar=function(k){return"<script>"+k+"<\/script>"},po=function(){try{Sr=document.domain&&new ActiveXObject("htmlfile")}catch{}var k,se;po=Sr?function(Me){Me.write(ar("")),Me.close();var $e=Me.parentWindow.Object;return Me=null,$e}(Sr):((se=Ze("iframe")).style.display="none",Rr.appendChild(se),se.src=String("javascript:"),(k=se.contentWindow.document).open(),k.write(ar("document.F=Object")),k.close(),k.F);for(var pe=On.length;pe--;)delete po.prototype[On[pe]];return po()};he[Dn]=!0;var pr=Object.create||function(k,se){var pe;return null!==k?(Co.prototype=qe(k),pe=new Co,Co.prototype=null,pe[Dn]=k):pe=po(),void 0===se?pe:hr(pe,se)},bo=si("unscopables"),no=Array.prototype;null==no[bo]&&re.f(no,bo,{configurable:!0,value:pr(null)});var Ro=ct.includes;nn({target:"Array",proto:!0},{includes:function(k){return Ro(this,k,arguments.length>1?arguments[1]:void 0)}}),no[bo].includes=!0;var ea=wr("slice"),Lo=si("species"),Jo=[].slice,io=Math.max;nn({target:"Array",proto:!0,forced:!ea},{slice:function(k,se){var pe,Me,$e,Fe=oe(this),ht=ve(Fe.length),nt=rt(k,ht),vt=rt(void 0===se?ht:se,ht);if(Ei(Fe)&&("function"!=typeof(pe=Fe.constructor)||pe!==Array&&!Ei(pe.prototype)?_e(pe)&&null===(pe=pe[Lo])&&(pe=void 0):pe=void 0,pe===Array||void 0===pe))return Jo.call(Fe,nt,vt);for(Me=new(void 0===pe?Array:pe)(io(vt-nt,0)),$e=0;nt<vt;nt++,$e++)nt in Fe&&qi(Me,$e,Fe[nt]);return Me.length=$e,Me}});var li=function(k){if(qr(k))throw TypeError("The method doesn't accept regular expressions");return k},Qo=si("match");nn({target:"String",proto:!0,forced:!function(k){var se=/./;try{"/./"[k](se)}catch{try{return se[Qo]=!1,"/./"[k](se)}catch{}}return!1}("includes")},{includes:function(k){return!!~String(ee(this)).indexOf(li(k),arguments.length>1?arguments[1]:void 0)}});var bt,fn=[].join,qo=w!=Object,oo=(",",!!(bt=[].join)&&H(function(){bt.call(null,",",1)}));nn({target:"Array",proto:!0,forced:qo||!oo},{join:function(k){return fn.call(oe(this),void 0===k?",":k)}});var ci=[].push,V=function(k){var se=1==k,pe=2==k,Me=3==k,$e=4==k,Fe=6==k,ht=7==k,nt=5==k||Fe;return function(vt,xt,kt,Gt){for(var _n,yn,Xn=Qi(vt),ei=w(Xn),Fn=function(yi,ui,Fi){return co(yi),void 0===ui?yi:function(Dr,Wr,gr){return yi.call(ui,Dr,Wr,gr)}}(xt,kt),ti=ve(ei.length),vi=0,Gn=Gt||Di,lr=se?Gn(vt,ti):pe||ht?Gn(vt,0):void 0;ti>vi;vi++)if((nt||vi in ei)&&(yn=Fn(_n=ei[vi],vi,Xn),k))if(se)lr[vi]=yn;else if(yn)switch(k){case 3:return!0;case 5:return _n;case 6:return vi;case 2:ci.call(lr,_n)}else switch(k){case 4:return!1;case 7:ci.call(lr,_n)}return Fe?-1:Me||$e?$e:lr}},I=[V(0),V(1),V(2),V(3),V(4),V(5),V(6),V(7)][2];function D(k,se,pe,Me,$e){return k.left+se+pe.width>Me.width?($e.style.left="".concat(Me.width-pe.width-k.left,"px"),!1):($e.style.left="".concat(se,"px"),!0)}function ue(k,se,pe,Me){return k.left+k.width-se-pe.width<0?(Me.style.left="".concat(-k.left,"px"),!1):(Me.style.right="".concat(se,"px"),!0)}nn({target:"Array",proto:!0,forced:!wr("filter")},{filter:function(k){return I(this,k,arguments.length>1?arguments[1]:void 0)}});var it=wr("splice"),Ht=Math.max,qn=Math.min;function Vi(k,se){k.includes(se)&&k.splice(k.indexOf(se),1)}function fr(k,se,pe){var Me=this._options.positionPrecedence.slice(),$e=Li(),Fe=xr(se).height+10,ht=xr(se).width+20,nt=k.getBoundingClientRect(),vt="floating";nt.bottom+Fe>$e.height&&Vi(Me,"bottom"),nt.top-Fe<0&&Vi(Me,"top"),nt.right+ht>$e.width&&Vi(Me,"right"),nt.left-ht<0&&Vi(Me,"left");var xt,kt,_n,yn,ei,ti,vi,Gn,Gt=-1!==(kt=(xt=pe||"").indexOf("-"))?xt.substr(kt):"";return pe&&(pe=pe.split("-")[0]),Me.length&&(vt=Me.includes(pe)?pe:Me[0]),["top","bottom"].includes(vt)&&(vt+=(_n=nt.left,ei=Gt,ti=(yn=ht)/2,Gn=["-left-aligned","-middle-aligned","-right-aligned"],(vi=Math.min($e.width,window.screen.width))-_n<yn&&Vi(Gn,"-left-aligned"),(_n<ti||vi-_n<ti)&&Vi(Gn,"-middle-aligned"),_n<yn&&Vi(Gn,"-right-aligned"),Gn.length?Gn.includes(ei)?ei:Gn[0]:"-middle-aligned")),vt}function Un(k,se,pe,Me){var $e,Fe,ht,nt,vt,xt="";if(Me=Me||!1,se.style.top=null,se.style.right=null,se.style.bottom=null,se.style.left=null,se.style.marginLeft=null,se.style.marginTop=null,pe.style.display="inherit",this._introItems[this._currentStep])switch(xt="string"==typeof($e=this._introItems[this._currentStep]).tooltipClass?$e.tooltipClass:this._options.tooltipClass,se.className=["introjs-tooltip",xt].filter(Boolean).join(" "),se.setAttribute("role","dialog"),"floating"!==(vt=this._introItems[this._currentStep].position)&&this._options.autoPosition&&(vt=fr.call(this,k,se,vt)),ht=xr(k),Fe=xr(se),nt=Li(),ai(se,"introjs-".concat(vt)),vt){case"top-right-aligned":pe.className="introjs-arrow bottom-right";var kt=0;ue(ht,kt,Fe,se),se.style.bottom="".concat(ht.height+20,"px");break;case"top-middle-aligned":pe.className="introjs-arrow bottom-middle";var Gt=ht.width/2-Fe.width/2;Me&&(Gt+=5),ue(ht,Gt,Fe,se)&&(se.style.right=null,D(ht,Gt,Fe,nt,se)),se.style.bottom="".concat(ht.height+20,"px");break;case"top-left-aligned":case"top":pe.className="introjs-arrow bottom",D(ht,Me?0:15,Fe,nt,se),se.style.bottom="".concat(ht.height+20,"px");break;case"right":se.style.left="".concat(ht.width+20,"px"),ht.top+Fe.height>nt.height?(pe.className="introjs-arrow left-bottom",se.style.top="-".concat(Fe.height-ht.height-20,"px")):pe.className="introjs-arrow left";break;case"left":Me||!0!==this._options.showStepNumbers||(se.style.top="15px"),ht.top+Fe.height>nt.height?(se.style.top="-".concat(Fe.height-ht.height-20,"px"),pe.className="introjs-arrow right-bottom"):pe.className="introjs-arrow right",se.style.right="".concat(ht.width+20,"px");break;case"floating":pe.style.display="none",se.style.left="50%",se.style.top="50%",se.style.marginLeft="-".concat(Fe.width/2,"px"),se.style.marginTop="-".concat(Fe.height/2,"px");break;case"bottom-right-aligned":pe.className="introjs-arrow top-right",ue(ht,kt=0,Fe,se),se.style.top="".concat(ht.height+20,"px");break;case"bottom-middle-aligned":pe.className="introjs-arrow top-middle",Gt=ht.width/2-Fe.width/2,Me&&(Gt+=5),ue(ht,Gt,Fe,se)&&(se.style.right=null,D(ht,Gt,Fe,nt,se)),se.style.top="".concat(ht.height+20,"px");break;default:pe.className="introjs-arrow top",D(ht,0,Fe,nt,se),se.style.top="".concat(ht.height+20,"px")}}function _r(){e(document.querySelectorAll(".introjs-showElement"),function(k){to(k,/introjs-[a-zA-Z]+/g)})}function Sn(k,se){var pe=document.createElement(k);se=se||{};var Me=/^(?:role|data-|aria-)/;for(var $e in se){var Fe=se[$e];"style"===$e?ki(pe,Fe):$e.match(Me)?pe.setAttribute($e,Fe):pe[$e]=Fe}return pe}function fo(k,se,pe){if(pe){var Me=se.style.opacity||"1";ki(se,{opacity:"0"}),window.setTimeout(function(){ki(se,{opacity:Me})},10)}k.appendChild(se)}function Er(){return parseInt(this._currentStep+1,10)/this._introItems.length*100}function ta(){var k=document.querySelector(".introjs-disableInteraction");null===k&&(k=Sn("div",{className:"introjs-disableInteraction"}),this._targetElement.appendChild(k)),ni.call(this,k)}function ko(k){var se=this;void 0!==this._introChangeCallback&&this._introChangeCallback.call(this,k.element);var pe,Me,$e,Fe=this,ht=document.querySelector(".introjs-helperLayer"),nt=document.querySelector(".introjs-tooltipReferenceLayer"),vt="introjs-helperLayer";if("string"==typeof k.highlightClass&&(vt+=" ".concat(k.highlightClass)),"string"==typeof this._options.highlightClass&&(vt+=" ".concat(this._options.highlightClass)),null!==ht){var xt=nt.querySelector(".introjs-helperNumberLayer"),kt=nt.querySelector(".introjs-tooltiptext"),Gt=nt.querySelector(".introjs-tooltip-title"),_n=nt.querySelector(".introjs-arrow"),yn=nt.querySelector(".introjs-tooltip");$e=nt.querySelector(".introjs-skipbutton"),Me=nt.querySelector(".introjs-prevbutton"),pe=nt.querySelector(".introjs-nextbutton"),ht.className=vt,yn.style.opacity=0,yn.style.display="none",uo.call(Fe,k),ni.call(Fe,ht),ni.call(Fe,nt),_r(),Fe._lastShowElementTimer&&window.clearTimeout(Fe._lastShowElementTimer),Fe._lastShowElementTimer=window.setTimeout(function(){null!==xt&&(xt.innerHTML="".concat(k.step," of ").concat(se._introItems.length)),kt.innerHTML=k.intro,Gt.innerHTML=k.title,yn.style.display="block",Un.call(Fe,k.element,yn,_n),Fe._options.showBullets&&(nt.querySelector(".introjs-bullets li > a.active").className="",nt.querySelector('.introjs-bullets li > a[data-stepnumber="'.concat(k.step,'"]')).className="active"),nt.querySelector(".introjs-progress .introjs-progressbar").style.cssText="width:".concat(Er.call(Fe),"%;"),nt.querySelector(".introjs-progress .introjs-progressbar").setAttribute("aria-valuenow",Er.call(Fe)),yn.style.opacity=1,(null!=pe&&/introjs-donebutton/gi.test(pe.className)||null!=pe)&&pe.focus(),Gr.call(Fe,k.scrollTo,k,kt)},350)}else{var Xn=Sn("div",{className:vt}),ei=Sn("div",{className:"introjs-tooltipReferenceLayer"}),Fn=Sn("div",{className:"introjs-arrow"}),ti=Sn("div",{className:"introjs-tooltip"}),vi=Sn("div",{className:"introjs-tooltiptext"}),Gn=Sn("div",{className:"introjs-tooltip-header"}),lr=Sn("h1",{className:"introjs-tooltip-title"}),yi=Sn("div",{className:"introjs-bullets"}),ui=Sn("div"),Fi=Sn("div");ki(Xn,{"box-shadow":"0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(Fe._options.overlayOpacity.toString(),") 0 0 0 5000px")}),uo.call(Fe,k),ni.call(Fe,Xn),ni.call(Fe,ei),fo(this._targetElement,Xn,!0),fo(this._targetElement,ei),vi.innerHTML=k.intro,lr.innerHTML=k.title,!1===this._options.showBullets&&(yi.style.display="none");var Dr=Sn("ul");Dr.setAttribute("role","tablist");var Wr=function(){Fe.goToStep(this.getAttribute("data-stepnumber"))};e(this._introItems,function(Ii,ur){var Do=Ii.step,so=Sn("li"),Yn=Sn("a");so.setAttribute("role","presentation"),Yn.setAttribute("role","tab"),Yn.onclick=Wr,ur===k.step-1&&(Yn.className="active"),sr(Yn),Yn.innerHTML="&nbsp;",Yn.setAttribute("data-stepnumber",Do),so.appendChild(Yn),Dr.appendChild(so)}),yi.appendChild(Dr),ui.className="introjs-progress",!1===this._options.showProgress&&(ui.style.display="none");var gr=Sn("div",{className:"introjs-progressbar"});this._options.progressBarAdditionalClass&&(gr.className+=" "+this._options.progressBarAdditionalClass),gr.setAttribute("role","progress"),gr.setAttribute("aria-valuemin",0),gr.setAttribute("aria-valuemax",100),gr.setAttribute("aria-valuenow",Er.call(this)),gr.style.cssText="width:".concat(Er.call(this),"%;"),ui.appendChild(gr),Fi.className="introjs-tooltipbuttons",!1===this._options.showButtons&&(Fi.style.display="none"),Gn.appendChild(lr),ti.appendChild(Gn),ti.appendChild(vi),ti.appendChild(yi),ti.appendChild(ui);var Eo=Sn("div");!0===this._options.showStepNumbers&&(Eo.className="introjs-helperNumberLayer",Eo.innerHTML="".concat(k.step," of ").concat(this._introItems.length),ti.appendChild(Eo)),ti.appendChild(Fn),ei.appendChild(ti),(pe=Sn("a")).onclick=function(){Fe._introItems.length-1!==Fe._currentStep?Yr.call(Fe):/introjs-donebutton/gi.test(pe.className)&&("function"==typeof Fe._introCompleteCallback&&Fe._introCompleteCallback.call(Fe),hn.call(Fe,Fe._targetElement))},sr(pe),pe.innerHTML=this._options.nextLabel,(Me=Sn("a")).onclick=function(){0!==Fe._currentStep&&_o.call(Fe)},sr(Me),Me.innerHTML=this._options.prevLabel,sr($e=Sn("a",{className:"introjs-skipbutton"})),$e.innerHTML=this._options.skipLabel,$e.onclick=function(){Fe._introItems.length-1===Fe._currentStep&&"function"==typeof Fe._introCompleteCallback&&Fe._introCompleteCallback.call(Fe),"function"==typeof Fe._introSkipCallback&&Fe._introSkipCallback.call(Fe),hn.call(Fe,Fe._targetElement)},Gn.appendChild($e),this._introItems.length>1&&Fi.appendChild(Me),Fi.appendChild(pe),ti.appendChild(Fi),Un.call(Fe,k.element,ti,Fn),Gr.call(this,k.scrollTo,k,ti)}var cr=Fe._targetElement.querySelector(".introjs-disableInteraction");cr&&cr.parentNode.removeChild(cr),k.disableInteraction&&ta.call(Fe),0===this._currentStep&&this._introItems.length>1?(null!=pe&&(pe.className="".concat(this._options.buttonClass," introjs-nextbutton"),pe.innerHTML=this._options.nextLabel),!0===this._options.hidePrev?(null!=Me&&(Me.className="".concat(this._options.buttonClass," introjs-prevbutton introjs-hidden")),null!=pe&&ai(pe,"introjs-fullbutton")):null!=Me&&(Me.className="".concat(this._options.buttonClass," introjs-prevbutton introjs-disabled"))):this._introItems.length-1===this._currentStep||1===this._introItems.length?(null!=Me&&(Me.className="".concat(this._options.buttonClass," introjs-prevbutton")),!0===this._options.hideNext?(null!=pe&&(pe.className="".concat(this._options.buttonClass," introjs-nextbutton introjs-hidden")),null!=Me&&ai(Me,"introjs-fullbutton")):null!=pe&&(!0===this._options.nextToDone?(pe.innerHTML=this._options.doneLabel,ai(pe,"".concat(this._options.buttonClass," introjs-nextbutton introjs-donebutton"))):pe.className="".concat(this._options.buttonClass," introjs-nextbutton introjs-disabled"))):(null!=Me&&(Me.className="".concat(this._options.buttonClass," introjs-prevbutton")),null!=pe&&(pe.className="".concat(this._options.buttonClass," introjs-nextbutton"),pe.innerHTML=this._options.nextLabel)),Me?.setAttribute("role","button"),pe?.setAttribute("role","button"),$e?.setAttribute("role","button"),pe?.focus(),function(Ii){var ur=Ii.element;ai(ur,"introjs-showElement");var Do=Ir(ur,"position");"absolute"!==Do&&"relative"!==Do&&"sticky"!==Do&&"fixed"!==Do&&ai(ur,"introjs-relativePosition")}(k),void 0!==this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,k.element)}function Xo(k){this._currentStep=k-2,void 0!==this._introItems&&Yr.call(this)}function So(k){this._currentStepNumber=k,void 0!==this._introItems&&Yr.call(this)}function Yr(){var k=this;this._direction="forward",void 0!==this._currentStepNumber&&e(this._introItems,function(Me,$e){Me.step===k._currentStepNumber&&(k._currentStep=$e-1,k._currentStepNumber=void 0)}),void 0===this._currentStep?this._currentStep=0:++this._currentStep;var se=this._introItems[this._currentStep],pe=!0;return void 0!==this._introBeforeChangeCallback&&(pe=this._introBeforeChangeCallback.call(this,se&&se.element)),!1===pe?(--this._currentStep,!1):this._introItems.length<=this._currentStep?("function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),void hn.call(this,this._targetElement)):void ko.call(this,se)}function _o(){if(this._direction="backward",0===this._currentStep)return!1;--this._currentStep;var k=this._introItems[this._currentStep],se=!0;if(void 0!==this._introBeforeChangeCallback&&(se=this._introBeforeChangeCallback.call(this,k&&k.element)),!1===se)return++this._currentStep,!1;ko.call(this,k)}function Fs(){return this._currentStep}function Fo(k){var se=void 0===k.code?k.which:k.code;if(null===se&&(se=null===k.charCode?k.keyCode:k.charCode),"Escape"!==se&&27!==se||!0!==this._options.exitOnEsc){if("ArrowLeft"===se||37===se)_o.call(this);else if("ArrowRight"===se||39===se)Yr.call(this);else if("Enter"===se||"NumpadEnter"===se||13===se){var pe=k.target||k.srcElement;pe&&pe.className.match("introjs-prevbutton")?_o.call(this):pe&&pe.className.match("introjs-skipbutton")?(this._introItems.length-1===this._currentStep&&"function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),hn.call(this,this._targetElement)):pe&&pe.getAttribute("data-stepnumber")?pe.click():Yr.call(this),k.preventDefault?k.preventDefault():k.returnValue=!1}}else hn.call(this,this._targetElement)}function es(k){if(null===k||"object"!==me(k)||void 0!==k.nodeType)return k;var se={};for(var pe in k)se[pe]=void 0!==window.jQuery&&k[pe]instanceof window.jQuery?k[pe]:es(k[pe]);return se}function go(k){var se=document.querySelector(".introjs-hints");return se?se.querySelectorAll(k):[]}function $o(k){var se=go('.introjs-hint[data-step="'.concat(k,'"]'))[0];tt.call(this),se&&ai(se,"introjs-hidehint"),void 0!==this._hintCloseCallback&&this._hintCloseCallback.call(this,k)}function $s(){var k=this;e(go(".introjs-hint"),function(se){$o.call(k,se.getAttribute("data-step"))})}function Bs(){var k=this,se=go(".introjs-hint");se&&se.length?e(se,function(pe){ts.call(k,pe.getAttribute("data-step"))}):dt.call(this,this._targetElement)}function ts(k){var se=go('.introjs-hint[data-step="'.concat(k,'"]'))[0];se&&to(se,/introjs-hidehint/g)}function M(){var k=this;e(go(".introjs-hint"),function(se){X.call(k,se.getAttribute("data-step"))})}function X(k){var se=go('.introjs-hint[data-step="'.concat(k,'"]'))[0];se&&se.parentNode.removeChild(se)}function P(){var k=this,se=this,pe=document.querySelector(".introjs-hints");null===pe&&(pe=Sn("div",{className:"introjs-hints"})),e(this._introItems,function(Me,$e){if(!document.querySelector('.introjs-hint[data-step="'.concat($e,'"]'))){var Fe=Sn("a",{className:"introjs-hint"});sr(Fe),Fe.onclick=(vt=$e,function(xt){var kt=xt||window.event;kt.stopPropagation&&kt.stopPropagation(),null!==kt.cancelBubble&&(kt.cancelBubble=!0),we.call(se,vt)}),Me.hintAnimation||ai(Fe,"introjs-hint-no-anim"),ri(Me.element)&&ai(Fe,"introjs-fixedhint");var ht=Sn("div",{className:"introjs-hint-dot"}),nt=Sn("div",{className:"introjs-hint-pulse"});Fe.appendChild(ht),Fe.appendChild(nt),Fe.setAttribute("data-step",$e),Me.targetElement=Me.element,Me.element=Fe,ae.call(k,Me.hintPosition,Fe,Me.targetElement),pe.appendChild(Fe)}var vt}),document.body.appendChild(pe),void 0!==this._hintsAddedCallback&&this._hintsAddedCallback.call(this)}function ae(k,se,pe){var Me=se.style,$e=xr.call(this,pe);switch(k){default:case"top-left":Me.left="".concat($e.left,"px"),Me.top="".concat($e.top,"px");break;case"top-right":Me.left="".concat($e.left+$e.width-20,"px"),Me.top="".concat($e.top,"px");break;case"bottom-left":Me.left="".concat($e.left,"px"),Me.top="".concat($e.top+$e.height-20,"px");break;case"bottom-right":Me.left="".concat($e.left+$e.width-20,"px"),Me.top="".concat($e.top+$e.height-20,"px");break;case"middle-left":Me.left="".concat($e.left,"px"),Me.top="".concat($e.top+($e.height-20)/2,"px");break;case"middle-right":Me.left="".concat($e.left+$e.width-20,"px"),Me.top="".concat($e.top+($e.height-20)/2,"px");break;case"middle-middle":Me.left="".concat($e.left+($e.width-20)/2,"px"),Me.top="".concat($e.top+($e.height-20)/2,"px");break;case"bottom-middle":Me.left="".concat($e.left+($e.width-20)/2,"px"),Me.top="".concat($e.top+$e.height-20,"px");break;case"top-middle":Me.left="".concat($e.left+($e.width-20)/2,"px"),Me.top="".concat($e.top,"px")}}function we(k){var se=document.querySelector('.introjs-hint[data-step="'.concat(k,'"]')),pe=this._introItems[k];void 0!==this._hintClickCallback&&this._hintClickCallback.call(this,se,pe,k);var Me=tt.call(this);if(parseInt(Me,10)!==k){var $e=Sn("div",{className:"introjs-tooltip"}),Fe=Sn("div"),ht=Sn("div"),nt=Sn("div");$e.onclick=function(kt){kt.stopPropagation?kt.stopPropagation():kt.cancelBubble=!0},Fe.className="introjs-tooltiptext";var vt=Sn("p");vt.innerHTML=pe.hint;var xt=Sn("a");xt.className=this._options.buttonClass,xt.setAttribute("role","button"),xt.innerHTML=this._options.hintButtonLabel,xt.onclick=$o.bind(this,k),Fe.appendChild(vt),Fe.appendChild(xt),ht.className="introjs-arrow",$e.appendChild(ht),$e.appendChild(Fe),this._currentStep=se.getAttribute("data-step"),nt.className="introjs-tooltipReferenceLayer introjs-hintReference",nt.setAttribute("data-step",se.getAttribute("data-step")),ni.call(this,nt),nt.appendChild($e),document.body.appendChild(nt),Un.call(this,se,$e,ht,!0)}}function tt(){var k=document.querySelector(".introjs-hintReference");if(k){var se=k.getAttribute("data-step");return k.parentNode.removeChild(k),se}}function dt(k){var se=this;if(this._introItems=[],this._options.hints)e(this._options.hints,function(Me){var $e=es(Me);"string"==typeof $e.element&&($e.element=document.querySelector($e.element)),$e.hintPosition=$e.hintPosition||se._options.hintPosition,$e.hintAnimation=$e.hintAnimation||se._options.hintAnimation,null!==$e.element&&se._introItems.push($e)});else{var pe=k.querySelectorAll("*[data-hint]");if(!pe||!pe.length)return!1;e(pe,function(Me){var $e=Me.getAttribute("data-hintanimation");$e=$e?"true"===$e:se._options.hintAnimation,se._introItems.push({element:Me,hint:Me.getAttribute("data-hint"),hintPosition:Me.getAttribute("data-hintposition")||se._options.hintPosition,hintAnimation:$e,tooltipClass:Me.getAttribute("data-tooltipclass"),position:Me.getAttribute("data-position")||se._options.tooltipPosition})})}P.call(this),s.on(document,"click",tt,this,!1),s.on(window,"resize",Vt,this,!0)}function Vt(){var k=this;e(this._introItems,function(se){var pe=se.targetElement;void 0!==pe&&ae.call(k,se.hintPosition,se.element,pe)})}function Tn(){if(ni.call(this,document.querySelector(".introjs-helperLayer")),ni.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),ni.call(this,document.querySelector(".introjs-disableInteraction")),null!=this._currentStep){var k=document.querySelector(".introjs-arrow"),se=document.querySelector(".introjs-tooltip");Un.call(this,this._introItems[this._currentStep].element,se,k)}return Vt.call(this),this}function gn(){Tn.call(this)}function Cn(k,se){if(k&&k.parentElement){var pe=k.parentElement;se?(ki(k,{opacity:"0"}),window.setTimeout(function(){pe.removeChild(k)},500)):pe.removeChild(k)}}function hn(k,se){var pe=!0;if(void 0!==this._introBeforeExitCallback&&(pe=this._introBeforeExitCallback.call(this)),se||!1!==pe){var Me=k.querySelectorAll(".introjs-overlay");Me&&Me.length&&e(Me,function($e){return Cn($e)}),Cn(k.querySelector(".introjs-helperLayer"),!0),Cn(k.querySelector(".introjs-tooltipReferenceLayer")),Cn(k.querySelector(".introjs-disableInteraction")),Cn(document.querySelector(".introjsFloatingElement")),_r(),s.off(window,"keydown",Fo,this,!0),s.off(window,"resize",gn,this,!0),void 0!==this._introExitCallback&&this._introExitCallback.call(this),this._currentStep=void 0}}function ii(k){var se=this,pe=Sn("div",{className:"introjs-overlay"});return ki(pe,{top:0,bottom:0,left:0,right:0,position:"fixed"}),k.appendChild(pe),!0===this._options.exitOnOverlayClick&&(ki(pe,{cursor:"pointer"}),pe.onclick=function(){hn.call(se,k)}),!0}function Mn(k,se){var pe=this,Me=k.querySelectorAll("*[data-intro]"),$e=[];if(this._options.steps)e(this._options.steps,function(xt){var kt=es(xt);if(kt.step=$e.length+1,kt.title=kt.title||"","string"==typeof kt.element&&(kt.element=document.querySelector(kt.element)),null==kt.element){var Gt=document.querySelector(".introjsFloatingElement");null===Gt&&(Gt=Sn("div",{className:"introjsFloatingElement"}),document.body.appendChild(Gt)),kt.element=Gt,kt.position="floating"}kt.scrollTo=kt.scrollTo||pe._options.scrollTo,void 0===kt.disableInteraction&&(kt.disableInteraction=pe._options.disableInteraction),null!==kt.element&&$e.push(kt)});else{var Fe;if(Me.length<1)return!1;e(Me,function(xt){if((!se||xt.getAttribute("data-intro-group")===se)&&"none"!==xt.style.display){var kt=parseInt(xt.getAttribute("data-step"),10);Fe=xt.hasAttribute("data-disable-interaction")?!!xt.getAttribute("data-disable-interaction"):pe._options.disableInteraction,kt>0&&($e[kt-1]={element:xt,title:xt.getAttribute("data-title")||"",intro:xt.getAttribute("data-intro"),step:parseInt(xt.getAttribute("data-step"),10),tooltipClass:xt.getAttribute("data-tooltipclass"),highlightClass:xt.getAttribute("data-highlightclass"),position:xt.getAttribute("data-position")||pe._options.tooltipPosition,scrollTo:xt.getAttribute("data-scrollto")||pe._options.scrollTo,disableInteraction:Fe})}});var ht=0;e(Me,function(xt){if((!se||xt.getAttribute("data-intro-group")===se)&&null===xt.getAttribute("data-step")){for(;void 0!==$e[ht];)ht++;Fe=xt.hasAttribute("data-disable-interaction")?!!xt.getAttribute("data-disable-interaction"):pe._options.disableInteraction,$e[ht]={element:xt,title:xt.getAttribute("data-title")||"",intro:xt.getAttribute("data-intro"),step:ht+1,tooltipClass:xt.getAttribute("data-tooltipclass"),highlightClass:xt.getAttribute("data-highlightclass"),position:xt.getAttribute("data-position")||pe._options.tooltipPosition,scrollTo:xt.getAttribute("data-scrollto")||pe._options.scrollTo,disableInteraction:Fe}}})}for(var nt=[],vt=0;vt<$e.length;vt++)$e[vt]&&nt.push($e[vt]);return($e=nt).sort(function(xt,kt){return xt.step-kt.step}),this._introItems=$e,ii.call(this,k)&&(Yr.call(this),this._options.keyboardNavigation&&s.on(window,"keydown",Fo,this,!0),s.on(window,"resize",gn,this,!0)),!1}function zn(k){this._targetElement=k,this._introItems=[],this._options={nextLabel:"Next",prevLabel:"Back",skipLabel:"\xd7",doneLabel:"Done",hidePrev:!1,hideNext:!1,nextToDone:!0,tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!1,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.5,autoPosition:!0,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0,buttonClass:"introjs-button",progressBarAdditionalClass:!1}}nn({target:"Array",proto:!0,forced:!it},{splice:function(k,se){var pe,Me,$e,Fe,ht,nt,vt=Qi(this),xt=ve(vt.length),kt=rt(k,xt),Gt=arguments.length;if(0===Gt?pe=Me=0:1===Gt?(pe=0,Me=xt-kt):(pe=Gt-2,Me=qn(Ht(Q(se),0),xt-kt)),xt+pe-Me>9007199254740991)throw TypeError("Maximum allowed length exceeded");for($e=Di(vt,Me),Fe=0;Fe<Me;Fe++)(ht=kt+Fe)in vt&&qi($e,Fe,vt[ht]);if($e.length=Me,pe<Me){for(Fe=kt;Fe<xt-Me;Fe++)nt=Fe+pe,(ht=Fe+Me)in vt?vt[nt]=vt[ht]:delete vt[nt];for(Fe=xt;Fe>xt-Me+pe;Fe--)delete vt[Fe-1]}else if(pe>Me)for(Fe=xt-Me;Fe>kt;Fe--)nt=Fe+pe-1,(ht=Fe+Me-1)in vt?vt[nt]=vt[ht]:delete vt[nt];for(Fe=0;Fe<pe;Fe++)vt[Fe+kt]=arguments[Fe+2];return vt.length=xt-Me+pe,$e}});var Oi=function k(se){var pe;if("object"===me(se))pe=new zn(se);else if("string"==typeof se){var Me=document.querySelector(se);if(!Me)throw new Error("There is no element with given selector.");pe=new zn(Me)}else pe=new zn(document.body);return k.instances[h(pe,"introjs-instance")]=pe,pe};return Oi.version="3.4.0",Oi.instances={},Oi.fn=zn.prototype={clone:function(){return new zn(this)},setOption:function(k,se){return this._options[k]=se,this},setOptions:function(k){return this._options=function(se,pe){var Me,$e={};for(Me in se)$e[Me]=se[Me];for(Me in pe)$e[Me]=pe[Me];return $e}(this._options,k),this},start:function(k){return Mn.call(this,this._targetElement,k),this},goToStep:function(k){return Xo.call(this,k),this},addStep:function(k){return this._options.steps||(this._options.steps=[]),this._options.steps.push(k),this},addSteps:function(k){if(k.length){for(var se=0;se<k.length;se++)this.addStep(k[se]);return this}},goToStepNumber:function(k){return So.call(this,k),this},nextStep:function(){return Yr.call(this),this},previousStep:function(){return _o.call(this),this},currentStep:function(){return Fs.call(this)},exit:function(k){return hn.call(this,this._targetElement,k),this},refresh:function(){return Tn.call(this),this},onbeforechange:function(k){if("function"!=typeof k)throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=k,this},onchange:function(k){if("function"!=typeof k)throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=k,this},onafterchange:function(k){if("function"!=typeof k)throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=k,this},oncomplete:function(k){if("function"!=typeof k)throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=k,this},onhintsadded:function(k){if("function"!=typeof k)throw new Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=k,this},onhintclick:function(k){if("function"!=typeof k)throw new Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=k,this},onhintclose:function(k){if("function"!=typeof k)throw new Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=k,this},onexit:function(k){if("function"!=typeof k)throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=k,this},onskip:function(k){if("function"!=typeof k)throw new Error("Provided callback for onskip was not a function.");return this._introSkipCallback=k,this},onbeforeexit:function(k){if("function"!=typeof k)throw new Error("Provided callback for onbeforeexit was not a function.");return this._introBeforeExitCallback=k,this},addHints:function(){return dt.call(this,this._targetElement),this},hideHint:function(k){return $o.call(this,k),this},hideHints:function(){return $s.call(this),this},showHint:function(k){return ts.call(this,k),this},showHints:function(){return Bs.call(this),this},removeHints:function(){return M.call(this),this},removeHint:function(k){return X().call(this,k),this},showHintDialog:function(k){return we.call(this,k),this}},Oi}()},89070:(Xe,me,h)=>{var e={"./4ca/footer/footer.component":[62e3,2e3],"./agx/footer/footer.component":[56980,6980],"./agxo/footer/footer.component":[38008,8008],"./alm/footer/footer.component":[94666,4666],"./azu/footer/footer.component":[30290,290],"./bido/footer/footer.component":[407,407],"./brt/footer/footer.component":[22046,2046],"./cvc/footer/footer.component":[52421,2421],"./cvco/footer/footer.component":[48170,8170],"./cxp/footer/footer.component":[83227,3227],"./dec/footer/footer.component":[99523,9523],"./default/footer/footer.component":[70456,456],"./dft/footer/footer.component":[71511,1511],"./dis/footer/footer.component":[17465,7465],"./discover/footer/footer.component":[68553,8592,8553],"./disl/footer/footer.component":[99946,9946],"./div/footer/footer.component":[25724,5724],"./esf/footer/footer.component":[69849,9849],"./frt/footer/footer.component":[89484,9484],"./ide/footer/footer.component":[14418,4418],"./ig/footer/footer.component":[88524,8524],"./ing/footer/footer.component":[52229,2229],"./ita/footer/footer.component":[18795,8795],"./kal/footer/footer.component":[53097,3097],"./kan/footer/footer.component":[40960,960],"./lvl/footer/footer.component":[77637,7637],"./mbo/footer/footer.component":[11875,1875],"./men/footer/footer.component":[75443,5443],"./meno/footer/footer.component":[28490,8490],"./npr/footer/footer.component":[72066,2066],"./ola/footer/footer.component":[69620,9620],"./orc/footer/footer.component":[91037,1421],"./per/footer/footer.component":[64269,4269],"./pra/footer/footer.component":[74776,4776],"./prge/footer/footer.component":[11962,1962],"./pri/footer/footer.component":[26302,6302],"./rdc/footer/footer.component":[39865,9865],"./shb/footer/footer.component":[83051,3051],"./sml/footer/footer.component":[88893,8893],"./sun/footer/footer.component":[98998,8998],"./tre/footer/footer.component":[9967,9967],"./vb/footer/footer.component":[10360,360]};function s(K){if(!h.o(e,K))return Promise.resolve().then(()=>{var O=new Error("Cannot find module '"+K+"'");throw O.code="MODULE_NOT_FOUND",O});var F=e[K],Z=F[0];return Promise.all(F.slice(1).map(h.e)).then(()=>h(Z))}s.keys=()=>Object.keys(e),s.id=89070,Xe.exports=s},17847:(Xe,me,h)=>{var e={"./4ca/header/header.component":[79104,1163,8592,9104],"./agx/header/header.component":[84719,1163,8592,4719],"./agxo/header/header.component":[10330,8592,330],"./alm/header/header.component":[16985,1163,8592,6985],"./azu/header/header.component":[49152,8592,9152],"./bido/header/header.component":[2546,1163,8592,2546],"./brt/header/header.component":[64258,1163,8592,4258],"./cvc/header/header.component":[78715,8592,8715],"./cvco/header/header.component":[21037,9486,8592,1037],"./cxp/header/header.component":[41806,1163,8592,1806],"./dec/header/header.component":[72353,1163,8592,2353],"./default/header/header.component":[76282,1163,8592,6282],"./dft/header/header.component":[25584,1163,8592,5584],"./dis/header/header.component":[18973,8592,8973],"./discover/header/header.component":[1710,1163,8592,1710],"./disl/header/header.component":[21633,1163,8592,1633],"./div/header/header.component":[49799,1163,8592,9799],"./esf/header/header.component":[19758,1163,8592,9758],"./frt/header/header.component":[11130,1163,8592,1130],"./ide/header/header.component":[50967,1163,8592,967],"./ig/header/header.component":[13224,8592,3224],"./ing/header/header.component":[56084,1163,8592,6084],"./ita/header/header.component":[19875,1163,8592,9875],"./kal/header/header.component":[32197,1163,8592,2197],"./kan/header/header.component":[24698,1163,8592,4698],"./lvl/header/header.component":[23265,8592,3265],"./mbo/header/header.component":[27410,1163,8592,7410],"./men/header/header.component":[9011,1163,8592,9011],"./meno/header/header.component":[78693,1163,8592,8693],"./npr/header/header.component":[93811,1163,8592,3811],"./ola/header/header.component":[6724,1163,8592,6724],"./orc/header/header.component":[90678,1163,8592,678],"./per/header/header.component":[73102,1163,8592,3102],"./pra/header/header.component":[43781,1163,8592,3781],"./prge/header/header.component":[80895,1163,8592,895],"./pri/header/header.component":[85275,1163,8592,5275],"./rdc/header/header.component":[9805,1163,8592,9805],"./shb/header/header.component":[74972,1163,8592,4972],"./sml/header/header.component":[73896,8592,3896],"./sun/header/header.component":[64965,1163,8592,4965],"./tre/header/header.component":[6495,1163,8592,6495],"./vb/header/header.component":[67431,8592,7431]};function s(K){if(!h.o(e,K))return Promise.resolve().then(()=>{var O=new Error("Cannot find module '"+K+"'");throw O.code="MODULE_NOT_FOUND",O});var F=e[K],Z=F[0];return Promise.all(F.slice(1).map(h.e)).then(()=>h(Z))}s.keys=()=>Object.keys(e),s.id=17847,Xe.exports=s},49671:(Xe,me,h)=>{"use strict";function e(K,F,Z,O,H,z,N){try{var E=K[z](N),y=E.value}catch(C){return void Z(C)}E.done?F(y):Promise.resolve(y).then(O,H)}function s(K){return function(){var F=this,Z=arguments;return new Promise(function(O,H){var z=K.apply(F,Z);function N(y){e(z,O,H,N,E,"next",y)}function E(y){e(z,O,H,N,E,"throw",y)}N(void 0)})}}h.d(me,{Z:()=>s})},36895:(Xe,me,h)=>{"use strict";h.d(me,{Do:()=>Ne,ED:()=>Vr,EM:()=>xo,H9:()=>Li,HT:()=>Z,JF:()=>hr,JJ:()=>Ir,K0:()=>H,Mn:()=>Dt,Mx:()=>si,NF:()=>Zr,O5:()=>mi,Ov:()=>mo,PC:()=>Xi,RF:()=>Qi,S$:()=>ee,Tn:()=>qe,Ts:()=>zr,UT:()=>Tt,V_:()=>E,Ye:()=>te,b0:()=>_e,bD:()=>eo,ez:()=>Xr,gd:()=>Cs,i8:()=>Ko,mk:()=>bn,n9:()=>qi,p6:()=>Pe,q:()=>K,qS:()=>Ri,rS:()=>lo,sg:()=>br,tP:()=>jr,uU:()=>vo,uf:()=>qt,w_:()=>O,x:()=>At,xG:()=>wn});var e=h(94650);let s=null;function K(){return s}function Z(M){s||(s=M)}class O{}const H=new e.OlP("DocumentToken");let z=(()=>{class M{historyGo(P){throw new Error("Not implemented")}}return M.\u0275fac=function(P){return new(P||M)},M.\u0275prov=e.Yz7({token:M,factory:function(){return function N(){return(0,e.LFG)(y)}()},providedIn:"platform"}),M})();const E=new e.OlP("Location Initialized");let y=(()=>{class M extends z{constructor(P){super(),this._doc=P,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return K().getBaseHref(this._doc)}onPopState(P){const ae=K().getGlobalEventTarget(this._doc,"window");return ae.addEventListener("popstate",P,!1),()=>ae.removeEventListener("popstate",P)}onHashChange(P){const ae=K().getGlobalEventTarget(this._doc,"window");return ae.addEventListener("hashchange",P,!1),()=>ae.removeEventListener("hashchange",P)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(P){this.location.pathname=P}pushState(P,ae,we){C()?this._history.pushState(P,ae,we):this.location.hash=we}replaceState(P,ae,we){C()?this._history.replaceState(P,ae,we):this.location.hash=we}forward(){this._history.forward()}back(){this._history.back()}historyGo(P=0){this._history.go(P)}getState(){return this._history.state}}return M.\u0275fac=function(P){return new(P||M)(e.LFG(H))},M.\u0275prov=e.Yz7({token:M,factory:function(){return function U(){return new y((0,e.LFG)(H))}()},providedIn:"platform"}),M})();function C(){return!!window.history.pushState}function b(M,X){if(0==M.length)return X;if(0==X.length)return M;let P=0;return M.endsWith("/")&&P++,X.startsWith("/")&&P++,2==P?M+X.substring(1):1==P?M+X:M+"/"+X}function G(M){const X=M.match(/#|\?|$/),P=X&&X.index||M.length;return M.slice(0,P-("/"===M[P-1]?1:0))+M.slice(P)}function w(M){return M&&"?"!==M[0]?"?"+M:M}let ee=(()=>{class M{historyGo(P){throw new Error("Not implemented")}}return M.\u0275fac=function(P){return new(P||M)},M.\u0275prov=e.Yz7({token:M,factory:function(){return(0,e.f3M)(_e)},providedIn:"root"}),M})();const oe=new e.OlP("appBaseHref");let _e=(()=>{class M extends ee{constructor(P,ae){var we,tt,dt;super(),this._platformLocation=P,this._removeListenerFns=[],this._baseHref=null!==(we=null!==(tt=ae??this._platformLocation.getBaseHrefFromDOM())&&void 0!==tt?tt:null===(dt=(0,e.f3M)(H).location)||void 0===dt?void 0:dt.origin)&&void 0!==we?we:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(P){this._removeListenerFns.push(this._platformLocation.onPopState(P),this._platformLocation.onHashChange(P))}getBaseHref(){return this._baseHref}prepareExternalUrl(P){return b(this._baseHref,P)}path(P=!1){const ae=this._platformLocation.pathname+w(this._platformLocation.search),we=this._platformLocation.hash;return we&&P?`${ae}${we}`:ae}pushState(P,ae,we,tt){const dt=this.prepareExternalUrl(we+w(tt));this._platformLocation.pushState(P,ae,dt)}replaceState(P,ae,we,tt){const dt=this.prepareExternalUrl(we+w(tt));this._platformLocation.replaceState(P,ae,dt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(P=0){var ae,we;null===(ae=(we=this._platformLocation).historyGo)||void 0===ae||ae.call(we,P)}}return M.\u0275fac=function(P){return new(P||M)(e.LFG(z),e.LFG(oe,8))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Ne=(()=>{class M extends ee{constructor(P,ae){super(),this._platformLocation=P,this._baseHref="",this._removeListenerFns=[],null!=ae&&(this._baseHref=ae)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(P){this._removeListenerFns.push(this._platformLocation.onPopState(P),this._platformLocation.onHashChange(P))}getBaseHref(){return this._baseHref}path(P=!1){let ae=this._platformLocation.hash;return null==ae&&(ae="#"),ae.length>0?ae.substring(1):ae}prepareExternalUrl(P){const ae=b(this._baseHref,P);return ae.length>0?"#"+ae:ae}pushState(P,ae,we,tt){let dt=this.prepareExternalUrl(we+w(tt));0==dt.length&&(dt=this._platformLocation.pathname),this._platformLocation.pushState(P,ae,dt)}replaceState(P,ae,we,tt){let dt=this.prepareExternalUrl(we+w(tt));0==dt.length&&(dt=this._platformLocation.pathname),this._platformLocation.replaceState(P,ae,dt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(P=0){var ae,we;null===(ae=(we=this._platformLocation).historyGo)||void 0===ae||ae.call(we,P)}}return M.\u0275fac=function(P){return new(P||M)(e.LFG(z),e.LFG(oe,8))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})(),te=(()=>{class M{constructor(P){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=P;const ae=this._locationStrategy.getBaseHref();this._baseHref=G(Ie(ae)),this._locationStrategy.onPopState(we=>{this._subject.emit({url:this.path(!0),pop:!0,state:we.state,type:we.type})})}ngOnDestroy(){var P;null===(P=this._urlChangeSubscription)||void 0===P||P.unsubscribe(),this._urlChangeListeners=[]}path(P=!1){return this.normalize(this._locationStrategy.path(P))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(P,ae=""){return this.path()==this.normalize(P+w(ae))}normalize(P){return M.stripTrailingSlash(function J(M,X){return M&&X.startsWith(M)?X.substring(M.length):X}(this._baseHref,Ie(P)))}prepareExternalUrl(P){return P&&"/"!==P[0]&&(P="/"+P),this._locationStrategy.prepareExternalUrl(P)}go(P,ae="",we=null){this._locationStrategy.pushState(we,"",P,ae),this._notifyUrlChangeListeners(this.prepareExternalUrl(P+w(ae)),we)}replaceState(P,ae="",we=null){this._locationStrategy.replaceState(we,"",P,ae),this._notifyUrlChangeListeners(this.prepareExternalUrl(P+w(ae)),we)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(P=0){var ae,we;null===(ae=(we=this._locationStrategy).historyGo)||void 0===ae||ae.call(we,P)}onUrlChange(P){return this._urlChangeListeners.push(P),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ae=>{this._notifyUrlChangeListeners(ae.url,ae.state)})),()=>{const ae=this._urlChangeListeners.indexOf(P);var we;this._urlChangeListeners.splice(ae,1),0===this._urlChangeListeners.length&&(null===(we=this._urlChangeSubscription)||void 0===we||we.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(P="",ae){this._urlChangeListeners.forEach(we=>we(P,ae))}subscribe(P,ae,we){return this._subject.subscribe({next:P,error:ae,complete:we})}}return M.normalizeQueryParams=w,M.joinWithSlash=b,M.stripTrailingSlash=G,M.\u0275fac=function(P){return new(P||M)(e.LFG(ee))},M.\u0275prov=e.Yz7({token:M,factory:function(){return function de(){return new te((0,e.LFG)(ee))}()},providedIn:"root"}),M})();function Ie(M){return M.replace(/\/index.html$/,"")}const Ze={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var ot=(()=>((ot=ot||{})[ot.Decimal=0]="Decimal",ot[ot.Percent=1]="Percent",ot[ot.Currency=2]="Currency",ot[ot.Scientific=3]="Scientific",ot))(),At=(()=>((At=At||{})[At.Format=0]="Format",At[At.Standalone=1]="Standalone",At))(),qe=(()=>((qe=qe||{})[qe.Narrow=0]="Narrow",qe[qe.Abbreviated=1]="Abbreviated",qe[qe.Wide=2]="Wide",qe[qe.Short=3]="Short",qe))(),wt=(()=>((wt=wt||{})[wt.Short=0]="Short",wt[wt.Medium=1]="Medium",wt[wt.Long=2]="Long",wt[wt.Full=3]="Full",wt))(),re=(()=>((re=re||{})[re.Decimal=0]="Decimal",re[re.Group=1]="Group",re[re.List=2]="List",re[re.PercentSign=3]="PercentSign",re[re.PlusSign=4]="PlusSign",re[re.MinusSign=5]="MinusSign",re[re.Exponential=6]="Exponential",re[re.SuperscriptingExponent=7]="SuperscriptingExponent",re[re.PerMille=8]="PerMille",re[re.Infinity=9]="Infinity",re[re.NaN=10]="NaN",re[re.TimeSeparator=11]="TimeSeparator",re[re.CurrencyDecimal=12]="CurrencyDecimal",re[re.CurrencyGroup=13]="CurrencyGroup",re))();function Dt(M,X,P){const ae=(0,e.cg1)(M),tt=Ke([ae[e.wAp.DaysFormat],ae[e.wAp.DaysStandalone]],X);return Ke(tt,P)}function Tt(M,X,P){const ae=(0,e.cg1)(M),tt=Ke([ae[e.wAp.MonthsFormat],ae[e.wAp.MonthsStandalone]],X);return Ke(tt,P)}function gt(M,X){return Ke((0,e.cg1)(M)[e.wAp.DateFormat],X)}function Et(M,X){return Ke((0,e.cg1)(M)[e.wAp.TimeFormat],X)}function Mt(M,X){return Ke((0,e.cg1)(M)[e.wAp.DateTimeFormat],X)}function Qt(M,X){const P=(0,e.cg1)(M),ae=P[e.wAp.NumberSymbols][X];if(typeof ae>"u"){if(X===re.CurrencyDecimal)return P[e.wAp.NumberSymbols][re.Decimal];if(X===re.CurrencyGroup)return P[e.wAp.NumberSymbols][re.Group]}return ae}function ye(M,X){return(0,e.cg1)(M)[e.wAp.NumberFormats][X]}function We(M){if(!M[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${M[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ke(M,X){for(let P=X;P>-1;P--)if(typeof M[P]<"u")return M[P];throw new Error("Locale data API: locale data undefined")}function yt(M){const[X,P]=M.split(":");return{hours:+X,minutes:+P}}const x=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ie={},q=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Q=(()=>((Q=Q||{})[Q.Short=0]="Short",Q[Q.ShortGMT=1]="ShortGMT",Q[Q.Long=2]="Long",Q[Q.Extended=3]="Extended",Q))(),ne=(()=>((ne=ne||{})[ne.FullYear=0]="FullYear",ne[ne.Month=1]="Month",ne[ne.Date=2]="Date",ne[ne.Hours=3]="Hours",ne[ne.Minutes=4]="Minutes",ne[ne.Seconds=5]="Seconds",ne[ne.FractionalSeconds=6]="FractionalSeconds",ne[ne.Day=7]="Day",ne))(),ve=(()=>((ve=ve||{})[ve.DayPeriods=0]="DayPeriods",ve[ve.Days=1]="Days",ve[ve.Months=2]="Months",ve[ve.Eras=3]="Eras",ve))();function Pe(M,X,P,ae){let we=function Re(M){if(He(M))return M;if("number"==typeof M&&!isNaN(M))return new Date(M);if("string"==typeof M){if(M=M.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(M)){const[we,tt=1,dt=1]=M.split("-").map(Vt=>+Vt);return _t(we,tt-1,dt)}const P=parseFloat(M);if(!isNaN(M-P))return new Date(P);let ae;if(ae=M.match(x))return function St(M){const X=new Date(0);let P=0,ae=0;const we=M[8]?X.setUTCFullYear:X.setFullYear,tt=M[8]?X.setUTCHours:X.setHours;M[9]&&(P=Number(M[9]+M[10]),ae=Number(M[9]+M[11])),we.call(X,Number(M[1]),Number(M[2])-1,Number(M[3]));const dt=Number(M[4]||0)-P,Vt=Number(M[5]||0)-ae,Tn=Number(M[6]||0),gn=Math.floor(1e3*parseFloat("0."+(M[7]||0)));return tt.call(X,dt,Vt,Tn,gn),X}(ae)}const X=new Date(M);if(!He(X))throw new Error(`Unable to convert "${M}" into a date`);return X}(M);X=rt(P,X)||X;let Vt,dt=[];for(;X;){if(Vt=q.exec(X),!Vt){dt.push(X);break}{dt=dt.concat(Vt.slice(1));const Cn=dt.pop();if(!Cn)break;X=Cn}}let Tn=we.getTimezoneOffset();ae&&(Tn=bi(ae,Tn),we=function nn(M,X,P){const ae=P?-1:1,we=M.getTimezoneOffset();return function Bn(M,X){return(M=new Date(M.getTime())).setMinutes(M.getMinutes()+X),M}(M,ae*(bi(X,we)-we))}(we,ae,!0));let gn="";return dt.forEach(Cn=>{const hn=function _i(M){if(Hi[M])return Hi[M];let X;switch(M){case"G":case"GG":case"GGG":X=sn(ve.Eras,qe.Abbreviated);break;case"GGGG":X=sn(ve.Eras,qe.Wide);break;case"GGGGG":X=sn(ve.Eras,qe.Narrow);break;case"y":X=Kt(ne.FullYear,1,0,!1,!0);break;case"yy":X=Kt(ne.FullYear,2,0,!0,!0);break;case"yyy":X=Kt(ne.FullYear,3,0,!1,!0);break;case"yyyy":X=Kt(ne.FullYear,4,0,!1,!0);break;case"Y":X=wi(1);break;case"YY":X=wi(2,!0);break;case"YYY":X=wi(3);break;case"YYYY":X=wi(4);break;case"M":case"L":X=Kt(ne.Month,1,1);break;case"MM":case"LL":X=Kt(ne.Month,2,1);break;case"MMM":X=sn(ve.Months,qe.Abbreviated);break;case"MMMM":X=sn(ve.Months,qe.Wide);break;case"MMMMM":X=sn(ve.Months,qe.Narrow);break;case"LLL":X=sn(ve.Months,qe.Abbreviated,At.Standalone);break;case"LLLL":X=sn(ve.Months,qe.Wide,At.Standalone);break;case"LLLLL":X=sn(ve.Months,qe.Narrow,At.Standalone);break;case"w":X=fi(1);break;case"ww":X=fi(2);break;case"W":X=fi(1,!0);break;case"d":X=Kt(ne.Date,1);break;case"dd":X=Kt(ne.Date,2);break;case"c":case"cc":X=Kt(ne.Day,1);break;case"ccc":X=sn(ve.Days,qe.Abbreviated,At.Standalone);break;case"cccc":X=sn(ve.Days,qe.Wide,At.Standalone);break;case"ccccc":X=sn(ve.Days,qe.Narrow,At.Standalone);break;case"cccccc":X=sn(ve.Days,qe.Short,At.Standalone);break;case"E":case"EE":case"EEE":X=sn(ve.Days,qe.Abbreviated);break;case"EEEE":X=sn(ve.Days,qe.Wide);break;case"EEEEE":X=sn(ve.Days,qe.Narrow);break;case"EEEEEE":X=sn(ve.Days,qe.Short);break;case"a":case"aa":case"aaa":X=sn(ve.DayPeriods,qe.Abbreviated);break;case"aaaa":X=sn(ve.DayPeriods,qe.Wide);break;case"aaaaa":X=sn(ve.DayPeriods,qe.Narrow);break;case"b":case"bb":case"bbb":X=sn(ve.DayPeriods,qe.Abbreviated,At.Standalone,!0);break;case"bbbb":X=sn(ve.DayPeriods,qe.Wide,At.Standalone,!0);break;case"bbbbb":X=sn(ve.DayPeriods,qe.Narrow,At.Standalone,!0);break;case"B":case"BB":case"BBB":X=sn(ve.DayPeriods,qe.Abbreviated,At.Format,!0);break;case"BBBB":X=sn(ve.DayPeriods,qe.Wide,At.Format,!0);break;case"BBBBB":X=sn(ve.DayPeriods,qe.Narrow,At.Format,!0);break;case"h":X=Kt(ne.Hours,1,-12);break;case"hh":X=Kt(ne.Hours,2,-12);break;case"H":X=Kt(ne.Hours,1);break;case"HH":X=Kt(ne.Hours,2);break;case"m":X=Kt(ne.Minutes,1);break;case"mm":X=Kt(ne.Minutes,2);break;case"s":X=Kt(ne.Seconds,1);break;case"ss":X=Kt(ne.Seconds,2);break;case"S":X=Kt(ne.FractionalSeconds,1);break;case"SS":X=Kt(ne.FractionalSeconds,2);break;case"SSS":X=Kt(ne.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":X=an(Q.Short);break;case"ZZZZZ":X=an(Q.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":X=an(Q.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":X=an(Q.Long);break;default:return null}return Hi[M]=X,X}(Cn);gn+=hn?hn(we,P,Tn):"''"===Cn?"'":Cn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),gn}function _t(M,X,P){const ae=new Date(0);return ae.setFullYear(M,X,P),ae.setHours(0,0,0),ae}function rt(M,X){const P=function Ve(M){return(0,e.cg1)(M)[e.wAp.LocaleId]}(M);if(ie[P]=ie[P]||{},ie[P][X])return ie[P][X];let ae="";switch(X){case"shortDate":ae=gt(M,wt.Short);break;case"mediumDate":ae=gt(M,wt.Medium);break;case"longDate":ae=gt(M,wt.Long);break;case"fullDate":ae=gt(M,wt.Full);break;case"shortTime":ae=Et(M,wt.Short);break;case"mediumTime":ae=Et(M,wt.Medium);break;case"longTime":ae=Et(M,wt.Long);break;case"fullTime":ae=Et(M,wt.Full);break;case"short":const we=rt(M,"shortTime"),tt=rt(M,"shortDate");ae=It(Mt(M,wt.Short),[we,tt]);break;case"medium":const dt=rt(M,"mediumTime"),Vt=rt(M,"mediumDate");ae=It(Mt(M,wt.Medium),[dt,Vt]);break;case"long":const Tn=rt(M,"longTime"),gn=rt(M,"longDate");ae=It(Mt(M,wt.Long),[Tn,gn]);break;case"full":const Cn=rt(M,"fullTime"),hn=rt(M,"fullDate");ae=It(Mt(M,wt.Full),[Cn,hn])}return ae&&(ie[P][X]=ae),ae}function It(M,X){return X&&(M=M.replace(/\{([^}]+)}/g,function(P,ae){return null!=X&&ae in X?X[ae]:P})),M}function ct(M,X,P="-",ae,we){let tt="";(M<0||we&&M<=0)&&(we?M=1-M:(M=-M,tt=P));let dt=String(M);for(;dt.length<X;)dt="0"+dt;return ae&&(dt=dt.slice(dt.length-X)),tt+dt}function Kt(M,X,P=0,ae=!1,we=!1){return function(tt,dt){let Vt=function On(M,X){switch(M){case ne.FullYear:return X.getFullYear();case ne.Month:return X.getMonth();case ne.Date:return X.getDate();case ne.Hours:return X.getHours();case ne.Minutes:return X.getMinutes();case ne.Seconds:return X.getSeconds();case ne.FractionalSeconds:return X.getMilliseconds();case ne.Day:return X.getDay();default:throw new Error(`Unknown DateType value "${M}".`)}}(M,tt);if((P>0||Vt>-P)&&(Vt+=P),M===ne.Hours)0===Vt&&-12===P&&(Vt=12);else if(M===ne.FractionalSeconds)return function jt(M,X){return ct(M,3).substring(0,X)}(Vt,X);const Tn=Qt(dt,re.MinusSign);return ct(Vt,X,Tn,ae,we)}}function sn(M,X,P=At.Format,ae=!1){return function(we,tt){return function zt(M,X,P,ae,we,tt){switch(P){case ve.Months:return Tt(X,we,ae)[M.getMonth()];case ve.Days:return Dt(X,we,ae)[M.getDay()];case ve.DayPeriods:const dt=M.getHours(),Vt=M.getMinutes();if(tt){const gn=function Qe(M){const X=(0,e.cg1)(M);return We(X),(X[e.wAp.ExtraData][2]||[]).map(ae=>"string"==typeof ae?yt(ae):[yt(ae[0]),yt(ae[1])])}(X),Cn=function Ye(M,X,P){const ae=(0,e.cg1)(M);We(ae);const tt=Ke([ae[e.wAp.ExtraData][0],ae[e.wAp.ExtraData][1]],X)||[];return Ke(tt,P)||[]}(X,we,ae),hn=gn.findIndex(ii=>{if(Array.isArray(ii)){const[Mn,zn]=ii,Oi=dt>=Mn.hours&&Vt>=Mn.minutes,k=dt<zn.hours||dt===zn.hours&&Vt<zn.minutes;if(Mn.hours<zn.hours){if(Oi&&k)return!0}else if(Oi||k)return!0}else if(ii.hours===dt&&ii.minutes===Vt)return!0;return!1});if(-1!==hn)return Cn[hn]}return function Le(M,X,P){const ae=(0,e.cg1)(M),tt=Ke([ae[e.wAp.DayPeriodsFormat],ae[e.wAp.DayPeriodsStandalone]],X);return Ke(tt,P)}(X,we,ae)[dt<12?0:1];case ve.Eras:return function pt(M,X){return Ke((0,e.cg1)(M)[e.wAp.Eras],X)}(X,ae)[M.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${P}`)}}(we,tt,M,X,P,ae)}}function an(M){return function(X,P,ae){const we=-1*ae,tt=Qt(P,re.MinusSign),dt=we>0?Math.floor(we/60):Math.ceil(we/60);switch(M){case Q.Short:return(we>=0?"+":"")+ct(dt,2,tt)+ct(Math.abs(we%60),2,tt);case Q.ShortGMT:return"GMT"+(we>=0?"+":"")+ct(dt,1,tt);case Q.Long:return"GMT"+(we>=0?"+":"")+ct(dt,2,tt)+":"+ct(Math.abs(we%60),2,tt);case Q.Extended:return 0===ae?"Z":(we>=0?"+":"")+ct(dt,2,tt)+":"+ct(Math.abs(we%60),2,tt);default:throw new Error(`Unknown zone width "${M}"`)}}}function Qn(M){return _t(M.getFullYear(),M.getMonth(),M.getDate()+(4-M.getDay()))}function fi(M,X=!1){return function(P,ae){let we;if(X){const tt=new Date(P.getFullYear(),P.getMonth(),1).getDay()-1,dt=P.getDate();we=1+Math.floor((dt+tt)/7)}else{const tt=Qn(P),dt=function Jn(M){const X=_t(M,0,1).getDay();return _t(M,0,1+(X<=4?4:11)-X)}(tt.getFullYear()),Vt=tt.getTime()-dt.getTime();we=1+Math.round(Vt/6048e5)}return ct(we,M,Qt(ae,re.MinusSign))}}function wi(M,X=!1){return function(P,ae){return ct(Qn(P).getFullYear(),M,Qt(ae,re.MinusSign),X)}}const Hi={};function bi(M,X){M=M.replace(/:/g,"");const P=Date.parse("Jan 01, 1970 00:00:00 "+M)/6e4;return isNaN(P)?X:P}function He(M){return M instanceof Date&&!isNaN(M.valueOf())}const mt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Yt(M,X,P,ae,we,tt,dt=!1){let Vt="",Tn=!1;if(isFinite(M)){let gn=function Ai(M){let ae,we,tt,dt,Vt,X=Math.abs(M)+"",P=0;for((we=X.indexOf("."))>-1&&(X=X.replace(".","")),(tt=X.search(/e/i))>0?(we<0&&(we=tt),we+=+X.slice(tt+1),X=X.substring(0,tt)):we<0&&(we=X.length),tt=0;"0"===X.charAt(tt);tt++);if(tt===(Vt=X.length))ae=[0],we=1;else{for(Vt--;"0"===X.charAt(Vt);)Vt--;for(we-=tt,ae=[],dt=0;tt<=Vt;tt++,dt++)ae[dt]=Number(X.charAt(tt))}return we>22&&(ae=ae.splice(0,21),P=we-1,we=1),{digits:ae,exponent:P,integerLen:we}}(M);dt&&(gn=function ir(M){if(0===M.digits[0])return M;const X=M.digits.length-M.integerLen;return M.exponent?M.exponent+=2:(0===X?M.digits.push(0,0):1===X&&M.digits.push(0),M.integerLen+=2),M}(gn));let Cn=X.minInt,hn=X.minFrac,ii=X.maxFrac;if(tt){const pe=tt.match(mt);if(null===pe)throw new Error(`${tt} is not a valid digit info`);const Me=pe[1],$e=pe[3],Fe=pe[5];null!=Me&&(Cn=Hn(Me)),null!=$e&&(hn=Hn($e)),null!=Fe?ii=Hn(Fe):null!=$e&&hn>ii&&(ii=hn)}!function jn(M,X,P){if(X>P)throw new Error(`The minimum number of digits after fraction (${X}) is higher than the maximum (${P}).`);let ae=M.digits,we=ae.length-M.integerLen;const tt=Math.min(Math.max(X,we),P);let dt=tt+M.integerLen,Vt=ae[dt];if(dt>0){ae.splice(Math.max(M.integerLen,dt));for(let hn=dt;hn<ae.length;hn++)ae[hn]=0}else{we=Math.max(0,we),M.integerLen=1,ae.length=Math.max(1,dt=tt+1),ae[0]=0;for(let hn=1;hn<dt;hn++)ae[hn]=0}if(Vt>=5)if(dt-1<0){for(let hn=0;hn>dt;hn--)ae.unshift(0),M.integerLen++;ae.unshift(1),M.integerLen++}else ae[dt-1]++;for(;we<Math.max(0,tt);we++)ae.push(0);let Tn=0!==tt;const gn=X+M.integerLen,Cn=ae.reduceRight(function(hn,ii,Mn,zn){return zn[Mn]=(ii+=hn)<10?ii:ii-10,Tn&&(0===zn[Mn]&&Mn>=gn?zn.pop():Tn=!1),ii>=10?1:0},0);Cn&&(ae.unshift(Cn),M.integerLen++)}(gn,hn,ii);let Mn=gn.digits,zn=gn.integerLen;const Oi=gn.exponent;let k=[];for(Tn=Mn.every(pe=>!pe);zn<Cn;zn++)Mn.unshift(0);for(;zn<0;zn++)Mn.unshift(0);zn>0?k=Mn.splice(zn,Mn.length):(k=Mn,Mn=[0]);const se=[];for(Mn.length>=X.lgSize&&se.unshift(Mn.splice(-X.lgSize,Mn.length).join(""));Mn.length>X.gSize;)se.unshift(Mn.splice(-X.gSize,Mn.length).join(""));Mn.length&&se.unshift(Mn.join("")),Vt=se.join(Qt(P,ae)),k.length&&(Vt+=Qt(P,we)+k.join("")),Oi&&(Vt+=Qt(P,re.Exponential)+"+"+Oi)}else Vt=Qt(P,re.Infinity);return Vt=M<0&&!Tn?X.negPre+Vt+X.negSuf:X.posPre+Vt+X.posSuf,Vt}function wn(M,X,P,ae,we){const dt=oi(ye(X,ot.Currency),Qt(X,re.MinusSign));return dt.minFrac=function $(M){let X;const P=Ze[M];return P&&(X=P[2]),"number"==typeof X?X:2}(ae),dt.maxFrac=dt.minFrac,Yt(M,dt,X,re.CurrencyGroup,re.CurrencyDecimal,we).replace("\xa4",P).replace("\xa4","").trim()}function qt(M,X,P){return Yt(M,oi(ye(X,ot.Decimal),Qt(X,re.MinusSign)),X,re.Group,re.Decimal,P)}function oi(M,X="-"){const P={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ae=M.split(";"),we=ae[0],tt=ae[1],dt=-1!==we.indexOf(".")?we.split("."):[we.substring(0,we.lastIndexOf("0")+1),we.substring(we.lastIndexOf("0")+1)],Vt=dt[0],Tn=dt[1]||"";P.posPre=Vt.substring(0,Vt.indexOf("#"));for(let Cn=0;Cn<Tn.length;Cn++){const hn=Tn.charAt(Cn);"0"===hn?P.minFrac=P.maxFrac=Cn+1:"#"===hn?P.maxFrac=Cn+1:P.posSuf+=hn}const gn=Vt.split(",");if(P.gSize=gn[1]?gn[1].length:0,P.lgSize=gn[2]||gn[1]?(gn[2]||gn[1]).length:0,tt){const Cn=we.length-P.posPre.length-P.posSuf.length,hn=tt.indexOf("#");P.negPre=tt.substring(0,hn).replace(/'/g,""),P.negSuf=tt.slice(hn+Cn).replace(/'/g,"")}else P.negPre=X+P.posPre,P.negSuf=P.posSuf;return P}function Hn(M){const X=parseInt(M);if(isNaN(X))throw new Error("Invalid integer literal when parsing "+M);return X}function Ri(M,X,P){return(0,e.dwT)(M,X,P)}function si(M,X){X=encodeURIComponent(X);for(const P of M.split(";")){const ae=P.indexOf("="),[we,tt]=-1==ae?[P,""]:[P.slice(0,ae),P.slice(ae+1)];if(we.trim()===X)return decodeURIComponent(tt)}return null}let bn=(()=>{class M{constructor(P,ae,we,tt){this._iterableDiffers=P,this._keyValueDiffers=ae,this._ngEl=we,this._renderer=tt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(P){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof P?P.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(P){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof P?P.split(/\s+/):P,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const P=this._iterableDiffer.diff(this._rawClass);P&&this._applyIterableChanges(P)}else if(this._keyValueDiffer){const P=this._keyValueDiffer.diff(this._rawClass);P&&this._applyKeyValueChanges(P)}}_applyKeyValueChanges(P){P.forEachAddedItem(ae=>this._toggleClass(ae.key,ae.currentValue)),P.forEachChangedItem(ae=>this._toggleClass(ae.key,ae.currentValue)),P.forEachRemovedItem(ae=>{ae.previousValue&&this._toggleClass(ae.key,!1)})}_applyIterableChanges(P){P.forEachAddedItem(ae=>{if("string"!=typeof ae.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(ae.item)}`);this._toggleClass(ae.item,!0)}),P.forEachRemovedItem(ae=>this._toggleClass(ae.item,!1))}_applyClasses(P){P&&(Array.isArray(P)||P instanceof Set?P.forEach(ae=>this._toggleClass(ae,!0)):Object.keys(P).forEach(ae=>this._toggleClass(ae,!!P[ae])))}_removeClasses(P){P&&(Array.isArray(P)||P instanceof Set?P.forEach(ae=>this._toggleClass(ae,!1)):Object.keys(P).forEach(ae=>this._toggleClass(ae,!1)))}_toggleClass(P,ae){(P=P.trim())&&P.split(/\s+/g).forEach(we=>{ae?this._renderer.addClass(this._ngEl.nativeElement,we):this._renderer.removeClass(this._ngEl.nativeElement,we)})}}return M.\u0275fac=function(P){return new(P||M)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},M.\u0275dir=e.lG2({type:M,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),M})();class Wi{constructor(X,P,ae,we){this.$implicit=X,this.ngForOf=P,this.index=ae,this.count=we}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let br=(()=>{class M{constructor(P,ae,we){this._viewContainer=P,this._template=ae,this._differs=we,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(P){this._ngForOf=P,this._ngForOfDirty=!0}set ngForTrackBy(P){this._trackByFn=P}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(P){P&&(this._template=P)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const P=this._ngForOf;!this._differ&&P&&(this._differ=this._differs.find(P).create(this.ngForTrackBy))}if(this._differ){const P=this._differ.diff(this._ngForOf);P&&this._applyChanges(P)}}_applyChanges(P){const ae=this._viewContainer;P.forEachOperation((we,tt,dt)=>{if(null==we.previousIndex)ae.createEmbeddedView(this._template,new Wi(we.item,this._ngForOf,-1,-1),null===dt?void 0:dt);else if(null==dt)ae.remove(null===tt?void 0:tt);else if(null!==tt){const Vt=ae.get(tt);ae.move(Vt,dt),Ni(Vt,we)}});for(let we=0,tt=ae.length;we<tt;we++){const Vt=ae.get(we).context;Vt.index=we,Vt.count=tt,Vt.ngForOf=this._ngForOf}P.forEachIdentityChange(we=>{Ni(ae.get(we.currentIndex),we)})}static ngTemplateContextGuard(P,ae){return!0}}return M.\u0275fac=function(P){return new(P||M)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},M.\u0275dir=e.lG2({type:M,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),M})();function Ni(M,X){M.context.$implicit=X.item}let mi=(()=>{class M{constructor(P,ae){this._viewContainer=P,this._context=new Ur,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ae}set ngIf(P){this._context.$implicit=this._context.ngIf=P,this._updateView()}set ngIfThen(P){Zn("ngIfThen",P),this._thenTemplateRef=P,this._thenViewRef=null,this._updateView()}set ngIfElse(P){Zn("ngIfElse",P),this._elseTemplateRef=P,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(P,ae){return!0}}return M.\u0275fac=function(P){return new(P||M)(e.Y36(e.s_b),e.Y36(e.Rgc))},M.\u0275dir=e.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class Ur{constructor(){this.$implicit=null,this.ngIf=null}}function Zn(M,X){if(X&&!X.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,e.AaK)(X)}'.`)}class Ei{constructor(X,P){this._viewContainerRef=X,this._templateRef=P,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(X){X&&!this._created?this.create():!X&&this._created&&this.destroy()}}let Qi=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(P){this._ngSwitch=P,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(P){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(P)}_matchCase(P){const ae=P==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ae,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ae}_updateDefaultCases(P){if(this._defaultViews&&P!==this._defaultUsed){this._defaultUsed=P;for(let ae=0;ae<this._defaultViews.length;ae++)this._defaultViews[ae].enforceState(P)}}}return M.\u0275fac=function(P){return new(P||M)},M.\u0275dir=e.lG2({type:M,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),M})(),qi=(()=>{class M{constructor(P,ae,we){this.ngSwitch=we,we._addCase(),this._view=new Ei(P,ae)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(P){return new(P||M)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Qi,9))},M.\u0275dir=e.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),Vr=(()=>{class M{constructor(P,ae,we){we._addDefault(new Ei(P,ae))}}return M.\u0275fac=function(P){return new(P||M)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Qi,9))},M.\u0275dir=e.lG2({type:M,selectors:[["","ngSwitchDefault",""]],standalone:!0}),M})(),Xi=(()=>{class M{constructor(P,ae,we){this._ngEl=P,this._differs=ae,this._renderer=we,this._ngStyle=null,this._differ=null}set ngStyle(P){this._ngStyle=P,!this._differ&&P&&(this._differ=this._differs.find(P).create())}ngDoCheck(){if(this._differ){const P=this._differ.diff(this._ngStyle);P&&this._applyChanges(P)}}_setStyle(P,ae){const[we,tt]=P.split("."),dt=-1===we.indexOf("-")?void 0:e.JOm.DashCase;null!=ae?this._renderer.setStyle(this._ngEl.nativeElement,we,tt?`${ae}${tt}`:ae,dt):this._renderer.removeStyle(this._ngEl.nativeElement,we,dt)}_applyChanges(P){P.forEachRemovedItem(ae=>this._setStyle(ae.key,null)),P.forEachAddedItem(ae=>this._setStyle(ae.key,ae.currentValue)),P.forEachChangedItem(ae=>this._setStyle(ae.key,ae.currentValue))}}return M.\u0275fac=function(P){return new(P||M)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},M.\u0275dir=e.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})(),jr=(()=>{class M{constructor(P){this._viewContainerRef=P,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(P){if(P.ngTemplateOutlet||P.ngTemplateOutletInjector){const ae=this._viewContainerRef;if(this._viewRef&&ae.remove(ae.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:we,ngTemplateOutletContext:tt,ngTemplateOutletInjector:dt}=this;this._viewRef=ae.createEmbeddedView(we,tt,dt?{injector:dt}:void 0)}else this._viewRef=null}else this._viewRef&&P.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return M.\u0275fac=function(P){return new(P||M)(e.Y36(e.s_b))},M.\u0275dir=e.lG2({type:M,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]}),M})();function Ui(M,X){return new e.vHH(2100,!1)}class zo{createSubscription(X,P){return X.subscribe({next:P,error:ae=>{throw ae}})}dispose(X){X.unsubscribe()}}class Go{createSubscription(X,P){return X.then(P,ae=>{throw ae})}dispose(X){}}const Zo=new Go,ys=new zo;let mo=(()=>{class M{constructor(P){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=P}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(P){return this._obj?P!==this._obj?(this._dispose(),this.transform(P)):this._latestValue:(P&&this._subscribe(P),this._latestValue)}_subscribe(P){this._obj=P,this._strategy=this._selectStrategy(P),this._subscription=this._strategy.createSubscription(P,ae=>this._updateLatestValue(P,ae))}_selectStrategy(P){if((0,e.QGY)(P))return Zo;if((0,e.F4k)(P))return ys;throw Ui()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(P,ae){P===this._obj&&(this._latestValue=ae,this._ref.markForCheck())}}return M.\u0275fac=function(P){return new(P||M)(e.Y36(e.sBO,16))},M.\u0275pipe=e.Yjl({name:"async",type:M,pure:!1,standalone:!0}),M})(),Ko=(()=>{class M{transform(P){if(null==P)return null;if("string"!=typeof P)throw Ui();return P.toLowerCase()}}return M.\u0275fac=function(P){return new(P||M)},M.\u0275pipe=e.Yjl({name:"lowercase",type:M,pure:!0,standalone:!0}),M})();const Po=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let lo=(()=>{class M{transform(P){if(null==P)return null;if("string"!=typeof P)throw Ui();return P.replace(Po,ae=>ae[0].toUpperCase()+ae.slice(1).toLowerCase())}}return M.\u0275fac=function(P){return new(P||M)},M.\u0275pipe=e.Yjl({name:"titlecase",type:M,pure:!0,standalone:!0}),M})(),Cs=(()=>{class M{transform(P){if(null==P)return null;if("string"!=typeof P)throw Ui();return P.toUpperCase()}}return M.\u0275fac=function(P){return new(P||M)},M.\u0275pipe=e.Yjl({name:"uppercase",type:M,pure:!0,standalone:!0}),M})();const Yo=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let vo=(()=>{class M{constructor(P,ae){this.locale=P,this.defaultTimezone=ae}transform(P,ae="mediumDate",we,tt){if(null==P||""===P||P!=P)return null;try{var dt;return Pe(P,ae,tt||this.locale,null!==(dt=we??this.defaultTimezone)&&void 0!==dt?dt:void 0)}catch(Vt){throw Ui()}}}return M.\u0275fac=function(P){return new(P||M)(e.Y36(e.soG,16),e.Y36(Yo,24))},M.\u0275pipe=e.Yjl({name:"date",type:M,pure:!0,standalone:!0}),M})(),zr=(()=>{class M{transform(P){return JSON.stringify(P,null,2)}}return M.\u0275fac=function(P){return new(P||M)},M.\u0275pipe=e.Yjl({name:"json",type:M,pure:!1,standalone:!0}),M})(),Ir=(()=>{class M{constructor(P){this._locale=P}transform(P,ae,we){if(!Gr(P))return null;we=we||this._locale;try{return qt(sr(P),we,ae)}catch(tt){throw Ui()}}}return M.\u0275fac=function(P){return new(P||M)(e.Y36(e.soG,16))},M.\u0275pipe=e.Yjl({name:"number",type:M,pure:!0,standalone:!0}),M})(),Li=(()=>{class M{constructor(P,ae="USD"){this._locale=P,this._defaultCurrencyCode=ae}transform(P,ae=this._defaultCurrencyCode,we="symbol",tt,dt){if(!Gr(P))return null;dt=dt||this._locale,"boolean"==typeof we&&(we=we?"symbol":"code");let Vt=ae||this._defaultCurrencyCode;"code"!==we&&(Vt="symbol"===we||"symbol-narrow"===we?function Ge(M,X,P="en"){const ae=function he(M){return(0,e.cg1)(M)[e.wAp.Currencies]}(P)[M]||Ze[M]||[],we=ae[1];return"narrow"===X&&"string"==typeof we?we:ae[0]||M}(Vt,"symbol"===we?"wide":"narrow",dt):we);try{return wn(sr(P),dt,Vt,ae,tt)}catch(Tn){throw Ui()}}}return M.\u0275fac=function(P){return new(P||M)(e.Y36(e.soG,16),e.Y36(e.EJc,16))},M.\u0275pipe=e.Yjl({name:"currency",type:M,pure:!0,standalone:!0}),M})();function Gr(M){return!(null==M||""===M||M!=M)}function sr(M){if("string"==typeof M&&!isNaN(Number(M)-parseFloat(M)))return Number(M);if("number"!=typeof M)throw new Error(`${M} is not a number`);return M}let Xr=(()=>{class M{}return M.\u0275fac=function(P){return new(P||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({}),M})();const eo="browser";function Zr(M){return M===eo}let xo=(()=>{class M{}return M.\u0275prov=(0,e.Yz7)({token:M,providedIn:"root",factory:()=>new to((0,e.LFG)(H),window)}),M})();class to{constructor(X,P){this.document=X,this.window=P,this.offset=()=>[0,0]}setOffset(X){this.offset=Array.isArray(X)?()=>X:X}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(X){this.supportsScrolling()&&this.window.scrollTo(X[0],X[1])}scrollToAnchor(X){if(!this.supportsScrolling())return;const P=function ni(M,X){const P=M.getElementById(X)||M.getElementsByName(X)[0];if(P)return P;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const ae=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let we=ae.currentNode;for(;we;){const tt=we.shadowRoot;if(tt){const dt=tt.getElementById(X)||tt.querySelector(`[name="${X}"]`);if(dt)return dt}we=ae.nextNode()}}return null}(this.document,X);P&&(this.scrollToElement(P),P.focus())}setHistoryScrollRestoration(X){if(this.supportScrollRestoration()){const P=this.window.history;P&&P.scrollRestoration&&(P.scrollRestoration=X)}}scrollToElement(X){const P=X.getBoundingClientRect(),ae=P.left+this.window.pageXOffset,we=P.top+this.window.pageYOffset,tt=this.offset();this.window.scrollTo(ae-tt[0],we-tt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const X=ki(this.window.history)||ki(Object.getPrototypeOf(this.window.history));return!(!X||!X.writable&&!X.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ki(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class hr{}},80529:(Xe,me,h)=>{"use strict";h.d(me,{JF:()=>$,TP:()=>Dt,UA:()=>re,WM:()=>E,eN:()=>Ve});var e=h(36895),s=h(94650),K=h(21086),F=h(56498),Z=h(21406),O=h(92198),H=h(24850);class z{}class N{}class E{constructor(Q){this.normalizedNames=new Map,this.lazyUpdate=null,Q?this.lazyInit="string"==typeof Q?()=>{this.headers=new Map,Q.split("\n").forEach(ne=>{const ve=ne.indexOf(":");if(ve>0){const Pe=ne.slice(0,ve),_t=Pe.toLowerCase(),rt=ne.slice(ve+1).trim();this.maybeSetNormalizedName(Pe,_t),this.headers.has(_t)?this.headers.get(_t).push(rt):this.headers.set(_t,[rt])}})}:()=>{this.headers=new Map,Object.keys(Q).forEach(ne=>{let ve=Q[ne];const Pe=ne.toLowerCase();"string"==typeof ve&&(ve=[ve]),ve.length>0&&(this.headers.set(Pe,ve),this.maybeSetNormalizedName(ne,Pe))})}:this.headers=new Map}has(Q){return this.init(),this.headers.has(Q.toLowerCase())}get(Q){this.init();const ne=this.headers.get(Q.toLowerCase());return ne&&ne.length>0?ne[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Q){return this.init(),this.headers.get(Q.toLowerCase())||null}append(Q,ne){return this.clone({name:Q,value:ne,op:"a"})}set(Q,ne){return this.clone({name:Q,value:ne,op:"s"})}delete(Q,ne){return this.clone({name:Q,value:ne,op:"d"})}maybeSetNormalizedName(Q,ne){this.normalizedNames.has(ne)||this.normalizedNames.set(ne,Q)}init(){this.lazyInit&&(this.lazyInit instanceof E?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Q=>this.applyUpdate(Q)),this.lazyUpdate=null))}copyFrom(Q){Q.init(),Array.from(Q.headers.keys()).forEach(ne=>{this.headers.set(ne,Q.headers.get(ne)),this.normalizedNames.set(ne,Q.normalizedNames.get(ne))})}clone(Q){const ne=new E;return ne.lazyInit=this.lazyInit&&this.lazyInit instanceof E?this.lazyInit:this,ne.lazyUpdate=(this.lazyUpdate||[]).concat([Q]),ne}applyUpdate(Q){const ne=Q.name.toLowerCase();switch(Q.op){case"a":case"s":let ve=Q.value;if("string"==typeof ve&&(ve=[ve]),0===ve.length)return;this.maybeSetNormalizedName(Q.name,ne);const Pe=("a"===Q.op?this.headers.get(ne):void 0)||[];Pe.push(...ve),this.headers.set(ne,Pe);break;case"d":const _t=Q.value;if(_t){let rt=this.headers.get(ne);if(!rt)return;rt=rt.filter(It=>-1===_t.indexOf(It)),0===rt.length?(this.headers.delete(ne),this.normalizedNames.delete(ne)):this.headers.set(ne,rt)}else this.headers.delete(ne),this.normalizedNames.delete(ne)}}forEach(Q){this.init(),Array.from(this.normalizedNames.keys()).forEach(ne=>Q(this.normalizedNames.get(ne),this.headers.get(ne)))}}class C{encodeKey(Q){return w(Q)}encodeValue(Q){return w(Q)}decodeKey(Q){return decodeURIComponent(Q)}decodeValue(Q){return decodeURIComponent(Q)}}const b=/%(\d[a-f0-9])/gi,G={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function w(q){return encodeURIComponent(q).replace(b,(Q,ne)=>{var ve;return null!==(ve=G[ne])&&void 0!==ve?ve:Q})}function ee(q){return`${q}`}class oe{constructor(Q={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Q.encoder||new C,Q.fromString){if(Q.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function U(q,Q){const ne=new Map;return q.length>0&&q.replace(/^\?/,"").split("&").forEach(Pe=>{const _t=Pe.indexOf("="),[rt,It]=-1==_t?[Q.decodeKey(Pe),""]:[Q.decodeKey(Pe.slice(0,_t)),Q.decodeValue(Pe.slice(_t+1))],ct=ne.get(rt)||[];ct.push(It),ne.set(rt,ct)}),ne}(Q.fromString,this.encoder)}else Q.fromObject?(this.map=new Map,Object.keys(Q.fromObject).forEach(ne=>{const ve=Q.fromObject[ne],Pe=Array.isArray(ve)?ve.map(ee):[ee(ve)];this.map.set(ne,Pe)})):this.map=null}has(Q){return this.init(),this.map.has(Q)}get(Q){this.init();const ne=this.map.get(Q);return ne?ne[0]:null}getAll(Q){return this.init(),this.map.get(Q)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Q,ne){return this.clone({param:Q,value:ne,op:"a"})}appendAll(Q){const ne=[];return Object.keys(Q).forEach(ve=>{const Pe=Q[ve];Array.isArray(Pe)?Pe.forEach(_t=>{ne.push({param:ve,value:_t,op:"a"})}):ne.push({param:ve,value:Pe,op:"a"})}),this.clone(ne)}set(Q,ne){return this.clone({param:Q,value:ne,op:"s"})}delete(Q,ne){return this.clone({param:Q,value:ne,op:"d"})}toString(){return this.init(),this.keys().map(Q=>{const ne=this.encoder.encodeKey(Q);return this.map.get(Q).map(ve=>ne+"="+this.encoder.encodeValue(ve)).join("&")}).filter(Q=>""!==Q).join("&")}clone(Q){const ne=new oe({encoder:this.encoder});return ne.cloneFrom=this.cloneFrom||this,ne.updates=(this.updates||[]).concat(Q),ne}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Q=>this.map.set(Q,this.cloneFrom.map.get(Q))),this.updates.forEach(Q=>{switch(Q.op){case"a":case"s":const ne=("a"===Q.op?this.map.get(Q.param):void 0)||[];ne.push(ee(Q.value)),this.map.set(Q.param,ne);break;case"d":if(void 0===Q.value){this.map.delete(Q.param);break}{let ve=this.map.get(Q.param)||[];const Pe=ve.indexOf(ee(Q.value));-1!==Pe&&ve.splice(Pe,1),ve.length>0?this.map.set(Q.param,ve):this.map.delete(Q.param)}}}),this.cloneFrom=this.updates=null)}}class Ne{constructor(){this.map=new Map}set(Q,ne){return this.map.set(Q,ne),this}get(Q){return this.map.has(Q)||this.map.set(Q,Q.defaultValue()),this.map.get(Q)}delete(Q){return this.map.delete(Q),this}has(Q){return this.map.has(Q)}keys(){return this.map.keys()}}function de(q){return typeof ArrayBuffer<"u"&&q instanceof ArrayBuffer}function J(q){return typeof Blob<"u"&&q instanceof Blob}function Ie(q){return typeof FormData<"u"&&q instanceof FormData}class ot{constructor(Q,ne,ve,Pe){let _t;if(this.url=ne,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Q.toUpperCase(),function te(q){switch(q){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Pe?(this.body=void 0!==ve?ve:null,_t=Pe):_t=ve,_t&&(this.reportProgress=!!_t.reportProgress,this.withCredentials=!!_t.withCredentials,_t.responseType&&(this.responseType=_t.responseType),_t.headers&&(this.headers=_t.headers),_t.context&&(this.context=_t.context),_t.params&&(this.params=_t.params)),this.headers||(this.headers=new E),this.context||(this.context=new Ne),this.params){const rt=this.params.toString();if(0===rt.length)this.urlWithParams=ne;else{const It=ne.indexOf("?");this.urlWithParams=ne+(-1===It?"?":It<ne.length-1?"&":"")+rt}}else this.params=new oe,this.urlWithParams=ne}serializeBody(){return null===this.body?null:de(this.body)||J(this.body)||Ie(this.body)||function Ze(q){return typeof URLSearchParams<"u"&&q instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof oe?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Ie(this.body)?null:J(this.body)?this.body.type||null:de(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof oe?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Q={}){var ne;const ve=Q.method||this.method,Pe=Q.url||this.url,_t=Q.responseType||this.responseType,rt=void 0!==Q.body?Q.body:this.body,It=void 0!==Q.withCredentials?Q.withCredentials:this.withCredentials,ct=void 0!==Q.reportProgress?Q.reportProgress:this.reportProgress;let jt=Q.headers||this.headers,Kt=Q.params||this.params;const On=null!==(ne=Q.context)&&void 0!==ne?ne:this.context;return void 0!==Q.setHeaders&&(jt=Object.keys(Q.setHeaders).reduce((sn,zt)=>sn.set(zt,Q.setHeaders[zt]),jt)),Q.setParams&&(Kt=Object.keys(Q.setParams).reduce((sn,zt)=>sn.set(zt,Q.setParams[zt]),Kt)),new ot(ve,Pe,rt,{params:Kt,headers:jt,context:On,reportProgress:ct,responseType:_t,withCredentials:It})}}var lt=(()=>((lt=lt||{})[lt.Sent=0]="Sent",lt[lt.UploadProgress=1]="UploadProgress",lt[lt.ResponseHeader=2]="ResponseHeader",lt[lt.DownloadProgress=3]="DownloadProgress",lt[lt.Response=4]="Response",lt[lt.User=5]="User",lt))();class At{constructor(Q,ne=200,ve="OK"){this.headers=Q.headers||new E,this.status=void 0!==Q.status?Q.status:ne,this.statusText=Q.statusText||ve,this.url=Q.url||null,this.ok=this.status>=200&&this.status<300}}class qe extends At{constructor(Q={}){super(Q),this.type=lt.ResponseHeader}clone(Q={}){return new qe({headers:Q.headers||this.headers,status:void 0!==Q.status?Q.status:this.status,statusText:Q.statusText||this.statusText,url:Q.url||this.url||void 0})}}class wt extends At{constructor(Q={}){super(Q),this.type=lt.Response,this.body=void 0!==Q.body?Q.body:null}clone(Q={}){return new wt({body:void 0!==Q.body?Q.body:this.body,headers:Q.headers||this.headers,status:void 0!==Q.status?Q.status:this.status,statusText:Q.statusText||this.statusText,url:Q.url||this.url||void 0})}}class re extends At{constructor(Q){super(Q,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Q.url||"(unknown url)"}`:`Http failure response for ${Q.url||"(unknown url)"}: ${Q.status} ${Q.statusText}`,this.error=Q.error||null}}function Ee(q,Q){return{body:Q,headers:q.headers,context:q.context,observe:q.observe,params:q.params,reportProgress:q.reportProgress,responseType:q.responseType,withCredentials:q.withCredentials}}let Ve=(()=>{class q{constructor(ne){this.handler=ne}request(ne,ve,Pe={}){let _t;if(ne instanceof ot)_t=ne;else{let ct,jt;ct=Pe.headers instanceof E?Pe.headers:new E(Pe.headers),Pe.params&&(jt=Pe.params instanceof oe?Pe.params:new oe({fromObject:Pe.params})),_t=new ot(ne,ve,void 0!==Pe.body?Pe.body:null,{headers:ct,context:Pe.context,params:jt,reportProgress:Pe.reportProgress,responseType:Pe.responseType||"json",withCredentials:Pe.withCredentials})}const rt=(0,K.of)(_t).pipe((0,Z.b)(ct=>this.handler.handle(ct)));if(ne instanceof ot||"events"===Pe.observe)return rt;const It=rt.pipe((0,O.h)(ct=>ct instanceof wt));switch(Pe.observe||"body"){case"body":switch(_t.responseType){case"arraybuffer":return It.pipe((0,H.U)(ct=>{if(null!==ct.body&&!(ct.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ct.body}));case"blob":return It.pipe((0,H.U)(ct=>{if(null!==ct.body&&!(ct.body instanceof Blob))throw new Error("Response is not a Blob.");return ct.body}));case"text":return It.pipe((0,H.U)(ct=>{if(null!==ct.body&&"string"!=typeof ct.body)throw new Error("Response is not a string.");return ct.body}));default:return It.pipe((0,H.U)(ct=>ct.body))}case"response":return It;default:throw new Error(`Unreachable: unhandled observe type ${Pe.observe}}`)}}delete(ne,ve={}){return this.request("DELETE",ne,ve)}get(ne,ve={}){return this.request("GET",ne,ve)}head(ne,ve={}){return this.request("HEAD",ne,ve)}jsonp(ne,ve){return this.request("JSONP",ne,{params:(new oe).append(ve,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ne,ve={}){return this.request("OPTIONS",ne,ve)}patch(ne,ve,Pe={}){return this.request("PATCH",ne,Ee(Pe,ve))}post(ne,ve,Pe={}){return this.request("POST",ne,Ee(Pe,ve))}put(ne,ve,Pe={}){return this.request("PUT",ne,Ee(Pe,ve))}}return q.\u0275fac=function(ne){return new(ne||q)(s.LFG(z))},q.\u0275prov=s.Yz7({token:q,factory:q.\u0275fac}),q})();class Le{constructor(Q,ne){this.next=Q,this.interceptor=ne}handle(Q){return this.interceptor.intercept(Q,this.next)}}const Dt=new s.OlP("HTTP_INTERCEPTORS");let Tt=(()=>{class q{intercept(ne,ve){return ve.handle(ne)}}return q.\u0275fac=function(ne){return new(ne||q)},q.\u0275prov=s.Yz7({token:q,factory:q.\u0275fac}),q})();const A=/^\)\]\}',?\n/;let he=(()=>{class q{constructor(ne){this.xhrFactory=ne}handle(ne){if("JSONP"===ne.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(ve=>{const Pe=this.xhrFactory.build();if(Pe.open(ne.method,ne.urlWithParams),ne.withCredentials&&(Pe.withCredentials=!0),ne.headers.forEach((zt,an)=>Pe.setRequestHeader(zt,an.join(","))),ne.headers.has("Accept")||Pe.setRequestHeader("Accept","application/json, text/plain, */*"),!ne.headers.has("Content-Type")){const zt=ne.detectContentTypeHeader();null!==zt&&Pe.setRequestHeader("Content-Type",zt)}if(ne.responseType){const zt=ne.responseType.toLowerCase();Pe.responseType="json"!==zt?zt:"text"}const _t=ne.serializeBody();let rt=null;const It=()=>{if(null!==rt)return rt;const zt=Pe.statusText||"OK",an=new E(Pe.getAllResponseHeaders()),en=function j(q){return"responseURL"in q&&q.responseURL?q.responseURL:/^X-Request-URL:/m.test(q.getAllResponseHeaders())?q.getResponseHeader("X-Request-URL"):null}(Pe)||ne.url;return rt=new qe({headers:an,status:Pe.status,statusText:zt,url:en}),rt},ct=()=>{let{headers:zt,status:an,statusText:en,url:rn}=It(),Jn=null;204!==an&&(Jn=typeof Pe.response>"u"?Pe.responseText:Pe.response),0===an&&(an=Jn?200:0);let Qn=an>=200&&an<300;if("json"===ne.responseType&&"string"==typeof Jn){const fi=Jn;Jn=Jn.replace(A,"");try{Jn=""!==Jn?JSON.parse(Jn):null}catch(wi){Jn=fi,Qn&&(Qn=!1,Jn={error:wi,text:Jn})}}Qn?(ve.next(new wt({body:Jn,headers:zt,status:an,statusText:en,url:rn||void 0})),ve.complete()):ve.error(new re({error:Jn,headers:zt,status:an,statusText:en,url:rn||void 0}))},jt=zt=>{const{url:an}=It(),en=new re({error:zt,status:Pe.status||0,statusText:Pe.statusText||"Unknown Error",url:an||void 0});ve.error(en)};let Kt=!1;const On=zt=>{Kt||(ve.next(It()),Kt=!0);let an={type:lt.DownloadProgress,loaded:zt.loaded};zt.lengthComputable&&(an.total=zt.total),"text"===ne.responseType&&!!Pe.responseText&&(an.partialText=Pe.responseText),ve.next(an)},sn=zt=>{let an={type:lt.UploadProgress,loaded:zt.loaded};zt.lengthComputable&&(an.total=zt.total),ve.next(an)};return Pe.addEventListener("load",ct),Pe.addEventListener("error",jt),Pe.addEventListener("timeout",jt),Pe.addEventListener("abort",jt),ne.reportProgress&&(Pe.addEventListener("progress",On),null!==_t&&Pe.upload&&Pe.upload.addEventListener("progress",sn)),Pe.send(_t),ve.next({type:lt.Sent}),()=>{Pe.removeEventListener("error",jt),Pe.removeEventListener("abort",jt),Pe.removeEventListener("load",ct),Pe.removeEventListener("timeout",jt),ne.reportProgress&&(Pe.removeEventListener("progress",On),null!==_t&&Pe.upload&&Pe.upload.removeEventListener("progress",sn)),Pe.readyState!==Pe.DONE&&Pe.abort()}})}}return q.\u0275fac=function(ne){return new(ne||q)(s.LFG(e.JF))},q.\u0275prov=s.Yz7({token:q,factory:q.\u0275fac}),q})();const De=new s.OlP("XSRF_COOKIE_NAME"),We=new s.OlP("XSRF_HEADER_NAME");class Qe{}let Ye=(()=>{class q{constructor(ne,ve,Pe){this.doc=ne,this.platform=ve,this.cookieName=Pe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ne=this.doc.cookie||"";return ne!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(ne,this.cookieName),this.lastCookieString=ne),this.lastToken}}return q.\u0275fac=function(ne){return new(ne||q)(s.LFG(e.K0),s.LFG(s.Lbi),s.LFG(De))},q.\u0275prov=s.Yz7({token:q,factory:q.\u0275fac}),q})(),Oe=(()=>{class q{constructor(ne,ve){this.tokenService=ne,this.headerName=ve}intercept(ne,ve){const Pe=ne.url.toLowerCase();if("GET"===ne.method||"HEAD"===ne.method||Pe.startsWith("http://")||Pe.startsWith("https://"))return ve.handle(ne);const _t=this.tokenService.getToken();return null!==_t&&!ne.headers.has(this.headerName)&&(ne=ne.clone({headers:ne.headers.set(this.headerName,_t)})),ve.handle(ne)}}return q.\u0275fac=function(ne){return new(ne||q)(s.LFG(Qe),s.LFG(We))},q.\u0275prov=s.Yz7({token:q,factory:q.\u0275fac}),q})(),Ke=(()=>{class q{constructor(ne,ve){this.backend=ne,this.injector=ve,this.chain=null}handle(ne){if(null===this.chain){const ve=this.injector.get(Dt,[]);this.chain=ve.reduceRight((Pe,_t)=>new Le(Pe,_t),this.backend)}return this.chain.handle(ne)}}return q.\u0275fac=function(ne){return new(ne||q)(s.LFG(N),s.LFG(s.zs3))},q.\u0275prov=s.Yz7({token:q,factory:q.\u0275fac}),q})(),Y=(()=>{class q{static disable(){return{ngModule:q,providers:[{provide:Oe,useClass:Tt}]}}static withOptions(ne={}){return{ngModule:q,providers:[ne.cookieName?{provide:De,useValue:ne.cookieName}:[],ne.headerName?{provide:We,useValue:ne.headerName}:[]]}}}return q.\u0275fac=function(ne){return new(ne||q)},q.\u0275mod=s.oAB({type:q}),q.\u0275inj=s.cJS({providers:[Oe,{provide:Dt,useExisting:Oe,multi:!0},{provide:Qe,useClass:Ye},{provide:De,useValue:"XSRF-TOKEN"},{provide:We,useValue:"X-XSRF-TOKEN"}]}),q})(),$=(()=>{class q{}return q.\u0275fac=function(ne){return new(ne||q)},q.\u0275mod=s.oAB({type:q}),q.\u0275inj=s.cJS({providers:[Ve,{provide:z,useClass:Ke},he,{provide:N,useExisting:he}],imports:[Y.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),q})()},94650:(Xe,me,h)=>{"use strict";h.d(me,{$8M:()=>is,$Z:()=>Wf,AFp:()=>fv,ALo:()=>Im,AaK:()=>z,Akn:()=>fs,AsE:()=>tp,BQk:()=>qu,CHM:()=>qo,CRH:()=>zm,CZH:()=>ud,CqO:()=>H_,D6c:()=>qb,DdM:()=>Cm,Dn7:()=>Rm,DtL:()=>sm,EJc:()=>fb,EiD:()=>Fd,EpF:()=>$_,Ez6:()=>Mt,F$t:()=>Z_,F4k:()=>B_,FYo:()=>vc,FiY:()=>Ms,G48:()=>Rb,Gf:()=>Vm,GfV:()=>gu,GkF:()=>Kh,Gpc:()=>y,Gre:()=>Sg,HOy:()=>ip,HTZ:()=>Tm,Hsn:()=>K_,Ikx:()=>rp,JOm:()=>Wt,JVY:()=>uf,Jf7:()=>_,Jzz:()=>Dg,KtG:()=>oo,L6k:()=>Oo,LAX:()=>rc,LFG:()=>Pi,LMc:()=>eS,LSH:()=>tu,Lbi:()=>db,Lck:()=>fC,MAs:()=>F_,MGl:()=>Xu,MMx:()=>gp,MT6:()=>Eg,N_p:()=>cp,NdJ:()=>Wh,O4$:()=>Vt,OlP:()=>Vn,Oqu:()=>ep,PXZ:()=>wb,Q6J:()=>zh,QGY:()=>Yh,QP$:()=>He,Qsj:()=>Kd,QtT:()=>am,R0b:()=>jo,RDi:()=>Md,Rgc:()=>$c,SBq:()=>Va,SDv:()=>om,Sil:()=>gb,Suo:()=>jm,TTD:()=>uo,TgZ:()=>Wu,Tol:()=>cg,Udp:()=>Qh,VKq:()=>bm,W1O:()=>Ym,WLB:()=>Sm,XFs:()=>Ke,Xpm:()=>rn,Xts:()=>ru,Y36:()=>Sl,YKP:()=>dm,YNc:()=>k_,Yjl:()=>Bn,Yz7:()=>Et,Z0I:()=>Ae,ZZ4:()=>Up,Zx4:()=>lm,_Bn:()=>um,_UZ:()=>Zh,_Vd:()=>Ua,_c5:()=>Jb,_uU:()=>gg,aQg:()=>Vp,c2e:()=>hb,cJS:()=>Qt,cg1:()=>op,dDg:()=>Tb,deG:()=>Vs,dqk:()=>Pe,dwT:()=>y1,eBb:()=>Mi,eFA:()=>Av,ekj:()=>qh,eoX:()=>Dv,evT:()=>R,f3M:()=>jc,g9A:()=>gv,gM2:()=>Lm,gxx:()=>al,h0i:()=>$l,hGG:()=>Qb,hij:()=>td,iGM:()=>Um,ifc:()=>ve,ip1:()=>pv,jDz:()=>pm,kEZ:()=>Em,kL8:()=>Lg,kYT:()=>Hi,kcU:()=>gn,l5B:()=>Dm,lG2:()=>bi,lcZ:()=>Pm,lnq:()=>np,lqb:()=>cs,lri:()=>Sv,mCW:()=>as,n5z:()=>ns,oAB:()=>wi,oJD:()=>$d,oxw:()=>G_,pB0:()=>Jc,pQV:()=>up,q3G:()=>zi,qLn:()=>pl,qOj:()=>Hh,qZA:()=>Ju,qzn:()=>Fa,rWj:()=>Ev,s9C:()=>Jh,sBO:()=>Lb,sIi:()=>wc,s_b:()=>ad,soG:()=>dd,tHW:()=>lp,tb:()=>mv,tp0:()=>Ia,uIk:()=>jh,uOi:()=>nu,vHH:()=>G,vpe:()=>ks,wAp:()=>cn,xi3:()=>xm,xp6:()=>kf,ynx:()=>Qu,z2F:()=>hd,z3N:()=>As,zSh:()=>ul,zs3:()=>Ka});var e=h(5529),s=h(42654),K=h(56498),F=h(36787),Z=h(88117);function O(t){for(let n in t)if(t[n]===O)return n;throw Error("Could not find renamed property on target object.")}function H(t,n){for(const i in n)n.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=n[i])}function z(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(z).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const i=n.indexOf("\n");return-1===i?n:n.substring(0,i)}function N(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const E=O({__forward_ref__:O});function y(t){return t.__forward_ref__=y,t.toString=function(){return z(this())},t}function C(t){return U(t)?t():t}function U(t){return"function"==typeof t&&t.hasOwnProperty(E)&&t.__forward_ref__===y}class G extends Error{constructor(n,i){super(function w(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}(n,i)),this.code=n}}function ee(t){return"string"==typeof t?t:null==t?"":String(t)}function de(t,n){throw new G(-201,!1)}function pt(t,n,i,o){throw new Error(`ASSERTION ERROR: ${t}`+(null==o?"":` [Expected=> ${i} ${o} ${n} <=Actual]`))}function Et(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const Mt=Et;function Qt(t){return{providers:t.providers||[],imports:t.imports||[]}}function ye(t){return A(t,We)||A(t,Ye)}function Ae(t){return null!==ye(t)}function A(t,n){return t.hasOwnProperty(n)?t[n]:null}function De(t){return t&&(t.hasOwnProperty(Qe)||t.hasOwnProperty(Oe))?t[Qe]:null}const We=O({\u0275prov:O}),Qe=O({\u0275inj:O}),Ye=O({ngInjectableDef:O}),Oe=O({ngInjectorDef:O});var Ke=(()=>((Ke=Ke||{})[Ke.Default=0]="Default",Ke[Ke.Host=1]="Host",Ke[Ke.Self=2]="Self",Ke[Ke.SkipSelf=4]="SkipSelf",Ke[Ke.Optional=8]="Optional",Ke))();let yt;function Y(t){const n=yt;return yt=t,n}function $(t,n,i){const o=ye(t);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:i&Ke.Optional?null:void 0!==n?n:void de(z(t))}function ie(t){return{toString:t}.toString()}var q=(()=>((q=q||{})[q.OnPush=0]="OnPush",q[q.Default=1]="Default",q))(),ve=(()=>{return(t=ve||(ve={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",ve;var t})();const Pe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),It={},ct=[],jt=O({\u0275cmp:O}),Kt=O({\u0275dir:O}),On=O({\u0275pipe:O}),sn=O({\u0275mod:O}),zt=O({\u0275fac:O}),an=O({__NG_ELEMENT_ID__:O});let en=0;function rn(t){return ie(()=>{const i=!0===t.standalone,o={},l={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:o,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===q.OnPush,directiveDefs:null,pipeDefs:null,standalone:i,dependencies:i&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||ct,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ve.Emulated,id:"c"+en++,styles:t.styles||ct,_:null,setInput:null,schemas:t.schemas||null,tView:null},u=t.dependencies,f=t.features;return l.inputs=_i(t.inputs,o),l.outputs=_i(t.outputs),f&&f.forEach(v=>v(l)),l.directiveDefs=u?()=>("function"==typeof u?u():u).map(Qn).filter(fi):null,l.pipeDefs=u?()=>("function"==typeof u?u():u).map(St).filter(fi):null,l})}function Qn(t){return nn(t)||Re(t)}function fi(t){return null!==t}function wi(t){return ie(()=>({type:t.type,bootstrap:t.bootstrap||ct,declarations:t.declarations||ct,imports:t.imports||ct,exports:t.exports||ct,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Hi(t,n){return ie(()=>{const i=mt(t,!0);i.declarations=n.declarations||ct,i.imports=n.imports||ct,i.exports=n.exports||ct})}function _i(t,n){if(null==t)return It;const i={};for(const o in t)if(t.hasOwnProperty(o)){let l=t[o],u=l;Array.isArray(l)&&(u=l[1],l=l[0]),i[l]=o,n&&(n[l]=u)}return i}const bi=rn;function Bn(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function nn(t){return t[jt]||null}function Re(t){return t[Kt]||null}function St(t){return t[On]||null}function He(t){const n=nn(t)||Re(t)||St(t);return null!==n&&n.standalone}function mt(t,n){const i=t[sn]||null;if(!i&&!0===n)throw new Error(`Type ${z(t)} does not have '\u0275mod' property.`);return i}function Zn(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ei(t){return Array.isArray(t)&&!0===t[1]}function Qi(t){return 0!=(8&t.flags)}function qi(t){return 2==(2&t.flags)}function Vr(t){return 1==(1&t.flags)}function Di(t){return null!==t.template}function or(t){return 0!=(256&t[2])}function ai(t,n){return t.hasOwnProperty(zt)?t[zt]:null}class Ir{constructor(n,i,o){this.previousValue=n,this.currentValue=i,this.firstChange=o}isFirstChange(){return this.firstChange}}function uo(){return Li}function Li(t){return t.type.prototype.ngOnChanges&&(t.setInput=sr),Gr}function Gr(){const t=Pr(this),n=t?.current;if(n){const i=t.previous;if(i===It)t.previous=n;else for(let o in n)i[o]=n[o];t.current=null,this.ngOnChanges(n)}}function sr(t,n,i,o){const l=Pr(t)||function Xr(t,n){return t[dr]=n}(t,{previous:It,current:null}),u=l.current||(l.current={}),f=l.previous,v=this.declaredInputs[i],T=f[v];u[v]=new Ir(T&&T.currentValue,n,f===It),t[o]=n}uo.ngInherit=!0;const dr="__ngSimpleChanges__";function Pr(t){return t[dr]||null}function Kn(t){for(;Array.isArray(t);)t=t[0];return t}function ki(t,n){return Kn(n[t])}function ni(t,n){return Kn(n[t.index])}function hr(t,n){return t.data[n]}function Rr(t,n){return t[n]}function Dn(t,n){const i=n[t];return Zn(i)?i:i[0]}function Co(t){return 4==(4&t[2])}function ar(t){return 64==(64&t[2])}function pr(t,n){return null==n?null:t[n]}function bo(t){t[18]=0}function no(t,n){t[5]+=n;let i=t,o=t[3];for(;null!==o&&(1===n&&1===i[5]||-1===n&&0===i[5]);)o[5]+=n,i=o,o=o[3]}const ln={lFrame:Bs(null),bindingsEnabled:!0};function li(){return ln.bindingsEnabled}function bt(){return ln.lFrame.lView}function fn(){return ln.lFrame.tView}function qo(t){return ln.lFrame.contextLView=t,t[8]}function oo(t){return ln.lFrame.contextLView=null,t}function ci(){let t=V();for(;null!==t&&64===t.type;)t=t.parent;return t}function V(){return ln.lFrame.currentTNode}function I(){const t=ln.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function D(t,n){const i=ln.lFrame;i.currentTNode=t,i.isParent=n}function ue(){return ln.lFrame.isParent}function it(){ln.lFrame.isParent=!1}function Un(){const t=ln.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function _r(){return ln.lFrame.bindingIndex}function fo(){return ln.lFrame.bindingIndex++}function Er(t){const n=ln.lFrame,i=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,i}function ko(t){ln.lFrame.inI18n=t}function Xo(t,n){const i=ln.lFrame;i.bindingIndex=i.bindingRootIndex=t,Yr(n)}function Yr(t){ln.lFrame.currentDirectiveIndex=t}function Fs(){return ln.lFrame.currentQueryIndex}function Fo(t){ln.lFrame.currentQueryIndex=t}function es(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function go(t,n,i){if(i&Ke.SkipSelf){let l=n,u=t;for(;!(l=l.parent,null!==l||i&Ke.Host||(l=es(u),null===l||(u=u[15],10&l.type))););if(null===l)return!1;n=l,t=u}const o=ln.lFrame=$s();return o.currentTNode=n,o.lView=t,!0}function $o(t){const n=$s(),i=t[1];ln.lFrame=n,n.currentTNode=i.firstChild,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex,n.inI18n=!1}function $s(){const t=ln.lFrame,n=null===t?null:t.child;return null===n?Bs(t):n}function Bs(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function ts(){const t=ln.lFrame;return ln.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const M=ts;function X(){const t=ts();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function we(){return ln.lFrame.selectedIndex}function tt(t){ln.lFrame.selectedIndex=t}function dt(){const t=ln.lFrame;return hr(t.tView,t.selectedIndex)}function Vt(){ln.lFrame.currentNamespace="svg"}function gn(){!function Cn(){ln.lFrame.currentNamespace=null}()}function Mn(t,n){for(let i=n.directiveStart,o=n.directiveEnd;i<o;i++){const u=t.data[i].type.prototype,{ngAfterContentInit:f,ngAfterContentChecked:v,ngAfterViewInit:T,ngAfterViewChecked:W,ngOnDestroy:le}=u;f&&(t.contentHooks||(t.contentHooks=[])).push(-i,f),v&&((t.contentHooks||(t.contentHooks=[])).push(i,v),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(i,v)),T&&(t.viewHooks||(t.viewHooks=[])).push(-i,T),W&&((t.viewHooks||(t.viewHooks=[])).push(i,W),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(i,W)),null!=le&&(t.destroyHooks||(t.destroyHooks=[])).push(i,le)}}function zn(t,n,i){se(t,n,3,i)}function Oi(t,n,i,o){(3&t[2])===i&&se(t,n,i,o)}function k(t,n){let i=t[2];(3&i)===n&&(i&=2047,i+=1,t[2]=i)}function se(t,n,i,o){const u=o??-1,f=n.length-1;let v=0;for(let T=void 0!==o?65535&t[18]:0;T<f;T++)if("number"==typeof n[T+1]){if(v=n[T],null!=o&&v>=o)break}else n[T]<0&&(t[18]+=65536),(v<u||-1==u)&&(pe(t,i,n,T),t[18]=(4294901760&t[18])+T+2),T++}function pe(t,n,i,o){const l=i[o]<0,u=i[o+1],v=t[l?-i[o]:i[o]];if(l){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{u.call(v)}finally{}}}else try{u.call(v)}finally{}}class $e{constructor(n,i,o){this.factory=n,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=o}}function yn(t,n,i){let o=0;for(;o<i.length;){const l=i[o];if("number"==typeof l){if(0!==l)break;o++;const u=i[o++],f=i[o++],v=i[o++];t.setAttribute(n,f,v,u)}else{const u=l,f=i[++o];ei(u)?t.setProperty(n,u,f):t.setAttribute(n,u,f),o++}}return o}function Xn(t){return 3===t||4===t||6===t}function ei(t){return 64===t.charCodeAt(0)}function Fn(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let i=-1;for(let o=0;o<n.length;o++){const l=n[o];"number"==typeof l?i=l:0===i||ti(t,i,l,null,-1===i||2===i?n[++o]:null)}}return t}function ti(t,n,i,o,l){let u=0,f=t.length;if(-1===n)f=-1;else for(;u<t.length;){const v=t[u++];if("number"==typeof v){if(v===n){f=-1;break}if(v>n){f=u-1;break}}}for(;u<t.length;){const v=t[u];if("number"==typeof v)break;if(v===i){if(null===o)return void(null!==l&&(t[u+1]=l));if(o===t[u+1])return void(t[u+2]=l)}u++,null!==o&&u++,null!==l&&u++}-1!==f&&(t.splice(f,0,n),u=f+1),t.splice(u++,0,i),null!==o&&t.splice(u++,0,o),null!==l&&t.splice(u++,0,l)}function vi(t){return-1!==t}function Gn(t){return 32767&t}function yi(t,n){let i=function lr(t){return t>>16}(t),o=n;for(;i>0;)o=o[15],i--;return o}let ui=!0;function Fi(t){const n=ui;return ui=t,n}let Eo=0;const cr={};function ur(t,n){const i=so(t,n);if(-1!==i)return i;const o=n[1];o.firstCreatePass&&(t.injectorIndex=n.length,Do(o.data,t),Do(n,null),Do(o.blueprint,null));const l=Yn(t,n),u=t.injectorIndex;if(vi(l)){const f=Gn(l),v=yi(l,n),T=v[1].data;for(let W=0;W<8;W++)n[u+W]=v[f+W]|T[f+W]}return n[u+8]=l,u}function Do(t,n){t.push(0,0,0,0,0,0,0,0,n)}function so(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Yn(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,o=null,l=n;for(;null!==l;){if(o=Ea(l),null===o)return-1;if(i++,l=l[15],-1!==o.injectorIndex)return o.injectorIndex|i<<16}return-1}function nr(t,n,i){!function Ii(t,n,i){let o;"string"==typeof i?o=i.charCodeAt(0)||0:i.hasOwnProperty(an)&&(o=i[an]),null==o&&(o=i[an]=Eo++);const l=255&o;n.data[t+(l>>5)]|=1<<l}(t,n,i)}function bs(t,n,i){if(i&Ke.Optional)return t;de()}function na(t,n,i,o){if(i&Ke.Optional&&void 0===o&&(o=null),0==(i&(Ke.Self|Ke.Host))){const l=t[9],u=Y(void 0);try{return l?l.get(n,o,i&Ke.Optional):$(n,o,i&Ke.Optional)}finally{Y(u)}}return bs(o,0,i)}function ia(t,n,i,o=Ke.Default,l){if(null!==t){if(1024&n[2]){const f=function jl(t,n,i,o,l){let u=t,f=n;for(;null!==u&&null!==f&&1024&f[2]&&!(256&f[2]);){const v=Hs(u,f,i,o|Ke.Self,cr);if(v!==cr)return v;let T=u.parent;if(!T){const W=f[21];if(W){const le=W.get(i,cr,o);if(le!==cr)return le}T=Ea(f),f=f[15]}u=T}return l}(t,n,i,o,cr);if(f!==cr)return f}const u=Hs(t,n,i,o,cr);if(u!==cr)return u}return na(n,i,o,l)}function Hs(t,n,i,o,l){const u=function Xa(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(an)?t[an]:void 0;return"number"==typeof n?n>=0?255&n:Vl:n}(i);if("function"==typeof u){if(!go(n,t,o))return o&Ke.Host?bs(l,0,o):na(n,i,o,l);try{const f=u(o);if(null!=f||o&Ke.Optional)return f;de()}finally{M()}}else if("number"==typeof u){let f=null,v=so(t,n),T=-1,W=o&Ke.Host?n[16][6]:null;for((-1===v||o&Ke.SkipSelf)&&(T=-1===v?Yn(t,n):n[v+8],-1!==T&&Sa(o,!1)?(f=n[1],v=Gn(T),n=yi(T,n)):v=-1);-1!==v;){const le=n[1];if(el(u,v,le.data)){const Ce=Ul(v,n,i,f,o,W);if(Ce!==cr)return Ce}T=n[v+8],-1!==T&&Sa(o,n[1].data[v+8]===W)&&el(u,v,n)?(f=le,v=Gn(T),n=yi(T,n)):v=-1}}return l}function Ul(t,n,i,o,l,u){const f=n[1],v=f.data[t+8],le=To(v,f,i,null==o?qi(v)&&ui:o!=f&&0!=(3&v.type),l&Ke.Host&&u===v);return null!==le?Ho(n,f,le,v):cr}function To(t,n,i,o,l){const u=t.providerIndexes,f=n.data,v=1048575&u,T=t.directiveStart,le=u>>20,je=l?v+le:t.directiveEnd;for(let et=o?v:v+le;et<je;et++){const Ct=f[et];if(et<T&&i===Ct||et>=T&&Ct.type===i)return et}if(l){const et=f[T];if(et&&Di(et)&&et.type===i)return T}return null}function Ho(t,n,i,o){let l=t[i];const u=n.data;if(function Fe(t){return t instanceof $e}(l)){const f=l;f.resolving&&function _e(t,n){const i=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new G(-200,`Circular dependency in DI detected for ${t}${i}`)}(function oe(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ee(t)}(u[i]));const v=Fi(f.canSeeViewProviders);f.resolving=!0;const T=f.injectImpl?Y(f.injectImpl):null;go(t,o,Ke.Default);try{l=t[i]=f.factory(void 0,u,t,o),n.firstCreatePass&&i>=o.directiveStart&&function ii(t,n,i){const{ngOnChanges:o,ngOnInit:l,ngDoCheck:u}=n.type.prototype;if(o){const f=Li(n);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,f),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,f)}l&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,l),u&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,u),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,u))}(i,u[i],n)}finally{null!==T&&Y(T),Fi(v),f.resolving=!1,M()}}return l}function el(t,n,i){return!!(i[n+(t>>5)]&1<<t)}function Sa(t,n){return!(t&Ke.Self||t&Ke.Host&&n)}class Ss{constructor(n,i){this._tNode=n,this._lView=i}get(n,i,o){return ia(this._tNode,this._lView,n,o,i)}}function Vl(){return new Ss(ci(),bt())}function ns(t){return ie(()=>{const n=t.prototype.constructor,i=n[zt]||In(n),o=Object.prototype;let l=Object.getPrototypeOf(t.prototype).constructor;for(;l&&l!==o;){const u=l[zt]||In(l);if(u&&u!==i)return u;l=Object.getPrototypeOf(l)}return u=>new u})}function In(t){return U(t)?()=>{const n=In(C(t));return n&&n()}:ai(t)}function Ea(t){const n=t[1],i=n.type;return 2===i?n.declTNode:1===i?t[6]:null}function is(t){return function Bo(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const i=t.attrs;if(i){const o=i.length;let l=0;for(;l<o;){const u=i[l];if(Xn(u))break;if(0===u)l+=2;else if("number"==typeof u)for(l++;l<o&&"string"==typeof i[l];)l++;else{if(u===n)return i[l+1];l+=2}}}return null}(ci(),t)}const rs="__parameters__";function os(t,n,i){return ie(()=>{const o=function ra(t){return function(...i){if(t){const o=t(...i);for(const l in o)this[l]=o[l]}}}(n);function l(...u){if(this instanceof l)return o.apply(this,u),this;const f=new l(...u);return v.annotation=f,v;function v(T,W,le){const Ce=T.hasOwnProperty(rs)?T[rs]:Object.defineProperty(T,rs,{value:[]})[rs];for(;Ce.length<=le;)Ce.push(null);return(Ce[le]=Ce[le]||[]).push(f),T}}return i&&(l.prototype=Object.create(i.prototype)),l.prototype.ngMetadataName=t,l.annotationCls=l,l})}class Vn{constructor(n,i){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=Et({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Vs=new Vn("AnalyzeForEntryComponents");function ji(t,n){void 0===n&&(n=t);for(let i=0;i<t.length;i++){let o=t[i];Array.isArray(o)?(n===t&&(n=t.slice(0,i)),ji(o,n)):n!==t&&n.push(o)}return n}function Mo(t,n){t.forEach(i=>Array.isArray(i)?Mo(i,n):n(i))}function Ao(t,n,i){n>=t.length?t.push(i):t.splice(n,0,i)}function Oa(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Ts(t,n){const i=[];for(let o=0;o<t;o++)i.push(n);return i}function Tr(t,n,i){let o=Uo(t,n);return o>=0?t[1|o]=i:(o=~o,function il(t,n,i,o){let l=t.length;if(l==n)t.push(i,o);else if(1===l)t.push(o,t[0]),t[0]=i;else{for(l--,t.push(t[l-1],t[l]);l>n;)t[l]=t[l-2],l--;t[n]=i,t[n+1]=o}}(t,o,n,i)),o}function Na(t,n){const i=Uo(t,n);if(i>=0)return t[1|i]}function Uo(t,n){return function m(t,n,i){let o=0,l=t.length>>i;for(;l!==o;){const u=o+(l-o>>1),f=t[u<<i];if(n===f)return u<<i;f>n?l=u:o=u+1}return~(l<<i)}(t,n,1)}const Ft={},dn="__NG_DI_FLAG__",Rn="ngTempTokenPath",Jr=/\n/gm,vr="__source";let Fr;function ss(t){const n=Fr;return Fr=t,n}function $r(t,n=Ke.Default){if(void 0===Fr)throw new G(-203,!1);return null===Fr?$(t,void 0,n):Fr.get(t,n&Ke.Optional?null:void 0,n)}function Pi(t,n=Ke.Default){return(function Ge(){return yt}()||$r)(C(t),n)}function jc(t,n=Ke.Default){return"number"!=typeof n&&(n=0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)),Pi(t,n)}function Kl(t){const n=[];for(let i=0;i<t.length;i++){const o=C(t[i]);if(Array.isArray(o)){if(0===o.length)throw new G(900,!1);let l,u=Ke.Default;for(let f=0;f<o.length;f++){const v=o[f],T=gd(v);"number"==typeof T?-1===T?l=v.token:u|=T:l=v}n.push(Pi(l,u))}else n.push(Pi(o))}return n}function Pn(t,n){return t[dn]=n,t.prototype[dn]=n,t}function gd(t){return t[dn]}const Ms=Pn(os("Optional"),8),Ia=Pn(os("SkipSelf"),4);let tc,nc,ic;function Md(t){tc=t}function Ad(){return void 0!==tc?tc:typeof document<"u"?document:void 0}function ka(t){var n;return(null===(n=function Kc(){if(void 0===nc&&(nc=null,Pe.trustedTypes))try{nc=Pe.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return nc}())||void 0===n?void 0:n.createHTML(t))||t}function Yc(){if(void 0===ic&&(ic=null,Pe.trustedTypes))try{ic=Pe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return ic}function Od(t){var n;return(null===(n=Yc())||void 0===n?void 0:n.createHTML(t))||t}function Nd(t){var n;return(null===(n=Yc())||void 0===n?void 0:n.createScriptURL(t))||t}class ua{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Id extends ua{getTypeName(){return"HTML"}}class sf extends ua{getTypeName(){return"Style"}}class af extends ua{getTypeName(){return"Script"}}class lf extends ua{getTypeName(){return"URL"}}class cf extends ua{getTypeName(){return"ResourceURL"}}function As(t){return t instanceof ua?t.changingThisBreaksApplicationSecurity:t}function Fa(t,n){const i=function Wc(t){return t instanceof ua&&t.getTypeName()||null}(t);if(null!=i&&i!==n){if("ResourceURL"===i&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===n}function uf(t){return new Id(t)}function Oo(t){return new sf(t)}function Mi(t){return new af(t)}function rc(t){return new lf(t)}function Jc(t){return new cf(t)}function rl(t){const n=new xd(t);return function oc(){try{return!!(new window.DOMParser).parseFromString(ka(""),"text/html")}catch{return!1}}()?new Pd(n):n}class Pd{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const i=(new window.DOMParser).parseFromString(ka(n),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(n):(i.removeChild(i.firstChild),i)}catch{return null}}}class xd{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const i=this.inertDocument.createElement("html");this.inertDocument.appendChild(i);const o=this.inertDocument.createElement("body");i.appendChild(o)}}getInertBodyElement(n){const i=this.inertDocument.createElement("template");if("content"in i)return i.innerHTML=ka(n),i;const o=this.inertDocument.createElement("body");return o.innerHTML=ka(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(o),o}stripCustomNsAttrs(n){const i=n.attributes;for(let l=i.length-1;0<l;l--){const f=i.item(l).name;("xmlns:ns1"===f||0===f.indexOf("ns1:"))&&n.removeAttribute(f)}let o=n.firstChild;for(;o;)o.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(o),o=o.nextSibling}}const df=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function as(t){return(t=String(t)).match(df)?t:"unsafe:"+t}function $a(t){return(t=String(t)).split(",").map(n=>as(n.trim())).join(", ")}function wo(t){const n={};for(const i of t.split(","))n[i]=!0;return n}function Ba(...t){const n={};for(const i of t)for(const o in i)i.hasOwnProperty(o)&&(n[o]=!0);return n}const Qc=wo("area,br,col,hr,img,wbr"),qc=wo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Xc=wo("rp,rt"),ha=Ba(Qc,Ba(qc,wo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ba(Xc,wo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ba(Xc,qc)),sl=wo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),pa=wo("srcset"),Ld=Ba(sl,pa,wo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),wo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),hf=wo("script,style,template");class pf{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let i=n.firstChild,o=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?o=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,o&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let l=this.checkClobberedElement(i,i.nextSibling);if(l){i=l;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(n){const i=n.nodeName.toLowerCase();if(!ha.hasOwnProperty(i))return this.sanitizedSomething=!0,!hf.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const o=n.attributes;for(let l=0;l<o.length;l++){const u=o.item(l),f=u.name,v=f.toLowerCase();if(!Ld.hasOwnProperty(v)){this.sanitizedSomething=!0;continue}let T=u.value;sl[v]&&(T=as(T)),pa[v]&&(T=$a(T)),this.buf.push(" ",f,'="',kd(T),'"')}return this.buf.push(">"),!0}endElement(n){const i=n.nodeName.toLowerCase();ha.hasOwnProperty(i)&&!Qc.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(n){this.buf.push(kd(n))}checkClobberedElement(n,i){if(i&&(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return i}}const ff=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_f=/([^\#-~ |!])/g;function kd(t){return t.replace(/&/g,"&amp;").replace(ff,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(_f,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let sc;function Fd(t,n){let i=null;try{sc=sc||rl(t);let o=n?String(n):"";i=sc.getInertBodyElement(o);let l=5,u=o;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,o=u,u=i.innerHTML,i=sc.getInertBodyElement(o)}while(o!==u);return ka((new pf).sanitizeChildren(eu(i)||i))}finally{if(i){const o=eu(i)||i;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function eu(t){return"content"in t&&function gf(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var zi=(()=>((zi=zi||{})[zi.NONE=0]="NONE",zi[zi.HTML=1]="HTML",zi[zi.STYLE=2]="STYLE",zi[zi.SCRIPT=3]="SCRIPT",zi[zi.URL=4]="URL",zi[zi.RESOURCE_URL=5]="RESOURCE_URL",zi))();function $d(t){const n=ls();return n?Od(n.sanitize(zi.HTML,t)||""):Fa(t,"HTML")?Od(As(t)):Fd(Ad(),ee(t))}function tu(t){const n=ls();return n?n.sanitize(zi.URL,t)||"":Fa(t,"URL")?As(t):as(ee(t))}function nu(t){const n=ls();if(n)return Nd(n.sanitize(zi.RESOURCE_URL,t)||"");if(Fa(t,"ResourceURL"))return Nd(As(t));throw new G(904,!1)}function ls(){const t=bt();return t&&t[12]}const ru=new Vn("ENVIRONMENT_INITIALIZER"),al=new Vn("INJECTOR",-1),Os=new Vn("INJECTOR_DEF_TYPES");class ll{get(n,i=Ft){if(i===Ft){const o=new Error(`NullInjectorError: No provider for ${z(n)}!`);throw o.name="NullInjectorError",o}return i}}function Ud(...t){return{\u0275providers:cl(0,t)}}function cl(t,...n){const i=[],o=new Set;let l;return Mo(n,u=>{const f=u;zs(f,i,[],o)&&(l||(l=[]),l.push(f))}),void 0!==l&&ou(l,i),i}function ou(t,n){for(let i=0;i<t.length;i++){const{providers:l}=t[i];Mo(l,u=>{n.push(u)})}}function zs(t,n,i,o){if(!(t=C(t)))return!1;let l=null,u=De(t);const f=!u&&nn(t);if(u||f){if(f&&!f.standalone)return!1;l=t}else{const T=t.ngModule;if(u=De(T),!u)return!1;l=T}const v=o.has(l);if(f){if(v)return!1;if(o.add(l),f.dependencies){const T="function"==typeof f.dependencies?f.dependencies():f.dependencies;for(const W of T)zs(W,n,i,o)}}else{if(!u)return!1;{if(null!=u.imports&&!v){let W;o.add(l);try{Mo(u.imports,le=>{zs(le,n,i,o)&&(W||(W=[]),W.push(le))})}finally{}void 0!==W&&ou(W,n)}if(!v){const W=ai(l)||(()=>new l);n.push({provide:l,useFactory:W,deps:ct},{provide:Os,useValue:l,multi:!0},{provide:ru,useValue:()=>Pi(l),multi:!0})}const T=u.providers;null==T||v||Mo(T,le=>{n.push(le)})}}return l!==t&&void 0!==t.providers}const Vd=O({provide:String,useValue:O});function dc(t){return null!==t&&"object"==typeof t&&Vd in t}function ws(t){return"function"==typeof t}const ul=new Vn("Set Injector scope."),dl={},pc={};let _a;function Gs(){return void 0===_a&&(_a=new ll),_a}class cs{}class au extends cs{constructor(n,i,o,l){super(),this.parent=i,this.source=o,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,hl(n,f=>this.processProvider(f)),this.records.set(al,Zs(void 0,this)),l.has("environment")&&this.records.set(cs,Zs(void 0,this));const u=this.records.get(ul);null!=u&&"string"==typeof u.value&&this.scopes.add(u.value),this.injectorDefTypes=new Set(this.get(Os.multi,ct,Ke.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const i=ss(this),o=Y(void 0);try{return n()}finally{ss(i),Y(o)}}get(n,i=Ft,o=Ke.Default){this.assertNotDestroyed();const l=ss(this),u=Y(void 0);try{if(!(o&Ke.SkipSelf)){let v=this.records.get(n);if(void 0===v){const T=function uu(t){return"function"==typeof t||"object"==typeof t&&t instanceof Vn}(n)&&ye(n);v=T&&this.injectableDefInScope(T)?Zs(fc(n),dl):null,this.records.set(n,v)}if(null!=v)return this.hydrate(n,v)}return(o&Ke.Self?Gs():this.parent).get(n,i=o&Ke.Optional&&i===Ft?null:i)}catch(f){if("NullInjectorError"===f.name){if((f[Rn]=f[Rn]||[]).unshift(z(n)),l)throw f;return function md(t,n,i,o){const l=t[Rn];throw n[vr]&&l.unshift(n[vr]),t.message=function Yl(t,n,i,o=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let l=z(n);if(Array.isArray(n))l=n.map(z).join(" -> ");else if("object"==typeof n){let u=[];for(let f in n)if(n.hasOwnProperty(f)){let v=n[f];u.push(f+":"+("string"==typeof v?JSON.stringify(v):z(v)))}l=`{${u.join(", ")}}`}return`${i}${o?"("+o+")":""}[${l}]: ${t.replace(Jr,"\n  ")}`}("\n"+t.message,l,i,o),t.ngTokenPath=l,t[Rn]=null,t}(f,n,"R3InjectorError",this.source)}throw f}finally{Y(u),ss(l)}}resolveInjectorInitializers(){const n=ss(this),i=Y(void 0);try{const o=this.get(ru.multi,ct,Ke.Self);for(const l of o)l()}finally{ss(n),Y(i)}}toString(){const n=[],i=this.records;for(const o of i.keys())n.push(z(o));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new G(205,!1)}processProvider(n){let i=ws(n=C(n))?n:C(n&&n.provide);const o=function lu(t){return dc(t)?Zs(void 0,t.useValue):Zs(zd(t),dl)}(n);if(ws(n)||!0!==n.multi)this.records.get(i);else{let l=this.records.get(i);l||(l=Zs(void 0,dl,!0),l.factory=()=>Kl(l.multi),this.records.set(i,l)),i=n,l.multi.push(n)}this.records.set(i,o)}hydrate(n,i){return i.value===dl&&(i.value=pc,i.value=i.factory()),"object"==typeof i.value&&i.value&&function cu(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(n){if(!n.providedIn)return!1;const i=C(n.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}}function fc(t){const n=ye(t),i=null!==n?n.factory:ai(t);if(null!==i)return i;if(t instanceof Vn)throw new G(204,!1);if(t instanceof Function)return function _c(t){const n=t.length;if(n>0)throw Ts(n,"?"),new G(204,!1);const i=function j(t){const n=t&&(t[We]||t[Ye]);if(n){const i=function he(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${i}" class.`),n}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new G(204,!1)}function zd(t,n,i){let o;if(ws(t)){const l=C(t);return ai(l)||fc(l)}if(dc(t))o=()=>C(t.useValue);else if(function hc(t){return!(!t||!t.useFactory)}(t))o=()=>t.useFactory(...Kl(t.deps||[]));else if(function su(t){return!(!t||!t.useExisting)}(t))o=()=>Pi(C(t.useExisting));else{const l=C(t&&(t.useClass||t.provide));if(!function Gd(t){return!!t.deps}(t))return ai(l)||fc(l);o=()=>new l(...Kl(t.deps))}return o}function Zs(t,n,i=!1){return{factory:t,value:n,multi:i?[]:void 0}}function du(t){return!!t.\u0275providers}function hl(t,n){for(const i of t)Array.isArray(i)?hl(i,n):du(i)?hl(i.\u0275providers,n):n(i)}class gc{}class fu{resolveComponentFactory(n){throw function pu(t){const n=Error(`No component factory found for ${z(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Ua=(()=>{class t{}return t.NULL=new fu,t})();function Zd(){return ga(ci(),bt())}function ga(t,n){return new Va(ni(t,n))}let Va=(()=>{class t{constructor(i){this.nativeElement=i}}return t.__NG_ELEMENT_ID__=Zd,t})();function _u(t){return t instanceof Va?t.nativeElement:t}class vc{}let Kd=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Yd(){const t=bt(),i=Dn(ci().index,t);return(Zn(i)?i:t)[11]}(),t})(),Wd=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>null}),t})();class gu{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const mu=new gu("14.2.1"),vu={};function Tu(t){return t.ngOriginalError}class pl{constructor(){this._console=console}handleError(n){const i=this._findOriginalError(n);this._console.error("ERROR",n),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(n){let i=n&&Tu(n);for(;i&&Tu(i);)i=Tu(i);return i||null}}const Xd=/^>|^->|<!--|-->|--!>|<!-$/g,eh=/(<|>)/;const yc=new Map;let oh=0;const Iu="__ngContext__";function Br(t,n){Zn(n)?(t[Iu]=n[20],function Ou(t){yc.set(t[20],t)}(n)):t[Iu]=n}function fl(t){const n=t[Iu];return"number"==typeof n?function wu(t){return yc.get(t)||null}(n):n||null}function Pu(t){const n=fl(t);return n?Zn(n)?n:n.lView:null}function _(t){return t.ownerDocument.defaultView}function R(t){return t.ownerDocument}function Ue(t){return t instanceof Function?t():t}var Wt=(()=>((Wt=Wt||{})[Wt.Important=1]="Important",Wt[Wt.DashCase=2]="DashCase",Wt))();let pn;function An(t,n){return pn(t,n)}function En(t){const n=t[3];return Ei(n)?n[3]:n}function Wn(t){return Gi(t[13])}function Bi(t){return Gi(t[4])}function Gi(t){for(;null!==t&&!Ei(t);)t=t[4];return t}function Ar(t,n,i,o,l){if(null!=o){let u,f=!1;Ei(o)?u=o:Zn(o)&&(f=!0,o=o[0]);const v=Kn(o);0===t&&null!==i?null==l?Ru(n,i,v):ds(n,i,v,l||null,!0):1===t&&null!==i?ds(n,i,v,l||null,!0):2===t?Dc(n,v,f):3===t&&n.destroyNode(v),null!=u&&function ey(t,n,i,o,l){const u=i[7];u!==Kn(i)&&Ar(n,t,o,u,l);for(let v=10;v<i.length;v++){const T=i[v];Tc(T[1],T,t,n,o,u)}}(n,t,u,i,l)}}function yr(t,n){return t.createText(n)}function Ns(t,n,i){t.setValue(n,i)}function Ks(t,n){return t.createComment(function Mu(t){return t.replace(Xd,n=>n.replace(eh,"\u200b$1\u200b"))}(n))}function Hr(t,n,i){return t.createElement(n,i)}function za(t,n){const i=t[9],o=i.indexOf(n),l=n[3];512&n[2]&&(n[2]&=-513,no(l,-1)),i.splice(o,1)}function Is(t,n){if(t.length<=10)return;const i=10+n,o=t[i];if(o){const l=o[17];null!==l&&l!==t&&za(l,o),n>0&&(t[i-1][4]=o[4]);const u=Oa(t,10+n);!function No(t,n){Tc(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(o[1],o);const f=u[19];null!==f&&f.detachView(u[1]),o[3]=null,o[4]=null,o[2]&=-65}return o}function us(t,n){if(!(128&n[2])){const i=n[11];i.destroyNode&&Tc(t,n,i,3,null,null),function gl(t){let n=t[13];if(!n)return Ws(t[1],t);for(;n;){let i=null;if(Zn(n))i=n[13];else{const o=n[10];o&&(i=o)}if(!i){for(;n&&!n[4]&&n!==t;)Zn(n)&&Ws(n[1],n),n=n[3];null===n&&(n=t),Zn(n)&&Ws(n[1],n),i=n&&n[4]}n=i}}(n)}}function Ws(t,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function Js(t,n){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let o=0;o<i.length;o+=2){const l=n[i[o]];if(!(l instanceof $e)){const u=i[o+1];if(Array.isArray(u))for(let f=0;f<u.length;f+=2){const v=l[u[f]],T=u[f+1];try{T.call(v)}finally{}}else try{u.call(l)}finally{}}}}(t,n),function ml(t,n){const i=t.cleanup,o=n[7];let l=-1;if(null!==i)for(let u=0;u<i.length-1;u+=2)if("string"==typeof i[u]){const f=i[u+1],v="function"==typeof f?f(n):Kn(n[f]),T=o[l=i[u+2]],W=i[u+3];"boolean"==typeof W?v.removeEventListener(i[u],T,W):W>=0?o[l=W]():o[l=-W].unsubscribe(),u+=2}else{const f=o[l=i[u+1]];i[u].call(f)}if(null!==o){for(let u=l+1;u<o.length;u++)(0,o[u])();n[7]=null}}(t,n),1===n[1].type&&n[11].destroy();const i=n[17];if(null!==i&&Ei(n[3])){i!==n[3]&&za(i,n);const o=n[19];null!==o&&o.detachView(t)}!function ah(t){yc.delete(t[20])}(n)}}function vl(t,n,i){return xu(t,n.parent,i)}function xu(t,n,i){let o=n;for(;null!==o&&40&o.type;)o=(n=o).parent;if(null===o)return i[0];if(2&o.flags){const l=t.data[o.directiveStart].encapsulation;if(l===ve.None||l===ve.Emulated)return null}return ni(o,i)}function ds(t,n,i,o,l){t.insertBefore(n,i,o,l)}function Ru(t,n,i){t.appendChild(n,i)}function bc(t,n,i,o,l){null!==o?ds(t,n,i,o,l):Ru(t,n,i)}function Ga(t,n){return t.parentNode(n)}function ku(t,n,i){return Ps(t,n,i)}function Fu(t,n,i){return 40&t.type?ni(t,i):null}let ma,Ps=Fu;function Sc(t,n){Ps=t,ma=n}function Za(t,n,i,o){const l=vl(t,o,n),u=n[11],v=ku(o.parent||n[6],o,n);if(null!=l)if(Array.isArray(i))for(let T=0;T<i.length;T++)bc(u,l,i[T],v,!1);else bc(u,l,i,v,!1);void 0!==ma&&ma(u,o,n,i,l)}function va(t,n){if(null!==n){const i=n.type;if(3&i)return ni(n,t);if(4&i)return yl(-1,t[n.index]);if(8&i){const o=n.child;if(null!==o)return va(t,o);{const l=t[n.index];return Ei(l)?yl(-1,l):Kn(l)}}if(32&i)return An(n,t)()||Kn(t[n.index]);{const o=Ec(t,n);return null!==o?Array.isArray(o)?o[0]:va(En(t[16]),o):va(t,n.next)}}return null}function Ec(t,n){return null!==n?t[16][6].projection[n.projection]:null}function yl(t,n){const i=10+t+1;if(i<n.length){const o=n[i],l=o[1].firstChild;if(null!==l)return va(o,l)}return n[7]}function Dc(t,n,i){const o=Ga(t,n);o&&function hh(t,n,i,o){t.removeChild(n,i,o)}(t,o,n,i)}function Cl(t,n,i,o,l,u,f){for(;null!=i;){const v=o[i.index],T=i.type;if(f&&0===n&&(v&&Br(Kn(v),o),i.flags|=4),64!=(64&i.flags))if(8&T)Cl(t,n,i.child,o,l,u,!1),Ar(n,t,l,v,u);else if(32&T){const W=An(i,o);let le;for(;le=W();)Ar(n,t,l,le,u);Ar(n,t,l,v,u)}else 16&T?wf(t,n,o,i,l,u):Ar(n,t,l,v,u);i=f?i.projectionNext:i.next}}function Tc(t,n,i,o,l,u){Cl(i,o,t.firstChild,n,l,u,!1)}function wf(t,n,i,o,l,u){const f=i[16],T=f[6].projection[o.projection];if(Array.isArray(T))for(let W=0;W<T.length;W++)Ar(n,t,l,T[W],u);else Cl(t,n,T,f[3],l,u,!0)}function Nf(t,n,i){t.setAttribute(n,"style",i)}function ph(t,n,i){""===i?t.removeAttribute(n,"class"):t.setAttribute(n,"class",i)}function If(t,n,i){let o=t.length;for(;;){const l=t.indexOf(n,i);if(-1===l)return l;if(0===l||t.charCodeAt(l-1)<=32){const u=n.length;if(l+u===o||t.charCodeAt(l+u)<=32)return l}i=l+1}}const Pf="ng-template";function ny(t,n,i){let o=0;for(;o<t.length;){let l=t[o++];if(i&&"class"===l){if(l=t[o],-1!==If(l.toLowerCase(),n,0))return!0}else if(1===l){for(;o<t.length&&"string"==typeof(l=t[o++]);)if(l.toLowerCase()===n)return!0;return!1}}return!1}function xf(t){return 4===t.type&&t.value!==Pf}function iy(t,n,i){return n===(4!==t.type||i?t.value:Pf)}function ry(t,n,i){let o=4;const l=t.attrs||[],u=function ay(t){for(let n=0;n<t.length;n++)if(Xn(t[n]))return n;return t.length}(l);let f=!1;for(let v=0;v<n.length;v++){const T=n[v];if("number"!=typeof T){if(!f)if(4&o){if(o=2|1&o,""!==T&&!iy(t,T,i)||""===T&&1===n.length){if(hs(o))return!1;f=!0}}else{const W=8&o?T:n[++v];if(8&o&&null!==t.attrs){if(!ny(t.attrs,W,i)){if(hs(o))return!1;f=!0}continue}const Ce=oy(8&o?"class":T,l,xf(t),i);if(-1===Ce){if(hs(o))return!1;f=!0;continue}if(""!==W){let je;je=Ce>u?"":l[Ce+1].toLowerCase();const et=8&o?je:null;if(et&&-1!==If(et,W,0)||2&o&&W!==je){if(hs(o))return!1;f=!0}}}}else{if(!f&&!hs(o)&&!hs(T))return!1;if(f&&hs(T))continue;f=!1,o=T|1&o}}return hs(o)||f}function hs(t){return 0==(1&t)}function oy(t,n,i,o){if(null===n)return-1;let l=0;if(o||!i){let u=!1;for(;l<n.length;){const f=n[l];if(f===t)return l;if(3===f||6===f)u=!0;else{if(1===f||2===f){let v=n[++l];for(;"string"==typeof v;)v=n[++l];continue}if(4===f)break;if(0===f){l+=4;continue}}l+=u?1:2}return-1}return function ly(t,n){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){const o=t[i];if("number"==typeof o)return-1;if(o===n)return i;i++}return-1}(n,t)}function Rf(t,n,i=!1){for(let o=0;o<n.length;o++)if(ry(t,n[o],i))return!0;return!1}function cy(t,n){e:for(let i=0;i<n.length;i++){const o=n[i];if(t.length===o.length){for(let l=0;l<t.length;l++)if(t[l]!==o[l])continue e;return!0}}return!1}function Lf(t,n){return t?":not("+n.trim()+")":n}function uy(t){let n=t[0],i=1,o=2,l="",u=!1;for(;i<t.length;){let f=t[i];if("string"==typeof f)if(2&o){const v=t[++i];l+="["+f+(v.length>0?'="'+v+'"':"")+"]"}else 8&o?l+="."+f:4&o&&(l+=" "+f);else""!==l&&!hs(f)&&(n+=Lf(u,l),l=""),o=f,u=u||!hs(o);i++}return""!==l&&(n+=Lf(u,l)),n}const mn={};function kf(t){Ff(fn(),bt(),we()+t,!1)}function Ff(t,n,i,o){if(!o)if(3==(3&n[2])){const u=t.preOrderCheckHooks;null!==u&&zn(n,u,i)}else{const u=t.preOrderHooks;null!==u&&Oi(n,u,0,i)}tt(i)}function Uf(t,n=null,i=null,o){const l=Vf(t,n,i,o);return l.resolveInjectorInitializers(),l}function Vf(t,n=null,i=null,o,l=new Set){const u=[i||ct,Ud(t)];return o=o||("object"==typeof t?void 0:z(t)),new au(u,n||Gs(),o||null,l)}let Ka=(()=>{class t{static create(i,o){if(Array.isArray(i))return Uf({name:""},o,i,"");{var l;const u=null!==(l=i.name)&&void 0!==l?l:"";return Uf({name:u},i.parent,i.providers,u)}}}return t.THROW_IF_NOT_FOUND=Ft,t.NULL=new ll,t.\u0275prov=Et({token:t,providedIn:"any",factory:()=>Pi(al)}),t.__NG_ELEMENT_ID__=-1,t})();function Sl(t,n=Ke.Default){const i=bt();return null===i?Pi(t,n):ia(ci(),i,C(t),n)}function Wf(){throw new Error("invalid")}function Bu(t,n){return t<<17|n<<2}function ps(t){return t>>17&32767}function vh(t){return 2|t}function Qs(t){return(131068&t)>>2}function yh(t,n){return-131069&t|n<<2}function Ch(t){return 1|t}function s_(t,n){const i=t.contentQueries;if(null!==i)for(let o=0;o<i.length;o+=2){const l=i[o],u=i[o+1];if(-1!==u){const f=t.data[u];Fo(l),f.contentQueries(2,n[u],u)}}}function Vu(t,n,i,o,l,u,f,v,T,W,le){const Ce=n.blueprint.slice();return Ce[0]=l,Ce[2]=76|o,(null!==le||t&&1024&t[2])&&(Ce[2]|=1024),bo(Ce),Ce[3]=Ce[15]=t,Ce[8]=i,Ce[10]=f||t&&t[10],Ce[11]=v||t&&t[11],Ce[12]=T||t&&t[12]||null,Ce[9]=W||t&&t[9]||null,Ce[6]=u,Ce[20]=function sh(){return oh++}(),Ce[21]=le,Ce[16]=2==n.type?t[16]:Ce,Ce}function El(t,n,i,o,l){let u=t.data[n];if(null===u)u=Oh(t,n,i,o,l),function ta(){return ln.lFrame.inI18n}()&&(u.flags|=64);else if(64&u.type){u.type=i,u.value=o,u.attrs=l;const f=I();u.injectorIndex=null===f?-1:f.injectorIndex}return D(u,!0),u}function Oh(t,n,i,o,l){const u=V(),f=ue(),T=t.data[n]=function Ky(t,n,i,o,l,u){return{type:i,index:o,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:l,attrs:u,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,f?u:u&&u.parent,i,n,o,l);return null===t.firstChild&&(t.firstChild=T),null!==u&&(f?null==u.child&&null!==T.parent&&(u.child=T):null===u.next&&(u.next=T)),T}function Dl(t,n,i,o){if(0===i)return-1;const l=n.length;for(let u=0;u<i;u++)n.push(o),t.blueprint.push(o),t.data.push(null);return l}function ju(t,n,i){$o(n);try{const o=t.viewQuery;null!==o&&Fh(1,o,i);const l=t.template;null!==l&&a_(t,n,l,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&s_(t,n),t.staticViewQueries&&Fh(2,t.viewQuery,i);const u=t.components;null!==u&&function jy(t,n){for(let i=0;i<n.length;i++)u0(t,n[i])}(n,u)}catch(o){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),o}finally{n[2]&=-5,X()}}function Mc(t,n,i,o){const l=n[2];if(128!=(128&l)){$o(n);try{bo(n),function Sn(t){return ln.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==i&&a_(t,n,i,2,o);const f=3==(3&l);if(f){const W=t.preOrderCheckHooks;null!==W&&zn(n,W,null)}else{const W=t.preOrderHooks;null!==W&&Oi(n,W,0,null),k(n,0)}if(function l0(t){for(let n=Wn(t);null!==n;n=Bi(n)){if(!n[2])continue;const i=n[9];for(let o=0;o<i.length;o++){const l=i[o],u=l[3];0==(512&l[2])&&no(u,1),l[2]|=512}}}(n),function a0(t){for(let n=Wn(t);null!==n;n=Bi(n))for(let i=10;i<n.length;i++){const o=n[i],l=o[1];ar(o)&&Mc(l,o,l.template,o[8])}}(n),null!==t.contentQueries&&s_(t,n),f){const W=t.contentCheckHooks;null!==W&&zn(n,W)}else{const W=t.contentHooks;null!==W&&Oi(n,W,1),k(n,1)}!function Uy(t,n){const i=t.hostBindingOpCodes;if(null!==i)try{for(let o=0;o<i.length;o++){const l=i[o];if(l<0)tt(~l);else{const u=l,f=i[++o],v=i[++o];Xo(f,u),v(2,n[u])}}}finally{tt(-1)}}(t,n);const v=t.components;null!==v&&function Vy(t,n){for(let i=0;i<n.length;i++)c0(t,n[i])}(n,v);const T=t.viewQuery;if(null!==T&&Fh(2,T,o),f){const W=t.viewCheckHooks;null!==W&&zn(n,W)}else{const W=t.viewHooks;null!==W&&Oi(n,W,2),k(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-41,512&n[2]&&(n[2]&=-513,no(n[3],-1))}finally{X()}}}function zy(t,n,i,o){const l=n[10],f=Co(n);try{!f&&l.begin&&l.begin(),f&&ju(t,n,o),Mc(t,n,i,o)}finally{!f&&l.end&&l.end()}}function a_(t,n,i,o,l){const u=we(),f=2&o;try{tt(-1),f&&n.length>22&&Ff(t,n,22,!1),i(o,l)}finally{tt(u)}}function l_(t,n,i){if(Qi(n)){const l=n.directiveEnd;for(let u=n.directiveStart;u<l;u++){const f=t.data[u];f.contentQueries&&f.contentQueries(1,i[u],u)}}}function wh(t,n,i){!li()||(function qy(t,n,i,o){const l=i.directiveStart,u=i.directiveEnd;t.firstCreatePass||ur(i,n),Br(o,n);const f=i.initialInputs;for(let v=l;v<u;v++){const T=t.data[v],W=Di(T);W&&r0(n,i,T);const le=Ho(n,t,v,i);Br(le,n),null!==f&&o0(0,v-l,le,T,0,f),W&&(Dn(i.index,n)[8]=le)}}(t,n,i,ni(i,n)),128==(128&i.flags)&&function Xy(t,n,i){const o=i.directiveStart,l=i.directiveEnd,u=i.index,f=function So(){return ln.lFrame.currentDirectiveIndex}();try{tt(u);for(let v=o;v<l;v++){const T=t.data[v],W=n[v];Yr(v),(null!==T.hostBindings||0!==T.hostVars||null!==T.hostAttrs)&&__(T,W)}}finally{tt(-1),Yr(f)}}(t,n,i))}function Nh(t,n,i=ni){const o=n.localNames;if(null!==o){let l=n.index+1;for(let u=0;u<o.length;u+=2){const f=o[u+1],v=-1===f?i(n,t):t[f];t[l++]=v}}}function c_(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Ih(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function Ih(t,n,i,o,l,u,f,v,T,W){const le=22+o,Ce=le+l,je=function Gy(t,n){const i=[];for(let o=0;o<n;o++)i.push(o<t?null:mn);return i}(le,Ce),et="function"==typeof W?W():W;return je[1]={type:t,blueprint:je,template:i,queries:null,viewQuery:v,declTNode:n,data:je.slice().fill(null,le),bindingStartIndex:le,expandoStartIndex:Ce,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof u?u():u,pipeRegistry:"function"==typeof f?f():f,firstChild:null,schemas:T,consts:et,incompleteFirstPass:!1}}function u_(t,n,i,o){const l=b_(n);null===i?l.push(o):(l.push(i),t.firstCreatePass&&S_(t).push(o,l.length-1))}function d_(t,n,i){for(let o in t)if(t.hasOwnProperty(o)){const l=t[o];(i=null===i?{}:i).hasOwnProperty(o)?i[o].push(n,l):i[o]=[n,l]}return i}function h_(t,n){const o=n.directiveEnd,l=t.data,u=n.attrs,f=[];let v=null,T=null;for(let W=n.directiveStart;W<o;W++){const le=l[W],Ce=le.inputs,je=null===u||xf(n)?null:s0(Ce,u);f.push(je),v=d_(Ce,W,v),T=d_(le.outputs,W,T)}null!==v&&(v.hasOwnProperty("class")&&(n.flags|=16),v.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=f,n.inputs=v,n.outputs=T}function Io(t,n,i,o,l,u,f,v){const T=ni(n,i);let le,W=n.inputs;!v&&null!=W&&(le=W[o])?($h(t,i,le,o,l),qi(n)&&p_(i,n.index)):3&n.type&&(o=function Yy(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(o),l=null!=f?f(l,n.value||"",o):l,u.setProperty(T,o,l))}function p_(t,n){const i=Dn(n,t);16&i[2]||(i[2]|=32)}function Ph(t,n,i,o){let l=!1;if(li()){const u=function e0(t,n,i){const o=t.directiveRegistry;let l=null;if(o)for(let u=0;u<o.length;u++){const f=o[u];Rf(i,f.selectors,!1)&&(l||(l=[]),nr(ur(i,n),t,f.type),Di(f)?(g_(t,i),l.unshift(f)):l.push(f))}return l}(t,n,i),f=null===o?null:{"":-1};if(null!==u){l=!0,m_(i,t.data.length,u.length);for(let le=0;le<u.length;le++){const Ce=u[le];Ce.providersResolver&&Ce.providersResolver(Ce)}let v=!1,T=!1,W=Dl(t,n,u.length,null);for(let le=0;le<u.length;le++){const Ce=u[le];i.mergedAttrs=Fn(i.mergedAttrs,Ce.hostAttrs),v_(t,i,n,W,Ce),n0(W,Ce,f),null!==Ce.contentQueries&&(i.flags|=8),(null!==Ce.hostBindings||null!==Ce.hostAttrs||0!==Ce.hostVars)&&(i.flags|=128);const je=Ce.type.prototype;!v&&(je.ngOnChanges||je.ngOnInit||je.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(i.index),v=!0),!T&&(je.ngOnChanges||je.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i.index),T=!0),W++}h_(t,i)}f&&function t0(t,n,i){if(n){const o=t.localNames=[];for(let l=0;l<n.length;l+=2){const u=i[n[l+1]];if(null==u)throw new G(-301,!1);o.push(n[l],u)}}}(i,o,f)}return i.mergedAttrs=Fn(i.mergedAttrs,i.attrs),l}function f_(t,n,i,o,l,u){const f=u.hostBindings;if(f){let v=t.hostBindingOpCodes;null===v&&(v=t.hostBindingOpCodes=[]);const T=~n.index;(function Qy(t){let n=t.length;for(;n>0;){const i=t[--n];if("number"==typeof i&&i<0)return i}return 0})(v)!=T&&v.push(T),v.push(o,l,f)}}function __(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function g_(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function n0(t,n,i){if(i){if(n.exportAs)for(let o=0;o<n.exportAs.length;o++)i[n.exportAs[o]]=t;Di(n)&&(i[""]=t)}}function m_(t,n,i){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+i,t.providerIndexes=n}function v_(t,n,i,o,l){t.data[o]=l;const u=l.factory||(l.factory=ai(l.type)),f=new $e(u,Di(l),Sl);t.blueprint[o]=f,i[o]=f,f_(t,n,0,o,Dl(t,i,l.hostVars,mn),l)}function r0(t,n,i){const o=ni(n,t),l=c_(i),u=t[10],f=zu(t,Vu(t,l,null,i.onPush?32:16,o,n,u,u.createRenderer(o,i),null,null,null));t[n.index]=f}function xh(t,n,i,o,l,u,f){if(null==u)t.removeAttribute(n,l,i);else{const v=null==f?ee(u):f(u,o||"",l);t.setAttribute(n,l,v,i)}}function o0(t,n,i,o,l,u){const f=u[n];if(null!==f){const v=o.setInput;for(let T=0;T<f.length;){const W=f[T++],le=f[T++],Ce=f[T++];null!==v?o.setInput(i,Ce,W,le):i[le]=Ce}}}function s0(t,n){let i=null,o=0;for(;o<n.length;){const l=n[o];if(0!==l)if(5!==l){if("number"==typeof l)break;t.hasOwnProperty(l)&&(null===i&&(i=[]),i.push(l,t[l],n[o+1])),o+=2}else o+=2;else o+=4}return i}function y_(t,n,i,o){return new Array(t,!0,!1,n,null,0,o,i,null,null)}function c0(t,n){const i=Dn(n,t);if(ar(i)){const o=i[1];48&i[2]?Mc(o,i,o.template,i[8]):i[5]>0&&Rh(i)}}function Rh(t){for(let o=Wn(t);null!==o;o=Bi(o))for(let l=10;l<o.length;l++){const u=o[l];if(ar(u))if(512&u[2]){const f=u[1];Mc(f,u,f.template,u[8])}else u[5]>0&&Rh(u)}const i=t[1].components;if(null!==i)for(let o=0;o<i.length;o++){const l=Dn(i[o],t);ar(l)&&l[5]>0&&Rh(l)}}function u0(t,n){const i=Dn(n,t),o=i[1];(function d0(t,n){for(let i=n.length;i<t.blueprint.length;i++)n.push(t.blueprint[i])})(o,i),ju(o,i,i[8])}function zu(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function Lh(t){for(;t;){t[2]|=32;const n=En(t);if(or(t)&&!n)return t;t=n}return null}function Fh(t,n,i){Fo(0),n(t,i)}function b_(t){return t[7]||(t[7]=[])}function S_(t){return t.cleanup||(t.cleanup=[])}function D_(t,n){const i=t[9],o=i?i.get(pl,null):null;o&&o.handleError(n)}function $h(t,n,i,o,l){for(let u=0;u<i.length;){const f=i[u++],v=i[u++],T=n[f],W=t.data[f];null!==W.setInput?W.setInput(T,l,o,v):T[v]=l}}function qs(t,n,i){const o=ki(n,t);Ns(t[11],o,i)}function Gu(t,n,i){let o=i?t.styles:null,l=i?t.classes:null,u=0;if(null!==n)for(let f=0;f<n.length;f++){const v=n[f];"number"==typeof v?u=v:1==u?l=N(l,v):2==u&&(o=N(o,v+": "+n[++f]+";"))}i?t.styles=o:t.stylesWithoutHost=o,i?t.classes=l:t.classesWithoutHost=l}function Zu(t,n,i,o,l=!1){for(;null!==i;){const u=n[i.index];if(null!==u&&o.push(Kn(u)),Ei(u))for(let v=10;v<u.length;v++){const T=u[v],W=T[1].firstChild;null!==W&&Zu(T[1],T,W,o)}const f=i.type;if(8&f)Zu(t,n,i.child,o);else if(32&f){const v=An(i,n);let T;for(;T=v();)o.push(T)}else if(16&f){const v=Ec(n,i);if(Array.isArray(v))o.push(...v);else{const T=En(n[16]);Zu(T[1],T,v,o,!0)}}i=l?i.projectionNext:i.next}return o}class Ac{constructor(n,i){this._lView=n,this._cdRefInjectingView=i,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,i=n[1];return Zu(i,n,i.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(Ei(n)){const i=n[8],o=i?i.indexOf(this):-1;o>-1&&(Is(n,o),Oa(i,o))}this._attachedToViewContainer=!1}us(this._lView[1],this._lView)}onDestroy(n){u_(this._lView[1],this._lView,null,n)}markForCheck(){Lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function kh(t,n,i){const o=n[10];o.begin&&o.begin();try{Mc(t,n,t.template,i)}catch(l){throw D_(n,l),l}finally{o.end&&o.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new G(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Ys(t,n){Tc(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new G(902,!1);this._appRef=n}}class p0 extends Ac{constructor(n){super(n),this._view=n}detectChanges(){!function C_(t){!function h0(t){for(let n=0;n<t.components.length;n++){const i=t.components[n],o=Pu(i);if(null!==o){const l=o[1];zy(l,o,l.template,i)}}}(t[8])}(this._view)}checkNoChanges(){}get context(){return null}}class Bh extends Ua{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const i=nn(n);return new Oc(i,this.ngModule)}}function T_(t){const n=[];for(let i in t)t.hasOwnProperty(i)&&n.push({propName:t[i],templateName:i});return n}class _0{constructor(n,i){this.injector=n,this.parentInjector=i}get(n,i,o){const l=this.injector.get(n,vu,o);return l!==vu||i===vu?l:this.parentInjector.get(n,i,o)}}class Oc extends gc{constructor(n,i){super(),this.componentDef=n,this.ngModule=i,this.componentType=n.type,this.selector=function dy(t){return t.map(uy).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!i}get inputs(){return T_(this.componentDef.inputs)}get outputs(){return T_(this.componentDef.outputs)}create(n,i,o,l){var u;let f=(l=l||this.ngModule)instanceof cs?l:null===(u=l)||void 0===u?void 0:u.injector;f&&null!==this.componentDef.getStandaloneInjector&&(f=this.componentDef.getStandaloneInjector(f)||f);const v=f?new _0(n,f):n,T=v.get(vc,null);if(null===T)throw new G(407,!1);const W=v.get(Wd,null),le=T.createRenderer(null,this.componentDef),Ce=this.componentDef.selectors[0][0]||"div",je=o?function Zy(t,n,i){return t.selectRootElement(n,i===ve.ShadowDom)}(le,o,this.componentDef.encapsulation):Hr(T.createRenderer(null,this.componentDef),Ce,function f0(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(Ce)),et=this.componentDef.onPush?288:272,Ct={components:[]},Lt=Ih(0,null,null,1,0,null,null,null,null,null),Bt=Vu(null,Lt,Ct,et,null,null,T,le,W,v,null);let Jt,on;$o(Bt);try{const Ot=function v0(t,n,i,o,l,u){const f=i[1];i[22]=t;const T=El(f,22,2,"#host",null),W=T.mergedAttrs=n.hostAttrs;null!==W&&(Gu(T,W,!0),null!==t&&(yn(l,t,W),null!==T.classes&&ph(l,t,T.classes),null!==T.styles&&Nf(l,t,T.styles)));const le=o.createRenderer(t,n),Ce=Vu(i,c_(n),null,n.onPush?32:16,i[22],T,o,le,u||null,null,null);return f.firstCreatePass&&(nr(ur(T,i),f,n.type),g_(f,T),m_(T,i.length,1)),zu(i,Ce),i[22]=Ce}(je,this.componentDef,Bt,T,le);if(je)if(o)yn(le,je,["ng-version",mu.full]);else{const{attrs:un,classes:vn}=function hy(t){const n=[],i=[];let o=1,l=2;for(;o<t.length;){let u=t[o];if("string"==typeof u)2===l?""!==u&&n.push(u,t[++o]):8===l&&i.push(u);else{if(!hs(l))break;l=u}o++}return{attrs:n,classes:i}}(this.componentDef.selectors[0]);un&&yn(le,je,un),vn&&vn.length>0&&ph(le,je,vn.join(" "))}if(on=hr(Lt,22),void 0!==i){const un=on.projection=[];for(let vn=0;vn<this.ngContentSelectors.length;vn++){const pi=i[vn];un.push(null!=pi?Array.from(pi):null)}}Jt=function y0(t,n,i,o,l){const u=i[1],f=function Jy(t,n,i){const o=ci();t.firstCreatePass&&(i.providersResolver&&i.providersResolver(i),v_(t,o,n,Dl(t,n,1,null),i),h_(t,o));const l=Ho(n,t,o.directiveStart,o);Br(l,n);const u=ni(o,n);return u&&Br(u,n),l}(u,i,n);if(o.components.push(f),t[8]=f,null!==l)for(const T of l)T(f,n);if(n.contentQueries){const T=ci();n.contentQueries(1,f,T.directiveStart)}const v=ci();return!u.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(tt(v.index),f_(i[1],v,0,v.directiveStart,v.directiveEnd,n),__(n,f)),f}(Ot,this.componentDef,Bt,Ct,[b0]),ju(Lt,Bt,null)}finally{X()}return new m0(this.componentType,Jt,ga(on,Bt),Bt,on)}}class m0 extends class hu{}{constructor(n,i,o,l,u){super(),this.location=o,this._rootLView=l,this._tNode=u,this.instance=i,this.hostView=this.changeDetectorRef=new p0(l),this.componentType=n}setInput(n,i){const o=this._tNode.inputs;let l;if(null!==o&&(l=o[n])){const u=this._rootLView;$h(u[1],u,l,n,i),p_(u,this._tNode.index)}}get injector(){return new Ss(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function b0(){const t=ci();Mn(bt()[1],t)}function Hh(t){let n=function M_(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),i=!0;const o=[t];for(;n;){let l;if(Di(t))l=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new G(903,!1);l=n.\u0275dir}if(l){if(i){o.push(l);const f=t;f.inputs=Uh(t.inputs),f.declaredInputs=Uh(t.declaredInputs),f.outputs=Uh(t.outputs);const v=l.hostBindings;v&&T0(t,v);const T=l.viewQuery,W=l.contentQueries;if(T&&E0(t,T),W&&D0(t,W),H(t.inputs,l.inputs),H(t.declaredInputs,l.declaredInputs),H(t.outputs,l.outputs),Di(l)&&l.data.animation){const le=t.data;le.animation=(le.animation||[]).concat(l.data.animation)}}const u=l.features;if(u)for(let f=0;f<u.length;f++){const v=u[f];v&&v.ngInherit&&v(t),v===Hh&&(i=!1)}}n=Object.getPrototypeOf(n)}!function S0(t){let n=0,i=null;for(let o=t.length-1;o>=0;o--){const l=t[o];l.hostVars=n+=l.hostVars,l.hostAttrs=Fn(l.hostAttrs,i=Fn(i,l.hostAttrs))}}(o)}function Uh(t){return t===It?{}:t===ct?[]:t}function E0(t,n){const i=t.viewQuery;t.viewQuery=i?(o,l)=>{n(o,l),i(o,l)}:n}function D0(t,n){const i=t.contentQueries;t.contentQueries=i?(o,l,u)=>{n(o,l,u),i(o,l,u)}:n}function T0(t,n){const i=t.hostBindings;t.hostBindings=i?(o,l)=>{n(o,l),i(o,l)}:n}let Ku=null;function Ya(){if(!Ku){const t=Pe.Symbol;if(t&&t.iterator)Ku=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let i=0;i<n.length;++i){const o=n[i];"entries"!==o&&"size"!==o&&Map.prototype[o]===Map.prototype.entries&&(Ku=o)}}}return Ku}function wc(t){return!!Vh(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ya()in t)}function Vh(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Rs(t,n,i){return t[n]=i}function Nc(t,n){return t[n]}function Qr(t,n,i){return!Object.is(t[n],i)&&(t[n]=i,!0)}function Wa(t,n,i,o){const l=Qr(t,n,i);return Qr(t,n+1,o)||l}function Yu(t,n,i,o,l){const u=Wa(t,n,i,o);return Qr(t,n+2,l)||u}function Vo(t,n,i,o,l,u){const f=Wa(t,n,i,o);return Wa(t,n+2,l,u)||f}function jh(t,n,i,o){const l=bt();return Qr(l,fo(),n)&&(fn(),function xs(t,n,i,o,l,u){const f=ni(t,n);xh(n[11],f,u,t.value,i,o,l)}(dt(),l,t,n,i,o)),jh}function Ml(t,n,i,o){return Qr(t,fo(),i)?n+ee(i)+o:mn}function Al(t,n,i,o,l,u){const v=Wa(t,_r(),i,l);return Er(2),v?n+ee(i)+o+ee(l)+u:mn}function k_(t,n,i,o,l,u,f,v){const T=bt(),W=fn(),le=t+22,Ce=W.firstCreatePass?function x0(t,n,i,o,l,u,f,v,T){const W=n.consts,le=El(n,t,4,f||null,pr(W,v));Ph(n,i,le,pr(W,T)),Mn(n,le);const Ce=le.tViews=Ih(2,le,o,l,u,n.directiveRegistry,n.pipeRegistry,null,n.schemas,W);return null!==n.queries&&(n.queries.template(n,le),Ce.queries=n.queries.embeddedTView(le)),le}(le,W,T,n,i,o,l,u,f):W.data[le];D(Ce,!1);const je=T[11].createComment("");Za(W,T,je,Ce),Br(je,T),zu(T,T[le]=y_(je,T,je,Ce)),Vr(Ce)&&wh(W,T,Ce),null!=f&&Nh(T,Ce,v)}function F_(t){return Rr(function qn(){return ln.lFrame.contextLView}(),22+t)}function zh(t,n,i){const o=bt();return Qr(o,fo(),n)&&Io(fn(),dt(),o,t,n,o[11],i,!1),zh}function Gh(t,n,i,o,l){const f=l?"class":"style";$h(t,i,n.inputs[f],f,o)}function Wu(t,n,i,o){const l=bt(),u=fn(),f=22+t,v=l[11],T=l[f]=Hr(v,n,function hn(){return ln.lFrame.currentNamespace}()),W=u.firstCreatePass?function L0(t,n,i,o,l,u,f){const v=n.consts,W=El(n,t,2,l,pr(v,u));return Ph(n,i,W,pr(v,f)),null!==W.attrs&&Gu(W,W.attrs,!1),null!==W.mergedAttrs&&Gu(W,W.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,W),W}(f,u,l,0,n,i,o):u.data[f];D(W,!0);const le=W.mergedAttrs;null!==le&&yn(v,T,le);const Ce=W.classes;null!==Ce&&ph(v,T,Ce);const je=W.styles;return null!==je&&Nf(v,T,je),64!=(64&W.flags)&&Za(u,l,T,W),0===function Lo(){return ln.lFrame.elementDepthCount}()&&Br(T,l),function Jo(){ln.lFrame.elementDepthCount++}(),Vr(W)&&(wh(u,l,W),l_(u,W,l)),null!==o&&Nh(l,W),Wu}function Ju(){let t=ci();ue()?it():(t=t.parent,D(t,!1));const n=t;!function io(){ln.lFrame.elementDepthCount--}();const i=fn();return i.firstCreatePass&&(Mn(i,t),Qi(t)&&i.queries.elementEnd(t)),null!=n.classesWithoutHost&&function xt(t){return 0!=(16&t.flags)}(n)&&Gh(i,n,bt(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function kt(t){return 0!=(32&t.flags)}(n)&&Gh(i,n,bt(),n.stylesWithoutHost,!1),Ju}function Zh(t,n,i,o){return Wu(t,n,i,o),Ju(),Zh}function Qu(t,n,i){const o=bt(),l=fn(),u=t+22,f=l.firstCreatePass?function k0(t,n,i,o,l){const u=n.consts,f=pr(u,o),v=El(n,t,8,"ng-container",f);return null!==f&&Gu(v,f,!0),Ph(n,i,v,pr(u,l)),null!==n.queries&&n.queries.elementStart(n,v),v}(u,l,o,n,i):l.data[u];D(f,!0);const v=o[u]=o[11].createComment("");return Za(l,o,v,f),Br(v,o),Vr(f)&&(wh(l,o,f),l_(l,f,o)),null!=i&&Nh(o,f),Qu}function qu(){let t=ci();const n=fn();return ue()?it():(t=t.parent,D(t,!1)),n.firstCreatePass&&(Mn(n,t),Qi(t)&&n.queries.elementEnd(t)),qu}function Kh(t,n,i){return Qu(t,n,i),qu(),Kh}function $_(){return bt()}function Yh(t){return!!t&&"function"==typeof t.then}function B_(t){return!!t&&"function"==typeof t.subscribe}const H_=B_;function Wh(t,n,i,o){const l=bt(),u=fn(),f=ci();return function V_(t,n,i,o,l,u,f,v){const T=Vr(o),le=t.firstCreatePass&&S_(t),Ce=n[8],je=b_(n);let et=!0;if(3&o.type||v){const Bt=ni(o,n),Jt=v?v(Bt):Bt,on=je.length,Ot=v?vn=>v(Kn(vn[o.index])):o.index;let un=null;if(!v&&T&&(un=function F0(t,n,i,o){const l=t.cleanup;if(null!=l)for(let u=0;u<l.length-1;u+=2){const f=l[u];if(f===i&&l[u+1]===o){const v=n[7],T=l[u+2];return v.length>T?v[T]:null}"string"==typeof f&&(u+=2)}return null}(t,n,l,o.index)),null!==un)(un.__ngLastListenerFn__||un).__ngNextListenerFn__=u,un.__ngLastListenerFn__=u,et=!1;else{u=z_(o,n,Ce,u,!1);const vn=i.listen(Jt,l,u);je.push(u,vn),le&&le.push(l,Ot,on,on+1)}}else u=z_(o,n,Ce,u,!1);const Ct=o.outputs;let Lt;if(et&&null!==Ct&&(Lt=Ct[l])){const Bt=Lt.length;if(Bt)for(let Jt=0;Jt<Bt;Jt+=2){const pi=n[Lt[Jt]][Lt[Jt+1]].subscribe(u),qa=je.length;je.push(u,pi),le&&le.push(l,o.index,qa,-(qa+1))}}}(u,l,l[11],f,t,n,0,o),Wh}function j_(t,n,i,o){try{return!1!==i(o)}catch(l){return D_(t,l),!1}}function z_(t,n,i,o,l){return function u(f){if(f===Function)return o;Lh(2&t.flags?Dn(t.index,n):n);let T=j_(n,0,o,f),W=u.__ngNextListenerFn__;for(;W;)T=j_(n,0,W,f)&&T,W=W.__ngNextListenerFn__;return l&&!1===T&&(f.preventDefault(),f.returnValue=!1),T}}function G_(t=1){return function P(t){return(ln.lFrame.contextLView=function ae(t,n){for(;t>0;)n=n[15],t--;return n}(t,ln.lFrame.contextLView))[8]}(t)}function $0(t,n){let i=null;const o=function sy(t){const n=t.attrs;if(null!=n){const i=n.indexOf(5);if(0==(1&i))return n[i+1]}return null}(t);for(let l=0;l<n.length;l++){const u=n[l];if("*"!==u){if(null===o?Rf(t,u,!0):cy(o,u))return l}else i=l}return i}function Z_(t){const n=bt()[16][6];if(!n.projection){const o=n.projection=Ts(t?t.length:1,null),l=o.slice();let u=n.child;for(;null!==u;){const f=t?$0(u,t):0;null!==f&&(l[f]?l[f].projectionNext=u:o[f]=u,l[f]=u),u=u.next}}}function K_(t,n=0,i){const o=bt(),l=fn(),u=El(l,22+t,16,null,i||null);null===u.projection&&(u.projection=n),it(),64!=(64&u.flags)&&function Xv(t,n,i){wf(n[11],0,n,i,vl(t,i,n),ku(i.parent||n[6],i,n))}(l,o,u)}function Jh(t,n,i){return Xu(t,"",n,"",i),Jh}function Xu(t,n,i,o,l){const u=bt(),f=Ml(u,n,i,o);return f!==mn&&Io(fn(),dt(),u,t,f,u[11],l,!1),Xu}function ng(t,n,i,o,l){const u=t[i+1],f=null===n;let v=o?ps(u):Qs(u),T=!1;for(;0!==v&&(!1===T||f);){const le=t[v+1];U0(t[v],n)&&(T=!0,t[v+1]=o?Ch(le):vh(le)),v=o?ps(le):Qs(le)}T&&(t[i+1]=o?vh(u):Ch(u))}function U0(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Uo(t,n)>=0}const Cr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ig(t){return t.substring(Cr.key,Cr.keyEnd)}function V0(t){return t.substring(Cr.value,Cr.valueEnd)}function rg(t,n){const i=Cr.textEnd;return i===n?-1:(n=Cr.keyEnd=function G0(t,n,i){for(;n<i&&t.charCodeAt(n)>32;)n++;return n}(t,Cr.key=n,i),Rl(t,n,i))}function og(t,n){const i=Cr.textEnd;let o=Cr.key=Rl(t,n,i);return i===o?-1:(o=Cr.keyEnd=function Z0(t,n,i){let o;for(;n<i&&(45===(o=t.charCodeAt(n))||95===o||(-33&o)>=65&&(-33&o)<=90||o>=48&&o<=57);)n++;return n}(t,o,i),o=ag(t,o,i),o=Cr.value=Rl(t,o,i),o=Cr.valueEnd=function K0(t,n,i){let o=-1,l=-1,u=-1,f=n,v=f;for(;f<i;){const T=t.charCodeAt(f++);if(59===T)return v;34===T||39===T?v=f=lg(t,T,f,i):n===f-4&&85===u&&82===l&&76===o&&40===T?v=f=lg(t,41,f,i):T>32&&(v=f),u=l,l=o,o=-33&T}return v}(t,o,i),ag(t,o,i))}function sg(t){Cr.key=0,Cr.keyEnd=0,Cr.value=0,Cr.valueEnd=0,Cr.textEnd=t.length}function Rl(t,n,i){for(;n<i&&t.charCodeAt(n)<=32;)n++;return n}function ag(t,n,i,o){return(n=Rl(t,n,i))<i&&n++,n}function lg(t,n,i,o){let l=-1,u=i;for(;u<o;){const f=t.charCodeAt(u++);if(f==n&&92!==l)return u;l=92==f&&92===l?0:f}throw new Error}function Qh(t,n,i){return _s(t,n,i,!1),Qh}function qh(t,n){return _s(t,n,null,!0),qh}function fs(t){gs(hg,Y0,t,!1)}function Y0(t,n){for(let i=function z0(t){return sg(t),og(t,Rl(t,0,Cr.textEnd))}(n);i>=0;i=og(n,i))hg(t,ig(n),V0(n))}function cg(t){gs(Tr,Ls,t,!0)}function Ls(t,n){for(let i=function j0(t){return sg(t),rg(t,Rl(t,0,Cr.textEnd))}(n);i>=0;i=rg(n,i))Tr(t,ig(n),!0)}function _s(t,n,i,o){const l=bt(),u=fn(),f=Er(2);u.firstUpdatePass&&dg(u,t,f,o),n!==mn&&Qr(l,f,n)&&pg(u,u.data[we()],l,l[11],t,l[f+1]=function t1(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=z(As(t)))),t}(n,i),o,f)}function gs(t,n,i,o){const l=fn(),u=Er(2);l.firstUpdatePass&&dg(l,null,u,o);const f=bt();if(i!==mn&&Qr(f,u,i)){const v=l.data[we()];if(_g(v,o)&&!ug(l,u)){let T=o?v.classesWithoutHost:v.stylesWithoutHost;null!==T&&(i=N(T,i||"")),Gh(l,v,f,i,o)}else!function e1(t,n,i,o,l,u,f,v){l===mn&&(l=ct);let T=0,W=0,le=0<l.length?l[0]:null,Ce=0<u.length?u[0]:null;for(;null!==le||null!==Ce;){const je=T<l.length?l[T+1]:void 0,et=W<u.length?u[W+1]:void 0;let Lt,Ct=null;le===Ce?(T+=2,W+=2,je!==et&&(Ct=Ce,Lt=et)):null===Ce||null!==le&&le<Ce?(T+=2,Ct=le):(W+=2,Ct=Ce,Lt=et),null!==Ct&&pg(t,n,i,o,Ct,Lt,f,v),le=T<l.length?l[T]:null,Ce=W<u.length?u[W]:null}}(l,v,f,f[11],f[u+1],f[u+1]=function X0(t,n,i){if(null==i||""===i)return ct;const o=[],l=As(i);if(Array.isArray(l))for(let u=0;u<l.length;u++)t(o,l[u],!0);else if("object"==typeof l)for(const u in l)l.hasOwnProperty(u)&&t(o,u,l[u]);else"string"==typeof l&&n(o,l);return o}(t,n,i),o,u)}}function ug(t,n){return n>=t.expandoStartIndex}function dg(t,n,i,o){const l=t.data;if(null===l[i+1]){const u=l[we()],f=ug(t,i);_g(u,o)&&null===n&&!f&&(n=!1),n=function W0(t,n,i,o){const l=function _o(t){const n=ln.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let u=o?n.residualClasses:n.residualStyles;if(null===l)0===(o?n.classBindings:n.styleBindings)&&(i=Ic(i=Xh(null,t,n,i,o),n.attrs,o),u=null);else{const f=n.directiveStylingLast;if(-1===f||t[f]!==l)if(i=Xh(l,t,n,i,o),null===u){let T=function J0(t,n,i){const o=i?n.classBindings:n.styleBindings;if(0!==Qs(o))return t[ps(o)]}(t,n,o);void 0!==T&&Array.isArray(T)&&(T=Xh(null,t,n,T[1],o),T=Ic(T,n.attrs,o),function Q0(t,n,i,o){t[ps(i?n.classBindings:n.styleBindings)]=o}(t,n,o,T))}else u=function q0(t,n,i){let o;const l=n.directiveEnd;for(let u=1+n.directiveStylingLast;u<l;u++)o=Ic(o,t[u].hostAttrs,i);return Ic(o,n.attrs,i)}(t,n,o)}return void 0!==u&&(o?n.residualClasses=u:n.residualStyles=u),i}(l,u,n,o),function B0(t,n,i,o,l,u){let f=u?n.classBindings:n.styleBindings,v=ps(f),T=Qs(f);t[o]=i;let le,W=!1;if(Array.isArray(i)){const Ce=i;le=Ce[1],(null===le||Uo(Ce,le)>0)&&(W=!0)}else le=i;if(l)if(0!==T){const je=ps(t[v+1]);t[o+1]=Bu(je,v),0!==je&&(t[je+1]=yh(t[je+1],o)),t[v+1]=function Iy(t,n){return 131071&t|n<<17}(t[v+1],o)}else t[o+1]=Bu(v,0),0!==v&&(t[v+1]=yh(t[v+1],o)),v=o;else t[o+1]=Bu(T,0),0===v?v=o:t[T+1]=yh(t[T+1],o),T=o;W&&(t[o+1]=vh(t[o+1])),ng(t,le,o,!0),ng(t,le,o,!1),function H0(t,n,i,o,l){const u=l?t.residualClasses:t.residualStyles;null!=u&&"string"==typeof n&&Uo(u,n)>=0&&(i[o+1]=Ch(i[o+1]))}(n,le,t,o,u),f=Bu(v,T),u?n.classBindings=f:n.styleBindings=f}(l,u,n,i,f,o)}}function Xh(t,n,i,o,l){let u=null;const f=i.directiveEnd;let v=i.directiveStylingLast;for(-1===v?v=i.directiveStart:v++;v<f&&(u=n[v],o=Ic(o,u.hostAttrs,l),u!==t);)v++;return null!==t&&(i.directiveStylingLast=v),o}function Ic(t,n,i){const o=i?1:2;let l=-1;if(null!==n)for(let u=0;u<n.length;u++){const f=n[u];"number"==typeof f?l=f:l===o&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Tr(t,f,!!i||n[++u]))}return void 0===t?null:t}function hg(t,n,i){Tr(t,n,As(i))}function pg(t,n,i,o,l,u,f,v){if(!(3&n.type))return;const T=t.data,W=T[v+1];ed(function qf(t){return 1==(1&t)}(W)?fg(T,n,i,l,Qs(W),f):void 0)||(ed(u)||function Qf(t){return 2==(2&t)}(W)&&(u=fg(T,null,i,l,v,f)),function ty(t,n,i,o,l){if(n)l?t.addClass(i,o):t.removeClass(i,o);else{let u=-1===o.indexOf("-")?void 0:Wt.DashCase;null==l?t.removeStyle(i,o,u):("string"==typeof l&&l.endsWith("!important")&&(l=l.slice(0,-10),u|=Wt.Important),t.setStyle(i,o,l,u))}}(o,f,ki(we(),i),l,u))}function fg(t,n,i,o,l,u){const f=null===n;let v;for(;l>0;){const T=t[l],W=Array.isArray(T),le=W?T[1]:T,Ce=null===le;let je=i[l+1];je===mn&&(je=Ce?ct:void 0);let et=Ce?Na(je,o):le===o?je:void 0;if(W&&!ed(et)&&(et=Na(T,o)),ed(et)&&(v=et,f))return v;const Ct=t[l+1];l=f?ps(Ct):Qs(Ct)}if(null!==n){let T=u?n.residualClasses:n.residualStyles;null!=T&&(v=Na(T,o))}return v}function ed(t){return void 0!==t}function _g(t,n){return 0!=(t.flags&(n?16:32))}function gg(t,n=""){const i=bt(),o=fn(),l=t+22,u=o.firstCreatePass?El(o,l,1,n,null):o.data[l],f=i[l]=yr(i[11],n);Za(o,i,f,u),D(u,!1)}function ep(t){return td("",t,""),ep}function td(t,n,i){const o=bt(),l=Ml(o,t,n,i);return l!==mn&&qs(o,we(),l),td}function tp(t,n,i,o,l){const u=bt(),f=Al(u,t,n,i,o,l);return f!==mn&&qs(u,we(),f),tp}function np(t,n,i,o,l,u,f){const v=bt(),T=function Ol(t,n,i,o,l,u,f,v){const W=Yu(t,_r(),i,l,f);return Er(3),W?n+ee(i)+o+ee(l)+u+ee(f)+v:mn}(v,t,n,i,o,l,u,f);return T!==mn&&qs(v,we(),T),np}function ip(t,n,i,o,l,u,f,v,T){const W=bt(),le=function wl(t,n,i,o,l,u,f,v,T,W){const Ce=Vo(t,_r(),i,l,f,T);return Er(4),Ce?n+ee(i)+o+ee(l)+u+ee(f)+v+ee(T)+W:mn}(W,t,n,i,o,l,u,f,v,T);return le!==mn&&qs(W,we(),le),ip}function Sg(t,n,i){gs(Tr,Ls,Ml(bt(),t,n,i),!0)}function Eg(t,n,i,o,l){gs(Tr,Ls,Al(bt(),t,n,i,o,l),!0)}function Dg(t,n,i){fs(Ml(bt(),t,n,i))}function rp(t,n,i){const o=bt();return Qr(o,fo(),n)&&Io(fn(),dt(),o,t,n,o[11],i,!0),rp}const Ja=void 0;var v1=["en",[["a","p"],["AM","PM"],Ja],[["AM","PM"],Ja,Ja],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ja,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ja,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ja,"{1} 'at' {0}",Ja],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function m1(t){const i=Math.floor(Math.abs(t)),o=t.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===o?1:5}];let Ll={};function y1(t,n,i){"string"!=typeof n&&(i=n,n=t[cn.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),Ll[n]=t,i&&(Ll[n][cn.ExtraData]=i)}function op(t){const n=function C1(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=kg(n);if(i)return i;const o=n.split("-")[0];if(i=kg(o),i)return i;if("en"===o)return v1;throw new G(701,!1)}function Lg(t){return op(t)[cn.PluralCase]}function kg(t){return t in Ll||(Ll[t]=Pe.ng&&Pe.ng.common&&Pe.ng.common.locales&&Pe.ng.common.locales[t]),Ll[t]}var cn=(()=>((cn=cn||{})[cn.LocaleId=0]="LocaleId",cn[cn.DayPeriodsFormat=1]="DayPeriodsFormat",cn[cn.DayPeriodsStandalone=2]="DayPeriodsStandalone",cn[cn.DaysFormat=3]="DaysFormat",cn[cn.DaysStandalone=4]="DaysStandalone",cn[cn.MonthsFormat=5]="MonthsFormat",cn[cn.MonthsStandalone=6]="MonthsStandalone",cn[cn.Eras=7]="Eras",cn[cn.FirstDayOfWeek=8]="FirstDayOfWeek",cn[cn.WeekendRange=9]="WeekendRange",cn[cn.DateFormat=10]="DateFormat",cn[cn.TimeFormat=11]="TimeFormat",cn[cn.DateTimeFormat=12]="DateTimeFormat",cn[cn.NumberSymbols=13]="NumberSymbols",cn[cn.NumberFormats=14]="NumberFormats",cn[cn.CurrencyCode=15]="CurrencyCode",cn[cn.CurrencySymbol=16]="CurrencySymbol",cn[cn.CurrencyName=17]="CurrencyName",cn[cn.Currencies=18]="Currencies",cn[cn.Directionality=19]="Directionality",cn[cn.PluralCase=20]="PluralCase",cn[cn.ExtraData=21]="ExtraData",cn))();const b1=["zero","one","two","few","many"],kl="en-US",nd={marker:"element"},id={marker:"ICU"};var Ki=(()=>((Ki=Ki||{})[Ki.SHIFT=2]="SHIFT",Ki[Ki.APPEND_EAGERLY=1]="APPEND_EAGERLY",Ki[Ki.COMMENT=2]="COMMENT",Ki))();let Fg=kl;function $g(t){(function Tt(t,n){null==t&&pt(n,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(Fg=t.toLowerCase().replace(/_/g,"-"))}function Bg(t,n,i){const o=n.insertBeforeIndex,l=Array.isArray(o)?o[0]:o;return null===l?Fu(t,0,i):Kn(i[l])}function Hg(t,n,i,o,l){const u=n.insertBeforeIndex;if(Array.isArray(u)){let f=o,v=null;if(3&n.type||(v=f,f=l),null!==f&&0==(2&n.flags))for(let T=1;T<u.length;T++)ds(t,f,i[u[T]],v,!1)}}function Ug(t,n){if(t.push(n),t.length>1)for(let i=t.length-2;i>=0;i--){const o=t[i];Vg(o)||T1(o,n)&&null===M1(o)&&A1(o,n.index)}}function Vg(t){return!(64&t.type)}function T1(t,n){return Vg(n)||t.index>n.index}function M1(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function A1(t,n){const i=t.insertBeforeIndex;Array.isArray(i)?i[0]=n:(Sc(Bg,Hg),t.insertBeforeIndex=n)}function Pc(t,n){const i=t.data[n];return null===i||"string"==typeof i?null:i.hasOwnProperty("currentCaseLViewIndex")?i:i.value}function N1(t,n,i){const o=Oh(t,i,64,null,null);return Ug(n,o),o}function rd(t,n){const i=n[t.currentCaseLViewIndex];return null===i?i:i<0?~i:i}function jg(t){return t>>>17}function zg(t){return(131070&t)>>>1}let xc=0,Rc=0;function Zg(t,n,i,o){const l=i[11];let f,u=null;for(let v=0;v<n.length;v++){const T=n[v];if("string"==typeof T){const W=n[++v];null===i[W]&&(i[W]=yr(l,T))}else if("number"==typeof T)switch(1&T){case 0:const W=jg(T);let le,Ce;if(null===u&&(u=W,f=Ga(l,o)),W===u?(le=o,Ce=f):(le=null,Ce=Kn(i[W])),null!==Ce){const Lt=zg(T);ds(l,Ce,i[Lt],le,!1);const Jt=Pc(t,Lt);if(null!==Jt&&"object"==typeof Jt){const on=rd(Jt,i);null!==on&&Zg(t,Jt.create[on],i,i[Jt.anchorIdx])}}break;case 1:const et=n[++v],Ct=n[++v];xh(l,ki(T>>>1,i),null,null,et,Ct,null)}else switch(T){case id:const W=n[++v],le=n[++v];null===i[le]&&Br(i[le]=Ks(l,W),i);break;case nd:const Ce=n[++v],je=n[++v];null===i[je]&&Br(i[je]=Hr(l,Ce,null),i)}}}function Kg(t,n,i,o,l){for(let u=0;u<i.length;u++){const f=i[u],v=i[++u];if(f&l){let T="";for(let W=u+1;W<=u+v;W++){const le=i[W];if("string"==typeof le)T+=le;else if("number"==typeof le)if(le<0)T+=ee(n[o-le]);else{const Ce=le>>>2;switch(3&le){case 1:const je=i[++W],et=i[++W],Ct=t.data[Ce];"string"==typeof Ct?xh(n[11],n[Ce],null,Ct,je,T,et):Io(t,Ct,n,je,T,n[11],et,!1);break;case 0:const Lt=n[Ce];null!==Lt&&Ns(n[11],Lt,T);break;case 2:L1(t,Pc(t,Ce),n,T);break;case 3:Yg(t,Pc(t,Ce),o,n)}}}}else{const T=i[u+1];if(T>0&&3==(3&T)){const le=Pc(t,T>>>2);n[le.currentCaseLViewIndex]<0&&Yg(t,le,o,n)}}u+=v}}function Yg(t,n,i,o){let l=o[n.currentCaseLViewIndex];if(null!==l){let u=xc;l<0&&(l=o[n.currentCaseLViewIndex]=~l,u=-1),Kg(t,o,n.update[l],i,u)}}function L1(t,n,i,o){const l=function k1(t,n){let i=t.cases.indexOf(n);if(-1===i)switch(t.type){case 1:{const o=function S1(t,n){const i=Lg(n)(parseInt(t,10)),o=b1[i];return void 0!==o?o:"other"}(n,function D1(){return Fg}());i=t.cases.indexOf(o),-1===i&&"other"!==o&&(i=t.cases.indexOf("other"));break}case 0:i=t.cases.indexOf("other")}return-1===i?null:i}(n,o);if(rd(n,i)!==l&&(Wg(t,n,i),i[n.currentCaseLViewIndex]=null===l?null:~l,null!==l)){const f=i[n.anchorIdx];f&&Zg(t,n.create[l],i,f)}}function Wg(t,n,i){let o=rd(n,i);if(null!==o){const l=n.remove[o];for(let u=0;u<l.length;u++){const f=l[u];if(f>0){const v=ki(f,i);null!==v&&Dc(i[11],v)}else Wg(t,Pc(t,~f),i)}}}function F1(){const t=[];let i,o,n=-1;function u(v,T){n=0;const W=rd(v,T);o=null!==W?v.remove[W]:ct}function f(){if(n<o.length){const v=o[n++];return v>0?i[v]:(t.push(n,o),u(i[1].data[~v],i),f())}return 0===t.length?null:(o=t.pop(),n=t.pop(),f())}return function l(v,T){for(i=T;t.length;)t.pop();return u(v.value,T),f}}const od=/\ufffd(\d+):?\d*\ufffd/gi,$1=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,B1=/\ufffd(\d+)\ufffd/,Qg=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,H1=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,U1=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,V1=/\uE500/g;function qg(t,n,i,o,l,u,f){const v=Dl(t,o,1,null);let T=v<<Ki.SHIFT,W=I();n===W&&(W=null),null===W&&(T|=Ki.APPEND_EAGERLY),f&&(T|=Ki.COMMENT,function xn(t){void 0===pn&&(pn=t())}(F1)),l.push(T,null===u?"":u);const le=Oh(t,v,f?32:1,null===u?"":u,null);Ug(i,le);const Ce=le.index;return D(le,!1),null!==W&&n!==W&&function w1(t,n){let i=t.insertBeforeIndex;null===i?(Sc(Bg,Hg),i=t.insertBeforeIndex=[null,n]):(function lt(t,n,i){t!=n&&pt(i,t,n,"==")}(Array.isArray(i),!0,"Expecting array here"),i.push(n))}(W,Ce),le}function G1(t,n,i,o,l,u,f){const v=f.match(od),T=qg(t,n,i,u,o,v?null:f,!1);v&&Fl(l,f,T.index,null,0,null)}function Fl(t,n,i,o,l,u){const f=t.length,v=f+1;t.push(null,null);const T=f+2,W=n.split(od);let le=0;for(let Ce=0;Ce<W.length;Ce++){const je=W[Ce];if(1&Ce){const et=l+parseInt(je,10);t.push(-1-et),le|=Xg(et)}else""!==je&&t.push(je)}return t.push(i<<2|(o?1:0)),o&&t.push(o,u),t[f]=le,t[v]=t.length-T,le}function K1(t){let n=0;for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o&&o<0&&n++}return n}function Xg(t){return 1<<Math.min(t,31)}function em(t){let n,u,i="",o=0,l=!1;for(;null!==(n=H1.exec(t));)l?n[0]===`\ufffd/*${u}\ufffd`&&(o=n.index,l=!1):(i+=t.substring(o,n.index+n[0].length),u=n[1],l=!0);return i+=t.slice(o),i}function tm(t,n,i,o,l,u){let f=0;const v={type:l.type,currentCaseLViewIndex:Dl(t,n,1,null),anchorIdx:u,cases:[],create:[],remove:[],update:[]};(function X1(t,n,i){t.push(Xg(n.mainBinding),2,-1-n.mainBinding,i<<2|2)})(i,l,u),function O1(t,n,i){const o=t.data[n];null===o?t.data[n]=i:o.value=i}(t,u,v);const T=l.values;for(let W=0;W<T.length;W++){const le=T[W],Ce=[];for(let je=0;je<le.length;je++){const et=le[je];if("string"!=typeof et){const Ct=Ce.push(et)-1;le[je]=`\x3c!--\ufffd${Ct}\ufffd--\x3e`}}f=Q1(t,v,n,i,o,l.cases[W],le.join(""),Ce)|f}f&&function eC(t,n,i){t.push(n,1,i<<2|3)}(i,f,u)}function J1(t){const n=[],i=[];let o=1,l=0;const u=sp(t=t.replace(Qg,function(f,v,T){return o="select"===T?0:1,l=parseInt(v.slice(1),10),""}));for(let f=0;f<u.length;){let v=u[f++].trim();1===o&&(v=v.replace(/\s*(?:=)?(\w+)\s*/,"$1")),v.length&&n.push(v);const T=sp(u[f++]);n.length>i.length&&i.push(T)}return{type:o,mainBinding:l,cases:n,values:i}}function sp(t){if(!t)return[];let n=0;const i=[],o=[],l=/[{}]/g;let u;for(l.lastIndex=0;u=l.exec(t);){const v=u.index;if("}"==u[0]){if(i.pop(),0==i.length){const T=t.substring(n,v);Qg.test(T)?o.push(J1(T)):o.push(T),n=v+1}}else{if(0==i.length){const T=t.substring(n,v);o.push(T),n=v+1}i.push("{")}}const f=t.substring(n);return o.push(f),o}function Q1(t,n,i,o,l,u,f,v){const T=[],W=[],le=[];n.cases.push(u),n.create.push(T),n.remove.push(W),n.update.push(le);const je=rl(Ad()).getInertBodyElement(f),et=eu(je)||je;return et?nm(t,n,i,o,T,W,le,et,l,v,0):0}function nm(t,n,i,o,l,u,f,v,T,W,le){let Ce=0,je=v.firstChild;for(;je;){const et=Dl(t,i,1,null);switch(je.nodeType){case Node.ELEMENT_NODE:const Ct=je,Lt=Ct.tagName.toLowerCase();if(ha.hasOwnProperty(Lt)){ap(l,nd,Lt,T,et),t.data[et]=Lt;const Ot=Ct.attributes;for(let un=0;un<Ot.length;un++){const vn=Ot.item(un),pi=vn.name.toLowerCase();vn.value.match(od)?Ld.hasOwnProperty(pi)&&Fl(f,vn.value,et,vn.name,0,sl[pi]?as:pa[pi]?$a:null):tC(l,et,vn)}Ce=nm(t,n,i,o,l,u,f,je,et,W,le+1)|Ce,im(u,et,le)}break;case Node.TEXT_NODE:const Bt=je.textContent||"",Jt=Bt.match(od);ap(l,null,Jt?"":Bt,T,et),im(u,et,le),Jt&&(Ce=Fl(f,Bt,et,null,0,null)|Ce);break;case Node.COMMENT_NODE:const on=B1.exec(je.textContent||"");if(on){const un=W[parseInt(on[1],10)];ap(l,id,"",T,et),tm(t,i,o,T,un,et),q1(u,et,le)}}je=je.nextSibling}return Ce}function im(t,n,i){0===i&&t.push(n)}function q1(t,n,i){0===i&&(t.push(~n),t.push(n))}function ap(t,n,i,o,l){null!==n&&t.push(n),t.push(i,l,function I1(t,n,i){return t|n<<17|i<<1}(0,o,l))}function tC(t,n,i){t.push(n<<1|1,i.name,i.value)}const nC=/\[(\ufffd.+?\ufffd?)\]/,iC=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,rC=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,oC=/{([A-Z0-9_]+)}/g,sC=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,aC=/\/\*/,lC=/\d+\:(\d+)/;function lp(t,n,i=-1){const o=fn(),l=bt(),u=22+t,f=pr(o.consts,n),v=I();o.firstCreatePass&&function z1(t,n,i,o,l,u){const f=I(),v=[],T=[],W=[[]];l=function W1(t,n){if(function Y1(t){return-1===t}(n))return em(t);{const i=t.indexOf(`:${n}\ufffd`)+2+n.toString().length,o=t.search(new RegExp(`\ufffd\\/\\*\\d+:${n}\ufffd`));return em(t.substring(i,o))}}(l,u);const le=function j1(t){return t.replace(V1," ")}(l).split(U1);for(let Ce=0;Ce<le.length;Ce++){let je=le[Ce];if(0==(1&Ce)){const et=sp(je);for(let Ct=0;Ct<et.length;Ct++){let Lt=et[Ct];if(0==(1&Ct)){const Bt=Lt;""!==Bt&&G1(t,f,W[0],v,T,i,Bt)}else{const Bt=Lt;if("object"!=typeof Bt)throw new Error(`Unable to parse ICU expression in "${l}" message.`);tm(t,i,T,n,Bt,qg(t,f,W[0],i,v,"",!0).index)}}}else{const et=47===je.charCodeAt(0),Lt=(je.charCodeAt(et?1:0),22+Number.parseInt(je.substring(et?2:1)));if(et)W.shift(),D(I(),!1);else{const Bt=N1(t,W[0],Lt);W.unshift([]),D(Bt,!0)}}}t.data[o]={create:v,update:T}}(o,null===v?0:v.index,l,u,f,i);const T=o.data[u],le=xu(o,v===l[6]?null:v,l);(function R1(t,n,i,o){const l=t[11];for(let u=0;u<n.length;u++){const f=n[u++],v=n[u],T=(f&Ki.COMMENT)===Ki.COMMENT,W=(f&Ki.APPEND_EAGERLY)===Ki.APPEND_EAGERLY,le=f>>>Ki.SHIFT;let Ce=t[le];null===Ce&&(Ce=t[le]=T?l.createComment(v):yr(l,v)),W&&null!==i&&ds(l,i,Ce,o,!1)}})(l,T.create,le,v&&8&v.type?l[v.index]:null),ko(!0)}function cp(){ko(!1)}function om(t,n,i){lp(t,n,i),cp()}function sm(t,n){const i=fn();!function Z1(t,n,i){const l=ci().index,u=[];if(t.firstCreatePass&&null===t.data[n]){for(let f=0;f<i.length;f+=2){const v=i[f],T=i[f+1];if(""!==T){if($1.test(T))throw new Error(`ICU expressions are not supported in attributes. Message: "${T}".`);Fl(u,T,l,v,K1(u),null)}}t.data[n]=u}}(i,t+22,pr(i.consts,n))}function up(t){return function P1(t){t&&(xc|=1<<Math.min(Rc,31)),Rc++}(Qr(bt(),fo(),t)),up}function am(t){!function x1(t,n,i){if(Rc>0){const o=t.data[i];Kg(t,n,Array.isArray(o)?o:o.update,_r()-Rc-1,xc)}xc=0,Rc=0}(fn(),bt(),t+22)}function lm(t,n={}){return function cC(t,n={}){let i=t;if(nC.test(t)){const o={},l=[0];i=i.replace(iC,(u,f,v)=>{const T=f||v,W=o[T]||[];if(W.length||(T.split("|").forEach(Lt=>{const Bt=Lt.match(lC),Jt=Bt?parseInt(Bt[1],10):0,on=aC.test(Lt);W.push([Jt,on,Lt])}),o[T]=W),!W.length)throw new Error(`i18n postprocess: unmatched placeholder - ${T}`);const le=l[l.length-1];let Ce=0;for(let Lt=0;Lt<W.length;Lt++)if(W[Lt][0]===le){Ce=Lt;break}const[je,et,Ct]=W[Ce];return et?l.pop():le!==je&&l.push(je),W.splice(Ce,1),Ct})}return Object.keys(n).length&&(i=i.replace(rC,(o,l,u,f,v,T)=>n.hasOwnProperty(u)?`${l}${n[u]}${T}`:o),i=i.replace(oC,(o,l)=>n.hasOwnProperty(l)?n[l]:o),i=i.replace(sC,(o,l)=>{if(n.hasOwnProperty(l)){const u=n[l];if(!u.length)throw new Error(`i18n postprocess: unmatched ICU - ${o} with key: ${l}`);return u.shift()}return o})),i}(t,n)}function dp(t,n,i,o,l){if(t=C(t),Array.isArray(t))for(let u=0;u<t.length;u++)dp(t[u],n,i,o,l);else{const u=fn(),f=bt();let v=ws(t)?t:C(t.provide),T=zd(t);const W=ci(),le=1048575&W.providerIndexes,Ce=W.directiveStart,je=W.providerIndexes>>20;if(ws(t)||!t.multi){const et=new $e(T,l,Sl),Ct=pp(v,n,l?le:le+je,Ce);-1===Ct?(nr(ur(W,f),u,v),hp(u,t,n.length),n.push(v),W.directiveStart++,W.directiveEnd++,l&&(W.providerIndexes+=1048576),i.push(et),f.push(et)):(i[Ct]=et,f[Ct]=et)}else{const et=pp(v,n,le+je,Ce),Ct=pp(v,n,le,le+je),Lt=et>=0&&i[et],Bt=Ct>=0&&i[Ct];if(l&&!Bt||!l&&!Lt){nr(ur(W,f),u,v);const Jt=function pC(t,n,i,o,l){const u=new $e(t,i,Sl);return u.multi=[],u.index=n,u.componentProviders=0,cm(u,l,o&&!i),u}(l?hC:dC,i.length,l,o,T);!l&&Bt&&(i[Ct].providerFactory=Jt),hp(u,t,n.length,0),n.push(v),W.directiveStart++,W.directiveEnd++,l&&(W.providerIndexes+=1048576),i.push(Jt),f.push(Jt)}else hp(u,t,et>-1?et:Ct,cm(i[l?Ct:et],T,!l&&o));!l&&o&&Bt&&i[Ct].componentProviders++}}}function hp(t,n,i,o){const l=ws(n),u=function jd(t){return!!t.useClass}(n);if(l||u){const T=(u?C(n.useClass):n).prototype.ngOnDestroy;if(T){const W=t.destroyHooks||(t.destroyHooks=[]);if(!l&&n.multi){const le=W.indexOf(i);-1===le?W.push(i,[o,T]):W[le+1].push(o,T)}else W.push(i,T)}}}function cm(t,n,i){return i&&t.componentProviders++,t.multi.push(n)-1}function pp(t,n,i,o){for(let l=i;l<o;l++)if(n[l]===t)return l;return-1}function dC(t,n,i,o){return fp(this.multi,[])}function hC(t,n,i,o){const l=this.multi;let u;if(this.providerFactory){const f=this.providerFactory.componentProviders,v=Ho(i,i[1],this.providerFactory.index,o);u=v.slice(0,f),fp(l,u);for(let T=f;T<v.length;T++)u.push(v[T])}else u=[],fp(l,u);return u}function fp(t,n){for(let i=0;i<t.length;i++)n.push((0,t[i])());return n}function um(t,n=[]){return i=>{i.providersResolver=(o,l)=>function uC(t,n,i){const o=fn();if(o.firstCreatePass){const l=Di(t);dp(i,o.data,o.blueprint,l,!0),dp(n,o.data,o.blueprint,l,!1)}}(o,l?l(t):t,n)}}class $l{}class dm{}function fC(t,n){return new hm(t,n??null)}class hm extends $l{constructor(n,i){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Bh(this);const o=mt(n);this._bootstrapComponents=Ue(o.bootstrap),this._r3Injector=Vf(n,i,[{provide:$l,useValue:this},{provide:Ua,useValue:this.componentFactoryResolver}],z(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class _p extends dm{constructor(n){super(),this.moduleType=n}create(n){return new hm(this.moduleType,n)}}class _C extends $l{constructor(n,i,o){super(),this.componentFactoryResolver=new Bh(this),this.instance=null;const l=new au([...n,{provide:$l,useValue:this},{provide:Ua,useValue:this.componentFactoryResolver}],i||Gs(),o,new Set(["environment"]));this.injector=l,l.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function gp(t,n,i=null){return new _C(t,n,i).injector}let gC=(()=>{class t{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i.id)){const o=cl(0,i.type),l=o.length>0?gp([o],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i.id,l)}return this.cachedInjectors.get(i.id)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Et({token:t,providedIn:"environment",factory:()=>new t(Pi(cs))}),t})();function pm(t){t.getStandaloneInjector=n=>n.get(gC).getOrCreateStandaloneInjector(t)}function Cm(t,n,i){const o=Un()+t,l=bt();return l[o]===mn?Rs(l,o,i?n.call(i):n()):Nc(l,o)}function bm(t,n,i,o){return Mm(bt(),Un(),t,n,i,o)}function Sm(t,n,i,o,l){return Am(bt(),Un(),t,n,i,o,l)}function Em(t,n,i,o,l,u){return Om(bt(),Un(),t,n,i,o,l,u)}function Dm(t,n,i,o,l,u,f){return wm(bt(),Un(),t,n,i,o,l,u,f)}function Tm(t,n,i,o,l,u,f,v,T){const W=Un()+t,le=bt(),Ce=Vo(le,W,i,o,l,u);return Wa(le,W+4,f,v)||Ce?Rs(le,W+6,T?n.call(T,i,o,l,u,f,v):n(i,o,l,u,f,v)):Nc(le,W+6)}function kc(t,n){const i=t[n];return i===mn?void 0:i}function Mm(t,n,i,o,l,u){const f=n+i;return Qr(t,f,l)?Rs(t,f+1,u?o.call(u,l):o(l)):kc(t,f+1)}function Am(t,n,i,o,l,u,f){const v=n+i;return Wa(t,v,l,u)?Rs(t,v+2,f?o.call(f,l,u):o(l,u)):kc(t,v+2)}function Om(t,n,i,o,l,u,f,v){const T=n+i;return Yu(t,T,l,u,f)?Rs(t,T+3,v?o.call(v,l,u,f):o(l,u,f)):kc(t,T+3)}function wm(t,n,i,o,l,u,f,v,T){const W=n+i;return Vo(t,W,l,u,f,v)?Rs(t,W+4,T?o.call(T,l,u,f,v):o(l,u,f,v)):kc(t,W+4)}function Im(t,n){const i=fn();let o;const l=t+22;i.firstCreatePass?(o=function wC(t,n){if(n)for(let i=n.length-1;i>=0;i--){const o=n[i];if(t===o.name)return o}}(n,i.pipeRegistry),i.data[l]=o,o.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(l,o.onDestroy)):o=i.data[l];const u=o.factory||(o.factory=ai(o.type)),f=Y(Sl);try{const v=Fi(!1),T=u();return Fi(v),function R0(t,n,i,o){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),n[i]=o}(i,bt(),l,T),T}finally{Y(f)}}function Pm(t,n,i){const o=t+22,l=bt(),u=Rr(l,o);return Fc(l,o)?Mm(l,Un(),n,u.transform,i,u):u.transform(i)}function xm(t,n,i,o){const l=t+22,u=bt(),f=Rr(u,l);return Fc(u,l)?Am(u,Un(),n,f.transform,i,o,f):f.transform(i,o)}function Rm(t,n,i,o,l){const u=t+22,f=bt(),v=Rr(f,u);return Fc(f,u)?Om(f,Un(),n,v.transform,i,o,l,v):v.transform(i,o,l)}function Lm(t,n,i,o,l,u){const f=t+22,v=bt(),T=Rr(v,f);return Fc(v,f)?wm(v,Un(),n,T.transform,i,o,l,u,T):T.transform(i,o,l,u)}function Fc(t,n){return t[1].data[n].pure}function vp(t){return n=>{setTimeout(t,void 0,n)}}const ks=class IC extends e.xQ{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,i,o){let l=n,u=i||(()=>null),f=o;if(n&&"object"==typeof n){var v,T,W;const Ce=n;l=null===(v=Ce.next)||void 0===v?void 0:v.bind(Ce),u=null===(T=Ce.error)||void 0===T?void 0:T.bind(Ce),f=null===(W=Ce.complete)||void 0===W?void 0:W.bind(Ce)}this.__isAsync&&(u=vp(u),l&&(l=vp(l)),f&&(f=vp(f)));const le=super.subscribe({next:l,error:u,complete:f});return n instanceof s.w&&n.add(le),le}};function PC(){return this._results[Ya()]()}class yp{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const i=Ya(),o=yp.prototype;o[i]||(o[i]=PC)}get changes(){return this._changes||(this._changes=new ks)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,i){return this._results.reduce(n,i)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,i){const o=this;o.dirty=!1;const l=ji(n);(this._changesDetected=!function Uc(t,n,i){if(t.length!==n.length)return!1;for(let o=0;o<t.length;o++){let l=t[o],u=n[o];if(i&&(l=i(l),u=i(u)),u!==l)return!1}return!0}(o._results,l,i))&&(o._results=l,o.length=l.length,o.last=l[this.length-1],o.first=l[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let $c=(()=>{class t{}return t.__NG_ELEMENT_ID__=LC,t})();const xC=$c,RC=class extends xC{constructor(n,i,o){super(),this._declarationLView=n,this._declarationTContainer=i,this.elementRef=o}createEmbeddedView(n,i){const o=this._declarationTContainer.tViews,l=Vu(this._declarationLView,o,n,16,null,o.declTNode,null,null,null,null,i||null);l[17]=this._declarationLView[this._declarationTContainer.index];const f=this._declarationLView[19];return null!==f&&(l[19]=f.createEmbeddedView(o)),ju(o,l,n),new Ac(l)}};function LC(){return sd(ci(),bt())}function sd(t,n){return 4&t.type?new RC(n,t,ga(t,n)):null}let ad=(()=>{class t{}return t.__NG_ELEMENT_ID__=kC,t})();function kC(){return $m(ci(),bt())}const FC=ad,km=class extends FC{constructor(n,i,o){super(),this._lContainer=n,this._hostTNode=i,this._hostLView=o}get element(){return ga(this._hostTNode,this._hostLView)}get injector(){return new Ss(this._hostTNode,this._hostLView)}get parentInjector(){const n=Yn(this._hostTNode,this._hostLView);if(vi(n)){const i=yi(n,this._hostLView),o=Gn(n);return new Ss(i[1].data[o+8],i)}return new Ss(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const i=Fm(this._lContainer);return null!==i&&i[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,i,o){let l,u;"number"==typeof o?l=o:null!=o&&(l=o.index,u=o.injector);const f=n.createEmbeddedView(i||{},u);return this.insert(f,l),f}createComponent(n,i,o,l,u){const f=n&&!function Ds(t){return"function"==typeof t}(n);let v;if(f)v=i;else{const Ce=i||{};v=Ce.index,o=Ce.injector,l=Ce.projectableNodes,u=Ce.environmentInjector||Ce.ngModuleRef}const T=f?n:new Oc(nn(n)),W=o||this.parentInjector;if(!u&&null==T.ngModule){const je=(f?W:this.parentInjector).get(cs,null);je&&(u=je)}const le=T.create(W,l,void 0,u);return this.insert(le.hostView,v),le}insert(n,i){const o=n._lView,l=o[1];if(function po(t){return Ei(t[3])}(o)){const le=this.indexOf(n);if(-1!==le)this.detach(le);else{const Ce=o[3],je=new km(Ce,Ce[6],Ce[3]);je.detach(je.indexOf(n))}}const u=this._adjustIndex(i),f=this._lContainer;!function Cc(t,n,i,o){const l=10+o,u=i.length;o>0&&(i[l-1][4]=n),o<u-10?(n[4]=i[l],Ao(i,10+o,n)):(i.push(n),n[4]=null),n[3]=i;const f=n[17];null!==f&&i!==f&&function ja(t,n){const i=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===i?t[9]=[n]:i.push(n)}(f,n);const v=n[19];null!==v&&v.insertView(t),n[2]|=64}(l,o,f,u);const v=yl(u,f),T=o[11],W=Ga(T,f[7]);return null!==W&&function _l(t,n,i,o,l,u){o[0]=l,o[6]=n,Tc(t,o,i,1,l,u)}(l,f[6],T,o,W,v),n.attachToViewContainerRef(),Ao(Cp(f),u,n),n}move(n,i){return this.insert(n,i)}indexOf(n){const i=Fm(this._lContainer);return null!==i?i.indexOf(n):-1}remove(n){const i=this._adjustIndex(n,-1),o=Is(this._lContainer,i);o&&(Oa(Cp(this._lContainer),i),us(o[1],o))}detach(n){const i=this._adjustIndex(n,-1),o=Is(this._lContainer,i);return o&&null!=Oa(Cp(this._lContainer),i)?new Ac(o):null}_adjustIndex(n,i=0){return n??this.length+i}};function Fm(t){return t[8]}function Cp(t){return t[8]||(t[8]=[])}function $m(t,n){let i;const o=n[t.index];if(Ei(o))i=o;else{let l;if(8&t.type)l=Kn(o);else{const u=n[11];l=u.createComment("");const f=ni(t,n);ds(u,Ga(u,f),l,function Lu(t,n){return t.nextSibling(n)}(u,f),!1)}n[t.index]=i=y_(o,n,l,t),zu(n,i)}return new km(i,t,n)}class bp{constructor(n){this.queryList=n,this.matches=null}clone(){return new bp(this.queryList)}setDirty(){this.queryList.setDirty()}}class Sp{constructor(n=[]){this.queries=n}createEmbeddedView(n){const i=n.queries;if(null!==i){const o=null!==n.contentQueries?n.contentQueries[0]:i.length,l=[];for(let u=0;u<o;u++){const f=i.getByIndex(u);l.push(this.queries[f.indexInDeclarationView].clone())}return new Sp(l)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let i=0;i<this.queries.length;i++)null!==Km(n,i).matches&&this.queries[i].setDirty()}}class Bm{constructor(n,i,o=null){this.predicate=n,this.flags=i,this.read=o}}class Ep{constructor(n=[]){this.queries=n}elementStart(n,i){for(let o=0;o<this.queries.length;o++)this.queries[o].elementStart(n,i)}elementEnd(n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(n)}embeddedTView(n){let i=null;for(let o=0;o<this.length;o++){const l=null!==i?i.length:0,u=this.getByIndex(o).embeddedTView(n,l);u&&(u.indexInDeclarationView=o,null!==i?i.push(u):i=[u])}return null!==i?new Ep(i):null}template(n,i){for(let o=0;o<this.queries.length;o++)this.queries[o].template(n,i)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class Dp{constructor(n,i=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(n,i){this.isApplyingToNode(i)&&this.matchTNode(n,i)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,i){this.elementStart(n,i)}embeddedTView(n,i){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,i),new Dp(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const i=this._declarationNodeIndex;let o=n.parent;for(;null!==o&&8&o.type&&o.index!==i;)o=o.parent;return i===(null!==o?o.index:-1)}return this._appliesToNextNode}matchTNode(n,i){const o=this.metadata.predicate;if(Array.isArray(o))for(let l=0;l<o.length;l++){const u=o[l];this.matchTNodeWithReadOption(n,i,HC(i,u)),this.matchTNodeWithReadOption(n,i,To(i,n,u,!1,!1))}else o===$c?4&i.type&&this.matchTNodeWithReadOption(n,i,-1):this.matchTNodeWithReadOption(n,i,To(i,n,o,!1,!1))}matchTNodeWithReadOption(n,i,o){if(null!==o){const l=this.metadata.read;if(null!==l)if(l===Va||l===ad||l===$c&&4&i.type)this.addMatch(i.index,-2);else{const u=To(i,n,l,!1,!1);null!==u&&this.addMatch(i.index,u)}else this.addMatch(i.index,o)}}addMatch(n,i){null===this.matches?this.matches=[n,i]:this.matches.push(n,i)}}function HC(t,n){const i=t.localNames;if(null!==i)for(let o=0;o<i.length;o+=2)if(i[o]===n)return i[o+1];return null}function VC(t,n,i,o){return-1===i?function UC(t,n){return 11&t.type?ga(t,n):4&t.type?sd(t,n):null}(n,t):-2===i?function jC(t,n,i){return i===Va?ga(n,t):i===$c?sd(n,t):i===ad?$m(n,t):void 0}(t,n,o):Ho(t,t[1],i,n)}function Hm(t,n,i,o){const l=n[19].queries[o];if(null===l.matches){const u=t.data,f=i.matches,v=[];for(let T=0;T<f.length;T+=2){const W=f[T];v.push(W<0?null:VC(n,u[W],f[T+1],i.metadata.read))}l.matches=v}return l.matches}function Tp(t,n,i,o){const l=t.queries.getByIndex(i),u=l.matches;if(null!==u){const f=Hm(t,n,l,i);for(let v=0;v<u.length;v+=2){const T=u[v];if(T>0)o.push(f[v/2]);else{const W=u[v+1],le=n[-T];for(let Ce=10;Ce<le.length;Ce++){const je=le[Ce];je[17]===je[3]&&Tp(je[1],je,W,o)}if(null!==le[9]){const Ce=le[9];for(let je=0;je<Ce.length;je++){const et=Ce[je];Tp(et[1],et,W,o)}}}}}return o}function Um(t){const n=bt(),i=fn(),o=Fs();Fo(o+1);const l=Km(i,o);if(t.dirty&&Co(n)===(2==(2&l.metadata.flags))){if(null===l.matches)t.reset([]);else{const u=l.crossesNgTemplate?Tp(i,n,o,[]):Hm(i,n,l,o);t.reset(u,_u),t.notifyOnChanges()}return!0}return!1}function Vm(t,n,i){const o=fn();o.firstCreatePass&&(Zm(o,new Bm(t,n,i),-1),2==(2&n)&&(o.staticViewQueries=!0)),Gm(o,bt(),n)}function jm(t,n,i,o){const l=fn();if(l.firstCreatePass){const u=ci();Zm(l,new Bm(n,i,o),u.index),function GC(t,n){const i=t.contentQueries||(t.contentQueries=[]);n!==(i.length?i[i.length-1]:-1)&&i.push(t.queries.length-1,n)}(l,t),2==(2&i)&&(l.staticContentQueries=!0)}Gm(l,bt(),i)}function zm(){return function zC(t,n){return t[19].queries[n].queryList}(bt(),Fs())}function Gm(t,n,i){const o=new yp(4==(4&i));u_(t,n,o,o.destroy),null===n[19]&&(n[19]=new Sp),n[19].queries.push(new bp(o))}function Zm(t,n,i){null===t.queries&&(t.queries=new Ep),t.queries.track(new Dp(n,i))}function Km(t,n){return t.queries.getByIndex(n)}function Ym(t,n){return sd(t,n)}function cd(...t){}const pv=new Vn("Application Initializer");let ud=(()=>{class t{constructor(i){this.appInits=i,this.resolve=cd,this.reject=cd,this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,l)=>{this.resolve=o,this.reject=l})}runInitializers(){if(this.initialized)return;const i=[],o=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let l=0;l<this.appInits.length;l++){const u=this.appInits[l]();if(Yh(u))i.push(u);else if(H_(u)){const f=new Promise((v,T)=>{u.subscribe({complete:v,error:T})});i.push(f)}}Promise.all(i).then(()=>{o()}).catch(l=>{this.reject(l)}),0===i.length&&o(),this.initialized=!0}}return t.\u0275fac=function(i){return new(i||t)(Pi(pv,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fv=new Vn("AppId",{providedIn:"root",factory:function _v(){return`${Np()}${Np()}${Np()}`}});function Np(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const gv=new Vn("Platform Initializer"),db=new Vn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),mv=new Vn("appBootstrapListener");let hb=(()=>{class t{log(i){console.log(i)}warn(i){console.warn(i)}}return t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const dd=new Vn("LocaleId",{providedIn:"root",factory:()=>jc(dd,Ke.Optional|Ke.SkipSelf)||function pb(){return typeof $localize<"u"&&$localize.locale||kl}()}),fb=new Vn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class _b{constructor(n,i){this.ngModuleFactory=n,this.componentFactories=i}}let gb=(()=>{class t{compileModuleSync(i){return new _p(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const o=this.compileModuleSync(i),u=Ue(mt(i).declarations).reduce((f,v)=>{const T=nn(v);return T&&f.push(new Oc(T)),f},[]);return new _b(o,u)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}}return t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const yb=(()=>Promise.resolve(0))();function Ip(t){typeof Zone>"u"?yb.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class jo{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ks(!1),this.onMicrotaskEmpty=new ks(!1),this.onStable=new ks(!1),this.onError=new ks(!1),typeof Zone>"u")throw new G(908,!1);Zone.assertZonePatched();const l=this;if(l._nesting=0,l._outer=l._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const u=Zone.AsyncStackTaggingZoneSpec;l._inner=l._inner.fork(new u("Angular"))}Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!o&&i,l.shouldCoalesceRunChangeDetection=o,l.lastRequestAnimationFrameId=-1,l.nativeRequestAnimationFrame=function Cb(){let t=Pe.requestAnimationFrame,n=Pe.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Eb(t){const n=()=>{!function Sb(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Pe,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,xp(t),t.isCheckStableRunning=!0,Pp(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),xp(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,o,l,u,f,v)=>{try{return Cv(t),i.invokeTask(l,u,f,v)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===u.type||t.shouldCoalesceRunChangeDetection)&&n(),bv(t)}},onInvoke:(i,o,l,u,f,v,T)=>{try{return Cv(t),i.invoke(l,u,f,v,T)}finally{t.shouldCoalesceRunChangeDetection&&n(),bv(t)}},onHasTask:(i,o,l,u)=>{i.hasTask(l,u),o===l&&("microTask"==u.change?(t._hasPendingMicrotasks=u.microTask,xp(t),Pp(t)):"macroTask"==u.change&&(t.hasPendingMacrotasks=u.macroTask))},onHandleError:(i,o,l,u)=>(i.handleError(l,u),t.runOutsideAngular(()=>t.onError.emit(u)),!1)})}(l)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jo.isInAngularZone())throw new G(909,!1)}static assertNotInAngularZone(){if(jo.isInAngularZone())throw new G(909,!1)}run(n,i,o){return this._inner.run(n,i,o)}runTask(n,i,o,l){const u=this._inner,f=u.scheduleEventTask("NgZoneEvent: "+l,n,bb,cd,cd);try{return u.runTask(f,i,o)}finally{u.cancelTask(f)}}runGuarded(n,i,o){return this._inner.runGuarded(n,i,o)}runOutsideAngular(n){return this._outer.run(n)}}const bb={};function Pp(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function xp(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Cv(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bv(t){t._nesting--,Pp(t)}class Db{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ks,this.onMicrotaskEmpty=new ks,this.onStable=new ks,this.onError=new ks}run(n,i,o){return n.apply(i,o)}runGuarded(n,i,o){return n.apply(i,o)}runOutsideAngular(n){return n()}runTask(n,i,o,l){return n.apply(i,o)}}const Sv=new Vn(""),Ev=new Vn("");let Rp,Tb=(()=>{class t{constructor(i,o,l){this._ngZone=i,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Rp||(function Mb(t){Rp=t}(l),l.addToWindow(o)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{jo.assertNotInAngularZone(),Ip(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ip(()=>{for(;0!==this._callbacks.length;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb(this._didWork)}this._didWork=!1});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(i)||(clearTimeout(o.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,o,l){let u=-1;o&&o>0&&(u=setTimeout(()=>{this._callbacks=this._callbacks.filter(f=>f.timeoutId!==u),i(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:i,timeoutId:u,updateCb:l})}whenStable(i,o,l){if(l&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(i,o,l),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,o,l){return[]}}return t.\u0275fac=function(i){return new(i||t)(Pi(jo),Pi(Dv),Pi(Ev))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),Dv=(()=>{class t{constructor(){this._applications=new Map}registerApplication(i,o){this._applications.set(i,o)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,o=!0){var l,u;return null!==(l=null===(u=Rp)||void 0===u?void 0:u.findTestabilityInTree(this,i,o))&&void 0!==l?l:null}}return t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),ba=null;const Tv=new Vn("AllowMultipleToken"),Lp=new Vn("PlatformDestroyListeners");class wb{constructor(n,i){this.name=n,this.token=i}}function Av(t,n,i=[]){const o=`Platform: ${n}`,l=new Vn(o);return(u=[])=>{let f=kp();if(!f||f.injector.get(Tv,!1)){const v=[...i,...u,{provide:l,useValue:!0}];t?t(v):function Nb(t){if(ba&&!ba.get(Tv,!1))throw new G(400,!1);ba=t;const n=t.get(wv);(function Mv(t){const n=t.get(gv,null);n&&n.forEach(i=>i())})(t)}(function Ov(t=[],n){return Ka.create({name:n,providers:[{provide:ul,useValue:"platform"},{provide:Lp,useValue:new Set([()=>ba=null])},...t]})}(v,o))}return function Pb(t){const n=kp();if(!n)throw new G(401,!1);return n}()}}function kp(){var t,n;return null!==(t=null===(n=ba)||void 0===n?void 0:n.get(wv))&&void 0!==t?t:null}let wv=(()=>{class t{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,o){const l=function Iv(t,n){let i;return i="noop"===t?new Db:("zone.js"===t?void 0:t)||new jo(n),i}(o?.ngZone,function Nv(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(o)),u=[{provide:jo,useValue:l}];return l.run(()=>{const f=Ka.create({providers:u,parent:this.injector,name:i.moduleType.name}),v=i.create(f),T=v.injector.get(pl,null);if(!T)throw new G(402,!1);return l.runOutsideAngular(()=>{const W=l.onError.subscribe({next:le=>{T.handleError(le)}});v.onDestroy(()=>{pd(this._modules,v),W.unsubscribe()})}),function Pv(t,n,i){try{const o=i();return Yh(o)?o.catch(l=>{throw n.runOutsideAngular(()=>t.handleError(l)),l}):o}catch(o){throw n.runOutsideAngular(()=>t.handleError(o)),o}}(T,l,()=>{const W=v.injector.get(ud);return W.runInitializers(),W.donePromise.then(()=>($g(v.injector.get(dd,kl)||kl),this._moduleDoBootstrap(v),v))})})}bootstrapModule(i,o=[]){const l=xv({},o);return function Ab(t,n,i){const o=new _p(i);return Promise.resolve(o)}(0,0,i).then(u=>this.bootstrapModuleFactory(u,l))}_moduleDoBootstrap(i){const o=i.injector.get(hd);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(l=>o.bootstrap(l));else{if(!i.instance.ngDoBootstrap)throw new G(403,!1);i.instance.ngDoBootstrap(o)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new G(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const i=this._injector.get(Lp,null);i&&(i.forEach(o=>o()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(i){return new(i||t)(Pi(Ka))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function xv(t,n){return Array.isArray(n)?n.reduce(xv,t):{...t,...n}}let hd=(()=>{class t{constructor(i,o,l){this._zone=i,this._injector=o,this._exceptionHandler=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new K.y(v=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{v.next(this._stable),v.complete()})}),f=new K.y(v=>{let T;this._zone.runOutsideAngular(()=>{T=this._zone.onStable.subscribe(()=>{jo.assertNotInAngularZone(),Ip(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,v.next(!0))})})});const W=this._zone.onUnstable.subscribe(()=>{jo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{v.next(!1)}))});return()=>{T.unsubscribe(),W.unsubscribe()}});this.isStable=(0,F.T)(u,f.pipe((0,Z.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,o){const l=i instanceof gc;if(!this._injector.get(ud).done)throw!l&&He(i),new G(405,false);let f;f=l?i:this._injector.get(Ua).resolveComponentFactory(i),this.componentTypes.push(f.componentType);const v=function Ob(t){return t.isBoundToModule}(f)?void 0:this._injector.get($l),W=f.create(Ka.NULL,[],o||f.selector,v),le=W.location.nativeElement,Ce=W.injector.get(Sv,null);return Ce?.registerApplication(le),W.onDestroy(()=>{this.detachView(W.hostView),pd(this.components,W),Ce?.unregisterApplication(le)}),this._loadComponent(W),W}tick(){if(this._runningTick)throw new G(101,!1);try{this._runningTick=!0;for(let i of this._views)i.detectChanges()}catch(i){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(i))}finally{this._runningTick=!1}}attachView(i){const o=i;this._views.push(o),o.attachToAppRef(this)}detachView(i){const o=i;pd(this._views,o),o.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i),this._injector.get(mv,[]).concat(this._bootstrapListeners).forEach(l=>l(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>pd(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new G(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(i){return new(i||t)(Pi(jo),Pi(cs),Pi(pl))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function pd(t,n){const i=t.indexOf(n);i>-1&&t.splice(i,1)}let Lv=!0;function Rb(){Lv=!1}let Lb=(()=>{class t{}return t.__NG_ELEMENT_ID__=kb,t})();function kb(t){return function Fb(t,n,i){if(qi(t)&&!i){const o=Dn(t.index,n);return new Ac(o,o)}return 47&t.type?new Ac(n[16],n):null}(ci(),bt(),16==(16&t))}class Hv{constructor(){}supports(n){return wc(n)}create(n){return new jb(n)}}const Vb=(t,n)=>n;class jb{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||Vb}forEachItem(n){let i;for(i=this._itHead;null!==i;i=i._next)n(i)}forEachOperation(n){let i=this._itHead,o=this._removalsHead,l=0,u=null;for(;i||o;){const f=!o||i&&i.currentIndex<Vv(o,l,u)?i:o,v=Vv(f,l,u),T=f.currentIndex;if(f===o)l--,o=o._nextRemoved;else if(i=i._next,null==f.previousIndex)l++;else{u||(u=[]);const W=v-l,le=T-l;if(W!=le){for(let je=0;je<W;je++){const et=je<u.length?u[je]:u[je]=0,Ct=et+je;le<=Ct&&Ct<W&&(u[je]=et+1)}u[f.previousIndex]=le-W}}v!==T&&n(f,v,T)}}forEachPreviousItem(n){let i;for(i=this._previousItHead;null!==i;i=i._nextPrevious)n(i)}forEachAddedItem(n){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)n(i)}forEachMovedItem(n){let i;for(i=this._movesHead;null!==i;i=i._nextMoved)n(i)}forEachRemovedItem(n){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)n(i)}forEachIdentityChange(n){let i;for(i=this._identityChangesHead;null!==i;i=i._nextIdentityChange)n(i)}diff(n){if(null==n&&(n=[]),!wc(n))throw new G(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let l,u,f,i=this._itHead,o=!1;if(Array.isArray(n)){this.length=n.length;for(let v=0;v<this.length;v++)u=n[v],f=this._trackByFn(v,u),null!==i&&Object.is(i.trackById,f)?(o&&(i=this._verifyReinsertion(i,u,f,v)),Object.is(i.item,u)||this._addIdentityChange(i,u)):(i=this._mismatch(i,u,f,v),o=!0),i=i._next}else l=0,function N0(t,n){if(Array.isArray(t))for(let i=0;i<t.length;i++)n(t[i]);else{const i=t[Ya()]();let o;for(;!(o=i.next()).done;)n(o.value)}}(n,v=>{f=this._trackByFn(l,v),null!==i&&Object.is(i.trackById,f)?(o&&(i=this._verifyReinsertion(i,v,f,l)),Object.is(i.item,v)||this._addIdentityChange(i,v)):(i=this._mismatch(i,v,f,l),o=!0),i=i._next,l++}),this.length=l;return this._truncate(i),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,i,o,l){let u;return null===n?u=this._itTail:(u=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(n.item,i)||this._addIdentityChange(n,i),this._reinsertAfter(n,u,l)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(o,l))?(Object.is(n.item,i)||this._addIdentityChange(n,i),this._moveAfter(n,u,l)):n=this._addAfter(new zb(i,o),u,l),n}_verifyReinsertion(n,i,o,l){let u=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==u?n=this._reinsertAfter(u,n._prev,l):n.currentIndex!=l&&(n.currentIndex=l,this._addToMoves(n,l)),n}_truncate(n){for(;null!==n;){const i=n._next;this._addToRemovals(this._unlink(n)),n=i}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,i,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const l=n._prevRemoved,u=n._nextRemoved;return null===l?this._removalsHead=u:l._nextRemoved=u,null===u?this._removalsTail=l:u._prevRemoved=l,this._insertAfter(n,i,o),this._addToMoves(n,o),n}_moveAfter(n,i,o){return this._unlink(n),this._insertAfter(n,i,o),this._addToMoves(n,o),n}_addAfter(n,i,o){return this._insertAfter(n,i,o),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,i,o){const l=null===i?this._itHead:i._next;return n._next=l,n._prev=i,null===l?this._itTail=n:l._prev=n,null===i?this._itHead=n:i._next=n,null===this._linkedRecords&&(this._linkedRecords=new Uv),this._linkedRecords.put(n),n.currentIndex=o,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const i=n._prev,o=n._next;return null===i?this._itHead=o:i._next=o,null===o?this._itTail=i:o._prev=i,n}_addToMoves(n,i){return n.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Uv),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,i){return n.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class zb{constructor(n,i){this.item=n,this.trackById=i,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Gb{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,i){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===i||i<=o.currentIndex)&&Object.is(o.trackById,n))return o;return null}remove(n){const i=n._prevDup,o=n._nextDup;return null===i?this._head=o:i._nextDup=o,null===o?this._tail=i:o._prevDup=i,null===this._head}}class Uv{constructor(){this.map=new Map}put(n){const i=n.trackById;let o=this.map.get(i);o||(o=new Gb,this.map.set(i,o)),o.add(n)}get(n,i){const l=this.map.get(n);return l?l.get(n,i):null}remove(n){const i=n.trackById;return this.map.get(i).remove(n)&&this.map.delete(i),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Vv(t,n,i){const o=t.previousIndex;if(null===o)return o;let l=0;return i&&o<i.length&&(l=i[o]),o+n+l}class jv{constructor(){}supports(n){return n instanceof Map||Vh(n)}create(){return new Zb}}class Zb{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let i;for(i=this._mapHead;null!==i;i=i._next)n(i)}forEachPreviousItem(n){let i;for(i=this._previousMapHead;null!==i;i=i._nextPrevious)n(i)}forEachChangedItem(n){let i;for(i=this._changesHead;null!==i;i=i._nextChanged)n(i)}forEachAddedItem(n){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)n(i)}forEachRemovedItem(n){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)n(i)}diff(n){if(n){if(!(n instanceof Map||Vh(n)))throw new G(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(n,(o,l)=>{if(i&&i.key===l)this._maybeAddToChanges(i,o),this._appendAfter=i,i=i._next;else{const u=this._getOrCreateRecordForKey(l,o);i=this._insertBeforeOrAppend(i,u)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let o=i;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,i){if(n){const o=n._prev;return i._next=n,i._prev=o,n._prev=i,o&&(o._next=i),n===this._mapHead&&(this._mapHead=i),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(n,i){if(this._records.has(n)){const l=this._records.get(n);this._maybeAddToChanges(l,i);const u=l._prev,f=l._next;return u&&(u._next=f),f&&(f._prev=u),l._next=null,l._prev=null,l}const o=new Kb(n);return this._records.set(n,o),o.currentValue=i,this._addToAdditions(o),o}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,i){Object.is(i,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=i,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,i){n instanceof Map?n.forEach(i):Object.keys(n).forEach(o=>i(n[o],o))}}class Kb{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function zv(){return new Up([new Hv])}let Up=(()=>{class t{constructor(i){this.factories=i}static create(i,o){if(null!=o){const l=o.factories.slice();i=i.concat(l)}return new t(i)}static extend(i){return{provide:t,useFactory:o=>t.create(i,o||zv()),deps:[[t,new Ia,new Ms]]}}find(i){const o=this.factories.find(l=>l.supports(i));if(null!=o)return o;throw new G(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:zv}),t})();function Gv(){return new Vp([new jv])}let Vp=(()=>{class t{constructor(i){this.factories=i}static create(i,o){if(o){const l=o.factories.slice();i=i.concat(l)}return new t(i)}static extend(i){return{provide:t,useFactory:o=>t.create(i,o||Gv()),deps:[[t,new Ia,new Ms]]}}find(i){const o=this.factories.find(l=>l.supports(i));if(o)return o;throw new G(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:Gv}),t})();const Jb=Av(null,"core",[]);let Qb=(()=>{class t{constructor(i){}}return t.\u0275fac=function(i){return new(i||t)(Pi(hd))},t.\u0275mod=wi({type:t}),t.\u0275inj=Qt({}),t})();function qb(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function eS(t,n){const i=nn(t),o=n.elementInjector||Gs();return new Oc(i).create(o,n.projectableNodes,n.hostElement,n.environmentInjector)}},24006:(Xe,me,h)=>{"use strict";h.d(me,{CE:()=>er,Cf:()=>oe,EJ:()=>sr,F:()=>Yi,Fd:()=>Kn,Fj:()=>b,JJ:()=>Ke,JL:()=>yt,JU:()=>z,K7:()=>ri,Kr:()=>ho,NI:()=>Ni,Oe:()=>li,On:()=>Xi,Q7:()=>Sr,QS:()=>oo,TO:()=>Bn,UX:()=>io,Wl:()=>E,YN:()=>dr,_:()=>mo,_Y:()=>jr,cw:()=>nn,kI:()=>te,nD:()=>pr,nJ:()=>Re,oH:()=>Yo,p4:()=>Ji,qQ:()=>to,qu:()=>fn,sg:()=>qr,u:()=>Ir,u5:()=>Jo,wV:()=>Ui,x0:()=>Nr});var e=h(94650),s=h(36895),K=h(5254),F=h(30567),Z=h(24850);let O=(()=>{class V{constructor(D,ue){this._renderer=D,this._elementRef=ue,this.onChange=it=>{},this.onTouched=()=>{}}setProperty(D,ue){this._renderer.setProperty(this._elementRef.nativeElement,D,ue)}registerOnTouched(D){this.onTouched=D}registerOnChange(D){this.onChange=D}setDisabledState(D){this.setProperty("disabled",D)}}return V.\u0275fac=function(D){return new(D||V)(e.Y36(e.Qsj),e.Y36(e.SBq))},V.\u0275dir=e.lG2({type:V}),V})(),H=(()=>{class V extends O{}return V.\u0275fac=function(){let I;return function(ue){return(I||(I=e.n5z(V)))(ue||V)}}(),V.\u0275dir=e.lG2({type:V,features:[e.qOj]}),V})();const z=new e.OlP("NgValueAccessor"),N={provide:z,useExisting:(0,e.Gpc)(()=>E),multi:!0};let E=(()=>{class V extends H{writeValue(D){this.setProperty("checked",D)}}return V.\u0275fac=function(){let I;return function(ue){return(I||(I=e.n5z(V)))(ue||V)}}(),V.\u0275dir=e.lG2({type:V,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(D,ue){1&D&&e.NdJ("change",function(Ht){return ue.onChange(Ht.target.checked)})("blur",function(){return ue.onTouched()})},features:[e._Bn([N]),e.qOj]}),V})();const y={provide:z,useExisting:(0,e.Gpc)(()=>b),multi:!0},U=new e.OlP("CompositionEventMode");let b=(()=>{class V extends O{constructor(D,ue,it){super(D,ue),this._compositionMode=it,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function C(){const V=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(V.toLowerCase())}())}writeValue(D){this.setProperty("value",D??"")}_handleInput(D){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(D)}_compositionStart(){this._composing=!0}_compositionEnd(D){this._composing=!1,this._compositionMode&&this.onChange(D)}}return V.\u0275fac=function(D){return new(D||V)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(U,8))},V.\u0275dir=e.lG2({type:V,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(D,ue){1&D&&e.NdJ("input",function(Ht){return ue._handleInput(Ht.target.value)})("blur",function(){return ue.onTouched()})("compositionstart",function(){return ue._compositionStart()})("compositionend",function(Ht){return ue._compositionEnd(Ht.target.value)})},features:[e._Bn([y]),e.qOj]}),V})();function w(V){return null==V||("string"==typeof V||Array.isArray(V))&&0===V.length}function ee(V){return null!=V&&"number"==typeof V.length}const oe=new e.OlP("NgValidators"),_e=new e.OlP("NgAsyncValidators"),Ne=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class te{static min(I){return de(I)}static max(I){return J(I)}static required(I){return Ie(I)}static requiredTrue(I){return function Ze(V){return!0===V.value?null:{required:!0}}(I)}static email(I){return function ot(V){return w(V.value)||Ne.test(V.value)?null:{email:!0}}(I)}static minLength(I){return function lt(V){return I=>w(I.value)||!ee(I.value)?null:I.value.length<V?{minlength:{requiredLength:V,actualLength:I.value.length}}:null}(I)}static maxLength(I){return At(I)}static pattern(I){return function qe(V){if(!V)return wt;let I,D;return"string"==typeof V?(D="","^"!==V.charAt(0)&&(D+="^"),D+=V,"$"!==V.charAt(V.length-1)&&(D+="$"),I=new RegExp(D)):(D=V.toString(),I=V),ue=>{if(w(ue.value))return null;const it=ue.value;return I.test(it)?null:{pattern:{requiredPattern:D,actualValue:it}}}}(I)}static nullValidator(I){return null}static compose(I){return pt(I)}static composeAsync(I){return ft(I)}}function de(V){return I=>{if(w(I.value)||w(V))return null;const D=parseFloat(I.value);return!isNaN(D)&&D<V?{min:{min:V,actual:I.value}}:null}}function J(V){return I=>{if(w(I.value)||w(V))return null;const D=parseFloat(I.value);return!isNaN(D)&&D>V?{max:{max:V,actual:I.value}}:null}}function Ie(V){return w(V.value)?{required:!0}:null}function At(V){return I=>ee(I.value)&&I.value.length>V?{maxlength:{requiredLength:V,actualLength:I.value.length}}:null}function wt(V){return null}function re(V){return null!=V}function Ee(V){return(0,e.QGY)(V)?(0,K.D)(V):V}function Ve(V){let I={};return V.forEach(D=>{I=null!=D?{...I,...D}:I}),0===Object.keys(I).length?null:I}function Le(V,I){return I.map(D=>D(V))}function Tt(V){return V.map(I=>function Dt(V){return!V.validate}(I)?I:D=>I.validate(D))}function pt(V){if(!V)return null;const I=V.filter(re);return 0==I.length?null:function(D){return Ve(Le(D,I))}}function Be(V){return null!=V?pt(Tt(V)):null}function ft(V){if(!V)return null;const I=V.filter(re);return 0==I.length?null:function(D){const ue=Le(D,I).map(Ee);return(0,F.D)(ue).pipe((0,Z.U)(Ve))}}function gt(V){return null!=V?ft(Tt(V)):null}function Et(V,I){return null===V?[I]:Array.isArray(V)?[...V,I]:[V,I]}function Mt(V){return V._rawValidators}function Qt(V){return V._rawAsyncValidators}function ye(V){return V?Array.isArray(V)?V:[V]:[]}function Ae(V,I){return Array.isArray(V)?V.includes(I):V===I}function A(V,I){const D=ye(I);return ye(V).forEach(it=>{Ae(D,it)||D.push(it)}),D}function j(V,I){return ye(I).filter(D=>!Ae(V,D))}class he{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(I){this._rawValidators=I||[],this._composedValidatorFn=Be(this._rawValidators)}_setAsyncValidators(I){this._rawAsyncValidators=I||[],this._composedAsyncValidatorFn=gt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(I){this._onDestroyCallbacks.push(I)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(I=>I()),this._onDestroyCallbacks=[]}reset(I){this.control&&this.control.reset(I)}hasError(I,D){return!!this.control&&this.control.hasError(I,D)}getError(I,D){return this.control?this.control.getError(I,D):null}}class De extends he{get formDirective(){return null}get path(){return null}}class We extends he{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Qe{constructor(I){this._cd=I}get isTouched(){var I,D;return!(null===(I=this._cd)||void 0===I||null===(D=I.control)||void 0===D||!D.touched)}get isUntouched(){var I,D;return!(null===(I=this._cd)||void 0===I||null===(D=I.control)||void 0===D||!D.untouched)}get isPristine(){var I,D;return!(null===(I=this._cd)||void 0===I||null===(D=I.control)||void 0===D||!D.pristine)}get isDirty(){var I,D;return!(null===(I=this._cd)||void 0===I||null===(D=I.control)||void 0===D||!D.dirty)}get isValid(){var I,D;return!(null===(I=this._cd)||void 0===I||null===(D=I.control)||void 0===D||!D.valid)}get isInvalid(){var I,D;return!(null===(I=this._cd)||void 0===I||null===(D=I.control)||void 0===D||!D.invalid)}get isPending(){var I,D;return!(null===(I=this._cd)||void 0===I||null===(D=I.control)||void 0===D||!D.pending)}get isSubmitted(){var I;return!(null===(I=this._cd)||void 0===I||!I.submitted)}}let Ke=(()=>{class V extends Qe{constructor(D){super(D)}}return V.\u0275fac=function(D){return new(D||V)(e.Y36(We,2))},V.\u0275dir=e.lG2({type:V,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(D,ue){2&D&&e.ekj("ng-untouched",ue.isUntouched)("ng-touched",ue.isTouched)("ng-pristine",ue.isPristine)("ng-dirty",ue.isDirty)("ng-valid",ue.isValid)("ng-invalid",ue.isInvalid)("ng-pending",ue.isPending)},features:[e.qOj]}),V})(),yt=(()=>{class V extends Qe{constructor(D){super(D)}}return V.\u0275fac=function(D){return new(D||V)(e.Y36(De,10))},V.\u0275dir=e.lG2({type:V,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(D,ue){2&D&&e.ekj("ng-untouched",ue.isUntouched)("ng-touched",ue.isTouched)("ng-pristine",ue.isPristine)("ng-dirty",ue.isDirty)("ng-valid",ue.isValid)("ng-invalid",ue.isInvalid)("ng-pending",ue.isPending)("ng-submitted",ue.isSubmitted)},features:[e.qOj]}),V})();const zt="VALID",an="INVALID",en="PENDING",rn="DISABLED";function Jn(V){return(Hi(V)?V.validators:V)||null}function Qn(V){return Array.isArray(V)?Be(V):V||null}function fi(V,I){return(Hi(I)?I.asyncValidators:V)||null}function wi(V){return Array.isArray(V)?gt(V):V||null}function Hi(V){return null!=V&&!Array.isArray(V)&&"object"==typeof V}function _i(V,I,D){const ue=V.controls;if(!(I?Object.keys(ue):ue).length)throw new e.vHH(1e3,"");if(!ue[D])throw new e.vHH(1001,"")}function bi(V,I,D){V._forEachChild((ue,it)=>{if(void 0===D[it])throw new e.vHH(1002,"")})}class Bn{constructor(I,D){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=I,this._rawAsyncValidators=D,this._composedValidatorFn=Qn(this._rawValidators),this._composedAsyncValidatorFn=wi(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(I){this._rawValidators=this._composedValidatorFn=I}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(I){this._rawAsyncValidators=this._composedAsyncValidatorFn=I}get parent(){return this._parent}get valid(){return this.status===zt}get invalid(){return this.status===an}get pending(){return this.status==en}get disabled(){return this.status===rn}get enabled(){return this.status!==rn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(I){this._rawValidators=I,this._composedValidatorFn=Qn(I)}setAsyncValidators(I){this._rawAsyncValidators=I,this._composedAsyncValidatorFn=wi(I)}addValidators(I){this.setValidators(A(I,this._rawValidators))}addAsyncValidators(I){this.setAsyncValidators(A(I,this._rawAsyncValidators))}removeValidators(I){this.setValidators(j(I,this._rawValidators))}removeAsyncValidators(I){this.setAsyncValidators(j(I,this._rawAsyncValidators))}hasValidator(I){return Ae(this._rawValidators,I)}hasAsyncValidator(I){return Ae(this._rawAsyncValidators,I)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(I={}){this.touched=!0,this._parent&&!I.onlySelf&&this._parent.markAsTouched(I)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(I=>I.markAllAsTouched())}markAsUntouched(I={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(D=>{D.markAsUntouched({onlySelf:!0})}),this._parent&&!I.onlySelf&&this._parent._updateTouched(I)}markAsDirty(I={}){this.pristine=!1,this._parent&&!I.onlySelf&&this._parent.markAsDirty(I)}markAsPristine(I={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(D=>{D.markAsPristine({onlySelf:!0})}),this._parent&&!I.onlySelf&&this._parent._updatePristine(I)}markAsPending(I={}){this.status=en,!1!==I.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!I.onlySelf&&this._parent.markAsPending(I)}disable(I={}){const D=this._parentMarkedDirty(I.onlySelf);this.status=rn,this.errors=null,this._forEachChild(ue=>{ue.disable({...I,onlySelf:!0})}),this._updateValue(),!1!==I.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...I,skipPristineCheck:D}),this._onDisabledChange.forEach(ue=>ue(!0))}enable(I={}){const D=this._parentMarkedDirty(I.onlySelf);this.status=zt,this._forEachChild(ue=>{ue.enable({...I,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:I.emitEvent}),this._updateAncestors({...I,skipPristineCheck:D}),this._onDisabledChange.forEach(ue=>ue(!1))}_updateAncestors(I){this._parent&&!I.onlySelf&&(this._parent.updateValueAndValidity(I),I.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(I){this._parent=I}getRawValue(){return this.value}updateValueAndValidity(I={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zt||this.status===en)&&this._runAsyncValidator(I.emitEvent)),!1!==I.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!I.onlySelf&&this._parent.updateValueAndValidity(I)}_updateTreeValidity(I={emitEvent:!0}){this._forEachChild(D=>D._updateTreeValidity(I)),this.updateValueAndValidity({onlySelf:!0,emitEvent:I.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?rn:zt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(I){if(this.asyncValidator){this.status=en,this._hasOwnPendingAsyncValidator=!0;const D=Ee(this.asyncValidator(this));this._asyncValidationSubscription=D.subscribe(ue=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ue,{emitEvent:I})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(I,D={}){this.errors=I,this._updateControlsErrors(!1!==D.emitEvent)}get(I){let D=I;return null==D||(Array.isArray(D)||(D=D.split(".")),0===D.length)?null:D.reduce((ue,it)=>ue&&ue._find(it),this)}getError(I,D){const ue=D?this.get(D):this;return ue&&ue.errors?ue.errors[I]:null}hasError(I,D){return!!this.getError(I,D)}get root(){let I=this;for(;I._parent;)I=I._parent;return I}_updateControlsErrors(I){this.status=this._calculateStatus(),I&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(I)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?rn:this.errors?an:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(en)?en:this._anyControlsHaveStatus(an)?an:zt}_anyControlsHaveStatus(I){return this._anyControls(D=>D.status===I)}_anyControlsDirty(){return this._anyControls(I=>I.dirty)}_anyControlsTouched(){return this._anyControls(I=>I.touched)}_updatePristine(I={}){this.pristine=!this._anyControlsDirty(),this._parent&&!I.onlySelf&&this._parent._updatePristine(I)}_updateTouched(I={}){this.touched=this._anyControlsTouched(),this._parent&&!I.onlySelf&&this._parent._updateTouched(I)}_registerOnCollectionChange(I){this._onCollectionChange=I}_setUpdateStrategy(I){Hi(I)&&null!=I.updateOn&&(this._updateOn=I.updateOn)}_parentMarkedDirty(I){return!I&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(I){return null}}class nn extends Bn{constructor(I,D,ue){super(Jn(D),fi(ue,D)),this.controls=I,this._initObservables(),this._setUpdateStrategy(D),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(I,D){return this.controls[I]?this.controls[I]:(this.controls[I]=D,D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange),D)}addControl(I,D,ue={}){this.registerControl(I,D),this.updateValueAndValidity({emitEvent:ue.emitEvent}),this._onCollectionChange()}removeControl(I,D={}){this.controls[I]&&this.controls[I]._registerOnCollectionChange(()=>{}),delete this.controls[I],this.updateValueAndValidity({emitEvent:D.emitEvent}),this._onCollectionChange()}setControl(I,D,ue={}){this.controls[I]&&this.controls[I]._registerOnCollectionChange(()=>{}),delete this.controls[I],D&&this.registerControl(I,D),this.updateValueAndValidity({emitEvent:ue.emitEvent}),this._onCollectionChange()}contains(I){return this.controls.hasOwnProperty(I)&&this.controls[I].enabled}setValue(I,D={}){bi(this,0,I),Object.keys(I).forEach(ue=>{_i(this,!0,ue),this.controls[ue].setValue(I[ue],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(I,D={}){null!=I&&(Object.keys(I).forEach(ue=>{const it=this.controls[ue];it&&it.patchValue(I[ue],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(I={},D={}){this._forEachChild((ue,it)=>{ue.reset(I[it],{onlySelf:!0,emitEvent:D.emitEvent})}),this._updatePristine(D),this._updateTouched(D),this.updateValueAndValidity(D)}getRawValue(){return this._reduceChildren({},(I,D,ue)=>(I[ue]=D.getRawValue(),I))}_syncPendingControls(){let I=this._reduceChildren(!1,(D,ue)=>!!ue._syncPendingControls()||D);return I&&this.updateValueAndValidity({onlySelf:!0}),I}_forEachChild(I){Object.keys(this.controls).forEach(D=>{const ue=this.controls[D];ue&&I(ue,D)})}_setUpControls(){this._forEachChild(I=>{I.setParent(this),I._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(I){for(const[D,ue]of Object.entries(this.controls))if(this.contains(D)&&I(ue))return!0;return!1}_reduceValue(){return this._reduceChildren({},(D,ue,it)=>((ue.enabled||this.disabled)&&(D[it]=ue.value),D))}_reduceChildren(I,D){let ue=I;return this._forEachChild((it,Ht)=>{ue=D(ue,it,Ht)}),ue}_allControlsDisabled(){for(const I of Object.keys(this.controls))if(this.controls[I].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(I){return this.controls.hasOwnProperty(I)?this.controls[I]:null}}const Re=nn;class He extends nn{}function $t(V,I){return[...I.path,V]}function Te(V,I){var D,ue;ut(V,I),I.valueAccessor.writeValue(V.value),V.disabled&&(null===(D=(ue=I.valueAccessor).setDisabledState)||void 0===D||D.call(ue,!0)),function tn(V,I){I.valueAccessor.registerOnChange(D=>{V._pendingValue=D,V._pendingChange=!0,V._pendingDirty=!0,"change"===V.updateOn&&wn(V,I)})}(V,I),function xi(V,I){const D=(ue,it)=>{I.valueAccessor.writeValue(ue),it&&I.viewToModelUpdate(ue)};V.registerOnChange(D),I._registerOnDestroy(()=>{V._unregisterOnChange(D)})}(V,I),function Yt(V,I){I.valueAccessor.registerOnTouched(()=>{V._pendingTouched=!0,"blur"===V.updateOn&&V._pendingChange&&wn(V,I),"submit"!==V.updateOn&&V.markAsTouched()})}(V,I),function ze(V,I){if(I.valueAccessor.setDisabledState){const D=ue=>{I.valueAccessor.setDisabledState(ue)};V.registerOnDisabledChange(D),I._registerOnDestroy(()=>{V._unregisterOnDisabledChange(D)})}}(V,I)}function Se(V,I,D=!0){const ue=()=>{};I.valueAccessor&&(I.valueAccessor.registerOnChange(ue),I.valueAccessor.registerOnTouched(ue)),Nt(V,I),V&&(I._invokeOnDestroyCallbacks(),V._registerOnCollectionChange(()=>{}))}function fe(V,I){V.forEach(D=>{D.registerOnValidatorChange&&D.registerOnValidatorChange(I)})}function ut(V,I){const D=Mt(V);null!==I.validator?V.setValidators(Et(D,I.validator)):"function"==typeof D&&V.setValidators([D]);const ue=Qt(V);null!==I.asyncValidator?V.setAsyncValidators(Et(ue,I.asyncValidator)):"function"==typeof ue&&V.setAsyncValidators([ue]);const it=()=>V.updateValueAndValidity();fe(I._rawValidators,it),fe(I._rawAsyncValidators,it)}function Nt(V,I){let D=!1;if(null!==V){if(null!==I.validator){const it=Mt(V);if(Array.isArray(it)&&it.length>0){const Ht=it.filter(qn=>qn!==I.validator);Ht.length!==it.length&&(D=!0,V.setValidators(Ht))}}if(null!==I.asyncValidator){const it=Qt(V);if(Array.isArray(it)&&it.length>0){const Ht=it.filter(qn=>qn!==I.asyncValidator);Ht.length!==it.length&&(D=!0,V.setAsyncValidators(Ht))}}}const ue=()=>{};return fe(I._rawValidators,ue),fe(I._rawAsyncValidators,ue),D}function wn(V,I){V._pendingDirty&&V.markAsDirty(),V.setValue(V._pendingValue,{emitModelToViewChange:!1}),I.viewToModelUpdate(V._pendingValue),V._pendingChange=!1}function qt(V,I){ut(V,I)}function Nn(V,I){if(!V.hasOwnProperty("model"))return!1;const D=V.model;return!!D.isFirstChange()||!Object.is(I,D.currentValue)}function Si(V,I){V._syncPendingControls(),I.forEach(D=>{const ue=D.control;"submit"===ue.updateOn&&ue._pendingChange&&(D.viewToModelUpdate(ue._pendingValue),ue._pendingChange=!1)})}function Ri(V,I){if(!I)return null;let D,ue,it;return Array.isArray(I),I.forEach(Ht=>{Ht.constructor===b?D=Ht:function gi(V){return Object.getPrototypeOf(V.constructor)===H}(Ht)?ue=Ht:it=Ht}),it||ue||D||null}const Or={provide:De,useExisting:(0,e.Gpc)(()=>Yi)},rr=(()=>Promise.resolve())();let Yi=(()=>{class V extends De{constructor(D,ue){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new nn({},Be(D),gt(ue))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(D){rr.then(()=>{const ue=this._findContainer(D.path);D.control=ue.registerControl(D.name,D.control),Te(D.control,D),D.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(D)})}getControl(D){return this.form.get(D.path)}removeControl(D){rr.then(()=>{const ue=this._findContainer(D.path);ue&&ue.removeControl(D.name),this._directives.delete(D)})}addFormGroup(D){rr.then(()=>{const ue=this._findContainer(D.path),it=new nn({});qt(it,D),ue.registerControl(D.name,it),it.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(D){rr.then(()=>{const ue=this._findContainer(D.path);ue&&ue.removeControl(D.name)})}getFormGroup(D){return this.form.get(D.path)}updateModel(D,ue){rr.then(()=>{this.form.get(D.path).setValue(ue)})}setValue(D){this.control.setValue(D)}onSubmit(D){return this.submitted=!0,Si(this.form,this._directives),this.ngSubmit.emit(D),!1}onReset(){this.resetForm()}resetForm(D){this.form.reset(D),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(D){return D.pop(),D.length?this.form.get(D):this.form}}return V.\u0275fac=function(D){return new(D||V)(e.Y36(oe,10),e.Y36(_e,10))},V.\u0275dir=e.lG2({type:V,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(D,ue){1&D&&e.NdJ("submit",function(Ht){return ue.onSubmit(Ht)})("reset",function(){return ue.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Or]),e.qOj]}),V})();function Wi(V,I){const D=V.indexOf(I);D>-1&&V.splice(D,1)}function br(V){return"object"==typeof V&&null!==V&&2===Object.keys(V).length&&"value"in V&&"disabled"in V}const Ni=class extends Bn{constructor(I=null,D,ue){super(Jn(D),fi(ue,D)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(I),this._setUpdateStrategy(D),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Hi(D)&&(D.nonNullable||D.initialValueIsDefault)&&(this.defaultValue=br(I)?I.value:I)}setValue(I,D={}){this.value=this._pendingValue=I,this._onChange.length&&!1!==D.emitModelToViewChange&&this._onChange.forEach(ue=>ue(this.value,!1!==D.emitViewToModelChange)),this.updateValueAndValidity(D)}patchValue(I,D={}){this.setValue(I,D)}reset(I=this.defaultValue,D={}){this._applyFormState(I),this.markAsPristine(D),this.markAsUntouched(D),this.setValue(this.value,D),this._pendingChange=!1}_updateValue(){}_anyControls(I){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(I){this._onChange.push(I)}_unregisterOnChange(I){Wi(this._onChange,I)}registerOnDisabledChange(I){this._onDisabledChange.push(I)}_unregisterOnDisabledChange(I){Wi(this._onDisabledChange,I)}_forEachChild(I){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(I){br(I)?(this.value=this._pendingValue=I.value,I.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=I}},Ji=Ni;let Ur=(()=>{class V extends De{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $t(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return V.\u0275fac=function(){let I;return function(ue){return(I||(I=e.n5z(V)))(ue||V)}}(),V.\u0275dir=e.lG2({type:V,features:[e.qOj]}),V})();const or={provide:We,useExisting:(0,e.Gpc)(()=>Xi)},wr=(()=>Promise.resolve())();let Xi=(()=>{class V extends We{constructor(D,ue,it,Ht,qn){super(),this._changeDetectorRef=qn,this.control=new Ni,this._registered=!1,this.update=new e.vpe,this._parent=D,this._setValidators(ue),this._setAsyncValidators(it),this.valueAccessor=Ri(0,Ht)}ngOnChanges(D){if(this._checkForErrors(),!this._registered||"name"in D){if(this._registered&&(this._checkName(),this.formDirective)){const ue=D.name.previousValue;this.formDirective.removeControl({name:ue,path:this._getPath(ue)})}this._setUpControl()}"isDisabled"in D&&this._updateDisabled(D),Nn(D,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Te(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(D){wr.then(()=>{var ue;this.control.setValue(D,{emitViewToModelChange:!1}),null===(ue=this._changeDetectorRef)||void 0===ue||ue.markForCheck()})}_updateDisabled(D){const ue=D.isDisabled.currentValue,it=0!==ue&&(0,e.D6c)(ue);wr.then(()=>{var Ht;it&&!this.control.disabled?this.control.disable():!it&&this.control.disabled&&this.control.enable(),null===(Ht=this._changeDetectorRef)||void 0===Ht||Ht.markForCheck()})}_getPath(D){return this._parent?$t(D,this._parent):[D]}}return V.\u0275fac=function(D){return new(D||V)(e.Y36(De,9),e.Y36(oe,10),e.Y36(_e,10),e.Y36(z,10),e.Y36(e.sBO,8))},V.\u0275dir=e.lG2({type:V,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([or]),e.qOj,e.TTD]}),V})(),jr=(()=>{class V{}return V.\u0275fac=function(D){return new(D||V)},V.\u0275dir=e.lG2({type:V,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),V})();const vs={provide:z,useExisting:(0,e.Gpc)(()=>Ui),multi:!0};let Ui=(()=>{class V extends H{writeValue(D){this.setProperty("value",D??"")}registerOnChange(D){this.onChange=ue=>{D(""==ue?null:parseFloat(ue))}}}return V.\u0275fac=function(){let I;return function(ue){return(I||(I=e.n5z(V)))(ue||V)}}(),V.\u0275dir=e.lG2({type:V,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(D,ue){1&D&&e.NdJ("input",function(Ht){return ue.onChange(Ht.target.value)})("blur",function(){return ue.onTouched()})},features:[e._Bn([vs]),e.qOj]}),V})();const zo={provide:z,useExisting:(0,e.Gpc)(()=>mo),multi:!0};let Zo=(()=>{class V{}return V.\u0275fac=function(D){return new(D||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({}),V})(),ys=(()=>{class V{constructor(){this._accessors=[]}add(D,ue){this._accessors.push([D,ue])}remove(D){for(let ue=this._accessors.length-1;ue>=0;--ue)if(this._accessors[ue][1]===D)return void this._accessors.splice(ue,1)}select(D){this._accessors.forEach(ue=>{this._isSameGroup(ue,D)&&ue[1]!==D&&ue[1].fireUncheck(D.value)})}_isSameGroup(D,ue){return!!D[0].control&&D[0]._parent===ue._control._parent&&D[1].name===ue.name}}return V.\u0275fac=function(D){return new(D||V)},V.\u0275prov=e.Yz7({token:V,factory:V.\u0275fac,providedIn:Zo}),V})(),mo=(()=>{class V extends H{constructor(D,ue,it,Ht){super(D,ue),this._registry=it,this._injector=Ht,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(We),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(D){this._state=D===this.value,this.setProperty("checked",this._state)}registerOnChange(D){this._fn=D,this.onChange=()=>{D(this.value),this._registry.select(this)}}fireUncheck(D){this.writeValue(D)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return V.\u0275fac=function(D){return new(D||V)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(ys),e.Y36(e.zs3))},V.\u0275dir=e.lG2({type:V,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(D,ue){1&D&&e.NdJ("change",function(){return ue.onChange()})("blur",function(){return ue.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[e._Bn([zo]),e.qOj]}),V})();const lo=new e.OlP("NgModelWithFormControlWarning"),Cs={provide:We,useExisting:(0,e.Gpc)(()=>Yo)};let Yo=(()=>{class V extends We{constructor(D,ue,it,Ht){super(),this._ngModelWarningConfig=Ht,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(D),this._setAsyncValidators(ue),this.valueAccessor=Ri(0,it)}set isDisabled(D){}ngOnChanges(D){if(this._isControlChanged(D)){const ue=D.form.previousValue;ue&&Se(ue,this,!1),Te(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Nn(D,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Se(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}_isControlChanged(D){return D.hasOwnProperty("form")}}return V._ngModelWarningSentOnce=!1,V.\u0275fac=function(D){return new(D||V)(e.Y36(oe,10),e.Y36(_e,10),e.Y36(z,10),e.Y36(lo,8))},V.\u0275dir=e.lG2({type:V,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Cs]),e.qOj,e.TTD]}),V})();const vo={provide:De,useExisting:(0,e.Gpc)(()=>qr)};let qr=(()=>{class V extends De{constructor(D,ue){super(),this.validators=D,this.asyncValidators=ue,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(D),this._setAsyncValidators(ue)}ngOnChanges(D){this._checkFormPresent(),D.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Nt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(D){const ue=this.form.get(D.path);return Te(ue,D),ue.updateValueAndValidity({emitEvent:!1}),this.directives.push(D),ue}getControl(D){return this.form.get(D.path)}removeControl(D){Se(D.control||null,D,!1),function si(V,I){const D=V.indexOf(I);D>-1&&V.splice(D,1)}(this.directives,D)}addFormGroup(D){this._setUpFormContainer(D)}removeFormGroup(D){this._cleanUpFormContainer(D)}getFormGroup(D){return this.form.get(D.path)}addFormArray(D){this._setUpFormContainer(D)}removeFormArray(D){this._cleanUpFormContainer(D)}getFormArray(D){return this.form.get(D.path)}updateModel(D,ue){this.form.get(D.path).setValue(ue)}onSubmit(D){return this.submitted=!0,Si(this.form,this.directives),this.ngSubmit.emit(D),!1}onReset(){this.resetForm()}resetForm(D){this.form.reset(D),this.submitted=!1}_updateDomValue(){this.directives.forEach(D=>{const ue=D.control,it=this.form.get(D.path);ue!==it&&(Se(ue||null,D),(V=>V instanceof Ni)(it)&&(Te(it,D),D.control=it))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(D){const ue=this.form.get(D.path);qt(ue,D),ue.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(D){if(this.form){const ue=this.form.get(D.path);ue&&function oi(V,I){return Nt(V,I)}(ue,D)&&ue.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ut(this.form,this),this._oldForm&&Nt(this._oldForm,this)}_checkFormPresent(){}}return V.\u0275fac=function(D){return new(D||V)(e.Y36(oe,10),e.Y36(_e,10))},V.\u0275dir=e.lG2({type:V,selectors:[["","formGroup",""]],hostBindings:function(D,ue){1&D&&e.NdJ("submit",function(Ht){return ue.onSubmit(Ht)})("reset",function(){return ue.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([vo]),e.qOj,e.TTD]}),V})();const co={provide:De,useExisting:(0,e.Gpc)(()=>Nr)};let Nr=(()=>{class V extends Ur{constructor(D,ue,it){super(),this._parent=D,this._setValidators(ue),this._setAsyncValidators(it)}_checkParentType(){tr(this._parent)}}return V.\u0275fac=function(D){return new(D||V)(e.Y36(De,13),e.Y36(oe,10),e.Y36(_e,10))},V.\u0275dir=e.lG2({type:V,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[e._Bn([co]),e.qOj]}),V})();const zr={provide:De,useExisting:(0,e.Gpc)(()=>er)};let er=(()=>{class V extends De{constructor(D,ue,it){super(),this._parent=D,this._setValidators(ue),this._setAsyncValidators(it)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return $t(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){tr(this._parent)}}return V.\u0275fac=function(D){return new(D||V)(e.Y36(De,13),e.Y36(oe,10),e.Y36(_e,10))},V.\u0275dir=e.lG2({type:V,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[e._Bn([zr]),e.qOj]}),V})();function tr(V){return!(V instanceof Nr||V instanceof qr||V instanceof er)}const ai={provide:We,useExisting:(0,e.Gpc)(()=>Ir)};let Ir=(()=>{class V extends We{constructor(D,ue,it,Ht,qn){super(),this._ngModelWarningConfig=qn,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=D,this._setValidators(ue),this._setAsyncValidators(it),this.valueAccessor=Ri(0,Ht)}set isDisabled(D){}ngOnChanges(D){this._added||this._setUpControl(),Nn(D,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}get path(){return $t(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return V._ngModelWarningSentOnce=!1,V.\u0275fac=function(D){return new(D||V)(e.Y36(De,13),e.Y36(oe,10),e.Y36(_e,10),e.Y36(z,10),e.Y36(lo,8))},V.\u0275dir=e.lG2({type:V,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([ai]),e.qOj,e.TTD]}),V})();const uo={provide:z,useExisting:(0,e.Gpc)(()=>sr),multi:!0};function Li(V,I){return null==V?`${I}`:(I&&"object"==typeof I&&(I="Object"),`${V}: ${I}`.slice(0,50))}let sr=(()=>{class V extends H{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(D){this._compareWith=D}writeValue(D){this.value=D;const it=Li(this._getOptionId(D),D);this.setProperty("value",it)}registerOnChange(D){this.onChange=ue=>{this.value=this._getOptionValue(ue),D(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(D){for(const ue of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ue),D))return ue;return null}_getOptionValue(D){const ue=function Gr(V){return V.split(":")[0]}(D);return this._optionMap.has(ue)?this._optionMap.get(ue):D}}return V.\u0275fac=function(){let I;return function(ue){return(I||(I=e.n5z(V)))(ue||V)}}(),V.\u0275dir=e.lG2({type:V,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(D,ue){1&D&&e.NdJ("change",function(Ht){return ue.onChange(Ht.target.value)})("blur",function(){return ue.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([uo]),e.qOj]}),V})(),dr=(()=>{class V{constructor(D,ue,it){this._element=D,this._renderer=ue,this._select=it,this._select&&(this.id=this._select._registerOption())}set ngValue(D){null!=this._select&&(this._select._optionMap.set(this.id,D),this._setElementValue(Li(this.id,D)),this._select.writeValue(this._select.value))}set value(D){this._setElementValue(D),this._select&&this._select.writeValue(this._select.value)}_setElementValue(D){this._renderer.setProperty(this._element.nativeElement,"value",D)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return V.\u0275fac=function(D){return new(D||V)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(sr,9))},V.\u0275dir=e.lG2({type:V,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),V})();const Pr={provide:z,useExisting:(0,e.Gpc)(()=>ri),multi:!0};function Xr(V,I){return null==V?`${I}`:("string"==typeof I&&(I=`'${I}'`),I&&"object"==typeof I&&(I="Object"),`${V}: ${I}`.slice(0,50))}let ri=(()=>{class V extends H{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(D){this._compareWith=D}writeValue(D){let ue;if(this.value=D,Array.isArray(D)){const it=D.map(Ht=>this._getOptionId(Ht));ue=(Ht,qn)=>{Ht._setSelected(it.indexOf(qn.toString())>-1)}}else ue=(it,Ht)=>{it._setSelected(!1)};this._optionMap.forEach(ue)}registerOnChange(D){this.onChange=ue=>{const it=[],Ht=ue.selectedOptions;if(void 0!==Ht){const qn=Ht;for(let Vi=0;Vi<qn.length;Vi++){const Un=this._getOptionValue(qn[Vi].value);it.push(Un)}}else{const qn=ue.options;for(let Vi=0;Vi<qn.length;Vi++){const fr=qn[Vi];if(fr.selected){const Un=this._getOptionValue(fr.value);it.push(Un)}}}this.value=it,D(it)}}_registerOption(D){const ue=(this._idCounter++).toString();return this._optionMap.set(ue,D),ue}_getOptionId(D){for(const ue of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ue)._value,D))return ue;return null}_getOptionValue(D){const ue=function eo(V){return V.split(":")[0]}(D);return this._optionMap.has(ue)?this._optionMap.get(ue)._value:D}}return V.\u0275fac=function(){let I;return function(ue){return(I||(I=e.n5z(V)))(ue||V)}}(),V.\u0275dir=e.lG2({type:V,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(D,ue){1&D&&e.NdJ("change",function(Ht){return ue.onChange(Ht.target)})("blur",function(){return ue.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([Pr]),e.qOj]}),V})(),ho=(()=>{class V{constructor(D,ue,it){this._element=D,this._renderer=ue,this._select=it,this._select&&(this.id=this._select._registerOption(this))}set ngValue(D){null!=this._select&&(this._value=D,this._setElementValue(Xr(this.id,D)),this._select.writeValue(this._select.value))}set value(D){this._select?(this._value=D,this._setElementValue(Xr(this.id,D)),this._select.writeValue(this._select.value)):this._setElementValue(D)}_setElementValue(D){this._renderer.setProperty(this._element.nativeElement,"value",D)}_setSelected(D){this._renderer.setProperty(this._element.nativeElement,"selected",D)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return V.\u0275fac=function(D){return new(D||V)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ri,9))},V.\u0275dir=e.lG2({type:V,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),V})();function yo(V){return"number"==typeof V?V:parseFloat(V)}let Kr=(()=>{class V{constructor(){this._validator=wt}ngOnChanges(D){if(this.inputName in D){const ue=this.normalizeInput(D[this.inputName].currentValue);this._enabled=this.enabled(ue),this._validator=this._enabled?this.createValidator(ue):wt,this._onChange&&this._onChange()}}validate(D){return this._validator(D)}registerOnValidatorChange(D){this._onChange=D}enabled(D){return null!=D}}return V.\u0275fac=function(D){return new(D||V)},V.\u0275dir=e.lG2({type:V,features:[e.TTD]}),V})();const Wo={provide:oe,useExisting:(0,e.Gpc)(()=>Kn),multi:!0};let Kn=(()=>{class V extends Kr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=D=>yo(D),this.createValidator=D=>J(D)}}return V.\u0275fac=function(){let I;return function(ue){return(I||(I=e.n5z(V)))(ue||V)}}(),V.\u0275dir=e.lG2({type:V,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(D,ue){2&D&&e.uIk("max",ue._enabled?ue.max:null)},inputs:{max:"max"},features:[e._Bn([Wo]),e.qOj]}),V})();const xo={provide:oe,useExisting:(0,e.Gpc)(()=>to),multi:!0};let to=(()=>{class V extends Kr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=D=>yo(D),this.createValidator=D=>de(D)}}return V.\u0275fac=function(){let I;return function(ue){return(I||(I=e.n5z(V)))(ue||V)}}(),V.\u0275dir=e.lG2({type:V,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(D,ue){2&D&&e.uIk("min",ue._enabled?ue.min:null)},inputs:{min:"min"},features:[e._Bn([xo]),e.qOj]}),V})();const ki={provide:oe,useExisting:(0,e.Gpc)(()=>Sr),multi:!0};let Sr=(()=>{class V extends Kr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=D=>Ie}enabled(D){return D}}return V.\u0275fac=function(){let I;return function(ue){return(I||(I=e.n5z(V)))(ue||V)}}(),V.\u0275dir=e.lG2({type:V,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(D,ue){2&D&&e.uIk("required",ue._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([ki]),e.qOj]}),V})();const po={provide:oe,useExisting:(0,e.Gpc)(()=>pr),multi:!0};let pr=(()=>{class V extends Kr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=D=>function Zr(V){return"number"==typeof V?V:parseInt(V,10)}(D),this.createValidator=D=>At(D)}}return V.\u0275fac=function(){let I;return function(ue){return(I||(I=e.n5z(V)))(ue||V)}}(),V.\u0275dir=e.lG2({type:V,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(D,ue){2&D&&e.uIk("maxlength",ue._enabled?ue.maxlength:null)},inputs:{maxlength:"maxlength"},features:[e._Bn([po]),e.qOj]}),V})(),Lo=(()=>{class V{}return V.\u0275fac=function(D){return new(D||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({imports:[Zo]}),V})(),Jo=(()=>{class V{}return V.\u0275fac=function(D){return new(D||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({imports:[Lo]}),V})(),io=(()=>{class V{static withConfig(D){return{ngModule:V,providers:[{provide:lo,useValue:D.warnOnNgModelWithFormControl}]}}}return V.\u0275fac=function(D){return new(D||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({imports:[Lo]}),V})();class li extends Bn{constructor(I,D,ue){super(Jn(D),fi(ue,D)),this.controls=I,this._initObservables(),this._setUpdateStrategy(D),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(I){return this.controls[this._adjustIndex(I)]}push(I,D={}){this.controls.push(I),this._registerControl(I),this.updateValueAndValidity({emitEvent:D.emitEvent}),this._onCollectionChange()}insert(I,D,ue={}){this.controls.splice(I,0,D),this._registerControl(D),this.updateValueAndValidity({emitEvent:ue.emitEvent})}removeAt(I,D={}){let ue=this._adjustIndex(I);ue<0&&(ue=0),this.controls[ue]&&this.controls[ue]._registerOnCollectionChange(()=>{}),this.controls.splice(ue,1),this.updateValueAndValidity({emitEvent:D.emitEvent})}setControl(I,D,ue={}){let it=this._adjustIndex(I);it<0&&(it=0),this.controls[it]&&this.controls[it]._registerOnCollectionChange(()=>{}),this.controls.splice(it,1),D&&(this.controls.splice(it,0,D),this._registerControl(D)),this.updateValueAndValidity({emitEvent:ue.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(I,D={}){bi(this,0,I),I.forEach((ue,it)=>{_i(this,!1,it),this.at(it).setValue(ue,{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(I,D={}){null!=I&&(I.forEach((ue,it)=>{this.at(it)&&this.at(it).patchValue(ue,{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(I=[],D={}){this._forEachChild((ue,it)=>{ue.reset(I[it],{onlySelf:!0,emitEvent:D.emitEvent})}),this._updatePristine(D),this._updateTouched(D),this.updateValueAndValidity(D)}getRawValue(){return this.controls.map(I=>I.getRawValue())}clear(I={}){this.controls.length<1||(this._forEachChild(D=>D._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:I.emitEvent}))}_adjustIndex(I){return I<0?I+this.length:I}_syncPendingControls(){let I=this.controls.reduce((D,ue)=>!!ue._syncPendingControls()||D,!1);return I&&this.updateValueAndValidity({onlySelf:!0}),I}_forEachChild(I){this.controls.forEach((D,ue)=>{I(D,ue)})}_updateValue(){this.value=this.controls.filter(I=>I.enabled||this.disabled).map(I=>I.value)}_anyControls(I){return this.controls.some(D=>D.enabled&&I(D))}_setUpControls(){this._forEachChild(I=>this._registerControl(I))}_allControlsDisabled(){for(const I of this.controls)if(I.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(I){I.setParent(this),I._registerOnCollectionChange(this._onCollectionChange)}_find(I){var D;return null!==(D=this.at(I))&&void 0!==D?D:null}}function bt(V){return!!V&&(void 0!==V.asyncValidators||void 0!==V.validators||void 0!==V.updateOn)}let fn=(()=>{class V{constructor(){this.useNonNullable=!1}get nonNullable(){const D=new V;return D.useNonNullable=!0,D}group(D,ue=null){const it=this._reduceControls(D);let Ht={};return bt(ue)?Ht=ue:null!==ue&&(Ht.validators=ue.validator,Ht.asyncValidators=ue.asyncValidator),new nn(it,Ht)}record(D,ue=null){const it=this._reduceControls(D);return new He(it,ue)}control(D,ue,it){let Ht={};return this.useNonNullable?(bt(ue)?Ht=ue:(Ht.validators=ue,Ht.asyncValidators=it),new Ni(D,{...Ht,nonNullable:!0})):new Ni(D,ue,it)}array(D,ue,it){const Ht=D.map(qn=>this._createControl(qn));return new li(Ht,ue,it)}_reduceControls(D){const ue={};return Object.keys(D).forEach(it=>{ue[it]=this._createControl(D[it])}),ue}_createControl(D){return D instanceof Ni||D instanceof Bn?D:Array.isArray(D)?this.control(D[0],D.length>1?D[1]:null,D.length>2?D[2]:null):this.control(D)}}return V.\u0275fac=function(D){return new(D||V)},V.\u0275prov=e.Yz7({token:V,factory:V.\u0275fac,providedIn:io}),V})(),oo=(()=>{class V extends fn{group(D,ue=null){return super.group(D,ue)}control(D,ue,it){return super.control(D,ue,it)}array(D,ue,it){return super.array(D,ue,it)}}return V.\u0275fac=function(){let I;return function(ue){return(I||(I=e.n5z(V)))(ue||V)}}(),V.\u0275prov=e.Yz7({token:V,factory:V.\u0275fac,providedIn:io}),V})()},11481:(Xe,me,h)=>{"use strict";h.d(me,{Dx:()=>q,H7:()=>St,b2:()=>Ge,h_:()=>$,q6:()=>Ye});var e=h(36895),s=h(94650);class K extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class F extends K{static makeCurrent(){(0,e.HT)(new F)}onAndCancel(Se,fe,ze){return Se.addEventListener(fe,ze,!1),()=>{Se.removeEventListener(fe,ze,!1)}}dispatchEvent(Se,fe){Se.dispatchEvent(fe)}remove(Se){Se.parentNode&&Se.parentNode.removeChild(Se)}createElement(Se,fe){return(fe=fe||this.getDefaultDocument()).createElement(Se)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Se){return Se.nodeType===Node.ELEMENT_NODE}isShadowRoot(Se){return Se instanceof DocumentFragment}getGlobalEventTarget(Se,fe){return"window"===fe?window:"document"===fe?Se:"body"===fe?Se.body:null}getBaseHref(Se){const fe=function O(){return Z=Z||document.querySelector("base"),Z?Z.getAttribute("href"):null}();return null==fe?null:function z(Te){H=H||document.createElement("a"),H.setAttribute("href",Te);const Se=H.pathname;return"/"===Se.charAt(0)?Se:`/${Se}`}(fe)}resetBaseElement(){Z=null}getUserAgent(){return window.navigator.userAgent}getCookie(Se){return(0,e.Mx)(document.cookie,Se)}}let H,Z=null;const N=new s.OlP("TRANSITION_ID"),y=[{provide:s.ip1,useFactory:function E(Te,Se,fe){return()=>{fe.get(s.CZH).donePromise.then(()=>{const ze=(0,e.q)(),ut=Se.querySelectorAll(`style[ng-transition="${Te}"]`);for(let Nt=0;Nt<ut.length;Nt++)ze.remove(ut[Nt])})}},deps:[N,e.K0,s.zs3],multi:!0}];let U=(()=>{class Te{build(){return new XMLHttpRequest}}return Te.\u0275fac=function(fe){return new(fe||Te)},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const b=new s.OlP("EventManagerPlugins");let G=(()=>{class Te{constructor(fe,ze){this._zone=ze,this._eventNameToPlugin=new Map,fe.forEach(ut=>ut.manager=this),this._plugins=fe.slice().reverse()}addEventListener(fe,ze,ut){return this._findPluginFor(ze).addEventListener(fe,ze,ut)}addGlobalEventListener(fe,ze,ut){return this._findPluginFor(ze).addGlobalEventListener(fe,ze,ut)}getZone(){return this._zone}_findPluginFor(fe){const ze=this._eventNameToPlugin.get(fe);if(ze)return ze;const ut=this._plugins;for(let Nt=0;Nt<ut.length;Nt++){const tn=ut[Nt];if(tn.supports(fe))return this._eventNameToPlugin.set(fe,tn),tn}throw new Error(`No event manager plugin found for event ${fe}`)}}return Te.\u0275fac=function(fe){return new(fe||Te)(s.LFG(b),s.LFG(s.R0b))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class w{constructor(Se){this._doc=Se}addGlobalEventListener(Se,fe,ze){const ut=(0,e.q)().getGlobalEventTarget(this._doc,Se);if(!ut)throw new Error(`Unsupported event target ${ut} for event ${fe}`);return this.addEventListener(ut,fe,ze)}}let ee=(()=>{class Te{constructor(){this._stylesSet=new Set}addStyles(fe){const ze=new Set;fe.forEach(ut=>{this._stylesSet.has(ut)||(this._stylesSet.add(ut),ze.add(ut))}),this.onStylesAdded(ze)}onStylesAdded(fe){}getAllStyles(){return Array.from(this._stylesSet)}}return Te.\u0275fac=function(fe){return new(fe||Te)},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),oe=(()=>{class Te extends ee{constructor(fe){super(),this._doc=fe,this._hostNodes=new Map,this._hostNodes.set(fe.head,[])}_addStylesToHost(fe,ze,ut){fe.forEach(Nt=>{const tn=this._doc.createElement("style");tn.textContent=Nt,ut.push(ze.appendChild(tn))})}addHost(fe){const ze=[];this._addStylesToHost(this._stylesSet,fe,ze),this._hostNodes.set(fe,ze)}removeHost(fe){const ze=this._hostNodes.get(fe);ze&&ze.forEach(_e),this._hostNodes.delete(fe)}onStylesAdded(fe){this._hostNodes.forEach((ze,ut)=>{this._addStylesToHost(fe,ut,ze)})}ngOnDestroy(){this._hostNodes.forEach(fe=>fe.forEach(_e))}}return Te.\u0275fac=function(fe){return new(fe||Te)(s.LFG(e.K0))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();function _e(Te){(0,e.q)().remove(Te)}const Ne={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},te=/%COMP%/g,J="%COMP%",Ie=`_nghost-${J}`,Ze=`_ngcontent-${J}`;function At(Te,Se,fe){for(let ze=0;ze<Se.length;ze++){let ut=Se[ze];Array.isArray(ut)?At(Te,ut,fe):(ut=ut.replace(te,Te),fe.push(ut))}return fe}function qe(Te){return Se=>{if("__ngUnwrap__"===Se)return Te;!1===Te(Se)&&(Se.preventDefault(),Se.returnValue=!1)}}let re=(()=>{class Te{constructor(fe,ze,ut){this.eventManager=fe,this.sharedStylesHost=ze,this.appId=ut,this.rendererByCompId=new Map,this.defaultRenderer=new Ee(fe)}createRenderer(fe,ze){if(!fe||!ze)return this.defaultRenderer;switch(ze.encapsulation){case s.ifc.Emulated:{let ut=this.rendererByCompId.get(ze.id);return ut||(ut=new Tt(this.eventManager,this.sharedStylesHost,ze,this.appId),this.rendererByCompId.set(ze.id,ut)),ut.applyToHost(fe),ut}case 1:case s.ifc.ShadowDom:return new pt(this.eventManager,this.sharedStylesHost,fe,ze);default:if(!this.rendererByCompId.has(ze.id)){const ut=At(ze.id,ze.styles,[]);this.sharedStylesHost.addStyles(ut),this.rendererByCompId.set(ze.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Te.\u0275fac=function(fe){return new(fe||Te)(s.LFG(G),s.LFG(oe),s.LFG(s.AFp))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class Ee{constructor(Se){this.eventManager=Se,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Se,fe){return fe?document.createElementNS(Ne[fe]||fe,Se):document.createElement(Se)}createComment(Se){return document.createComment(Se)}createText(Se){return document.createTextNode(Se)}appendChild(Se,fe){(Dt(Se)?Se.content:Se).appendChild(fe)}insertBefore(Se,fe,ze){Se&&(Dt(Se)?Se.content:Se).insertBefore(fe,ze)}removeChild(Se,fe){Se&&Se.removeChild(fe)}selectRootElement(Se,fe){let ze="string"==typeof Se?document.querySelector(Se):Se;if(!ze)throw new Error(`The selector "${Se}" did not match any elements`);return fe||(ze.textContent=""),ze}parentNode(Se){return Se.parentNode}nextSibling(Se){return Se.nextSibling}setAttribute(Se,fe,ze,ut){if(ut){fe=ut+":"+fe;const Nt=Ne[ut];Nt?Se.setAttributeNS(Nt,fe,ze):Se.setAttribute(fe,ze)}else Se.setAttribute(fe,ze)}removeAttribute(Se,fe,ze){if(ze){const ut=Ne[ze];ut?Se.removeAttributeNS(ut,fe):Se.removeAttribute(`${ze}:${fe}`)}else Se.removeAttribute(fe)}addClass(Se,fe){Se.classList.add(fe)}removeClass(Se,fe){Se.classList.remove(fe)}setStyle(Se,fe,ze,ut){ut&(s.JOm.DashCase|s.JOm.Important)?Se.style.setProperty(fe,ze,ut&s.JOm.Important?"important":""):Se.style[fe]=ze}removeStyle(Se,fe,ze){ze&s.JOm.DashCase?Se.style.removeProperty(fe):Se.style[fe]=""}setProperty(Se,fe,ze){Se[fe]=ze}setValue(Se,fe){Se.nodeValue=fe}listen(Se,fe,ze){return"string"==typeof Se?this.eventManager.addGlobalEventListener(Se,fe,qe(ze)):this.eventManager.addEventListener(Se,fe,qe(ze))}}function Dt(Te){return"TEMPLATE"===Te.tagName&&void 0!==Te.content}class Tt extends Ee{constructor(Se,fe,ze,ut){super(Se),this.component=ze;const Nt=At(ut+"-"+ze.id,ze.styles,[]);fe.addStyles(Nt),this.contentAttr=function ot(Te){return Ze.replace(te,Te)}(ut+"-"+ze.id),this.hostAttr=function lt(Te){return Ie.replace(te,Te)}(ut+"-"+ze.id)}applyToHost(Se){super.setAttribute(Se,this.hostAttr,"")}createElement(Se,fe){const ze=super.createElement(Se,fe);return super.setAttribute(ze,this.contentAttr,""),ze}}class pt extends Ee{constructor(Se,fe,ze,ut){super(Se),this.sharedStylesHost=fe,this.hostEl=ze,this.shadowRoot=ze.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Nt=At(ut.id,ut.styles,[]);for(let tn=0;tn<Nt.length;tn++){const Yt=document.createElement("style");Yt.textContent=Nt[tn],this.shadowRoot.appendChild(Yt)}}nodeOrShadowRoot(Se){return Se===this.hostEl?this.shadowRoot:Se}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Se,fe){return super.appendChild(this.nodeOrShadowRoot(Se),fe)}insertBefore(Se,fe,ze){return super.insertBefore(this.nodeOrShadowRoot(Se),fe,ze)}removeChild(Se,fe){return super.removeChild(this.nodeOrShadowRoot(Se),fe)}parentNode(Se){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Se)))}}let Be=(()=>{class Te extends w{constructor(fe){super(fe)}supports(fe){return!0}addEventListener(fe,ze,ut){return fe.addEventListener(ze,ut,!1),()=>this.removeEventListener(fe,ze,ut)}removeEventListener(fe,ze,ut){return fe.removeEventListener(ze,ut)}}return Te.\u0275fac=function(fe){return new(fe||Te)(s.LFG(e.K0))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const ft=["alt","control","meta","shift"],gt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Et={alt:Te=>Te.altKey,control:Te=>Te.ctrlKey,meta:Te=>Te.metaKey,shift:Te=>Te.shiftKey};let Mt=(()=>{class Te extends w{constructor(fe){super(fe)}supports(fe){return null!=Te.parseEventName(fe)}addEventListener(fe,ze,ut){const Nt=Te.parseEventName(ze),tn=Te.eventCallback(Nt.fullKey,ut,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(fe,Nt.domEventName,tn))}static parseEventName(fe){const ze=fe.toLowerCase().split("."),ut=ze.shift();if(0===ze.length||"keydown"!==ut&&"keyup"!==ut)return null;const Nt=Te._normalizeKey(ze.pop());let tn="",Yt=ze.indexOf("code");if(Yt>-1&&(ze.splice(Yt,1),tn="code."),ft.forEach(xi=>{const qt=ze.indexOf(xi);qt>-1&&(ze.splice(qt,1),tn+=xi+".")}),tn+=Nt,0!=ze.length||0===Nt.length)return null;const wn={};return wn.domEventName=ut,wn.fullKey=tn,wn}static matchEventFullKeyCode(fe,ze){let ut=gt[fe.key]||fe.key,Nt="";return ze.indexOf("code.")>-1&&(ut=fe.code,Nt="code."),!(null==ut||!ut)&&(ut=ut.toLowerCase()," "===ut?ut="space":"."===ut&&(ut="dot"),ft.forEach(tn=>{tn!==ut&&(0,Et[tn])(fe)&&(Nt+=tn+".")}),Nt+=ut,Nt===ze)}static eventCallback(fe,ze,ut){return Nt=>{Te.matchEventFullKeyCode(Nt,fe)&&ut.runGuarded(()=>ze(Nt))}}static _normalizeKey(fe){return"esc"===fe?"escape":fe}}return Te.\u0275fac=function(fe){return new(fe||Te)(s.LFG(e.K0))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const Ye=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:e.bD},{provide:s.g9A,useValue:function he(){F.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function We(){return(0,s.RDi)(document),document},deps:[]}]),Oe=new s.OlP(""),Ke=[{provide:s.rWj,useClass:class C{addToWindow(Se){s.dqk.getAngularTestability=(ze,ut=!0)=>{const Nt=Se.findTestabilityInTree(ze,ut);if(null==Nt)throw new Error("Could not find testability for element.");return Nt},s.dqk.getAllAngularTestabilities=()=>Se.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>Se.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(ze=>{const ut=s.dqk.getAllAngularTestabilities();let Nt=ut.length,tn=!1;const Yt=function(wn){tn=tn||wn,Nt--,0==Nt&&ze(tn)};ut.forEach(function(wn){wn.whenStable(Yt)})})}findTestabilityInTree(Se,fe,ze){return null==fe?null:Se.getTestability(fe)??(ze?(0,e.q)().isShadowRoot(fe)?this.findTestabilityInTree(Se,fe.host,!0):this.findTestabilityInTree(Se,fe.parentElement,!0):null)}},deps:[]},{provide:s.lri,useClass:s.dDg,deps:[s.R0b,s.eoX,s.rWj]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b,s.eoX,s.rWj]}],yt=[{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function De(){return new s.qLn},deps:[]},{provide:b,useClass:Be,multi:!0,deps:[e.K0,s.R0b,s.Lbi]},{provide:b,useClass:Mt,multi:!0,deps:[e.K0]},{provide:re,useClass:re,deps:[G,oe,s.AFp]},{provide:s.FYo,useExisting:re},{provide:ee,useExisting:oe},{provide:oe,useClass:oe,deps:[e.K0]},{provide:G,useClass:G,deps:[b,s.R0b]},{provide:e.JF,useClass:U,deps:[]},[]];let Ge=(()=>{class Te{constructor(fe){}static withServerTransition(fe){return{ngModule:Te,providers:[{provide:s.AFp,useValue:fe.appId},{provide:N,useExisting:s.AFp},y]}}}return Te.\u0275fac=function(fe){return new(fe||Te)(s.LFG(Oe,12))},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[...yt,...Ke],imports:[e.ez,s.hGG]}),Te})(),$=(()=>{class Te{constructor(fe){this._doc=fe,this._dom=(0,e.q)()}addTag(fe,ze=!1){return fe?this._getOrCreateElement(fe,ze):null}addTags(fe,ze=!1){return fe?fe.reduce((ut,Nt)=>(Nt&&ut.push(this._getOrCreateElement(Nt,ze)),ut),[]):[]}getTag(fe){return fe&&this._doc.querySelector(`meta[${fe}]`)||null}getTags(fe){if(!fe)return[];const ze=this._doc.querySelectorAll(`meta[${fe}]`);return ze?[].slice.call(ze):[]}updateTag(fe,ze){if(!fe)return null;ze=ze||this._parseSelector(fe);const ut=this.getTag(ze);return ut?this._setMetaElementAttributes(fe,ut):this._getOrCreateElement(fe,!0)}removeTag(fe){this.removeTagElement(this.getTag(fe))}removeTagElement(fe){fe&&this._dom.remove(fe)}_getOrCreateElement(fe,ze=!1){if(!ze){const tn=this._parseSelector(fe),Yt=this.getTags(tn).filter(wn=>this._containsAttributes(fe,wn))[0];if(void 0!==Yt)return Yt}const ut=this._dom.createElement("meta");return this._setMetaElementAttributes(fe,ut),this._doc.getElementsByTagName("head")[0].appendChild(ut),ut}_setMetaElementAttributes(fe,ze){return Object.keys(fe).forEach(ut=>ze.setAttribute(this._getMetaKeyMap(ut),fe[ut])),ze}_parseSelector(fe){const ze=fe.name?"name":"property";return`${ze}="${fe[ze]}"`}_containsAttributes(fe,ze){return Object.keys(fe).every(ut=>ze.getAttribute(this._getMetaKeyMap(ut))===fe[ut])}_getMetaKeyMap(fe){return x[fe]||fe}}return Te.\u0275fac=function(fe){return new(fe||Te)(s.LFG(e.K0))},Te.\u0275prov=s.Yz7({token:Te,factory:function(fe){let ze=null;return ze=fe?new fe:function Y(){return new $((0,s.LFG)(e.K0))}(),ze},providedIn:"root"}),Te})();const x={httpEquiv:"http-equiv"};let q=(()=>{class Te{constructor(fe){this._doc=fe}getTitle(){return this._doc.title}setTitle(fe){this._doc.title=fe||""}}return Te.\u0275fac=function(fe){return new(fe||Te)(s.LFG(e.K0))},Te.\u0275prov=s.Yz7({token:Te,factory:function(fe){let ze=null;return ze=fe?new fe:function ie(){return new q((0,s.LFG)(e.K0))}(),ze},providedIn:"root"}),Te})();typeof window<"u"&&window;let St=(()=>{class Te{}return Te.\u0275fac=function(fe){return new(fe||Te)},Te.\u0275prov=s.Yz7({token:Te,factory:function(fe){let ze=null;return ze=fe?new(fe||Te):s.LFG(mt),ze},providedIn:"root"}),Te})(),mt=(()=>{class Te extends St{constructor(fe){super(),this._doc=fe}sanitize(fe,ze){if(null==ze)return null;switch(fe){case s.q3G.NONE:return ze;case s.q3G.HTML:return(0,s.qzn)(ze,"HTML")?(0,s.z3N)(ze):(0,s.EiD)(this._doc,String(ze)).toString();case s.q3G.STYLE:return(0,s.qzn)(ze,"Style")?(0,s.z3N)(ze):ze;case s.q3G.SCRIPT:if((0,s.qzn)(ze,"Script"))return(0,s.z3N)(ze);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.qzn)(ze,"URL")?(0,s.z3N)(ze):(0,s.mCW)(String(ze));case s.q3G.RESOURCE_URL:if((0,s.qzn)(ze,"ResourceURL"))return(0,s.z3N)(ze);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${fe} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(fe){return(0,s.JVY)(fe)}bypassSecurityTrustStyle(fe){return(0,s.L6k)(fe)}bypassSecurityTrustScript(fe){return(0,s.eBb)(fe)}bypassSecurityTrustUrl(fe){return(0,s.LAX)(fe)}bypassSecurityTrustResourceUrl(fe){return(0,s.pB0)(fe)}}return Te.\u0275fac=function(fe){return new(fe||Te)(s.LFG(e.K0))},Te.\u0275prov=s.Yz7({token:Te,factory:function(fe){let ze=null;return ze=fe?new fe:function He(Te){return new mt(Te.get(e.K0))}(s.LFG(s.zs3)),ze},providedIn:"root"}),Te})()},36690:(Xe,me,h)=>{"use strict";h.d(me,{gz:()=>Li,OD:()=>wr,F0:()=>In,Od:()=>rs,yS:()=>mr,Bz:()=>nl,lC:()=>Rr,eV:()=>Ii});var e=h(94650),s=h(5254),K=h(21086),F=h(591),Z=h(84450),O=h(36053),H=h(61221),z=h(88514),N=h(4843),E=h(61737),y=h(56498),C=h(68896),U=h(71762),b=h(5529),G=h(36895),w=h(24850),ee=h(87545),oe=h(72986),_e=h(1059),Ne=h(92198),te=h(61709),de=h(87224),J=h(21406),Ie=h(2994),Ze=h(27221),ot=h(43489);function lt(g,m){let p=!1;return arguments.length>=2&&(p=!0),function(B){return B.lift(new At(g,m,p))}}class At{constructor(m,p,S=!1){this.accumulator=m,this.seed=p,this.hasSeed=S}call(m,p){return p.subscribe(new qe(m,this.accumulator,this.seed,this.hasSeed))}}class qe extends ot.L{constructor(m,p,S,B){super(m),this.accumulator=p,this._seed=S,this.hasSeed=B,this.index=0}get seed(){return this._seed}set seed(m){this.hasSeed=!0,this._seed=m}_next(m){if(this.hasSeed)return this._tryNext(m);this.seed=m,this.destination.next(m)}_tryNext(m){const p=this.index++;let S;try{S=this.accumulator(this.seed,m,p)}catch(B){this.destination.error(B)}this.seed=S,this.destination.next(S)}}var wt=h(94231);function re(g){return function(p){return 0===g?(0,C.c)():p.lift(new Ee(g))}}class Ee{constructor(m){if(this.total=m,this.total<0)throw new wt.W}call(m,p){return p.subscribe(new Ve(m,this.total))}}class Ve extends ot.L{constructor(m,p){super(m),this.total=p,this.ring=new Array,this.count=0}_next(m){const p=this.ring,S=this.total,B=this.count++;p.length<S?p.push(m):p[B%S]=m}_complete(){const m=this.destination;let p=this.count;if(p>0){const S=this.count>=this.total?this.total:this.count,B=this.ring;for(let ce=0;ce<S;ce++){const be=p++%S;m.next(B[be])}}m.complete()}}var Le=h(34907),Dt=h(47314),Tt=h(35379);function pt(g,m){const p=arguments.length>=2;return S=>S.pipe(g?(0,Ne.h)((B,ce)=>g(B,ce,S)):Tt.y,re(1),p?(0,Dt.d)(m):(0,Le.T)(()=>new Z.K))}class ft{constructor(m,p){this.predicate=m,this.inclusive=p}call(m,p){return p.subscribe(new gt(m,this.predicate,this.inclusive))}}class gt extends ot.L{constructor(m,p,S){super(m),this.predicate=p,this.inclusive=S,this.index=0}_next(m){const p=this.destination;let S;try{S=this.predicate(m,this.index++)}catch(B){return void p.error(B)}this.nextOrComplete(m,S)}nextOrComplete(m,p){const S=this.destination;Boolean(p)?S.next(m):(this.inclusive&&S.next(m),S.complete())}}class Mt{constructor(m){this.value=m}call(m,p){return p.subscribe(new Qt(m,this.value))}}class Qt extends ot.L{constructor(m,p){super(m),this.value=p}_next(m){this.destination.next(this.value)}}var ye=h(42654);function Ae(g){return m=>m.lift(new A(g))}class A{constructor(m){this.callback=m}call(m,p){return p.subscribe(new j(m,this.callback))}}class j extends ot.L{constructor(m,p){super(m),this.add(new ye.w(p))}}var he=h(74327),De=h(89146),We=h(11481);const Qe="primary",Ye=Symbol("RouteTitle");class Oe{constructor(m){this.params=m||{}}has(m){return Object.prototype.hasOwnProperty.call(this.params,m)}get(m){if(this.has(m)){const p=this.params[m];return Array.isArray(p)?p[0]:p}return null}getAll(m){if(this.has(m)){const p=this.params[m];return Array.isArray(p)?p:[p]}return[]}get keys(){return Object.keys(this.params)}}function Ke(g){return new Oe(g)}function yt(g,m,p){const S=p.path.split("/");if(S.length>g.length||"full"===p.pathMatch&&(m.hasChildren()||S.length<g.length))return null;const B={};for(let ce=0;ce<S.length;ce++){const be=S[ce],xe=g[ce];if(be.startsWith(":"))B[be.substring(1)]=xe;else if(be!==xe.path)return null}return{consumed:g.slice(0,S.length),posParams:B}}function Y(g,m){const p=g?Object.keys(g):void 0,S=m?Object.keys(m):void 0;if(!p||!S||p.length!=S.length)return!1;let B;for(let ce=0;ce<p.length;ce++)if(B=p[ce],!$(g[B],m[B]))return!1;return!0}function $(g,m){if(Array.isArray(g)&&Array.isArray(m)){if(g.length!==m.length)return!1;const p=[...g].sort(),S=[...m].sort();return p.every((B,ce)=>S[ce]===B)}return g===m}function x(g){return Array.prototype.concat.apply([],g)}function ie(g){return g.length>0?g[g.length-1]:null}function Q(g,m){for(const p in g)g.hasOwnProperty(p)&&m(g[p],p)}function ne(g){return(0,e.CqO)(g)?g:(0,e.QGY)(g)?(0,s.D)(Promise.resolve(g)):(0,K.of)(g)}const _t={exact:function jt(g,m,p){if(!Qn(g.segments,m.segments)||!zt(g.segments,m.segments,p)||g.numberOfChildren!==m.numberOfChildren)return!1;for(const S in m.children)if(!g.children[S]||!jt(g.children[S],m.children[S],p))return!1;return!0},subset:On},rt={exact:function ct(g,m){return Y(g,m)},subset:function Kt(g,m){return Object.keys(m).length<=Object.keys(g).length&&Object.keys(m).every(p=>$(g[p],m[p]))},ignored:()=>!0};function It(g,m,p){return _t[p.paths](g.root,m.root,p.matrixParams)&&rt[p.queryParams](g.queryParams,m.queryParams)&&!("exact"===p.fragment&&g.fragment!==m.fragment)}function On(g,m,p){return sn(g,m,m.segments,p)}function sn(g,m,p,S){if(g.segments.length>p.length){const B=g.segments.slice(0,p.length);return!(!Qn(B,p)||m.hasChildren()||!zt(B,p,S))}if(g.segments.length===p.length){if(!Qn(g.segments,p)||!zt(g.segments,p,S))return!1;for(const B in m.children)if(!g.children[B]||!On(g.children[B],m.children[B],S))return!1;return!0}{const B=p.slice(0,g.segments.length),ce=p.slice(g.segments.length);return!!(Qn(g.segments,B)&&zt(g.segments,B,S)&&g.children[Qe])&&sn(g.children[Qe],m,ce,S)}}function zt(g,m,p){return m.every((S,B)=>rt[p](g[B].parameters,S.parameters))}class an{constructor(m,p,S){this.root=m,this.queryParams=p,this.fragment=S}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ke(this.queryParams)),this._queryParamMap}toString(){return _i.serialize(this)}}class en{constructor(m,p){this.segments=m,this.children=p,this.parent=null,Q(p,(S,B)=>S.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bi(this)}}class rn{constructor(m,p){this.path=m,this.parameters=p}get parameterMap(){return this._parameterMap||(this._parameterMap=Ke(this.parameters)),this._parameterMap}toString(){return Te(this)}}function Qn(g,m){return g.length===m.length&&g.every((p,S)=>p.path===m[S].path)}let wi=(()=>{class g{}return g.\u0275fac=function(p){return new(p||g)},g.\u0275prov=e.Yz7({token:g,factory:function(){return new Hi},providedIn:"root"}),g})();class Hi{parse(m){const p=new xi(m);return new an(p.parseRootSegment(),p.parseQueryParams(),p.parseFragment())}serialize(m){const p=`/${Bn(m.root,!0)}`,S=function fe(g){const m=Object.keys(g).map(p=>{const S=g[p];return Array.isArray(S)?S.map(B=>`${Re(p)}=${Re(B)}`).join("&"):`${Re(p)}=${Re(S)}`}).filter(p=>!!p);return m.length?`?${m.join("&")}`:""}(m.queryParams);return`${p}${S}${"string"==typeof m.fragment?`#${function St(g){return encodeURI(g)}(m.fragment)}`:""}`}}const _i=new Hi;function bi(g){return g.segments.map(m=>Te(m)).join("/")}function Bn(g,m){if(!g.hasChildren())return bi(g);if(m){const p=g.children[Qe]?Bn(g.children[Qe],!1):"",S=[];return Q(g.children,(B,ce)=>{ce!==Qe&&S.push(`${ce}:${Bn(B,!1)}`)}),S.length>0?`${p}(${S.join("//")})`:p}{const p=function fi(g,m){let p=[];return Q(g.children,(S,B)=>{B===Qe&&(p=p.concat(m(S,B)))}),Q(g.children,(S,B)=>{B!==Qe&&(p=p.concat(m(S,B)))}),p}(g,(S,B)=>B===Qe?[Bn(g.children[Qe],!1)]:[`${B}:${Bn(S,!1)}`]);return 1===Object.keys(g.children).length&&null!=g.children[Qe]?`${bi(g)}/${p[0]}`:`${bi(g)}/(${p.join("//")})`}}function nn(g){return encodeURIComponent(g).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Re(g){return nn(g).replace(/%3B/gi,";")}function He(g){return nn(g).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function mt(g){return decodeURIComponent(g)}function $t(g){return mt(g.replace(/\+/g,"%20"))}function Te(g){return`${He(g.path)}${function Se(g){return Object.keys(g).map(m=>`;${He(m)}=${He(g[m])}`).join("")}(g.parameters)}`}const ze=/^[^\/()?;=#]+/;function ut(g){const m=g.match(ze);return m?m[0]:""}const Nt=/^[^=?&#]+/,Yt=/^[^&#]+/;class xi{constructor(m){this.url=m,this.remaining=m}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new en([],{}):new en([],this.parseChildren())}parseQueryParams(){const m={};if(this.consumeOptional("?"))do{this.parseQueryParam(m)}while(this.consumeOptional("&"));return m}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const m=[];for(this.peekStartsWith("(")||m.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),m.push(this.parseSegment());let p={};this.peekStartsWith("/(")&&(this.capture("/"),p=this.parseParens(!0));let S={};return this.peekStartsWith("(")&&(S=this.parseParens(!1)),(m.length>0||Object.keys(p).length>0)&&(S[Qe]=new en(m,p)),S}parseSegment(){const m=ut(this.remaining);if(""===m&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(m),new rn(mt(m),this.parseMatrixParams())}parseMatrixParams(){const m={};for(;this.consumeOptional(";");)this.parseParam(m);return m}parseParam(m){const p=ut(this.remaining);if(!p)return;this.capture(p);let S="";if(this.consumeOptional("=")){const B=ut(this.remaining);B&&(S=B,this.capture(S))}m[mt(p)]=mt(S)}parseQueryParam(m){const p=function tn(g){const m=g.match(Nt);return m?m[0]:""}(this.remaining);if(!p)return;this.capture(p);let S="";if(this.consumeOptional("=")){const be=function wn(g){const m=g.match(Yt);return m?m[0]:""}(this.remaining);be&&(S=be,this.capture(S))}const B=$t(p),ce=$t(S);if(m.hasOwnProperty(B)){let be=m[B];Array.isArray(be)||(be=[be],m[B]=be),be.push(ce)}else m[B]=ce}parseParens(m){const p={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const S=ut(this.remaining),B=this.remaining[S.length];if("/"!==B&&")"!==B&&";"!==B)throw new e.vHH(4010,!1);let ce;S.indexOf(":")>-1?(ce=S.slice(0,S.indexOf(":")),this.capture(ce),this.capture(":")):m&&(ce=Qe);const be=this.parseChildren();p[ce]=1===Object.keys(be).length?be[Qe]:new en([],be),this.consumeOptional("//")}return p}peekStartsWith(m){return this.remaining.startsWith(m)}consumeOptional(m){return!!this.peekStartsWith(m)&&(this.remaining=this.remaining.substring(m.length),!0)}capture(m){if(!this.consumeOptional(m))throw new e.vHH(4011,!1)}}function qt(g){return g.segments.length>0?new en([],{[Qe]:g}):g}function oi(g){const m={};for(const S of Object.keys(g.children)){const ce=oi(g.children[S]);(ce.segments.length>0||ce.hasChildren())&&(m[S]=ce)}return function ir(g){if(1===g.numberOfChildren&&g.children[Qe]){const m=g.children[Qe];return new en(g.segments.concat(m.segments),m.children)}return g}(new en(g.segments,m))}function Ai(g){return g instanceof an}function Si(g,m,p,S,B){var ce;if(0===p.length)return bn(m.root,m.root,m.root,S,B);const be=function Yi(g){if("string"==typeof g[0]&&1===g.length&&"/"===g[0])return new rr(!0,0,g);let m=0,p=!1;const S=g.reduce((B,ce,be)=>{if("object"==typeof ce&&null!=ce){if(ce.outlets){const xe={};return Q(ce.outlets,(Je,Pt)=>{xe[Pt]="string"==typeof Je?Je.split("/"):Je}),[...B,{outlets:xe}]}if(ce.segmentPath)return[...B,ce.segmentPath]}return"string"!=typeof ce?[...B,ce]:0===be?(ce.split("/").forEach((xe,Je)=>{0==Je&&"."===xe||(0==Je&&""===xe?p=!0:".."===xe?m++:""!=xe&&B.push(xe))}),B):[...B,ce]},[]);return new rr(p,m,S)}(p);if(be.toRoot())return bn(m.root,m.root,new en([],{}),S,B);const Je=function xe(Xt){var Ft;const dn=function Ni(g,m,p,S){if(g.isAbsolute)return new Wi(m.root,!0,0);if(-1===S)return new Wi(p,p===m.root,0);return function Ji(g,m,p){let S=g,B=m,ce=p;for(;ce>B;){if(ce-=B,S=S.parent,!S)throw new e.vHH(4005,!1);B=S.segments.length}return new Wi(S,!1,B-ce)}(p,S+(Ri(g.commands[0])?0:1),g.numberOfDoubleDots)}(be,m,null===(Ft=g.snapshot)||void 0===Ft?void 0:Ft._urlSegment,Xt),Rn=dn.processChildren?Zn(dn.segmentGroup,dn.index,be.commands):Ur(dn.segmentGroup,dn.index,be.commands);return bn(m.root,dn.segmentGroup,Rn,S,B)}(null===(ce=g.snapshot)||void 0===ce?void 0:ce._lastPathIndex);return Je}function Ri(g){return"object"==typeof g&&null!=g&&!g.outlets&&!g.segmentPath}function si(g){return"object"==typeof g&&null!=g&&g.outlets}function bn(g,m,p,S,B){let be,ce={};S&&Q(S,(Je,Pt)=>{ce[Pt]=Array.isArray(Je)?Je.map(Xt=>`${Xt}`):`${Je}`}),be=g===m?p:Or(g,m,p);const xe=qt(oi(be));return new an(xe,ce,B)}function Or(g,m,p){const S={};return Q(g.children,(B,ce)=>{S[ce]=B===m?p:Or(B,m,p)}),new en(g.segments,S)}class rr{constructor(m,p,S){if(this.isAbsolute=m,this.numberOfDoubleDots=p,this.commands=S,m&&S.length>0&&Ri(S[0]))throw new e.vHH(4003,!1);const B=S.find(si);if(B&&B!==ie(S))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Wi{constructor(m,p,S){this.segmentGroup=m,this.processChildren=p,this.index=S}}function Ur(g,m,p){if(g||(g=new en([],{})),0===g.segments.length&&g.hasChildren())return Zn(g,m,p);const S=function Ei(g,m,p){let S=0,B=m;const ce={match:!1,pathIndex:0,commandIndex:0};for(;B<g.segments.length;){if(S>=p.length)return ce;const be=g.segments[B],xe=p[S];if(si(xe))break;const Je=`${xe}`,Pt=S<p.length-1?p[S+1]:null;if(B>0&&void 0===Je)break;if(Je&&Pt&&"object"==typeof Pt&&void 0===Pt.outlets){if(!Di(Je,Pt,be))return ce;S+=2}else{if(!Di(Je,{},be))return ce;S++}B++}return{match:!0,pathIndex:B,commandIndex:S}}(g,m,p),B=p.slice(S.commandIndex);if(S.match&&S.pathIndex<g.segments.length){const ce=new en(g.segments.slice(0,S.pathIndex),{});return ce.children[Qe]=new en(g.segments.slice(S.pathIndex),g.children),Zn(ce,0,B)}return S.match&&0===B.length?new en(g.segments,{}):S.match&&!g.hasChildren()?Qi(g,m,p):S.match?Zn(g,0,B):Qi(g,m,p)}function Zn(g,m,p){if(0===p.length)return new en(g.segments,{});{const S=function mi(g){return si(g[0])?g[0].outlets:{[Qe]:g}}(p),B={};return Q(S,(ce,be)=>{"string"==typeof ce&&(ce=[ce]),null!==ce&&(B[be]=Ur(g.children[be],m,ce))}),Q(g.children,(ce,be)=>{void 0===S[be]&&(B[be]=ce)}),new en(g.segments,B)}}function Qi(g,m,p){const S=g.segments.slice(0,m);let B=0;for(;B<p.length;){const ce=p[B];if(si(ce)){const Je=qi(ce.outlets);return new en(S,Je)}if(0===B&&Ri(p[0])){S.push(new rn(g.segments[m].path,Vr(p[0]))),B++;continue}const be=si(ce)?ce.outlets[Qe]:`${ce}`,xe=B<p.length-1?p[B+1]:null;be&&xe&&Ri(xe)?(S.push(new rn(be,Vr(xe))),B+=2):(S.push(new rn(be,{})),B++)}return new en(S,{})}function qi(g){const m={};return Q(g,(p,S)=>{"string"==typeof p&&(p=[p]),null!==p&&(m[S]=Qi(new en([],{}),0,p))}),m}function Vr(g){const m={};return Q(g,(p,S)=>m[S]=`${p}`),m}function Di(g,m,p){return g==p.path&&Y(m,p.parameters)}class or{constructor(m,p){this.id=m,this.url=p}}class wr extends or{constructor(m,p,S="imperative",B=null){super(m,p),this.type=0,this.navigationTrigger=S,this.restoredState=B}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Xi extends or{constructor(m,p,S){super(m,p),this.urlAfterRedirects=S,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class jr extends or{constructor(m,p,S,B){super(m,p),this.reason=S,this.code=B,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vs extends or{constructor(m,p,S,B){super(m,p),this.error=S,this.target=B,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ui extends or{constructor(m,p,S,B){super(m,p),this.urlAfterRedirects=S,this.state=B,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zo extends or{constructor(m,p,S,B){super(m,p),this.urlAfterRedirects=S,this.state=B,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Go extends or{constructor(m,p,S,B,ce){super(m,p),this.urlAfterRedirects=S,this.state=B,this.shouldActivate=ce,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Zo extends or{constructor(m,p,S,B){super(m,p),this.urlAfterRedirects=S,this.state=B,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ys extends or{constructor(m,p,S,B){super(m,p),this.urlAfterRedirects=S,this.state=B,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mo{constructor(m){this.route=m,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ko{constructor(m){this.route=m,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Po{constructor(m){this.snapshot=m,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lo{constructor(m){this.snapshot=m,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cs{constructor(m){this.snapshot=m,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yo{constructor(m){this.snapshot=m,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vo{constructor(m,p,S){this.routerEvent=m,this.position=p,this.anchor=S,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class co{constructor(m){this._root=m}get root(){return this._root.value}parent(m){const p=this.pathFromRoot(m);return p.length>1?p[p.length-2]:null}children(m){const p=Nr(m,this._root);return p?p.children.map(S=>S.value):[]}firstChild(m){const p=Nr(m,this._root);return p&&p.children.length>0?p.children[0].value:null}siblings(m){const p=zr(m,this._root);return p.length<2?[]:p[p.length-2].children.map(B=>B.value).filter(B=>B!==m)}pathFromRoot(m){return zr(m,this._root).map(p=>p.value)}}function Nr(g,m){if(g===m.value)return m;for(const p of m.children){const S=Nr(g,p);if(S)return S}return null}function zr(g,m){if(g===m.value)return[m];for(const p of m.children){const S=zr(g,p);if(S.length)return S.unshift(m),S}return[]}class er{constructor(m,p){this.value=m,this.children=p}toString(){return`TreeNode(${this.value})`}}function tr(g){const m={};return g&&g.children.forEach(p=>m[p.value.outlet]=p),m}class ai extends co{constructor(m,p){super(m),this.snapshot=p,Xr(this,m)}toString(){return this.snapshot.toString()}}function Ir(g,m){const p=function uo(g,m){const be=new dr([],{},{},"",{},Qe,m,null,g.root,-1,{});return new Pr("",new er(be,[]))}(g,m),S=new F.X([new rn("",{})]),B=new F.X({}),ce=new F.X({}),be=new F.X({}),xe=new F.X(""),Je=new Li(S,B,be,xe,ce,Qe,m,p.root);return Je.snapshot=p.root,new ai(new er(Je,[]),p)}class Li{constructor(m,p,S,B,ce,be,xe,Je){var Pt,Xt;this.url=m,this.params=p,this.queryParams=S,this.fragment=B,this.data=ce,this.outlet=be,this.component=xe,this.title=null!==(Pt=null===(Xt=this.data)||void 0===Xt?void 0:Xt.pipe((0,w.U)(Ft=>Ft[Ye])))&&void 0!==Pt?Pt:(0,K.of)(void 0),this._futureSnapshot=Je}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,w.U)(m=>Ke(m)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,w.U)(m=>Ke(m)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gr(g,m="emptyOnly"){const p=g.pathFromRoot;let S=0;if("always"!==m)for(S=p.length-1;S>=1;){const B=p[S],ce=p[S-1];if(B.routeConfig&&""===B.routeConfig.path)S--;else{if(ce.component)break;S--}}return function sr(g){return g.reduce((m,p)=>{var S;return{params:{...m.params,...p.params},data:{...m.data,...p.data},resolve:{...p.data,...m.resolve,...null===(S=p.routeConfig)||void 0===S?void 0:S.data,...p._resolvedData}}},{params:{},data:{},resolve:{}})}(p.slice(S))}class dr{constructor(m,p,S,B,ce,be,xe,Je,Pt,Xt,Ft,dn){var Rn;this.url=m,this.params=p,this.queryParams=S,this.fragment=B,this.data=ce,this.outlet=be,this.component=xe,this.title=null===(Rn=this.data)||void 0===Rn?void 0:Rn[Ye],this.routeConfig=Je,this._urlSegment=Pt,this._lastPathIndex=Xt,this._correctedLastPathIndex=dn??Xt,this._resolve=Ft}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ke(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ke(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(S=>S.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Pr extends co{constructor(m,p){super(p),this.url=m,Xr(this,p)}toString(){return eo(this._root)}}function Xr(g,m){m.value._routerState=g,m.children.forEach(p=>Xr(g,p))}function eo(g){const m=g.children.length>0?` { ${g.children.map(eo).join(", ")} } `:"";return`${g.value}${m}`}function xr(g){if(g.snapshot){const m=g.snapshot,p=g._futureSnapshot;g.snapshot=p,Y(m.queryParams,p.queryParams)||g.queryParams.next(p.queryParams),m.fragment!==p.fragment&&g.fragment.next(p.fragment),Y(m.params,p.params)||g.params.next(p.params),function Ge(g,m){if(g.length!==m.length)return!1;for(let p=0;p<g.length;++p)if(!Y(g[p],m[p]))return!1;return!0}(m.url,p.url)||g.url.next(p.url),Y(m.data,p.data)||g.data.next(p.data)}else g.snapshot=g._futureSnapshot,g.data.next(g._futureSnapshot.data)}function ri(g,m){const p=Y(g.params,m.params)&&function Jn(g,m){return Qn(g,m)&&g.every((p,S)=>Y(p.parameters,m[S].parameters))}(g.url,m.url);return p&&!(!g.parent!=!m.parent)&&(!g.parent||ri(g.parent,m.parent))}function Zr(g,m,p){if(p&&g.shouldReuseRoute(m.value,p.value.snapshot)){const S=p.value;S._futureSnapshot=m.value;const B=function yo(g,m,p){return m.children.map(S=>{for(const B of p.children)if(g.shouldReuseRoute(S.value,B.value.snapshot))return Zr(g,S,B);return Zr(g,S)})}(g,m,p);return new er(S,B)}{if(g.shouldAttach(m.value)){const ce=g.retrieve(m.value);if(null!==ce){const be=ce.route;return be.value._futureSnapshot=m.value,be.children=m.children.map(xe=>Zr(g,xe)),be}}const S=function Kr(g){return new Li(new F.X(g.url),new F.X(g.params),new F.X(g.queryParams),new F.X(g.fragment),new F.X(g.data),g.outlet,g.component,g)}(m.value),B=m.children.map(ce=>Zr(g,ce));return new er(S,B)}}const Wo="ngNavigationCancelingError";function Kn(g,m){const{redirectTo:p,navigationBehaviorOptions:S}=Ai(m)?{redirectTo:m,navigationBehaviorOptions:void 0}:m,B=xo(!1,0,m);return B.url=p,B.navigationBehaviorOptions=S,B}function xo(g,m,p){const S=new Error("NavigationCancelingError: "+(g||""));return S[Wo]=!0,S.cancellationCode=m,p&&(S.url=p),S}function to(g){return ki(g)&&Ai(g.url)}function ki(g){return g&&g[Wo]}class ni{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Sr,this.attachRef=null}}let Sr=(()=>{class g{constructor(){this.contexts=new Map}onChildOutletCreated(p,S){const B=this.getOrCreateContext(p);B.outlet=S,this.contexts.set(p,B)}onChildOutletDestroyed(p){const S=this.getContext(p);S&&(S.outlet=null,S.attachRef=null)}onOutletDeactivated(){const p=this.contexts;return this.contexts=new Map,p}onOutletReAttached(p){this.contexts=p}getOrCreateContext(p){let S=this.getContext(p);return S||(S=new ni,this.contexts.set(p,S)),S}getContext(p){return this.contexts.get(p)||null}}return g.\u0275fac=function(p){return new(p||g)},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();const hr=!1;let Rr=(()=>{class g{constructor(p,S,B,ce,be){this.parentContexts=p,this.location=S,this.changeDetector=ce,this.environmentInjector=be,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=B||Qe,p.onChildOutletCreated(this.name,this)}ngOnDestroy(){var p;(null===(p=this.parentContexts.getContext(this.name))||void 0===p?void 0:p.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const p=this.parentContexts.getContext(this.name);p&&p.route&&(p.attachRef?this.attach(p.attachRef,p.route):this.activateWith(p.route,p.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,hr);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,hr);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,hr);this.location.detach();const p=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(p.instance),p}attach(p,S){this.activated=p,this._activatedRoute=S,this.location.insert(p.hostView),this.attachEvents.emit(p.instance)}deactivate(){if(this.activated){const p=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(p)}}activateWith(p,S){if(this.isActivated)throw new e.vHH(4013,hr);this._activatedRoute=p;const B=this.location,be=p._futureSnapshot.component,xe=this.parentContexts.getOrCreateContext(this.name).children,Je=new Dn(p,xe,B.injector);if(S&&function Co(g){return!!g.resolveComponentFactory}(S)){const Pt=S.resolveComponentFactory(be);this.activated=B.createComponent(Pt,B.length,Je)}else this.activated=B.createComponent(be,{index:B.length,injector:Je,environmentInjector:S??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return g.\u0275fac=function(p){return new(p||g)(e.Y36(Sr),e.Y36(e.s_b),e.$8M("name"),e.Y36(e.sBO),e.Y36(e.lqb))},g.\u0275dir=e.lG2({type:g,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),g})();class Dn{constructor(m,p,S){this.route=m,this.childContexts=p,this.parent=S}get(m,p){return m===Li?this.route:m===Sr?this.childContexts:this.parent.get(m,p)}}let ar=(()=>{class g{}return g.\u0275fac=function(p){return new(p||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["ng-component"]],standalone:!0,features:[e.jDz],decls:1,vars:0,template:function(p,S){1&p&&e._UZ(0,"router-outlet")},dependencies:[Rr],encapsulation:2}),g})();function po(g,m){var p;return g.providers&&!g._injector&&(g._injector=(0,e.MMx)(g.providers,m,`Route: ${g.path}`)),null!==(p=g._injector)&&void 0!==p?p:m}function io(g){const m=g.children&&g.children.map(io),p=m?{...g,children:m}:{...g};return!p.component&&!p.loadComponent&&(m||p.loadChildren)&&p.outlet&&p.outlet!==Qe&&(p.component=ar),p}function li(g){return g.outlet||Qe}function Qo(g,m){const p=g.filter(S=>li(S)===m);return p.push(...g.filter(S=>li(S)!==m)),p}function ro(g){var m;if(!g)return null;if(null!==(m=g.routeConfig)&&void 0!==m&&m._injector)return g.routeConfig._injector;for(let p=g.parent;p;p=p.parent){const S=p.routeConfig;if(null!=S&&S._loadedInjector)return S._loadedInjector;if(null!=S&&S._injector)return S._injector}return null}class fn{constructor(m,p,S,B){this.routeReuseStrategy=m,this.futureState=p,this.currState=S,this.forwardEvent=B}activate(m){const p=this.futureState._root,S=this.currState?this.currState._root:null;this.deactivateChildRoutes(p,S,m),xr(this.futureState.root),this.activateChildRoutes(p,S,m)}deactivateChildRoutes(m,p,S){const B=tr(p);m.children.forEach(ce=>{const be=ce.value.outlet;this.deactivateRoutes(ce,B[be],S),delete B[be]}),Q(B,(ce,be)=>{this.deactivateRouteAndItsChildren(ce,S)})}deactivateRoutes(m,p,S){const B=m.value,ce=p?p.value:null;if(B===ce)if(B.component){const be=S.getContext(B.outlet);be&&this.deactivateChildRoutes(m,p,be.children)}else this.deactivateChildRoutes(m,p,S);else ce&&this.deactivateRouteAndItsChildren(p,S)}deactivateRouteAndItsChildren(m,p){m.value.component&&this.routeReuseStrategy.shouldDetach(m.value.snapshot)?this.detachAndStoreRouteSubtree(m,p):this.deactivateRouteAndOutlet(m,p)}detachAndStoreRouteSubtree(m,p){const S=p.getContext(m.value.outlet),B=S&&m.value.component?S.children:p,ce=tr(m);for(const be of Object.keys(ce))this.deactivateRouteAndItsChildren(ce[be],B);if(S&&S.outlet){const be=S.outlet.detach(),xe=S.children.onOutletDeactivated();this.routeReuseStrategy.store(m.value.snapshot,{componentRef:be,route:m,contexts:xe})}}deactivateRouteAndOutlet(m,p){const S=p.getContext(m.value.outlet),B=S&&m.value.component?S.children:p,ce=tr(m);for(const be of Object.keys(ce))this.deactivateRouteAndItsChildren(ce[be],B);S&&S.outlet&&(S.outlet.deactivate(),S.children.onOutletDeactivated(),S.attachRef=null,S.resolver=null,S.route=null)}activateChildRoutes(m,p,S){const B=tr(p);m.children.forEach(ce=>{this.activateRoutes(ce,B[ce.value.outlet],S),this.forwardEvent(new Yo(ce.value.snapshot))}),m.children.length&&this.forwardEvent(new lo(m.value.snapshot))}activateRoutes(m,p,S){const B=m.value,ce=p?p.value:null;if(xr(B),B===ce)if(B.component){const xe=S.getOrCreateContext(B.outlet);this.activateChildRoutes(m,p,xe.children)}else this.activateChildRoutes(m,p,S);else if(B.component){const xe=S.getOrCreateContext(B.outlet);if(this.routeReuseStrategy.shouldAttach(B.snapshot)){const Je=this.routeReuseStrategy.retrieve(B.snapshot);this.routeReuseStrategy.store(B.snapshot,null),xe.children.onOutletReAttached(Je.contexts),xe.attachRef=Je.componentRef,xe.route=Je.route.value,xe.outlet&&xe.outlet.attach(Je.componentRef,Je.route.value),xr(Je.route.value),this.activateChildRoutes(m,null,xe.children)}else{var be;const Je=ro(B.snapshot),Pt=null!==(be=Je?.get(e._Vd))&&void 0!==be?be:null;xe.attachRef=null,xe.route=B,xe.resolver=Pt,xe.injector=Je,xe.outlet&&xe.outlet.activateWith(B,xe.injector),this.activateChildRoutes(m,null,xe.children)}}else this.activateChildRoutes(m,null,S)}}class qo{constructor(m){this.path=m,this.route=this.path[this.path.length-1]}}class oo{constructor(m,p){this.component=m,this.route=p}}function ci(g,m,p){const S=g._root;return D(S,m?m._root:null,p,[S.value])}function I(g,m){const p=Symbol(),S=m.get(g,p);return S===p?"function"!=typeof g||(0,e.Z0I)(g)?m.get(g):g:S}function D(g,m,p,S,B={canDeactivateChecks:[],canActivateChecks:[]}){const ce=tr(m);return g.children.forEach(be=>{(function ue(g,m,p,S,B={canDeactivateChecks:[],canActivateChecks:[]}){const ce=g.value,be=m?m.value:null,xe=p?p.getContext(g.value.outlet):null;if(be&&ce.routeConfig===be.routeConfig){const Je=function it(g,m,p){if("function"==typeof p)return p(g,m);switch(p){case"pathParamsChange":return!Qn(g.url,m.url);case"pathParamsOrQueryParamsChange":return!Qn(g.url,m.url)||!Y(g.queryParams,m.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ri(g,m)||!Y(g.queryParams,m.queryParams);default:return!ri(g,m)}}(be,ce,ce.routeConfig.runGuardsAndResolvers);Je?B.canActivateChecks.push(new qo(S)):(ce.data=be.data,ce._resolvedData=be._resolvedData),D(g,m,ce.component?xe?xe.children:null:p,S,B),Je&&xe&&xe.outlet&&xe.outlet.isActivated&&B.canDeactivateChecks.push(new oo(xe.outlet.component,be))}else be&&Ht(m,xe,B),B.canActivateChecks.push(new qo(S)),D(g,null,ce.component?xe?xe.children:null:p,S,B)})(be,ce[be.value.outlet],p,S.concat([be.value]),B),delete ce[be.value.outlet]}),Q(ce,(be,xe)=>Ht(be,p.getContext(xe),B)),B}function Ht(g,m,p){const S=tr(g),B=g.value;Q(S,(ce,be)=>{Ht(ce,B.component?m?m.children.getContext(be):null:m,p)}),p.canDeactivateChecks.push(new oo(B.component&&m&&m.outlet&&m.outlet.isActivated?m.outlet.component:null,B))}function qn(g){return"function"==typeof g}function ko(g){return g instanceof Z.K||"EmptyError"===g?.name}const Xo=Symbol("INITIAL_VALUE");function So(){return(0,ee.w)(g=>(0,O.aj)(g.map(m=>m.pipe((0,oe.q)(1),(0,_e.O)(Xo)))).pipe((0,w.U)(m=>{for(const p of m)if(!0!==p){if(p===Xo)return Xo;if(!1===p||p instanceof an)return p}return!0}),(0,Ne.h)(m=>m!==Xo),(0,oe.q)(1)))}function ts(g){return(0,N.z)((0,Ie.b)(m=>{if(Ai(m))throw Kn(0,m)}),(0,w.U)(m=>!0===m))}const X={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function P(g,m,p,S,B){const ce=ae(g,m,p);return ce.matched?function M(g,m,p,S){const B=m.canMatch;if(!B||0===B.length)return(0,K.of)(!0);const ce=B.map(be=>{const xe=I(be,g);return ne(function fo(g){return g&&qn(g.canMatch)}(xe)?xe.canMatch(m,p):g.runInContext(()=>xe(m,p)))});return(0,K.of)(ce).pipe(So(),ts())}(S=po(m,S),m,p).pipe((0,w.U)(be=>!0===be?ce:{...X})):(0,K.of)(ce)}function ae(g,m,p){var S;if(""===m.path)return"full"===m.pathMatch&&(g.hasChildren()||p.length>0)?{...X}:{matched:!0,consumedSegments:[],remainingSegments:p,parameters:{},positionalParamSegments:{}};const ce=(m.matcher||yt)(p,g,m);if(!ce)return{...X};const be={};Q(ce.posParams,(Je,Pt)=>{be[Pt]=Je.path});const xe=ce.consumed.length>0?{...be,...ce.consumed[ce.consumed.length-1].parameters}:be;return{matched:!0,consumedSegments:ce.consumed,remainingSegments:p.slice(ce.consumed.length),parameters:xe,positionalParamSegments:null!==(S=ce.posParams)&&void 0!==S?S:{}}}function we(g,m,p,S,B="corrected"){if(p.length>0&&function Vt(g,m,p){return p.some(S=>gn(g,m,S)&&li(S)!==Qe)}(g,p,S)){const be=new en(m,function dt(g,m,p,S){const B={};B[Qe]=S,S._sourceSegment=g,S._segmentIndexShift=m.length;for(const ce of p)if(""===ce.path&&li(ce)!==Qe){const be=new en([],{});be._sourceSegment=g,be._segmentIndexShift=m.length,B[li(ce)]=be}return B}(g,m,S,new en(p,g.children)));return be._sourceSegment=g,be._segmentIndexShift=m.length,{segmentGroup:be,slicedSegments:[]}}if(0===p.length&&function Tn(g,m,p){return p.some(S=>gn(g,m,S))}(g,p,S)){const be=new en(g.segments,function tt(g,m,p,S,B,ce){const be={};for(const xe of S)if(gn(g,p,xe)&&!B[li(xe)]){const Je=new en([],{});Je._sourceSegment=g,Je._segmentIndexShift="legacy"===ce?g.segments.length:m.length,be[li(xe)]=Je}return{...B,...be}}(g,m,p,S,g.children,B));return be._sourceSegment=g,be._segmentIndexShift=m.length,{segmentGroup:be,slicedSegments:p}}const ce=new en(g.segments,g.children);return ce._sourceSegment=g,ce._segmentIndexShift=m.length,{segmentGroup:ce,slicedSegments:p}}function gn(g,m,p){return(!(g.hasChildren()||m.length>0)||"full"!==p.pathMatch)&&""===p.path}function Cn(g,m,p,S){return!!(li(g)===S||S!==Qe&&gn(m,p,g))&&("**"===g.path||ae(m,g,p).matched)}function hn(g,m,p){return 0===m.length&&!g.children[p]}const ii=!1;class Mn{constructor(m){this.segmentGroup=m||null}}class zn{constructor(m){this.urlTree=m}}function Oi(g){return(0,E._)(new Mn(g))}function k(g){return(0,E._)(new zn(g))}class $e{constructor(m,p,S,B,ce){this.injector=m,this.configLoader=p,this.urlSerializer=S,this.urlTree=B,this.config=ce,this.allowRedirects=!0}apply(){const m=we(this.urlTree.root,[],[],this.config).segmentGroup,p=new en(m.segments,m.children);return this.expandSegmentGroup(this.injector,this.config,p,Qe).pipe((0,w.U)(ce=>this.createUrlTree(oi(ce),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Ze.K)(ce=>{if(ce instanceof zn)return this.allowRedirects=!1,this.match(ce.urlTree);throw ce instanceof Mn?this.noMatchError(ce):ce}))}match(m){return this.expandSegmentGroup(this.injector,this.config,m.root,Qe).pipe((0,w.U)(B=>this.createUrlTree(oi(B),m.queryParams,m.fragment))).pipe((0,Ze.K)(B=>{throw B instanceof Mn?this.noMatchError(B):B}))}noMatchError(m){return new e.vHH(4002,ii)}createUrlTree(m,p,S){const B=qt(m);return new an(B,p,S)}expandSegmentGroup(m,p,S,B){return 0===S.segments.length&&S.hasChildren()?this.expandChildren(m,p,S).pipe((0,w.U)(ce=>new en([],ce))):this.expandSegment(m,S,p,S.segments,B,!0)}expandChildren(m,p,S){const B=[];for(const ce of Object.keys(S.children))"primary"===ce?B.unshift(ce):B.push(ce);return(0,s.D)(B).pipe((0,J.b)(ce=>{const be=S.children[ce],xe=Qo(p,ce);return this.expandSegmentGroup(m,xe,be,ce).pipe((0,w.U)(Je=>({segment:Je,outlet:ce})))}),lt((ce,be)=>(ce[be.outlet]=be.segment,ce),{}),pt())}expandSegment(m,p,S,B,ce,be){return(0,s.D)(S).pipe((0,J.b)(xe=>this.expandSegmentAgainstRoute(m,p,S,xe,B,ce,be).pipe((0,Ze.K)(Pt=>{if(Pt instanceof Mn)return(0,K.of)(null);throw Pt}))),(0,de.P)(xe=>!!xe),(0,Ze.K)((xe,Je)=>{if(ko(xe))return hn(p,B,ce)?(0,K.of)(new en([],{})):Oi(p);throw xe}))}expandSegmentAgainstRoute(m,p,S,B,ce,be,xe){return Cn(B,p,ce,be)?void 0===B.redirectTo?this.matchSegmentAgainstRoute(m,p,B,ce,be):xe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(m,p,S,B,ce,be):Oi(p):Oi(p)}expandSegmentAgainstRouteUsingRedirect(m,p,S,B,ce,be){return"**"===B.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(m,S,B,be):this.expandRegularSegmentAgainstRouteUsingRedirect(m,p,S,B,ce,be)}expandWildCardWithParamsAgainstRouteUsingRedirect(m,p,S,B){const ce=this.applyRedirectCommands([],S.redirectTo,{});return S.redirectTo.startsWith("/")?k(ce):this.lineralizeSegments(S,ce).pipe((0,te.zg)(be=>{const xe=new en(be,{});return this.expandSegment(m,xe,p,be,B,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(m,p,S,B,ce,be){const{matched:xe,consumedSegments:Je,remainingSegments:Pt,positionalParamSegments:Xt}=ae(p,B,ce);if(!xe)return Oi(p);const Ft=this.applyRedirectCommands(Je,B.redirectTo,Xt);return B.redirectTo.startsWith("/")?k(Ft):this.lineralizeSegments(B,Ft).pipe((0,te.zg)(dn=>this.expandSegment(m,p,S,dn.concat(Pt),be,!1)))}matchSegmentAgainstRoute(m,p,S,B,ce){return"**"===S.path?(m=po(S,m),S.loadChildren?(S._loadedRoutes?(0,K.of)({routes:S._loadedRoutes,injector:S._loadedInjector}):this.configLoader.loadChildren(m,S)).pipe((0,w.U)(xe=>(S._loadedRoutes=xe.routes,S._loadedInjector=xe.injector,new en(B,{})))):(0,K.of)(new en(B,{}))):P(p,S,B,m).pipe((0,ee.w)(({matched:be,consumedSegments:xe,remainingSegments:Je})=>{var Pt;return be?(m=null!==(Pt=S._injector)&&void 0!==Pt?Pt:m,this.getChildConfig(m,S,B).pipe((0,te.zg)(Ft=>{var dn;const Rn=null!==(dn=Ft.injector)&&void 0!==dn?dn:m,Ci=Ft.routes,{segmentGroup:Jr,slicedSegments:kr}=we(p,xe,Je,Ci),vr=new en(Jr.segments,Jr.children);if(0===kr.length&&vr.hasChildren())return this.expandChildren(Rn,Ci,vr).pipe((0,w.U)(Pi=>new en(xe,Pi)));if(0===Ci.length&&0===kr.length)return(0,K.of)(new en(xe,{}));const Fr=li(S)===ce;return this.expandSegment(Rn,vr,Ci,kr,Fr?Qe:ce,!0).pipe((0,w.U)($r=>new en(xe.concat($r.segments),$r.children)))}))):Oi(p)}))}getChildConfig(m,p,S){return p.children?(0,K.of)({routes:p.children,injector:m}):p.loadChildren?void 0!==p._loadedRoutes?(0,K.of)({routes:p._loadedRoutes,injector:p._loadedInjector}):function Bs(g,m,p,S){const B=m.canLoad;if(void 0===B||0===B.length)return(0,K.of)(!0);const ce=B.map(be=>{const xe=I(be,g);return ne(function fr(g){return g&&qn(g.canLoad)}(xe)?xe.canLoad(m,p):g.runInContext(()=>xe(m,p)))});return(0,K.of)(ce).pipe(So(),ts())}(m,p,S).pipe((0,te.zg)(B=>B?this.configLoader.loadChildren(m,p).pipe((0,Ie.b)(ce=>{p._loadedRoutes=ce.routes,p._loadedInjector=ce.injector})):function pe(g){return(0,E._)(xo(ii,3))}())):(0,K.of)({routes:[],injector:m})}lineralizeSegments(m,p){let S=[],B=p.root;for(;;){if(S=S.concat(B.segments),0===B.numberOfChildren)return(0,K.of)(S);if(B.numberOfChildren>1||!B.children[Qe])return(0,E._)(new e.vHH(4e3,ii));B=B.children[Qe]}}applyRedirectCommands(m,p,S){return this.applyRedirectCreateUrlTree(p,this.urlSerializer.parse(p),m,S)}applyRedirectCreateUrlTree(m,p,S,B){const ce=this.createSegmentGroup(m,p.root,S,B);return new an(ce,this.createQueryParams(p.queryParams,this.urlTree.queryParams),p.fragment)}createQueryParams(m,p){const S={};return Q(m,(B,ce)=>{if("string"==typeof B&&B.startsWith(":")){const xe=B.substring(1);S[ce]=p[xe]}else S[ce]=B}),S}createSegmentGroup(m,p,S,B){const ce=this.createSegments(m,p.segments,S,B);let be={};return Q(p.children,(xe,Je)=>{be[Je]=this.createSegmentGroup(m,xe,S,B)}),new en(ce,be)}createSegments(m,p,S,B){return p.map(ce=>ce.path.startsWith(":")?this.findPosParam(m,ce,B):this.findOrReturn(ce,S))}findPosParam(m,p,S){const B=S[p.path.substring(1)];if(!B)throw new e.vHH(4001,ii);return B}findOrReturn(m,p){let S=0;for(const B of p){if(B.path===m.path)return p.splice(S),B;S++}return m}}class nt{}class kt{constructor(m,p,S,B,ce,be,xe,Je){this.injector=m,this.rootComponentType=p,this.config=S,this.urlTree=B,this.url=ce,this.paramsInheritanceStrategy=be,this.relativeLinkResolution=xe,this.urlSerializer=Je}recognize(){const m=we(this.urlTree.root,[],[],this.config.filter(p=>void 0===p.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,m,Qe).pipe((0,w.U)(p=>{if(null===p)return null;const S=new dr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Qe,this.rootComponentType,null,this.urlTree.root,-1,{}),B=new er(S,p),ce=new Pr(this.url,B);return this.inheritParamsAndData(ce._root),ce}))}inheritParamsAndData(m){const p=m.value,S=Gr(p,this.paramsInheritanceStrategy);p.params=Object.freeze(S.params),p.data=Object.freeze(S.data),m.children.forEach(B=>this.inheritParamsAndData(B))}processSegmentGroup(m,p,S,B){return 0===S.segments.length&&S.hasChildren()?this.processChildren(m,p,S):this.processSegment(m,p,S,S.segments,B)}processChildren(m,p,S){return(0,s.D)(Object.keys(S.children)).pipe((0,J.b)(B=>{const ce=S.children[B],be=Qo(p,B);return this.processSegmentGroup(m,be,ce,B)}),lt((B,ce)=>B&&ce?(B.push(...ce),B):null),function Be(g,m=!1){return p=>p.lift(new ft(g,m))}(B=>null!==B),(0,Dt.d)(null),pt(),(0,w.U)(B=>{if(null===B)return null;const ce=Xn(B);return function Gt(g){g.sort((m,p)=>m.value.outlet===Qe?-1:p.value.outlet===Qe?1:m.value.outlet.localeCompare(p.value.outlet))}(ce),ce}))}processSegment(m,p,S,B,ce){return(0,s.D)(p).pipe((0,J.b)(be=>{var xe;return this.processSegmentAgainstRoute(null!==(xe=be._injector)&&void 0!==xe?xe:m,be,S,B,ce)}),(0,de.P)(be=>!!be),(0,Ze.K)(be=>{if(ko(be))return hn(S,B,ce)?(0,K.of)([]):(0,K.of)(null);throw be}))}processSegmentAgainstRoute(m,p,S,B,ce){if(p.redirectTo||!Cn(p,S,B,ce))return(0,K.of)(null);let be;if("**"===p.path){var xe,Je;const Pt=B.length>0?ie(B).parameters:{},Xt=ti(S)+B.length,Ft=new dr(B,Pt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gn(p),li(p),null!==(xe=null!==(Je=p.component)&&void 0!==Je?Je:p._loadedComponent)&&void 0!==xe?xe:null,p,Fn(S),Xt,lr(p),Xt);be=(0,K.of)({snapshot:Ft,consumedSegments:[],remainingSegments:[]})}else be=P(S,p,B,m).pipe((0,w.U)(({matched:Pt,consumedSegments:Xt,remainingSegments:Ft,parameters:dn})=>{var Rn,Ci;if(!Pt)return null;const Jr=ti(S)+Xt.length;return{snapshot:new dr(Xt,dn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gn(p),li(p),null!==(Rn=null!==(Ci=p.component)&&void 0!==Ci?Ci:p._loadedComponent)&&void 0!==Rn?Rn:null,p,Fn(S),Jr,lr(p),Jr),consumedSegments:Xt,remainingSegments:Ft}}));return be.pipe((0,ee.w)(Pt=>{var Xt,Ft;if(null===Pt)return(0,K.of)(null);const{snapshot:dn,consumedSegments:Rn,remainingSegments:Ci}=Pt;m=null!==(Xt=p._injector)&&void 0!==Xt?Xt:m;const Jr=null!==(Ft=p._loadedInjector)&&void 0!==Ft?Ft:m,kr=function _n(g){return g.children?g.children:g.loadChildren?g._loadedRoutes:[]}(p),{segmentGroup:vr,slicedSegments:Fr}=we(S,Rn,Ci,kr.filter($r=>void 0===$r.redirectTo),this.relativeLinkResolution);if(0===Fr.length&&vr.hasChildren())return this.processChildren(Jr,kr,vr).pipe((0,w.U)($r=>null===$r?null:[new er(dn,$r)]));if(0===kr.length&&0===Fr.length)return(0,K.of)([new er(dn,[])]);const ss=li(p)===ce;return this.processSegment(Jr,kr,vr,Fr,ss?Qe:ce).pipe((0,w.U)($r=>null===$r?null:[new er(dn,$r)]))}))}}function yn(g){const m=g.value.routeConfig;return m&&""===m.path&&void 0===m.redirectTo}function Xn(g){const m=[],p=new Set;for(const S of g){if(!yn(S)){m.push(S);continue}const B=m.find(ce=>S.value.routeConfig===ce.value.routeConfig);void 0!==B?(B.children.push(...S.children),p.add(B)):m.push(S)}for(const S of p){const B=Xn(S.children);m.push(new er(S.value,B))}return m.filter(S=>!p.has(S))}function Fn(g){let m=g;for(;m._sourceSegment;)m=m._sourceSegment;return m}function ti(g){var m;let p=g,S=null!==(m=p._segmentIndexShift)&&void 0!==m?m:0;for(;p._sourceSegment;){var B;p=p._sourceSegment,S+=null!==(B=p._segmentIndexShift)&&void 0!==B?B:0}return S-1}function Gn(g){return g.data||{}}function lr(g){return g.resolve||{}}function Eo(g){return"string"==typeof g.title||null===g.title}function cr(g){return(0,ee.w)(m=>{const p=g(m);return p?(0,s.D)(p).pipe((0,w.U)(()=>m)):(0,K.of)(m)})}let Ii=(()=>{class g{buildTitle(p){let S,B=p.root;for(;void 0!==B;){var ce;S=null!==(ce=this.getResolvedTitleForRoute(B))&&void 0!==ce?ce:S,B=B.children.find(be=>be.outlet===Qe)}return S}getResolvedTitleForRoute(p){return p.data[Ye]}}return g.\u0275fac=function(p){return new(p||g)},g.\u0275prov=e.Yz7({token:g,factory:function(){return(0,e.f3M)(ur)},providedIn:"root"}),g})(),ur=(()=>{class g extends Ii{constructor(p){super(),this.title=p}updateTitle(p){const S=this.buildTitle(p);void 0!==S&&this.title.setTitle(S)}}return g.\u0275fac=function(p){return new(p||g)(e.LFG(We.Dx))},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();class so{}class nr extends class Yn{shouldDetach(m){return!1}store(m,p){}shouldAttach(m){return!1}retrieve(m){return null}shouldReuseRoute(m,p){return m.routeConfig===p.routeConfig}}{}const bs=new e.OlP("",{providedIn:"root",factory:()=>({})}),ia=new e.OlP("ROUTES");let Hs=(()=>{class g{constructor(p,S){this.injector=p,this.compiler=S,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(p){if(this.componentLoaders.get(p))return this.componentLoaders.get(p);if(p._loadedComponent)return(0,K.of)(p._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(p);const S=ne(p.loadComponent()).pipe((0,Ie.b)(ce=>{this.onLoadEndListener&&this.onLoadEndListener(p),p._loadedComponent=ce}),Ae(()=>{this.componentLoaders.delete(p)})),B=new U.c(S,()=>new b.xQ).pipe((0,he.x)());return this.componentLoaders.set(p,B),B}loadChildren(p,S){if(this.childrenLoaders.get(S))return this.childrenLoaders.get(S);if(S._loadedRoutes)return(0,K.of)({routes:S._loadedRoutes,injector:S._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(S);const ce=this.loadModuleFactoryOrRoutes(S.loadChildren).pipe((0,w.U)(xe=>{this.onLoadEndListener&&this.onLoadEndListener(S);let Je,Pt,Xt=!1;Array.isArray(xe)?Pt=xe:(Je=xe.create(p).injector,Pt=x(Je.get(ia,[],e.XFs.Self|e.XFs.Optional)));return{routes:Pt.map(io),injector:Je}}),Ae(()=>{this.childrenLoaders.delete(S)})),be=new U.c(ce,()=>new b.xQ).pipe((0,he.x)());return this.childrenLoaders.set(S,be),be}loadModuleFactoryOrRoutes(p){return ne(p()).pipe((0,te.zg)(S=>S instanceof e.YKP||Array.isArray(S)?(0,K.of)(S):(0,s.D)(this.compiler.compileModuleAsync(S))))}}return g.\u0275fac=function(p){return new(p||g)(e.LFG(e.zs3),e.LFG(e.Sil))},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();class Ul{}class To{shouldProcessUrl(m){return!0}extract(m){return m}merge(m,p){return m}}function Xa(g){throw g}function el(g,m,p){return m.parse("/")}const Sa={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ss={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function ns(){var g,m;const p=(0,e.f3M)(wi),S=(0,e.f3M)(Sr),B=(0,e.f3M)(G.Ye),ce=(0,e.f3M)(e.zs3),be=(0,e.f3M)(e.Sil),xe=null!==(g=(0,e.f3M)(ia,{optional:!0}))&&void 0!==g?g:[],Je=null!==(m=(0,e.f3M)(bs,{optional:!0}))&&void 0!==m?m:{},Pt=(0,e.f3M)(ur),Xt=(0,e.f3M)(Ii,{optional:!0}),Ft=(0,e.f3M)(Ul,{optional:!0}),dn=(0,e.f3M)(so,{optional:!0}),Rn=new In(null,p,S,B,ce,be,x(xe));return Ft&&(Rn.urlHandlingStrategy=Ft),dn&&(Rn.routeReuseStrategy=dn),Rn.titleStrategy=Xt??Pt,function Vl(g,m){g.errorHandler&&(m.errorHandler=g.errorHandler),g.malformedUriErrorHandler&&(m.malformedUriErrorHandler=g.malformedUriErrorHandler),g.onSameUrlNavigation&&(m.onSameUrlNavigation=g.onSameUrlNavigation),g.paramsInheritanceStrategy&&(m.paramsInheritanceStrategy=g.paramsInheritanceStrategy),g.relativeLinkResolution&&(m.relativeLinkResolution=g.relativeLinkResolution),g.urlUpdateStrategy&&(m.urlUpdateStrategy=g.urlUpdateStrategy),g.canceledNavigationResolution&&(m.canceledNavigationResolution=g.canceledNavigationResolution)}(Je,Rn),Rn}let In=(()=>{class g{constructor(p,S,B,ce,be,xe,Je){this.rootComponentType=p,this.urlSerializer=S,this.rootContexts=B,this.location=ce,this.config=Je,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new b.xQ,this.errorHandler=Xa,this.malformedUriErrorHandler=el,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,K.of)(void 0),this.urlHandlingStrategy=new To,this.routeReuseStrategy=new nr,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=be.get(Hs),this.configLoader.onLoadEndListener=dn=>this.triggerEvent(new Ko(dn)),this.configLoader.onLoadStartListener=dn=>this.triggerEvent(new mo(dn)),this.ngModule=be.get(e.h0i),this.console=be.get(e.c2e);const Ft=be.get(e.R0b);this.isNgZoneEnabled=Ft instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Je),this.currentUrlTree=function Pe(){return new an(new en([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Ir(this.currentUrlTree,this.rootComponentType),this.transitions=new F.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var p;return null===(p=this.location.getState())||void 0===p?void 0:p.\u0275routerPageId}setupNavigations(p){const S=this.events;return p.pipe((0,Ne.h)(B=>0!==B.id),(0,w.U)(B=>({...B,extractedUrl:this.urlHandlingStrategy.extract(B.rawUrl)})),(0,ee.w)(B=>{let ce=!1,be=!1;return(0,K.of)(B).pipe((0,Ie.b)(xe=>{this.currentNavigation={id:xe.id,initialUrl:xe.rawUrl,extractedUrl:xe.extractedUrl,trigger:xe.source,extras:xe.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ee.w)(xe=>{const Je=this.browserUrlTree.toString(),Pt=!this.navigated||xe.extractedUrl.toString()!==Je||Je!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Pt)&&this.urlHandlingStrategy.shouldProcessUrl(xe.rawUrl))return Ea(xe.source)&&(this.browserUrlTree=xe.extractedUrl),(0,K.of)(xe).pipe((0,ee.w)(Ft=>{const dn=this.transitions.getValue();return S.next(new wr(Ft.id,this.serializeUrl(Ft.extractedUrl),Ft.source,Ft.restoredState)),dn!==this.transitions.getValue()?C.E:Promise.resolve(Ft)}),function Fe(g,m,p,S){return(0,ee.w)(B=>function Me(g,m,p,S,B){return new $e(g,m,p,S,B).apply()}(g,m,p,B.extractedUrl,S).pipe((0,w.U)(ce=>({...B,urlAfterRedirects:ce}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ie.b)(Ft=>{this.currentNavigation={...this.currentNavigation,finalUrl:Ft.urlAfterRedirects},B.urlAfterRedirects=Ft.urlAfterRedirects}),function yi(g,m,p,S,B,ce){return(0,te.zg)(be=>function xt(g,m,p,S,B,ce,be="emptyOnly",xe="legacy"){return new kt(g,m,p,S,B,be,xe,ce).recognize().pipe((0,ee.w)(Je=>null===Je?function vt(g){return new y.y(m=>m.error(g))}(new nt):(0,K.of)(Je)))}(g,m,p,be.urlAfterRedirects,S.serialize(be.urlAfterRedirects),S,B,ce).pipe((0,w.U)(xe=>({...be,targetSnapshot:xe}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ie.b)(Ft=>{if(B.targetSnapshot=Ft.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!Ft.extras.skipLocationChange){const Rn=this.urlHandlingStrategy.merge(Ft.urlAfterRedirects,Ft.rawUrl);this.setBrowserUrl(Rn,Ft)}this.browserUrlTree=Ft.urlAfterRedirects}const dn=new Ui(Ft.id,this.serializeUrl(Ft.extractedUrl),this.serializeUrl(Ft.urlAfterRedirects),Ft.targetSnapshot);S.next(dn)}));if(Pt&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:dn,extractedUrl:Rn,source:Ci,restoredState:Jr,extras:kr}=xe,vr=new wr(dn,this.serializeUrl(Rn),Ci,Jr);S.next(vr);const Fr=Ir(Rn,this.rootComponentType).snapshot;return B={...xe,targetSnapshot:Fr,urlAfterRedirects:Rn,extras:{...kr,skipLocationChange:!1,replaceUrl:!1}},(0,K.of)(B)}return this.rawUrlTree=xe.rawUrl,xe.resolve(null),C.E}),(0,Ie.b)(xe=>{const Je=new zo(xe.id,this.serializeUrl(xe.extractedUrl),this.serializeUrl(xe.urlAfterRedirects),xe.targetSnapshot);this.triggerEvent(Je)}),(0,w.U)(xe=>B={...xe,guards:ci(xe.targetSnapshot,xe.currentSnapshot,this.rootContexts)}),function Yr(g,m){return(0,te.zg)(p=>{const{targetSnapshot:S,currentSnapshot:B,guards:{canActivateChecks:ce,canDeactivateChecks:be}}=p;return 0===be.length&&0===ce.length?(0,K.of)({...p,guardsResult:!0}):function _o(g,m,p,S){return(0,s.D)(g).pipe((0,te.zg)(B=>function $s(g,m,p,S,B){const ce=m&&m.routeConfig?m.routeConfig.canDeactivate:null;if(!ce||0===ce.length)return(0,K.of)(!0);const be=ce.map(xe=>{var Je;const Pt=null!==(Je=ro(m))&&void 0!==Je?Je:B,Xt=I(xe,Pt);return ne(function Sn(g){return g&&qn(g.canDeactivate)}(Xt)?Xt.canDeactivate(g,m,p,S):Pt.runInContext(()=>Xt(g,m,p,S))).pipe((0,de.P)())});return(0,K.of)(be).pipe(So())}(B.component,B.route,p,m,S)),(0,de.P)(B=>!0!==B,!0))}(be,S,B,g).pipe((0,te.zg)(xe=>xe&&function Vi(g){return"boolean"==typeof g}(xe)?function Fs(g,m,p,S){return(0,s.D)(m).pipe((0,J.b)(B=>(0,H.z)(function es(g,m){return null!==g&&m&&m(new Po(g)),(0,K.of)(!0)}(B.route.parent,S),function Fo(g,m){return null!==g&&m&&m(new Cs(g)),(0,K.of)(!0)}(B.route,S),function $o(g,m,p){const S=m[m.length-1],ce=m.slice(0,m.length-1).reverse().map(be=>function V(g){const m=g.routeConfig?g.routeConfig.canActivateChild:null;return m&&0!==m.length?{node:g,guards:m}:null}(be)).filter(be=>null!==be).map(be=>(0,z.P)(()=>{const xe=be.guards.map(Je=>{var Pt;const Xt=null!==(Pt=ro(be.node))&&void 0!==Pt?Pt:p,Ft=I(Je,Xt);return ne(function _r(g){return g&&qn(g.canActivateChild)}(Ft)?Ft.canActivateChild(S,g):Xt.runInContext(()=>Ft(S,g))).pipe((0,de.P)())});return(0,K.of)(xe).pipe(So())}));return(0,K.of)(ce).pipe(So())}(g,B.path,p),function go(g,m,p){const S=m.routeConfig?m.routeConfig.canActivate:null;if(!S||0===S.length)return(0,K.of)(!0);const B=S.map(ce=>(0,z.P)(()=>{var be;const xe=null!==(be=ro(m))&&void 0!==be?be:p,Je=I(ce,xe);return ne(function Un(g){return g&&qn(g.canActivate)}(Je)?Je.canActivate(m,g):xe.runInContext(()=>Je(m,g))).pipe((0,de.P)())}));return(0,K.of)(B).pipe(So())}(g,B.route,p))),(0,de.P)(B=>!0!==B,!0))}(S,ce,g,m):(0,K.of)(xe)),(0,w.U)(xe=>({...p,guardsResult:xe})))})}(this.ngModule.injector,xe=>this.triggerEvent(xe)),(0,Ie.b)(xe=>{if(B.guardsResult=xe.guardsResult,Ai(xe.guardsResult))throw Kn(0,xe.guardsResult);const Je=new Go(xe.id,this.serializeUrl(xe.extractedUrl),this.serializeUrl(xe.urlAfterRedirects),xe.targetSnapshot,!!xe.guardsResult);this.triggerEvent(Je)}),(0,Ne.h)(xe=>!!xe.guardsResult||(this.restoreHistory(xe),this.cancelNavigationTransition(xe,"",3),!1)),cr(xe=>{if(xe.guards.canActivateChecks.length)return(0,K.of)(xe).pipe((0,Ie.b)(Je=>{const Pt=new Zo(Je.id,this.serializeUrl(Je.extractedUrl),this.serializeUrl(Je.urlAfterRedirects),Je.targetSnapshot);this.triggerEvent(Pt)}),(0,ee.w)(Je=>{let Pt=!1;return(0,K.of)(Je).pipe(function ui(g,m){return(0,te.zg)(p=>{const{targetSnapshot:S,guards:{canActivateChecks:B}}=p;if(!B.length)return(0,K.of)(p);let ce=0;return(0,s.D)(B).pipe((0,J.b)(be=>function Fi(g,m,p,S){const B=g.routeConfig,ce=g._resolve;return void 0!==B?.title&&!Eo(B)&&(ce[Ye]=B.title),function Dr(g,m,p,S){const B=function Wr(g){return[...Object.keys(g),...Object.getOwnPropertySymbols(g)]}(g);if(0===B.length)return(0,K.of)({});const ce={};return(0,s.D)(B).pipe((0,te.zg)(be=>function gr(g,m,p,S){var B;const ce=null!==(B=ro(m))&&void 0!==B?B:S,be=I(g,ce);return ne(be.resolve?be.resolve(m,p):ce.runInContext(()=>be(m,p)))}(g[be],m,p,S).pipe((0,de.P)(),(0,Ie.b)(xe=>{ce[be]=xe}))),re(1),function Et(g){return m=>m.lift(new Mt(g))}(ce),(0,Ze.K)(be=>ko(be)?C.E:(0,E._)(be)))}(ce,g,m,S).pipe((0,w.U)(be=>(g._resolvedData=be,g.data=Gr(g,p).resolve,B&&Eo(B)&&(g.data[Ye]=B.title),null)))}(be.route,S,g,m)),(0,Ie.b)(()=>ce++),re(1),(0,te.zg)(be=>ce===B.length?(0,K.of)(p):C.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ie.b)({next:()=>Pt=!0,complete:()=>{Pt||(this.restoreHistory(Je),this.cancelNavigationTransition(Je,"",2))}}))}),(0,Ie.b)(Je=>{const Pt=new ys(Je.id,this.serializeUrl(Je.extractedUrl),this.serializeUrl(Je.urlAfterRedirects),Je.targetSnapshot);this.triggerEvent(Pt)}))}),cr(xe=>{const Je=Pt=>{var Xt;const Ft=[];null!==(Xt=Pt.routeConfig)&&void 0!==Xt&&Xt.loadComponent&&!Pt.routeConfig._loadedComponent&&Ft.push(this.configLoader.loadComponent(Pt.routeConfig).pipe((0,Ie.b)(dn=>{Pt.component=dn}),(0,w.U)(()=>{})));for(const dn of Pt.children)Ft.push(...Je(dn));return Ft};return(0,O.aj)(Je(xe.targetSnapshot.root)).pipe((0,Dt.d)(),(0,oe.q)(1))}),cr(()=>this.afterPreactivation()),(0,w.U)(xe=>{const Je=function ho(g,m,p){const S=Zr(g,m._root,p?p._root:void 0);return new ai(S,m)}(this.routeReuseStrategy,xe.targetSnapshot,xe.currentRouterState);return B={...xe,targetRouterState:Je}}),(0,Ie.b)(xe=>{this.currentUrlTree=xe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(xe.urlAfterRedirects,xe.rawUrl),this.routerState=xe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(xe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,xe),this.browserUrlTree=xe.urlAfterRedirects)}),((g,m,p)=>(0,w.U)(S=>(new fn(m,S.targetRouterState,S.currentRouterState,p).activate(g),S)))(this.rootContexts,this.routeReuseStrategy,xe=>this.triggerEvent(xe)),(0,Ie.b)({next(){ce=!0},complete(){ce=!0}}),Ae(()=>{var xe;ce||be||this.cancelNavigationTransition(B,"",1),(null===(xe=this.currentNavigation)||void 0===xe?void 0:xe.id)===B.id&&(this.currentNavigation=null)}),(0,Ze.K)(xe=>{if(be=!0,ki(xe)){to(xe)||(this.navigated=!0,this.restoreHistory(B,!0));const Pt=new jr(B.id,this.serializeUrl(B.extractedUrl),xe.message,xe.cancellationCode);if(S.next(Pt),to(xe)){const Xt=this.urlHandlingStrategy.merge(xe.url,this.rawUrlTree),Ft={skipLocationChange:B.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ea(B.source)};this.scheduleNavigation(Xt,"imperative",null,Ft,{resolve:B.resolve,reject:B.reject,promise:B.promise})}else B.resolve(!1)}else{var Je;this.restoreHistory(B,!0);const Pt=new vs(B.id,this.serializeUrl(B.extractedUrl),xe,null!==(Je=B.targetSnapshot)&&void 0!==Je?Je:void 0);S.next(Pt);try{B.resolve(this.errorHandler(xe))}catch(Xt){B.reject(Xt)}}return C.E}))}))}resetRootComponentType(p){this.rootComponentType=p,this.routerState.root.component=this.rootComponentType}setTransition(p){this.transitions.next({...this.transitions.value,...p})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(p=>{const S="popstate"===p.type?"popstate":"hashchange";"popstate"===S&&setTimeout(()=>{var B;const ce={replaceUrl:!0},be=null!==(B=p.state)&&void 0!==B&&B.navigationId?p.state:null;if(be){const Je={...be};delete Je.navigationId,delete Je.\u0275routerPageId,0!==Object.keys(Je).length&&(ce.state=Je)}const xe=this.parseUrl(p.url);this.scheduleNavigation(xe,S,be,ce)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(p){this.events.next(p)}resetConfig(p){this.config=p.map(io),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(p,S={}){const{relativeTo:B,queryParams:ce,fragment:be,queryParamsHandling:xe,preserveFragment:Je}=S,Pt=B||this.routerState.root,Xt=Je?this.currentUrlTree.fragment:be;let Ft=null;switch(xe){case"merge":Ft={...this.currentUrlTree.queryParams,...ce};break;case"preserve":Ft=this.currentUrlTree.queryParams;break;default:Ft=ce||null}return null!==Ft&&(Ft=this.removeEmptyProps(Ft)),Si(Pt,this.currentUrlTree,p,Ft,Xt??null)}navigateByUrl(p,S={skipLocationChange:!1}){const B=Ai(p)?p:this.parseUrl(p),ce=this.urlHandlingStrategy.merge(B,this.rawUrlTree);return this.scheduleNavigation(ce,"imperative",null,S)}navigate(p,S={skipLocationChange:!1}){return function jl(g){for(let m=0;m<g.length;m++){if(null==g[m])throw new e.vHH(4008,false)}}(p),this.navigateByUrl(this.createUrlTree(p,S),S)}serializeUrl(p){return this.urlSerializer.serialize(p)}parseUrl(p){let S;try{S=this.urlSerializer.parse(p)}catch(B){S=this.malformedUriErrorHandler(B,this.urlSerializer,p)}return S}isActive(p,S){let B;if(B=!0===S?{...Sa}:!1===S?{...Ss}:S,Ai(p))return It(this.currentUrlTree,p,B);const ce=this.parseUrl(p);return It(this.currentUrlTree,ce,B)}removeEmptyProps(p){return Object.keys(p).reduce((S,B)=>{const ce=p[B];return null!=ce&&(S[B]=ce),S},{})}processNavigations(){this.navigations.subscribe(p=>{var S;this.navigated=!0,this.lastSuccessfulId=p.id,this.currentPageId=p.targetPageId,this.events.next(new Xi(p.id,this.serializeUrl(p.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(S=this.titleStrategy)||void 0===S||S.updateTitle(this.routerState.snapshot),p.resolve(!0)},p=>{this.console.warn(`Unhandled Navigation Error: ${p}`)})}scheduleNavigation(p,S,B,ce,be){if(this.disposed)return Promise.resolve(!1);let xe,Je,Pt;be?(xe=be.resolve,Je=be.reject,Pt=be.promise):Pt=new Promise((Ci,Jr)=>{xe=Ci,Je=Jr});const Xt=++this.navigationId;let Ft;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(B=this.location.getState()),B&&B.\u0275routerPageId)Ft=B.\u0275routerPageId;else if(ce.replaceUrl||ce.skipLocationChange){var dn;Ft=null!==(dn=this.browserPageId)&&void 0!==dn?dn:0}else{var Rn;Ft=(null!==(Rn=this.browserPageId)&&void 0!==Rn?Rn:0)+1}else Ft=0;return this.setTransition({id:Xt,targetPageId:Ft,source:S,restoredState:B,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:p,extras:ce,resolve:xe,reject:Je,promise:Pt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Pt.catch(Ci=>Promise.reject(Ci))}setBrowserUrl(p,S){const B=this.urlSerializer.serialize(p),ce={...S.extras.state,...this.generateNgRouterState(S.id,S.targetPageId)};this.location.isCurrentPathEqualTo(B)||S.extras.replaceUrl?this.location.replaceState(B,"",ce):this.location.go(B,"",ce)}restoreHistory(p,S=!1){if("computed"===this.canceledNavigationResolution){var B,ce;const be=this.currentPageId-p.targetPageId;"popstate"!==p.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(B=this.currentNavigation)||void 0===B?void 0:B.finalUrl)||0===be?this.currentUrlTree===(null===(ce=this.currentNavigation)||void 0===ce?void 0:ce.finalUrl)&&0===be&&(this.resetState(p),this.browserUrlTree=p.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(be)}else"replace"===this.canceledNavigationResolution&&(S&&this.resetState(p),this.resetUrlToCurrentUrlTree())}resetState(p){this.routerState=p.currentRouterState,this.currentUrlTree=p.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,p.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(p,S,B){const ce=new jr(p.id,this.serializeUrl(p.extractedUrl),S,B);this.triggerEvent(ce),p.resolve(!1)}generateNgRouterState(p,S){return"computed"===this.canceledNavigationResolution?{navigationId:p,\u0275routerPageId:S}:{navigationId:p}}}return g.\u0275fac=function(p){e.$Z()},g.\u0275prov=e.Yz7({token:g,factory:function(){return ns()},providedIn:"root"}),g})();function Ea(g){return"imperative"!==g}let is=(()=>{class g{constructor(p,S,B,ce,be){this.router=p,this.route=S,this.tabIndexAttribute=B,this.renderer=ce,this.el=be,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new b.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(p){this._preserveFragment=(0,e.D6c)(p)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(p){this._skipLocationChange=(0,e.D6c)(p)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(p){this._replaceUrl=(0,e.D6c)(p)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(p){if(null!=this.tabIndexAttribute)return;const S=this.renderer,B=this.el.nativeElement;null!==p?S.setAttribute(B,"tabindex",p):S.removeAttribute(B,"tabindex")}ngOnChanges(p){this.onChanges.next(this)}set routerLink(p){null!=p?(this.commands=Array.isArray(p)?p:[p],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return g.\u0275fac=function(p){return new(p||g)(e.Y36(In),e.Y36(Li),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},g.\u0275dir=e.lG2({type:g,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(p,S){1&p&&e.NdJ("click",function(){return S.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[e.TTD]}),g})(),mr=(()=>{class g{constructor(p,S,B){this.router=p,this.route=S,this.locationStrategy=B,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new b.xQ,this.subscription=p.events.subscribe(ce=>{ce instanceof Xi&&this.updateTargetUrlAndHref()})}set preserveFragment(p){this._preserveFragment=(0,e.D6c)(p)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(p){this._skipLocationChange=(0,e.D6c)(p)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(p){this._replaceUrl=(0,e.D6c)(p)}get replaceUrl(){return this._replaceUrl}set routerLink(p){this.commands=null!=p?Array.isArray(p)?p:[p]:null}ngOnChanges(p){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(p,S,B,ce,be){return!!(0!==p||S||B||ce||be||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return g.\u0275fac=function(p){return new(p||g)(e.Y36(In),e.Y36(Li),e.Y36(G.S$))},g.\u0275dir=e.lG2({type:g,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(p,S){1&p&&e.NdJ("click",function(ce){return S.onClick(ce.button,ce.ctrlKey,ce.shiftKey,ce.altKey,ce.metaKey)}),2&p&&e.uIk("target",S.target)("href",S.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[e.TTD]}),g})(),rs=(()=>{class g{constructor(p,S,B,ce,be,xe){this.router=p,this.element=S,this.renderer=B,this.cdr=ce,this.link=be,this.linkWithHref=xe,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=p.events.subscribe(Je=>{Je instanceof Xi&&this.update()})}ngAfterContentInit(){(0,K.of)(this.links.changes,this.linksWithHrefs.changes,(0,K.of)(null)).pipe((0,De.J)()).subscribe(p=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var p;null===(p=this.linkInputChangesSubscription)||void 0===p||p.unsubscribe();const S=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(B=>!!B).map(B=>B.onChanges);this.linkInputChangesSubscription=(0,s.D)(S).pipe((0,De.J)()).subscribe(B=>{this.isActive!==this.isLinkActive(this.router)(B)&&this.update()})}set routerLinkActive(p){const S=Array.isArray(p)?p:p.split(" ");this.classes=S.filter(B=>!!B)}ngOnChanges(p){this.update()}ngOnDestroy(){var p;this.routerEventsSubscription.unsubscribe(),null===(p=this.linkInputChangesSubscription)||void 0===p||p.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const p=this.hasActiveLinks();this.isActive!==p&&(this.isActive=p,this.cdr.markForCheck(),this.classes.forEach(S=>{p?this.renderer.addClass(this.element.nativeElement,S):this.renderer.removeClass(this.element.nativeElement,S)}),p&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(p))})}isLinkActive(p){const S=function Es(g){return!!g.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return B=>!!B.urlTree&&p.isActive(B.urlTree,S)}hasActiveLinks(){const p=this.isLinkActive(this.router);return this.link&&p(this.link)||this.linkWithHref&&p(this.linkWithHref)||this.links.some(p)||this.linksWithHrefs.some(p)}}return g.\u0275fac=function(p){return new(p||g)(e.Y36(In),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(is,8),e.Y36(mr,8))},g.\u0275dir=e.lG2({type:g,selectors:[["","routerLinkActive",""]],contentQueries:function(p,S,B){if(1&p&&(e.Suo(B,is,5),e.Suo(B,mr,5)),2&p){let ce;e.iGM(ce=e.CRH())&&(S.links=ce),e.iGM(ce=e.CRH())&&(S.linksWithHrefs=ce)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[e.TTD]}),g})();class Us{}let Da=(()=>{class g{constructor(p,S,B,ce,be){this.router=p,this.injector=B,this.preloadingStrategy=ce,this.loader=be}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ne.h)(p=>p instanceof Xi),(0,J.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(p,S){const B=[];for(const Je of S){var ce,be;Je.providers&&!Je._injector&&(Je._injector=(0,e.MMx)(Je.providers,p,`Route: ${Je.path}`));const Pt=null!==(ce=Je._injector)&&void 0!==ce?ce:p,Xt=null!==(be=Je._loadedInjector)&&void 0!==be?be:Pt;if(Je.loadChildren&&!Je._loadedRoutes&&void 0===Je.canLoad||Je.loadComponent&&!Je._loadedComponent)B.push(this.preloadConfig(Pt,Je));else if(Je.children||Je._loadedRoutes){var xe;B.push(this.processRoutes(Xt,null!==(xe=Je.children)&&void 0!==xe?xe:Je._loadedRoutes))}}return(0,s.D)(B).pipe((0,De.J)())}preloadConfig(p,S){return this.preloadingStrategy.preload(S,()=>{let B;B=S.loadChildren&&void 0===S.canLoad?this.loader.loadChildren(p,S):(0,K.of)(null);const ce=B.pipe((0,te.zg)(be=>{var xe;return null===be?(0,K.of)(void 0):(S._loadedRoutes=be.routes,S._loadedInjector=be.injector,this.processRoutes(null!==(xe=be.injector)&&void 0!==xe?xe:p,be.routes))}));if(S.loadComponent&&!S._loadedComponent){const be=this.loader.loadComponent(S);return(0,s.D)([ce,be]).pipe((0,De.J)())}return ce})}}return g.\u0275fac=function(p){return new(p||g)(e.LFG(In),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Us),e.LFG(Hs))},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();const Ta=new e.OlP("");let Vn=(()=>{class g{constructor(p,S,B={}){this.router=p,this.viewportScroller=S,this.options=B,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},B.scrollPositionRestoration=B.scrollPositionRestoration||"disabled",B.anchorScrolling=B.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(p=>{p instanceof wr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=p.navigationTrigger,this.restoredId=p.restoredState?p.restoredState.navigationId:0):p instanceof Xi&&(this.lastId=p.id,this.scheduleScrollEvent(p,this.router.parseUrl(p.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(p=>{p instanceof vo&&(p.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(p.position):p.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(p.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(p,S){this.router.triggerEvent(new vo(p,"popstate"===this.lastSource?this.store[this.restoredId]:null,S))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return g.\u0275fac=function(p){e.$Z()},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac}),g})();function oa(g,m){return{\u0275kind:g,\u0275providers:m}}function zl(g){return[{provide:ia,multi:!0,useValue:g}]}function Gl(){const g=(0,e.f3M)(e.zs3);return m=>{var p,S;const B=g.get(e.z2F);if(m!==B.components[0])return;const ce=g.get(In),be=g.get(Lr);1===g.get(Ma)&&ce.initialNavigation(),null===(p=g.get(Ds,null,e.XFs.Optional))||void 0===p||p.setUpPreloading(),null===(S=g.get(Ta,null,e.XFs.Optional))||void 0===S||S.init(),ce.resetRootComponentType(B.componentTypes[0]),be.next(),be.complete()}}const Lr=new e.OlP("",{factory:()=>new b.xQ}),Ma=new e.OlP("",{providedIn:"root",factory:()=>1});const Ds=new e.OlP("");function Hc(g){return oa(0,[{provide:Ds,useExisting:Da},{provide:Us,useExisting:g}])}const Ao=new e.OlP("ROUTER_FORROOT_GUARD"),Oa=[G.Ye,{provide:wi,useClass:Hi},{provide:In,useFactory:ns},Sr,{provide:Li,useFactory:function tl(g){return g.routerState.root},deps:[In]},Hs];function Ts(){return new e.PXZ("Router",In)}let nl=(()=>{class g{constructor(p){}static forRoot(p,S){return{ngModule:g,providers:[Oa,[],zl(p),{provide:Ao,useFactory:js,deps:[[In,new e.FiY,new e.tp0]]},{provide:bs,useValue:S||{}},null!=S&&S.useHash?{provide:G.S$,useClass:G.Do}:{provide:G.S$,useClass:G.b0},{provide:Ta,useFactory:()=>{const g=(0,e.f3M)(In),m=(0,e.f3M)(G.EM),p=(0,e.f3M)(bs);return p.scrollOffset&&m.setOffset(p.scrollOffset),new Vn(g,m,p)}},null!=S&&S.preloadingStrategy?Hc(S.preloadingStrategy).\u0275providers:[],{provide:e.PXZ,multi:!0,useFactory:Ts},null!=S&&S.initialNavigation?wa(S):[],[{provide:Tr,useFactory:Gl},{provide:e.tb,multi:!0,useExisting:Tr}]]}}static forChild(p){return{ngModule:g,providers:[zl(p)]}}}return g.\u0275fac=function(p){return new(p||g)(e.LFG(Ao,8))},g.\u0275mod=e.oAB({type:g}),g.\u0275inj=e.cJS({imports:[ar]}),g})();function js(g){return"guarded"}function wa(g){return["disabled"===g.initialNavigation?oa(3,[{provide:e.ip1,multi:!0,useFactory:()=>{const m=(0,e.f3M)(In);return()=>{m.setUpLocationChangeListener()}}},{provide:Ma,useValue:2}]).\u0275providers:[],"enabledBlocking"===g.initialNavigation?oa(2,[{provide:Ma,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:m=>{const p=m.get(G.V_,Promise.resolve());let S=!1;return()=>p.then(()=>new Promise(ce=>{const be=m.get(In),xe=m.get(Lr);(function B(ce){m.get(In).events.pipe((0,Ne.h)(xe=>xe instanceof Xi||xe instanceof jr||xe instanceof vs),(0,w.U)(xe=>xe instanceof Xi||xe instanceof jr&&(0===xe.code||1===xe.code)&&null),(0,Ne.h)(xe=>null!==xe),(0,oe.q)(1)).subscribe(()=>{ce()})})(()=>{ce(!0),S=!0}),be.afterPreactivation=()=>(ce(!0),S||xe.closed?(0,K.of)(void 0):xe),be.initialNavigation()}))}}]).\u0275providers:[]]}const Tr=new e.OlP("")},43740:(Xe,me,h)=>{"use strict";h.d(me,{gY:()=>Vn,Gs:()=>tl,Kz:()=>cl,vL:()=>Ft,uo:()=>Mo,mH:()=>Ts,_D:()=>Zl,lQ:()=>il,qj:()=>$i,NG:()=>Zc,VL:()=>Yl,M:()=>iu,jt:()=>ls,TH:()=>lc,Vi:()=>cc,XC:()=>al,iD:()=>Hd,J4:()=>Md,FF:()=>hc,bz:()=>ws,Pz:()=>Gs,uN:()=>pc,nv:()=>_a,Vx:()=>cs,Oz:()=>Zs,tO:()=>lu,M2:()=>ac,N9:()=>mc,jF:()=>fu,Gk:()=>Da,gW:()=>os,Cu:()=>ra,o8:()=>gu,dT:()=>mu,xl:()=>ji,_L:()=>nh,HK:()=>Au,dR:()=>lh,ZS:()=>Mr});var e=h(94650),s=h(36895),K=h(56498),F=h(68896),Z=h(21086),O=h(5529),H=h(23753),z=h(16014),N=h(66688);function E(a){return!(0,N.k)(a)&&a-parseFloat(a)+1>=0}var y=h(72866);function C(a=0,d,r){let c=-1;return E(d)?c=Number(d)<1?1:Number(d):(0,y.K)(d)&&(r=d),(0,y.K)(r)||(r=z.P),new K.y(_=>{const R=E(a)?a:+a-r.now();return r.schedule(U,R,{index:0,period:c,subscriber:_})})}function U(a){const{index:d,period:r,subscriber:c}=a;if(c.next(d),!c.closed){if(-1===r)return c.complete();a.index=d+1,this.schedule(a,r)}}var b=h(33009),G=h(826),w=h(69054);function ee(...a){if(1===a.length){if(!(0,N.k)(a[0]))return a[0];a=a[0]}return(0,b.n)(a,void 0).lift(new oe)}class oe{call(d,r){return r.subscribe(new _e(d))}}class _e extends G.L{constructor(d){super(d),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(d){this.observables.push(d)}_complete(){const d=this.observables,r=d.length;if(0===r)this.destination.complete();else{for(let c=0;c<r&&!this.hasFirst;c++){let _=d[c],R=(0,w.D)(this,_,_,c);this.subscriptions&&this.subscriptions.push(R),this.add(R)}this.observables=null}}notifyNext(d,r,c,_,R){if(!this.hasFirst){this.hasFirst=!0;for(let ge=0;ge<this.subscriptions.length;ge++)if(ge!==c){let ke=this.subscriptions[ge];ke.unsubscribe(),this.remove(ke)}this.subscriptions=null}this.destination.next(r)}}var Ne=h(591),te=h(36053),de=h(87274),J=h(43489),Ie=h(5430);function Ze(...a){const d=a[a.length-1];return"function"==typeof d&&a.pop(),(0,b.n)(a,void 0).lift(new ot(d))}class ot{constructor(d){this.resultSelector=d}call(d,r){return r.subscribe(new lt(d,this.resultSelector))}}class lt extends J.L{constructor(d,r,c=Object.create(null)){super(d),this.iterators=[],this.active=0,this.resultSelector="function"==typeof r?r:null,this.values=c}_next(d){const r=this.iterators;(0,N.k)(d)?r.push(new qe(d)):r.push("function"==typeof d[Ie.hZ]?new At(d[Ie.hZ]()):new wt(this.destination,this,d))}_complete(){const d=this.iterators,r=d.length;if(this.unsubscribe(),0!==r){this.active=r;for(let c=0;c<r;c++){let _=d[c];_.stillUnsubscribed?this.destination.add(_.subscribe(_,c)):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const d=this.iterators,r=d.length,c=this.destination;for(let ge=0;ge<r;ge++){let ke=d[ge];if("function"==typeof ke.hasValue&&!ke.hasValue())return}let _=!1;const R=[];for(let ge=0;ge<r;ge++){let ke=d[ge],Ue=ke.next();if(ke.hasCompleted()&&(_=!0),Ue.done)return void c.complete();R.push(Ue.value)}this.resultSelector?this._tryresultSelector(R):c.next(R),_&&c.complete()}_tryresultSelector(d){let r;try{r=this.resultSelector.apply(this,d)}catch(c){return void this.destination.error(c)}this.destination.next(r)}}class At{constructor(d){this.iterator=d,this.nextResult=d.next()}hasValue(){return!0}next(){const d=this.nextResult;return this.nextResult=this.iterator.next(),d}hasCompleted(){const d=this.nextResult;return d&&d.done}}class qe{constructor(d){this.array=d,this.index=0,this.length=0,this.length=d.length}[Ie.hZ](){return this}next(d){const r=this.index++;return r<this.length?{value:this.array[r],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class wt extends G.L{constructor(d,r,c){super(d),this.parent=r,this.observable=c,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Ie.hZ](){return this}next(){const d=this.buffer;return 0===d.length&&this.isComplete?{value:null,done:!0}:{value:d.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(d,r,c,_,R){this.buffer.push(r),this.parent.checkIterators()}subscribe(d,r){return(0,w.D)(this,this.observable,this,r)}}var re=h(36787),Ee=h(61221);function Le(a){return d=>d.lift(new Dt(a))}class Dt{constructor(d){this.notifier=d}call(d,r){const c=new Tt(d),_=(0,w.D)(c,this.notifier);return _&&!c.seenValue?(c.add(_),r.subscribe(c)):c}}class Tt extends G.L{constructor(d){super(d),this.seenValue=!1}notifyNext(d,r,c,_,R){this.seenValue=!0,this.complete()}notifyComplete(){}}var pt=h(92198),Be=h(72986),ft=h(24850),gt=h(1059),Et=h(75778),Mt=h(87545),Qt=h(2994);function ye(...a){return d=>{let r;return"function"==typeof a[a.length-1]&&(r=a.pop()),d.lift(new Ae(a,r))}}class Ae{constructor(d,r){this.observables=d,this.project=r}call(d,r){return r.subscribe(new A(d,this.observables,this.project))}}class A extends G.L{constructor(d,r,c){super(d),this.observables=r,this.project=c,this.toRespond=[];const _=r.length;this.values=new Array(_);for(let R=0;R<_;R++)this.toRespond.push(R);for(let R=0;R<_;R++){let ge=r[R];this.add((0,w.D)(this,ge,ge,R))}}notifyNext(d,r,c,_,R){this.values[c]=r;const ge=this.toRespond;if(ge.length>0){const ke=ge.indexOf(c);-1!==ke&&ge.splice(ke,1)}}notifyComplete(){}_next(d){if(0===this.toRespond.length){const r=[d,...this.values];this.project?this._tryProject(r):this.destination.next(r)}}_tryProject(d){let r;try{r=this.project.apply(this,d)}catch(c){return void this.destination.error(c)}this.destination.next(r)}}var j=h(29177),he=h(61709);class We{constructor(d){this.total=d}call(d,r){return r.subscribe(new Qe(d,this.total))}}class Qe extends J.L{constructor(d,r){super(d),this.total=r,this.count=0}_next(d){++this.count>this.total&&this.destination.next(d)}}var Ye=h(88117),Oe=h(24006),Ke={left:"right",right:"left",bottom:"top",top:"bottom"};function yt(a){return a.replace(/left|right|bottom|top/g,function(d){return Ke[d]})}function Ge(a){return a.split("-")[0]}var Y={start:"end",end:"start"};function $(a){return a.replace(/start|end/g,function(d){return Y[d]})}var x="top",ie="bottom",q="right",Q="left",ne="auto",ve=[x,ie,q,Q],Pe="start",_t="end",It="viewport",ct="popper",Kt=ve.reduce(function(a,d){return a.concat([d+"-"+Pe,d+"-"+_t])},[]),On=[].concat(ve,[ne]).reduce(function(a,d){return a.concat([d,d+"-"+Pe,d+"-"+_t])},[]),Hi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function _i(a){if(null==a)return window;if("[object Window]"!==a.toString()){var d=a.ownerDocument;return d&&d.defaultView||window}return a}function bi(a){return a instanceof _i(a).Element||a instanceof Element}function Bn(a){return a instanceof _i(a).HTMLElement||a instanceof HTMLElement}function nn(a){return!(typeof ShadowRoot>"u")&&(a instanceof _i(a).ShadowRoot||a instanceof ShadowRoot)}function Re(a){return((bi(a)?a.ownerDocument:a.document)||window.document).documentElement}var St=Math.max,He=Math.min,mt=Math.round;function $t(){var a=navigator.userAgentData;return null!=a&&a.brands?a.brands.map(function(d){return d.brand+"/"+d.version}).join(" "):navigator.userAgent}function Te(){return!/^((?!chrome|android).)*safari/i.test($t())}function Se(a,d,r){void 0===d&&(d=!1),void 0===r&&(r=!1);var c=a.getBoundingClientRect(),_=1,R=1;d&&Bn(a)&&(_=a.offsetWidth>0&&mt(c.width)/a.offsetWidth||1,R=a.offsetHeight>0&&mt(c.height)/a.offsetHeight||1);var ke=(bi(a)?_i(a):window).visualViewport,Ue=!Te()&&r,st=(c.left+(Ue&&ke?ke.offsetLeft:0))/_,at=(c.top+(Ue&&ke?ke.offsetTop:0))/R,Ut=c.width/_,Rt=c.height/R;return{width:Ut,height:Rt,top:at,right:st+Ut,bottom:at+Rt,left:st,x:st,y:at}}function fe(a){var d=_i(a);return{scrollLeft:d.pageXOffset,scrollTop:d.pageYOffset}}function ze(a){return Se(Re(a)).left+fe(a).scrollLeft}function Nt(a){return _i(a).getComputedStyle(a)}function Yt(a){return a?(a.nodeName||"").toLowerCase():null}function wn(a){return"html"===Yt(a)?a:a.assignedSlot||a.parentNode||(nn(a)?a.host:null)||Re(a)}function xi(a){var d=Nt(a);return/auto|scroll|overlay|hidden/.test(d.overflow+d.overflowY+d.overflowX)}function qt(a){return["html","body","#document"].indexOf(Yt(a))>=0?a.ownerDocument.body:Bn(a)&&xi(a)?a:qt(wn(a))}function oi(a,d){var r;void 0===d&&(d=[]);var c=qt(a),_=c===(null==(r=a.ownerDocument)?void 0:r.body),R=_i(c),ge=_?[R].concat(R.visualViewport||[],xi(c)?c:[]):c,ke=d.concat(ge);return _?ke:ke.concat(oi(wn(ge)))}function ir(a){return["table","td","th"].indexOf(Yt(a))>=0}function Ai(a){return Bn(a)&&"fixed"!==Nt(a).position?a.offsetParent:null}function Hn(a){for(var d=_i(a),r=Ai(a);r&&ir(r)&&"static"===Nt(r).position;)r=Ai(r);return r&&("html"===Yt(r)||"body"===Yt(r)&&"static"===Nt(r).position)?d:r||function jn(a){var d=/firefox/i.test($t());if(/Trident/i.test($t())&&Bn(a)&&"fixed"===Nt(a).position)return null;var _=wn(a);for(nn(_)&&(_=_.host);Bn(_)&&["html","body"].indexOf(Yt(_))<0;){var R=Nt(_);if("none"!==R.transform||"none"!==R.perspective||"paint"===R.contain||-1!==["transform","perspective"].indexOf(R.willChange)||d&&"filter"===R.willChange||d&&R.filter&&"none"!==R.filter)return _;_=_.parentNode}return null}(a)||d}function Nn(a,d){var r=d.getRootNode&&d.getRootNode();if(a.contains(d))return!0;if(r&&nn(r)){var c=d;do{if(c&&a.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function gi(a){return Object.assign({},a,{left:a.x,top:a.y,right:a.x+a.width,bottom:a.y+a.height})}function Ri(a,d,r){return d===It?gi(function ut(a,d){var r=_i(a),c=Re(a),_=r.visualViewport,R=c.clientWidth,ge=c.clientHeight,ke=0,Ue=0;if(_){R=_.width,ge=_.height;var st=Te();(st||!st&&"fixed"===d)&&(ke=_.offsetLeft,Ue=_.offsetTop)}return{width:R,height:ge,x:ke+ze(a),y:Ue}}(a,r)):bi(d)?function Si(a,d){var r=Se(a,!1,"fixed"===d);return r.top=r.top+a.clientTop,r.left=r.left+a.clientLeft,r.bottom=r.top+a.clientHeight,r.right=r.left+a.clientWidth,r.width=a.clientWidth,r.height=a.clientHeight,r.x=r.left,r.y=r.top,r}(d,r):gi(function tn(a){var d,r=Re(a),c=fe(a),_=null==(d=a.ownerDocument)?void 0:d.body,R=St(r.scrollWidth,r.clientWidth,_?_.scrollWidth:0,_?_.clientWidth:0),ge=St(r.scrollHeight,r.clientHeight,_?_.scrollHeight:0,_?_.clientHeight:0),ke=-c.scrollLeft+ze(a),Ue=-c.scrollTop;return"rtl"===Nt(_||r).direction&&(ke+=St(r.clientWidth,_?_.clientWidth:0)-R),{width:R,height:ge,x:ke,y:Ue}}(Re(a)))}function Or(a){return a.split("-")[1]}function rr(a){return["top","bottom"].indexOf(a)>=0?"x":"y"}function Yi(a){var Ue,d=a.reference,r=a.element,c=a.placement,_=c?Ge(c):null,R=c?Or(c):null,ge=d.x+d.width/2-r.width/2,ke=d.y+d.height/2-r.height/2;switch(_){case x:Ue={x:ge,y:d.y-r.height};break;case ie:Ue={x:ge,y:d.y+d.height};break;case q:Ue={x:d.x+d.width,y:ke};break;case Q:Ue={x:d.x-r.width,y:ke};break;default:Ue={x:d.x,y:d.y}}var st=_?rr(_):null;if(null!=st){var at="y"===st?"height":"width";switch(R){case Pe:Ue[st]=Ue[st]-(d[at]/2-r[at]/2);break;case _t:Ue[st]=Ue[st]+(d[at]/2-r[at]/2)}}return Ue}function br(a){return Object.assign({},{top:0,right:0,bottom:0,left:0},a)}function Ni(a,d){return d.reduce(function(r,c){return r[c]=a,r},{})}function Ji(a,d){void 0===d&&(d={});var c=d.placement,_=void 0===c?a.placement:c,R=d.strategy,ge=void 0===R?a.strategy:R,ke=d.boundary,Ue=void 0===ke?"clippingParents":ke,st=d.rootBoundary,at=void 0===st?It:st,Ut=d.elementContext,Rt=void 0===Ut?ct:Ut,Zt=d.altBoundary,Ln=void 0!==Zt&&Zt,Wt=d.padding,pn=void 0===Wt?0:Wt,An=br("number"!=typeof pn?pn:Ni(pn,ve)),di=a.rects.popper,kn=a.elements[Ln?Rt===ct?"reference":ct:Rt],En=function bn(a,d,r,c){var _="clippingParents"===d?function si(a){var d=oi(wn(a)),c=["absolute","fixed"].indexOf(Nt(a).position)>=0&&Bn(a)?Hn(a):a;return bi(c)?d.filter(function(_){return bi(_)&&Nn(_,c)&&"body"!==Yt(_)}):[]}(a):[].concat(d),R=[].concat(_,[r]),ke=R.reduce(function(Ue,st){var at=Ri(a,st,c);return Ue.top=St(at.top,Ue.top),Ue.right=He(at.right,Ue.right),Ue.bottom=He(at.bottom,Ue.bottom),Ue.left=St(at.left,Ue.left),Ue},Ri(a,R[0],c));return ke.width=ke.right-ke.left,ke.height=ke.bottom-ke.top,ke.x=ke.left,ke.y=ke.top,ke}(bi(kn)?kn:kn.contextElement||Re(a.elements.popper),Ue,at,ge),$n=Se(a.elements.reference),hi=Yi({reference:$n,element:di,strategy:"absolute",placement:_}),Wn=gi(Object.assign({},di,hi)),Bi=Rt===ct?Wn:$n,Gi={top:En.top-Bi.top+An.top,bottom:Bi.bottom-En.bottom+An.bottom,left:En.left-Bi.left+An.left,right:Bi.right-En.right+An.right},Zi=a.modifiersData.offset;if(Rt===ct&&Zi){var Ar=Zi[_];Object.keys(Gi).forEach(function(yr){var Ns=[q,ie].indexOf(yr)>=0?1:-1,Ks=[x,ie].indexOf(yr)>=0?"y":"x";Gi[yr]+=Ar[Ks]*Ns})}return Gi}const Ei={name:"flip",enabled:!0,phase:"main",fn:function Zn(a){var d=a.state,r=a.options,c=a.name;if(!d.modifiersData[c]._skip){for(var _=r.mainAxis,R=void 0===_||_,ge=r.altAxis,ke=void 0===ge||ge,Ue=r.fallbackPlacements,st=r.padding,at=r.boundary,Ut=r.rootBoundary,Rt=r.altBoundary,Zt=r.flipVariations,Ln=void 0===Zt||Zt,Wt=r.allowedAutoPlacements,pn=d.options.placement,An=Ge(pn),di=Ue||(An!==pn&&Ln?function Ur(a){if(Ge(a)===ne)return[];var d=yt(a);return[$(a),d,$(d)]}(pn):[yt(pn)]),kn=[pn].concat(di).reduce(function(Is,us){return Is.concat(Ge(us)===ne?function mi(a,d){void 0===d&&(d={});var _=d.boundary,R=d.rootBoundary,ge=d.padding,ke=d.flipVariations,Ue=d.allowedAutoPlacements,st=void 0===Ue?On:Ue,at=Or(d.placement),Ut=at?ke?Kt:Kt.filter(function(Ln){return Or(Ln)===at}):ve,Rt=Ut.filter(function(Ln){return st.indexOf(Ln)>=0});0===Rt.length&&(Rt=Ut);var Zt=Rt.reduce(function(Ln,Wt){return Ln[Wt]=Ji(a,{placement:Wt,boundary:_,rootBoundary:R,padding:ge})[Ge(Wt)],Ln},{});return Object.keys(Zt).sort(function(Ln,Wt){return Zt[Ln]-Zt[Wt]})}(d,{placement:us,boundary:at,rootBoundary:Ut,padding:st,flipVariations:Ln,allowedAutoPlacements:Wt}):us)},[]),En=d.rects.reference,$n=d.rects.popper,hi=new Map,Wn=!0,Bi=kn[0],Gi=0;Gi<kn.length;Gi++){var Zi=kn[Gi],Ar=Ge(Zi),yr=Or(Zi)===Pe,Ns=[x,ie].indexOf(Ar)>=0,Ks=Ns?"width":"height",Hr=Ji(d,{placement:Zi,boundary:at,rootBoundary:Ut,altBoundary:Rt,padding:st}),No=Ns?yr?q:Q:yr?ie:x;En[Ks]>$n[Ks]&&(No=yt(No));var _l=yt(No),Ys=[];if(R&&Ys.push(Hr[Ar]<=0),ke&&Ys.push(Hr[No]<=0,Hr[_l]<=0),Ys.every(function(Is){return Is})){Bi=Zi,Wn=!1;break}hi.set(Zi,Ys)}if(Wn)for(var Cc=function(us){var Ws=kn.find(function(ml){var Js=hi.get(ml);if(Js)return Js.slice(0,us).every(function(vl){return vl})});if(Ws)return Bi=Ws,"break"},ja=Ln?3:1;ja>0&&"break"!==Cc(ja);ja--);d.placement!==Bi&&(d.modifiersData[c]._skip=!0,d.placement=Bi,d.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qi(a,d,r){return St(a,He(d,r))}function Di(a){var d=Se(a),r=a.offsetWidth,c=a.offsetHeight;return Math.abs(d.width-r)<=1&&(r=d.width),Math.abs(d.height-c)<=1&&(c=d.height),{x:a.offsetLeft,y:a.offsetTop,width:r,height:c}}const wr={name:"preventOverflow",enabled:!0,phase:"main",fn:function or(a){var d=a.state,r=a.options,c=a.name,_=r.mainAxis,R=void 0===_||_,ge=r.altAxis,ke=void 0!==ge&&ge,Rt=r.tether,Zt=void 0===Rt||Rt,Ln=r.tetherOffset,Wt=void 0===Ln?0:Ln,pn=Ji(d,{boundary:r.boundary,rootBoundary:r.rootBoundary,padding:r.padding,altBoundary:r.altBoundary}),An=Ge(d.placement),xn=Or(d.placement),di=!xn,kn=rr(An),En=function Qi(a){return"x"===a?"y":"x"}(kn),$n=d.modifiersData.popperOffsets,hi=d.rects.reference,Wn=d.rects.popper,Bi="function"==typeof Wt?Wt(Object.assign({},d.rects,{placement:d.placement})):Wt,Gi="number"==typeof Bi?{mainAxis:Bi,altAxis:Bi}:Object.assign({mainAxis:0,altAxis:0},Bi),Zi=d.modifiersData.offset?d.modifiersData.offset[d.placement]:null,Ar={x:0,y:0};if($n){if(R){var yr,Ns="y"===kn?x:Q,Ks="y"===kn?ie:q,Hr="y"===kn?"height":"width",No=$n[kn],_l=No+pn[Ns],Ys=No-pn[Ks],gl=Zt?-Wn[Hr]/2:0,Cc=xn===Pe?hi[Hr]:Wn[Hr],ja=xn===Pe?-Wn[Hr]:-hi[Hr],za=d.elements.arrow,Is=Zt&&za?Di(za):{width:0,height:0},us=d.modifiersData["arrow#persistent"]?d.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ws=us[Ns],ml=us[Ks],Js=qi(0,hi[Hr],Is[Hr]),vl=di?hi[Hr]/2-gl-Js-Ws-Gi.mainAxis:Cc-Js-Ws-Gi.mainAxis,xu=di?-hi[Hr]/2+gl+Js+ml+Gi.mainAxis:ja+Js+ml+Gi.mainAxis,ds=d.elements.arrow&&Hn(d.elements.arrow),bc=null!=(yr=Zi?.[kn])?yr:0,Of=No+xu-bc,Ga=qi(Zt?He(_l,No+vl-bc-(ds?"y"===kn?ds.clientTop||0:ds.clientLeft||0:0)):_l,No,Zt?St(Ys,Of):Ys);$n[kn]=Ga,Ar[kn]=Ga-No}if(ke){var Lu,Ps=$n[En],ma="y"===En?"height":"width",Sc=Ps+pn["x"===kn?x:Q],Za=Ps-pn["x"===kn?ie:q],va=-1!==[x,Q].indexOf(An),Ec=null!=(Lu=Zi?.[En])?Lu:0,yl=va?Sc:Ps-hi[ma]-Wn[ma]-Ec+Gi.altAxis,Dc=va?Ps+hi[ma]+Wn[ma]-Ec-Gi.altAxis:Za,Cl=Zt&&va?function Vr(a,d,r){var c=qi(a,d,r);return c>r?r:c}(yl,Ps,Dc):qi(Zt?yl:Sc,Ps,Zt?Dc:Za);$n[En]=Cl,Ar[En]=Cl-Ps}d.modifiersData[c]=Ar}},requiresIfExists:["offset"]},Ui={name:"arrow",enabled:!0,phase:"main",fn:function jr(a){var d,r=a.state,c=a.name,_=a.options,R=r.elements.arrow,ge=r.modifiersData.popperOffsets,ke=Ge(r.placement),Ue=rr(ke),at=[Q,q].indexOf(ke)>=0?"height":"width";if(R&&ge){var Ut=function(d,r){return br("number"!=typeof(d="function"==typeof d?d(Object.assign({},r.rects,{placement:r.placement})):d)?d:Ni(d,ve))}(_.padding,r),Rt=Di(R),Zt="y"===Ue?x:Q,Ln="y"===Ue?ie:q,Wt=r.rects.reference[at]+r.rects.reference[Ue]-ge[Ue]-r.rects.popper[at],pn=ge[Ue]-r.rects.reference[Ue],An=Hn(R),xn=An?"y"===Ue?An.clientHeight||0:An.clientWidth||0:0,$n=xn/2-Rt[at]/2+(Wt/2-pn/2),hi=qi(Ut[Zt],$n,xn-Rt[at]-Ut[Ln]);r.modifiersData[c]=((d={})[Ue]=hi,d.centerOffset=hi-$n,d)}},effect:function vs(a){var d=a.state,c=a.options.element,_=void 0===c?"[data-popper-arrow]":c;null!=_&&("string"==typeof _&&!(_=d.elements.popper.querySelector(_))||!Nn(d.elements.popper,_)||(d.elements.arrow=_))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ys(a,d,r){void 0===r&&(r=!1);var c=Bn(d),_=Bn(d)&&function Zo(a){var d=a.getBoundingClientRect(),r=mt(d.width)/a.offsetWidth||1,c=mt(d.height)/a.offsetHeight||1;return 1!==r||1!==c}(d),R=Re(d),ge=Se(a,_,r),ke={scrollLeft:0,scrollTop:0},Ue={x:0,y:0};return(c||!c&&!r)&&(("body"!==Yt(d)||xi(R))&&(ke=function Go(a){return a!==_i(a)&&Bn(a)?function zo(a){return{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}}(a):fe(a)}(d)),Bn(d)?((Ue=Se(d,!0)).x+=d.clientLeft,Ue.y+=d.clientTop):R&&(Ue.x=ze(R))),{x:ge.left+ke.scrollLeft-Ue.x,y:ge.top+ke.scrollTop-Ue.y,width:ge.width,height:ge.height}}function mo(a){var d=new Map,r=new Set,c=[];function _(R){r.add(R.name),[].concat(R.requires||[],R.requiresIfExists||[]).forEach(function(ke){if(!r.has(ke)){var Ue=d.get(ke);Ue&&_(Ue)}}),c.push(R)}return a.forEach(function(R){d.set(R.name,R)}),a.forEach(function(R){r.has(R.name)||_(R)}),c}function Po(a){var d;return function(){return d||(d=new Promise(function(r){Promise.resolve().then(function(){d=void 0,r(a())})})),d}}var vo={placement:"bottom",modifiers:[],strategy:"absolute"};function qr(){for(var a=arguments.length,d=new Array(a),r=0;r<a;r++)d[r]=arguments[r];return!d.some(function(c){return!(c&&"function"==typeof c.getBoundingClientRect)})}function co(a){void 0===a&&(a={});var r=a.defaultModifiers,c=void 0===r?[]:r,_=a.defaultOptions,R=void 0===_?vo:_;return function(ke,Ue,st){void 0===st&&(st=R);var at={placement:"bottom",orderedModifiers:[],options:Object.assign({},vo,R),modifiersData:{},elements:{reference:ke,popper:Ue},attributes:{},styles:{}},Ut=[],Rt=!1,Zt={state:at,setOptions:function(An){var xn="function"==typeof An?An(at.options):An;Wt(),at.options=Object.assign({},R,at.options,xn),at.scrollParents={reference:bi(ke)?oi(ke):ke.contextElement?oi(ke.contextElement):[],popper:oi(Ue)};var di=function Ko(a){var d=mo(a);return Hi.reduce(function(r,c){return r.concat(d.filter(function(_){return _.phase===c}))},[])}(function lo(a){var d=a.reduce(function(r,c){var _=r[c.name];return r[c.name]=_?Object.assign({},_,c,{options:Object.assign({},_.options,c.options),data:Object.assign({},_.data,c.data)}):c,r},{});return Object.keys(d).map(function(r){return d[r]})}([].concat(c,at.options.modifiers)));return at.orderedModifiers=di.filter(function(Zi){return Zi.enabled}),function Ln(){at.orderedModifiers.forEach(function(pn){var xn=pn.options,kn=pn.effect;if("function"==typeof kn){var En=kn({state:at,name:pn.name,instance:Zt,options:void 0===xn?{}:xn});Ut.push(En||function(){})}})}(),Zt.update()},forceUpdate:function(){if(!Rt){var An=at.elements,xn=An.reference,di=An.popper;if(qr(xn,di)){at.rects={reference:ys(xn,Hn(di),"fixed"===at.options.strategy),popper:Di(di)},at.reset=!1,at.placement=at.options.placement,at.orderedModifiers.forEach(function(Zi){return at.modifiersData[Zi.name]=Object.assign({},Zi.data)});for(var En=0;En<at.orderedModifiers.length;En++)if(!0!==at.reset){var $n=at.orderedModifiers[En],hi=$n.fn,Wn=$n.options;"function"==typeof hi&&(at=hi({state:at,options:void 0===Wn?{}:Wn,name:$n.name,instance:Zt})||at)}else at.reset=!1,En=-1}}},update:Po(function(){return new Promise(function(pn){Zt.forceUpdate(),pn(at)})}),destroy:function(){Wt(),Rt=!0}};if(!qr(ke,Ue))return Zt;function Wt(){Ut.forEach(function(pn){return pn()}),Ut=[]}return Zt.setOptions(st).then(function(pn){!Rt&&st.onFirstUpdate&&st.onFirstUpdate(pn)}),Zt}}var zr={passive:!0},uo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gr(a){var d,r=a.popper,c=a.popperRect,_=a.placement,R=a.variation,ge=a.offsets,ke=a.position,Ue=a.gpuAcceleration,st=a.adaptive,at=a.roundOffsets,Ut=a.isFixed,Rt=ge.x,Zt=void 0===Rt?0:Rt,Ln=ge.y,Wt=void 0===Ln?0:Ln,pn="function"==typeof at?at({x:Zt,y:Wt}):{x:Zt,y:Wt};Zt=pn.x,Wt=pn.y;var An=ge.hasOwnProperty("x"),xn=ge.hasOwnProperty("y"),di=Q,kn=x,En=window;if(st){var $n=Hn(r),hi="clientHeight",Wn="clientWidth";$n===_i(r)&&"static"!==Nt($n=Re(r)).position&&"absolute"===ke&&(hi="scrollHeight",Wn="scrollWidth"),(_===x||(_===Q||_===q)&&R===_t)&&(kn=ie,Wt-=(Ut&&$n===En&&En.visualViewport?En.visualViewport.height:$n[hi])-c.height,Wt*=Ue?1:-1),_!==Q&&(_!==x&&_!==ie||R!==_t)||(di=q,Zt-=(Ut&&$n===En&&En.visualViewport?En.visualViewport.width:$n[Wn])-c.width,Zt*=Ue?1:-1)}var yr,Zi=Object.assign({position:ke},st&&uo),Ar=!0===at?function Li(a){var r=a.y,_=window.devicePixelRatio||1;return{x:mt(a.x*_)/_||0,y:mt(r*_)/_||0}}({x:Zt,y:Wt}):{x:Zt,y:Wt};return Zt=Ar.x,Wt=Ar.y,Object.assign({},Zi,Ue?((yr={})[kn]=xn?"0":"",yr[di]=An?"0":"",yr.transform=(En.devicePixelRatio||1)<=1?"translate("+Zt+"px, "+Wt+"px)":"translate3d("+Zt+"px, "+Wt+"px, 0)",yr):((d={})[kn]=xn?Wt+"px":"",d[di]=An?Zt+"px":"",d.transform="",d))}var ri=co({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function er(a){var d=a.state,r=a.instance,c=a.options,_=c.scroll,R=void 0===_||_,ge=c.resize,ke=void 0===ge||ge,Ue=_i(d.elements.popper),st=[].concat(d.scrollParents.reference,d.scrollParents.popper);return R&&st.forEach(function(at){at.addEventListener("scroll",r.update,zr)}),ke&&Ue.addEventListener("resize",r.update,zr),function(){R&&st.forEach(function(at){at.removeEventListener("scroll",r.update,zr)}),ke&&Ue.removeEventListener("resize",r.update,zr)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function ai(a){var d=a.state;d.modifiersData[a.name]=Yi({reference:d.rects.reference,element:d.rects.popper,strategy:"absolute",placement:d.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function sr(a){var d=a.state,r=a.options,c=r.gpuAcceleration,_=void 0===c||c,R=r.adaptive,ge=void 0===R||R,ke=r.roundOffsets,Ue=void 0===ke||ke,at={placement:Ge(d.placement),variation:Or(d.placement),popper:d.elements.popper,popperRect:d.rects.popper,gpuAcceleration:_,isFixed:"fixed"===d.options.strategy};null!=d.modifiersData.popperOffsets&&(d.styles.popper=Object.assign({},d.styles.popper,Gr(Object.assign({},at,{offsets:d.modifiersData.popperOffsets,position:d.options.strategy,adaptive:ge,roundOffsets:Ue})))),null!=d.modifiersData.arrow&&(d.styles.arrow=Object.assign({},d.styles.arrow,Gr(Object.assign({},at,{offsets:d.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Ue})))),d.attributes.popper=Object.assign({},d.attributes.popper,{"data-popper-placement":d.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function Pr(a){var d=a.state;Object.keys(d.elements).forEach(function(r){var c=d.styles[r]||{},_=d.attributes[r]||{},R=d.elements[r];!Bn(R)||!Yt(R)||(Object.assign(R.style,c),Object.keys(_).forEach(function(ge){var ke=_[ge];!1===ke?R.removeAttribute(ge):R.setAttribute(ge,!0===ke?"":ke)}))})},effect:function Xr(a){var d=a.state,r={popper:{position:d.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(d.elements.popper.style,r.popper),d.styles=r,d.elements.arrow&&Object.assign(d.elements.arrow.style,r.arrow),function(){Object.keys(d.elements).forEach(function(c){var _=d.elements[c],R=d.attributes[c]||{},ke=Object.keys(d.styles.hasOwnProperty(c)?d.styles[c]:r[c]).reduce(function(Ue,st){return Ue[st]="",Ue},{});!Bn(_)||!Yt(_)||(Object.assign(_.style,ke),Object.keys(R).forEach(function(Ue){_.removeAttribute(Ue)}))})}},requires:["computeStyles"]}]});const yo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function Zr(a){var d=a.state,c=a.name,_=a.options.offset,R=void 0===_?[0,0]:_,ge=On.reduce(function(at,Ut){return at[Ut]=function ho(a,d,r){var c=Ge(a),_=[Q,x].indexOf(c)>=0?-1:1,R="function"==typeof r?r(Object.assign({},d,{placement:a})):r,ge=R[0],ke=R[1];return ge=ge||0,ke=(ke||0)*_,[Q,q].indexOf(c)>=0?{x:ke,y:ge}:{x:ge,y:ke}}(Ut,d.rects,R),at},{}),ke=ge[d.placement],st=ke.y;null!=d.modifiersData.popperOffsets&&(d.modifiersData.popperOffsets.x+=ke.x,d.modifiersData.popperOffsets.y+=st),d.modifiersData[c]=ge}};function Kr(a,d){}function Wo(a,d){if(1&a&&(e.TgZ(0,"button",3),e._uU(1),e.YNc(2,Kr,0,0,"ng-template",4),e.qZA()),2&a){const r=d.$implicit;e.Q6J("ngbPanelToggle",r),e.xp6(1),e.hij(" ",r.title,""),e.xp6(1),e.Q6J("ngTemplateOutlet",null==r.titleTpl?null:r.titleTpl.templateRef)}}function Kn(a,d){}function xo(a,d){}function to(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"div",8),e.NdJ("ngbRef",function(_){e.CHM(r);const R=e.oxw().$implicit;return e.KtG(R.panelDiv=_)}),e.TgZ(1,"div",9),e.YNc(2,xo,0,0,"ng-template",4),e.qZA()()}if(2&a){const r=e.oxw().$implicit;e.s9C("id",r.id),e.uIk("aria-labelledby",r.id+"-header"),e.xp6(2),e.Q6J("ngTemplateOutlet",(null==r.contentTpl?null:r.contentTpl.templateRef)||null)}}const ki=function(a,d){return{$implicit:a,opened:d}};function ni(a,d){if(1&a&&(e.TgZ(0,"div")(1,"div",5),e.YNc(2,Kn,0,0,"ng-template",6),e.qZA(),e.YNc(3,to,3,3,"div",7),e.qZA()),2&a){const r=d.$implicit,c=e.oxw(),_=e.MAs(1);e.Tol("accordion-item "+(r.cardClass||"")),e.xp6(1),e.Tol("accordion-header "+(r.type?"bg-"+r.type:c.type?"bg-"+c.type:"")),e.MGl("id","",r.id,"-header"),e.xp6(1),e.Q6J("ngTemplateOutlet",(null==r.headerTpl?null:r.headerTpl.templateRef)||_)("ngTemplateOutletContext",e.WLB(8,ki,r,r.isOpen)),e.xp6(1),e.Q6J("ngIf",!c.destroyOnHide||r.isOpen||r.transitionRunning)}}const hr=["*"];function Rr(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){const R=e.CHM(r).$implicit,ge=e.oxw();return ge.focus(),e.KtG(ge.select(R.id,ge.NgbSlideEventSource.INDICATOR))}),e.qZA()}if(2&a){const r=d.$implicit,c=e.oxw();e.ekj("active",r.id===c.activeId),e.uIk("aria-labelledby","slide-"+r.id)("aria-controls","slide-"+r.id)("aria-selected",r.id===c.activeId)}}function Dn(a,d){}function Co(a,d){if(1&a&&(e.TgZ(0,"div",7)(1,"span",8),e.SDv(2,9),e.qZA(),e.YNc(3,Dn,0,0,"ng-template",10),e.qZA()),2&a){const r=d.$implicit,c=d.index,_=d.count;e.Q6J("id","slide-"+r.id),e.xp6(2),e.pQV(c+1)(_),e.QtT(2),e.xp6(1),e.Q6J("ngTemplateOutlet",r.tplRef)}}function ar(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(r);const _=e.oxw();return e.KtG(_.arrowLeft())}),e._UZ(1,"span",12),e.TgZ(2,"span",8),e.SDv(3,13),e.qZA()()}}function po(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(r);const _=e.oxw();return e.KtG(_.arrowRight())}),e._UZ(1,"span",15),e.TgZ(2,"span",8),e.SDv(3,16),e.qZA()()}}const pr=["month"],bo=["year"];function no(a,d){if(1&a&&(e.TgZ(0,"option",5),e._uU(1),e.qZA()),2&a){const r=d.$implicit,c=e.oxw();e.Q6J("value",r),e.uIk("aria-label",c.i18n.getMonthFullName(r,c.date.year)),e.xp6(1),e.Oqu(c.i18n.getMonthShortName(r,c.date.year))}}function ln(a,d){if(1&a&&(e.TgZ(0,"option",5),e._uU(1),e.qZA()),2&a){const r=d.$implicit,c=e.oxw();e.Q6J("value",r),e.xp6(1),e.Oqu(c.i18n.getYearNumerals(r))}}function Ro(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"ngb-datepicker-navigation-select",7),e.NdJ("select",function(_){e.CHM(r);const R=e.oxw();return e.KtG(R.select.emit(_))}),e.qZA()}if(2&a){const r=e.oxw();e.Q6J("date",r.date)("disabled",r.disabled)("months",r.selectBoxes.months)("years",r.selectBoxes.years)}}function ea(a,d){1&a&&e._UZ(0,"div",0)}function Lo(a,d){1&a&&e._UZ(0,"div",0)}function Jo(a,d){if(1&a&&(e.YNc(0,ea,1,0,"div",9),e.TgZ(1,"div",10),e._uU(2),e.qZA(),e.YNc(3,Lo,1,0,"div",9)),2&a){const r=d.$implicit,c=d.index,_=e.oxw(2);e.Q6J("ngIf",c>0),e.xp6(2),e.hij(" ",_.i18n.getMonthLabel(r.firstDate)," "),e.xp6(1),e.Q6J("ngIf",c!==_.months.length-1)}}function io(a,d){if(1&a&&e.YNc(0,Jo,4,3,"ng-template",8),2&a){const r=e.oxw();e.Q6J("ngForOf",r.months)}}const li=["ngbDatepickerDayView",""],Qo=["defaultDayTemplate"],ro=["content"];function bt(a,d){if(1&a&&e._UZ(0,"div",7),2&a){const c=d.currentMonth,_=d.selected,R=d.disabled,ge=d.focused;e.Q6J("date",d.date)("currentMonth",c)("selected",_)("disabled",R)("focused",ge)}}function fn(a,d){if(1&a&&(e.TgZ(0,"div",12),e._uU(1),e.qZA()),2&a){const r=e.oxw().$implicit,c=e.oxw(2);e.xp6(1),e.hij(" ",c.i18n.getMonthLabel(r.firstDate)," ")}}function qo(a,d){if(1&a&&(e.TgZ(0,"div",9),e.YNc(1,fn,2,1,"div",10),e._UZ(2,"ngb-datepicker-month",11),e.qZA()),2&a){const r=d.$implicit,c=e.oxw(2);e.xp6(1),e.Q6J("ngIf","none"===c.navigation||c.displayMonths>1&&"select"===c.navigation),e.xp6(1),e.Q6J("month",r.firstDate)}}function oo(a,d){if(1&a&&e.YNc(0,qo,3,2,"div",8),2&a){const r=e.oxw();e.Q6J("ngForOf",r.model.months)}}function ci(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"ngb-datepicker-navigation",13),e.NdJ("navigate",function(_){e.CHM(r);const R=e.oxw();return e.KtG(R.onNavigateEvent(_))})("select",function(_){e.CHM(r);const R=e.oxw();return e.KtG(R.onNavigateDateSelect(_))}),e.qZA()}if(2&a){const r=e.oxw();e.Q6J("date",r.model.firstDate)("months",r.model.months)("disabled",r.model.disabled)("showSelect","select"===r.model.navigation)("prevDisabled",r.model.prevDisabled)("nextDisabled",r.model.nextDisabled)("selectBoxes",r.model.selectBoxes)}}function V(a,d){}function I(a,d){}function D(a,d){if(1&a&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&a){const r=e.oxw(2);e.xp6(1),e.Oqu(r.i18n.getWeekLabel())}}function ue(a,d){if(1&a&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&a){const r=d.$implicit;e.xp6(1),e.Oqu(r)}}function it(a,d){if(1&a&&(e.TgZ(0,"div",2),e.YNc(1,D,2,1,"div",3),e.YNc(2,ue,2,1,"div",4),e.qZA()),2&a){const r=e.oxw();e.xp6(1),e.Q6J("ngIf",r.datepicker.showWeekNumbers),e.xp6(1),e.Q6J("ngForOf",r.viewModel.weekdays)}}function Ht(a,d){if(1&a&&(e.TgZ(0,"div",11),e._uU(1),e.qZA()),2&a){const r=e.oxw(2).$implicit,c=e.oxw();e.xp6(1),e.Oqu(c.i18n.getWeekNumerals(r.number))}}function qn(a,d){}function Vi(a,d){if(1&a&&e.YNc(0,qn,0,0,"ng-template",14),2&a){const r=e.oxw().$implicit,c=e.oxw(3);e.Q6J("ngTemplateOutlet",c.datepicker.dayTemplate)("ngTemplateOutletContext",r.context)}}function fr(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(_){const ge=e.CHM(r).$implicit;return e.oxw(3).doSelect(ge),e.KtG(_.preventDefault())}),e.YNc(1,Vi,1,2,"ng-template",13),e.qZA()}if(2&a){const r=d.$implicit;e.ekj("disabled",r.context.disabled)("hidden",r.hidden)("ngb-dp-today",r.context.today),e.Q6J("tabindex",r.tabindex),e.uIk("aria-label",r.ariaLabel),e.xp6(1),e.Q6J("ngIf",!r.hidden)}}function Un(a,d){if(1&a&&(e.TgZ(0,"div",8),e.YNc(1,Ht,2,1,"div",9),e.YNc(2,fr,2,9,"div",10),e.qZA()),2&a){const r=e.oxw().$implicit,c=e.oxw();e.xp6(1),e.Q6J("ngIf",c.datepicker.showWeekNumbers),e.xp6(1),e.Q6J("ngForOf",r.days)}}function _r(a,d){1&a&&e.YNc(0,Un,3,2,"div",7),2&a&&e.Q6J("ngIf",!d.$implicit.collapsed)}const Sn=["dialog"],fo=["ngbNavOutlet",""];function Er(a,d){}const ta=function(a){return{$implicit:a}};function ko(a,d){if(1&a&&(e.TgZ(0,"div",2),e.YNc(1,Er,0,0,"ng-template",3),e.qZA()),2&a){const r=e.oxw().$implicit,c=e.oxw();e.Q6J("item",r)("nav",c.nav)("role",c.paneRole),e.xp6(1),e.Q6J("ngTemplateOutlet",(null==r.contentTpl?null:r.contentTpl.templateRef)||null)("ngTemplateOutletContext",e.VKq(5,ta,r.active||c.isPanelTransitioning(r)))}}function Xo(a,d){if(1&a&&e.YNc(0,ko,2,7,"div",1),2&a){const r=d.$implicit,c=e.oxw();e.Q6J("ngIf",r.isPanelInDom()||c.isPanelTransitioning(r))}}function So(a,d){1&a&&(e.TgZ(0,"span",9),e.SDv(1,10),e.qZA())}function Yr(a,d){1&a&&(e.TgZ(0,"span",9),e.SDv(1,11),e.qZA())}function _o(a,d){1&a&&(e.TgZ(0,"span",9),e.SDv(1,12),e.qZA())}function Fs(a,d){1&a&&(e.TgZ(0,"span",9),e.SDv(1,13),e.qZA())}function Fo(a,d){1&a&&e._uU(0,"...")}function es(a,d){1&a&&(e.TgZ(0,"span",15),e._uU(1,"(current)"),e.qZA())}function go(a,d){if(1&a&&(e._uU(0),e.YNc(1,es,2,0,"span",14)),2&a){const r=d.$implicit,c=d.currentPage;e.hij(" ",r," "),e.xp6(1),e.Q6J("ngIf",r===c)}}function $o(a,d){}const $s=function(a){return{disabled:!0,currentPage:a}};function Bs(a,d){if(1&a&&(e.TgZ(0,"a",20),e.YNc(1,$o,0,0,"ng-template",8),e.qZA()),2&a){const r=e.oxw(2).$implicit,c=e.oxw(),_=e.MAs(9);e.xp6(1),e.Q6J("ngTemplateOutlet",(null==c.tplEllipsis?null:c.tplEllipsis.templateRef)||_)("ngTemplateOutletContext",e.VKq(2,$s,r))}}function ts(a,d){}const M=function(a,d,r){return{disabled:a,$implicit:d,currentPage:r}};function X(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"a",21),e.NdJ("click",function(_){e.CHM(r);const R=e.oxw().$implicit;return e.oxw(2).selectPage(R),e.KtG(_.preventDefault())}),e.YNc(1,ts,0,0,"ng-template",8),e.qZA()}if(2&a){const r=e.oxw().$implicit,c=e.oxw(),_=c.disabled,R=c.$implicit,ge=e.oxw(),ke=e.MAs(11);e.uIk("tabindex",_?"-1":null)("aria-disabled",_?"true":null),e.xp6(1),e.Q6J("ngTemplateOutlet",(null==ge.tplNumber?null:ge.tplNumber.templateRef)||ke)("ngTemplateOutletContext",e.kEZ(4,M,_,r,R))}}function P(a,d){if(1&a&&(e.TgZ(0,"li",17),e.YNc(1,Bs,2,4,"a",18),e.YNc(2,X,2,8,"a",19),e.qZA()),2&a){const r=d.$implicit,c=e.oxw(),_=c.$implicit,R=c.disabled,ge=e.oxw();e.ekj("active",r===_)("disabled",ge.isEllipsis(r)||R),e.uIk("aria-current",r===_?"page":null),e.xp6(1),e.Q6J("ngIf",ge.isEllipsis(r)),e.xp6(1),e.Q6J("ngIf",!ge.isEllipsis(r))}}function ae(a,d){1&a&&e.YNc(0,P,3,7,"li",16),2&a&&e.Q6J("ngForOf",d.pages)}function we(a,d){}const tt=function(a,d){return{disabled:a,currentPage:d}};function dt(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"li",17)(1,"a",22),e.NdJ("click",function(_){return e.CHM(r),e.oxw().selectPage(1),e.KtG(_.preventDefault())}),e.YNc(2,we,0,0,"ng-template",8),e.qZA()()}if(2&a){const r=e.oxw(),c=e.MAs(1);e.ekj("disabled",r.previousDisabled()),e.xp6(1),e.uIk("tabindex",r.previousDisabled()?"-1":null)("aria-disabled",r.previousDisabled()?"true":null),e.xp6(1),e.Q6J("ngTemplateOutlet",(null==r.tplFirst?null:r.tplFirst.templateRef)||c)("ngTemplateOutletContext",e.WLB(6,tt,r.previousDisabled(),r.page))}}function Vt(a,d){}const Tn=function(a){return{disabled:a}};function gn(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"li",17)(1,"a",23),e.NdJ("click",function(_){e.CHM(r);const R=e.oxw();return R.selectPage(R.page-1),e.KtG(_.preventDefault())}),e.YNc(2,Vt,0,0,"ng-template",8),e.qZA()()}if(2&a){const r=e.oxw(),c=e.MAs(3);e.ekj("disabled",r.previousDisabled()),e.xp6(1),e.uIk("tabindex",r.previousDisabled()?"-1":null)("aria-disabled",r.previousDisabled()?"true":null),e.xp6(1),e.Q6J("ngTemplateOutlet",(null==r.tplPrevious?null:r.tplPrevious.templateRef)||c)("ngTemplateOutletContext",e.VKq(6,Tn,r.previousDisabled()))}}function Cn(a,d){}function hn(a,d){}function ii(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"li",17)(1,"a",24),e.NdJ("click",function(_){e.CHM(r);const R=e.oxw();return R.selectPage(R.page+1),e.KtG(_.preventDefault())}),e.YNc(2,hn,0,0,"ng-template",8),e.qZA()()}if(2&a){const r=e.oxw(),c=e.MAs(5);e.ekj("disabled",r.nextDisabled()),e.xp6(1),e.uIk("tabindex",r.nextDisabled()?"-1":null)("aria-disabled",r.nextDisabled()?"true":null),e.xp6(1),e.Q6J("ngTemplateOutlet",(null==r.tplNext?null:r.tplNext.templateRef)||c)("ngTemplateOutletContext",e.WLB(6,tt,r.nextDisabled(),r.page))}}function Mn(a,d){}function zn(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"li",17)(1,"a",25),e.NdJ("click",function(_){e.CHM(r);const R=e.oxw();return R.selectPage(R.pageCount),e.KtG(_.preventDefault())}),e.YNc(2,Mn,0,0,"ng-template",8),e.qZA()()}if(2&a){const r=e.oxw(),c=e.MAs(7);e.ekj("disabled",r.nextDisabled()),e.xp6(1),e.uIk("tabindex",r.nextDisabled()?"-1":null)("aria-disabled",r.nextDisabled()?"true":null),e.xp6(1),e.Q6J("ngTemplateOutlet",(null==r.tplLast?null:r.tplLast.templateRef)||c)("ngTemplateOutletContext",e.WLB(6,tt,r.nextDisabled(),r.page))}}const Oi=function(a,d,r){return{$implicit:a,pages:d,disabled:r}};function k(a,d){if(1&a&&e._uU(0),2&a){const r=e.oxw(2);e.Oqu(r.title)}}function se(a,d){}function pe(a,d){if(1&a&&(e.TgZ(0,"h3",3),e.YNc(1,k,1,1,"ng-template",null,4,e.W1O),e.YNc(3,se,0,0,"ng-template",5),e.qZA()),2&a){const r=e.MAs(2),c=e.oxw();e.xp6(3),e.Q6J("ngTemplateOutlet",c.isTitleTemplate()?c.title:r)("ngTemplateOutletContext",c.context)}}function ui(a,d){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&a){const r=e.oxw().$implicit,c=e.oxw();e.Tol(c.highlightClass),e.xp6(1),e.Oqu(r)}}function Fi(a,d){if(1&a&&e._uU(0),2&a){const r=e.oxw().$implicit;e.Oqu(r)}}function Dr(a,d){if(1&a&&(e.YNc(0,ui,2,3,"span",1),e.YNc(1,Fi,1,1,"ng-template",null,2,e.W1O)),2&a){const r=d.odd,c=e.MAs(2);e.Q6J("ngIf",r)("ngIfElse",c)}}function Wr(a,d){if(1&a&&e._UZ(0,"ngb-highlight",2),2&a){const c=d.term;e.Q6J("result",(0,d.formatter)(d.result))("term",c)}}function gr(a,d){}const Eo=function(a,d,r){return{result:a,term:d,formatter:r}};function cr(a,d){if(1&a){const r=e.EpF();e.TgZ(0,"button",3),e.NdJ("mouseenter",function(){const R=e.CHM(r).index,ge=e.oxw();return e.KtG(ge.markActive(R))})("click",function(){const R=e.CHM(r).$implicit,ge=e.oxw();return e.KtG(ge.select(R))}),e.YNc(1,gr,0,0,"ng-template",4),e.qZA()}if(2&a){const r=d.$implicit,c=d.index,_=e.oxw(),R=e.MAs(1);e.ekj("active",c===_.activeIdx),e.Q6J("id",_.id+"-"+c),e.xp6(1),e.Q6J("ngTemplateOutlet",_.resultTemplate||R)("ngTemplateOutletContext",e.kEZ(5,Eo,r,_.term,_.formatter))}}function Ii(a){return parseInt(`${a}`,10)}function ur(a){return null!=a?`${a}`:""}function so(a){return"string"==typeof a}function Yn(a){return!isNaN(Ii(a))}function nr(a){return"number"==typeof a&&isFinite(a)&&Math.floor(a)===a}function Bo(a){return null!=a}function na(a){return Yn(a)?`0${a}`.slice(-2):""}function Hs(a,d){return a&&a.className&&a.className.split&&a.className.split(/\s+/).indexOf(d)>=0}function To(a){return(a||document.body).getBoundingClientRect()}function Xa(a){return a.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const Sa={animation:!0,transitionTimerDelayMs:5},Ss=()=>{},{transitionTimerDelayMs:Vl}=Sa,ns=new Map,In=(a,d,r,c)=>{let _=c.context||{};const R=ns.get(d);if(R)switch(c.runningTransition){case"continue":return F.E;case"stop":a.run(()=>R.transition$.complete()),_=Object.assign(R.context,_),ns.delete(d)}const ge=r(d,c.animation,_)||Ss;if(!c.animation||"none"===window.getComputedStyle(d).transitionProperty)return a.run(()=>ge()),(0,Z.of)(void 0).pipe(function Ho(a){return d=>new K.y(r=>d.subscribe({next:ge=>a.run(()=>r.next(ge)),error:ge=>a.run(()=>r.error(ge)),complete:()=>a.run(()=>r.complete())}))}(a));const ke=new O.xQ,Ue=new O.xQ,st=ke.pipe(function Ve(...a){return d=>(0,Ee.z)(d,(0,Z.of)(...a))}(!0));ns.set(d,{transition$:ke,complete:()=>{Ue.next(),Ue.complete()},context:_});const at=function el(a){const{transitionDelay:d,transitionDuration:r}=window.getComputedStyle(a);return 1e3*(parseFloat(d)+parseFloat(r))}(d);return a.runOutsideAngular(()=>{const Ut=(0,H.R)(d,"transitionend").pipe(Le(st),(0,pt.h)(({target:Zt})=>Zt===d));ee(C(at+Vl).pipe(Le(st)),Ut,Ue).pipe(Le(st)).subscribe(()=>{ns.delete(d),a.run(()=>{ge(),ke.next(),ke.complete()})})}),ke.asObservable()},is=(a,d,r)=>{let{direction:c,maxHeight:_}=r;const{classList:R}=a;function ge(){R.add("collapse"),"show"===c?R.add("show"):R.remove("show")}if(d)return _||(_=function Ea(a){if(typeof navigator>"u")return"0px";const{classList:d}=a,r=d.contains("show");r||d.add("show"),a.style.height="";const c=a.getBoundingClientRect().height+"px";return r||d.remove("show"),c}(a),r.maxHeight=_,a.style.height="show"!==c?_:"0px",R.remove("collapse"),R.remove("collapsing"),R.remove("show"),To(a),R.add("collapsing")),a.style.height="show"===c?_:"0px",()=>{ge(),R.remove("collapsing"),a.style.height=""};ge()};let mr=(()=>{class a{constructor(){this.animation=Sa.animation}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),rs=(()=>{class a{constructor(r){this._ngbConfig=r,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(r){this._animation=r}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(mr))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),Es=0,Us=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbPanelHeader",""]]}),a})(),ra=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbPanelTitle",""]]}),a})(),os=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbPanelContent",""]]}),a})(),Da=(()=>{class a{constructor(){this.disabled=!1,this.id="ngb-panel-"+Es++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new e.vpe,this.hidden=new e.vpe}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275dir=e.lG2({type:a,selectors:[["ngb-panel"]],contentQueries:function(r,c,_){if(1&r&&(e.Suo(_,ra,4),e.Suo(_,Us,4),e.Suo(_,os,4)),2&r){let R;e.iGM(R=e.CRH())&&(c.titleTpls=R),e.iGM(R=e.CRH())&&(c.headerTpls=R),e.iGM(R=e.CRH())&&(c.contentTpls=R)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"}}),a})(),Ta=(()=>{class a{constructor(r){this._El=r,this.ngbRef=new e.vpe}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.SBq))},a.\u0275dir=e.lG2({type:a,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"}}),a})(),Vn=(()=>{class a{constructor(r,c,_){this._ngZone=c,this._changeDetector=_,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new e.vpe,this.shown=new e.vpe,this.hidden=new e.vpe,this.animation=r.animation,this.type=r.type,this.closeOtherPanels=r.closeOthers}isExpanded(r){return this.activeIds.indexOf(r)>-1}expand(r){this._changeOpenState(this._findPanelById(r),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(r=>this._changeOpenState(r,!0))}collapse(r){this._changeOpenState(this._findPanelById(r),!1)}collapseAll(){this.panels.forEach(r=>{this._changeOpenState(r,!1)})}toggle(r){const c=this._findPanelById(r);c&&this._changeOpenState(c,!c.isOpen)}ngAfterContentChecked(){so(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(r=>{r.isOpen=!r.disabled&&this.activeIds.indexOf(r.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe((0,Be.q)(1)).subscribe(()=>{this.panels.forEach(r=>{const c=r.panelDiv;c?r.initClassDone||(r.initClassDone=!0,In(this._ngZone,c,is,{animation:!1,runningTransition:"continue",context:{direction:r.isOpen?"show":"hide"}})):r.initClassDone=!1})})}_changeOpenState(r,c){if(null!=r&&!r.disabled&&r.isOpen!==c){let _=!1;this.panelChange.emit({panelId:r.id,nextState:c,preventDefault:()=>{_=!0}}),_||(r.isOpen=c,r.transitionRunning=!0,c&&this.closeOtherPanels&&this._closeOthers(r.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(r,c=!0){this.panels.forEach(_=>{_.id!==r&&_.isOpen&&(_.isOpen=!1,_.transitionRunning=c)})}_findPanelById(r){return this.panels.find(c=>c.id===r)||null}_updateActiveIds(){this.activeIds=this.panels.filter(r=>r.isOpen&&!r.disabled).map(r=>r.id)}_runTransitions(r){this._changeDetector.detectChanges(),this.panels.forEach(c=>{c.transitionRunning&&In(this._ngZone,c.panelDiv,is,{animation:r,runningTransition:"stop",context:{direction:c.isOpen?"show":"hide"}}).subscribe(()=>{c.transitionRunning=!1;const{id:R}=c;c.isOpen?(c.shown.emit(),this.shown.emit(R)):(c.hidden.emit(),this.hidden.emit(R))})})}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(rs),e.Y36(e.R0b),e.Y36(e.sBO))},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-accordion"]],contentQueries:function(r,c,_){if(1&r&&e.Suo(_,Da,4),2&r){let R;e.iGM(R=e.CRH())&&(c.panels=R)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(r,c){2&r&&e.uIk("aria-multiselectable",!c.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(r,c){1&r&&(e.YNc(0,Wo,3,3,"ng-template",0,1,e.W1O),e.YNc(2,ni,4,11,"ng-template",2)),2&r&&(e.xp6(2),e.Q6J("ngForOf",c.panels))},dependencies:function(){return[s.sg,s.O5,s.tP,Ta,Us,Vs]},encapsulation:2}),a})(),Vs=(()=>{class a{constructor(r,c){this.accordion=r,this.panel=c}set ngbPanelToggle(r){r&&(this.panel=r)}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(Vn),e.Y36(Da,9))},a.\u0275dir=e.lG2({type:a,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(r,c){1&r&&e.NdJ("click",function(){return c.accordion.toggle(c.panel.id)}),2&r&&(e.Ikx("disabled",c.panel.disabled),e.uIk("aria-expanded",c.panel.isOpen)("aria-controls",c.panel.id),e.ekj("collapsed",!c.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"}}),a})(),tl=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[s.ez]}),a})();var Lr=(()=>{return(a=Lr||(Lr={})).START="start",a.END="end",Lr;var a})();const Ma=({classList:a})=>a.contains("carousel-item-start")||a.contains("carousel-item-end"),sa=a=>{a.remove("carousel-item-start"),a.remove("carousel-item-end")},Ti=a=>{sa(a),a.remove("carousel-item-prev"),a.remove("carousel-item-next")},Aa=(a,d,{direction:r})=>{const{classList:c}=a;return d?(Ma(a)?sa(c):(c.add("carousel-item-"+(r===Lr.START?"next":"prev")),To(a),c.add("carousel-item-"+r)),()=>{Ti(c),c.add("active")}):(sa(c),Ti(c),void c.add("active"))},Ds=(a,d,{direction:r})=>{const{classList:c}=a;return d?(Ma(a)?sa(c):c.add("carousel-item-"+r),()=>{Ti(c),c.remove("active")}):(sa(c),Ti(c),void c.remove("active"))};let Hc=(()=>{class a{constructor(r){this._ngbConfig=r,this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(r){this._animation=r}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(mr))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),Uc=0,ji=(()=>{class a{constructor(r){this.tplRef=r,this.id="ngb-slide-"+Uc++,this.slid=new e.vpe}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"}}),a})(),Mo=(()=>{class a{constructor(r,c,_,R,ge){this._platformId=c,this._ngZone=_,this._cd=R,this._container=ge,this.NgbSlideEventSource=Ao,this._destroy$=new O.xQ,this._interval$=new Ne.X(0),this._mouseHover$=new Ne.X(!1),this._focused$=new Ne.X(!1),this._pauseOnHover$=new Ne.X(!1),this._pauseOnFocus$=new Ne.X(!1),this._pause$=new Ne.X(!1),this._wrap$=new Ne.X(!1),this.slide=new e.vpe,this.slid=new e.vpe,this._transitionIds=null,this.animation=r.animation,this.interval=r.interval,this.wrap=r.wrap,this.keyboard=r.keyboard,this.pauseOnHover=r.pauseOnHover,this.pauseOnFocus=r.pauseOnFocus,this.showNavigationArrows=r.showNavigationArrows,this.showNavigationIndicators=r.showNavigationIndicators}set interval(r){this._interval$.next(r)}get interval(){return this._interval$.value}set wrap(r){this._wrap$.next(r)}get wrap(){return this._wrap$.value}set pauseOnHover(r){this._pauseOnHover$.next(r)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(r){this._pauseOnFocus$.next(r)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(r){this._mouseHover$.next(r)}get mouseHover(){return this._mouseHover$.value}set focused(r){this._focused$.next(r)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(Ao.ARROW_LEFT)}arrowRight(){this.focus(),this.next(Ao.ARROW_RIGHT)}ngAfterContentInit(){(0,s.NF)(this._platformId)&&this._ngZone.runOutsideAngular(()=>{const r=(0,te.aj)([this.slide.pipe((0,ft.U)(c=>c.current),(0,gt.O)(this.activeId)),this._wrap$,this.slides.changes.pipe((0,gt.O)(null))]).pipe((0,ft.U)(([c,_])=>{const R=this.slides.toArray(),ge=this._getSlideIdxById(c);return _?R.length>1:ge<R.length-1}),(0,Et.x)());(0,te.aj)([this._pause$,this._pauseOnHover$,this._mouseHover$,this._pauseOnFocus$,this._focused$,this._interval$,r]).pipe((0,ft.U)(([c,_,R,ge,ke,Ue,st])=>c||_&&R||ge&&ke||!st?0:Ue),(0,Et.x)(),(0,Mt.w)(c=>c>0?C(c,c):de.C),Le(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(Ao.TIMER)))}),this.slides.changes.pipe(Le(this._destroy$)).subscribe(()=>{var r;null===(r=this._transitionIds)||void 0===r||r.forEach(c=>(a=>{var d;null===(d=ns.get(a))||void 0===d||d.complete()})(this._getSlideElement(c))),this._transitionIds=null,this._cd.markForCheck(),this._ngZone.onStable.pipe((0,Be.q)(1)).subscribe(()=>{for(const{id:c}of this.slides){const _=this._getSlideElement(c);c===this.activeId?_.classList.add("active"):_.classList.remove("active")}})})}ngAfterContentChecked(){let r=this._getSlideById(this.activeId);this.activeId=r?r.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){const r=this._getSlideElement(this.activeId);r&&r.classList.add("active")}}ngOnDestroy(){this._destroy$.next()}select(r,c){this._cycleToSelected(r,this._getSlideEventDirection(this.activeId,r),c)}prev(r){this._cycleToSelected(this._getPrevSlide(this.activeId),Lr.END,r)}next(r){this._cycleToSelected(this._getNextSlide(this.activeId),Lr.START,r)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(r,c,_){const R=this._transitionIds;if(R&&(R[0]!==r||R[1]!==this.activeId))return;let ge=this._getSlideById(r);if(ge&&ge.id!==this.activeId){this._transitionIds=[this.activeId,r],this.slide.emit({prev:this.activeId,current:ge.id,direction:c,paused:this._pause$.value,source:_});const ke={animation:this.animation,runningTransition:"stop",context:{direction:c}},Ue=[],st=this._getSlideById(this.activeId);if(st){const Zt=In(this._ngZone,this._getSlideElement(st.id),Ds,ke);Zt.subscribe(()=>{st.slid.emit({isShown:!1,direction:c,source:_})}),Ue.push(Zt)}const at=this.activeId;this.activeId=ge.id;const Ut=this._getSlideById(this.activeId),Rt=In(this._ngZone,this._getSlideElement(ge.id),Aa,ke);Rt.subscribe(()=>{Ut?.slid.emit({isShown:!0,direction:c,source:_})}),Ue.push(Rt),Ze(...Ue).pipe((0,Be.q)(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:at,current:ge.id,direction:c,paused:this._pause$.value,source:_})})}this._cd.markForCheck()}_getSlideEventDirection(r,c){return this._getSlideIdxById(r)>this._getSlideIdxById(c)?Lr.END:Lr.START}_getSlideById(r){return this.slides.find(c=>c.id===r)||null}_getSlideIdxById(r){const c=this._getSlideById(r);return null!=c?this.slides.toArray().indexOf(c):-1}_getNextSlide(r){const c=this.slides.toArray(),_=this._getSlideIdxById(r);return _===c.length-1?this.wrap?c[0].id:c[c.length-1].id:c[_+1].id}_getPrevSlide(r){const c=this.slides.toArray(),_=this._getSlideIdxById(r);return 0===_?this.wrap?c[c.length-1].id:c[0].id:c[_-1].id}_getSlideElement(r){return this._container.nativeElement.querySelector(`#slide-${r}`)}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(Hc),e.Y36(e.Lbi),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.SBq))},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-carousel"]],contentQueries:function(r,c,_){if(1&r&&e.Suo(_,ji,4),2&r){let R;e.iGM(R=e.CRH())&&(c.slides=R)}},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(r,c){1&r&&e.NdJ("keydown.arrowLeft",function(){return c.keyboard&&c.arrowLeft()})("keydown.arrowRight",function(){return c.keyboard&&c.arrowRight()})("mouseenter",function(){return c.mouseHover=!0})("mouseleave",function(){return c.mouseHover=!1})("focusin",function(){return c.focused=!0})("focusout",function(){return c.focused=!1}),2&r&&(e.uIk("aria-activedescendant","slide-"+c.activeId),e.Udp("display","block"))},inputs:{animation:"animation",activeId:"activeId",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],decls:6,vars:6,consts:function(){let d,r,c;return d="Slide " + "\ufffd0\ufffd" + " de " + "\ufffd1\ufffd" + " ",r="Anterior",c="Pr\xF3ximo",[["role","tablist",1,"carousel-indicators"],["type","button","data-bs-target","","role","tab",3,"active","click",4,"ngFor","ngForOf"],[1,"carousel-inner"],["class","carousel-item","role","tabpanel",3,"id",4,"ngFor","ngForOf"],["class","carousel-control-prev","type","button",3,"click",4,"ngIf"],["class","carousel-control-next","type","button",3,"click",4,"ngIf"],["type","button","data-bs-target","","role","tab",3,"click"],["role","tabpanel",1,"carousel-item",3,"id"],[1,"visually-hidden"],d,[3,"ngTemplateOutlet"],["type","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],r,["type","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"],c]},template:function(r,c){1&r&&(e.TgZ(0,"div",0),e.YNc(1,Rr,1,5,"button",1),e.qZA(),e.TgZ(2,"div",2),e.YNc(3,Co,4,4,"div",3),e.qZA(),e.YNc(4,ar,4,0,"button",4),e.YNc(5,po,4,0,"button",5)),2&r&&(e.ekj("visually-hidden",!c.showNavigationIndicators),e.xp6(1),e.Q6J("ngForOf",c.slides),e.xp6(2),e.Q6J("ngForOf",c.slides),e.xp6(1),e.Q6J("ngIf",c.showNavigationArrows),e.xp6(1),e.Q6J("ngIf",c.showNavigationArrows))},dependencies:[s.sg,s.O5,s.tP],encapsulation:2,changeDetection:0}),a})();var Ao=(()=>{return(a=Ao||(Ao={})).TIMER="timer",a.ARROW_LEFT="arrowLeft",a.ARROW_RIGHT="arrowRight",a.INDICATOR="indicator",Ao;var a})();let Ts=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[s.ez]}),a})(),nl=(()=>{class a{constructor(r){this._ngbConfig=r}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(r){this._animation=r}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(mr))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),Zl=(()=>{class a{constructor(r,c,_){this._element=r,this._zone=_,this.collapsed=!1,this.ngbCollapseChange=new e.vpe,this.shown=new e.vpe,this.hidden=new e.vpe,this.animation=c.animation}ngOnInit(){this._runTransition(this.collapsed,!1)}ngOnChanges({collapsed:r}){r.firstChange||this._runTransitionWithEvents(this.collapsed,this.animation)}toggle(r=this.collapsed){this.collapsed=!r,this.ngbCollapseChange.next(this.collapsed),this._runTransitionWithEvents(this.collapsed,this.animation)}_runTransition(r,c){return In(this._zone,this._element.nativeElement,is,{animation:c,runningTransition:"stop",context:{direction:r?"hide":"show"}})}_runTransitionWithEvents(r,c){this._runTransition(r,c).subscribe(()=>{r?this.hidden.emit():this.shown.emit()})}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.SBq),e.Y36(nl),e.Y36(e.R0b))},a.\u0275dir=e.lG2({type:a,selectors:[["","ngbCollapse",""]],inputs:{animation:"animation",collapsed:["ngbCollapse","collapsed"]},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],features:[e.TTD]}),a})(),il=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({}),a})();class $i{constructor(d,r,c){this.year=nr(d)?d:null,this.month=nr(r)?r:null,this.day=nr(c)?c:null}static from(d){return d instanceof $i?d:d?new $i(d.year,d.month,d.day):null}equals(d){return null!=d&&this.year===d.year&&this.month===d.month&&this.day===d.day}before(d){return!!d&&(this.year===d.year?this.month===d.month?this.day!==d.day&&this.day<d.day:this.month<d.month:this.year<d.year)}after(d){return!!d&&(this.year===d.year?this.month===d.month?this.day!==d.day&&this.day>d.day:this.month>d.month:this.year>d.year)}}function js(a,d){return!function Tr(a,d){return!a&&!d||!!a&&!!d&&a.equals(d)}(a,d)}function wa(a,d){return!(!a&&!d||a&&d&&a.year===d.year&&a.month===d.month)}function Uo(a,d,r){return a&&d&&a.before(d)?d:a&&r&&a.after(r)?r:a||null}function g(a,d){const{minDate:r,maxDate:c,disabled:_,markDisabled:R}=d;return!(null==a||_||R&&R(a,{year:a.year,month:a.month})||r&&a.before(r)||c&&a.after(c))}function Je(a){return new $i(a.getFullYear(),a.getMonth()+1,a.getDate())}function Pt(a){const d=new Date(a.year,a.month-1,a.day,12);return isNaN(d.getTime())||d.setFullYear(a.year),d}let Ft=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=e.Yz7({token:a,factory:function(){return function Xt(){return new dn}()},providedIn:"root"}),a})(),dn=(()=>{class a extends Ft{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(r,c="d",_=1){let R=Pt(r),ge=!0,ke=R.getMonth();switch(c){case"y":R.setFullYear(R.getFullYear()+_);break;case"m":ke+=_,R.setMonth(ke),ke%=12,ke<0&&(ke+=12);break;case"d":R.setDate(R.getDate()+_),ge=!1;break;default:return r}return ge&&R.getMonth()!==ke&&R.setDate(0),Je(R)}getPrev(r,c="d",_=1){return this.getNext(r,c,-_)}getWeekday(r){let _=Pt(r).getDay();return 0===_?7:_}getWeekNumber(r,c){7===c&&(c=0);const ge=Pt(r[(11-c)%7]);ge.setDate(ge.getDate()+4-(ge.getDay()||7));const ke=ge.getTime();return ge.setMonth(0),ge.setDate(1),Math.floor(Math.round((ke-ge.getTime())/864e5)/7)+1}getToday(){return Je(new Date)}isValid(r){if(!(r&&nr(r.year)&&nr(r.month)&&nr(r.day)&&0!==r.year))return!1;const c=Pt(r);return!isNaN(c.getTime())&&c.getFullYear()===r.year&&c.getMonth()+1===r.month&&c.getDate()===r.day}}return a.\u0275fac=function(){let d;return function(c){return(d||(d=e.n5z(a)))(c||a)}}(),a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Ci=(()=>{class a{getMonthLabel(r){return`${this.getMonthFullName(r.month,r.year)} ${this.getYearNumerals(r.year)}`}getDayNumerals(r){return`${r.day}`}getWeekNumerals(r){return`${r}`}getYearNumerals(r){return`${r}`}getWeekLabel(){return""}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=e.Yz7({token:a,factory:function(r){let c=null;return c=r?new r:function Rn(a){return new Jr(a)}(e.LFG(e.soG)),c},providedIn:"root"}),a})(),Jr=(()=>{class a extends Ci{constructor(r){super(),this._locale=r,this._monthsShort=(0,s.UT)(r,s.x.Standalone,s.Tn.Abbreviated),this._monthsFull=(0,s.UT)(r,s.x.Standalone,s.Tn.Wide)}getWeekdayLabel(r,c){const _=(0,s.Mn)(this._locale,s.x.Standalone,void 0===c?s.Tn.Short:c);return _.map((ge,ke)=>_[(ke+1)%7])[r-1]||""}getMonthShortName(r){return this._monthsShort[r-1]||""}getMonthFullName(r){return this._monthsFull[r-1]||""}getDayAriaLabel(r){const c=new Date(r.year,r.month-1,r.day);return(0,s.p6)(c,"fullDate",this._locale)}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(e.soG))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),kr=(()=>{class a{constructor(r,c){this._calendar=r,this._i18n=c,this._VALIDATORS={dayTemplateData:_=>{if(this._state.dayTemplateData!==_)return{dayTemplateData:_}},displayMonths:_=>{if(nr(_=Ii(_))&&_>0&&this._state.displayMonths!==_)return{displayMonths:_}},disabled:_=>{if(this._state.disabled!==_)return{disabled:_}},firstDayOfWeek:_=>{if(nr(_=Ii(_))&&_>=0&&this._state.firstDayOfWeek!==_)return{firstDayOfWeek:_}},focusVisible:_=>{if(this._state.focusVisible!==_&&!this._state.disabled)return{focusVisible:_}},markDisabled:_=>{if(this._state.markDisabled!==_)return{markDisabled:_}},maxDate:_=>{const R=this.toValidDate(_,null);if(js(this._state.maxDate,R))return{maxDate:R}},minDate:_=>{const R=this.toValidDate(_,null);if(js(this._state.minDate,R))return{minDate:R}},navigation:_=>{if(this._state.navigation!==_)return{navigation:_}},outsideDays:_=>{if(this._state.outsideDays!==_)return{outsideDays:_}},weekdays:_=>{const R=!0===_||!1===_?s.Tn.Short:_,ge=!0!==_&&!1!==_||_;if(this._state.weekdayWidth!==R||this._state.weekdaysVisible!==ge)return{weekdayWidth:R,weekdaysVisible:ge}}},this._model$=new O.xQ,this._dateSelect$=new O.xQ,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:s.Tn.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe((0,pt.h)(r=>r.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe((0,pt.h)(r=>null!==r))}set(r){let c=Object.keys(r).map(_=>this._VALIDATORS[_](r[_])).reduce((_,R)=>({..._,...R}),{});Object.keys(c).length>0&&this._nextState(c)}focus(r){const c=this.toValidDate(r,null);null!=c&&!this._state.disabled&&js(this._state.focusDate,c)&&this._nextState({focusDate:r})}focusSelect(){g(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(r){const c=this.toValidDate(r,this._calendar.getToday());null!=c&&!this._state.disabled&&(!this._state.firstDate||wa(this._state.firstDate,c))&&this._nextState({firstDate:c})}select(r,c={}){const _=this.toValidDate(r,null);null!=_&&!this._state.disabled&&(js(this._state.selectedDate,_)&&this._nextState({selectedDate:_}),c.emitEvent&&g(_,this._state)&&this._dateSelect$.next(_))}toValidDate(r,c){const _=$i.from(r);return void 0===c&&(c=this._calendar.getToday()),this._calendar.isValid(_)?_:c}getMonth(r){for(let c of this._state.months)if(r.month===c.number&&r.year===c.year)return c;throw new Error(`month ${r.month} of year ${r.year} not found`)}_nextState(r){const c=this._updateState(r);this._patchContexts(c),this._state=c,this._model$.next(this._state)}_patchContexts(r){const{months:c,displayMonths:_,selectedDate:R,focusDate:ge,focusVisible:ke,disabled:Ue,outsideDays:st}=r;r.months.forEach(at=>{at.weeks.forEach(Ut=>{Ut.days.forEach(Rt=>{ge&&(Rt.context.focused=ge.equals(Rt.date)&&ke),Rt.tabindex=!Ue&&ge&&Rt.date.equals(ge)&&ge.month===at.number?0:-1,!0===Ue&&(Rt.context.disabled=!0),void 0!==R&&(Rt.context.selected=null!==R&&R.equals(Rt.date)),at.number!==Rt.date.month&&(Rt.hidden="hidden"===st||"collapsed"===st||_>1&&Rt.date.after(c[0].firstDate)&&Rt.date.before(c[_-1].lastDate))})})})}_updateState(r){const c=Object.assign({},this._state,r);let _=c.firstDate;if(("minDate"in r||"maxDate"in r)&&(function Na(a,d){if(d&&a&&d.before(a))throw new Error(`'maxDate' ${d} should be greater than 'minDate' ${a}`)}(c.minDate,c.maxDate),c.focusDate=Uo(c.focusDate,c.minDate,c.maxDate),c.firstDate=Uo(c.firstDate,c.minDate,c.maxDate),_=c.focusDate),"disabled"in r&&(c.focusVisible=!1),"selectedDate"in r&&0===this._state.months.length&&(_=c.selectedDate),"focusVisible"in r||"focusDate"in r&&(c.focusDate=Uo(c.focusDate,c.minDate,c.maxDate),_=c.focusDate,0!==c.months.length&&c.focusDate&&!c.focusDate.before(c.firstDate)&&!c.focusDate.after(c.lastDate)))return c;if("firstDate"in r&&(c.firstDate=Uo(c.firstDate,c.minDate,c.maxDate),_=c.firstDate),_){const ge=function ce(a,d,r,c,_){const{displayMonths:R,months:ge}=r,ke=ge.splice(0,ge.length);return Array.from({length:R},(st,at)=>{const Ut=Object.assign(a.getNext(d,"m",at),{day:1});if(ge[at]=null,!_){const Rt=ke.findIndex(Zt=>Zt.firstDate.equals(Ut));-1!==Rt&&(ge[at]=ke.splice(Rt,1)[0])}return Ut}).forEach((st,at)=>{null===ge[at]&&(ge[at]=function be(a,d,r,c,_={}){const{dayTemplateData:R,minDate:ge,maxDate:ke,firstDayOfWeek:Ue,markDisabled:st,outsideDays:at,weekdayWidth:Ut,weekdaysVisible:Rt}=r,Zt=a.getToday();_.firstDate=null,_.lastDate=null,_.number=d.month,_.year=d.year,_.weeks=_.weeks||[],_.weekdays=_.weekdays||[],d=function xe(a,d,r){const c=a.getDaysPerWeek(),_=new $i(d.year,d.month,1),R=a.getWeekday(_)%c;return a.getPrev(_,"d",(c+R-r)%c)}(a,d,Ue),Rt||(_.weekdays.length=0);for(let Ln=0;Ln<a.getWeeksPerMonth();Ln++){let Wt=_.weeks[Ln];Wt||(Wt=_.weeks[Ln]={number:0,days:[],collapsed:!0});const pn=Wt.days;for(let An=0;An<a.getDaysPerWeek();An++){0===Ln&&Rt&&(_.weekdays[An]=c.getWeekdayLabel(a.getWeekday(d),Ut));const xn=new $i(d.year,d.month,d.day),di=a.getNext(xn),kn=c.getDayAriaLabel(xn);let En=!!(ge&&xn.before(ge)||ke&&xn.after(ke));!En&&st&&(En=st(xn,{month:_.number,year:_.year}));let $n=xn.equals(Zt),hi=R?R(xn,{month:_.number,year:_.year}):void 0;null===_.firstDate&&xn.month===_.number&&(_.firstDate=xn),xn.month===_.number&&di.month!==_.number&&(_.lastDate=xn);let Wn=pn[An];Wn||(Wn=pn[An]={}),Wn.date=xn,Wn.context=Object.assign(Wn.context||{},{$implicit:xn,date:xn,data:hi,currentMonth:_.number,currentYear:_.year,disabled:En,focused:!1,selected:!1,today:$n}),Wn.tabindex=-1,Wn.ariaLabel=kn,Wn.hidden=!1,d=di}Wt.number=a.getWeekNumber(pn.map(An=>An.date),Ue),Wt.collapsed="collapsed"===at&&pn[0].date.month!==_.number&&pn[pn.length-1].date.month!==_.number}return _}(a,st,r,c,ke.shift()||{}))}),ge}(this._calendar,_,c,this._i18n,"dayTemplateData"in r||"firstDayOfWeek"in r||"markDisabled"in r||"minDate"in r||"maxDate"in r||"disabled"in r||"outsideDays"in r||"weekdaysVisible"in r);c.months=ge,c.firstDate=ge[0].firstDate,c.lastDate=ge[ge.length-1].lastDate,"selectedDate"in r&&!g(c.selectedDate,c)&&(c.selectedDate=null),"firstDate"in r&&(!c.focusDate||c.focusDate.before(c.firstDate)||c.focusDate.after(c.lastDate))&&(c.focusDate=_);const ke=!this._state.firstDate||this._state.firstDate.year!==c.firstDate.year,Ue=!this._state.firstDate||this._state.firstDate.month!==c.firstDate.month;"select"===c.navigation?(("minDate"in r||"maxDate"in r||0===c.selectBoxes.years.length||ke)&&(c.selectBoxes.years=function p(a,d,r){if(!a)return[];const c=d?Math.max(d.year,a.year-500):a.year-10,R=(r?Math.min(r.year,a.year+500):a.year+10)-c+1,ge=Array(R);for(let ke=0;ke<R;ke++)ge[ke]=c+ke;return ge}(c.firstDate,c.minDate,c.maxDate)),("minDate"in r||"maxDate"in r||0===c.selectBoxes.months.length||ke)&&(c.selectBoxes.months=function m(a,d,r,c){if(!d)return[];let _=a.getMonths(d.year);if(r&&d.year===r.year){const R=_.findIndex(ge=>ge===r.month);_=_.slice(R)}if(c&&d.year===c.year){const R=_.findIndex(ge=>ge===c.month);_=_.slice(0,R+1)}return _}(this._calendar,c.firstDate,c.minDate,c.maxDate))):c.selectBoxes={years:[],months:[]},("arrows"===c.navigation||"select"===c.navigation)&&(Ue||ke||"minDate"in r||"maxDate"in r||"disabled"in r)&&(c.prevDisabled=c.disabled||function B(a,d,r){const c=Object.assign(a.getPrev(d,"m"),{day:1});return null!=r&&(c.year===r.year&&c.month<r.month||c.year<r.year&&1===r.month)}(this._calendar,c.firstDate,c.minDate),c.nextDisabled=c.disabled||function S(a,d,r){const c=Object.assign(a.getNext(d,"m"),{day:1});return null!=r&&c.after(r)}(this._calendar,c.lastDate,c.maxDate))}return c}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(Ft),e.LFG(Ci))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();var vr=(()=>{return(a=vr||(vr={}))[a.PREV=0]="PREV",a[a.NEXT=1]="NEXT",vr;var a})();let Fr=(()=>{class a{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=s.Tn.Short}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),$r=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=e.Yz7({token:a,factory:function(){return function ss(){return new Pi}()},providedIn:"root"}),a})(),Pi=(()=>{class a extends $r{fromModel(r){return r&&nr(r.year)&&nr(r.month)&&nr(r.day)?{year:r.year,month:r.month,day:r.day}:null}toModel(r){return r&&nr(r.year)&&nr(r.month)&&nr(r.day)?{year:r.year,month:r.month,day:r.day}:null}}return a.\u0275fac=function(){let d;return function(c){return(d||(d=e.n5z(a)))(c||a)}}(),a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Vc=(()=>{class a{constructor(r,c){this.i18n=r,this._renderer=c,this.select=new e.vpe,this._month=-1,this._year=-1}changeMonth(r){this.select.emit(new $i(this.date.year,Ii(r),1))}changeYear(r){this.select.emit(new $i(Ii(r),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(Ci),e.Y36(e.Qsj))},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(r,c){if(1&r&&(e.Gf(pr,7,e.SBq),e.Gf(bo,7,e.SBq)),2&r){let _;e.iGM(_=e.CRH())&&(c.monthSelect=_.first),e.iGM(_=e.CRH())&&(c.yearSelect=_.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:6,vars:4,consts:function(){let d,r,c,_;return d="Selecione o m\xEAs",r="Selecione o m\xEAs",c="Selecione o ano",_="Selecione o ano",[["aria-label",d,"title",r,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",c,"title",_,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(r,c){1&r&&(e.TgZ(0,"select",0,1),e.NdJ("change",function(R){return c.changeMonth(R.target.value)}),e.YNc(2,no,2,3,"option",2),e.qZA(),e.TgZ(3,"select",3,4),e.NdJ("change",function(R){return c.changeYear(R.target.value)}),e.YNc(5,ln,2,2,"option",2),e.qZA()),2&r&&(e.Q6J("disabled",c.disabled),e.xp6(2),e.Q6J("ngForOf",c.months),e.xp6(1),e.Q6J("disabled",c.disabled),e.xp6(2),e.Q6J("ngForOf",c.years))},dependencies:[s.sg,Oe.YN,Oe.Kr],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0}),a})(),jc=(()=>{class a{constructor(r){this.i18n=r,this.navigation=vr,this.months=[],this.navigate=new e.vpe,this.select=new e.vpe}onClickPrev(r){r.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(r){r.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(Ci))},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:8,vars:4,consts:function(){let d,r,c,_;return d="M\xEAs anterior",r="M\xEAs anterior",c="Pr\xF3ximo m\xEAs",_="Pr\xF3ximo m\xEAs",[[1,"ngb-dp-arrow"],["type","button","aria-label",d,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",c,"title",_,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(r,c){1&r&&(e.TgZ(0,"div",0)(1,"button",1),e.NdJ("click",function(R){return c.onClickPrev(R)}),e._UZ(2,"span",2),e.qZA()(),e.YNc(3,Ro,1,4,"ngb-datepicker-navigation-select",3),e.YNc(4,io,1,1,null,4),e.TgZ(5,"div",5)(6,"button",6),e.NdJ("click",function(R){return c.onClickNext(R)}),e._UZ(7,"span",2),e.qZA()()),2&r&&(e.xp6(1),e.Q6J("disabled",c.prevDisabled),e.xp6(2),e.Q6J("ngIf",c.showSelect),e.xp6(1),e.Q6J("ngIf",!c.showSelect),e.xp6(2),e.Q6J("disabled",c.nextDisabled))},dependencies:[s.sg,s.O5,Vc],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{justify-content:flex-end}.ngb-dp-arrow.right .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0}),a})(),Kl=(()=>{class a{constructor(r){this.i18n=r}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(Ci))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(r,c){2&r&&e.ekj("bg-primary",c.selected)("text-white",c.selected)("text-muted",c.isMuted())("outside",c.isMuted())("active",c.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:li,decls:1,vars:1,template:function(r,c){1&r&&e._uU(0),2&r&&e.Oqu(c.i18n.getDayNumerals(c.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0}),a})();var Pn=(()=>{return(a=Pn||(Pn={}))[a.Tab=9]="Tab",a[a.Enter=13]="Enter",a[a.Escape=27]="Escape",a[a.Space=32]="Space",a[a.PageUp=33]="PageUp",a[a.PageDown=34]="PageDown",a[a.End=35]="End",a[a.Home=36]="Home",a[a.ArrowLeft=37]="ArrowLeft",a[a.ArrowUp=38]="ArrowUp",a[a.ArrowRight=39]="ArrowRight",a[a.ArrowDown=40]="ArrowDown",Pn;var a})();let gd=(()=>{class a{processKey(r,c){const{state:_,calendar:R}=c;switch(r.which){case Pn.PageUp:c.focusDate(R.getPrev(_.focusedDate,r.shiftKey?"y":"m",1));break;case Pn.PageDown:c.focusDate(R.getNext(_.focusedDate,r.shiftKey?"y":"m",1));break;case Pn.End:c.focusDate(r.shiftKey?_.maxDate:_.lastDate);break;case Pn.Home:c.focusDate(r.shiftKey?_.minDate:_.firstDate);break;case Pn.ArrowLeft:c.focusDate(R.getPrev(_.focusedDate,"d",1));break;case Pn.ArrowUp:c.focusDate(R.getPrev(_.focusedDate,"d",R.getDaysPerWeek()));break;case Pn.ArrowRight:c.focusDate(R.getNext(_.focusedDate,"d",1));break;case Pn.ArrowDown:c.focusDate(R.getNext(_.focusedDate,"d",R.getDaysPerWeek()));break;case Pn.Enter:case Pn.Space:c.focusSelect();break;default:return}r.preventDefault(),r.stopPropagation()}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),md=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbDatepickerContent",""]]}),a})(),Yl=(()=>{class a{constructor(r,c,_,R,ge,ke,Ue,st){this._service=r,this._calendar=c,this.i18n=_,this._elementRef=ke,this._ngbDateAdapter=Ue,this._ngZone=st,this._controlValue=null,this._destroyed$=new O.xQ,this._publicState={},this.navigate=new e.vpe,this.dateSelect=new e.vpe,this.onChange=at=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(at=>this[at]=R[at]),r.dateSelect$.pipe(Le(this._destroyed$)).subscribe(at=>{this.dateSelect.emit(at)}),r.model$.pipe(Le(this._destroyed$)).subscribe(at=>{const Ut=at.firstDate,Rt=this.model?this.model.firstDate:null;this._publicState={maxDate:at.maxDate,minDate:at.minDate,firstDate:at.firstDate,lastDate:at.lastDate,focusedDate:at.focusDate,months:at.months.map(An=>An.firstDate)};let Zt=!1;if(!Ut.equals(Rt)&&(this.navigate.emit({current:Rt?{year:Rt.year,month:Rt.month}:null,next:{year:Ut.year,month:Ut.month},preventDefault:()=>Zt=!0}),Zt&&null!==Rt))return void this._service.open(Rt);const Ln=at.selectedDate,Wt=at.focusDate,pn=this.model?this.model.focusDate:null;this.model=at,js(Ln,this._controlValue)&&(this._controlValue=Ln,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(Ln))),js(Wt,pn)&&pn&&at.focusVisible&&this.focus(),ge.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(r){this._service.focus($i.from(r))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe((0,Be.q)(1)).subscribe(()=>{const r=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');r&&r.focus()})}navigateTo(r){this._service.open($i.from(r?r.day?r:{...r,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const r=(0,H.R)(this._contentEl.nativeElement,"focusin"),c=(0,H.R)(this._contentEl.nativeElement,"focusout"),{nativeElement:_}=this._elementRef;(0,re.T)(r,c).pipe((0,pt.h)(({target:R,relatedTarget:ge})=>!(Hs(R,"ngb-dp-day")&&Hs(ge,"ngb-dp-day")&&_.contains(R)&&_.contains(ge))),Le(this._destroyed$)).subscribe(({type:R})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===R})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const r={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(c=>r[c]=this[c]),this._service.set(r),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(r){const c={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(_=>_ in r).forEach(_=>c[_]=this[_]),this._service.set(c),"startDate"in r){const{currentValue:_,previousValue:R}=r.startDate;wa(R,_)&&this.navigateTo(this.startDate)}}onDateSelect(r){this._service.focus(r),this._service.select(r,{emitEvent:!0})}onNavigateDateSelect(r){this._service.open(r)}onNavigateEvent(r){switch(r){case vr.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case vr.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this._service.set({disabled:r})}writeValue(r){this._controlValue=$i.from(this._ngbDateAdapter.fromModel(r)),this._service.select(this._controlValue)}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(kr),e.Y36(Ft),e.Y36(Ci),e.Y36(Fr),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36($r),e.Y36(e.R0b))},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-datepicker"]],contentQueries:function(r,c,_){if(1&r&&e.Suo(_,md,7),2&r){let R;e.iGM(R=e.CRH())&&(c.contentTemplate=R.first)}},viewQuery:function(r,c){if(1&r&&(e.Gf(Qo,7),e.Gf(ro,7)),2&r){let _;e.iGM(_=e.CRH())&&(c._defaultDayTemplate=_.first),e.iGM(_=e.CRH())&&(c._contentEl=_.first)}},hostVars:2,hostBindings:function(r,c){2&r&&e.ekj("disabled",c.model.disabled)},inputs:{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],features:[e._Bn([{provide:Oe.JU,useExisting:(0,e.Gpc)(()=>a),multi:!0},kr]),e.TTD],decls:10,vars:5,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(r,c){if(1&r&&(e.YNc(0,bt,1,5,"ng-template",null,0,e.W1O),e.YNc(2,oo,1,1,"ng-template",null,1,e.W1O),e.TgZ(4,"div",2),e.YNc(5,ci,1,7,"ngb-datepicker-navigation",3),e.qZA(),e.TgZ(6,"div",4,5),e.YNc(8,V,0,0,"ng-template",6),e.qZA(),e.YNc(9,I,0,0,"ng-template",6)),2&r){const _=e.MAs(3);e.xp6(5),e.Q6J("ngIf","none"!==c.navigation),e.xp6(1),e.ekj("ngb-dp-months",!c.contentTemplate),e.xp6(2),e.Q6J("ngTemplateOutlet",(null==c.contentTemplate?null:c.contentTemplate.templateRef)||_),e.xp6(1),e.Q6J("ngTemplateOutlet",c.footerTemplate)}},dependencies:function(){return[s.sg,s.O5,s.tP,Wl,jc,Kl]},styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0}),a})(),Wl=(()=>{class a{constructor(r,c,_,R){this.i18n=r,this.datepicker=c,this._keyboardService=_,this._service=R}set month(r){this.viewModel=this._service.getMonth(r)}onKeyDown(r){this._keyboardService.processKey(r,this.datepicker)}doSelect(r){!r.context.disabled&&!r.hidden&&this.datepicker.onDateSelect(r.date)}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(Ci),e.Y36(Yl),e.Y36(gd),e.Y36(kr))},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(r,c){1&r&&e.NdJ("keydown",function(R){return c.onKeyDown(R)})},inputs:{month:"month"},decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,c){1&r&&(e.YNc(0,it,3,2,"div",0),e.YNc(1,_r,1,1,"ng-template",1)),2&r&&(e.Q6J("ngIf",c.viewModel.weekdays.length>0),e.xp6(1),e.Q6J("ngForOf",c.viewModel.weeks))},dependencies:[s.sg,s.O5,s.tP],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2}),a})();const Ms=(a,d)=>!!d&&d.some(r=>r.contains(a)),Jl=(a,d)=>!d||null!=function Ul(a,d){return!d||typeof a.closest>"u"?null:a.closest(d)}(a,d),Ia=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function aa(a,d,r,c,_,R,ge,ke){r&&a.runOutsideAngular((a=>Ia?()=>setTimeout(()=>a(),100):a)(()=>{const st=(0,H.R)(d,"keydown").pipe(Le(_),(0,pt.h)(Rt=>Rt.which===Pn.Escape),(0,Qt.b)(Rt=>Rt.preventDefault())),at=(0,H.R)(d,"mousedown").pipe((0,ft.U)(Rt=>{const Zt=Rt.target;return 2!==Rt.button&&!Ms(Zt,ge)&&("inside"===r?Ms(Zt,R)&&Jl(Zt,ke):"outside"===r?!Ms(Zt,R):Jl(Zt,ke)||!Ms(Zt,R))}),Le(_)),Ut=(0,H.R)(d,"mouseup").pipe(ye(at),(0,pt.h)(([Rt,Zt])=>Zt),(0,j.g)(0),Le(_));ee([st.pipe((0,ft.U)(Rt=>0)),Ut.pipe((0,ft.U)(Rt=>1))]).subscribe(Rt=>a.run(()=>c(Rt)))}))}const la=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Pa(a){const d=Array.from(a.querySelectorAll(la)).filter(r=>-1!==r.tabIndex);return[d[0],d[d.length-1]]}const Ql=(a,d,r,c=!1)=>{a.runOutsideAngular(()=>{const _=(0,H.R)(d,"focusin").pipe(Le(r),(0,ft.U)(R=>R.target));(0,H.R)(d,"keydown").pipe(Le(r),(0,pt.h)(R=>R.which===Pn.Tab),ye(_)).subscribe(([R,ge])=>{const[ke,Ue]=Pa(d);(ge===ke||ge===d)&&R.shiftKey&&(Ue.focus(),R.preventDefault()),ge===Ue&&!R.shiftKey&&(ke.focus(),R.preventDefault())}),c&&(0,H.R)(d,"click").pipe(Le(r),ye(_),(0,ft.U)(R=>R[1])).subscribe(R=>R.focus())})},yd=/\s+/,Cd=/  +/gi,ca=/^start/,xa=/^end/,bd=/-(top|left)$/,ef=/-(bottom|right)$/,Sd=/^left/,tf=/^right/,Ed=/^start/,Dd=/^end/;function Ra({placement:a,baseClass:d}){let r=Array.isArray(a)?a:a.split(yd),_=r.findIndex(Ue=>"auto"===Ue);_>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(Ue){null==r.find(st=>-1!==st.search("^"+Ue))&&r.splice(_++,1,Ue)});const R=r.map(Ue=>function zc(a){return a.replace(ca,"left").replace(xa,"right").replace(bd,"-start").replace(ef,"-end")}(Ue));return{placement:R.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!d,phase:"write",fn({state:Ue}){const st=new RegExp(d+"(-[a-z]+)*","gi"),at=Ue.elements.popper,Ut=Ue.placement;let Rt=at.className;Rt=Rt.replace(st,""),Rt+=` ${function Td(a,d){let[r,c]=d.split("-");const _=r.replace(Sd,"start").replace(tf,"end");let R=[_];if(c){let ge=c;("left"===r||"right"===r)&&(ge=ge.replace(Ed,"top").replace(Dd,"bottom")),R.push(`${_}-${ge}`)}return a&&(R=R.map(ge=>`${a}-${ge}`)),R.join(" ")}(d,Ut)}`,Rt=Rt.trim().replace(Cd," "),at.className=Rt}},Ei,wr,Ui,{enabled:!0,name:"flip",options:{fallbackPlacements:R}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function ql(a){return a}function La(){let a=null;return{createPopper(d){if(!a){let c=(d.updatePopperOptions||ql)(Ra(d));a=ri(d.hostElement,d.targetElement,c)}},update(){a&&a.update()},setOptions(d){if(a){let c=(d.updatePopperOptions||ql)(Ra(d));a.setOptions(c)}},destroy(){a&&(a.destroy(),a=null)}}}let Xl=(()=>{class a extends Fr{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.restoreFocus=!0}}return a.\u0275fac=function(){let d;return function(c){return(d||(d=e.n5z(a)))(c||a)}}(),a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();function ec(a){return d=>(d.modifiers.push(yo,{name:"offset",options:{offset:()=>a}}),d)}let Zc=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=e.Yz7({token:a,factory:function(){return function Gc(){return new tc}()},providedIn:"root"}),a})(),tc=(()=>{class a extends Zc{parse(r){if(null!=r){const c=r.trim().split("-");if(1===c.length&&Yn(c[0]))return{year:Ii(c[0]),month:null,day:null};if(2===c.length&&Yn(c[0])&&Yn(c[1]))return{year:Ii(c[0]),month:Ii(c[1]),day:null};if(3===c.length&&Yn(c[0])&&Yn(c[1])&&Yn(c[2]))return{year:Ii(c[0]),month:Ii(c[1]),day:Ii(c[2])}}return null}format(r){return r?`${r.year}-${Yn(r.month)?na(r.month):""}-${Yn(r.day)?na(r.day):""}`:""}}return a.\u0275fac=function(){let d;return function(c){return(d||(d=e.n5z(a)))(c||a)}}(),a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Md=(()=>{class a{constructor(r,c,_,R,ge,ke,Ue,st,at,Ut){this._parserFormatter=r,this._elRef=c,this._vcRef=_,this._renderer=R,this._ngZone=ge,this._calendar=ke,this._dateAdapter=Ue,this._document=st,this._changeDetector=at,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._positioning=La(),this._destroyCloseHandlers$=new O.xQ,this.dateSelect=new e.vpe,this.navigate=new e.vpe,this.closed=new e.vpe,this._onChange=Rt=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement"].forEach(Rt=>this[Rt]=Ut[Rt])}get disabled(){return this._disabled}set disabled(r){this._disabled=""===r||r&&"false"!==r,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(r){this._onChange=r}registerOnTouched(r){this._onTouched=r}registerOnValidatorChange(r){this._validatorChange=r}setDisabledState(r){this.disabled=r}validate(r){const{value:c}=r;if(null!=c){const _=this._fromDateStruct(this._dateAdapter.fromModel(c));if(!_)return{ngbDate:{invalid:c}};if(this.minDate&&_.before($i.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:c}}};if(this.maxDate&&_.after($i.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:c}}}}return null}writeValue(r){this._model=this._fromDateStruct(this._dateAdapter.fromModel(r)),this._writeModelValue(this._model)}manualDateChange(r,c=!1){const _=r!==this._inputValue;_&&(this._inputValue=r,this._model=this._fromDateStruct(this._parserFormatter.parse(r))),(_||!c)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):""===r?null:r),c&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){let r;if(this._cRef=this._vcRef.createComponent(Yl),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(c=>{this.writeValue(c),this._onChange(c),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,Ql(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>{var c;return null===(c=this._cRef)||void 0===c?void 0:c.instance.focus()}),r=so(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this._ngZone.runOutsideAngular(()=>{this._cRef&&(this._positioning.createPopper({hostElement:r,targetElement:this._cRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:ec([0,2])}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),this.positionTarget&&!r)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._setCloseHandlers()}}close(){if(this.isOpen()){var r;this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this._positioning.destroy(),null===(r=this._zoneSubscription)||void 0===r||r.unsubscribe(),this._destroyCloseHandlers$.next(),this.closed.emit(),this._changeDetector.markForCheck();let c=this._elWithFocus;so(this.restoreFocus)?c=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(c=this.restoreFocus),c&&c.focus?c.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(r){this.isOpen()&&this._cRef.instance.navigateTo(r)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(r){if((r.minDate||r.maxDate)&&(this._validatorChange(),this.isOpen()&&(r.minDate&&(this._cRef.instance.minDate=this.minDate),r.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(r))),r.datepickerClass){const{currentValue:c,previousValue:_}=r.datepickerClass;this._applyPopupClass(c,_)}r.autoClose&&this.isOpen()&&this._setCloseHandlers()}ngOnDestroy(){this.close()}_applyDatepickerInputs(r){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(c=>{void 0!==this[c]&&r.setInput(c,this[c])}),r.setInput("startDate",this.startDate||this._model)}_applyPopupClass(r,c){var _;const R=null===(_=this._cRef)||void 0===_?void 0:_.location.nativeElement;R&&(r&&this._renderer.addClass(R,r),c&&this._renderer.removeClass(R,c))}_applyPopupStyling(r){this._renderer.addClass(r,"dropdown-menu"),this._renderer.addClass(r,"show"),"body"===this.container&&this._renderer.addClass(r,"ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(r){r.navigate.subscribe(c=>this.navigate.emit(c)),r.dateSelect.subscribe(c=>{this.dateSelect.emit(c),(!0===this.autoClose||"inside"===this.autoClose)&&this.close()})}_writeModelValue(r){const c=this._parserFormatter.format(r);this._inputValue=c,this._renderer.setProperty(this._elRef.nativeElement,"value",c),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(r)),this._onTouched())}_fromDateStruct(r){const c=r?new $i(r.year,r.month,r.day):null;return this._calendar.isValid(c)?c:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),aa(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(Zc),e.Y36(e.SBq),e.Y36(e.s_b),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(Ft),e.Y36($r),e.Y36(s.K0),e.Y36(e.sBO),e.Y36(Xl))},a.\u0275dir=e.lG2({type:a,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(r,c){1&r&&e.NdJ("input",function(R){return c.manualDateChange(R.target.value)})("change",function(R){return c.manualDateChange(R.target.value,!0)})("focus",function(){return c.onFocus()})("blur",function(){return c.onBlur()}),2&r&&e.Ikx("disabled",c.disabled)},inputs:{autoClose:"autoClose",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget",weekdays:"weekdays",disabled:"disabled"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[e._Bn([{provide:Oe.JU,useExisting:(0,e.Gpc)(()=>a),multi:!0},{provide:Oe.Cf,useExisting:(0,e.Gpc)(()=>a),multi:!0},{provide:Fr,useExisting:Xl}]),e.TTD]}),a})();new Date(1882,10,12),new Date(2174,10,25);let iu=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[s.ez,Oe.u5]}),a})(),Bd=(()=>{class a{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"]}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),ac=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275dir=e.lG2({type:a,selectors:[["",8,"navbar"]]}),a})(),lc=(()=>{class a{constructor(r,c){this.elementRef=r,this._renderer=c,this._disabled=!1}set disabled(r){this._disabled=""===r||!0===r,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.SBq),e.Y36(e.Qsj))},a.\u0275dir=e.lG2({type:a,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(r,c){2&r&&(e.Ikx("tabIndex",c.disabled?-1:0),e.ekj("disabled",c.disabled))},inputs:{disabled:"disabled"}}),a})(),cc=(()=>{class a{constructor(r,c){this.dropdown=r,this.placement="bottom",this.isOpen=!1,this.nativeElement=c.nativeElement}}return a.\u0275fac=function(r){return new(r||a)(e.Y36((0,e.Gpc)(()=>ls)),e.Y36(e.SBq))},a.\u0275dir=e.lG2({type:a,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(r,c,_){if(1&r&&e.Suo(_,lc,4),2&r){let R;e.iGM(R=e.CRH())&&(c.menuItems=R)}},hostVars:4,hostBindings:function(r,c){1&r&&e.NdJ("keydown.ArrowUp",function(R){return c.dropdown.onKeyDown(R)})("keydown.ArrowDown",function(R){return c.dropdown.onKeyDown(R)})("keydown.Home",function(R){return c.dropdown.onKeyDown(R)})("keydown.End",function(R){return c.dropdown.onKeyDown(R)})("keydown.Enter",function(R){return c.dropdown.onKeyDown(R)})("keydown.Space",function(R){return c.dropdown.onKeyDown(R)})("keydown.Tab",function(R){return c.dropdown.onKeyDown(R)})("keydown.Shift.Tab",function(R){return c.dropdown.onKeyDown(R)}),2&r&&e.ekj("dropdown-menu",!0)("show",c.dropdown.isOpen())}}),a})(),uc=(()=>{class a{constructor(r,c){this.dropdown=r,this.nativeElement=c.nativeElement}}return a.\u0275fac=function(r){return new(r||a)(e.Y36((0,e.Gpc)(()=>ls)),e.Y36(e.SBq))},a.\u0275dir=e.lG2({type:a,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(r,c){2&r&&e.uIk("aria-expanded",c.dropdown.isOpen())}}),a})(),Hd=(()=>{class a extends uc{constructor(r,c){super(r,c)}}return a.\u0275fac=function(r){return new(r||a)(e.Y36((0,e.Gpc)(()=>ls)),e.Y36(e.SBq))},a.\u0275dir=e.lG2({type:a,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(r,c){1&r&&e.NdJ("click",function(){return c.dropdown.toggle()})("keydown.ArrowUp",function(R){return c.dropdown.onKeyDown(R)})("keydown.ArrowDown",function(R){return c.dropdown.onKeyDown(R)})("keydown.Home",function(R){return c.dropdown.onKeyDown(R)})("keydown.End",function(R){return c.dropdown.onKeyDown(R)})("keydown.Tab",function(R){return c.dropdown.onKeyDown(R)})("keydown.Shift.Tab",function(R){return c.dropdown.onKeyDown(R)}),2&r&&e.uIk("aria-expanded",c.dropdown.isOpen())},features:[e._Bn([{provide:uc,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj]}),a})(),ls=(()=>{class a{constructor(r,c,_,R,ge,ke,Ue){this._changeDetector=r,this._document=_,this._ngZone=R,this._elementRef=ge,this._renderer=ke,this._destroyCloseHandlers$=new O.xQ,this._bodyContainer=null,this._positioning=La(),this._open=!1,this.openChange=new e.vpe,this.placement=c.placement,this.container=c.container,this.autoClose=c.autoClose,this.display=Ue?"static":"dynamic"}ngAfterContentInit(){this._ngZone.onStable.pipe((0,Be.q)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(r){if(r.container&&this._open&&this._applyContainer(this.container),r.placement&&!r.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),r.dropdownClass){const{currentValue:c,previousValue:_}=r.dropdownClass;this._applyCustomDropdownClass(c,_)}r.autoClose&&this._open&&(this.autoClose=r.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:ec([0,2])}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),aa(this._ngZone,this._document,this.autoClose,r=>{this.close(),0===r&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){var r;this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),null===(r=this._zoneSubscription)||void 0===r||r.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(r){const c=r.which,_=this._getMenuElements();let R=-1,ge=null;const ke=this._isEventFromToggle(r);if(!ke&&_.length&&_.forEach((Ue,st)=>{Ue.contains(r.target)&&(ge=Ue),Ue===this._document.activeElement&&(R=st)}),c!==Pn.Space&&c!==Pn.Enter){if(c!==Pn.Tab){if(ke||ge){if(this.open(),_.length){switch(c){case Pn.ArrowDown:R=Math.min(R+1,_.length-1);break;case Pn.ArrowUp:if(this._isDropup()&&-1===R){R=_.length-1;break}R=Math.max(R-1,0);break;case Pn.Home:R=0;break;case Pn.End:R=_.length-1}_[R].focus()}r.preventDefault()}}else if(r.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===r.target)return void("body"!==this.container||r.shiftKey?r.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const Ue=this._menu.nativeElement.querySelectorAll(la);r.shiftKey&&r.target===Ue[0]?(this._anchor.nativeElement.focus(),r.preventDefault()):!r.shiftKey&&r.target===Ue[Ue.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else(0,H.R)(r.target,"focusout").pipe((0,Be.q)(1)).subscribe(({relatedTarget:Ue})=>{this._elementRef.nativeElement.contains(Ue)||this.close()})}}else ge&&(!0===this.autoClose||"inside"===this.autoClose)&&(0,H.R)(ge,"click").pipe((0,Be.q)(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(r){return this._anchor.nativeElement.contains(r.target)}_getMenuElements(){const r=this._menu;return null==r?[]:r.menuItems.filter(c=>!c.disabled).map(c=>c.elementRef.nativeElement)}_positionMenu(){const r=this._menu;this.isOpen()&&r&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(r){return Array.isArray(r)?r[0]:r.split(" ")[0]}_resetContainer(){const r=this._renderer;this._menu&&r.appendChild(this._elementRef.nativeElement,this._menu.nativeElement),this._bodyContainer&&(r.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(r=null){if(this._resetContainer(),"body"===r){const c=this._renderer,_=this._menu.nativeElement,R=this._bodyContainer=this._bodyContainer||c.createElement("div");c.setStyle(R,"position","absolute"),c.setStyle(_,"position","static"),c.setStyle(R,"z-index","1055"),c.appendChild(R,_),c.appendChild(this._document.body,R)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(r,c){const _="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;_&&(c&&this._renderer.removeClass(_,c),r&&this._renderer.addClass(_,r))}_applyPlacementClasses(r){const c=this._menu;if(c){r||(r=this._getFirstPlacement(this.placement));const _=this._renderer,R=this._elementRef.nativeElement;_.removeClass(R,"dropup"),_.removeClass(R,"dropdown");const{nativeElement:ge}=c;"static"===this.display?(c.placement=null,_.setAttribute(ge,"data-bs-popper","static")):(c.placement=r,_.removeAttribute(ge,"data-bs-popper"));const ke=-1!==r.search("^top")?"dropup":"dropdown";_.addClass(R,ke);const Ue=this._bodyContainer;Ue&&(_.removeClass(Ue,"dropup"),_.removeClass(Ue,"dropdown"),_.addClass(Ue,ke))}}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.sBO),e.Y36(Bd),e.Y36(s.K0),e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ac,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","ngbDropdown",""]],contentQueries:function(r,c,_){if(1&r&&(e.Suo(_,cc,5),e.Suo(_,uc,5)),2&r){let R;e.iGM(R=e.CRH())&&(c._menu=R.first),e.iGM(R=e.CRH())&&(c._anchor=R.first)}},hostVars:2,hostBindings:function(r,c){2&r&&e.ekj("show",c.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[e.TTD]}),a})(),al=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({}),a})();class Os{constructor(d,r,c){this.nodes=d,this.viewRef=r,this.componentRef=c}}class ll{constructor(d,r,c,_,R,ge){this._componentType=d,this._injector=r,this._viewContainerRef=c,this._renderer=_,this._ngZone=R,this._applicationRef=ge,this._windowRef=null,this._contentRef=null}open(d,r,c=!1){this._windowRef||(this._contentRef=this._getContentRef(d,r),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:_}=this._windowRef.location,R=this._ngZone.onStable.pipe((0,Be.q)(1),(0,he.zg)(()=>In(this._ngZone,_,({classList:ge})=>ge.add("show"),{animation:c,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:R}}close(d=!1){return this._windowRef?In(this._ngZone,this._windowRef.location.nativeElement,({classList:r})=>r.remove("show"),{animation:d,runningTransition:"stop"}).pipe((0,Qt.b)(()=>{var r;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),null!==(r=this._contentRef)&&void 0!==r&&r.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):(0,Z.of)(void 0)}_getContentRef(d,r){if(d){if(d instanceof e.Rgc){const c=d.createEmbeddedView(r);return this._applicationRef.attachView(c),new Os([c.rootNodes],c)}return new Os([[this._renderer.createText(`${d}`)]])}return new Os([])}}let Ud=(()=>{class a{constructor(r,c){this._el=r,this._zone=c}ngOnInit(){this._zone.onStable.asObservable().pipe((0,Be.q)(1)).subscribe(()=>{In(this._zone,this._el.nativeElement,(r,c)=>{c&&To(r),r.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return In(this._zone,this._el.nativeElement,({classList:r})=>r.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.SBq),e.Y36(e.R0b))},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(r,c){2&r&&(e.Tol("modal-backdrop"+(c.backdropClass?" "+c.backdropClass:"")),e.ekj("show",!c.animation)("fade",c.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(r,c){},encapsulation:2}),a})();class cl{close(d){}dismiss(d){}}class ou{constructor(d,r,c,_){this._windowCmptRef=d,this._contentRef=r,this._backdropCmptRef=c,this._beforeDismiss=_,this._closed=new O.xQ,this._dismissed=new O.xQ,this._hidden=new O.xQ,d.instance.dismissEvent.subscribe(R=>{this.dismiss(R)}),this.result=new Promise((R,ge)=>{this._resolve=R,this._reject=ge}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Le(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Le(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(d){this._windowCmptRef&&(this._closed.next(d),this._resolve(d),this._removeModalElements())}_dismiss(d){this._dismissed.next(d),this._reject(d),this._removeModalElements()}dismiss(d){if(this._windowCmptRef)if(this._beforeDismiss){const r=this._beforeDismiss();!function bs(a){return a&&a.then}(r)?!1!==r&&this._dismiss(d):r.then(c=>{!1!==c&&this._dismiss(d)},()=>{})}else this._dismiss(d)}_removeModalElements(){const d=this._windowCmptRef.instance.hide(),r=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,Z.of)(void 0);d.subscribe(()=>{const{nativeElement:c}=this._windowCmptRef.location;c.parentNode.removeChild(c),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),r.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:c}=this._backdropCmptRef.location;c.parentNode.removeChild(c),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Ze(d,r).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var zs=(()=>{return(a=zs||(zs={}))[a.BACKDROP_CLICK=0]="BACKDROP_CLICK",a[a.ESC=1]="ESC",zs;var a})();let vf=(()=>{class a{constructor(r,c,_){this._document=r,this._elRef=c,this._zone=_,this._closed$=new O.xQ,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new e.vpe,this.shown=new O.xQ,this.hidden=new O.xQ}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":so(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(r){this.dismissEvent.emit(r)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,Be.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:r}=this._elRef,c={animation:this.animation,runningTransition:"stop"},ge=Ze(In(this._zone,r,()=>r.classList.remove("show"),c),In(this._zone,this._dialogEl.nativeElement,()=>{},c));return ge.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),ge}_show(){const r={animation:this.animation,runningTransition:"continue"};Ze(In(this._zone,this._elRef.nativeElement,(R,ge)=>{ge&&To(R),R.classList.add("show")},r),In(this._zone,this._dialogEl.nativeElement,()=>{},r)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:r}=this._elRef;this._zone.runOutsideAngular(()=>{(0,H.R)(r,"keydown").pipe(Le(this._closed$),(0,pt.h)(_=>_.which===Pn.Escape)).subscribe(_=>{this.keyboard?requestAnimationFrame(()=>{_.defaultPrevented||this._zone.run(()=>this.dismiss(zs.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let c=!1;(0,H.R)(this._dialogEl.nativeElement,"mousedown").pipe(Le(this._closed$),(0,Qt.b)(()=>c=!1),(0,Mt.w)(()=>(0,H.R)(r,"mouseup").pipe(Le(this._closed$),(0,Be.q)(1))),(0,pt.h)(({target:_})=>r===_)).subscribe(()=>{c=!0}),(0,H.R)(r,"click").pipe(Le(this._closed$)).subscribe(({target:_})=>{r===_&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!c&&this._zone.run(()=>this.dismiss(zs.BACKDROP_CLICK))),c=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:r}=this._elRef;if(!r.contains(document.activeElement)){const c=r.querySelector("[ngbAutofocus]"),_=Pa(r)[0];(c||_||r).focus()}}_restoreFocus(){const r=this._document.body,c=this._elWithFocus;let _;_=c&&c.focus&&r.contains(c)?c:r,this._zone.runOutsideAngular(()=>{setTimeout(()=>_.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&In(this._zone,this._elRef.nativeElement,({classList:r})=>(r.add("modal-static"),()=>r.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(s.K0),e.Y36(e.SBq),e.Y36(e.R0b))},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-modal-window"]],viewQuery:function(r,c){if(1&r&&e.Gf(Sn,7),2&r){let _;e.iGM(_=e.CRH())&&(c._dialogEl=_.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(r,c){2&r&&(e.uIk("aria-modal",!0)("aria-labelledby",c.ariaLabelledBy)("aria-describedby",c.ariaDescribedBy),e.Tol("modal d-block"+(c.windowClass?" "+c.windowClass:"")),e.ekj("fade",c.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:hr,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(r,c){1&r&&(e.F$t(),e.TgZ(0,"div",0,1)(2,"div",2),e.Hsn(3),e.qZA()()),2&r&&e.Tol("modal-dialog"+(c.size?" modal-"+c.size:"")+(c.centered?" modal-dialog-centered":"")+c.fullscreenClass+(c.scrollable?" modal-dialog-scrollable":"")+(c.modalDialogClass?" "+c.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),a})(),Vd=(()=>{class a{constructor(r){this._document=r}hide(){const r=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),c=this._document.body,_=c.style,{overflow:R,paddingRight:ge}=_;if(r>0){const ke=parseFloat(window.getComputedStyle(c).paddingRight);_.paddingRight=`${ke+r}px`}return _.overflow="hidden",()=>{r>0&&(_.paddingRight=ge),_.overflow=R}}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(s.K0))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),dc=(()=>{class a{constructor(r,c,_,R,ge,ke){this._applicationRef=r,this._injector=c,this._document=_,this._scrollBar=R,this._rendererFactory=ge,this._ngZone=ke,this._activeWindowCmptHasChanged=new O.xQ,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new e.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const Ue=this._windowCmpts[this._windowCmpts.length-1];Ql(this._ngZone,Ue.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(Ue.location.nativeElement)}})}_restoreScrollBar(){const r=this._scrollBarRestoreFn;r&&(this._scrollBarRestoreFn=null,r())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(r,c,_){const R=_.container instanceof HTMLElement?_.container:Bo(_.container)?this._document.querySelector(_.container):this._document.body,ge=this._rendererFactory.createRenderer(null,null);if(!R)throw new Error(`The specified modal container "${_.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const ke=new cl,Ue=this._getContentRef(_.injector||r,c,ke,_);let st=!1!==_.backdrop?this._attachBackdrop(R):void 0,at=this._attachWindowComponent(R,Ue.nodes),Ut=new ou(at,Ue,st,_.beforeDismiss);return this._registerModalRef(Ut),this._registerWindowCmpt(at),Ut.hidden.pipe((0,Be.q)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(ge.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),ke.close=Rt=>{Ut.close(Rt)},ke.dismiss=Rt=>{Ut.dismiss(Rt)},this._applyWindowOptions(at.instance,_),1===this._modalRefs.length&&ge.addClass(this._document.body,"modal-open"),st&&st.instance&&(this._applyBackdropOptions(st.instance,_),st.changeDetectorRef.detectChanges()),at.changeDetectorRef.detectChanges(),Ut}get activeInstances(){return this._activeInstances}dismissAll(r){this._modalRefs.forEach(c=>c.dismiss(r))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(r){let c=(0,e.LMc)(Ud,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(c.hostView),r.appendChild(c.location.nativeElement),c}_attachWindowComponent(r,c){let _=(0,e.LMc)(vf,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:c});return this._applicationRef.attachView(_.hostView),r.appendChild(_.location.nativeElement),_}_applyWindowOptions(r,c){this._windowAttributes.forEach(_=>{Bo(c[_])&&(r[_]=c[_])})}_applyBackdropOptions(r,c){this._backdropAttributes.forEach(_=>{Bo(c[_])&&(r[_]=c[_])})}_getContentRef(r,c,_,R){return c?c instanceof e.Rgc?this._createFromTemplateRef(c,_):so(c)?this._createFromString(c):this._createFromComponent(r,c,_,R):new Os([])}_createFromTemplateRef(r,c){const R=r.createEmbeddedView({$implicit:c,close(ge){c.close(ge)},dismiss(ge){c.dismiss(ge)}});return this._applicationRef.attachView(R),new Os([R.rootNodes],R)}_createFromString(r){const c=this._document.createTextNode(`${r}`);return new Os([[c]])}_createFromComponent(r,c,_,R){const ge=e.zs3.create({providers:[{provide:cl,useValue:_}],parent:r}),ke=(0,e.LMc)(c,{environmentInjector:this._applicationRef.injector,elementInjector:ge}),Ue=ke.location.nativeElement;return R.scrollable&&Ue.classList.add("component-host-scrollable"),this._applicationRef.attachView(ke.hostView),new Os([[Ue]],ke.hostView,ke)}_setAriaHidden(r){const c=r.parentElement;c&&r!==this._document.body&&(Array.from(c.children).forEach(_=>{_!==r&&"SCRIPT"!==_.nodeName&&(this._ariaHiddenValues.set(_,_.getAttribute("aria-hidden")),_.setAttribute("aria-hidden","true"))}),this._setAriaHidden(c))}_revertAriaHidden(){this._ariaHiddenValues.forEach((r,c)=>{r?c.setAttribute("aria-hidden",r):c.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(r){const c=()=>{const _=this._modalRefs.indexOf(r);_>-1&&(this._modalRefs.splice(_,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(r),this._activeInstances.emit(this._modalRefs),r.result.then(c,c)}_registerWindowCmpt(r){this._windowCmpts.push(r),this._activeWindowCmptHasChanged.next(),r.onDestroy(()=>{const c=this._windowCmpts.indexOf(r);c>-1&&(this._windowCmpts.splice(c,1),this._activeWindowCmptHasChanged.next())})}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(e.z2F),e.LFG(e.zs3),e.LFG(s.K0),e.LFG(Vd),e.LFG(e.FYo),e.LFG(e.R0b))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),su=(()=>{class a{constructor(r){this._ngbConfig=r,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(r){this._animation=r}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(mr))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),hc=(()=>{class a{constructor(r,c,_){this._injector=r,this._modalStack=c,this._config=_}open(r,c={}){const _={...this._config,animation:this._config.animation,...c};return this._modalStack.open(this._injector,r,_)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(r){this._modalStack.dismissAll(r)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(e.zs3),e.LFG(dc),e.LFG(su))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),ws=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({providers:[hc]}),a})(),jd=(()=>{class a{constructor(r){this._ngbConfig=r,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(r){this._animation=r}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(mr))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const ul=a=>Bo(a)&&""!==a;let dl=0,pc=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbNavContent",""]]}),a})(),_a=(()=>{class a{constructor(r,c){this._nav=r,this.elementRef=c,this.disabled=!1,this.shown=new e.vpe,this.hidden=new e.vpe}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){Bo(this.domId)||(this.domId="ngb-nav-"+dl++)}get active(){return this._nav.activeId===this.id}get id(){return ul(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Bo(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return a.\u0275fac=function(r){return new(r||a)(e.Y36((0,e.Gpc)(()=>Gs)),e.Y36(e.SBq))},a.\u0275dir=e.lG2({type:a,selectors:[["","ngbNavItem",""]],contentQueries:function(r,c,_){if(1&r&&e.Suo(_,pc,4),2&r){let R;e.iGM(R=e.CRH())&&(c.contentTpls=R)}},hostVars:2,hostBindings:function(r,c){2&r&&e.ekj("nav-item",!0)},inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),a})(),Gs=(()=>{class a{constructor(r,c,_,R){this.role=r,this._cd=_,this._document=R,this.activeIdChange=new e.vpe,this.shown=new e.vpe,this.hidden=new e.vpe,this.destroy$=new O.xQ,this.navItemChange$=new O.xQ,this.navChange=new e.vpe,this.animation=c.animation,this.destroyOnHide=c.destroyOnHide,this.orientation=c.orientation,this.roles=c.roles,this.keyboard=c.keyboard}click(r){r.disabled||this._updateActiveId(r.id)}onKeyDown(r){if("tablist"!==this.roles||!this.keyboard)return;const c=r.which,_=this.links.filter(ke=>!ke.navItem.disabled),{length:R}=_;let ge=-1;if(_.forEach((ke,Ue)=>{ke.elRef.nativeElement===this._document.activeElement&&(ge=Ue)}),R){switch(c){case Pn.ArrowLeft:if("vertical"===this.orientation)return;ge=(ge-1+R)%R;break;case Pn.ArrowRight:if("vertical"===this.orientation)return;ge=(ge+1)%R;break;case Pn.ArrowDown:if("horizontal"===this.orientation)return;ge=(ge+1)%R;break;case Pn.ArrowUp:if("horizontal"===this.orientation)return;ge=(ge-1+R)%R;break;case Pn.Home:ge=0;break;case Pn.End:ge=R-1}"changeWithArrows"===this.keyboard&&this.select(_[ge].navItem.id),_[ge].elRef.nativeElement.focus(),r.preventDefault()}}select(r){this._updateActiveId(r,!1)}ngAfterContentInit(){if(!Bo(this.activeId)){const r=this.items.first?this.items.first.id:null;ul(r)&&(this._updateActiveId(r,!1),this._cd.detectChanges())}this.items.changes.pipe(Le(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:r}){r&&!r.firstChange&&this._notifyItemChanged(r.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(r,c=!0){if(this.activeId!==r){let _=!1;c&&this.navChange.emit({activeId:this.activeId,nextId:r,preventDefault:()=>{_=!0}}),_||(this.activeId=r,this.activeIdChange.emit(r),this._notifyItemChanged(r))}}_notifyItemChanged(r){this.navItemChange$.next(this._getItemById(r))}_getItemById(r){return this.items&&this.items.find(c=>c.id===r)||null}}return a.\u0275fac=function(r){return new(r||a)(e.$8M("role"),e.Y36(jd),e.Y36(e.sBO),e.Y36(s.K0))},a.\u0275dir=e.lG2({type:a,selectors:[["","ngbNav",""]],contentQueries:function(r,c,_){if(1&r&&(e.Suo(_,_a,4),e.Suo(_,cs,5)),2&r){let R;e.iGM(R=e.CRH())&&(c.items=R),e.iGM(R=e.CRH())&&(c.links=R)}},hostVars:6,hostBindings:function(r,c){1&r&&e.NdJ("keydown.arrowLeft",function(R){return c.onKeyDown(R)})("keydown.arrowRight",function(R){return c.onKeyDown(R)})("keydown.arrowDown",function(R){return c.onKeyDown(R)})("keydown.arrowUp",function(R){return c.onKeyDown(R)})("keydown.Home",function(R){return c.onKeyDown(R)})("keydown.End",function(R){return c.onKeyDown(R)}),2&r&&(e.uIk("aria-orientation","vertical"===c.orientation&&"tablist"===c.roles?"vertical":void 0)("role",c.role?c.role:c.roles?"tablist":void 0),e.ekj("nav",!0)("flex-column","vertical"===c.orientation))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[e.TTD]}),a})(),cs=(()=>{class a{constructor(r,c,_,R){this.role=r,this.navItem=c,this.nav=_,this.elRef=R}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return a.\u0275fac=function(r){return new(r||a)(e.$8M("role"),e.Y36(_a),e.Y36(Gs),e.Y36(e.SBq))},a.\u0275dir=e.lG2({type:a,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(r,c){1&r&&e.NdJ("click",function(R){return c.nav.click(c.navItem),R.preventDefault()}),2&r&&(e.Ikx("id",c.navItem.domId),e.uIk("role",c.role?c.role:c.nav.roles?"tab":void 0)("tabindex",c.navItem.disabled?-1:void 0)("aria-controls",c.navItem.isPanelInDom()?c.navItem.panelDomId:null)("aria-selected",c.navItem.active)("aria-disabled",c.navItem.disabled),e.ekj("nav-link",!0)("nav-item",c.hasNavItemClass())("active",c.navItem.active)("disabled",c.navItem.disabled))}}),a})();const au=({classList:a})=>(a.remove("show"),()=>a.remove("active")),fc=(a,d)=>{d&&To(a),a.classList.add("show")};let _c=(()=>{class a{constructor(r){this.elRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.SBq))},a.\u0275dir=e.lG2({type:a,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(r,c){2&r&&(e.Ikx("id",c.item.panelDomId),e.uIk("role",c.role?c.role:c.nav.roles?"tabpanel":void 0)("aria-labelledby",c.item.domId),e.ekj("fade",c.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}}),a})(),lu=(()=>{class a{constructor(r,c){this._cd=r,this._ngZone=c,this._activePane=null}isPanelTransitioning(r){var c;return(null===(c=this._activePane)||void 0===c?void 0:c.item)===r}ngAfterViewInit(){var r;this._updateActivePane(),this.nav.navItemChange$.pipe(Le(this.nav.destroy$),(0,gt.O)((null===(r=this._activePane)||void 0===r?void 0:r.item)||null),(0,Et.x)(),function De(a){return d=>d.lift(new We(a))}(1)).subscribe(c=>{const _={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?In(this._ngZone,this._activePane.elRef.nativeElement,au,_).subscribe(()=>{var R;const ge=null===(R=this._activePane)||void 0===R?void 0:R.item;this._activePane=this._getPaneForItem(c),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),In(this._ngZone,this._activePane.elRef.nativeElement,fc,_).subscribe(()=>{c&&(c.shown.emit(),this.nav.shown.emit(c.id))})),ge&&(ge.hidden.emit(),this.nav.hidden.emit(ge.id))}):this._updateActivePane()})}_updateActivePane(){var r,c;this._activePane=this._getActivePane(),null===(r=this._activePane)||void 0===r||r.elRef.nativeElement.classList.add("show"),null===(c=this._activePane)||void 0===c||c.elRef.nativeElement.classList.add("active")}_getPaneForItem(r){return this._panes&&this._panes.find(c=>c.item===r)||null}_getActivePane(){return this._panes&&this._panes.find(r=>r.item.active)||null}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.sBO),e.Y36(e.R0b))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","ngbNavOutlet",""]],viewQuery:function(r,c){if(1&r&&e.Gf(_c,5),2&r){let _;e.iGM(_=e.CRH())&&(c._panes=_)}},hostVars:2,hostBindings:function(r,c){2&r&&e.ekj("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:fo,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,c){1&r&&e.YNc(0,Xo,1,1,"ng-template",0),2&r&&e.Q6J("ngForOf",c.nav.items)},dependencies:[s.sg,s.O5,s.tP,_c],encapsulation:2,changeDetection:0}),a})(),Zs=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[s.ez]}),a})(),Gd=(()=>{class a{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),cu=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbPaginationEllipsis",""]]}),a})(),uu=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbPaginationFirst",""]]}),a})(),du=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbPaginationLast",""]]}),a})(),hl=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbPaginationNext",""]]}),a})(),hu=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbPaginationNumber",""]]}),a})(),gc=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbPaginationPrevious",""]]}),a})(),pu=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["ng-template","ngbPaginationPages",""]]}),a})(),mc=(()=>{class a{constructor(r){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new e.vpe(!0),this.disabled=r.disabled,this.boundaryLinks=r.boundaryLinks,this.directionLinks=r.directionLinks,this.ellipses=r.ellipses,this.maxSize=r.maxSize,this.pageSize=r.pageSize,this.rotate=r.rotate,this.size=r.size}hasPrevious(){return this.page>1}hasNext(){return this.page<this.pageCount}nextDisabled(){return!this.hasNext()||this.disabled}previousDisabled(){return!this.hasPrevious()||this.disabled}selectPage(r){this._updatePages(r)}ngOnChanges(r){this._updatePages(this.page)}isEllipsis(r){return-1===r}_applyEllipses(r,c){this.ellipses&&(r>0&&(r>2?this.pages.unshift(-1):2===r&&this.pages.unshift(2),this.pages.unshift(1)),c<this.pageCount&&(c<this.pageCount-2?this.pages.push(-1):c===this.pageCount-2&&this.pages.push(this.pageCount-1),this.pages.push(this.pageCount)))}_applyRotation(){let r=0,c=this.pageCount,_=Math.floor(this.maxSize/2);return this.page<=_?c=this.maxSize:this.pageCount-this.page<_?r=this.pageCount-this.maxSize:(r=this.page-_-1,c=this.page+(this.maxSize%2==0?_-1:_)),[r,c]}_applyPagination(){let c=(Math.ceil(this.page/this.maxSize)-1)*this.maxSize;return[c,c+this.maxSize]}_setPageInRange(r){const c=this.page;this.page=function Do(a,d,r=0){return Math.max(Math.min(a,d),r)}(r,this.pageCount,1),this.page!==c&&Yn(this.collectionSize)&&this.pageChange.emit(this.page)}_updatePages(r){this.pageCount=Math.ceil(this.collectionSize/this.pageSize),Yn(this.pageCount)||(this.pageCount=0),this.pages.length=0;for(let c=1;c<=this.pageCount;c++)this.pages.push(c);if(this._setPageInRange(r),this.maxSize>0&&this.pageCount>this.maxSize){let c=0,_=this.pageCount;[c,_]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(c,_),this._applyEllipses(c,_)}}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(Gd))},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-pagination"]],contentQueries:function(r,c,_){if(1&r&&(e.Suo(_,cu,5),e.Suo(_,uu,5),e.Suo(_,du,5),e.Suo(_,hl,5),e.Suo(_,hu,5),e.Suo(_,gc,5),e.Suo(_,pu,5)),2&r){let R;e.iGM(R=e.CRH())&&(c.tplEllipsis=R.first),e.iGM(R=e.CRH())&&(c.tplFirst=R.first),e.iGM(R=e.CRH())&&(c.tplLast=R.first),e.iGM(R=e.CRH())&&(c.tplNext=R.first),e.iGM(R=e.CRH())&&(c.tplNumber=R.first),e.iGM(R=e.CRH())&&(c.tplPrevious=R.first),e.iGM(R=e.CRH())&&(c.tplPages=R.first)}},hostAttrs:["role","navigation"],inputs:{disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",rotate:"rotate",collectionSize:"collectionSize",maxSize:"maxSize",page:"page",pageSize:"pageSize",size:"size"},outputs:{pageChange:"pageChange"},features:[e.TTD],decls:20,vars:12,consts:function(){let d,r,c,_,R,ge,ke,Ue;return d="\xAB\xAB",r="\xAB",c="\xBB",_="\xBB\xBB",R="Primeiro",ge="Anterior",ke="Pr\xF3ximo",Ue="\xDAltimo",[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],d,r,c,_,["class","visually-hidden",4,"ngIf"],[1,"visually-hidden"],["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",R,"href","",1,"page-link",3,"click"],["aria-label",ge,"href","",1,"page-link",3,"click"],["aria-label",ke,"href","",1,"page-link",3,"click"],["aria-label",Ue,"href","",1,"page-link",3,"click"]]},template:function(r,c){if(1&r&&(e.YNc(0,So,2,0,"ng-template",null,0,e.W1O),e.YNc(2,Yr,2,0,"ng-template",null,1,e.W1O),e.YNc(4,_o,2,0,"ng-template",null,2,e.W1O),e.YNc(6,Fs,2,0,"ng-template",null,3,e.W1O),e.YNc(8,Fo,1,0,"ng-template",null,4,e.W1O),e.YNc(10,go,2,2,"ng-template",null,5,e.W1O),e.YNc(12,ae,1,1,"ng-template",null,6,e.W1O),e.TgZ(14,"ul"),e.YNc(15,dt,3,9,"li",7),e.YNc(16,gn,3,8,"li",7),e.YNc(17,Cn,0,0,"ng-template",8),e.YNc(18,ii,3,9,"li",7),e.YNc(19,zn,3,9,"li",7),e.qZA()),2&r){const _=e.MAs(13);e.xp6(14),e.Tol("pagination"+(c.size?" pagination-"+c.size:"")),e.xp6(1),e.Q6J("ngIf",c.boundaryLinks),e.xp6(1),e.Q6J("ngIf",c.directionLinks),e.xp6(1),e.Q6J("ngTemplateOutlet",(null==c.tplPages?null:c.tplPages.templateRef)||_)("ngTemplateOutletContext",e.kEZ(8,Oi,c.page,c.pages,c.disabled)),e.xp6(1),e.Q6J("ngIf",c.directionLinks),e.xp6(1),e.Q6J("ngIf",c.boundaryLinks)}},dependencies:[s.sg,s.O5,s.tP],encapsulation:2,changeDetection:0}),a})(),fu=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[s.ez]}),a})();class Ua{constructor(d,r){this.open=d,this.close=r,r||(this.close=d)}isManual(){return"manual"===this.open||"manual"===this.close}}const Zd={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},_u=a=>a>0?(0,j.g)(a):d=>d;function vc(a,d,r,c,_,R,ge=0,ke=0){const Ue=function ga(a,d=Zd){const r=(a||"").trim();if(0===r.length)return[];const c=r.split(/\s+/).map(R=>R.split(":")).map(R=>{let ge=d[R[0]]||R;return new Ua(ge[0],ge[1])}),_=c.filter(R=>R.isManual());if(_.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===_.length&&c.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return c}(r);if(1===Ue.length&&Ue[0].isManual())return()=>{};const st=function Va(a,d,r,c){return new K.y(_=>{const R=[],ge=()=>_.next(!0),ke=()=>_.next(!1),Ue=()=>_.next(!c());return r.forEach(st=>{st.open===st.close?R.push(a.listen(d,st.open,Ue)):R.push(a.listen(d,st.open,ge),a.listen(d,st.close,ke))}),()=>{R.forEach(st=>st())}})}(a,d,Ue,c).pipe(function yf(a,d,r){return c=>{let _=null;const R=c.pipe((0,ft.U)(Ue=>({open:Ue})),(0,pt.h)(Ue=>{const st=r();return st===Ue.open||_&&_.open!==st?(_&&_.open!==Ue.open&&(_=null),!1):(_=Ue,!0)}),(0,Ye.B)()),ge=R.pipe((0,pt.h)(Ue=>Ue.open),_u(a)),ke=R.pipe((0,pt.h)(Ue=>!Ue.open),_u(d));return(0,re.T)(ge,ke).pipe((0,pt.h)(Ue=>Ue===_&&(_=null,Ue.open!==r())),(0,ft.U)(Ue=>Ue.open))}}(ge,ke,c)).subscribe(at=>at?_():R());return()=>st.unsubscribe()}let Kd=(()=>{class a{constructor(r){this._ngbConfig=r,this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(r){this._animation=r}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(mr))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),Yd=0,Wd=(()=>{class a{isTitleTemplate(){return this.title instanceof e.Rgc}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(r,c){2&r&&(e.Ikx("id",c.id),e.Tol("popover"+(c.popoverClass?" "+c.popoverClass:"")),e.ekj("fade",c.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:hr,decls:4,vars:1,consts:[["data-popper-arrow","",1,"popover-arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,c){1&r&&(e.F$t(),e._UZ(0,"div",0),e.YNc(1,pe,4,2,"h3",1),e.TgZ(2,"div",2),e.Hsn(3),e.qZA()),2&r&&(e.xp6(1),e.Q6J("ngIf",c.title))},dependencies:[s.O5,s.tP],encapsulation:2,changeDetection:0}),a})(),gu=(()=>{class a{constructor(r,c,_,R,ge,ke,Ue,st,at){this._elementRef=r,this._renderer=c,this._ngZone=ke,this._document=Ue,this._changeDetector=st,this.shown=new e.vpe,this.hidden=new e.vpe,this._ngbPopoverWindowId="ngb-popover-"+Yd++,this._windowRef=null,this._positioning=La(),this.animation=ge.animation,this.autoClose=ge.autoClose,this.placement=ge.placement,this.triggers=ge.triggers,this.container=ge.container,this.disablePopover=ge.disablePopover,this.popoverClass=ge.popoverClass,this.openDelay=ge.openDelay,this.closeDelay=ge.closeDelay,this._popupService=new ll(Wd,_,R,c,this._ngZone,at)}_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}open(r){if(!this._windowRef&&!this._isDisabled()){const{windowRef:c,transition$:_}=this._popupService.open(this.ngbPopover,r,this.animation);this._windowRef=c,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("title",this.popoverTitle),this._windowRef.setInput("context",r),this._windowRef.setInput("popoverClass",this.popoverClass),this._windowRef.setInput("id",this._ngbPopoverWindowId),this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:ec([0,8])}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),aa(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),_.subscribe(()=>this.shown.emit())}}close(r=this.animation){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(r).subscribe(()=>{var c;this._windowRef=null,this._positioning.destroy(),null===(c=this._zoneSubscription)||void 0===c||c.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=vc(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:r,popoverTitle:c,disablePopover:_,popoverClass:R}){R&&this.isOpen()&&(this._windowRef.instance.popoverClass=R.currentValue),(r||c||_)&&this._isDisabled()&&this.close()}ngOnDestroy(){var r;this.close(!1),null===(r=this._unregisterListenersFn)||void 0===r||r.call(this)}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(e.s_b),e.Y36(Kd),e.Y36(e.R0b),e.Y36(s.K0),e.Y36(e.sBO),e.Y36(e.z2F))},a.\u0275dir=e.lG2({type:a,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",triggers:"triggers",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[e.TTD]}),a})(),mu=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[s.ez]}),a})(),eh=(()=>{class a{constructor(r){this._ngbConfig=r,this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(r){this._animation=r}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(mr))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),th=0,Mu=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(r,c){2&r&&(e.Ikx("id",c.id),e.Tol("tooltip"+(c.tooltipClass?" "+c.tooltipClass:"")),e.ekj("fade",c.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:hr,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(r,c){1&r&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA())},encapsulation:2,changeDetection:0}),a})(),nh=(()=>{class a{constructor(r,c,_,R,ge,ke,Ue,st,at){this._elementRef=r,this._renderer=c,this._ngZone=ke,this._document=Ue,this._changeDetector=st,this.shown=new e.vpe,this.hidden=new e.vpe,this._ngbTooltipWindowId="ngb-tooltip-"+th++,this._windowRef=null,this._positioning=La(),this.animation=ge.animation,this.autoClose=ge.autoClose,this.placement=ge.placement,this.triggers=ge.triggers,this.container=ge.container,this.disableTooltip=ge.disableTooltip,this.tooltipClass=ge.tooltipClass,this.openDelay=ge.openDelay,this.closeDelay=ge.closeDelay,this._popupService=new ll(Mu,_,R,c,this._ngZone,at)}set ngbTooltip(r){this._ngbTooltip=r,!r&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(r){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:c,transition$:_}=this._popupService.open(this._ngbTooltip,r,this.animation);this._windowRef=c,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip"}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),aa(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),_.subscribe(()=>this.shown.emit())}}close(r=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(r).subscribe(()=>{var c;this._windowRef=null,this._positioning.destroy(),null===(c=this._zoneSubscription)||void 0===c||c.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=vc(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:r}){r&&this.isOpen()&&(this._windowRef.instance.tooltipClass=r.currentValue)}ngOnDestroy(){var r;this.close(!1),null===(r=this._unregisterListenersFn)||void 0===r||r.call(this)}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(e.s_b),e.Y36(eh),e.Y36(e.R0b),e.Y36(s.K0),e.Y36(e.sBO),e.Y36(e.z2F))},a.\u0275dir=e.lG2({type:a,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[e.TTD]}),a})(),Au=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({}),a})(),ih=(()=>{class a{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(r){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const c=ur(this.result),_=Array.isArray(this.term)?this.term:[this.term],R=st=>this.accentSensitive?st:Xa(st),ge=_.map(st=>function ia(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(R(ur(st)))).filter(st=>st),ke=this.accentSensitive?c:Xa(c),Ue=ge.length?ke.split(new RegExp(`(${ge.join("|")})`,"gmi")):[c];if(this.accentSensitive)this.parts=Ue;else{let st=0;this.parts=Ue.map(at=>c.substring(st,st+=at.length))}}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},features:[e.TTD],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(r,c){1&r&&e.YNc(0,Dr,3,2,"ng-template",0),2&r&&e.Q6J("ngForOf",c.parts)},dependencies:[s.sg,s.O5],styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0}),a})(),rh=(()=>{class a{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=ur,this.selectEvent=new e.vpe,this.activeChangeEvent=new e.vpe}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(r){this.activeIdx=r,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(r){this.selectEvent.emit(r)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(r,c){1&r&&e.NdJ("mousedown",function(R){return R.preventDefault()}),2&r&&(e.Ikx("id",c.id),e.Tol("dropdown-menu show"+(c.popupClass?" "+c.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,c){1&r&&(e.YNc(0,Wr,1,2,"ng-template",null,0,e.W1O),e.YNc(2,cr,2,9,"ng-template",1)),2&r&&(e.xp6(2),e.Q6J("ngForOf",c.results))},dependencies:[s.sg,s.tP,ih],encapsulation:2}),a})(),yc=(()=>{class a{constructor(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"]}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const oh=new e.OlP("live announcer delay",{providedIn:"root",factory:function sh(){return 100}});function Ou(a,d=!1){let r=a.body.querySelector("#ngb-live");return null==r&&d&&(r=a.createElement("div"),r.setAttribute("id","ngb-live"),r.setAttribute("aria-live","polite"),r.setAttribute("aria-atomic","true"),r.classList.add("visually-hidden"),a.body.appendChild(r)),r}let wu=(()=>{class a{constructor(r,c){this._document=r,this._delay=c}ngOnDestroy(){const r=Ou(this._document);r&&r.parentElement.removeChild(r)}say(r){const c=Ou(this._document,!0),_=this._delay;if(null!=c){c.textContent="";const R=()=>c.textContent=r;null===_?R():setTimeout(R,_)}}}return a.\u0275fac=function(r){return new(r||a)(e.LFG(s.K0),e.LFG(oh))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),ah=0,lh=(()=>{class a{constructor(r,c,_,R,ge,ke,Ue,st,at,Ut,Rt){this._elementRef=r,this._renderer=_,this._live=Ue,this._document=st,this._ngZone=at,this._changeDetector=Ut,this._subscription=null,this._closed$=new O.xQ,this._inputValueBackup=null,this._windowRef=null,this._positioning=La(),this.autocomplete="off",this.placement="bottom-start",this.selectItem=new e.vpe,this.activeDescendant=null,this.popupId="ngb-typeahead-"+ah++,this._onTouched=()=>{},this._onChange=Zt=>{},this.container=ge.container,this.editable=ge.editable,this.focusFirst=ge.focusFirst,this.showHint=ge.showHint,this.placement=ge.placement,this._valueChanges=(0,H.R)(r.nativeElement,"input").pipe((0,ft.U)(Zt=>Zt.target.value)),this._resubscribeTypeahead=new Ne.X(null),this._popupService=new ll(rh,R,c,_,this._ngZone,Rt)}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:r}){r&&!r.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(r){this._onChange=r}registerOnTouched(r){this._onTouched=r}writeValue(r){this._writeInputValue(this._formatItemForInput(r)),this.showHint&&(this._inputValueBackup=r)}setDisabledState(r){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",r)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(r){if(this.isPopupOpen())switch(r.which){case Pn.ArrowDown:r.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case Pn.ArrowUp:r.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case Pn.Enter:case Pn.Tab:{const c=this._windowRef.instance.getActive();Bo(c)&&(r.preventDefault(),r.stopPropagation(),this._selectResult(c)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._elementRef.nativeElement.value;const{windowRef:r}=this._popupService.open();this._windowRef=r,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(c=>this._selectResultClosePopup(c)),this._windowRef.instance.activeChangeEvent.subscribe(c=>this.activeDescendant=c),"body"===this.container&&(this._renderer.setStyle(this._windowRef.location.nativeElement,"z-index","1055"),this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:ec([0,2])}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),aa(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{var r;this._positioning.destroy(),null===(r=this._zoneSubscription)||void 0===r||r.unsubscribe(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(r){let c=!1;this.selectItem.emit({item:r,preventDefault:()=>{c=!0}}),this._resubscribeTypeahead.next(null),c||(this.writeValue(r),this._onChange(r))}_selectResultClosePopup(r){this._selectResult(r),this._closePopup()}_showHint(){var r;if(this.showHint&&null!==(r=this._windowRef)&&void 0!==r&&r.instance.hasActive()&&null!=this._inputValueBackup){const c=this._inputValueBackup.toLowerCase(),_=this._formatItemForInput(this._windowRef.instance.getActive());c===_.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+_.substring(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,_.length])):this._writeInputValue(_)}}_formatItemForInput(r){return null!=r&&this.inputFormatter?this.inputFormatter(r):ur(r)}_writeInputValue(r){this._renderer.setProperty(this._elementRef.nativeElement,"value",ur(r))}_subscribeToUserInput(){const r=this._valueChanges.pipe((0,Qt.b)(c=>{this._inputValueBackup=this.showHint?c:null,this._onChange(this.editable?c:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>(0,Z.of)([]));this._subscription=this._resubscribeTypeahead.pipe((0,Mt.w)(()=>r)).subscribe(c=>{c&&0!==c.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=c,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const _=c?c.length:0;this._live.say(0===_?"No results available":`${_} result${1===_?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}}return a.\u0275fac=function(r){return new(r||a)(e.Y36(e.SBq),e.Y36(e.s_b),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(yc),e.Y36(e.R0b),e.Y36(wu),e.Y36(s.K0),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.z2F))},a.\u0275dir=e.lG2({type:a,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(r,c){1&r&&e.NdJ("blur",function(){return c.handleBlur()})("keydown",function(R){return c.handleKeyDown(R)}),2&r&&(e.Ikx("autocomplete",c.autocomplete),e.uIk("aria-autocomplete",c.showHint?"both":"list")("aria-activedescendant",c.activeDescendant)("aria-owns",c.isPopupOpen()?c.popupId:null)("aria-expanded",c.isPopupOpen()),e.ekj("open",c.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",showHint:"showHint",placement:"placement",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[e._Bn([{provide:Oe.JU,useExisting:(0,e.Gpc)(()=>a),multi:!0}]),e.TTD]}),a})(),Mr=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[s.ez]}),a})()}},Xe=>{Xe(Xe.s=6831)}]);