(self.webpackChunkangular5=self.webpackChunkangular5||[]).push([[179],{9664:(G,P,a)=>{"use strict";a.d(P,{qq:()=>le,vQ:()=>g});var n=a(4650),e=a(8929),o=a(6498),l=a(685),v=a.n(l);function d(nt,qe,ct){Object.defineProperty(nt,qe,{configurable:!1,enumerable:!0,value:ct,writable:!1})}function u(nt,qe,ct){Object.defineProperty(nt,qe,{configurable:!1,enumerable:!1,value:ct,writable:!1})}class b{constructor(qe,ct){if("string"==typeof qe)try{qe=JSON.parse(qe)}catch{throw new Error(`Malformed response ${qe}. Could not be parsed to JSON`)}d(this,"config",ct),d(this,"headers",qe.headers||{}),d(this,"status",qe.statusCode||200)}}class C extends b{constructor(qe,ct){super(qe,ct),d(this,"error",qe.body||{})}}class x extends b{constructor(qe,ct){super(qe,ct),d(this,"data",qe.body||{})}}const w=new n.InjectionToken("socket.io instance"),g=new n.InjectionToken("NgxSails config"),f=Symbol("defaultHeaders"),S=Symbol("uri"),j=Symbol("cfg"),B=Symbol("errorsSbj"),Z=Symbol("sendRequest");class le{constructor(qe,ct,ot){ot||(ot={});const jt={language:"javascript",platform:"browser",version:"1.1.12"},zt=Object.keys(jt).reduce((ti,mi)=>(ti[`__sails_io_sdk_${mi}`]=jt[mi],ti),{});ot.options&&ot.options.query&&Object.assign(zt,ot.options.query),u(this,j,Object.assign({transports:["websocket"]},ot.options||{},{query:zt})),ct||(ct=(v()||l)(ot.uri,this[j])),d(this,"io",ct),u(this,f,ot.headers||{}),u(this,B,new e.xQ),d(this,"requestErrors",this[B].asObservable()),d(this,"configuration",Object.freeze({headers:this[f],options:this[j],uri:this[S]}))}delete(qe,ct){return this[Z](qe,"delete",void 0,ct)}emit(qe,...ct){this.io.emit(qe,...ct)}emitAndWait(qe,...ct){return new o.y(ot=>{this.io.emit(qe,...ct,dt=>{ot.next(dt),ot.complete()})})}get(qe,ct){return this[Z](qe,"get",void 0,ct)}head(qe,ct){return this[Z](qe,"head",void 0,ct)}ngOnDestroy(){this[B].complete()}on(qe){return new o.y(ct=>{function ot(dt){ct.next(dt)}this.io.on(qe,ot),ct.add(()=>{this.io.off(qe,ot)})})}options(qe,ct){return this[Z](qe,"options",void 0,ct)}patch(qe,ct,ot){return this[Z](qe,"patch",ct,ot)}post(qe,ct,ot){return this[Z](qe,"post",ct,ot)}put(qe,ct,ot){return this[Z](qe,"put",ct,ot)}[Z](qe,ct,ot,dt={}){return function q(nt,qe,ct){const{method:ot}=nt;return nt.headers=function X(nt){if(nt){let qe;for(const ct of Object.keys(nt))qe=ct.toLowerCase(),qe!==ct&&(nt[qe]=nt[ct],delete nt[ct])}return nt}(nt.headers),new o.y(dt=>{let jt=!1;qe.emit(ot,nt,zt=>{if(!jt)if(zt.statusCode>=400){const ti=new C(zt,nt);ct.next(ti),dt.error(ti)}else dt.next(new x(zt,nt)),dt.complete()}),dt.add(()=>{jt=!0})})}(K({data:K(ot),headers:K(Object.assign({},this[f],dt.headers||{})),method:ct,params:K(dt.params||dt.search||{}),url:qe}),this.io,this[B])}}function K(nt){if(nt)for(const qe of Object.keys(nt))void 0===nt[qe]&&delete nt[qe];return nt}le.\u0275fac=function(qe){return new(qe||le)(n.\u0275\u0275inject(n.Injector),n.\u0275\u0275inject(w,8),n.\u0275\u0275inject(g,8))},le.\u0275prov=n.\u0275\u0275defineInjectable({token:le,factory:le.\u0275fac,providedIn:"root"}),le.ngInjectableDef=(0,n.\u0275\u0275defineInjectable)({factory:function(){return new le((0,n.\u0275\u0275inject)(n.INJECTOR),(0,n.\u0275\u0275inject)(w,8),(0,n.\u0275\u0275inject)(g,8))},token:le,providedIn:"root"})},5252:(G,P,a)=>{"use strict";a.d(P,{N:()=>v});var n=a(6895),e=a(4006),o=a(8729),l=a(4650);let v=(()=>{class d{static#e=this.\u0275fac=function(C){return new(C||d)};static#t=this.\u0275mod=l.\u0275\u0275defineNgModule({type:d});static#i=this.\u0275inj=l.\u0275\u0275defineInjector({imports:[n.CommonModule,e.u5,o.Bz]})}return d})()},3777:(G,P,a)=>{"use strict";a.d(P,{c:()=>le});var n=a(4650),e=a(7925),o=a(5550),l=a(6895),v=a(4006);const d=function(q,X){return{"div-button-enable":q,"div-button-disable":X}};let u=(()=>{class q{constructor(K){this.articleService=K,this.user=null,this.name=null,this.disableNameInput=!1,this.appId=e.b.APP_ID,this.addComment=new n.EventEmitter,this.user=JSON.parse(localStorage.getItem(this.appId+"ArticleUser")),this.comment={articleId:null,appId:null,user:null,comment:null}}ngOnInit(){this.comment.articleId=this.articleId,this.comment.appId=this.appId,this.comment.user=this.user.id,this.name=this.user.name,this.name&&(this.disableNameInput=!0),document.getElementById("comment").addEventListener("input",function(){this.style.height="auto",this.style.height=this.scrollHeight+"px"})}onCommentButtonClickHandler(){this.name&&this.comment.comment&&(this.disableNameInput||this.updateArticleUserName(),this.addComment.next({comment:this.comment,user:{name:this.name}}))}afterCommentCreatedHandler(){this.comment.comment=null}updateArticleUserName(){this.articleService.updateArticleUserName({id:this.user.id,name:this.name}).subscribe(U=>{"SUCCESS"===U.status&&(this.user=U.data[0],this.disableNameInput=!0,localStorage.setItem(this.appId+"ArticleUser",JSON.stringify(this.user)))})}static#e=this.\u0275fac=function(U){return new(U||q)(n.\u0275\u0275directiveInject(o.n))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:q,selectors:[["add-comment"]],inputs:{articleId:"articleId"},outputs:{addComment:"addComment"},decls:10,vars:7,consts:[[1,"a-c-main-content"],[1,"div-inputs"],[1,"div-name"],["name","name","id","name","type","text","maxlength","30","placeholder","Name",3,"disabled","ngModel","ngModelChange"],[1,"div-comment"],["name","comment","id","comment","rows","auto","maxlength","4096","placeholder","Comment",3,"ngModel","ngModelChange"],["cmt",""],[1,"main-button",3,"ngClass","click"],[1,"div-button-comment"]],template:function(U,me){if(1&U&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"input",3),n.\u0275\u0275listener("ngModelChange",function(ne){return me.name=ne}),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(4,"div",4)(5,"textarea",5,6),n.\u0275\u0275listener("ngModelChange",function(ne){return me.comment.comment=ne}),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275elementStart(7,"div",7),n.\u0275\u0275listener("click",function(){return me.onCommentButtonClickHandler()}),n.\u0275\u0275elementStart(8,"div",8),n.\u0275\u0275text(9,"Comment"),n.\u0275\u0275elementEnd()()()),2&U){const xe=n.\u0275\u0275reference(6);n.\u0275\u0275advance(3),n.\u0275\u0275property("disabled",me.disableNameInput)("ngModel",me.name),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngModel",me.comment.comment),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction2(4,d,xe.value.length>0,0===xe.value.length))}},dependencies:[l.NgClass,v.Fj,v.JJ,v.nD,v.On],styles:[".a-c-main-content[_ngcontent-%COMP%]{display:block;position:relative}.div-inputs[_ngcontent-%COMP%]{width:72%;height:72px;display:inline-block;color:#000;margin-right:2px}.div-button-enable[_ngcontent-%COMP%]{width:28%;height:100%;display:inline-block;background-color:#d4c7c7;position:absolute;border-bottom-right-radius:5px;border-top-right-radius:5px;color:#5f5858;font-weight:700;cursor:pointer;box-shadow:0 2px 5px 2px #505050!important}.div-button-disable[_ngcontent-%COMP%]{width:28%;height:100%;display:inline-block;background-color:#dad2d2;color:#888383;position:absolute;border-bottom-right-radius:5px;border-top-right-radius:5px;font-weight:400;cursor:not-allowed;box-shadow:none!important}.div-button-comment[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:row;justify-content:center;align-items:center}.div-name[_ngcontent-%COMP%]{margin-bottom:2px;border-top-left-radius:5px;padding:2px;background:#d4c7c7}.div-name[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;color:#000;font-weight:100;background-color:#d4c7c7;border-width:0}.div-comment[_ngcontent-%COMP%]{border-bottom-left-radius:5px;padding:2px;background:#d4c7c7;border-color:#d4c7c7}.div-comment[_ngcontent-%COMP%]   textarea#comment[_ngcontent-%COMP%]{resize:none;min-height:44px;width:100%;color:#000;font-weight:100;background-color:#d4c7c7;border-color:#d4c7c7;overflow-y:scroll!important}.div-comment[_ngcontent-%COMP%]   textarea#comment[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}"]})}return q})();function C(q,X){if(1&q&&(n.\u0275\u0275elementStart(0,"div",5)(1,"span",2),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd()),2&q){const K=X.$implicit,U=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1("","AU"===K.createdBy?U.comment.user.name:U.comment.user.appCreator.appName,": "),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",K.comment," ")}}function x(q,X){if(1&q&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275template(1,C,4,2,"div",4),n.\u0275\u0275elementEnd()),2&q){const K=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",K.comment.children)}}let w=(()=>{class q{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(U){return new(U||q)};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:q,selectors:[["article-comment"]],inputs:{comment:"comment"},decls:6,vars:3,consts:[[1,"comment-main-content"],[1,"parent-comment"],[1,"user"],[4,"ngIf"],["class","child-comment",4,"ngFor","ngForOf"],[1,"child-comment"]],template:function(U,me){1&U&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"span",2),n.\u0275\u0275text(3),n.\u0275\u0275elementEnd(),n.\u0275\u0275text(4),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(5,x,2,1,"div",3),n.\u0275\u0275elementEnd()),2&U&&(n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate1("",me.comment.user.name,": "),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("",me.comment.comment," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",me.comment.children&&me.comment.children.length>0))},dependencies:[l.NgForOf,l.NgIf],styles:[".comment-main-content[_ngcontent-%COMP%]{padding:5px 0}.parent-comment[_ngcontent-%COMP%]{font-style:italic;font-weight:100;padding:5px 0}.child-comment[_ngcontent-%COMP%]{font-style:italic;font-weight:100;margin-left:25px;padding:5px 0}.user[_ngcontent-%COMP%]{font-style:italic;font-weight:700}"]})}return q})();function g(q,X){1&q&&n.\u0275\u0275element(0,"i",8)}function f(q,X){1&q&&n.\u0275\u0275element(0,"i",9)}function S(q,X){1&q&&n.\u0275\u0275element(0,"article-comment",15),2&q&&n.\u0275\u0275property("comment",X.$implicit)}function j(q,X){if(1&q&&(n.\u0275\u0275elementStart(0,"div",13),n.\u0275\u0275template(1,S,1,1,"article-comment",14),n.\u0275\u0275elementEnd()),2&q){const K=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",K.comments)}}function B(q,X){if(1&q){const K=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",16)(1,"add-comment",17),n.\u0275\u0275listener("addComment",function(me){n.\u0275\u0275restoreView(K);const xe=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(xe.onCommentAddHandler(me))}),n.\u0275\u0275elementEnd()()}if(2&q){const K=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275property("articleId",K.articleId)}}function Z(q,X){if(1&q&&(n.\u0275\u0275elementStart(0,"div",10),n.\u0275\u0275template(1,j,2,1,"div",11),n.\u0275\u0275template(2,B,2,1,"div",12),n.\u0275\u0275elementEnd()),2&q){const K=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",K.showComments),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",K.showAddComment)}}let le=(()=>{class q{constructor(K){this.articleService=K,this.showComments=!1,this.showAddComment=!1,this.comments=[],this.user=null,this.user=JSON.parse(localStorage.getItem(e.b.APP_ID+"ArticleUser"))}ngOnInit(){}ngAfterViewInit(){this.articleId&&this.articleService.getCommentsOnArticle(this.articleId).subscribe(K=>{"SUCCESS"===K.status&&(this.comments=K.data)})}commentShowHideHandler(){this.showComments=!this.showComments}addCommentShowHideHandler(){this.showAddComment=!this.showAddComment}onCommentAddHandler(K){this.articleService.addArticleComment(K.comment).subscribe(U=>{if("SUCCESS"===U.status){const me=U.data;me.user=K.user,this.comments.push(me),this.addCommentComponent.afterCommentCreatedHandler()}})}static#e=this.\u0275fac=function(U){return new(U||q)(n.\u0275\u0275directiveInject(o.n))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:q,selectors:[["article-commenting-section"]],viewQuery:function(U,me){if(1&U&&n.\u0275\u0275viewQuery(u,5),2&U){let xe;n.\u0275\u0275queryRefresh(xe=n.\u0275\u0275loadQuery())&&(me.addCommentComponent=xe.first)}},inputs:{articleId:["id","articleId"]},decls:10,vars:4,consts:[[1,"a-c-main-content","main-header-font"],[1,"a-c-top-content"],[1,"comment-show-hide-section",3,"click"],["class","fa fa-chevron-down",4,"ngIf"],["class","fa fa-chevron-up",4,"ngIf"],[1,"comment-btn-section",3,"click"],[1,"fa","fa-comment"],["class","a-c-bottom-content",4,"ngIf"],[1,"fa","fa-chevron-down"],[1,"fa","fa-chevron-up"],[1,"a-c-bottom-content"],["class","a-c-comments-content",4,"ngIf"],["class","a-c-add-comment-content",4,"ngIf"],[1,"a-c-comments-content"],[3,"comment",4,"ngFor","ngForOf"],[3,"comment"],[1,"a-c-add-comment-content"],[3,"articleId","addComment"]],template:function(U,me){1&U&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),n.\u0275\u0275listener("click",function(){return me.commentShowHideHandler()}),n.\u0275\u0275text(3),n.\u0275\u0275template(4,g,1,0,"i",3),n.\u0275\u0275template(5,f,1,0,"i",4),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(6,"div",5),n.\u0275\u0275listener("click",function(){return me.addCommentShowHideHandler()}),n.\u0275\u0275element(7,"i",6),n.\u0275\u0275text(8," Comment "),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(9,Z,3,2,"div",7),n.\u0275\u0275elementEnd()),2&U&&(n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate1("",me.comments.length," Comments "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!me.showComments),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",me.showComments),n.\u0275\u0275advance(4),n.\u0275\u0275property("ngIf",me.showComments&&me.comments.length>0||me.showAddComment))},dependencies:[l.NgForOf,l.NgIf,w,u],styles:[".a-c-main-content[_ngcontent-%COMP%]{padding:0 20px 20px}.a-c-comments-content[_ngcontent-%COMP%]{padding:10px 5px}.a-c-top-content[_ngcontent-%COMP%]{padding:5px 10px;display:flex;border-bottom:1px solid;border-color:inherit}.a-c-bottom-content[_ngcontent-%COMP%]{border-bottom:1px solid;border-color:inherit}.comment-show-hide-section[_ngcontent-%COMP%]{margin-right:auto;margin-left:0;font-style:italic;font-weight:100}.comment-btn-section[_ngcontent-%COMP%]{margin-right:0;margin-left:auto;font-style:italic;font-weight:100}i[_ngcontent-%COMP%]{font-size:15px}.a-c-add-comment-content[_ngcontent-%COMP%]{padding:10px 0}"]})}return q})()},3593:(G,P,a)=>{"use strict";a.d(P,{o:()=>o});var n=a(4650),e=a(8729);let o=(()=>{class l{constructor(d){this.router=d}ngOnInit(){}goToMessaging(){this.articleId&&this.articleTitle&&this.router.navigate(["messaging",this.articleId,this.articleTitle])}static#e=this.\u0275fac=function(u){return new(u||l)(n.\u0275\u0275directiveInject(e.F0))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:l,selectors:[["send-message-button"]],inputs:{articleId:["id","articleId"],articleTitle:["title","articleTitle"]},decls:6,vars:0,consts:[[1,"a-m-main-content"],[1,"a-m-btn-content","main-header-font",3,"click"],[1,"a-m-icon-content"],[1,"fa","fa-envelope-square"],[1,"a-m-text-content"]],template:function(u,b){1&u&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1),n.\u0275\u0275listener("click",function(){return b.goToMessaging()}),n.\u0275\u0275elementStart(2,"div",2),n.\u0275\u0275element(3,"i",3),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",4),n.\u0275\u0275text(5,"Send a Message"),n.\u0275\u0275elementEnd()()())},styles:[".a-m-main-content[_ngcontent-%COMP%]{text-align:center}.a-m-btn-content[_ngcontent-%COMP%]{border:1px solid;border-color:inherit;background-color:inherit;font-family:inherit;font-style:italic;width:160px;margin:0 auto;padding:5px 0;border-radius:5px}.a-m-icon-content[_ngcontent-%COMP%], .a-m-text-content[_ngcontent-%COMP%]{display:inline-block}.a-m-btn-content[_ngcontent-%COMP%]   .fa[_ngcontent-%COMP%]{font-size:21px}.a-m-btn-content[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:10px}"]})}return l})()},8182:(G,P,a)=>{"use strict";a.r(P),a.d(P,{ChatTemplateModule:()=>jn});var n=a(6895),e=a(8729),o=a(1411),l=a(4650),v=a(4064);let d=(()=>{class Ye{constructor(D,ae){this.commonChatService=D,this.router=ae,this.appId=o.Jf}canActivate(D,ae){let _e=this.commonChatService.checkUserLoggedIn();if(_e)if("loginregistration"==D.routeConfig.path)this.router.navigate(["/chatTemplate/matchme"]);else{if(""!=D.routeConfig.path){const Dt=JSON.parse(localStorage.getItem(`chatLogin-${this.appId}`));return this.commonChatService.setLoggedMemberId(Dt.loggedUser),localStorage.setItem("hasChatProfile",JSON.stringify(!0)),localStorage.setItem("isUserLoggedIn",JSON.stringify(!0)),_e}this.router.navigate(["/chatTemplate/matchme"])}else{if("loginregistration"==D.routeConfig.path)return!0;if("profile"==D.routeConfig.path)return!0;this.router.navigate(["/chatTemplate/loginregistration"])}}static#e=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275inject(v.d),l.\u0275\u0275inject(e.F0))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac,providedIn:"root"})}return Ye})();var u=a(529),b=a(9441),C=a(6026),x=a(1086),w=a(7221),g=a(9664),f=a(5158),S=a(9066);let j=(()=>{class Ye{constructor(D,ae,_e,it){this.sails=D,this.http=ae,this.authService=_e,this.dataService=it,this.appId=o.Jf,this.chatUrl=o.Qb,this.userId=o.xS,this.httpOptions={headers:new u.WM({"Content-Type":"application/json"})}}listenOn(){return this.sails.on("chatmessage")}postMessage(D){const ae=`${this.chatUrl}/api/addChat`,_e=this.authService.getToken();return this.sails.post(ae,D,{headers:{Authorization:"Bearer "+_e}})}getAppFileServerUrl(D,ae){const _e=`${this.chatUrl}/api/getAppFileServerUrl`;let it=new u.LE;return it=it.set("appId",D),it=it.set("cmsUserId",ae),this.http.get(_e,{params:it}).pipe((0,w.K)(this.handleError("Error getAppFileServerUrl! ")))}blockUser(D){return this.http.post(`${this.chatUrl}/api/blockuser`,D).pipe((0,w.K)(this.handleError("Error blockUser! ")))}sendChatImage(D,ae,_e){return this.http.post(`${this.chatUrl}/api/sendChatImage/${ae}/${_e}`,D).pipe((0,w.K)(this.handleError("Error on Sending Images")))}downloadImageAPK(D){return this.http.post(`${this.chatUrl}/api/downloadImageAPK`,{appId:this.appId,cmsUserId:this.userId,imageName:D.imageName},{responseType:"blob",observe:"events",reportProgress:!0,headers:new u.WM({"Content-Type":"application/json"})})}downloadImage(D){let ae=D.link.split("thirdNavi/")[1];const _e=`${this.chatUrl}/api/downloadImage`;let it=new u.LE;return it=it.set("appId",this.appId),it=it.set("cmsUserId",this.userId),it=it.set("imageName",ae),this.http.get(_e,{params:it,responseType:"blob"})}getChatMemberName(D,ae){const _e=`${this.chatUrl}/api/getChatMemberName`;let it=new u.LE;return it=it.set("chatMemberId",D),it=it.set("appId",ae),this.http.get(_e,{params:it}).pipe((0,w.K)(this.handleError(`Error get Chat Member Name. member Id - ${D}`)))}checkingUserBlocks(D,ae){return this.http.get(`${this.chatUrl}/api/chekUserBlocked/${D}/${ae}`).pipe((0,w.K)(this.handleError(`Error get Chat Member Name. member Id - ${ae}`)))}reportUser(D){const ae=`${this.dataService.getServerURL()}/chatUser/report`;return this.http.post(ae,D).pipe((0,w.K)(this.handleError("Error get Chat Member Name. member")))}getConversation(D){const ae=`${this.chatUrl}/api/getConversation`,_e=this.authService.getToken();return this.sails.get(ae,{params:{cmsUserId:this.userId,appId:this.appId,conversationId:D},headers:{Authorization:"Bearer "+_e}}).pipe((0,w.K)(this.handleError(`Error get Converstion Id - ${D}`)))}leaveRoom(D){const ae=`${this.chatUrl}/api/leaveRoom`,_e=this.authService.getToken();return this.sails.get(ae,{params:{conversationId:D},headers:{Authorization:"Bearer "+_e}}).pipe((0,w.K)(this.handleError(`Error get Converstion Id - ${D}`)))}getMemberProfImgUrl(D){const ae=`${this.chatUrl}/api/getMemberProfImgUrl`;let _e=new u.LE;return _e=_e.set("memberId",D),_e=_e.set("cmsUserId",this.userId),_e=_e.set("appId",this.appId),this.http.get(ae,{params:_e}).pipe((0,w.K)(this.handleError(`Error get Profile Image Url that member id - ${D}`)))}unmatchChatMember(D,ae,_e){return this.http.put(`${this.chatUrl}/api/unmatchChatMember`,{conversationId:D,loggedMemberId:ae,chatMemberId:_e},this.httpOptions).pipe((0,w.K)(this.handleError(`Error Rejecting Request : ${ae}`)))}handleError(D="operation",ae){return _e=>(console.error(_e),(0,x.of)(ae))}static#e=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275inject(g.qq),l.\u0275\u0275inject(u.eN),l.\u0275\u0275inject(f.e),l.\u0275\u0275inject(S.V))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac,providedIn:"root"})}return Ye})();var B=a(5001),Z=a(2413);let le=(()=>{class Ye{constructor(D){this.http=D,this.userId=o.xS,this.chatUrl=o.Qb}getChatUserProfile(D,ae){let _e=new u.LE;return _e=_e.set("appId",D),_e=_e.set("memberId",ae),_e=_e.set("cmsUserId",this.userId),this.http.get(`${this.chatUrl}/api/getChatUserProfile`,{params:_e})}getProfile(D){let ae=new u.LE;return ae=ae.set("appId",D),this.http.get(`${this.chatUrl}/api/getProfile`,{params:ae})}getAllMemberNames(D,ae,_e,it){let Dt=new u.LE;return Dt=Dt.set("appId",D),Dt=Dt.set("memberId",ae),Dt=Dt.set("cmsUserId",this.userId),Dt=Dt.set("skip",_e),it&&(Dt=Dt.set("version",it)),this.http.get(`${this.chatUrl}/api/getAllMemberNames`,{params:Dt})}static#e=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275inject(u.eN))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac,providedIn:"root"})}return Ye})();var q=a(4006),X=a(9349),K=a(2042),U=a(8377),me=a(9818),xe=a(7392),ne=a(7084);const Ze=["chatMessageViewContainer"];function Oe(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"button",27),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(_e.openExpansionPanel())}),l.\u0275\u0275elementStart(1,"mat-icon",28),l.\u0275\u0275text(2," more_horiz"),l.\u0275\u0275elementEnd()()}}function nt(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"button",27),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(_e.closeExpansionPanel())}),l.\u0275\u0275elementStart(1,"mat-icon",29),l.\u0275\u0275text(2," close"),l.\u0275\u0275elementEnd()()}}function qe(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275elementStart(1,"button",30),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(_e.unmatchMember())}),l.\u0275\u0275text(2," Unmatch "),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(3,"button",30),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(_e.reportUser())}),l.\u0275\u0275text(4," Report User "),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"button",30),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(_e.blockOrUnBlockUser())}),l.\u0275\u0275text(6),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementContainerEnd()}if(2&Ye){const D=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(6),l.\u0275\u0275textInterpolate1(" ",D.isChatMemberBlocked?"UnBlock User":"Block User"," ")}}function ct(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"textarea",31),l.\u0275\u0275listener("ngModelChange",function(_e){l.\u0275\u0275restoreView(D);const it=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(it.reportText=_e)}),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(1,"div",32)(2,"div",33)(3,"button",34),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(_e.cancel())}),l.\u0275\u0275text(4,"CANCEL"),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(5,"div",33)(6,"button",35),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(_e.sendReport())}),l.\u0275\u0275text(7,"SEND"),l.\u0275\u0275elementEnd()()()}if(2&Ye){const D=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("ngModel",D.reportText),l.\u0275\u0275advance(6),l.\u0275\u0275property("ngClass",D.checkSendActive())}}function ot(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"p",49),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ye){const D=l.\u0275\u0275nextContext(2).$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",D.text,"")}}function dt(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"img",50),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(2).$implicit,it=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(it.openImage(_e.text))}),l.\u0275\u0275elementEnd()}if(2&Ye){const D=l.\u0275\u0275nextContext(2).$implicit;l.\u0275\u0275property("src",D.text,l.\u0275\u0275sanitizeUrl)}}function jt(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"div",38),l.\u0275\u0275element(1,"img",39),l.\u0275\u0275template(2,ot,2,1,"p",40),l.\u0275\u0275template(3,dt,1,1,"img",41),l.\u0275\u0275elementStart(4,"div",42)(5,"span",43),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(3);return l.\u0275\u0275resetView(_e.closeImage())}),l.\u0275\u0275text(6,"\xd7"),l.\u0275\u0275elementEnd(),l.\u0275\u0275element(7,"div",44),l.\u0275\u0275elementStart(8,"div",45),l.\u0275\u0275element(9,"img",46),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(10,"div",47)(11,"button",48),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(3);return l.\u0275\u0275resetView(_e.downloadImage(_e.viewImageUrl))}),l.\u0275\u0275text(12,"Download"),l.\u0275\u0275elementEnd()()()()}if(2&Ye){const D=l.\u0275\u0275nextContext().$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(1),l.\u0275\u0275property("src",""==D.profImgUrl?ae.defaultImgUrl:D.profImgUrl,l.\u0275\u0275sanitizeUrl),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!D.isImage),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",D.isImage&&""!=D.text),l.\u0275\u0275advance(6),l.\u0275\u0275property("src",ae.viewImageUrl,l.\u0275\u0275sanitizeUrl)}}function zt(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"p",54),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ye){const D=l.\u0275\u0275nextContext(2).$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",D.text,"")}}function ti(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"img",50),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(2).$implicit,it=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(it.openImage(_e.text))}),l.\u0275\u0275elementEnd()}if(2&Ye){const D=l.\u0275\u0275nextContext(2).$implicit;l.\u0275\u0275property("src",D.text,l.\u0275\u0275sanitizeUrl)}}function mi(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"div",51),l.\u0275\u0275element(1,"img",52),l.\u0275\u0275template(2,zt,2,1,"p",53),l.\u0275\u0275template(3,ti,1,1,"img",41),l.\u0275\u0275elementStart(4,"div",42)(5,"span",43),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(3);return l.\u0275\u0275resetView(_e.closeImage())}),l.\u0275\u0275text(6,"\xd7"),l.\u0275\u0275elementEnd(),l.\u0275\u0275element(7,"div",44),l.\u0275\u0275elementStart(8,"div",45),l.\u0275\u0275element(9,"img",46),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(10,"div",47)(11,"button",48),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(3);return l.\u0275\u0275resetView(_e.downloadImage(_e.viewImageUrl))}),l.\u0275\u0275text(12,"Download"),l.\u0275\u0275elementEnd()()()()}if(2&Ye){const D=l.\u0275\u0275nextContext().$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(1),l.\u0275\u0275property("src",""==D.profImgUrl?ae.defaultImgUrl:D.profImgUrl,l.\u0275\u0275sanitizeUrl),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!D.isImage),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",D.isImage&&""!=D.text),l.\u0275\u0275advance(6),l.\u0275\u0275property("src",ae.viewImageUrl,l.\u0275\u0275sanitizeUrl)}}function Qt(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"div"),l.\u0275\u0275template(1,jt,13,4,"div",36),l.\u0275\u0275template(2,mi,13,4,"div",37),l.\u0275\u0275elementEnd()),2&Ye){const D=kt.$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",D.member==ae.chattingMemberId),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",D.member==ae.loggedMemberId)}}function Jt(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"input",55),l.\u0275\u0275listener("change",function(_e){l.\u0275\u0275restoreView(D);const it=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(it.sendNewImage(_e))}),l.\u0275\u0275elementEnd()}}function lt(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"input",56),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(_e.sendImageByApk())}),l.\u0275\u0275elementEnd()}}function _t(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275elementStart(1,"div",3)(2,"mat-accordion")(3,"mat-expansion-panel",4)(4,"mat-expansion-panel-header"),l.\u0275\u0275template(5,Oe,3,0,"button",5),l.\u0275\u0275template(6,nt,3,0,"button",5),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(7,"div",6),l.\u0275\u0275template(8,qe,7,1,"ng-container",1),l.\u0275\u0275template(9,ct,8,2,"ng-template",null,7,l.\u0275\u0275templateRefExtractor),l.\u0275\u0275elementEnd()()()(),l.\u0275\u0275elementStart(11,"mat-card-content",8)(12,"div",9)(13,"div",10),l.\u0275\u0275element(14,"meta",11),l.\u0275\u0275elementStart(15,"div",12,13)(17,"div",14),l.\u0275\u0275template(18,Qt,3,2,"div",15),l.\u0275\u0275elementEnd()()(),l.\u0275\u0275elementStart(19,"div",16)(20,"div",17)(21,"button",18)(22,"label"),l.\u0275\u0275template(23,Jt,1,0,"input",19),l.\u0275\u0275template(24,lt,1,0,"input",20),l.\u0275\u0275elementStart(25,"mat-icon",21),l.\u0275\u0275text(26,"camera_alt"),l.\u0275\u0275elementEnd()()()(),l.\u0275\u0275elementStart(27,"div",22)(28,"textarea",23,24),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(_e.checkPlaceHolder())})("blur",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(_e.checkPlaceHolder())})("ngModelChange",function(_e){l.\u0275\u0275restoreView(D);const it=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(it.message=_e)}),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(30,"div",25)(31,"button",26),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(_e.postMessage(_e.message))}),l.\u0275\u0275elementStart(32,"mat-icon",8),l.\u0275\u0275text(33," send"),l.\u0275\u0275elementEnd()()()()()(),l.\u0275\u0275elementContainerEnd()}if(2&Ye){const D=l.\u0275\u0275reference(10),ae=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275property("ngClass",ae.opened?"expansion-panel-open main-navigation":"expansion-panel-close"),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",!ae.opened),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",ae.opened),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",!ae.openReportBox)("ngIfElse",D),l.\u0275\u0275advance(3),l.\u0275\u0275styleProp("height","75","vh"),l.\u0275\u0275property("ngClass",ae.opened?"card-content-dark":"card-content"),l.\u0275\u0275advance(7),l.\u0275\u0275property("ngForOf",ae.messages),l.\u0275\u0275advance(5),l.\u0275\u0275property("ngIf",!ae.isCordovaApp),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",ae.isCordovaApp),l.\u0275\u0275advance(4),l.\u0275\u0275propertyInterpolate("placeholder",ae.myplaceHolder),l.\u0275\u0275property("ngModel",ae.message),l.\u0275\u0275advance(3),l.\u0275\u0275property("disabled",!ae.message),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",ae.message?"send-icon main-button":"send-icon-disabled main-button")}}function Fe(Ye,kt){1&Ye&&(l.\u0275\u0275elementStart(0,"span"),l.\u0275\u0275text(1,"You have been blocked from communicating with this user"),l.\u0275\u0275elementEnd())}let H=(()=>{class Ye{constructor(D,ae,_e,it,Dt,oi,xi,Ii){this.titleService=D,this.commonService=ae,this.chatService=_e,this.dataService=it,this.alertSnackBar=Dt,this.router=oi,this.cameraService=xi,this.profileService=Ii,this.appId=o.Jf,this.userId=o.xS,this.camera=window.navigator.camera,this.Camera=window.Camera,this.horizontalPosition="center",this.verticalPosition="top",this.isCordovaApp=!1,this.isLoading=!1,this.fileInfo={},this.unMatchName="unmatch",this.chatNotificationsCount=0,this.messages=[],this.members=[],this.chatMemberName="Chat Member",this.opened=!1,this.myplaceHolder="Start typing...",this.mylikesArr=[],this.reportText="",this.isChatMemberBlocked=!1,this.isCurrentUserBlocked=!1,this.openReportBox=!1,this.conversation={appId:"",loggedMemberId:"",conversationId:"",chattingMemberId:"",text:"",userName:""},this.fileInfo={base64type:null,file:null,size:null,errMsg:null},this.isCordovaApp=this.dataService.isCordovaApp(),this.isChatDefPage=!0,localStorage.setItem("isChatDefPage",JSON.stringify(this.isChatDefPage)),this.isChatHome=!1,localStorage.setItem("isChatHome",JSON.stringify(this.isChatHome)),this.isChatProfile=!1,localStorage.setItem("isChatProfile",JSON.stringify(this.isChatProfile)),this.isChatLogin=!1,localStorage.setItem("isChatLogin",JSON.stringify(this.isChatLogin)),this.hasChatProfile=!0,localStorage.setItem("hasChatProfile",JSON.stringify(this.hasChatProfile)),this.titleService.changeTitle(this.chatMemberName),this.titleService.setLocation("/chatTemplate/chat"),this.conversationId=this.commonService.conversationId,this.loggedMemberId=this.commonService.loggedMemberId,this.chattingMemberId=this.commonService.chattingMemberId,this.checkingBlockedUsers(),this.getChatMemberName(this.chattingMemberId),this.imageCountLimit=this.commonService.imageCountLimit,this.sendImageSizeLimit=this.commonService.sendImageSizeLimit}ngOnDestroy(){this.leaveFromRoom()}ngOnInit(){this.imgFolderUrl=this.dataService.getServerURL()+"/templates/viewWebImages?userId="+this.userId+"&appId="+this.appId+"&"+(new Date).getTime()+"&images=",this.defaultImgUrl=`${this.imgFolderUrl}/defaultProfImage.png`,console.log("getAppFileServerUrl called ",this.conversationId),this.chatService.getAppFileServerUrl(this.appId,this.userId).subscribe(D=>{this.APP_FILE_SERVER_URL=D,this.getConversation(this.conversationId)}),this.getNotifications(),this.profileService.getChatUserProfile(this.appId,this.loggedMemberId).subscribe(D=>{D.fields.forEach(ae=>{"first_name"==ae.code&&(this.conversation.userName=ae.fieldValue)})})}ngAfterViewChecked(){this.scrollToBottom()}blockOrUnBlockUser(){this.opened=!1,this.blockUserFromCurrentUser()}reportUser(){this.openReportBox=!0}cancel(){this.openReportBox=!1,this.reportText=""}checkSendActive(){let D="disable";return this.reportText.length>0&&this.reportText.length<=500&&(D="none"),D}sendReport(){this.chatService.reportUser({reportedUser:this.loggedMemberId,reportUser:this.chattingMemberId,report:this.reportText,appId:this.appId}).subscribe(ae=>{console.log("IsSucceeded : ",ae),"success"==ae?(this.showNotification("Your report has been submitted"),this.closeExpansionPanel()):this.showNotification("Submission Failed!. Try again")},ae=>{console.log("Error while blocking or unblocking user ",ae)})}blockUserFromCurrentUser(){this.chatService.blockUser({currentUser:this.loggedMemberId,blockedUser:this.chattingMemberId,isBlocked:!this.isChatMemberBlocked}).subscribe(ae=>{this.checkingBlockedUsers()},ae=>{console.log("Error while blocking or unblocking user ",ae)})}checkingBlockedUsers(){this.chatService.checkingUserBlocks(this.loggedMemberId,this.chattingMemberId).subscribe(D=>{console.log("Values ",D),this.isCurrentUserBlocked=D.isBlocked,this.isChatMemberBlocked=D.userIsBlocked},D=>{console.log("Error while checking blocking or unblocking user ",D)})}scrollToBottom(){try{this.chatMessageViewContainer.nativeElement.scrollTop=this.chatMessageViewContainer.nativeElement.scrollHeight}catch{}}getNotifications(){this.commonService.getNotifications(this.loggedMemberId,this.appId).subscribe(D=>{this.mylikesArr=D.data,this.chatNotificationsCount=this.mylikesArr.length,localStorage.setItem("chatNotificationsCount",JSON.stringify(this.chatNotificationsCount)),this.listenOnNotifications()})}listenOnNotifications(){this.commonService.listenOnNotifications().subscribe(D=>{D.likedBy&&(this.chatNotificationsCount++,localStorage.setItem("chatNotificationsCount",JSON.stringify(this.chatNotificationsCount)))})}openImage(D){this.commonService.chekUserActivation().subscribe(ae=>{if(ae)this.viewImageUrl=D,this.viewedImageName=D.split("thirdNavi/")[1],document.getElementById("myModal").style.display="block",document.getElementById("caption").innerHTML=this.viewedImageName;else{this.showNotification("You are blocked from using this app.");let it="";this.commonService.setLoggedMemberId(it),this.commonService.setLikedByMemberId(it),this.commonService.setConversationId(it),this.commonService.setChattingMemberId(it),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}closeImage(){document.getElementById("myModal").style.display="none"}downloadImage(D){this.closeImage(),this.viewedImageName=D.split("thirdNavi/")[1];let ae={link:D,isCordovaApp:this.isCordovaApp,appName:o.u2,imageName:D.split("thirdNavi/")[1]};this.isCordovaApp?this.chatService.downloadImageAPK(ae).subscribe(_e=>{_e.type===u.dt.Response&&window.resolveLocalFileSystemURL("file:///storage/emulated/0/Download",function(Dt){Dt.getFile(ae.imageName,{create:!0},function(oi){oi.createWriter(function(xi){xi.write(_e.body),xi.onwriteend=function(){oi.toURL(),window.alert("Image has been saved in Download folder!")},xi.onerror=function(Ii){window.alert("Unable to download"),console.error(Ii)}},function(xi){console.log("Unable to download"),console.error(xi)})},function(oi){console.log("Unable to download"),console.error(oi)})},function(Dt){console.log("Unable to download"),console.error(Dt)})}):this.chatService.downloadImage(ae).subscribe(_e=>{b.saveAs(this.returnBlob(_e),this.viewedImageName)})}returnBlob(D){return new Blob([D],{type:"image/*"})}getChatMemberName(D){this.chatService.getChatMemberName(D,this.appId).subscribe(ae=>{ae&&(this.chatMemberName=ae,this.titleService.changeTitle(this.chatMemberName),this.titleService.setLocation("/chatTemplate/chat"))})}getConversation(D){this.chatService.getConversation(D).subscribe(ae=>{if(ae&&ae.data.messages.length){let _e=ae.data.messages;for(let it of _e)it.isImage=-1!=it.text.search(this.APP_FILE_SERVER_URL),this.messages.push(it);this.listenOn()}else this.listenOn()})}leaveFromRoom(){console.log("leaveFromRoom called"),this.chatListen&&this.chatListen.unsubscribe(),this.conversationId&&this.chatService.leaveRoom(this.conversationId)}listenOn(){this.chatListen=this.chatService.listenOn().subscribe(D=>{D&&(D.message.member?this.chatService.getMemberProfImgUrl(D.message.member).subscribe(_e=>{D.message.profImgUrl=_e,D.message.isImage=-1!=D.message.text.search(this.APP_FILE_SERVER_URL),this.messages.push(D.message)}):(D.message.profImgUrl="",D.message.isImage=-1!=D.message.text.search(this.APP_FILE_SERVER_URL),this.messages.push(D.message)))})}postMessage(D){this.conversation.appId=this.appId,this.conversation.loggedMemberId=this.loggedMemberId,this.conversation.conversationId=this.conversationId,this.conversation.chattingMemberId=this.chattingMemberId,this.conversation.text=D,this.chatService.postMessage(this.conversation).subscribe(),this.message=""}sendNewImage(D){let ae=D.target.files;if(ae.length<=this.imageCountLimit){let _e=[];if(ae.length)for(let it of ae)if(it.size<=this.sendImageSizeLimit){let Dt=it;const oi=new FormData;oi.append("sendingImages",Dt,it.name),this.chatService.sendChatImage(oi,this.appId,this.userId).subscribe(xi=>{this.postMessage(xi)})}else _e.push(it.name);if(_e.length){let Dt=(this.sendImageSizeLimit/1e6).toFixed(1);this.showNotification(1==_e.length?`${_e} was not sent!\nPlease upload image file size less than ${Dt}MB.`:`${_e} were not sent!\nPlease upload image files size less than ${Dt}MB of each file.`)}}else this.showNotification(`You can not send more than ${this.imageCountLimit} images!`)}sendImageByApk(){console.log("Runn APK profile Image"),this.commonService.chekUserActivation().subscribe(D=>{D?this.addImageApkContinue():this.showNotification("You are blocked from using this app.")})}addImageApkContinue(){this.cameraService.getPicture({quality:50,destinationType:this.Camera.DestinationType.FILE_URI,sourceType:this.Camera.PictureSourceType.PHOTOLIBRARY,encodingType:this.Camera.EncodingType.JPEG,mediaType:this.Camera.MediaType.PICTURE,correctOrientation:!0}).subscribe(ae=>{if(console.log("recived fileinfo : ",ae),ae.fileSize<=this.sendImageSizeLimit){let _e=ae.displayUrl;_e.fileName=ae.fileName,_e.nativeURL=ae.nativeURL,this.cameraService.uploadImageInApk(_e,this.appId,this.userId).subscribe(it=>{it.length?this.postMessage(this.APP_FILE_SERVER_URL+it):this.showNotification("Server Error! Try again.")},it=>{this.showNotification("Server Error! Try again.")})}else{let Dt=`Please upload image file size less than ${(this.sendImageSizeLimit/1e6).toFixed(1)}MB.`;this.showNotification(Dt)}},ae=>{console.log("Error: ",ae),this.showNotification("Falid to load the image")})}checkPlaceHolder(){return this.myplaceHolder?void(this.myplaceHolder=null):void(this.myplaceHolder="Start typing...")}openExpansionPanel(){this.checkingBlockedUsers(),this.openReportBox=!1,this.commonService.chekUserActivation().subscribe(D=>{if(D)this.opened=!0;else{this.showNotification("You are blocked from using this app.");let _e="";this.commonService.setLoggedMemberId(_e),this.commonService.setLikedByMemberId(_e),this.commonService.setConversationId(_e),this.commonService.setChattingMemberId(_e),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}closeExpansionPanel(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.opened=!1;else{this.showNotification("You are blocked from using this app.");let _e="";this.commonService.setLoggedMemberId(_e),this.commonService.setLikedByMemberId(_e),this.commonService.setConversationId(_e),this.commonService.setChattingMemberId(_e),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}unmatchMember(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.chatService.unmatchChatMember(this.conversationId,this.loggedMemberId,this.chattingMemberId).subscribe(ae=>{"Done"==ae.status?this.router.navigate(["/chatTemplate/conversations"]):"Fail"==ae.status&&this.showNotification("The user can not be unmatched! Please Try Again.")});else{this.showNotification("You are blocked from using this app.");let _e="";this.commonService.setLoggedMemberId(_e),this.commonService.setLikedByMemberId(_e),this.commonService.setConversationId(_e),this.commonService.setChattingMemberId(_e),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}viewBackLocation(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.router.navigate(["/chatTemplate/conversations"]);else{this.showNotification("You are blocked from using this app.");let _e="";this.commonService.setLoggedMemberId(_e),this.commonService.setLikedByMemberId(_e),this.commonService.setConversationId(_e),this.commonService.setChattingMemberId(_e),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}viewHomePage(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.router.navigate(["/chatTemplate/matchme"]);else{this.showNotification("You are blocked from using this app.");let _e="";this.commonService.setLoggedMemberId(_e),this.commonService.setLikedByMemberId(_e),this.commonService.setConversationId(_e),this.commonService.setChattingMemberId(_e),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}viewProfilePage(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.router.navigate(["/chatTemplate/profile"]);else{this.showNotification("You are blocked from using this app.");let _e="";this.commonService.setLoggedMemberId(_e),this.commonService.setLikedByMemberId(_e),this.commonService.setConversationId(_e),this.commonService.setChattingMemberId(_e),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}viewChatPage(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.router.navigate(["/chatTemplate/conversations"]);else{this.showNotification("You are blocked from using this app.");let _e="";this.commonService.setLoggedMemberId(_e),this.commonService.setLikedByMemberId(_e),this.commonService.setConversationId(_e),this.commonService.setChattingMemberId(_e),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}showNotification(D){this.alertSnackBar.open(D,"Close",{duration:3e3,panelClass:["main-background","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition})}static#e=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(j),l.\u0275\u0275directiveInject(S.V),l.\u0275\u0275directiveInject(B.pl),l.\u0275\u0275directiveInject(e.F0),l.\u0275\u0275directiveInject(Z.r),l.\u0275\u0275directiveInject(le))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:Ye,selectors:[["app-chat"]],viewQuery:function(ae,_e){if(1&ae&&l.\u0275\u0275viewQuery(Ze,5),2&ae){let it;l.\u0275\u0275queryRefresh(it=l.\u0275\u0275loadQuery())&&(_e.chatMessageViewContainer=it.first)}},decls:4,vars:2,consts:[[1,"match-me-card","main-background"],[4,"ngIf","ngIfElse"],["blocked",""],[1,"unmatch-div"],["hideToggle","",3,"ngClass"],["class","dots-icon-btn","mat-icon-button","",3,"click",4,"ngIf"],[1,"unmatch-btn-div","main-navigation"],["reportBox",""],[3,"ngClass"],[1,"wraped-class"],[1,"chat-area-div"],["name","viewport","content","width=device-width, initial-scale=1"],["id","chatWindow",1,"container"],["chatMessageViewContainer",""],[1,"scrollBottom"],[4,"ngFor","ngForOf"],["id","chat-message-container",1,"edit-area-div","main-background"],["id","camera_btn"],["mat-icon-button","",1,"camera-icon-btn"],["type","file","accept","image/png, image/jpeg","multiple","",3,"change",4,"ngIf"],["type","button",3,"click",4,"ngIf"],[1,"camera-icon","main-button"],[1,"edit-text-area-div"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","3","value","message","id","message",1,"edit-text-area",3,"placeholder","ngModel","click","blur","ngModelChange"],["autosize","cdkTextareaAutosize"],[1,"send-btn-div"],["mat-icon-button","",1,"send-icon-btn",3,"disabled","click"],["mat-icon-button","",1,"dots-icon-btn",3,"click"],["aria-hidden","false","aria-label","expand dots icon",1,"expand-dots-icon","main-footer-font"],["aria-hidden","false","aria-label","expand dots icon",1,"expand-dots-icon-opened","main-navigation"],["mat-stroked-button","",1,"unmatch-btn","main-navigation",3,"click"],["name","report","id","","cols","30","rows","10",1,"text-ariea-style",3,"ngModel","ngModelChange"],[1,"report-buttons-div"],[1,"btn-div-item"],[1,"main-navigation","report-btn",3,"click"],[1,"main-navigation","report-btn",3,"ngClass","click"],["class","bubble left",4,"ngIf"],["class","bubble right",4,"ngIf"],[1,"bubble","left"],[1,"chat-msg-dp","left",3,"src"],["class","msg-text-p main-content-font main-footer-back",4,"ngIf"],["class","msg-text-img",3,"src","click",4,"ngIf"],["id","myModal",1,"modal"],[1,"close","main-button",3,"click"],["id","caption"],[1,"modal-content-div"],["id","img01",1,"modal-content",3,"src"],[1,"modal-download-btn-div"],[1,"modal-download-btn","main-button",3,"click"],[1,"msg-text-p","main-content-font","main-footer-back"],[1,"msg-text-img",3,"src","click"],[1,"bubble","right"],[1,"chat-msg-dp","right",3,"src"],["class","msg-text-p main-content-font main-navigation",4,"ngIf"],[1,"msg-text-p","main-content-font","main-navigation"],["type","file","accept","image/png, image/jpeg","multiple","",3,"change"],["type","button",3,"click"]],template:function(ae,_e){if(1&ae&&(l.\u0275\u0275elementStart(0,"mat-card",0),l.\u0275\u0275template(1,_t,34,15,"ng-container",1),l.\u0275\u0275template(2,Fe,2,0,"ng-template",null,2,l.\u0275\u0275templateRefExtractor),l.\u0275\u0275elementEnd()),2&ae){const it=l.\u0275\u0275reference(3);l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!_e.isCurrentUserBlocked)("ngIfElse",it)}},dependencies:[n.NgClass,n.NgForOf,n.NgIf,q.Fj,q.JJ,q.On,X.IC,K.k0,U.S$,U.Qi,me.eB,xe.Hw,ne.pp,ne.ib,ne.yz],styles:['.match-me-card[_ngcontent-%COMP%]{text-align:center!important;width:100%;min-height:100vh;height:auto;background-color:transparent;padding:58px 0 0!important;margin:0!important;border:none;box-shadow:none;overflow:hidden}.unmatch-div[_ngcontent-%COMP%]{background-color:transparent;height:6vh;margin:0%;padding:0%}  .mat-expansion-panel{z-index:100}  .mat-expansion-panel-header{height:6vh!important;display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;position:relative}  .mat-content{display:flex;justify-content:flex-end;flex:1;flex-direction:row;overflow:hidden}  .mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;height:auto!important;visibility:inherit!important}  .mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important;box-shadow:none}  .mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:0!important;border-top-left-radius:0!important;box-shadow:none}  .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]), .mat-expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-header.cdk-program-focused[_ngcontent-%COMP%]:not([aria-disabled=true]), .mat-expansion-panel[_ngcontent-%COMP%]:not(.mat-expanded)   .mat-expansion-panel-header[_ngcontent-%COMP%]:hover:not([aria-disabled=true]){background:transparent}  .mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:transparent}.expansion-panel-open[_ngcontent-%COMP%]{background-color:#ec5a6d;box-shadow:#646464}.expansion-panel-close[_ngcontent-%COMP%]{height:6vh!important;background-color:transparent;z-index:0}.dots-icon-btn[_ngcontent-%COMP%]{font-family:Material Icons!important;min-width:10%;text-align:center;background-color:transparent}.expand-dots-icon[_ngcontent-%COMP%], .expand-dots-icon-opened[_ngcontent-%COMP%]{font-family:Material Icons!important}.unmatch-btn-div[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column}.unmatch-btn[_ngcontent-%COMP%]{font-size:large;border:none;margin:auto}.card-content[_ngcontent-%COMP%]{text-align:center!important;top:14vh;height:75vh!important;width:100%;border:none;box-shadow:none;margin:0}.card-content-dark[_ngcontent-%COMP%]{pointer-events:none;opacity:.4;text-align:center!important;top:14vh;height:76vh!important;width:100%;border:none;box-shadow:none;margin:0}.wraped-class[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}.chat-area-div[_ngcontent-%COMP%]{width:100%;height:72vh;display:flex;margin:0;padding-bottom:10%;flex-direction:column-reverse}.edit-area-div-fake[_ngcontent-%COMP%]{width:90%!important;padding:0;vertical-align:middle;height:17vh;display:flex}.edit-area-div[_ngcontent-%COMP%]{position:fixed;bottom:0vh;width:100%;max-width:767px!important;height:-moz-fit-content;height:fit-content;padding:0;vertical-align:middle;display:flex}#camera_btn[_ngcontent-%COMP%]{display:flex;align-self:flex-end;width:10%;text-align:center;margin-right:2%;height:58px}#camera_btn[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{display:none}.camera-icon-btn[_ngcontent-%COMP%]{background-color:transparent;border:none;text-align:right;height:7vh;bottom:0}.camera-icon-btn[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:none}.camera-icon[_ngcontent-%COMP%]{cursor:pointer;font-family:Material Icons!important;color:#ec5a6d!important;margin-top:2vh!important;margin-bottom:2vh!important;display:inline-block;width:100%;background-color:transparent!important;border:none!important;border-width:0px!important}.edit-text-area-div[_ngcontent-%COMP%]{display:flex;margin:0% 2.5%;padding:0%;width:75%;position:relative;height:-moz-fit-content;height:fit-content}.edit-text-area[_ngcontent-%COMP%]{margin-top:1vh!important;margin-bottom:1vh!important;display:inline-block;margin:0%;width:100%!important;border:none;background-color:#f3f3f3;color:#323232;border-radius:17px;padding:1vh 5%;left:0%;position:relative;bottom:0%;min-height:35px!important}textarea[_ngcontent-%COMP%]:focus, input[_ngcontent-%COMP%]:focus{outline:none}.send-btn-div[_ngcontent-%COMP%]{display:flex;align-self:flex-end;width:10%;text-align:left;margin-left:2%}.send-icon-btn[_ngcontent-%COMP%]{background-color:transparent;border:none;text-align:left;height:58px;bottom:3px}.send-icon[_ngcontent-%COMP%]{cursor:pointer;font-family:Material Icons!important;color:#ec5a6d!important;margin-top:2vh!important;margin-bottom:2vh!important;display:inline-block;width:100%;background-color:transparent!important;border:none!important;border-width:0px!important}.send-icon-disabled[_ngcontent-%COMP%]{opacity:.5;font-family:Material Icons!important;color:#ec5a6d!important;margin-top:2vh!important;margin-bottom:2vh!important;display:inline-block;width:100%;background-color:transparent!important;border:none!important;border-width:0px!important;pointer-events:none}  .footer-mat-icon{font-family:Material Icons!important;height:30px!important;width:30px!important;font-size:30px!important;vertical-align:middle;color:#ec5a6d;padding:0%;margin:0%}.span[_ngcontent-%COMP%]{margin:auto}.left[_ngcontent-%COMP%]{float:left;padding:10px 10px 5px}.right[_ngcontent-%COMP%]{float:right;padding:10px 10px 5px}.chat-msg-dp[_ngcontent-%COMP%]{min-width:44px;min-height:44px;max-width:44px;max-height:44px;border-radius:22px;margin:8px 10px!important;padding:0!important}.msg-text-p[_ngcontent-%COMP%]{display:inline}.msg-text-img[_ngcontent-%COMP%]{border:#EC5A6D solid 2.5px;border-radius:15px;min-width:220px;min-height:220px;max-width:220px;max-height:220px;display:inline;position:relative;cursor:pointer;transition:.3s}.msg-text-img[_ngcontent-%COMP%]:hover{opacity:.7}.modal[_ngcontent-%COMP%]{display:none;position:absolute;z-index:1000;width:100%;height:90vh;inset:0;overflow:auto;background-color:#000;background-color:#000000e6}.close[_ngcontent-%COMP%]{display:flex;position:absolute;top:2.5vh;right:35px;color:#fff;background-color:transparent;font-size:30px;font-weight:500!important;transition:.3s;width:30px;height:30px;border-radius:50%;border-width:3.5px!important;border-color:#fff;opacity:1;justify-content:center;align-items:center;text-shadow:0 .5px 0 #fff!important}.close[_ngcontent-%COMP%]:hover, .close[_ngcontent-%COMP%]:focus{opacity:.7;text-decoration:none;cursor:pointer}.modal-content-div[_ngcontent-%COMP%]{position:absolute;top:15vh;margin:auto;display:flex;justify-content:center;max-width:100%;min-width:100%;max-height:70vh}.modal-content[_ngcontent-%COMP%]{display:flex;align-self:center;max-width:100%;max-height:70vh}#caption[_ngcontent-%COMP%]{position:absolute;top:7.5vh;left:10%;right:10%;margin:auto;display:block;width:80%;text-align:center;color:#ccc;padding:10px 0;height:5vh}.modal-download-btn-div[_ngcontent-%COMP%]{right:38%;left:38%;width:26%;top:79vh;position:absolute;background-color:transparent;transition:.3s}.modal-download-btn[_ngcontent-%COMP%]{width:100%;height:7vh;position:absolute;background-color:#bbb;color:#575757;font-size:14px;font-weight:700;transition:.3s;border-radius:10px}.modal-download-btn[_ngcontent-%COMP%]:hover, .modal-download-btn[_ngcontent-%COMP%]:focus{background-color:#fff;color:#000;text-decoration:none;cursor:pointer}.modal-content[_ngcontent-%COMP%], #caption[_ngcontent-%COMP%], .modal-download-btn-div[_ngcontent-%COMP%]{-webkit-animation-name:_ngcontent-%COMP%_zoom;-webkit-animation-duration:.6s;animation-name:_ngcontent-%COMP%_zoom;animation-duration:.6s}@keyframes _ngcontent-%COMP%_zoom{0%{transform:scale(0)}to{transform:scale(1)}}@media only screen and (max-width: 100%){.modal-content[_ngcontent-%COMP%]{width:100%}}*[_ngcontent-%COMP%]{box-sizing:border-box;margin:0;padding:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{height:100%;overflow:hidden}.container[_ngcontent-%COMP%]{height:auto;flex:1 1 90%;overflow-y:scroll;display:flex;flex-direction:column-reverse}.bubble[_ngcontent-%COMP%]{max-width:90vw;flex:1 1 auto;clear:both;text-align:left}.bubble[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{border:solid 2px #EC5A6D;border-radius:10px;padding:8px;margin:8px 12px;word-break:break-word;max-width:70%;position:relative;transition:background-color .5s}.left[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{background-color:#ccc;float:left}.right[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{background-color:#ec5a6d;color:#fff;float:right}.left[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:before{content:"";position:absolute;width:0;height:0;left:-9px;top:8px;border-top:4px solid transparent;border-right:8px solid #EC5A6D;border-bottom:4px solid transparent}.right[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:after{content:"";position:absolute;width:0;height:0;right:-9px;top:8px;border-top:4px solid transparent;border-left:8px solid #EC5A6D;border-bottom:4px solid transparent}[_ngcontent-%COMP%]::-webkit-scrollbar{width:0px;background:transparent}[_ngcontent-%COMP%]::-webkit-scrollbar-track{box-shadow:inset 10px 10px #fdfdfd;border-radius:10px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:rgb(250,249,249);border-radius:10px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#fcf9f9}[_ngcontent-%COMP%]::-webkit-scrollbar-corner{padding:99% 0 0;margin-bottom:99% 0 0 0;box-shadow:inset 100px 10px gray;border-radius:10px}.scrollBottom[_ngcontent-%COMP%]{display:flex;flex-direction:column}.bubble[_ngcontent-%COMP%]   left[_ngcontent-%COMP%]{padding:0;margin:0}  .mat-form-field-appearance-legacy .mat-form-field-infix{padding-top:0!important;padding-bottom:2em!important}.dialog-header[_ngcontent-%COMP%]{text-align:center;font-size:medium}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{margin:0;padding:0}.image-list-wrap-div[_ngcontent-%COMP%]{max-width:-moz-fit-content;max-width:fit-content;min-width:430px;height:460px;overflow-y:auto;overflow-x:hidden;transform:rotate(-90deg) translateY(-480px);transform-origin:right top}.selected-image-div[_ngcontent-%COMP%]{width:430px;height:460px;padding:0%;margin:0 0 20px;display:inline-block;vertical-align:middle;transform:rotate(90deg);transform-origin:right top}.image-action-div[_ngcontent-%COMP%]{width:430px;height:22px;margin:4px 0}.image-name-sapn[_ngcontent-%COMP%]{width:80%;height:22px;padding:0%;margin:0%;text-align:left!important;display:inline-block}.remove-img-icon-btn[_ngcontent-%COMP%]{width:20%;height:22px;padding:0%;margin:0%;text-align:center!important;display:inline-block}.remove-image-icon[_ngcontent-%COMP%]{font-family:Material Icons!important;width:auto;height:auto}.user-prof-img-div[_ngcontent-%COMP%]{max-width:430px;min-width:430px;height:430px;display:block;border-radius:8px}.user-prof-img[_ngcontent-%COMP%]{border-radius:8px;max-width:430px;max-height:430px;min-width:430px;min-height:430px}.yes-button[_ngcontent-%COMP%]{font-size:large;font-weight:500;letter-spacing:1.5px;background-color:transparent;border:solid 2px;border-radius:7px;float:left;width:45%;height:45px;text-align:center}.no-button[_ngcontent-%COMP%]{font-size:large;font-weight:500;letter-spacing:1.5px;background-color:transparent;border:solid 2px;border-radius:7px;float:right;width:45%;height:45px;text-align:center}.report-buttons-div[_ngcontent-%COMP%]{display:flex;width:100%;margin:6px 0}.btn-div-item[_ngcontent-%COMP%]{flex:1}.report-btn[_ngcontent-%COMP%]{width:90%;height:40px;border-radius:20px}.text-ariea-style[_ngcontent-%COMP%]{color:#000;height:15vh;border-radius:11px;padding:10px}.disable[_ngcontent-%COMP%]{pointer-events:none;color:#aaa;background:#F5F5F5}']})}return Ye})();var W=a(3472);let He=(()=>{class Ye{constructor(D){this.http=D,this.chatUrl=o.Qb,this.httpOptions={headers:new u.WM({"Content-Type":"application/json"})}}getConversationMembers(D,ae,_e){let it=`${this.chatUrl}/api/getConversationMembers`,Dt=new u.LE;return Dt=Dt.set("loggedMemberId",D),Dt=Dt.set("appId",ae),Dt=Dt.set("cmsUserId",_e),this.http.get(it,{params:Dt}).pipe((0,w.K)(this.handleError(`Can not get Conversaitions related to member id : ${D}`)))}getConversationInfo(D,ae,_e){let it=`${this.chatUrl}/api/getConversationInfo`,Dt=new u.LE;return Dt=Dt.set("appId",D),Dt=Dt.set("loggedMemberId",ae),Dt=Dt.set("chatMemberId",_e),this.http.get(it,{params:Dt}).pipe((0,w.K)(this.handleError(`Can not get Required conversaition related to member id : ${ae} and chat member id : ${_e}`)))}handleError(D="operation",ae){return _e=>(console.error(_e),(0,x.of)(ae))}static#e=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275inject(u.eN))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac,providedIn:"root"})}return Ye})();var Te=a(2684);let Be=(()=>{class Ye{constructor(D){this.http=D,this.appId=o.Jf,this.chatUrl=o.Qb,this.msisdn="",this.deviceUUID="",this.httpOptions={headers:new u.WM({"Content-Type":"application/json"})}}checkUserStatus(D,ae){const _e=`${this.chatUrl}/api/checkUserStatus/${this.appId}`;let it=new u.LE;return it=it.set("email",D),it=it.set("password",ae),this.http.get(_e,{params:it}).pipe((0,w.K)(this.handleError("Error getCrmUser! ")))}getmember(){return this.http.get(`${this.chatUrl}/api/member`).pipe((0,w.K)(this.handleError("Error getCrmUser! ")))}addProfileImage(D,ae,_e,it){return this.http.post(`${this.chatUrl}/api/addProfileImage/${ae}/${_e}/${it}`,D)}updateChatMember(D,ae,_e,it){for(let Ii of D)delete Ii.createdAt,delete Ii.fieldOptions,delete Ii.fieldType,delete Ii.isInterestedIn,delete Ii.name,delete Ii.order,delete Ii.updatedAt,delete Ii.isDefault;for(let Ii of ae)delete Ii.createdAt,delete Ii.fieldOptions,delete Ii.fieldType,delete Ii.isInterestedIn,delete Ii.name,delete Ii.order,delete Ii.updatedAt,delete Ii.isDefault;return this.http.put(`${this.chatUrl}/api/updateChatMember`,{appId:_e,memberId:it,memberInfo:{profArr:D,interestedFields:ae}},this.httpOptions).pipe((0,w.K)(this.handleError("updateChatMember")))}addMember(D,ae,_e,it){for(let xi of D)delete xi.createdAt,delete xi.fieldOptions,delete xi.fieldType,delete xi.isInterestedIn,delete xi.name,delete xi.order,delete xi.updatedAt,delete xi.isDefault;for(let xi of ae)delete xi.createdAt,delete xi.fieldOptions,delete xi.fieldType,delete xi.isInterestedIn,delete xi.name,delete xi.order,delete xi.updatedAt,delete xi.isDefault;return D.push({msisdn:this.msisdn,deviceUUID:this.deviceUUID,isAcceptedTnC:it}),this.http.post(`${this.chatUrl}/api/addMember/${_e}`,{profArr:D,interestedFields:ae},this.httpOptions).pipe((0,w.K)(this.handleError("addMember")))}updateMemberIfNotExists(){const ae=localStorage.getItem(`chatLogin-${this.appId}`);if(ae)try{const _e=JSON.parse(ae);if(_e.loggedUser&&_e.isLoggedIn){const it=localStorage.getItem(this.appId+"msisdn");this.updateMember(_e.loggedUser,it,localStorage.UUID).subscribe()}}catch{}}updateMember(D,ae,_e){return this.http.post(`${this.chatUrl}/api/updateMember/${D}`,{msisdn:ae,deviceUUID:_e},this.httpOptions).pipe((0,w.K)(this.handleError("updateMember")))}acceptRequest(D,ae,_e){let it={appId:D,loggedMemberId:_e,likedBy:ae};return this.http.put(`${this.chatUrl}/api/acceptRequest`,it,this.httpOptions).pipe((0,w.K)(this.handleError(`Error Updating member : ${it}`)))}rejectRequest(D,ae,_e){return this.http.delete(`${this.chatUrl}/api/rejectRequest/${D}/${ae}/${_e}`,this.httpOptions).pipe((0,w.K)(this.handleError(`Error Rejecting Request : ${D}`)))}getMyMatches(D,ae,_e,it,Dt){let oi=new u.LE;return oi=oi.set("appId",D),oi=oi.set("memberId",ae),oi=oi.set("cmsUserId",_e),oi=oi.set("skip",it),Dt&&(oi=oi.set("version",Dt)),this.http.get(`${this.chatUrl}/api/getMyMatches`,{params:oi}).pipe((0,w.K)(this.handleError("Error get My Matches! ")))}getLikedMemberInfo(D,ae,_e){let it=new u.LE;return it=it.set("appId",D),it=it.set("likedByMemberId",ae),it=it.set("cmsUserId",_e),this.http.get(`${this.chatUrl}/api/getLikedMemberInfo`,{params:it}).pipe((0,w.K)(this.handleError("Error get Member Info! ")))}handleError(D="operation",ae){return _e=>(console.error(_e),(0,x.of)(ae))}static#e=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275inject(u.eN))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac,providedIn:"root"})}return Ye})();var mt=a(9982),Pe=a(3189);function Qe(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-action-list",6)(1,"button",7),l.\u0275\u0275listener("click",function(){const it=l.\u0275\u0275restoreView(D).$implicit,Dt=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(Dt.acceptLikedMember(it))}),l.\u0275\u0275elementStart(2,"div",8),l.\u0275\u0275element(3,"img",9),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(4,"div",10)(5,"span",11),l.\u0275\u0275text(6),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(7,"span",11),l.\u0275\u0275text(8),l.\u0275\u0275pipe(9,"date"),l.\u0275\u0275elementEnd()()()()}if(2&Ye){const D=kt.$implicit,ae=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275property("src",""==D.profImgUrl?ae.defaultImgUrl:D.profImgUrl,l.\u0275\u0275sanitizeUrl),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngClass","PENDING"==D.status||D.unseen?"name-content-bold main-content-font":"name-content-normal main-content-font"),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(D.fullName),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass","PENDING"==D.status||D.unseen?"date-content-bold main-content-font":"date-content-normal main-content-font"),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind3(9,5,D.requiredDate,"MMM d","Z"))}}let ut=(()=>{class Ye{constructor(D,ae,_e,it,Dt,oi,xi,Ii,si,fn,Gn){this.titleService=D,this.commonService=ae,this.router=_e,this.dataService=it,this.conversationService=Dt,this.alertSnackBar=oi,this.location=xi,this.chatService=Ii,this.subscriptionService=si,this.messageService=fn,this.appuserdataService=Gn,this.showFiller=!1,this.appId=o.Jf,this.userId=o.xS,this.horizontalPosition="center",this.verticalPosition="top",this.chatConnections=[],this.chatNotificationsCount=0,this.mylikesArr=[],this.isChatDefPage=!0,localStorage.setItem("isChatDefPage",JSON.stringify(this.isChatDefPage)),this.isChatHome=!1,localStorage.setItem("isChatHome",JSON.stringify(this.isChatHome)),this.isChatProfile=!1,localStorage.setItem("isChatProfile",JSON.stringify(this.isChatProfile)),this.isChatLogin=!1,localStorage.setItem("isChatLogin",JSON.stringify(this.isChatLogin)),this.hasChatProfile=!0,localStorage.setItem("hasChatProfile",JSON.stringify(this.hasChatProfile)),this.titleService.changeTitle("Chats"),this.titleService.setLocation("/chatTemplate/conversations"),this.loggedMemberId=this.commonService.loggedMemberId}ngOnInit(){this.imgFolderUrl=this.dataService.getServerURL()+"/templates/viewWebImages?userId="+this.userId+"&appId="+this.appId+"&"+(new Date).getTime()+"&images=",this.defaultImgUrl=`${this.imgFolderUrl}/defaultProfImage.png`,this.getConversationMembers(this.loggedMemberId,this.appId,this.userId),this.getNotifications()}getNotifications(){this.commonService.getNotifications(this.loggedMemberId,this.appId).subscribe(D=>{D&&D.data&&(this.mylikesArr=D.data),this.chatNotificationsCount=this.mylikesArr.length,localStorage.setItem("chatNotificationsCount",JSON.stringify(this.chatNotificationsCount)),this.listenOnNotifications()})}listenOnNotifications(){this.commonService.listenOnNotifications().subscribe(D=>{D.likedBy&&(this.chatNotificationsCount++,localStorage.setItem("chatNotificationsCount",JSON.stringify(this.chatNotificationsCount)))})}getConversationMembers(D,ae,_e){this.conversationService.getConversationMembers(D,ae,_e).subscribe(it=>{it.length&&(this.chatConnections=it,this.commonService.unseenChatMemberIds&&this.chatConnections.forEach((Dt,oi)=>{this.commonService.unseenChatMemberIds[Dt.chatMemberId]&&(this.chatConnections[oi].unseen=!0)}))})}acceptLikedMember(D){this.commonService.chekUserActivation().subscribe(ae=>{if(ae){let _e=D.likedByMember;"PENDING"==D.status&&(D.likedToMember==this.loggedMemberId&&(_e=D.likedByMember,this.commonService.setLikedByMemberId(_e),this.router.navigate(["/chatTemplate/users"])),D.likedByMember==this.loggedMemberId&&(_e="",this.commonService.setLikedByMemberId(_e))),"ACCEPT"==D.status&&(D.likedToMember==this.loggedMemberId&&(this.chattingMemberId=D.likedByMember,this.commonService.setChattingMemberId(this.chattingMemberId)),D.likedByMember==this.loggedMemberId&&(this.chattingMemberId=D.likedToMember,this.commonService.setChattingMemberId(this.chattingMemberId)),this.conversationService.getConversationInfo(this.appId,this.loggedMemberId,this.chattingMemberId).subscribe(it=>{this.commonService.setChattingMemberId(this.chattingMemberId),"Faild"==it?this.alertSnackBar.open("Something went wrong!","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition}):this.sub(it)}))}else{this.alertSnackBar.open("You are blocked from using this app.","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});let Dt="";this.commonService.setLoggedMemberId(Dt),this.commonService.setLikedByMemberId(Dt),this.commonService.setConversationId(Dt),this.commonService.setChattingMemberId(Dt),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}sub(D){const ae=this.subscriptionService.getSubscriptionMessage().subscribe(it=>{if(it.message.status===W.Yg.SUB_RESPONSE&&"ERROR"!=it.message.data.status){ae.unsubscribe();const oi=it.message.data.data;!oi.isError&&"SUBSCRIBED"==oi.subscriptionStatus&&(this.appuserdataService.updateMemberIfNotExists(),this.messageService.sendMessage({subscription:oi}),this.conversationId=D,this.commonService.setConversationId(this.conversationId),this.router.navigate(["/chatTemplate/chat"]))}}),_e=new W.Mw;_e.status=W.Yg.SUB_REQUEST,this.subscriptionService.sendSubscriptionMessage({message:_e})}viewBackLocation(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.location.back();else{this.alertSnackBar.open("You are blocked from using this app.","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});let it="";this.commonService.setLoggedMemberId(it),this.commonService.setLikedByMemberId(it),this.commonService.setConversationId(it),this.commonService.setChattingMemberId(it),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}viewHomePage(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.router.navigate(["/chatTemplate/matchme"]);else{this.alertSnackBar.open("You are blocked from using this app.","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});let it="";this.commonService.setLoggedMemberId(it),this.commonService.setLikedByMemberId(it),this.commonService.setConversationId(it),this.commonService.setChattingMemberId(it),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}viewProfilePage(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.router.navigate(["/chatTemplate/profile"]);else{this.alertSnackBar.open("You are blocked from using this app.","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});let it="";this.commonService.setLoggedMemberId(it),this.commonService.setLikedByMemberId(it),this.commonService.setConversationId(it),this.commonService.setChattingMemberId(it),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}viewChatPage(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.router.navigate(["/chatTemplate/conversations"]);else{this.alertSnackBar.open("You are blocked from using this app.","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});let it="";this.commonService.setLoggedMemberId(it),this.commonService.setLikedByMemberId(it),this.commonService.setConversationId(it),this.commonService.setChattingMemberId(it),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}static#e=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(e.F0),l.\u0275\u0275directiveInject(S.V),l.\u0275\u0275directiveInject(He),l.\u0275\u0275directiveInject(B.pl),l.\u0275\u0275directiveInject(n.Location),l.\u0275\u0275directiveInject(j),l.\u0275\u0275directiveInject(W.FF),l.\u0275\u0275directiveInject(Te.e),l.\u0275\u0275directiveInject(Be))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:Ye,selectors:[["app-conversations"]],decls:7,vars:9,consts:[[1,"match-me-card","main-background"],[1,"card-content"],[1,"conversation-list-div"],["class","connection-list",4,"ngFor","ngForOf"],[1,"search-bar-div"],["type","search","name","search","autocomplete","off","placeholder","\uf002   Search",1,"search-bar","main-content-font",3,"ngModel","ngModelChange"],[1,"connection-list"],["mat-list-item","",1,"conversation-member-button",3,"click"],[1,"member-prof-img-div"],[1,"member-prof-img",3,"src"],[1,"date-name-container"],[3,"ngClass"]],template:function(ae,_e){1&ae&&(l.\u0275\u0275elementStart(0,"mat-card",0)(1,"mat-card-content",1)(2,"div",2),l.\u0275\u0275template(3,Qe,10,9,"mat-action-list",3),l.\u0275\u0275pipe(4,"filter"),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(5,"div",4)(6,"input",5),l.\u0275\u0275listener("ngModelChange",function(Dt){return _e.searchConnection=Dt}),l.\u0275\u0275elementEnd()()()),2&ae&&(l.\u0275\u0275advance(1),l.\u0275\u0275styleProp("overflow","auto")("height","71","vh"),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",l.\u0275\u0275pipeBind2(4,6,_e.chatConnections,_e.searchConnection)),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngModel",_e.searchConnection))},dependencies:[n.NgClass,n.NgForOf,q.Fj,q.JJ,q.On,U.S$,U.Qi,mt.Zj,mt.oh,n.DatePipe,Pe.Z],styles:[".mat-card-header-text{margin:0!important;display:none!important}.match-me-card[_ngcontent-%COMP%]{text-align:center!important;width:100%;min-height:100vh;height:auto;background-color:transparent;padding:58px 0 0!important;margin:0!important;border:none;box-shadow:none}.card-content[_ngcontent-%COMP%]{display:flex;justify-content:center;text-align:center!important;top:8vh;min-height:71vh;height:auto;width:100%;border:none;box-shadow:none;margin:0}[_ngcontent-%COMP%]::-webkit-scrollbar{width:0px;background:transparent}.conversation-list-div[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:71vh}.header-back-icon[_ngcontent-%COMP%]{font-family:Material Icons!important;text-align:center}.conversation-list-div[_ngcontent-%COMP%]{padding-top:19px;width:90%}.connection-list[_ngcontent-%COMP%]{height:12vh;padding:2vh;background-color:transparent;border:none}  .mat-list-base .mat-list-item, .mat-list-base[_ngcontent-%COMP%]   .mat-list-option[_ngcontent-%COMP%]{display:block;height:12vh!important;-webkit-tap-highlight-color:transparent;width:100%!important;padding:0;position:relative!important}.conversation-member-button[_ngcontent-%COMP%]{height:100%;width:90%;display:block}.member-prof-img-div[_ngcontent-%COMP%]{max-width:10vh;min-width:10vh;height:10vh;display:inline-block;border-radius:50%}.member-prof-img[_ngcontent-%COMP%]{border-radius:50%;max-width:100%;max-height:100%;min-width:100%;min-height:100%}.date-name-container[_ngcontent-%COMP%]{display:inline-block}.date-content-bold[_ngcontent-%COMP%]{font-weight:600;font-size:small;display:block;height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;margin:0 10px 0 20px;letter-spacing:1.2px;word-spacing:2px}.date-content-normal[_ngcontent-%COMP%]{font-weight:400;font-size:small;display:block;height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;margin:0 10px 0 20px;letter-spacing:1.2px;word-spacing:2px}.name-content-bold[_ngcontent-%COMP%]{font-weight:600;font-size:medium;display:block;height:-moz-fit-content;height:fit-content;width:100%;margin:0 10px 0 20px;letter-spacing:1.3px;word-spacing:2px}.name-content-normal[_ngcontent-%COMP%]{font-weight:400;font-size:medium;display:block;height:-moz-fit-content;height:fit-content;width:100%;margin:0 10px 0 20px;letter-spacing:1.3px;word-spacing:2px}.search-bar-div[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%!important;height:5vh;vertical-align:middle;margin:3vh 0}.search-bar[_ngcontent-%COMP%]{padding-left:20px!important;width:80%!important;height:5vh;font-family:fontawesome;font-style:normal;font-weight:400;text-decoration:inherit;font-size:medium;padding:0%;margin:0%;border:none;border-radius:7px;background-color:#e0e0e0;vertical-align:middle}input.search-bar[_ngcontent-%COMP%]:focus{outline-width:0}  .footer-mat-icon{font-family:Material Icons!important;height:30px!important;width:30px!important;font-size:30px!important;vertical-align:middle;color:#ec5a6d;padding:0%;margin:0%}"]})}return Ye})();var te=a(74),k=a(6289),R=a(4363);function be(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"mat-option",9),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ye){const D=kt.$implicit;l.\u0275\u0275property("value",D.code),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(D.text)}}const et=function(){return{standalone:!0}};function Ue(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-select",7),l.\u0275\u0275listener("ngModelChange",function(_e){l.\u0275\u0275restoreView(D);const it=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(it.field.fieldValue=_e)}),l.\u0275\u0275template(1,be,2,2,"mat-option",8),l.\u0275\u0275elementEnd()}if(2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275property("value",D.field.code)("ngModel",D.field.fieldValue)("ngModelOptions",l.\u0275\u0275pureFunction0(4,et)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",D.field.fieldOptions)}}function ge(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"mat-option",9),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ye){const D=kt.$implicit;l.\u0275\u0275property("value",D.code),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(D.text)}}function ke(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-select",10),l.\u0275\u0275listener("ngModelChange",function(_e){l.\u0275\u0275restoreView(D);const it=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(it.field.fieldValue=_e)}),l.\u0275\u0275template(1,ge,2,2,"mat-option",8),l.\u0275\u0275elementEnd()}if(2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275property("value",D.field.code)("ngModel",D.field.fieldValue)("formControlName",D.formCtrlName),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",D.field.fieldOptions)}}function gt(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"div",11)(1,"span",12)(2,"i"),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()()()),2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1("*",D.errorMsg,"")}}let Pt=(()=>{class Ye{constructor(){}ngOnInit(){if(this.fieldElemId=this.field.code,this.fieldElemName=this.field.name,this.errorMsg=`${this.fieldElemName} can not be empty.`,this.isInterested&&"age"==this.fieldElemId){let Dt="intrested_"+this.field.code.toLowerCase().trim().replace(" ","_");this.formCtrlName=Dt}else{let it=this.field.code.toLowerCase().trim().replace(" ","_");this.formCtrlName=it}}static#e=this.\u0275fac=function(ae){return new(ae||Ye)};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:Ye,selectors:[["app-select"]],inputs:{parentForm:"parentForm",field:"field",isInterested:"isInterested"},decls:8,vars:5,consts:[[1,"reuse-select-div",3,"formGroup"],[1,"td-lable"],[1,"field-lable","main-content-font"],[1,"td-input"],["class","reuse-select-input main-navigation","placeholder","Select",3,"value","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],["class","reuse-select-input main-navigation","placeholder","Select",3,"value","ngModel","formControlName","ngModelChange",4,"ngIf"],["class","error-msg-div",4,"ngIf"],["placeholder","Select",1,"reuse-select-input","main-navigation",3,"value","ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["placeholder","Select",1,"reuse-select-input","main-navigation",3,"value","ngModel","formControlName","ngModelChange"],[1,"error-msg-div"],[1,"error-span"]],template:function(ae,_e){1&ae&&(l.\u0275\u0275elementStart(0,"div",0)(1,"td",1)(2,"label",2),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(4,"td",3),l.\u0275\u0275template(5,Ue,2,5,"mat-select",4),l.\u0275\u0275template(6,ke,2,4,"mat-select",5),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(7,gt,4,1,"div",6),l.\u0275\u0275elementEnd()),2&ae&&(l.\u0275\u0275property("formGroup",_e.parentForm),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(_e.field.name),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",_e.isInterested&&"age"!=_e.fieldElemId),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!(_e.isInterested&&"age"!=_e.fieldElemId)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!_e.parentForm.get(_e.formCtrlName).valid&&(_e.parentForm.get(_e.formCtrlName).touched||_e.parentForm.get(_e.formCtrlName).dirty)))},dependencies:[n.NgForOf,n.NgIf,q.JJ,q.JL,q.On,k.x8,R.CK,q.sg,q.u],styles:[".reuse-select-div[_ngcontent-%COMP%]{display:inline;text-align:center!important;margin:0 0 10px}.td-lable[_ngcontent-%COMP%]{width:50%;align-items:right;vertical-align:middle!important}.field-lable[_ngcontent-%COMP%]{padding:0;text-align:center!important;font-size:small;font-weight:550}.td-input[_ngcontent-%COMP%]{width:50%;align-items:left;vertical-align:middle!important}.reuse-select-input[_ngcontent-%COMP%]{text-align:center;align-items:center;border:#e9454dee solid 2px;border-radius:7px;font-size:14px}  .mat-select-arrow-wrapper{padding:5px 0 0!important}  .mat-select-trigger{display:inline-table;position:relative;box-sizing:border-box;vertical-align:-webkit-baseline-middle}  .mat-select-value{font-weight:500}  .mat-select{height:30px!important;width:147px!important}  .mat-form-field-underline{display:none}  .mat-select-arrow{width:1px!important;height:4px!important}  .mat-select-placeholder{font-weight:500!important;font-size:14px!important}.select-name[_ngcontent-%COMP%]{-webkit-text-size-adjust:100px!important;-moz-text-size-adjust:100px!important;text-size-adjust:100px!important}.error-msg-div[_ngcontent-%COMP%]{text-align:center!important;padding:3px 0 10px;margin:0 0 5px;background-color:transparent}.error-span[_ngcontent-%COMP%]{background-color:transparent;text-align:center!important;font-weight:400;color:red;font-size:smaller}  .mat-select-panel-wrap{flex-basis:100%;box-shadow:0 8px 16px #0003;background:white}  .mat-checkbox-checked .mat-checkbox-frame{background-color:#000!important}"]})}return Ye})();const Bt=function(){return{standalone:!0}};function st(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"input",8),l.\u0275\u0275listener("ngModelChange",function(_e){l.\u0275\u0275restoreView(D);const it=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(it.field.fieldValue=_e)}),l.\u0275\u0275elementEnd()}if(2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275propertyInterpolate("id",D.fieldElemId),l.\u0275\u0275propertyInterpolate("name",D.fieldElemName),l.\u0275\u0275propertyInterpolate("type",D.inputElemType),l.\u0275\u0275property("ngModel",D.field.fieldValue)("ngModelOptions",l.\u0275\u0275pureFunction0(5,Bt))}}function Nt(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"input",9),l.\u0275\u0275listener("ngModelChange",function(_e){l.\u0275\u0275restoreView(D);const it=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(it.field.fieldValue=_e)}),l.\u0275\u0275elementEnd()}if(2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275propertyInterpolate("id",D.fieldElemId),l.\u0275\u0275propertyInterpolate("name",D.fieldElemName),l.\u0275\u0275propertyInterpolate("type",D.inputElemType),l.\u0275\u0275property("ngModel",D.field.fieldValue)("formControlName",D.formCtrlName)}}function at(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-icon",11),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(_e.eyeClicked())}),l.\u0275\u0275text(1,"visibility"),l.\u0275\u0275elementEnd()}}function Lt(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-icon",11),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(_e.eyeClicked())}),l.\u0275\u0275text(1,"visibility_off"),l.\u0275\u0275elementEnd()}}function Rt(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"td"),l.\u0275\u0275template(1,at,2,0,"mat-icon",10),l.\u0275\u0275template(2,Lt,2,0,"mat-icon",10),l.\u0275\u0275elementEnd()),2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",D.openEye),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!D.openEye)}}function ai(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"div",12)(1,"span",13)(2,"i"),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()()()),2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1("*",D.errorMsg,"")}}function Xt(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"div",12)(1,"span",13)(2,"i"),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()()()),2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1("*",D.patternErrorMsg,"")}}function ui(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"div",12)(1,"span",13)(2,"i"),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()()()),2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1("*",D.requiredMsg,"")}}let vt=(()=>{class Ye{constructor(){this.openEye=!1,this.patternErrorMsg="",this.inputElemType="text"}ngOnInit(){if(this.fieldElemId=this.field.code,this.fieldElemName=this.field.name,this.isInterested&&"age"==this.fieldElemId){let Dt="intrested_"+this.field.code.toLowerCase().trim().replace(" ","_");this.formCtrlName=Dt}else{let it=this.field.code.toLowerCase().trim().replace(" ","_");this.formCtrlName=it}this.requiredMsg=`The ${this.fieldElemName} field can not be empty`,"name"==this.field.code||"first_name"==this.field.code||"last_name"==this.field.code?(this.errorMsg="The maximum number of characters you can enter is 50",this.patternErrorMsg="You cannot add non-text characters"):"email"==this.field.code?(this.inputElemType="email",this.patternErrorMsg="Enter a proper email."):"age"==this.field.code?(this.inputElemType="number",this.errorMsg="Age is invalid. Use only two digits."):"password"==this.field.code&&(this.inputElemType="password")}eyeClicked(){this.openEye=!this.openEye,this.inputElemType=this.openEye?"text":"password"}static#e=this.\u0275fac=function(ae){return new(ae||Ye)};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:Ye,selectors:[["app-text"]],inputs:{parentForm:"parentForm",field:"field",isInterested:"isInterested"},decls:11,vars:8,consts:[[1,"reuse-text-div",3,"formGroup"],[1,"td-lable"],[1,"field-lable","main-content-font"],[1,"td-input"],["class","reuse-text-input main-content-font","matInput","","value","field","placeholder","Type",3,"id","name","type","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],["class","reuse-text-input main-content-font","matInput","","value","field","placeholder","Type",3,"id","name","type","ngModel","formControlName","ngModelChange",4,"ngIf"],[4,"ngIf"],["class","error-msg-div",4,"ngIf"],["matInput","","value","field","placeholder","Type",1,"reuse-text-input","main-content-font",3,"id","name","type","ngModel","ngModelOptions","ngModelChange"],["matInput","","value","field","placeholder","Type",1,"reuse-text-input","main-content-font",3,"id","name","type","ngModel","formControlName","ngModelChange"],["class","eye-icon",3,"click",4,"ngIf"],[1,"eye-icon",3,"click"],[1,"error-msg-div"],[1,"error-span"]],template:function(ae,_e){1&ae&&(l.\u0275\u0275elementStart(0,"div",0)(1,"td",1)(2,"label",2),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(4,"td",3),l.\u0275\u0275template(5,st,1,6,"input",4),l.\u0275\u0275template(6,Nt,1,5,"input",5),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(7,Rt,3,2,"td",6),l.\u0275\u0275template(8,ai,4,1,"div",7),l.\u0275\u0275template(9,Xt,4,1,"div",7),l.\u0275\u0275template(10,ui,4,1,"div",7),l.\u0275\u0275elementEnd()),2&ae&&(l.\u0275\u0275property("formGroup",_e.parentForm),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(_e.field.name),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",_e.isInterested&&"age"!=_e.fieldElemId),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!(_e.isInterested&&"age"!=_e.fieldElemId)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf","password"==_e.field.code),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!_e.parentForm.get(_e.formCtrlName).valid&&(_e.parentForm.get(_e.formCtrlName).touched||_e.parentForm.get(_e.formCtrlName).dirty)&&!_e.parentForm.get(_e.formCtrlName).errors.pattern&&!_e.parentForm.get(_e.formCtrlName).errors.required),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",_e.patternErrorMsg.length&&!_e.parentForm.get(_e.formCtrlName).valid&&(_e.parentForm.get(_e.formCtrlName).touched||_e.parentForm.get(_e.formCtrlName).dirty)&&_e.parentForm.get(_e.formCtrlName).errors.pattern),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!_e.parentForm.get(_e.formCtrlName).valid&&(_e.parentForm.get(_e.formCtrlName).touched||_e.parentForm.get(_e.formCtrlName).dirty)&&_e.parentForm.get(_e.formCtrlName).errors.required&&!_e.parentForm.get(_e.formCtrlName).errors.pattern))},dependencies:[n.NgIf,q.Fj,q.JJ,q.JL,q.On,K.k0,q.sg,q.u,xe.Hw],styles:["textarea[_ngcontent-%COMP%]:focus, input[_ngcontent-%COMP%]:focus{outline:none}.reuse-text-div[_ngcontent-%COMP%]{display:inline;text-align:center!important;margin:0 0 10px}.td-lable[_ngcontent-%COMP%]{width:50%;align-items:right;vertical-align:middle!important}.field-lable[_ngcontent-%COMP%]{padding:0;text-align:center!important;font-size:small;font-weight:550}.td-input[_ngcontent-%COMP%]{width:50%;align-items:left;vertical-align:middle!important}[_ngcontent-%COMP%]::placeholder{color:#242424;font-size:14px;font-weight:500}.reuse-text-input[_ngcontent-%COMP%]{background-color:transparent!important;border-radius:7px;border:#e9454dee solid 2px;height:30px;width:147px;text-align:center!important;font-size:14px;font-weight:500}.eye-icon[_ngcontent-%COMP%]{float:right;margin-right:-27px;margin-top:px;position:relative;font-size:large;padding-top:4px;z-index:2;color:#e9454dee;cursor:pointer}.error-msg-div[_ngcontent-%COMP%]{text-align:center!important;padding:3px 0 10px;margin:0 0 5px;background-color:transparent}.error-span[_ngcontent-%COMP%]{background-color:transparent;text-align:center!important;font-weight:400;color:red;font-size:smaller}  .mat-form-field-underline{display:none}  .mat-form-field-flex>.mat-form-field-infix{padding:0!important}  .mat-form-field-label-wrapper{top:-1.5em}  .mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{transform:translateY(-1.1em) scale(.75);width:133.33333%}"]})}return Ye})();function Ut(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"div",13),l.\u0275\u0275element(1,"img",14),l.\u0275\u0275elementStart(2,"button",15)(3,"label")(4,"input",16),l.\u0275\u0275listener("change",function(_e){l.\u0275\u0275restoreView(D);const it=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(it.addImageToPwa(_e))}),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"span",17),l.\u0275\u0275text(6,"Upload Image"),l.\u0275\u0275elementEnd()()()()}if(2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("src",D.imageField.fieldValue,l.\u0275\u0275sanitizeUrl)}}function Zt(Ye,kt){if(1&Ye&&l.\u0275\u0275element(0,"img",14),2&Ye){const D=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("src",D.imageField.fieldValue,l.\u0275\u0275sanitizeUrl)}}function Ci(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"div",21),l.\u0275\u0275element(1,"img",22),l.\u0275\u0275elementEnd()),2&Ye){const D=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(1),l.\u0275\u0275property("src",D.imageField.fieldValue,l.\u0275\u0275sanitizeUrl)}}function _i(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"div",13),l.\u0275\u0275template(1,Zt,1,1,"img",18),l.\u0275\u0275template(2,Ci,2,1,"div",19),l.\u0275\u0275elementStart(3,"button",20),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(D);const _e=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(_e.addImageToApk())}),l.\u0275\u0275elementStart(4,"span",17),l.\u0275\u0275text(5,"Upload Image"),l.\u0275\u0275elementEnd()()()}if(2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!D.isLoading),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",D.isLoading)}}function pi(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"tr",26),l.\u0275\u0275element(1,"app-text",27),l.\u0275\u0275elementEnd()),2&Ye){const D=kt.$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(1),l.\u0275\u0275property("isInterested",!1)("parentForm",ae.parentForm)("field",D)}}function Bi(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"div",23)(1,"table",24),l.\u0275\u0275template(2,pi,2,3,"tr",25),l.\u0275\u0275elementEnd()()),2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",D.emailPassFields)}}function ze(Ye,kt){if(1&Ye&&l.\u0275\u0275element(0,"app-select",27),2&Ye){const D=l.\u0275\u0275nextContext().$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("isInterested",!1)("parentForm",ae.parentForm)("field",D)}}function ue(Ye,kt){if(1&Ye&&l.\u0275\u0275element(0,"app-text",27),2&Ye){const D=l.\u0275\u0275nextContext().$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("isInterested",!1)("parentForm",ae.parentForm)("field",D)}}function re(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"tr",26),l.\u0275\u0275template(1,ze,1,3,"app-select",29),l.\u0275\u0275template(2,ue,1,3,"app-text",29),l.\u0275\u0275elementEnd()),2&Ye){const D=kt.$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf","Select"===D.fieldType.type),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf","Text"===D.fieldType.type)}}function Ee(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"div",28)(1,"table",24),l.\u0275\u0275template(2,re,3,2,"tr",25),l.\u0275\u0275elementEnd()()),2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",D.fields)}}function Re(Ye,kt){if(1&Ye&&l.\u0275\u0275element(0,"app-select",27),2&Ye){const D=l.\u0275\u0275nextContext().$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("isInterested",ae.isInterested)("parentForm",ae.parentForm)("field",D)}}function We(Ye,kt){if(1&Ye&&l.\u0275\u0275element(0,"app-text",27),2&Ye){const D=l.\u0275\u0275nextContext().$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("isInterested",ae.isInterested)("parentForm",ae.parentForm)("field",D)}}function xt(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"tr",26),l.\u0275\u0275template(1,Re,1,3,"app-select",29),l.\u0275\u0275template(2,We,1,3,"app-text",29),l.\u0275\u0275elementEnd()),2&Ye){const D=kt.$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf","Select"===D.fieldType.type),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf","Text"===D.fieldType.type)}}function Ht(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"div",30)(1,"div",31)(2,"span",32),l.\u0275\u0275text(3,"Interested in"),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(4,"div",2)(5,"table",24),l.\u0275\u0275template(6,xt,3,2,"tr",25),l.\u0275\u0275elementEnd()()()),2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(6),l.\u0275\u0275property("ngForOf",D.interestedFields)}}let wt=(()=>{class Ye{constructor(D,ae,_e,it,Dt,oi,xi,Ii,si,fn,Gn,Wi,uo){this.titleService=D,this.commonService=ae,this.router=_e,this.profileService=it,this.appUserDataService=Dt,this.dataService=oi,this.alertSnackBar=xi,this.fb=Ii,this.authService=si,this.cameraService=fn,this.ngZone=Gn,this.activatedRouter=Wi,this.subscriptionService=uo,this.appId=o.Jf,this.userId=o.xS,this.camera=window.navigator.camera,this.Camera=window.Camera,this.horizontalPosition="center",this.verticalPosition="top",this.isCordovaApp=!1,this.isLoading=!1,this.imageField={},this.checked=!1,this.validateObj={},this.errorMsg="Please check again.",this.isInterested=!0,this.isFromLandingPage=!1,this.isDisabledRegisterButton=!1,this.isEmptyImage=!0,this.receiveMessage=ve=>{console.log("receive msg:",ve),ve.data&&"landingpage"===ve.data.from&&(this.landingPageData=ve.data,ve.data.clickId&&localStorage.setItem(this.appId+"clickId",ve.data.clickId),ve.data.adPartner&&localStorage.setItem(this.appId+"adPartner",ve.data.adPartner),ve.data.returnUrl&&localStorage.setItem(this.appId+"returnUrl",ve.data.returnUrl),ve.data.msisdn&&(localStorage.setItem(this.appId+"prefill_msisdn",ve.data.msisdn),this.appUserDataService.msisdn="94"+ve.data.msisdn.substr(-9)),this.appUserDataService.deviceUUID=localStorage.getItem("UUID"))},this.isCordovaApp=this.dataService.isCordovaApp(),this.isChatDefPage=!1,localStorage.setItem("isChatDefPage",JSON.stringify(this.isChatDefPage)),this.isChatHome=!1,localStorage.setItem("isChatHome",JSON.stringify(this.isChatHome)),this.isChatProfile=!0,localStorage.setItem("isChatProfile",JSON.stringify(this.isChatProfile)),this.isChatLogin=!1,localStorage.setItem("isChatLogin",JSON.stringify(this.isChatLogin)),this.titleService.changeTitle("My Profile"),this.titleService.setLocation("/chatTemplate/profile"),this.isUserLoggedIn=JSON.parse(localStorage.getItem("isUserLoggedIn"))}ngOnInit(){this.dataService.getDeviceUUID(),this.parentForm=this.fb.group(this.validateObj),this.isUserLoggedIn?this.commonService.chekUserActivation().subscribe(D=>{if(D)this.hasChatProfile=!0,localStorage.setItem("hasChatProfile",JSON.stringify(this.hasChatProfile)),this.getChatUserProfile(this.appId,this.commonService.loggedMemberId);else{this.hasChatProfile=!0,localStorage.setItem("hasChatProfile",JSON.stringify(this.hasChatProfile)),this.showNotification("You are blocked from using this app.");let _e="";this.commonService.setLoggedMemberId(_e),this.commonService.setLikedByMemberId(_e),this.commonService.setConversationId(_e),this.commonService.setChattingMemberId(_e),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}}):(this.hasChatProfile=!1,localStorage.setItem("hasChatProfile",JSON.stringify(this.hasChatProfile)),this.getProfile(this.appId)),this.defaultProfImgUrl=this.dataService.getServerURL()+"/templates/viewWebImages?userId="+this.userId+"&appId="+this.appId+"&"+(new Date).getTime()+"&images=",this.activatedRouter.queryParams.subscribe(D=>{D.fromland&&($("#header").hide(),$(".footer").hide(),$(".main-background").attr("style","background-color: transparent !important"),this.isFromLandingPage=!0,window.addEventListener("message",ae=>{this.receiveMessage(ae)},!1))})}getChatUserProfile(D,ae){this.profileService.getChatUserProfile(D,ae).subscribe(_e=>{this.checked=_e.isAcceptedTnC,this.emailPassFields=_e.emailPassFields,this.setEmailPassFieldsValidators(),this.fields=_e.fields,this.setFieldsValidators(),this.interestedFields=_e.interestedFields,this.setInterestedFieldsValidators(),this.parentForm=this.fb.group(this.validateObj),this.imageField=_e.profImgField,this.imageField.addedEvent=!1,""==this.imageField.fieldValue?(this.hasImg=!1,this.imageField.fieldValue=`${this.defaultProfImgUrl}/defaultProfImage.png`):this.hasImg=!0})}getProfile(D){this.profileService.getProfile(D).subscribe(ae=>{this.emailPassFields=ae.emailPassFields,this.setEmailPassFieldsValidators(),this.fields=ae.fields,this.setFieldsValidators(),this.interestedFields=ae.interestedFields,this.setInterestedFieldsValidators(),this.parentForm=this.fb.group(this.validateObj),this.imageField=ae.profImgField,""==this.imageField.fieldValue&&(this.imageField.fieldValue=`${this.defaultProfImgUrl}/defaultProfImage.png`)})}setEmailPassFieldsValidators(){for(let D of this.emailPassFields){let Dt=D.code.toLowerCase().trim().replace(" ","_");this.validateObj[Dt]="email"==D.code?["",[q.kI.required,q.kI.email,q.kI.pattern(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)]]:["",q.kI.required]}}setFieldsValidators(){for(let D of this.fields){let Dt=D.code.toLowerCase().trim().replace(" ","_");this.validateObj[Dt]="name"==D.code||"first_name"==D.code||"last_name"==D.code?["",[q.kI.required,q.kI.pattern(/^[a-zA-Z ]*$/),q.kI.maxLength(50)]]:"email"==D.code?["",[q.kI.required,q.kI.email,q.kI.pattern(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)]]:"age"==D.code?["",[q.kI.required,q.kI.min(10),q.kI.max(99)]]:["",q.kI.required]}}setInterestedFieldsValidators(){for(let D of this.interestedFields){let oi="intrested_"+D.code.toLowerCase().trim().replace(" ","_");"age"==D.code&&(this.validateObj[oi]=["",[q.kI.min(10),q.kI.max(99)]])}}addImageToApk(){console.log("Runn APK profile Image"),this.hasChatProfile?this.commonService.chekUserActivation().subscribe(D=>{D?this.addImageApkContinue():this.showNotification("You are blocked from using this app.")}):this.addImageApkContinue()}addImageApkContinue(){this.isLoading=!0,this.cameraService.getPicture({quality:50,destinationType:this.Camera.DestinationType.FILE_URI,sourceType:this.Camera.PictureSourceType.PHOTOLIBRARY,encodingType:this.Camera.EncodingType.JPEG,mediaType:this.Camera.MediaType.PICTURE,correctOrientation:!0}).subscribe(ae=>{if(console.log("recived fileinfo : ",ae),ae.fileSize<=this.commonService.profImageSizeLimit)this.isLoading=!1,this.ngZone.run(()=>{this.imageField.fieldValue=ae.displayUrl,this.imageField.fieldValue.fileName=ae.fileName,this.imageField.fieldValue.nativeURL=ae.nativeURL}),this.imageField.addedEvent=!0;else{this.imageField.addedEvent=!1;let Dt=`Please upload image file size less than ${(this.commonService.profImageSizeLimit/1e6).toFixed(1)}MB.`;this.showNotification(Dt)}},ae=>{console.log("Error: ",ae),this.showNotification("Falid to load the image")})}addImageToPwa(D){if(D.target.files)if(D.target.files[0].size<=this.commonService.profImageSizeLimit){let ae=new FileReader;ae.readAsDataURL(D.target.files[0]),ae.onload=_e=>{this.imageField.fieldValue=_e.target.result,this.imageField.addedEvent=D.target.files[0]}}else{let it=`Please upload image file size less than ${(this.commonService.profImageSizeLimit/1e6).toFixed(1)}MB.`;this.showNotification(it)}}saveMemberDetails(D,ae,_e,it){if(it)if(this.parentForm.invalid)this.showNotification("Please complete all fields to proceed");else{for(let Dt of D)"email"==Dt.code&&(Dt.fieldValue=Dt.fieldValue.toLowerCase());this.imageField&&""!=this.imageField.fieldValue&&this.imageField.addedEvent&&(this.isEmptyImage=!1),this.isUserLoggedIn?this.updateChatMember(D,ae,_e):this.isFromLandingPage&&this.hasChatProfile?this.register():this.addMember(D,ae,_e)}else this.showNotification("Please accept the terms and conditions and privacy policy to proceed")}updateChatMember(D,ae,_e){this.commonService.chekUserActivation().subscribe(it=>{if(it)this.isCordovaApp?this.updateCordovaAppMember(D,ae,_e):this.updatePwaMember(D,ae,_e);else{this.showNotification("You are blocked from using this app.");let oi="";this.commonService.setLoggedMemberId(oi),this.commonService.setLikedByMemberId(oi),this.commonService.setConversationId(oi),this.commonService.setChattingMemberId(oi),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}updateCordovaAppMember(D,ae,_e){if(this.imageField.addedEvent)""!=this.imageField.fieldValue?(this.imageField.fieldValue.email=D[0].fieldValue,this.imageField.fieldValue.memberId=this.commonService.loggedMemberId,this.cameraService.uploadImageInApk(this.imageField.fieldValue,this.appId,this.userId).subscribe(Dt=>{this.imageField.fieldValue=Dt,ae.push(this.imageField);for(let oi of D)ae.push(oi);this.updateMemberCall(ae,_e)},Dt=>{(Dt.status=400)?this.showNotification(Dt.body.split('"').join("")):this.showNotification("Server Error! Try again.")})):this.showNotification("Please add an Image!");else if(this.hasImg){let Dt=this.imageField.fieldValue.split("thirdNavi/")[1];this.imageField.fieldValue=Dt,ae.push(this.imageField);for(let oi of D)ae.push(oi);this.updateMemberCall(ae,_e)}else this.showNotification("Please add a profile image!")}updatePwaMember(D,ae,_e){if(this.imageField.addedEvent){let Dt=this.imageField.addedEvent;const oi=new FormData;oi.append("memberId",this.commonService.loggedMemberId),oi.append("email",D[0].fieldValue),oi.append("profileImage",Dt,Dt.name),delete this.imageField.addedEvent,this.appUserDataService.addProfileImage(oi,this.appId,this.userId,!1).subscribe(xi=>{if(xi.length){this.imageField.fieldValue=xi,ae.push(this.imageField);for(let Ii of D)ae.push(Ii);this.updateMemberCall(ae,_e)}else this.showNotification("Please Try Again!")},xi=>{xi&&xi.error&&this.showNotification(xi.error)})}else if(this.hasImg){let Dt=this.imageField.fieldValue.split("thirdNavi/")[1];this.imageField.fieldValue=Dt,ae.push(this.imageField);for(let oi of D)ae.push(oi);this.updateMemberCall(ae,_e)}else this.showNotification("Please add a profile image!")}updateMemberCall(D,ae){this.appUserDataService.updateChatMember(D,ae,this.appId,this.commonService.loggedMemberId).subscribe(_e=>{"U"==_e?(this.router.navigate(["/chatTemplate/matchme"]),this.showNotification("Updated Successfully!")):"E"==_e?this.showNotification("User Updating Error! Try again."):"D"==_e&&(this.showNotification("This email is already registered"),this.getChatUserProfile(this.appId,this.commonService.loggedMemberId))})}addMember(D,ae,_e){this.isCordovaApp?this.addCordovaAppMember(D,ae,_e):(this.isFromLandingPage&&(this.isDisabledRegisterButton=!0),this.addPwaMember(D,ae,_e))}addCordovaAppMember(D,ae,_e){this.isEmptyImage?(this.isDisabledRegisterButton=!0,this.appUserDataService.addProfileImage(null,this.appId,this.userId,this.isEmptyImage).subscribe(it=>{this.addMemberCall(it,D,ae,_e)})):(this.imageField.fieldValue.email=D[0].fieldValue,this.imageField.fieldValue.memberId=this.commonService.loggedMemberId,this.cameraService.uploadImageInApk(this.imageField.fieldValue,this.appId,this.userId).subscribe(it=>{this.addMemberCall(it,D,ae,_e)},it=>{(it.status=400)?this.showNotification(it.body.split('"').join("")):this.showNotification("Server Error! Try again.")}))}addPwaMember(D,ae,_e){let it=this.imageField.addedEvent;const Dt=new FormData;Dt.append("email",D[0].fieldValue),this.isEmptyImage||Dt.append("profileImage",it,it.name),this.isDisabledRegisterButton=!0,this.appUserDataService.addProfileImage(Dt,this.appId,this.userId,this.isEmptyImage).subscribe(oi=>{this.addMemberCall(oi,D,ae,_e)},oi=>{oi&&oi.error&&this.showNotification(oi.error),this.isDisabledRegisterButton=!1})}addMemberCall(D,ae,_e,it){if(D.length){let Dt=it.map(Ii=>JSON.parse(JSON.stringify(Ii))),oi=_e.map(Ii=>JSON.parse(JSON.stringify(Ii))),xi=JSON.parse(JSON.stringify(this.imageField));xi.fieldValue=D,oi.push(xi);for(let Ii of ae)oi.push(Ii);this.appUserDataService.addMember(oi,Dt,this.appId,this.checked).subscribe(Ii=>{let si=Ii;this.setLocalStorage(!0),this.commonService.setLoggedMemberId(si.id),si.userToken&&this.authService.setToken(si.userToken),this.isFromLandingPage?($("form :input").prop("disabled",!0),this.isDisabledRegisterButton=!1,this.register()):(this.router.navigate(["/chatTemplate/matchme"]),this.showNotification("Successfully Registered!"))})}else this.showNotification("Please Try Again!")}register(){const D=this.subscriptionService.getSubscriptionMessage().subscribe(_e=>{if(_e.message.status===W.Yg.SUB_RESPONSE&&"ERROR"!=_e.message.data.status){D.unsubscribe();const oi=_e.message.data.data;oi.isError||"SUBSCRIBED"!=oi.subscriptionStatus||(this.isFromLandingPage=!1,this.isDisabledRegisterButton=!1,window.top.postMessage({from:"pwa",redirectUrl:this.landingPageData.pwaUrl},"*"),this.landingPageData=null)}}),ae=new W.Mw;ae.status=W.Yg.SUB_REQUEST,this.subscriptionService.sendSubscriptionMessage({message:ae})}setLocalStorage(D){this.hasChatProfile=D,localStorage.setItem("hasChatProfile",JSON.stringify(this.hasChatProfile))}showNotification(D){this.alertSnackBar.open(D,"Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition})}static#e=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(e.F0),l.\u0275\u0275directiveInject(le),l.\u0275\u0275directiveInject(Be),l.\u0275\u0275directiveInject(S.V),l.\u0275\u0275directiveInject(B.pl),l.\u0275\u0275directiveInject(q.QS),l.\u0275\u0275directiveInject(f.e),l.\u0275\u0275directiveInject(Z.r),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(e.gz),l.\u0275\u0275directiveInject(W.FF))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:Ye,selectors:[["app-profile"]],decls:18,vars:12,consts:[[1,"profile-card","main-background"],[1,"card-content"],[1,"wrapped-div"],[1,"prof-image-div"],["id","upload_button",4,"ngIf"],[3,"formGroup"],["class","email-pass-table-div",4,"ngIf"],["class","other-fields-table-div",4,"ngIf"],["class","interested-fields-table-div",4,"ngIf"],["name","selection",1,"checkbox-style","label.checkbox"],["name","checkbox",1,"checkbox-style","label.checkbox",3,"ngModel","ngModelChange"],["routerLink","/policies","fragment","backToTopBtn"],["mat-raised-button","","type","submit",1,"submit-button","main-button",3,"disabled","click"],["id","upload_button"],["mat-card-image","","alt","Profile Picture",1,"prof-image",3,"src"],["mat-button","",1,"add-image-button","main-button"],["type","file","accept","image/png, image/jpeg",3,"change"],[1,"btn-lable"],["mat-card-image","","class","prof-image","alt","Profile Picture",3,"src",4,"ngIf"],["class","prof-image","style","background-color: black;",4,"ngIf"],["mat-button","",1,"add-image-button","main-button",3,"click"],[1,"prof-image",2,"background-color","black"],["mat-card-image","","alt","Profile Picture",1,"loader-gif",3,"src"],[1,"email-pass-table-div"],[1,"field-table"],["class","table-row",4,"ngFor","ngForOf"],[1,"table-row"],[1,"app-input",3,"isInterested","parentForm","field"],[1,"other-fields-table-div"],["class","app-input",3,"isInterested","parentForm","field",4,"ngIf"],[1,"interested-fields-table-div"],[1,"interested-div"],[1,"interested-span","main-content-font"]],template:function(ae,_e){1&ae&&(l.\u0275\u0275elementStart(0,"mat-card",0)(1,"mat-card-content",1)(2,"div",2)(3,"div",3),l.\u0275\u0275template(4,Ut,7,1,"div",4),l.\u0275\u0275template(5,_i,6,2,"div",4),l.\u0275\u0275elementEnd()(),l.\u0275\u0275element(6,"br"),l.\u0275\u0275elementStart(7,"form",5),l.\u0275\u0275template(8,Bi,3,1,"div",6),l.\u0275\u0275template(9,Ee,3,1,"div",7),l.\u0275\u0275template(10,Ht,7,1,"div",8),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(11,"section",9)(12,"mat-checkbox",10),l.\u0275\u0275listener("ngModelChange",function(Dt){return _e.checked=Dt}),l.\u0275\u0275text(13,"I accept the "),l.\u0275\u0275elementStart(14,"a",11),l.\u0275\u0275text(15,"Terms & Conditions and Privacy Policy "),l.\u0275\u0275elementEnd()()(),l.\u0275\u0275elementStart(16,"button",12),l.\u0275\u0275listener("click",function(){return _e.saveMemberDetails(_e.emailPassFields,_e.fields,_e.interestedFields,_e.checked)}),l.\u0275\u0275text(17," Submit "),l.\u0275\u0275elementEnd()()()),2&ae&&(l.\u0275\u0275advance(1),l.\u0275\u0275styleProp("overflow","auto")("height","92","vh"),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngIf",!_e.isCordovaApp),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",_e.isCordovaApp),l.\u0275\u0275advance(2),l.\u0275\u0275property("formGroup",_e.parentForm),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",_e.emailPassFields),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",_e.fields),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",_e.interestedFields),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngModel",_e.checked),l.\u0275\u0275advance(4),l.\u0275\u0275property("disabled",_e.isDisabledRegisterButton))},dependencies:[n.NgForOf,n.NgIf,e.rH,q._Y,q.JJ,q.JL,q.On,q.sg,U.S$,U.Qi,U.k0,me.eB,te.FC,Pt,vt],styles:[".checkbox-style[_ngcontent-%COMP%]{margin-top:55px;font-weight:400!important}.profile-card[_ngcontent-%COMP%]{text-align:center!important;width:100%;min-height:90vh;height:auto;background-color:transparent;border:none;box-shadow:none;padding:58px 0 0!important;margin:0!important}.card-content[_ngcontent-%COMP%]{text-align:center!important;top:8vh;min-height:92vh;height:auto;width:100%;border:none;box-shadow:none;padding-bottom:50px}.wrapped-div[_ngcontent-%COMP%]{display:flex;justify-content:center}[_ngcontent-%COMP%]::-webkit-scrollbar{width:0px;background:transparent}.prof-image-div[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:4vh;max-width:160px;min-width:160px;max-height:160px;min-height:160px;border-radius:15px;border:none}.loader-gif[_ngcontent-%COMP%]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;align-self:center;border:none}.prof-image[_ngcontent-%COMP%]{display:flex;justify-content:center;transform:translate(50%);max-width:160px;min-width:160px;max-height:160px;min-height:160px;border-radius:15px;border:none;margin:0%!important}#upload_button[_ngcontent-%COMP%]{display:flex;justify-content:center}#upload_button[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{display:none}.add-image-button[_ngcontent-%COMP%]{display:flex;justify-content:center;align-self:flex-end;transform:translate(-50%);max-width:160px;min-width:160px;line-height:30px;padding:0;margin:0;color:#ec5a6d;cursor:pointer;background-color:#fff;opacity:.6!important;border:none!important;border-color:transparent!important;border-width:0px!important;border-radius:unset!important;border-radius:0 0 15px 15px/0px 0px 15px 15px!important;text-align:center;overflow-y:scroll}.input-components[_ngcontent-%COMP%]{padding:10px 100px 10px 0}.btn-lable[_ngcontent-%COMP%]{opacity:1;font-size:20px;font-weight:600;pointer-events:auto;cursor:pointer}.email-pass-table-div[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:60px}.other-fields-table-div[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:30px}.interested-fields-table-div[_ngcontent-%COMP%]{margin-bottom:0}.interested-div[_ngcontent-%COMP%]{margin-bottom:20px}.interested-span[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#333}.field-table[_ngcontent-%COMP%]{width:75%;text-align:center!important;margin:0 5px;padding:0}.table-row[_ngcontent-%COMP%]{width:100%;text-align:center}.app-input[_ngcontent-%COMP%]{margin-bottom:20px!important;padding:0 0 200px!important}.submit-button[_ngcontent-%COMP%]{margin:50px 5px!important;padding:15px 10px!important;background-color:#ec5a6d;width:80%;font-size:x-large;border-radius:20px;border-color:#ec5a6d;border-width:3px;color:#fff;border:solid}.error-msg-div[_ngcontent-%COMP%]{text-align:center!important;padding:3px 0 10px;margin:0 0 5px;background-color:transparent}.error-span[_ngcontent-%COMP%]{background-color:transparent;text-align:center!important;font-weight:500;color:red}a[_ngcontent-%COMP%]{color:#000}.checkbox-style[_ngcontent-%COMP%]{color:#000;margin-top:55px;font-weight:400!important;width:90%;display:flex;flex-direction:row;justify-content:center;align-items:center;margin-left:5%;margin-right:5%}label.checkbox[_ngcontent-%COMP%]{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:400!important}  section mat-checkbox label div .mat-checkbox-background{background-color:transparent!important;border-color:#000!important}  section mat-checkbox label div .mat-checkbox-background .mat-checkbox-checkmark .mat-checkbox-checkmark-path{stroke:#000!important}  section mat-checkbox label span{stroke:#000!important;text-align:left;margin-right:-5%;padding-left:4%;width:auto!important}  section mat-checkbox label{display:flex!important;white-space:inherit!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;width:-moz-fit-content!important;width:fit-content!important}"]})}return Ye})();var Mt=a(9282),It=a(3238),se=a(1281),we=a(445);const Le=["*"];class yt{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const kt=Math.max(...this.tracker);return kt>1?this.rowCount+kt-1:this.rowCount}update(kt,D){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(kt),this.tracker.fill(0,0,this.tracker.length),this.positions=D.map(ae=>this._trackTile(ae))}_trackTile(kt){const D=this._findMatchingGap(kt.colspan);return this._markTilePosition(D,kt),this.columnIndex=D+kt.colspan,new St(this.rowIndex,D)}_findMatchingGap(kt){let D=-1,ae=-1;do{this.columnIndex+kt>this.tracker.length?(this._nextRow(),D=this.tracker.indexOf(0,this.columnIndex),ae=this._findGapEndIndex(D)):(D=this.tracker.indexOf(0,this.columnIndex),-1!=D?(ae=this._findGapEndIndex(D),this.columnIndex=D+1):(this._nextRow(),D=this.tracker.indexOf(0,this.columnIndex),ae=this._findGapEndIndex(D)))}while(ae-D<kt||0==ae);return Math.max(D,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let kt=0;kt<this.tracker.length;kt++)this.tracker[kt]=Math.max(0,this.tracker[kt]-1)}_findGapEndIndex(kt){for(let D=kt+1;D<this.tracker.length;D++)if(0!=this.tracker[D])return D;return this.tracker.length}_markTilePosition(kt,D){for(let ae=0;ae<D.colspan;ae++)this.tracker[kt+ae]=D.rowspan}}class St{constructor(kt,D){this.row=kt,this.col=D}}const ii=new l.InjectionToken("MAT_GRID_LIST");let Ki=(()=>{class Ye{constructor(D,ae){this._element=D,this._gridList=ae,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(D){this._rowspan=Math.round((0,se.su)(D))}get colspan(){return this._colspan}set colspan(D){this._colspan=Math.round((0,se.su)(D))}_setStyle(D,ae){this._element.nativeElement.style[D]=ae}}return Ye.\u0275fac=function(D){return new(D||Ye)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(ii,8))},Ye.\u0275cmp=l.\u0275\u0275defineComponent({type:Ye,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(D,ae){2&D&&l.\u0275\u0275attribute("rowspan",ae.rowspan)("colspan",ae.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Le,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(D,ae){1&D&&(l.\u0275\u0275projectionDef(),l.\u0275\u0275elementStart(0,"div",0),l.\u0275\u0275projection(1),l.\u0275\u0275elementEnd())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Ye})();const fr=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class ar{constructor(){this._rows=0,this._rowspan=0}init(kt,D,ae,_e){this._gutterSize=zn(kt),this._rows=D.rowCount,this._rowspan=D.rowspan,this._cols=ae,this._direction=_e}getBaseTileSize(kt,D){return`(${kt}% - (${this._gutterSize} * ${D}))`}getTilePosition(kt,D){return 0===D?"0":Rn(`(${kt} + ${this._gutterSize}) * ${D}`)}getTileSize(kt,D){return`(${kt} * ${D}) + (${D-1} * ${this._gutterSize})`}setStyle(kt,D,ae){let _e=100/this._cols,it=(this._cols-1)/this._cols;this.setColStyles(kt,ae,_e,it),this.setRowStyles(kt,D,_e,it)}setColStyles(kt,D,ae,_e){let it=this.getBaseTileSize(ae,_e);kt._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(it,D)),kt._setStyle("width",Rn(this.getTileSize(it,kt.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(kt){return`${this._rowspan} * ${this.getTileSize(kt,1)}`}getComputedHeight(){return null}}class Xi extends ar{constructor(kt){super(),this.fixedRowHeight=kt}init(kt,D,ae,_e){super.init(kt,D,ae,_e),this.fixedRowHeight=zn(this.fixedRowHeight),fr.test(this.fixedRowHeight)}setRowStyles(kt,D){kt._setStyle("top",this.getTilePosition(this.fixedRowHeight,D)),kt._setStyle("height",Rn(this.getTileSize(this.fixedRowHeight,kt.rowspan)))}getComputedHeight(){return["height",Rn(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(kt){kt._setListStyle(["height",null]),kt._tiles&&kt._tiles.forEach(D=>{D._setStyle("top",null),D._setStyle("height",null)})}}class Mn extends ar{constructor(kt){super(),this._parseRatio(kt)}setRowStyles(kt,D,ae,_e){this.baseTileHeight=this.getBaseTileSize(ae/this.rowHeightRatio,_e),kt._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,D)),kt._setStyle("paddingTop",Rn(this.getTileSize(this.baseTileHeight,kt.rowspan)))}getComputedHeight(){return["paddingBottom",Rn(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(kt){kt._setListStyle(["paddingBottom",null]),kt._tiles.forEach(D=>{D._setStyle("marginTop",null),D._setStyle("paddingTop",null)})}_parseRatio(kt){const D=kt.split(":");this.rowHeightRatio=parseFloat(D[0])/parseFloat(D[1])}}class Ln extends ar{setRowStyles(kt,D){let it=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);kt._setStyle("top",this.getTilePosition(it,D)),kt._setStyle("height",Rn(this.getTileSize(it,kt.rowspan)))}reset(kt){kt._tiles&&kt._tiles.forEach(D=>{D._setStyle("top",null),D._setStyle("height",null)})}}function Rn(Ye){return`calc(${Ye})`}function zn(Ye){return Ye.match(/([A-Za-z%]+)$/)?Ye:`${Ye}px`}let Si=(()=>{class Ye{constructor(D,ae){this._element=D,this._dir=ae,this._gutter="1px"}get cols(){return this._cols}set cols(D){this._cols=Math.max(1,Math.round((0,se.su)(D)))}get gutterSize(){return this._gutter}set gutterSize(D){this._gutter=`${D??""}`}get rowHeight(){return this._rowHeight}set rowHeight(D){const ae=`${D??""}`;ae!==this._rowHeight&&(this._rowHeight=ae,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(D){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===D?new Ln:D&&D.indexOf(":")>-1?new Mn(D):new Xi(D)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new yt);const D=this._tileCoordinator,ae=this._tiles.filter(it=>!it._gridList||it._gridList===this),_e=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,ae),this._tileStyler.init(this.gutterSize,D,this.cols,_e),ae.forEach((it,Dt)=>{const oi=D.positions[Dt];this._tileStyler.setStyle(it,oi.row,oi.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(D){D&&(this._element.nativeElement.style[D[0]]=D[1])}}return Ye.\u0275fac=function(D){return new(D||Ye)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(we.Is,8))},Ye.\u0275cmp=l.\u0275\u0275defineComponent({type:Ye,selectors:[["mat-grid-list"]],contentQueries:function(D,ae,_e){if(1&D&&l.\u0275\u0275contentQuery(_e,Ki,5),2&D){let it;l.\u0275\u0275queryRefresh(it=l.\u0275\u0275loadQuery())&&(ae._tiles=it)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(D,ae){2&D&&l.\u0275\u0275attribute("cols",ae.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[l.\u0275\u0275ProvidersFeature([{provide:ii,useExisting:Ye}])],ngContentSelectors:Le,decls:2,vars:0,template:function(D,ae){1&D&&(l.\u0275\u0275projectionDef(),l.\u0275\u0275elementStart(0,"div"),l.\u0275\u0275projection(1),l.\u0275\u0275elementEnd())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Ye})(),lr=(()=>{class Ye{}return Ye.\u0275fac=function(D){return new(D||Ye)},Ye.\u0275mod=l.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=l.\u0275\u0275defineInjector({imports:[It.uc,It.BQ,It.uc,It.BQ]}),Ye})();function bi(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-grid-tile")(1,"figure",10)(2,"div",11),l.\u0275\u0275listener("click",function(){const it=l.\u0275\u0275restoreView(D).$implicit,Dt=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(Dt.matchMember(it.member))}),l.\u0275\u0275element(3,"img",12),l.\u0275\u0275elementStart(4,"button",13)(5,"div",14),l.\u0275\u0275element(6,"img",15),l.\u0275\u0275elementEnd()()()(),l.\u0275\u0275elementStart(7,"div",16)(8,"span",17),l.\u0275\u0275text(9),l.\u0275\u0275elementEnd()()()}if(2&Ye){const D=kt.$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(3),l.\u0275\u0275property("src",""==D.profImgUrl?ae.defaultImgUrl:D.profImgUrl,l.\u0275\u0275sanitizeUrl),l.\u0275\u0275advance(3),l.\u0275\u0275propertyInterpolate1("src","",ae.imgFolderUrl,"/heart-red.svg",l.\u0275\u0275sanitizeUrl),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(D.fullName)}}function gi(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"mat-grid-list",8),l.\u0275\u0275template(1,bi,10,3,"mat-grid-tile",9),l.\u0275\u0275elementEnd()),2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275property("gutterSize","10px"),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",D.yourMatchesArr)}}function ji(Ye,kt){if(1&Ye){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-grid-tile")(1,"figure",10)(2,"div",11),l.\u0275\u0275listener("click",function(){const it=l.\u0275\u0275restoreView(D).$implicit,Dt=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(Dt.matchMember(it.member))}),l.\u0275\u0275element(3,"img",12),l.\u0275\u0275elementStart(4,"button",13)(5,"div",14),l.\u0275\u0275element(6,"img",18),l.\u0275\u0275elementEnd()()()(),l.\u0275\u0275elementStart(7,"div",16)(8,"span",17),l.\u0275\u0275text(9),l.\u0275\u0275elementEnd()()()}if(2&Ye){const D=kt.$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(3),l.\u0275\u0275property("src",""==D.profImgUrl?ae.defaultImgUrl:D.profImgUrl,l.\u0275\u0275sanitizeUrl),l.\u0275\u0275advance(3),l.\u0275\u0275propertyInterpolate1("src","",ae.imgFolderUrl,"/heart-gray.svg",l.\u0275\u0275sanitizeUrl),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(D.fullName)}}function Dn(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"mat-grid-list",8),l.\u0275\u0275template(1,ji,10,3,"mat-grid-tile",9),l.\u0275\u0275elementEnd()),2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275property("gutterSize","10px"),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",D.allMembersArr)}}let Wn=(()=>{class Ye{constructor(D,ae,_e,it,Dt,oi,xi,Ii,si,fn,Gn,Wi){this.titleService=D,this.commonService=ae,this.dataService=_e,this.profileService=it,this.appUserDataService=Dt,this.router=oi,this.alertSnackBar=xi,this.chatService=Ii,this.subscriptionService=si,this.messageService=fn,this.conversationService=Gn,this.appDataService=Wi,this.appId=o.Jf,this.userId=o.xS,this.templateName=o.Bv,this.horizontalPosition="center",this.verticalPosition="top",this.allMembers=!0,this.isUserActive=!1,this.chatNotificationsCount=0,this.mylikesArr=[],this.isActiveApp=!0,this.skipMembers=0,this.templateVersion="",this.yourMatchesArr=[],this.yourMatchesArrrayResponse=[],this.allMembersArr=[],this.allMesbersArrayResponse=[],this.isMoreAllMembers=!0,this.isChatDefPage=!1,localStorage.setItem("isChatDefPage",JSON.stringify(this.isChatDefPage)),this.isChatHome=!0,localStorage.setItem("isChatHome",JSON.stringify(this.isChatHome)),this.isChatProfile=!1,localStorage.setItem("isChatProfile",JSON.stringify(this.isChatProfile)),this.isChatLogin=!1,localStorage.setItem("isChatLogin",JSON.stringify(this.isChatLogin)),this.hasChatProfile=!0,localStorage.setItem("hasChatProfile",JSON.stringify(this.hasChatProfile)),this.titleService.setLocation("/chatTemplate/matchme"),this.titleService.changeTitle(o.u2),this.loggedMemberId=this.commonService.loggedMemberId,this.popUpedSub=this.commonService.popUpedSub,this.getTemplateVersion(),this.getMembers()}onScroll(){this.isBottomReached()&&(this.skipMembers+=10,this.memberMatches?this.getMyMatchesLazy():this.allMembers&&this.getMembers())}getTemplateVersion(){"P2Pchat"===this.templateName?this.templateVersion="v1":"P2PchatV2"===this.templateName?this.templateVersion="v2":"P2PchatV3"===this.templateName&&(this.templateVersion="v3")}isBottomReached(){const D=document.querySelector(".match-me-card").scrollHeight,ae=document.querySelector(".match-me-card").offsetHeight+1;return $(".match-me-card").scrollTop()+ae>=D-150}ngOnInit(){this.imgFolderUrl=this.dataService.getServerURL()+"/templates/viewWebImages?userId="+this.userId+"&appId="+this.appId+"&"+(new Date).getTime()+"&images=",this.defaultImgUrl=`${this.imgFolderUrl}/defaultProfImage.png`,this.popUpedSub||this.checkAppStatus()}isAllMembers(){return!this.allMembers}getMembersArray(){return this.allMembers?this.allMembersArr&&this.allMembersArr.length?this.allMembersArr:[]:this.memberMatches&&this.yourMatchesArr&&this.yourMatchesArr.length?this.yourMatchesArr:[]}showSubPopUp(){this.commonService.setPopUpedSub(!0);const D=this.subscriptionService.getSubscriptionMessage().subscribe(_e=>{if(_e.message.status===W.Yg.SUB_RESPONSE&&"ERROR"!=_e.message.data.status){D.unsubscribe();const Dt=_e.message.data.data;!Dt.isError&&"SUBSCRIBED"==Dt.subscriptionStatus&&this.appUserDataService.updateMemberIfNotExists(),this.messageService.sendMessage({subscription:_e.message.data.data}),this.getNotifications()}}),ae=new W.Mw;ae.status=W.Yg.SUB_REQUEST,this.subscriptionService.sendSubscriptionMessage({message:ae})}checkAppStatus(){this.appDataService.getPublishDetails().subscribe(D=>{if(D){let ae=[];if(ae=D.operators.filter(_e=>"APPROVED"===_e.status),0===ae.length){const _e=D.operators.filter(Dt=>"SUSPENDED"===Dt.status),it=D.operators.filter(Dt=>"DELETED"===Dt.status||"TERMINATED"===Dt.status);(_e.length>0||it.length>0)&&(this.dataService.isFreeCategoryViewAvailable=!1,this.dataService.isSuspendedApp=!0),_e.length>0?(this.dataService.displayMessage="The service is temporarily unavailable on the network",this.showSubPopUp()):it.length>0&&(this.dataService.displayMessage="Service no longer available.",this.showSubPopUp())}}})}getMembers(){this.profileService.getAllMemberNames(this.appId,this.loggedMemberId,this.skipMembers,this.templateVersion).subscribe(D=>{D.length?(this.allMesbersArrayResponse=D,this.allMembersArr=this.allMembersArr.concat(D)):this.isMoreAllMembers=!1})}getMyMatchesLazy(){this.appUserDataService.getMyMatches(this.appId,this.loggedMemberId,this.userId,this.skipMembers,this.templateVersion).subscribe(D=>{D.length&&(this.yourMatchesArrrayResponse=D,this.yourMatchesArr=this.yourMatchesArr.concat(D))})}getMyMatches(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.skipMembers=0,this.isUserActive=!0,this.yourMatchesArr=[],"v3"===this.templateVersion&&(this.allMembersArr=[]),this.memberMatches=!0,this.allMembers=!1,this.appUserDataService.getMyMatches(this.appId,this.loggedMemberId,this.userId,this.skipMembers,this.templateVersion).subscribe(ae=>{ae.length&&(this.yourMatchesArrrayResponse=ae,this.yourMatchesArr=ae)});else{this.isUserActive=!1,this.alertSnackBar.open("You are blocked from using this app.","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});let it="";this.commonService.setLoggedMemberId(it),this.commonService.setLikedByMemberId(it),this.commonService.setConversationId(it),this.commonService.setChattingMemberId(it),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}setAllMembers(){this.allMembers?this.allMembersArr.length<this.allMesbersArrayResponse.length?(this.allMembersArr=[...this.allMembersArr,...this.allMesbersArrayResponse.slice(this.allMembersArr.length,this.allMembersArr.length+4)],this.isMoreAllMembers=this.allMembersArr.length<this.allMesbersArrayResponse.length):this.isMoreAllMembers=!1:this.yourMatchesArr.length<this.yourMatchesArrrayResponse.length?(this.yourMatchesArr=[...this.yourMatchesArr,...this.yourMatchesArrrayResponse.slice(this.yourMatchesArr.length,this.yourMatchesArr.length+4)],this.isMoreAllMembers=this.yourMatchesArr.length<this.yourMatchesArrrayResponse.length):this.isMoreAllMembers=!1}getNotifications(){this.commonService.getNotifications(this.loggedMemberId,this.appId).subscribe(D=>{this.mylikesArr=D.data,this.chatNotificationsCount=this.mylikesArr.length,localStorage.setItem("chatNotificationsCount",JSON.stringify(this.chatNotificationsCount)),this.listenOnNotifications()})}listenOnNotifications(){this.commonService.listenOnNotifications().subscribe(D=>{D.likedBy&&(this.chatNotificationsCount++,localStorage.setItem("chatNotificationsCount",JSON.stringify(this.chatNotificationsCount)))})}getAllMembers(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.skipMembers=0,this.allMembersArr=[],"v3"===this.templateVersion&&(this.yourMatchesArr=[]),this.profileService.getAllMemberNames(this.appId,this.loggedMemberId,this.skipMembers,this.templateVersion).subscribe(ae=>{ae.length&&(this.memberMatches=!1,this.allMembers=!0,this.allMembersArr=ae)});else{this.alertSnackBar.open("You are blocked from using this app.","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});let it="";this.commonService.setLoggedMemberId(it),this.commonService.setLikedByMemberId(it),this.commonService.setConversationId(it),this.commonService.setChattingMemberId(it),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}memberMatchingContinue(D){this.commonService.chekUserActivation().subscribe(ae=>{if(ae)this.commonService.matchMember(D,this.loggedMemberId).subscribe(_e=>{_e?this.appUserDataService.acceptRequest(this.appId,this.loggedMemberId,D).subscribe(it=>{if(it){let Dt=it.acceptedRecord.likedTo;this.commonService.setChattingMemberId(Dt),this.conversationService.getConversationInfo(this.appId,this.loggedMemberId,Dt).subscribe(oi=>{if("Faild"==oi)this.dataService.hideSpinner(),this.alertSnackBar.open("Something went wrong!","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});else{const xi=this.subscriptionService.getSubscriptionMessage().subscribe(si=>{if(si.message.status===W.Yg.SUB_RESPONSE){xi.unsubscribe();const fn=si.message.data.data;fn.isError||"SUBSCRIBED"!=fn.subscriptionStatus?this.dataService.hideSpinner():(this.appUserDataService.updateMemberIfNotExists(),this.messageService.sendMessage({subscription:fn}),this.commonService.setConversationId(oi),this.dataService.hideSpinner(),this.router.navigate(["/chatTemplate/chat"]))}else this.dataService.hideSpinner()}),Ii=new W.Mw;Ii.status=W.Yg.SUB_REQUEST,this.subscriptionService.sendSubscriptionMessage({message:Ii})}})}else this.dataService.hideSpinner()}):this.dataService.hideSpinner()});else{this.dataService.hideSpinner(),this.alertSnackBar.open("You are blocked from using this app.","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});let Dt="";this.commonService.setLoggedMemberId(Dt),this.commonService.setLikedByMemberId(Dt),this.commonService.setConversationId(Dt),this.commonService.setChattingMemberId(Dt),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}matchMember(D){const ae=this.subscriptionService.getSubscriptionMessage().subscribe(it=>{if(it.message.status!==W.Yg.SUB_RESPONSE||"ERROR"==it.message.data.status)this.dataService.hideSpinner();else{ae.unsubscribe();const oi=it.message.data.data;oi.isError||"SUBSCRIBED"!=oi.subscriptionStatus?this.dataService.hideSpinner():(this.appUserDataService.updateMemberIfNotExists(),this.messageService.sendMessage({subscription:it.message.data.data}),this.memberMatchingContinue(D))}}),_e=new W.Mw;_e.status=W.Yg.SUB_REQUEST,this.subscriptionService.sendSubscriptionMessage({message:_e}),this.dataService.showSpinner()}viewHomePage(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.router.navigate(["/chatTemplate/matchme"]);else{this.alertSnackBar.open("You are blocked from using this app.","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});let it="";this.commonService.setLoggedMemberId(it),this.commonService.setLikedByMemberId(it),this.commonService.setConversationId(it),this.commonService.setChattingMemberId(it),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}viewProfilePage(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.router.navigate(["/chatTemplate/profile"]);else{this.alertSnackBar.open("You are blocked from using this app.","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});let it="";this.commonService.setLoggedMemberId(it),this.commonService.setLikedByMemberId(it),this.commonService.setConversationId(it),this.commonService.setChattingMemberId(it),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}viewChatPage(){this.commonService.chekUserActivation().subscribe(D=>{if(D)this.commonService.setLoggedMemberId(this.loggedMemberId),this.router.navigate(["/chatTemplate/conversations"]);else{this.alertSnackBar.open("You are blocked from using this app.","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});let it="";this.commonService.setLoggedMemberId(it),this.commonService.setLikedByMemberId(it),this.commonService.setConversationId(it),this.commonService.setChattingMemberId(it),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}static#e=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(S.V),l.\u0275\u0275directiveInject(le),l.\u0275\u0275directiveInject(Be),l.\u0275\u0275directiveInject(e.F0),l.\u0275\u0275directiveInject(B.pl),l.\u0275\u0275directiveInject(j),l.\u0275\u0275directiveInject(W.FF),l.\u0275\u0275directiveInject(Te.e),l.\u0275\u0275directiveInject(He),l.\u0275\u0275directiveInject(Mt.U))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:Ye,selectors:[["app-matchme"]],decls:12,vars:4,consts:[[1,"page-container","padding"],["id","bloc-2",1,"bloc","bgc-white","l-bloc"],[1,"container","bloc-sm","content-pading"],[1,"match-me-card","main-background",3,"scroll"],[1,"btn-grp"],["mat-stroked-button","",3,"ngClass","click"],[1,"card-content"],["class","my-grid-list","cols","2","rowHeight","1:1.2",3,"gutterSize",4,"ngIf"],["cols","2","rowHeight","1:1.2",1,"my-grid-list",3,"gutterSize"],[4,"ngFor","ngForOf"],[1,"my-figure"],[1,"grid-tile-img-div",3,"click"],[1,"grid-tile-img",3,"src"],["mat-icon-button","","color","primary",1,"btn-on-image"],[1,"heart-icon"],["alt","RedHeart",1,"heart-image",3,"src"],[1,"grid-span-div"],[1,"member-div-span","main-content-font"],["alt","GrayHeart",1,"heart-image",3,"src"]],template:function(ae,_e){1&ae&&(l.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-card",3),l.\u0275\u0275listener("scroll",function(){return _e.onScroll()}),l.\u0275\u0275elementStart(4,"div",4)(5,"button",5),l.\u0275\u0275listener("click",function(){return _e.getMyMatches()}),l.\u0275\u0275text(6,"YOUR MATCHES"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(7,"button",5),l.\u0275\u0275listener("click",function(){return _e.getAllMembers()}),l.\u0275\u0275text(8,"ALL"),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(9,"mat-card-content",6),l.\u0275\u0275template(10,gi,2,2,"mat-grid-list",7),l.\u0275\u0275template(11,Dn,2,2,"mat-grid-list",7),l.\u0275\u0275elementEnd()()()()()),2&ae&&(l.\u0275\u0275advance(5),l.\u0275\u0275property("ngClass",_e.allMembers?"matches-button-blur main-button":"matches-button main-button"),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngClass",_e.allMembers?"matches-button main-button":"matches-button-blur main-button"),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngIf",_e.memberMatches),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",_e.allMembers))},dependencies:[n.NgClass,n.NgForOf,n.NgIf,U.S$,U.Qi,Si,Ki,me.eB],styles:[".mat-card-header-text{margin:0!important;display:none!important}.match-me-card[_ngcontent-%COMP%]{text-align:center!important;width:100%;min-height:100vh;height:auto;background-color:transparent;padding:58px 0 0!important;margin:0!important;border:none;box-shadow:none}.btn-grp[_ngcontent-%COMP%]{height:8vh;width:100%;text-align:center!important;display:flex;flex-direction:row;justify-content:center;align-items:center}.matches-button[_ngcontent-%COMP%]{margin:1.3vh 5px;padding:0 5px;height:5.4vh;font-weight:200;background-color:#ec5a6d;width:45%;border-radius:8px;border:#EC5A6D solid 3px;text-align:center;letter-spacing:1px;display:flex;flex-direction:row;justify-content:center;align-items:center;font:-webkit-control}.matches-button-blur[_ngcontent-%COMP%]{margin:1.3vh 5px;padding:0 5px;height:5.4vh;font-weight:200;background-color:#ec5a6d;width:45%;border-radius:8px;border:#EC5A6D solid 3px;text-align:center;letter-spacing:1px;display:flex;flex-direction:row;justify-content:center;align-items:center;font:-webkit-control;opacity:.6}.card-content[_ngcontent-%COMP%]{text-align:center!important;top:8vh;min-height:74vh;height:auto;width:100%;border:none;box-shadow:none;margin:0}[_ngcontent-%COMP%]::-webkit-scrollbar{width:0px;background:transparent}  .mat-grid-list{display:block;position:relative;margin-left:18px;margin-right:18px}  .mat-grid-tile .my-figure{inset:0;position:absolute;display:flex;align-items:center;justify-content:center;height:83.4%!important;padding:0;margin:0}  .mat-grid-tile .mat-figure{height:100%!important}.grid-tile-img-div[_ngcontent-%COMP%]{width:100%!important;height:100%!important;border-radius:15px}.grid-tile-img[_ngcontent-%COMP%]{max-width:100%;min-width:100%;max-height:100%;min-height:100%;display:block;border-radius:15px}.btn-on-image[_ngcontent-%COMP%]{transform:translate(185%,-121%);background-color:transparent;border:none;cursor:pointer;border-radius:50%;text-align:center;width:20%;height:20%;padding:0%;margin:0%;box-shadow:0 5px 10px -1px #c9c9c999}.heart-image[_ngcontent-%COMP%]{vertical-align:middle;width:100%;height:100%}.heart-icon[_ngcontent-%COMP%]{max-width:100%;max-height:100%}.grid-span-div[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;margin-top:100%;height:6vw;text-align:center!important}.member-div-span[_ngcontent-%COMP%]{font-size:medium;font-weight:550;overflow:hidden;text-align:center;letter-spacing:0!important;margin:auto}  .footer-mat-icon{font-family:Material Icons!important;height:30px!important;width:30px!important;font-size:30px!important;vertical-align:middle;color:#ec5a6d;padding:0%;margin:0%}.more-button-div[_ngcontent-%COMP%]{text-align:-webkit-center;text-align:center;padding:1%;margin-bottom:20%!important}.button-more[_ngcontent-%COMP%]{border:0;background:transparent}.content-pading[_ngcontent-%COMP%]{padding-bottom:15%}.my-grid-list[_ngcontent-%COMP%]{padding-bottom:0!important}"]})}return Ye})(),pn=(()=>{class Ye{constructor(D,ae,_e,it,Dt,oi,xi,Ii,si,fn){this.commonService=D,this.router=ae,this.dataService=_e,this.appuserdataService=it,this.location=Dt,this.alertSnackBar=oi,this.chatService=xi,this.titleService=Ii,this.subscriptionService=si,this.messageService=fn,this.appId=o.Jf,this.userId=o.xS,this.horizontalPosition="center",this.verticalPosition="top",this.chatNotificationsCount=0,this.mylikesArr=[],this.likedMemberName="Chat Member",this.isChatDefPage=!0,localStorage.setItem("isChatDefPage",JSON.stringify(this.isChatDefPage)),this.isChatHome=!1,localStorage.setItem("isChatHome",JSON.stringify(this.isChatHome)),this.isChatProfile=!1,localStorage.setItem("isChatProfile",JSON.stringify(this.isChatProfile)),this.isChatLogin=!1,localStorage.setItem("isChatLogin",JSON.stringify(this.isChatLogin)),this.hasChatProfile=!0,localStorage.setItem("hasChatProfile",JSON.stringify(this.hasChatProfile)),this.titleService.changeTitle(this.likedMemberName),this.titleService.setLocation("/chatTemplate/users"),this.likedByMemberId=this.commonService.likedByMemberId,this.loggedMemberId=this.commonService.loggedMemberId}ngOnInit(){this.imgFolderUrl=this.dataService.getServerURL()+"/templates/viewWebImages?userId="+this.userId+"&appId="+this.appId+"&"+(new Date).getTime()+"&images=",this.defaultImgUrl=`${this.imgFolderUrl}/defaultProfImage.png`,this.getLikedMemberInfo(this.appId,this.likedByMemberId,this.userId),this.getNotifications(),this.commonService.checkRequestStatus(this.likedByMemberId,this.loggedMemberId).subscribe(D=>{D.hasClicked&&this.router.navigate(["/chatTemplate/conversations"])})}getNotifications(){this.commonService.getNotifications(this.loggedMemberId,this.appId).subscribe(D=>{D&&D.data&&(this.mylikesArr=D.data),this.chatNotificationsCount=this.mylikesArr.length,localStorage.setItem("chatNotificationsCount",JSON.stringify(this.chatNotificationsCount)),this.listenOnNotifications()})}listenOnNotifications(){this.commonService.listenOnNotifications().subscribe(D=>{D.likedBy&&(this.chatNotificationsCount++,localStorage.setItem("chatNotificationsCount",JSON.stringify(this.chatNotificationsCount)))})}getLikedMemberInfo(D,ae,_e){this.appuserdataService.getLikedMemberInfo(D,ae,_e).subscribe(it=>{it&&(this.likedMember=it)})}acceptRequestContinue(){this.appuserdataService.acceptRequest(this.appId,this.likedByMemberId,this.loggedMemberId).subscribe(D=>{D&&(this.commonService.setConversationId(D.createdConversation.id),this.commonService.setChattingMemberId(D.acceptedRecord.likedBy),this.commonService.setLoggedMemberId(this.loggedMemberId),this.router.navigate(["/chatTemplate/chat"]))})}acceptRequest(){const D=this.subscriptionService.getSubscriptionMessage().subscribe(_e=>{if(_e.message.status===W.Yg.SUB_RESPONSE&&"ERROR"!=_e.message.data.status){D.unsubscribe();const Dt=_e.message.data.data;!Dt.isError&&"SUBSCRIBED"==Dt.subscriptionStatus&&(this.appuserdataService.updateMemberIfNotExists(),this.messageService.sendMessage({subscription:_e.message.data.data}),this.acceptRequestContinue())}}),ae=new W.Mw;ae.status=W.Yg.SUB_REQUEST,this.subscriptionService.sendSubscriptionMessage({message:ae})}rejectRequest(){this.appuserdataService.rejectRequest(this.loggedMemberId,this.likedByMemberId,this.appId).subscribe(D=>{D&&(this.alertSnackBar.open("Deleted the like request!","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition}),this.router.navigate(["/chatTemplate/conversations"]))})}static#e=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(e.F0),l.\u0275\u0275directiveInject(S.V),l.\u0275\u0275directiveInject(Be),l.\u0275\u0275directiveInject(n.Location),l.\u0275\u0275directiveInject(B.pl),l.\u0275\u0275directiveInject(j),l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(W.FF),l.\u0275\u0275directiveInject(Te.e))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:Ye,selectors:[["app-users"]],decls:17,vars:12,consts:[[1,"match-me-card","main-background"],[1,"card-content"],[1,"wrapped-div"],[1,"prof-img-area-div"],[1,"user-prof-img-div"],[1,"user-prof-img",3,"src"],[1,"member-name-div"],[1,"name-span","main-content-font"],[1,"btn-grp"],["mat-raised-button","",1,"submit-button","main-button",3,"click"]],template:function(ae,_e){1&ae&&(l.\u0275\u0275elementStart(0,"mat-card",0)(1,"mat-card-content",1)(2,"div",2)(3,"div",3)(4,"div",2)(5,"div",4),l.\u0275\u0275element(6,"img",5),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(7,"div",6)(8,"span",7),l.\u0275\u0275text(9),l.\u0275\u0275elementEnd()()()(),l.\u0275\u0275elementStart(10,"div",8)(11,"button",9),l.\u0275\u0275listener("click",function(){return _e.acceptRequest()}),l.\u0275\u0275text(12),l.\u0275\u0275pipe(13,"uppercase"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(14,"button",9),l.\u0275\u0275listener("click",function(){return _e.rejectRequest()}),l.\u0275\u0275text(15),l.\u0275\u0275pipe(16,"uppercase"),l.\u0275\u0275elementEnd()()()()),2&ae&&(l.\u0275\u0275advance(1),l.\u0275\u0275styleProp("overflow","auto")("height","90","vh"),l.\u0275\u0275advance(5),l.\u0275\u0275property("src",""==_e.likedMember.profImgUrl?_e.defaultImgUrl:_e.likedMember.profImgUrl,l.\u0275\u0275sanitizeUrl),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(_e.likedMember.fullName),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(13,8,"Accept")," "),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(16,10,"Reject")," "))},dependencies:[U.S$,U.Qi,me.eB,n.UpperCasePipe],styles:[".mat-card-header-text{margin:0!important;display:none!important}.match-me-card[_ngcontent-%COMP%]{text-align:center!important;width:100%;min-height:100vh;height:auto;background-color:transparent;padding:58px 0 0!important;margin:0!important;border:none;box-shadow:none}.card-content[_ngcontent-%COMP%]{text-align:center!important;top:8vh;min-height:82vh;height:auto;width:100%;border:none;box-shadow:none;margin:0}[_ngcontent-%COMP%]::-webkit-scrollbar{width:0px;background:transparent}.header-back-icon[_ngcontent-%COMP%]{font-family:Material Icons!important;text-align:center}.conversation-list-div[_ngcontent-%COMP%]{padding-top:19px;width:90%}.wrapped-div[_ngcontent-%COMP%]{display:flex;justify-content:center}.prof-img-area-div[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;height:47vh;width:100%;padding:0%;margin:0%}.user-prof-img-div[_ngcontent-%COMP%]{padding-top:13vh;max-width:26vh;min-width:26vh;height:39vh;display:block;border-radius:15px;margin-bottom:2vh}.user-prof-img[_ngcontent-%COMP%]{border-radius:15px;max-width:100%;max-height:100%;min-width:100%;min-height:100%}.member-name-div[_ngcontent-%COMP%]{height:6vh;border:none;background-color:transparent;text-align:center!important}.name-span[_ngcontent-%COMP%]{font-size:medium;font-weight:500;color:#000;text-align:center!important}.btn-grp[_ngcontent-%COMP%]{display:flex;justify-content:center;height:6vh;width:100%;text-align:center!important}.submit-button[_ngcontent-%COMP%]{margin:5px!important;padding:0 10px!important;background-color:#ec5a6d;width:35%!important;height:100%!important;font-size:large;font-weight:400;border-radius:10px!important;border:#EC5A6D solid 3px;text-align:center}  .footer-mat-icon{font-family:Material Icons!important;height:30px!important;width:30px!important;font-size:30px!important;vertical-align:middle;color:#ec5a6d;padding:0%;margin:0%}"]})}return Ye})();function qn(Ye,kt){if(1&Ye&&(l.\u0275\u0275elementStart(0,"div",21)(1,"span",22)(2,"i"),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()()()),2&Ye){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1("*",D.errorMsg,"")}}let Mi=(()=>{class Ye{constructor(D,ae,_e,it,Dt,oi,xi,Ii){this.titleService=D,this.commonService=ae,this.router=_e,this.appUserDataService=it,this.dataService=Dt,this.authService=oi,this.appDataService=xi,this.alertSnackBar=Ii,this.horizontalPosition="center",this.verticalPosition="top",this.appId=o.Jf,this.userId=o.xS,this.credentialsError=!1,this.isUserLoggedIn=!1,this.appData={},this.initialRoute="matchme",this.appDataService.getCrmAppBannerUrl().subscribe(fn=>{this.bannerUrl=fn}),this.commonService.setPopUpedSub(!1),this.isChatDefPage=!1,localStorage.setItem("isChatDefPage",JSON.stringify(this.isChatDefPage)),this.isChatHome=!1,localStorage.setItem("isChatHome",JSON.stringify(this.isChatHome)),this.isChatProfile=!1,localStorage.setItem("isChatProfile",JSON.stringify(this.isChatProfile)),this.isChatLogin=!0,localStorage.setItem("isChatLogin",JSON.stringify(this.isChatLogin)),this.hasChatProfile=!1,localStorage.setItem("hasChatProfile",JSON.stringify(this.hasChatProfile)),this.titleService.changeTitle("Login Page"),this.titleService.setLocation("/chatTemplate/loginregistration"),localStorage.setItem("isUserLoggedIn",JSON.stringify(this.isUserLoggedIn)),this.commonService.setLoggedMemberId(""),this.commonService.setLikedByMemberId(""),this.commonService.setConversationId(""),this.commonService.setChattingMemberId(""),this.commonService.getInitialRoute(this.appId)}ngOnInit(){this.commonService.initialRoute.subscribe(D=>{this.initialRoute=D})}forgotPassword(D){this.appDataService.forgotPassword({email:D,appId:this.appId}).subscribe(_e=>{this.showNotification(_e.message)},_e=>{_e&&_e.error&&_e.error.message&&this.showNotification(_e.error.message)})}loginInfo(D,ae){if(!1===this.dataService.isFreeCategoryViewAvailable)this.dataService.isSuspendedApp=!0,$("#appStatusModel").modal("show");else{const _e=D.toLowerCase();this.appUserDataService.checkUserStatus(_e,ae).subscribe(it=>{this.isValidUser=it.status,this.isValidUser?(this.loggedMemberId=it.id,this.commonService.startListenOnLoginActionFlow(this.loggedMemberId),this.commonService.setLoggedMemberId(this.loggedMemberId),this.hasChatProfile=!0,localStorage.setItem("hasChatProfile",JSON.stringify(this.hasChatProfile)),this.isUserLoggedIn=!0,localStorage.setItem("isUserLoggedIn",JSON.stringify(this.isUserLoggedIn)),it.userToken&&this.authService.setToken(it.userToken),""!==it.deviceUUID&&""!==it.msisdn?localStorage.setItem("UUID",it.deviceUUID):this.dataService.getDeviceUUID(),this.router.navigate([`/chatTemplate/${this.initialRoute}`])):(this.hasChatProfile=!1,localStorage.setItem("hasChatProfile",JSON.stringify(this.hasChatProfile)),this.credentialsError=!0,this.errorMsg=it.warning)})}}setLocalStorage(){!1===this.dataService.isFreeCategoryViewAvailable?(this.dataService.isSuspendedApp=!0,$("#appStatusModel").modal("show")):(this.hasChatProfile=!1,localStorage.setItem("hasChatProfile",JSON.stringify(this.hasChatProfile)),this.router.navigate(["/chatTemplate/profile"]))}showNotification(D){this.alertSnackBar.open(D,"Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition})}static#e=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(e.F0),l.\u0275\u0275directiveInject(Be),l.\u0275\u0275directiveInject(S.V),l.\u0275\u0275directiveInject(f.e),l.\u0275\u0275directiveInject(Mt.U),l.\u0275\u0275directiveInject(B.pl))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:Ye,selectors:[["app-login-registration"]],decls:33,vars:5,consts:[[1,"login-card","main-background"],[1,"mat-card-img-wrapper"],["mat-card-image","","alt","Chat Image",1,"login-card-app-logo",3,"src"],[1,"login-card-content"],["name","loginForm",1,"credentials-form"],["loginForm","ngForm"],[1,"wrapped-div"],[1,"credential-table"],[1,"table-set"],[1,"input-lable-td"],["for","userEmail",1,"field-lable","main-content-font"],[1,"input-td"],["placeholder","Type","type","email","matInput","","name","userEmail","email","true","ngModel","","pattern","^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$","required","",1,"input-info-field",3,"ngModel","ngModelChange"],["for","userPassword",1,"field-lable","main-content-font"],["placeholder","Type","type","password","matInput","","name","userPassword","required","",1,"input-info-field",3,"ngModel","ngModelChange"],["mat-stroked-button","","type","submit",1,"submit-button","main-button",3,"disabled","click"],["class","error-msg-div",4,"ngIf"],[1,"forgot-password-style",3,"click"],[1,"reminder-div"],[1,"reminder-span","main-content-font"],["mat-stroked-button","","type","submit",1,"submit-button","main-button",3,"click"],[1,"error-msg-div"],[1,"error-span"]],template:function(ae,_e){if(1&ae&&(l.\u0275\u0275elementStart(0,"mat-card",0)(1,"div",1),l.\u0275\u0275element(2,"img",2),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(3,"mat-card-content",3)(4,"form",4,5)(6,"div",6)(7,"table",7)(8,"tr",8)(9,"td",9)(10,"span",10),l.\u0275\u0275text(11," Email"),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(12,"td",11)(13,"input",12),l.\u0275\u0275listener("ngModelChange",function(Dt){return _e.email=Dt}),l.\u0275\u0275elementEnd()()(),l.\u0275\u0275elementStart(14,"tr",8)(15,"td",9)(16,"span",13),l.\u0275\u0275text(17,"Password"),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(18,"td",11)(19,"input",14),l.\u0275\u0275listener("ngModelChange",function(Dt){return _e.password=Dt}),l.\u0275\u0275elementEnd()()()()(),l.\u0275\u0275elementStart(20,"div")(21,"button",15),l.\u0275\u0275listener("click",function(){return _e.loginInfo(_e.email,_e.password)}),l.\u0275\u0275text(22," Login "),l.\u0275\u0275elementEnd()(),l.\u0275\u0275template(23,qn,4,1,"div",16),l.\u0275\u0275elementStart(24,"div")(25,"u",17),l.\u0275\u0275listener("click",function(){return _e.forgotPassword(_e.email)}),l.\u0275\u0275text(26," Forgot Password "),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(27,"div",18)(28,"span",19),l.\u0275\u0275text(29,"If You dont have an account"),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(30,"div")(31,"button",20),l.\u0275\u0275listener("click",function(){return _e.setLocalStorage()}),l.\u0275\u0275text(32," Register "),l.\u0275\u0275elementEnd()()()()()),2&ae){const it=l.\u0275\u0275reference(5);l.\u0275\u0275advance(2),l.\u0275\u0275property("src",_e.bannerUrl,l.\u0275\u0275sanitizeUrl),l.\u0275\u0275advance(11),l.\u0275\u0275property("ngModel",_e.email),l.\u0275\u0275advance(6),l.\u0275\u0275property("ngModel",_e.password),l.\u0275\u0275advance(2),l.\u0275\u0275property("disabled",!it.form.valid),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",_e.credentialsError)}},dependencies:[n.NgIf,q._Y,q.Fj,q.JJ,q.JL,q.Q7,q.c5,q.on,q.On,q.F,K.k0,U.S$,U.Qi,U.k0,me.eB],styles:["textarea[_ngcontent-%COMP%]:focus, input[_ngcontent-%COMP%]:focus{outline:none}.login-card[_ngcontent-%COMP%]{text-align:center!important;background-color:transparent;border:none;box-shadow:none;width:100%;min-height:92vh;height:auto;padding:0 0 100px;margin:0!important}.login-card-app-logo[_ngcontent-%COMP%]{width:100%;margin-top:0!important}.wrapped-div[_ngcontent-%COMP%]{display:flex;justify-content:center}.login-card-content[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;padding:20px 0 0;margin:0%}.credentials-form[_ngcontent-%COMP%]{width:75%}.credential-table[_ngcontent-%COMP%]{margin-bottom:6px}.table-set[_ngcontent-%COMP%]{width:100%;height:50px;padding:10px 20px 10px 30px}.input-lable-td[_ngcontent-%COMP%]{text-align:center!important;padding-left:20px}.field-lable[_ngcontent-%COMP%]{padding:12px 0 3px;text-align:center;width:40%;font-weight:500}.input-td[_ngcontent-%COMP%]{padding-left:30px}.input-info-field[_ngcontent-%COMP%]{color:#323232;float:right;width:100%;text-align:center;font-size:medium;background-color:#f3f3f3;height:40px;border-radius:8px;border:#EC5A6D solid 3px}[_ngcontent-%COMP%]::placeholder{color:#232323;text-align:center;font-size:14px;font-weight:500}.submit-button[_ngcontent-%COMP%]{margin:10px 5px 8px 0!important;padding:15px 10px!important;background-color:#ec5a6d;width:100%!important;font-size:large;border-radius:15px;border-color:#ec5a6d;border-width:3px;color:#fff;border:solid}.error-msg-div[_ngcontent-%COMP%]{text-align:center!important;padding:3px 0 10px;margin:0 0 5px;background-color:transparent}.error-span[_ngcontent-%COMP%]{background-color:transparent;text-align:center!important;font-weight:500;color:red}.reminder-div[_ngcontent-%COMP%]{background-color:transparent;text-align:center!important;padding:6px 0}.reminder-span[_ngcontent-%COMP%]{background-color:transparent;text-align:center!important;font-weight:500}.forgot-password-style[_ngcontent-%COMP%]{color:#0095ff}  .mat-card-image{display:unset!important}.mat-card-img-wrapper[_ngcontent-%COMP%]{width:auto;height:40vh}.mat-card-img-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;object-fit:cover;object-position:center}"]})}return Ye})();var Ei,qi=a(3634),Qn=a(9792),Vi=a(2037),Bn=a(9704),Br=a(3048),On=a(9209),Yn=a(7820);const ht=[{path:"",component:(()=>{class Ye{static#e=this.PUSH_TOKEN_LOCAL_STORAGE_KEY="pushtoken";onScroll(){this.isInstallAvailable&&!this.ishidePopup&&$(".chat-pwa-install-modal").modal("show")}constructor(D,ae,_e,it,Dt,oi,xi,Ii,si,fn,Gn,Wi,uo,ve,pe,y,J,N){this.commonChatService=D,this.appUserDataService=ae,this.conversationService=_e,this.alertSnackBar=it,this.dataService=Dt,this.categoryService=oi,this.device=xi,this.title=Ii,this.push=si,this.subscription=fn,this.appDataService=Gn,this.messageService=Wi,this.ngZone=uo,this.preventScreenshot=ve,this.imageCacheService=pe,this.swPush=y,this.subscriptionService=J,this.router=N,this.appId=o.Jf,this.userId=o.xS,this.templateName=o.Bv,this.results=[],this.localStorageUUIDString="UUID",this.isSubscribing=!1,this.renewalIntervals=[],this.loadImageCount=0,this.isFromCMSAppView=!1,this.isFromPushMessage=!1,this.isCordovaApp=!1,this.hideImageLoadingSpinner=!1,this.isInstallAvailable=!1,this.ishidePopup=!1,this.horizontalPosition="center",this.verticalPosition="top",this.infoObj={imageCountLimit:5,sendImageSizeLimit:5e6,profImageSizeLimit:25e5},this.onDeviceReady(),this.isCordovaApp=this.dataService.isCordovaApp(),this.title.changeTitle(o.u2),Ei=this,this.title.setLocation("home"),this.messageService.sendMessage({loadImageCount:-1}),this.dataService.initialImageCount=0,this.dataService.hideImageLoadingSpinner(),window.addEventListener("beforeinstallprompt",Ve=>{this.promptEvent=Ve,this.isInstallAvailable=!0});let de=document.querySelector(".main-background"),$e=getComputedStyle(de).backgroundColor;if($e.includes("rgba")){let pt=`.snack-bar-bg { background-color: ${"rgb"+$e.slice(4,$e.lastIndexOf(","))+")"}}`,qt=document.createElement("style");qt.appendChild(document.createTextNode(pt)),document.getElementsByTagName("head")[0].appendChild(qt)}else{let Ve=`.snack-bar-bg { background-color: ${$e}}`,pt=document.createElement("style");pt.appendChild(document.createTextNode(Ve)),document.getElementsByTagName("head")[0].appendChild(pt)}}ngOnInit(){this.commonChatService.getImageRelatedInfo().subscribe(D=>{D&&(this.infoObj.imageCountLimit=D.imageCountLimit,this.infoObj.sendImageSizeLimit=D.sendImageSizeLimit,this.infoObj.profImageSizeLimit=D.profImageSizeLimit),this.commonChatService.setImageCountLimit(this.infoObj.imageCountLimit),this.commonChatService.setSendImageSizeLimit(this.infoObj.sendImageSizeLimit),this.commonChatService.setProfImageSizeLimit(this.infoObj.profImageSizeLimit)}),this.appDataService.getPublishDetails().subscribe(D=>{if(this.appPublishDetails=D,D){this.isFreeApp=D.isFreeApp;const ae=D.operators.filter(_e=>"SUSPENDED"===_e.status||"TERMINATED"===_e.status||"DELETED"===_e.status);D&&"FREE"!==D.operators[0].operator&&ae.length===D.operators.length&&(this.dataService.isFreeCategoryViewAvailable=!1,this.dataService.displayMessage=D.operators.filter(it=>"SUSPENDED"===it.status).length===D.operators.length?"The service is temporarily unavailable on the network":"Service no longer available.")}if(!this.dataService.isIonicApp()){const ae=!!this.appPublishDetails.disableScreenshots&&this.appPublishDetails.disableScreenshots;window.hasOwnProperty("cordova")&&this.enableOrDisableScreenshots(ae)}}),this.appDataService.getRenewalIntervals().subscribe(D=>{this.dataService.renewalIntervals=D,this.renewalIntervals=this.dataService.renewalIntervals}),this.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView")}enableOrDisableScreenshots(D){D?this.preventScreenshot.enablePreventScreenshot().then(ae=>console.log(ae)).catch(ae=>console.error(ae)):this.preventScreenshot.disablePreventScreenshot().then(ae=>console.log(ae)).catch(ae=>console.error(ae))}ngAfterViewInit(){this.getDeviceUUID(),this.swPush.notificationClicks.subscribe(({notification:it})=>{let Dt=it.data;Dt.isnewMessageChatApp?this.openChatFromPushNotification(this.appId,Dt.fromMemberId,Dt.toMemberId):(this.dataService.pushMessage=it.body,this.dataService.inAppNotificationInfo=it.data.popUpPushInfo,this.isFromPushMessage=!0,window.focus(),$(()=>{$("#appStatusModel").modal("hide"),$("#appPushNotificationModel").modal("show"),$("#appPushNotificationModel").off("hidden.bs.modal")}))});const ae=localStorage.getItem(`chatLogin-${this.appId}`);if(ae){const _e=JSON.parse(ae);this.commonChatService.startListenOnLoginActionFlow(_e.loggedUser)}}getDeviceUUID(){var D=localStorage.getItem(this.localStorageUUIDString);this.dataService.isFromBrowser()?(D||(D=this.dataService.getRandomId(),localStorage.setItem(Ei.localStorageUUIDString,D)),Ei.uuid=D):this.dataService.isIonicApp()?D?this.deviceUUIDCallback(D):this.device.getUUID(Ei.deviceUUIDCallback):document.addEventListener("deviceready",()=>{this.deviceUUIDCallback(D||device.uuid)},!1)}deviceUUIDCallback(D){!localStorage.getItem(Ei.localStorageUUIDString)&&D&&localStorage.setItem(Ei.localStorageUUIDString,D),Ei.subscription.getSubscriptionStatus({appId:Ei.appId,uuId:D}).subscribe(it=>console.log(it)),Ei.uuid=D,Ei.generatePushToken()}generatePushToken(){Ei.push.getToken(Ei.pushSuccessCallback,Ei.pushErrorCallback)}pushSuccessCallback(D){D&&null!==D?localStorage[Ye.PUSH_TOKEN_LOCAL_STORAGE_KEY]=D:localStorage.removeItem(Ye.PUSH_TOKEN_LOCAL_STORAGE_KEY),Ei.push.onTokenRefresh(Ei.pushTokenRefreshSuccessCallback,Ei.pushTokenRefreshErrorCallback),Ei.postDeviceToken("deviceId="+D+"&uuid="+Ei.uuid)}pushErrorCallback(D){console.log("pushErrorCallback: "+D)}pushTokenRefreshSuccessCallback(D){localStorage[Ye.PUSH_TOKEN_LOCAL_STORAGE_KEY]!==D&&Ei.postDeviceToken("deviceId="+D+"&uuid="+Ei.uuid+"&action=NEW_TOKEN")}pushTokenRefreshErrorCallback(D){console.log("pushTokenRefreshErrorCallback: "+D)}postDeviceToken(D){try{D+="&appversion="+Ei.dataService.getAPKVersion(window.navigator.userAgent),Ei.categoryService.sendDeviceToken(D).subscribe(ae=>{Ei.callOnNotificationOpen()},ae=>{console.log("Error while sending the device token to be persist.Error: "+ae),Ei.callOnNotificationOpen()})}catch(ae){console.log("Exception in pushSuccessCallback: "+ae)}}callOnNotificationOpen(){this.dataService.isIonicApp()?Ei.push.onNotificationOpen(Ei.onNotificationOpenSuccessCallback,Ei.onNotificationOpenErrorCallback):window.FirebasePlugin.onMessageReceived(function(D){Ei.ngZone.run(()=>{Ei.onNotificationOpenSuccessCallback(D)})},function(D){Ei.onNotificationOpenErrorCallback(D)})}onNotificationOpenSuccessCallback(D){D=this.configRecievedPushMessage(D),Ei.isFromPushMessage=!0,!D.isInAppMsg&&D.isnewMessageChatApp?D.tap&&this.openChatFromPushNotification(this.appId,D.fromMemberId,D.toMemberId):(!D.tap&&D.body||D.isInAppMsg)&&(Ei.dataService.pushMessage=D.body,$(()=>{$("#appStatusModel").modal("hide"),$("#appPushNotificationModel").modal("show"),$("#appPushNotificationModel").off("hidden.bs.modal"),D.isnewMessageChatApp&&$("#appPushNotificationModel").on("hidden.bs.modal",function(){this.openChatFromPushNotification(this.appId,D.fromMemberId,D.toMemberId)})}))}configRecievedPushMessage(D){return D&&((D=this.turnIntoProperJsObject(D)).body?this.dataService.pushMessage=D.body:D.text&&(this.dataService.pushMessage=D.text,D.body=D.text?D.text:""),D.category&&(D.data={...D.data,category:JSON.parse(D.category)},D.data.category.categoryId=D.categoryId,D.data.category.articleId=D.articleId,delete D.category),D.popUpPushInfo&&(D.data={...D.data,popUpPushInfo:JSON.parse(D.popUpPushInfo)},this.dataService.inAppNotificationInfo="{}"!=D.popUpPushInfo?D.data.popUpPushInfo:null,delete D.popUpPushInfo)),D}turnIntoProperJsObject(D){for(let ae in D)D.hasOwnProperty(ae)&&("null"===D[ae]?D[ae]=null:"false"===D[ae]?D[ae]=!1:"true"===D[ae]&&(D[ae]=!0));return D}openChatFromPushNotification(D,ae,_e){this.commonChatService.setChattingMemberId(ae),this.conversationService.getConversationInfo(D,_e,ae).subscribe(it=>{if("Faild"==it)this.alertSnackBar.open("Something went wrong!","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});else{const Dt=this.subscriptionService.getSubscriptionMessage().subscribe(xi=>{if(xi.message.status===W.Yg.SUB_RESPONSE){Dt.unsubscribe();const Ii=xi.message.data.data;!Ii.isError&&"SUBSCRIBED"==Ii.subscriptionStatus&&(this.appUserDataService.updateMemberIfNotExists(),this.messageService.sendMessage({subscription:""}),this.commonChatService.setConversationId(it),this.router.navigate(["/chatTemplate/chat"]))}}),oi=new W.Mw;oi.status=W.Yg.SUB_REQUEST,this.subscriptionService.sendSubscriptionMessage({message:oi})}})}onNotificationOpenErrorCallback(D){console.log("onNotificationOpenErrorCallback=>"+D)}imageLoaded(D){this.hideImageLoadingSpinner?this.messageService.sendMessage({loadImageCount:this.dataService.initialImageCount}):(this.loadImageCount+=1,this.messageService.sendMessage({loadImageCount:this.loadImageCount}))}onDeviceReady(){document.addEventListener("deviceready",()=>{this.dataService.isImageCacheInitialized.subscribe(D=>{D||this.initImageCache()})},!1)}initImageCache(){this.imageCacheService.initImageCache().then(()=>{this.dataService.changeIsImageCacheInitialized(!0)}).catch(()=>{console.error("ERROR: Init Cache."),this.dataService.changeIsImageCacheInitialized(!1)})}installPWAApp(){this.promptEvent.prompt(),this.promptEvent.userChoice.then(D=>{"accepted"===D.outcome?(console.log("User accepted the A2HS prompt"),this.isInstallAvailable=!1,this.hidePopup()):console.log("User dismissed the A2HS prompt"),this.promptEvent=null})}hidePopup(){this.ishidePopup=!0,$(".chat-pwa-install-modal").modal("hide")}static#t=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(Be),l.\u0275\u0275directiveInject(He),l.\u0275\u0275directiveInject(B.pl),l.\u0275\u0275directiveInject(S.V),l.\u0275\u0275directiveInject(qi.G),l.\u0275\u0275directiveInject(Qn.G),l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(Vi.G),l.\u0275\u0275directiveInject(Bn.E),l.\u0275\u0275directiveInject(Mt.U),l.\u0275\u0275directiveInject(Te.e),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(Br.W),l.\u0275\u0275directiveInject(On.y),l.\u0275\u0275directiveInject(Yn.Mk),l.\u0275\u0275directiveInject(W.FF),l.\u0275\u0275directiveInject(e.F0))};static#i=this.\u0275cmp=l.\u0275\u0275defineComponent({type:Ye,selectors:[["app-chat-temp"]],hostBindings:function(ae,_e){1&ae&&l.\u0275\u0275listener("scroll",function(){return _e.onScroll()},!1,l.\u0275\u0275resolveWindow)},decls:12,vars:0,consts:[["tabindex","-1","role","dialog","aria-labelledby","pwa install","aria-hidden","true",1,"modal","fade","chat-pwa-install-modal"],[1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["id","exampleModalLongTitle",1,"modal-title"],[1,"modal-body","text-center"],[1,"btn","install-btn",3,"click"]],template:function(ae,_e){1&ae&&(l.\u0275\u0275element(0,"router-outlet"),l.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"button",4),l.\u0275\u0275listener("click",function(){return _e.hidePopup()}),l.\u0275\u0275text(6," \xd7 "),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(7,"h5",5),l.\u0275\u0275text(8,"Click to install the app "),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(9,"div",6)(10,"button",7),l.\u0275\u0275listener("click",function(){return _e.installPWAApp()}),l.\u0275\u0275text(11,"INSTALL"),l.\u0275\u0275elementEnd()()()()())},dependencies:[e.lC],styles:['.flex-row[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;margin:20px 0}.flex-row[_ngcontent-%COMP%]   .flex-col[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;padding:5px 10px}.flex-col[_ngcontent-%COMP%]{width:calc(100% / 3)}.flex-row[_ngcontent-%COMP%]   .flex-col[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{text-align:center;font-size:14px}.flex-row[_ngcontent-%COMP%]:last-child{padding-bottom:60px}.flex-row[_ngcontent-%COMP%]:first-child{padding-top:42px}.modal[_ngcontent-%COMP%]{text-align:center;padding:0!important}.modal[_ngcontent-%COMP%]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-4px}.modal-dialog[_ngcontent-%COMP%]{display:inline-block;text-align:left;vertical-align:middle}.sub-button-sub[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#2ba2fa,#0092fc,#0081fb,#006ff8,#0f5af2);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.sub-button-cancel[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#ff8c2b,#ff8328,#ff7a25,#ff7024,#ff6623);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.header[_ngcontent-%COMP%]{position:fixed;top:0;width:100%;box-shadow:0 2px 20px 2px #0000001f;z-index:10}.wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:360px;width:100%;justify-content:center;align-items:center}.loader-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;content-alignment:center;align-items:center;background-color:#0f0f0f80;border-radius:5px;height:200px;width:250px;box-shadow:1px 1px 1px #2f4f4f}.loader[_ngcontent-%COMP%]{border:1px solid white;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;width:80px;height:80px;animation-name:_ngcontent-%COMP%_loading;animation-duration:.7s;animation-iteration-count:infinite;animation-timing-function:linear}.loader-text[_ngcontent-%COMP%]{margin-top:10px;padding-top:10px;color:#d3d3d3;font-family:Lato,sans-serif;font-size:18px;animation-name:_ngcontent-%COMP%_fading;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}.description-box[_ngcontent-%COMP%]{margin-top:10px;padding:10px 5px;font-family:Lato,sans-serif;font-size:18px;height:35px;line-height:35px;width:500px;background-color:#fff;text-align:center;border-radius:5px}.modal-enter-msisdn[_ngcontent-%COMP%]{font-size:28px}.modal-enter-msisdn[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px;height:40px;border-color:#000;border:1px solid;margin-left:5px}.modal-enter-msisdn[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:170px;padding:3px}.modal-enter-otp-pin[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:40px;border-color:#000;border:1px solid;width:130px;margin-left:10px;text-align:center;font-size:28px}@supports not (-webkit-overflow-scrolling: touch){.modal-enter-otp-pin[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:28px}}@keyframes _ngcontent-%COMP%_loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_fading{0%,to{opacity:.05}50%{opacity:.95}}.m-container-padding[_ngcontent-%COMP%]{padding:70px 20px 50px;margin-bottom:20px}.article-container[_ngcontent-%COMP%]{padding:5px 0;border-bottom:1px solid;border-color:inherit}.article-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-transform:uppercase}.img-loader[_ngcontent-%COMP%]{margin:40px;padding-bottom:60px;text-align:center}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.modal-header[_ngcontent-%COMP%]{border-bottom:0px;text-align:center}.modal-title[_ngcontent-%COMP%]{font-weight:700;font-size:16px;color:#000;padding-top:20px}.modal-body[_ngcontent-%COMP%]{padding-bottom:15px;padding-left:14px}.install-btn[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#2ba2fa,#0092fc,#0081fb,#006ff8,#0f5af2);border-width:0px!important;color:#fff!important;padding:10px;border-radius:6px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase;width:146px}.close[_ngcontent-%COMP%]{font-size:28px;opacity:1}']})}return Ye})(),children:[{path:"",redirectTo:"matchme",pathMatch:"full"},{path:"loginregistration",component:Mi,canActivate:[d]},{path:"profile",component:wt,canActivate:[d]},{path:"matchme",component:Wn,canActivate:[d]},{path:"conversations",component:ut,canActivate:[d]},{path:"users",component:pn,canActivate:[d]},{path:"chat",component:H,canActivate:[d]},{path:"**",redirectTo:"crmHome"}]}];let ni=(()=>{class Ye{static#e=this.\u0275fac=function(ae){return new(ae||Ye)};static#t=this.\u0275mod=l.\u0275\u0275defineNgModule({type:Ye});static#i=this.\u0275inj=l.\u0275\u0275defineInjector({imports:[e.Bz.forChild(ht),e.Bz]})}return Ye})();var he=a(3668);let je=(()=>{class Ye{constructor(D,ae){this.authService=D,this.commonService=ae}intercept(D,ae){let _e=this.authService.getToken();return _e&&(D=D.clone({setHeaders:{Authorization:`Bearer ${_e}`}})),ae.handle(D).pipe((0,w.K)((it,Dt)=>{if(401===it.status)return this.handleAuthError(),(0,x.of)(it);throw it}))}handleAuthError(){this.commonService.logOut()}static#e=this.\u0275fac=function(ae){return new(ae||Ye)(l.\u0275\u0275inject(f.e),l.\u0275\u0275inject(v.d))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac})}return Ye})();a(2687),a(9521),a(3353),a(2654);let Kn=(()=>{class Ye{}return Ye.\u0275fac=function(D){return new(D||Ye)},Ye.\u0275mod=l.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=l.\u0275\u0275defineInjector({imports:[n.CommonModule,It.BQ,It.BQ]}),Ye})();var Cr=a(3683),or=a(8455),Nr=a(5754);a(7340);let Qr=(()=>{class Ye{}return Ye.\u0275fac=function(D){return new(D||Ye)},Ye.\u0275mod=l.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=l.\u0275\u0275defineInjector({imports:[n.CommonModule,It.BQ,he.ZD,he.ZD,It.BQ]}),Ye})();var Xn=a(9095),Uo=a(6255),_o=a(8014);let jn=(()=>{class Ye{static#e=this.\u0275fac=function(ae){return new(ae||Ye)};static#t=this.\u0275mod=l.\u0275\u0275defineNgModule({type:Ye});static#i=this.\u0275inj=l.\u0275\u0275defineInjector({providers:[{provide:u.TP,useClass:je,multi:!0}],imports:[n.CommonModule,ni,q.u5,Pe.h,u.JF,Kn,Cr.g0,k.uw,K.x4,q.UX,or.wp,U.IF,Nr.Nn,lr,Qr,mt.gR,me.yu,xe.Ps,he.Cl,ne.To,Xn.yj,B.y,Uo.jT,_o.t,te.Zh]})}return Ye})()},5158:(G,P,a)=>{"use strict";a.d(P,{e:()=>e});var n=a(4650);let e=(()=>{class o{constructor(){}getToken(){return localStorage.getItem("token")}setToken(v){localStorage.setItem("token",v)}removeToken(){localStorage.removeItem("token")}static#e=this.\u0275fac=function(d){return new(d||o)};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},4064:(G,P,a)=>{"use strict";a.d(P,{d:()=>g});var n=a(529),e=a(591),o=a(1086),l=a(7221),v=a(1411),d=a(8136),u=a(4650),b=a(9664),C=a(5158),x=a(9066),w=a(8729);let g=(()=>{class f{constructor(j,B,Z,le,q){this.http=j,this.sails=B,this.authService=Z,this.dataService=le,this.router=q,this.appId=v.Jf,this.userId=v.xS,this.chatUrl=v.Qb,this.commonServerUrl=`${d.L}/api`,this.initialRoute=new e.X("matchme"),this.localStorageUUIDString="UUID",this.updateObj={},this.popUpedSub=!1,this.httpOptions={headers:new n.WM({"Content-Type":"application/json"})}}setWithExpiry(j,B){const q={loggedUser:j,isLoggedIn:B,expiry:(new Date).getTime()+432e5};localStorage.setItem(`chatLogin-${this.appId}`,JSON.stringify(q))}checkUserLoggedIn(){const B=localStorage.getItem(`chatLogin-${this.appId}`);if(!B)return!1;const Z=JSON.parse(B);return!!Z.isLoggedIn&&((new Date).getTime()>Z.expiry?(this.setWithExpiry(Z.loggedUser,!1),!1):(this.setWithExpiry(Z.loggedUser,!0),!0))}getInitialRoute(j){this.getInitialRouteContinue(j).subscribe(B=>{B.initialRoute&&this.initialRoute.next(B.initialRoute)},B=>{console.log("err => ",B)})}getInitialRouteContinue(j){let B=new n.LE;return B=B.set("appId",j),this.http.get(`${this.commonServerUrl}/getInitialRoute`,{params:B}).pipe((0,l.K)(this.handleError(`Error on getting app settings:initialRoute. appId : ${j}`)))}getNotifications(j,B){const Z=`${this.chatUrl}/api/getNotifications`,le=this.authService.getToken();return this.sails.get(Z,{params:{appId:B,loggedMemberId:j},headers:{Authorization:"Bearer "+le}}).pipe((0,l.K)(this.handleError(`Error get Converstion Id - ${j}`)))}listenOnNotifications(){return this.sails.on("chatlikes")}matchMember(j,B){const Z=`${this.chatUrl}/api/matchMember`,le=this.authService.getToken();return this.sails.post(Z,{appId:this.appId,likedBy:B,likedTo:j},{headers:{Authorization:"Bearer "+le}}).pipe((0,l.K)(this.handleError("matchMember")))}getImageRelatedInfo(){return this.http.get(`${this.chatUrl}/api/getImageRelatedInfo`).pipe((0,l.K)(this.handleError("Can not get Image related Info")))}chekUserActivation(){let j=`${this.chatUrl}/api/chekUserActivation`,B=new n.LE;return B=B.set("loggedMemberId","unknownUser"==this.userId?"unknownMember":this.loggedMemberId),B=B.set("appId",this.appId),this.http.get(j,{params:B}).pipe((0,l.K)(this.handleError("Can not check user status.")))}checkRequestStatus(j,B){let Z=`${this.chatUrl}/api/checkRequestStatus`,le=new n.LE;return le=le.set("likedTo",B),le=le.set("likedBy",j),this.http.get(Z,{params:le}).pipe((0,l.K)(this.handleError("Can not check like request status.")))}setImageCountLimit(j){this.imageCountLimit=j}setPopUpedSub(j){this.popUpedSub=j}setSendImageSizeLimit(j){this.sendImageSizeLimit=j}setProfImageSizeLimit(j){this.profImageSizeLimit=j}setLoggedMemberId(j){this.loggedMemberId=j,""!=j&&null!=j&&null!=j&&this.setWithExpiry(this.loggedMemberId,!0)}setLikedByMemberId(j){this.likedByMemberId=j}setConversationId(j){this.conversationId=j}setChattingMemberId(j){this.chattingMemberId=j}setUnseenChatMemberId(j){this.unseenChatMemberIds=j}startListenOnLoginActionFlow(j){this.updateChatUserDeviceUUID(j).subscribe(B=>{B&&this.getChatUserLoggedDeviceUUID(j).subscribe(Z=>{this.updateObj.deviceUUID==Z.deviceUUID&&this.listenCrmUserLoginDevice()})})}updateChatUserDeviceUUID(j){return this.uuidLocalStorage=localStorage.getItem(this.localStorageUUIDString),this.updateObj.deviceUUID=this.uuidLocalStorage?this.uuidLocalStorage:null,this.sails.post(`${this.chatUrl}/updateChatUserDeviceUUID/${j}`,this.updateObj).pipe((0,l.K)(this.handleError(`Error Updating crmUser device UUID. userId : ${j}`)))}getChatUserLoggedDeviceUUID(j){let B=new n.LE;return B=B.set("chatUserId",j),this.sails.get(`${this.chatUrl}/getChatUserLoggedDeviceUUID`,{params:B}).pipe((0,l.K)(this.handleError(`Error on getting user logged device. userId : ${j}`)))}listenCrmUserLoginDevice(){this.listenOn().subscribe(j=>{j.deviceUUID!=this.uuidLocalStorage&&this.showNotification("Logout Warning!","Someone has logged into your account with an another device.",!1)})}listenOn(){return this.sails.on("track_device")}showNotification(j,B,Z){this.dataService.crmNoteTitle=j,this.dataService.crmNoteContent=B,this.dataService.crmLoginRouteEnabled=Z,window.focus(),$(()=>{$("#appStatusModel").modal("hide"),$("#chatWarnModal").modal("show"),$("#chatWarnModal").off("hidden.bs.modal")})}getImageUploadServerUrl(j,B){let Z=`${this.chatUrl}/api/getImageUploadServerUrl`,le=new n.LE;return le=le.set("appId",j),le=le.set("cmsUserId",B),this.http.get(Z,{params:le}).pipe((0,l.K)(this.handleError("Error in getting image uploading server url..")))}handleError(j="operation",B){return Z=>(console.error(Z),(0,o.of)(B))}logOut(){let B=localStorage.getItem(`chatLogin-${this.appId}`),Z=JSON.parse(B);localStorage.removeItem("isUserLoggedIn"),localStorage.removeItem("UUID"),localStorage.removeItem(this.appId+"msisdn"),this.setWithExpiry(Z.loggedUser,!1),this.setLoggedMemberId(""),this.setLikedByMemberId(""),this.setConversationId(""),this.setChattingMemberId(""),this.router.navigate(["/chatTemplate/loginregistration"])}getUnseenChatCounts(j){return this.sails.get(`${this.chatUrl}/api/getUnseenChatCounts`,{params:{appId:this.appId,loggedMemberId:j}})}listenOnMessageCount(){return this.sails.on("mailbox_status")}removeCurrentChatMessageCount(j){const B=`${this.chatUrl}/api/removeCurrentChatMessageCount`;let Z=new n.LE;return Z=Z.set("from",j.from),Z=Z.set("to",j.to),this.http.get(B,{params:Z})}static#e=this.\u0275fac=function(B){return new(B||f)(u.\u0275\u0275inject(n.eN),u.\u0275\u0275inject(b.qq),u.\u0275\u0275inject(C.e),u.\u0275\u0275inject(x.V),u.\u0275\u0275inject(w.F0))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},522:(G,P,a)=>{"use strict";a.d(P,{p:()=>l});var n=a(6895),e=a(4006),o=a(4650);let l=(()=>{class v{static#e=this.\u0275fac=function(b){return new(b||v)};static#t=this.\u0275mod=o.\u0275\u0275defineNgModule({type:v});static#i=this.\u0275inj=o.\u0275\u0275defineInjector({imports:[n.CommonModule,e.u5,e.UX]})}return v})()},7289:(G,P,a)=>{"use strict";a.d(P,{n:()=>v});var n=a(5861),e=a(4650),o=a(3705),l=a(4006);let v=(()=>{class d{constructor(b){this.httpSerivce=b,this.fullCountNumber=0,this.submitClickEvent=new e.EventEmitter,this.selectedValue=0,this.articles=[]}ngOnInit(){this.loadCountAndPostions()}loadCountAndPostions(){var b=this;return(0,n.Z)(function*(){if(b.catId&&b.articleId){let C=yield b.httpSerivce.getArticlePositions(b.catId);b.fullCountNumber=C.count,b.articles=C.articles,b.setSelectedValue()}})()}setSelectedValue(){const b=this.articles.filter(C=>C.id===this.articleId)[0];this.selectedValue=b.index}onBlur(){if(this.selectedValue<=this.fullCountNumber&&!(this.selectedValue<1)){let b=this.articles[this.selectedValue-1];this.selectedValue=b.index,this.submitClickEvent.emit({loadedArticle:b})}else this.setSelectedValue()}getSelectedValue(){return this.setSelectedValue(),this.selectedValue}submitClickEventClicked(b){let C,x=0;"next"==b?x=this.selectedValue<this.fullCountNumber?this.selectedValue+1:this.selectedValue:"previous"==b?x=this.selectedValue<=1?this.selectedValue:this.selectedValue-1:"last"==b?x=this.selectedValue<this.fullCountNumber?this.articles.length:this.selectedValue:"first"==b&&(x=this.selectedValue<=1?this.selectedValue:1),x&&0!=x&&(C=this.articles[x-1],this.selectedValue=C.index,this.submitClickEvent.emit({loadedArticle:C}))}static#e=this.\u0275fac=function(C){return new(C||d)(e.\u0275\u0275directiveInject(o.O))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:d,selectors:[["app-page-paginations"]],inputs:{fullCountNumber:["fullCount","fullCountNumber"],selectedValue:"selectedValue",catId:"catId",articleId:"articleId"},outputs:{submitClickEvent:"btnClick"},decls:21,vars:2,consts:[[1,"paginator-container"],[1,"section"],[1,"main-header-font",3,"click"],["type","text",1,"main-header-font",3,"ngModel","blur","ngModelChange"],[1,"section","main-header-font"]],template:function(C,x){1&C&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"button",2),e.\u0275\u0275listener("click",function(){return x.submitClickEventClicked("first")}),e.\u0275\u0275text(3," << "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",1)(5,"button",2),e.\u0275\u0275listener("click",function(){return x.submitClickEventClicked("previous")}),e.\u0275\u0275text(6," < "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",1)(8,"input",3),e.\u0275\u0275listener("blur",function(){return x.onBlur()})("ngModelChange",function(g){return x.selectedValue=g}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"div",4)(10,"span"),e.\u0275\u0275text(11," / "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"div",4)(13,"span"),e.\u0275\u0275text(14),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"div",1)(16,"button",2),e.\u0275\u0275listener("click",function(){return x.submitClickEventClicked("next")}),e.\u0275\u0275text(17," > "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(18,"div",1)(19,"button",2),e.\u0275\u0275listener("click",function(){return x.submitClickEventClicked("last")}),e.\u0275\u0275text(20," >> "),e.\u0275\u0275elementEnd()()()),2&C&&(e.\u0275\u0275advance(8),e.\u0275\u0275property("ngModel",x.selectedValue),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" ",x.fullCountNumber,""))},dependencies:[l.Fj,l.JJ,l.On],styles:[".paginator-container[_ngcontent-%COMP%]{display:flex;width:100%;padding:10px}.section[_ngcontent-%COMP%]{flex:1;text-align:center;align-self:baseline}button[_ngcontent-%COMP%]{width:90%;background-color:transparent;font-weight:700;border-radius:5px}input[_ngcontent-%COMP%], span[_ngcontent-%COMP%]{width:90%;background-color:transparent;font-weight:700;border-radius:5px;text-align:center}"]})}return d})()},129:(G,P,a)=>{"use strict";a.d(P,{v:()=>C});var n=a(5861),e=a(5452),l=a(4650),v=a(3705),d=a(6895);function u(x,w){if(1&x&&(l.\u0275\u0275elementStart(0,"li")(1,"h2")(2,"b"),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(4,"p"),l.\u0275\u0275text(5),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(6,"p"),l.\u0275\u0275text(7),l.\u0275\u0275pipe(8,"date"),l.\u0275\u0275elementEnd(),l.\u0275\u0275element(9,"hr",2),l.\u0275\u0275elementEnd()),2&x){const g=w.$implicit;l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(g.title[0]),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(g.description[0]),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(8,3,g.pubDate))}}function b(x,w){if(1&x&&(l.\u0275\u0275elementStart(0,"ul"),l.\u0275\u0275template(1,u,10,5,"li",1),l.\u0275\u0275elementEnd()),2&x){const g=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",g.RssData.rss.channel[0].item)}}let C=(()=>{class x{constructor(g){this.httpSerivce=g,this.articles=[]}ngOnInit(){this.loadRssFeedData()}loadRssFeedData(){var g=this;return(0,n.Z)(function*(){if(g.rssFeedUrl){const f=yield g.httpSerivce.getRssFeedData(g.articleId);(0,e.parseString)(f,(j,B)=>{g.RssData=B})}})()}static#e=this.\u0275fac=function(f){return new(f||x)(l.\u0275\u0275directiveInject(v.O))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:x,selectors:[["app-rss-feed"]],inputs:{catId:"catId",articleId:"articleId",rssFeedUrl:"rssFeedUrl"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"styled-hr"]],template:function(f,S){1&f&&l.\u0275\u0275template(0,b,2,1,"ul",0),2&f&&l.\u0275\u0275property("ngIf",S.RssData)},dependencies:[d.NgForOf,d.NgIf,d.DatePipe],styles:["ul[_ngcontent-%COMP%]{display:block;list-style-type:none;margin:20px;max-height:400px;overflow:hidden;overflow-y:scroll}li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{background:#999;color:#fff;display:block;padding:10px;margin-bottom:10px}li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background:#555}.styled-hr[_ngcontent-%COMP%]{border:0;height:1px;background:#333;background-image:linear-gradient(to right,#ccc,#333,#ccc)}"]})}return x})()},3705:(G,P,a)=>{"use strict";a.d(P,{O:()=>l});var n=a(529),e=a(8136),o=a(4650);let l=(()=>{class v{constructor(u){this.http=u}getArticlePositions(u){return new Promise((b,C)=>{const x={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("categoryID",u)};this.http.get(e.L+"/article/category/getCategoriesWithCount",x).subscribe(w=>{b(w)},w=>C(w))})}getRssFeedData(u){return new Promise((b,C)=>{const x={headers:new n.WM({"Content-Type":"application/xml"}),params:(new n.LE).append("articleId",u),responseType:"text"};this.http.get(e.L+"/article/getRssFeedData",x).subscribe(w=>{b(w)},w=>C(w))})}static#e=this.\u0275fac=function(b){return new(b||v)(o.\u0275\u0275inject(n.eN))};static#t=this.\u0275prov=o.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})()},8249:(G,P,a)=>{"use strict";a.d(P,{t:()=>o});var n=a(9095),e=a(4650);let o=(()=>{class l{constructor(d,u){this.dialogRef=d,this.data=u,this.noteData=u,this.noteData.title&&(this.title=this.noteData.title),console.log(u,"data from const")}onNoClick(){this.dialogRef.close()}afterClosed(d){this.noteData=d,console.log(d,"data"),this.dialogRef.close(d)}static#e=this.\u0275fac=function(u){return new(u||l)(e.\u0275\u0275directiveInject(n.hV),e.\u0275\u0275directiveInject(n.eJ))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:l,selectors:[["app-save-confirmation-dialog"]],decls:8,vars:1,consts:[[1,"save-dialog-main"],["mat-dialog-title","",1,"dialog-header","main-content-font"],["mat-dialog-actions","",1,"action-button"],["mat-raised-button","","cdkFocusInitial","",1,"yes-button","main-button",3,"click"],["mat-raised-button","",1,"no-button","main-button",3,"click"]],template:function(u,b){1&u&&(e.\u0275\u0275elementStart(0,"div",0)(1,"h1",1),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",2)(4,"button",3),e.\u0275\u0275listener("click",function(){return b.afterClosed(b.data)}),e.\u0275\u0275text(5," Yes "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"button",4),e.\u0275\u0275listener("click",function(){return b.onNoClick()}),e.\u0275\u0275text(7,"No"),e.\u0275\u0275elementEnd()()()),2&u&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(b.title))},styles:[".save-dialog-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;background-color:#e5e0fa;padding:24px 0}.save-dialog-main[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#000!important;font-size:18px}.action-button[_ngcontent-%COMP%]{display:flex;gap:30px}.action-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:3px 10px;background-color:#fff!important;border-color:#fff!important;color:#000!important;border-radius:7px!important}  .mat-dialog-container{padding:0}"]})}return l})()},5114:(G,P,a)=>{"use strict";a.d(P,{E:()=>C});var n=a(1086),e=a(529),o=a(7221),l=a(8136),v=a(1411),d=a(4650),u=a(9066),b=a(3648);let C=(()=>{class x{constructor(g,f,S){this.http=g,this.dataService=f,this.toastr=S,this.appId=v.Jf,this.crmServerUrl=`${l.L}/api`,this.localStorageUUIDString="UUID",this.isDeviceChanged=!1,this.httpOptions={headers:new e.WM({"Content-Type":"application/json"})},this.appFormDataID=localStorage.getItem("crmId"),this.noteID=localStorage.getItem("noteId")}setWithExpiry(g){const j={isLoggedIn:g,expiry:(new Date).getTime()+432e5};localStorage.setItem(`crmLogin-${this.appId}`,JSON.stringify(j))}checkUserLoggedIn(){const f=localStorage.getItem(`crmLogin-${this.appId}`);if(!f)return!1;const S=JSON.parse(f);return!!S.isLoggedIn&&((new Date).getTime()>S.expiry?(this.setWithExpiry(!1),!1):(this.setWithExpiry(!0),!0))}startListenOnLoginActionFlow(g){this.updateCrmUserDeviceUUID(g).subscribe(f=>{f&&console.log("Successfully updated device uuid.")})}updateCrmUserDeviceUUID(g){return this.uuidLocalStorage=localStorage.getItem(this.localStorageUUIDString),this.http.put(`${this.crmServerUrl}/updateCrmUserDeviceUUID/${g}`,{deviceUUID:this.uuidLocalStorage?this.uuidLocalStorage:null},this.httpOptions).pipe((0,o.K)(this.handleError(`Error Updating crmUser device UUID. userId : ${g}`)))}listenCrmUserLoginDevice(g){this.getCrmUserLoggedDeviceUUID(g).subscribe(f=>{f.uuid!=this.uuidLocalStorage&&(this.isDeviceChanged=!0)})}getCrmUserLoggedDeviceUUID(g){let f=new e.LE;return f=f.set("crmUserId",g),this.http.get(`${this.crmServerUrl}/getCrmUserLoggedDeviceUUID`,{params:f}).pipe((0,o.K)(this.handleError(`Error on getting user logged device. userId : ${g}`)))}checkIsFromCmsView(){return!!this.dataService.isFromCMSAppView}checkCrmUserStatusAndAppStatus(){let g=this.checkIsFromCmsView(),f=v.Bv,S=new e.LE;S=S.set("appId",this.appId),S=S.set("crmUserId",this.crmUserID);const j=`${this.crmServerUrl}/checkCrmUserStatusAndAppStatus`;return g&&f?(0,n.of)(!0):this.http.get(j,{params:S}).pipe((0,o.K)(this.handleError(`Error on cheking. userId : ${this.crmUserID}`)))}changeDeviceChangeStatus(g){this.isDeviceChanged=g}changeCrmUserId(g){this.crmUserID=g}changeAppFormDataId(g){this.appFormDataID=g}changeNoteId(g){this.noteID=g}changeAddEditCustomerStatus(g){this.isAddCustomer=g}showCrmNotification(g,f,S){this.dataService.crmNoteTitle=g,this.dataService.crmNoteContent=f,this.dataService.crmLoginRouteEnabled=S,this.showNotification()}showCrmError(g,f,S){this.dataService.crmNoteTitle=g,this.dataService.crmNoteContent=f,this.dataService.crmLoginRouteEnabled=S,this.showErrorMsg()}showToaster(g,f,S){let j={timeOut:5e3,positionClass:"toast-top-right",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"};S?this.toastr.error(g,f,j):this.toastr.success(g,f,j)}showNotification(){window.focus(),$(()=>{$("#appStatusModel").modal("hide"),$("#crmErrorModal").modal("show"),$("#crmErrorModal").off("hidden.bs.modal")})}showErrorMsg(){window.focus(),$(()=>{$("#appStatusModel").modal("hide"),$("#crmErrorModalNew").modal("show"),$("#crmErrorModalNew").off("hidden.bs.modal")}),setTimeout(()=>{$("#crmErrorModalNew").modal("hide")},3e3)}handleError(g="operation",f){return S=>(console.error(S),(0,n.of)(f))}static#e=this.\u0275fac=function(f){return new(f||x)(d.\u0275\u0275inject(e.eN),d.\u0275\u0275inject(u.V),d.\u0275\u0275inject(b._W))};static#t=this.\u0275prov=d.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},8552:(G,P,a)=>{"use strict";a.r(P),a.d(P,{CrmTemplateModule:()=>Nn});var n=a(6895),e=a(8729),o=a(4650),l=a(5114);let v=(()=>{class ht{constructor(he,je){this.commonInfoService=he,this.router=je}canActivate(he,je){let Je=this.commonInfoService.checkUserLoggedIn();if(Je)if("loginPage"==he.routeConfig.path)this.router.navigate(["/crm/crmHome"]);else{if(""!=he.routeConfig.path){localStorage.setItem("isCrmLogin",JSON.stringify(!1));let At=localStorage.getItem("crmUserId");return this.commonInfoService.changeCrmUserId(At),Je}this.router.navigate(["crmHome"])}else{if("loginPage"==he.routeConfig.path)return!0;this.router.navigate(["/crm/loginPage"])}}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275inject(l.E),o.\u0275\u0275inject(e.F0))};static#t=this.\u0275prov=o.\u0275\u0275defineInjectable({token:ht,factory:ht.\u0275fac,providedIn:"root"})}return ht})();var d=a(1411),u=a(9066),b=a(9792),C=a(6026),x=a(9282),w=a(3048),g=a(9209),f=a(7820),S=a(9704),j=a(1086),B=a(529),Z=a(7221),le=a(8136);let q=(()=>{class ht{constructor(he){this.http=he,this.crmLoginUrl=`${le.L}/api`,this.appId=d.Jf,this.httpOptions={headers:new B.WM({"Content-Type":"application/json"})}}getCrmAppDetails(he,je){let Je=new B.LE;return Je=Je.set("appId",he),Je=Je.set("cmsUserId",je),this.http.get(`${this.crmLoginUrl}/getCrmAppDetails`,{params:Je}).pipe((0,Z.K)(this.handleError(`Error on Getting App Data on appId : ${this.appId}`)))}getContactUsData(){return this.http.get(`${this.crmLoginUrl}/getContactUsData/${this.appId}`).pipe((0,Z.K)(this.handleError(`Error on Getting Contact Us Data on appId : ${this.appId}`)))}getCrmUser(he,je){return this.http.get(`${this.crmLoginUrl}/getOneCrmUser?email=${he}&pass=${je}&appId=${this.appId}`).pipe((0,Z.K)(this.handleError(`Error getCrmUser Email : ${he}`)))}handleError(he="operation",je){return Je=>(console.error(Je),(0,j.of)(je))}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275inject(B.eN))};static#t=this.\u0275prov=o.\u0275\u0275defineInjectable({token:ht,factory:ht.\u0275fac,providedIn:"root"})}return ht})();var U,X=a(3634),K=a(2037);let me=(()=>{class ht{static#e=this.PUSH_TOKEN_LOCAL_STORAGE_KEY="pushtoken";onScroll(){this.isInstallAvailable&&!this.ishidePopup&&$(".pwa-install-modal").modal("show")}constructor(he,je,Je,At,li,zi,dn,en,Hn,Tn,Bo,Fi,bn,cn){this.commonInfoService=he,this.dataService=je,this.device=Je,this.title=At,this.appDataService=li,this.preventScreenshot=zi,this.imageCacheService=dn,this.swPush=en,this.subscription=Hn,this.loginPageService=Tn,this.categoryService=Bo,this.push=Fi,this.ngZone=bn,this.router=cn,this.appId=d.Jf,this.userId=d.xS,this.localStorageUUIDString="UUID",this.isAppNamingWindow=!1,this.isSubscribing=!1,this.isUnsubscribing=!1,this.renewalIntervals=[],this.isFromCMSAppView=!1,this.isFromPushMessage=!1,this.isCordovaApp=!1,this.isInstallAvailable=!1,this.ishidePopup=!1,this.msgContent="",this.headTitle="",this.results=[],this.alive=!0,this.hideImageLoadingSpinner=!0,this.isDeviceChanged=!1,"unknownUser"==this.userId&&(this.isAppNamingWindow=!0),this.onDeviceReady(),this.isCordovaApp=this.dataService.isCordovaApp(),this.title.changeTitle(d.u2),U=this,this.title.setLocation("crm_parent"),window.addEventListener("beforeinstallprompt",dr=>{this.promptEvent=dr,this.isInstallAvailable=!0}),window.addEventListener("appinstalled",()=>{this.isInstallAvailable=!1,this.hidePopup()}),this.dataService.initialImageCount=0,this.dataService.hideImageLoadingSpinner(),this.title.getLocation().subscribe(dr=>{this.ishidePopupPath=dr.includes("/addNotePage"),this.ishidePopupPath&&this.hidePopup()})}ngOnInit(){this.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView"),this.appDataService.getPublishDetails().subscribe(he=>{if(this.appPublishDetails=he,he){this.isFreeApp=he.isFreeApp;const je=he.operators.filter(At=>"SUSPENDED"===At.status||"TERMINATED"===At.status||"DELETED"===At.status);this.getAppDetails(he&&"FREE"==he.operators[0].operator&&je.length)}if(!this.dataService.isIonicApp()){const je=!!this.appPublishDetails.disableScreenshots&&this.appPublishDetails.disableScreenshots;window.hasOwnProperty("cordova")&&this.enableOrDisableScreenshots(je)}})}ngAfterViewInit(){this.crmUserId=localStorage.getItem("crmUserId");let je=JSON.parse(localStorage.getItem(`crmLogin-${this.appId}`));this.crmUserId&&je.isLoggedIn&&this.commonInfoService.startListenOnLoginActionFlow(this.crmUserId),this.getDeviceUUID(),this.swPush.notificationClicks.subscribe(({notification:At})=>{this.dataService.pushMessage=At.body,this.dataService.inAppNotificationInfo=At.data.popUpPushInfo,this.notf=At.body,this.isFromPushMessage=!0,window.focus(),$(()=>{$("#appStatusModel").modal("hide"),$("#appPushNotificationModel").modal("show"),$("#appPushNotificationModel").off("hidden.bs.modal")})})}getAppDetails(he){this.loginPageService.getCrmAppDetails(this.appId,this.userId).subscribe(je=>{this.hasAppApproved=je.hasAppApproved,!this.isFromCMSAppView&&!this.hasAppApproved&&!this.isAppNamingWindow&&!he&&this.showCrmNotification(),this.initialData=je.appdata,localStorage.setItem("appData",JSON.stringify(this.initialData)),this.appId=this.initialData.id,localStorage.setItem("appId",this.appId)})}showCrmNotification(){this.commonInfoService.showCrmNotification("Warning!","Sorry you cannot access the app. Please contact Admin.",!0)}postDeviceToken(he){try{he+="&appversion="+U.dataService.getAPKVersion(window.navigator.userAgent),U.categoryService.sendDeviceToken(he).subscribe(je=>{U.callOnNotificationOpen()},je=>{console.log("Error while sending the device token to be persist.Error: "+je),U.callOnNotificationOpen()})}catch(je){console.log("Exception in pushSuccessCallback: "+je)}}pushSuccessCallback(he){he&&null!==he?localStorage[ht.PUSH_TOKEN_LOCAL_STORAGE_KEY]=he:localStorage.removeItem(ht.PUSH_TOKEN_LOCAL_STORAGE_KEY),U.push.onTokenRefresh(U.pushTokenRefreshSuccessCallback,U.pushTokenRefreshErrorCallback),U.postDeviceToken("deviceId="+he+"&uuid="+U.uuid)}pushErrorCallback(he){console.log("pushErrorCallback: "+he)}pushTokenRefreshSuccessCallback(he){localStorage[ht.PUSH_TOKEN_LOCAL_STORAGE_KEY]!==he&&U.postDeviceToken("deviceId="+he+"&uuid="+U.uuid+"&action=NEW_TOKEN")}pushTokenRefreshErrorCallback(he){console.log("pushTokenRefreshErrorCallback: "+he)}generatePushToken(){U.push.getToken(U.pushSuccessCallback,U.pushErrorCallback)}onNotificationOpenSuccessCallback(he){U.isFromPushMessage=!0,!he.tap&&he.body&&(U.dataService.pushMessage=he.body,$(()=>{$("#appStatusModel").modal("hide"),$("#appPushNotificationModel").modal("show"),$("#appPushNotificationModel").off("hidden.bs.modal")}))}onNotificationOpenErrorCallback(he){console.log("onNotificationOpenErrorCallback=>"+he)}callOnNotificationOpen(){this.dataService.isIonicApp()?U.push.onNotificationOpen(U.onNotificationOpenSuccessCallback,U.onNotificationOpenErrorCallback):window.FirebasePlugin.onMessageReceived(function(he){U.ngZone.run(()=>{U.onNotificationOpenSuccessCallback(he)})},function(he){U.onNotificationOpenErrorCallback(he)})}deviceUUIDCallback(he){!localStorage.getItem(U.localStorageUUIDString)&&he&&localStorage.setItem(U.localStorageUUIDString,he),U.subscription.getSubscriptionStatus({appId:U.appId,uuId:he}).subscribe(At=>{}),U.uuid=he,U.generatePushToken()}getDeviceUUID(){var he=localStorage.getItem(this.localStorageUUIDString);this.dataService.isFromBrowser()?(he||(he=this.dataService.getRandomId(),localStorage.setItem(U.localStorageUUIDString,he)),U.uuid=he):this.dataService.isIonicApp()?he?this.deviceUUIDCallback(he):this.device.getUUID(U.deviceUUIDCallback):document.addEventListener("deviceready",()=>{this.deviceUUIDCallback(he||device.uuid)},!1)}enableOrDisableScreenshots(he){he?this.preventScreenshot.enablePreventScreenshot().then(je=>console.log(je)).catch(je=>console.error(je)):this.preventScreenshot.disablePreventScreenshot().then(je=>console.log(je)).catch(je=>console.error(je))}onDeviceReady(){document.addEventListener("deviceready",()=>{this.dataService.isImageCacheInitialized.subscribe(he=>{he||this.initImageCache()})},!1)}initImageCache(){this.imageCacheService.initImageCache().then(()=>{this.dataService.changeIsImageCacheInitialized(!0)}).catch(()=>{console.error("ERROR: Init Cache."),this.dataService.changeIsImageCacheInitialized(!1)})}installPWAApp(){this.promptEvent.prompt(),this.promptEvent.userChoice.then(he=>{"accepted"===he.outcome?(console.log("User accepted the A2HS prompt"),this.isInstallAvailable=!1,this.hidePopup()):console.log("User dismissed the A2HS prompt"),this.promptEvent=null})}hidePopup(){this.ishidePopup=!0,$(".pwa-install-modal").modal("hide")}close(){this.isUnsubscribing=!1,this.isSubscribing=!1}static#t=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275directiveInject(l.E),o.\u0275\u0275directiveInject(u.V),o.\u0275\u0275directiveInject(b.G),o.\u0275\u0275directiveInject(C.y),o.\u0275\u0275directiveInject(x.U),o.\u0275\u0275directiveInject(w.W),o.\u0275\u0275directiveInject(g.y),o.\u0275\u0275directiveInject(f.Mk),o.\u0275\u0275directiveInject(S.E),o.\u0275\u0275directiveInject(q),o.\u0275\u0275directiveInject(X.G),o.\u0275\u0275directiveInject(K.G),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(e.F0))};static#i=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-crm-template"]],hostBindings:function(je,Je){1&je&&o.\u0275\u0275listener("scroll",function(){return Je.onScroll()},!1,o.\u0275\u0275resolveWindow)},decls:12,vars:0,consts:[["tabindex","-1","role","dialog","aria-labelledby","pwa install","aria-hidden","true",1,"modal","fade","pwa-install-modal"],[1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["id","exampleModalLongTitle",1,"modal-title"],[1,"modal-body","text-center"],[1,"btn","install-btn",3,"click"]],template:function(je,Je){1&je&&(o.\u0275\u0275element(0,"router-outlet"),o.\u0275\u0275elementStart(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"button",4),o.\u0275\u0275listener("click",function(){return Je.hidePopup()}),o.\u0275\u0275text(6," \xd7 "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"h5",5),o.\u0275\u0275text(8,"Click to install the app "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(9,"div",6)(10,"button",7),o.\u0275\u0275listener("click",function(){return Je.installPWAApp()}),o.\u0275\u0275text(11,"INSTALL"),o.\u0275\u0275elementEnd()()()()())},dependencies:[e.lC],styles:['.flex-row[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;margin:20px 0}.flex-row[_ngcontent-%COMP%]   .flex-col[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;padding:5px 10px}.flex-col[_ngcontent-%COMP%]{width:calc(100% / 3)}.flex-row[_ngcontent-%COMP%]   .flex-col[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{text-align:center;font-size:14px}.flex-row[_ngcontent-%COMP%]:last-child{padding-bottom:60px}.flex-row[_ngcontent-%COMP%]:first-child{padding-top:42px}.modal[_ngcontent-%COMP%]{text-align:center;padding:0!important}.modal[_ngcontent-%COMP%]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-4px}.modal-dialog[_ngcontent-%COMP%]{display:inline-block;text-align:left;vertical-align:middle}.sub-button-sub[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#2ba2fa,#0092fc,#0081fb,#006ff8,#0f5af2);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.sub-button-cancel[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#ff8c2b,#ff8328,#ff7a25,#ff7024,#ff6623);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.header[_ngcontent-%COMP%]{position:fixed;top:0;width:100%;box-shadow:0 2px 20px 2px #0000001f;z-index:10}.wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:360px;width:100%;justify-content:center;align-items:center}.loader-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;content-alignment:center;align-items:center;background-color:#0f0f0f80;border-radius:5px;height:200px;width:250px;box-shadow:1px 1px 1px #2f4f4f}.loader[_ngcontent-%COMP%]{border:1px solid white;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;width:80px;height:80px;animation-name:_ngcontent-%COMP%_loading;animation-duration:.7s;animation-iteration-count:infinite;animation-timing-function:linear}.loader-text[_ngcontent-%COMP%]{margin-top:10px;padding-top:10px;color:#d3d3d3;font-family:Lato,sans-serif;font-size:18px;animation-name:_ngcontent-%COMP%_fading;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}.description-box[_ngcontent-%COMP%]{margin-top:10px;padding:10px 5px;font-family:Lato,sans-serif;font-size:18px;height:35px;line-height:35px;width:500px;background-color:#fff;text-align:center;border-radius:5px}.modal-enter-msisdn[_ngcontent-%COMP%]{font-size:28px}.modal-enter-msisdn[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px;height:40px;border-color:#000;border:1px solid;margin-left:5px}.modal-enter-msisdn[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:170px;padding:3px}.modal-enter-otp-pin[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:40px;border-color:#000;border:1px solid;width:130px;margin-left:10px;text-align:center;font-size:28px}@supports not (-webkit-overflow-scrolling: touch){.modal-enter-otp-pin[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:28px}}@keyframes _ngcontent-%COMP%_loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_fading{0%,to{opacity:.05}50%{opacity:.95}}.m-container-padding[_ngcontent-%COMP%]{padding:70px 20px 50px;margin-bottom:20px}.article-container[_ngcontent-%COMP%]{padding:5px 0;border-bottom:1px solid;border-color:inherit}.article-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-transform:uppercase}.img-loader[_ngcontent-%COMP%]{margin:40px;padding-bottom:60px;text-align:center}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.modal-header[_ngcontent-%COMP%]{border-bottom:0px;text-align:center}.modal-title[_ngcontent-%COMP%]{font-weight:700;font-size:16px;color:#000;padding-top:20px}.modal-body[_ngcontent-%COMP%]{padding-bottom:15px;padding-left:14px}.install-btn[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#2ba2fa,#0092fc,#0081fb,#006ff8,#0f5af2);border-width:0px!important;color:#fff!important;padding:10px;border-radius:6px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase;width:146px}.close[_ngcontent-%COMP%]{font-size:28px;opacity:1}']})}return ht})();var xe=a(4006),ne=a(8377),Ze=a(2042),Oe=a(9818);let nt=(()=>{class ht{constructor(he,je,Je,At,li,zi){this.titleService=he,this.loginPageService=je,this.commonInfoService=Je,this.router=At,this.dataService=li,this.location=zi,this.appId=d.Jf,this.userId=d.xS,this.templateName=d.Bv,this.appTitle=d.u2,this.crmUser={},this.initialData={appName:""},this.email="",this.password="",this.msgContent="",this.headTitle="",this.commonInfoService.changeAddEditCustomerStatus(!1),this.isCrmContact=!1,localStorage.setItem("isCrmContact",JSON.stringify(this.isCrmContact)),this.isCrmLogin=!0,localStorage.setItem("isCrmLogin",JSON.stringify(this.isCrmLogin)),this.titleService.changeTitle("Login Page"),this.titleService.setLocation("/crm/loginPage")}ngOnInit(){this.getAppDetails()}getAppDetails(){this.loginPageService.getCrmAppDetails(this.appId,this.userId).subscribe(he=>{this.logoUrl=he.logoUrl,this.hasAppApproved=he.hasAppApproved,this.initialData=he.appdata,localStorage.setItem("appData",JSON.stringify(this.initialData)),this.appId=this.initialData.id,localStorage.setItem("appId",this.appId)})}loginInfo(he,je){let Je=this.commonInfoService.checkIsFromCmsView(),At=d.Bv;"unknownUser"!=this.userId?this.loginPageService.getCrmAppDetails(this.appId,this.userId).subscribe(li=>{this.hasAppApproved=li.hasAppApproved,this.initialData=li.appdata,localStorage.setItem("appData",JSON.stringify(this.initialData)),this.appId=this.initialData.id,localStorage.setItem("appId",this.appId);let zi=he.toLowerCase();this.hasAppApproved||Je&&"Crm"==At||"CrmV2"==At?this.loginPageService.getCrmUser(zi,je).subscribe(dn=>{this.crmUser=dn,this.crmUser?this.crmUser.isDeleted?this.showCannotAccessAppNotification():"ACTIVATED"==this.crmUser.status.code?(this.commonInfoService.startListenOnLoginActionFlow(this.crmUser.id),this.isCrmLogin=!1,localStorage.setItem("isCrmLogin",JSON.stringify(this.isCrmLogin)),localStorage.setItem("crmUserId",this.crmUser.id),this.commonInfoService.setWithExpiry(!0),this.commonInfoService.changeCrmUserId(this.crmUser.id),this.router.navigate(["/crm/crmHome"])):this.showCannotAccessAppNotification():this.showEmailPassErrorNotification()}):this.showCannotAccessAppNotification()}):this.showBlockAccessInPreviewNotification()}showBlockAccessInPreviewNotification(){this.commonInfoService.setWithExpiry(!1),this.commonInfoService.showCrmNotification("Warning!","This functionality is not available in the app preview.",!1)}showCannotAccessAppNotification(){this.commonInfoService.setWithExpiry(!1),this.commonInfoService.showCrmNotification("Warning!","Sorry you cannot access the app. Please contact Admin.",!1)}showEmailPassErrorNotification(){this.commonInfoService.setWithExpiry(!1),this.commonInfoService.showCrmNotification("Warning!","The Email or password you entered is incorrect.",!1)}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275directiveInject(C.y),o.\u0275\u0275directiveInject(q),o.\u0275\u0275directiveInject(l.E),o.\u0275\u0275directiveInject(e.F0),o.\u0275\u0275directiveInject(u.V),o.\u0275\u0275directiveInject(n.Location))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-login-page"]],decls:17,vars:7,consts:[[1,"login-card"],[1,"login-card-content"],["mat-card-image","","alt","",1,"card-image",3,"src"],[1,"app-name-div"],[1,"app-name","main-header-font"],["name","loginForm"],["loginForm","ngForm"],[1,"input-position"],["placeholder","Email","type","email","matInput","","name","userEmail","email","true","ngModel","","pattern","^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$","required","",1,"input-info-field",3,"ngModel","ngModelChange"],["placeholder","Password","type","password","matInput","","name","userPassword","required","",1,"input-info-field",3,"ngModel","ngModelChange"],["type","submit","mat-raised-button","",1,"main-button","login-button",3,"disabled","click"]],template:function(je,Je){if(1&je&&(o.\u0275\u0275elementStart(0,"mat-card",0)(1,"mat-card-content",1)(2,"div"),o.\u0275\u0275element(3,"img",2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"div",3)(5,"span",4),o.\u0275\u0275text(6),o.\u0275\u0275pipe(7,"uppercase"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(8,"form",5,6)(10,"div",7)(11,"input",8),o.\u0275\u0275listener("ngModelChange",function(li){return Je.email=li}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(12,"div",7)(13,"input",9),o.\u0275\u0275listener("ngModelChange",function(li){return Je.password=li}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(14,"div")(15,"button",10),o.\u0275\u0275listener("click",function(){return Je.loginInfo(Je.email,Je.password)}),o.\u0275\u0275text(16," Login "),o.\u0275\u0275elementEnd()()()()()),2&je){const At=o.\u0275\u0275reference(9);o.\u0275\u0275advance(3),o.\u0275\u0275propertyInterpolate("src",Je.logoUrl,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(7,5,Je.initialData.appName)),o.\u0275\u0275advance(5),o.\u0275\u0275property("ngModel",Je.email),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngModel",Je.password),o.\u0275\u0275advance(2),o.\u0275\u0275property("disabled",!At.form.valid)}},dependencies:[xe._Y,xe.Fj,xe.JJ,xe.JL,xe.Q7,xe.c5,xe.on,ne.S$,ne.Qi,ne.k0,Ze.k0,xe.On,xe.F,Oe.eB,n.UpperCasePipe],styles:[".login-card[_ngcontent-%COMP%]{text-align:-webkit-center;background-color:transparent;border:none;box-shadow:none;width:100%;min-height:100vh;height:auto;padding-top:0;margin:0%;display:flex;align-items:center}.login-card-content[_ngcontent-%COMP%]{width:100%;padding:0%;margin:0%}.app-name-div[_ngcontent-%COMP%]{text-align:-webkit-center;margin:0 0 35px}.app-name[_ngcontent-%COMP%]{color:#fff;font-size:x-large;letter-spacing:1mm;text-align:center}.card-image[_ngcontent-%COMP%]{text-align:center;max-width:250px;margin:0 0 10px}.input-position[_ngcontent-%COMP%]{margin:15px}[_ngcontent-%COMP%]::placeholder{color:#adadad;text-align:center;font-size:medium;font-weight:450;letter-spacing:1.5px}.input-info-field[_ngcontent-%COMP%]{padding-left:15px;text-align:left;font-size:medium;background-color:#fff;height:40px;width:90%;border:none}.login-button[_ngcontent-%COMP%]{font-size:medium!important;font-weight:550!important;letter-spacing:1.5px!important;color:#fff;text-align:center!important;background-color:transparent;border-color:#fff;border-width:3px;border:solid;border-radius:7px;margin-top:30px!important;padding-left:20px!important;padding-right:20px!important}.login-button-disabled[_ngcontent-%COMP%]{opacity:.5!important;pointer-events:none!important;font-size:medium!important;font-weight:550!important;letter-spacing:1.5px!important;color:#fff;text-align:center!important;background-color:transparent;border-color:#fff;border-width:3px;border:solid;border-radius:7px;margin-top:30px!important;padding-left:20px!important;padding-right:20px!important}"]})}return ht})();var qe=a(9095);let ct=(()=>{class ht{constructor(he){this.http=he,this.crmServerUrl=`${le.L}/api`,this.appId=d.Jf,this.cmsUserId=d.xS,this.crmUserId=localStorage.getItem("crmUserId"),this.httpOptions={headers:new B.WM({"Content-Type":"application/json"})}}showCustomerInfo(he){const je=`${this.crmServerUrl}/getOneCustomer`;let Je=(new B.LE).set("cstmrId",he).set("cmsUserId",this.cmsUserId);return this.http.get(je,{params:Je}).pipe((0,Z.K)(this.handleError(`Error getCustomer id : ${he}`)))}getAppFormFields(he){return this.http.get(`${this.crmServerUrl}/getAppFormFields/${he}`).pipe((0,Z.K)(this.handleError(`Error getFieldsInfo - App Id : ${he}`)))}getCustomerFieldsInfo(he){const je=`${this.crmServerUrl}/getCustomerFormFields`;let Je=(new B.LE).set("cstmrId",he).set("cmsUserId",this.cmsUserId).set("appIdForCrm",this.appId).set("crmUserId",this.crmUserId);return this.http.get(je,{params:Je}).pipe((0,Z.K)(this.handleError(`Error getFieldsInfo - Customer id : ${he}`)))}addNewProfImage(he,je){return this.http.post(`${this.crmServerUrl}/addNewProfImage/${je}/${this.cmsUserId}`,he).pipe((0,Z.K)(this.handleError(`Error create new customer - Customer id : ${he}`)))}addNewFile(he){const je=`${le.L}/edit/uploadFile/${this.appId}/${this.cmsUserId}`,Je=new FormData;Je.append("file",he),Je.append("fileName",he.name);const At=new B.WM({enctype:"multipart/form-data"});return this.http.post(je,Je,{headers:At})}addNewFiles(he){const je=`${le.L}/edit/uploadFile/${this.appId}/${this.cmsUserId}`,Je=new FormData;he.forEach((li,zi)=>{Je.append("file",li),Je.append("fileName",li.name)});const At=new B.WM({enctype:"multipart/form-data"});return this.http.post(je,Je,{headers:At})}addNewCustomer(he,je,Je){return this.http.post(`${this.crmServerUrl}/createNewCustomer/${je}`,{customerInfo:he,appId:Je},this.httpOptions).pipe((0,Z.K)(this.handleError(`Error create new customer - Customer id : ${he}`)))}updateCustomer(he,je){for(let li of he)delete li.id,delete li.isDeleted,delete li.appFormFields;let Je=he;return this.http.put(`${this.crmServerUrl}/updateCustomerData/${je}`,Je,this.httpOptions).pipe((0,Z.K)(this.handleError(`Error Updating customer - Customer id : ${Je}`)))}addNote(he,je,Je){return this.http.post(`${this.crmServerUrl}/addNewNote`,{comment:he.comment,fileNames:he.uploadedFiles,appFormData:je,commentedBy:Je,signedS3FileUrl:he.signedUrls},this.httpOptions).pipe((0,Z.K)(this.handleError(`Error Adding Note - Customer id : ${je}`)))}viewNote(he){return this.http.get(`${this.crmServerUrl}/viewNote/${he}`).pipe((0,Z.K)(this.handleError(`Error Recieving Note - Note id : ${he}`)))}deleteNote(he){return this.http.put(`${this.crmServerUrl}/deleteNote/${he}`,this.httpOptions).pipe((0,Z.K)(this.handleError(`Error Deleting Note - Note id : ${he}`)))}downloadNoteFile(he,je){return this.http.post(`${le.L}/edit/downloadFile`,{fileName:je,fileUrl:he},{responseType:"blob"})}handleError(he="operation",je){return Je=>(console.error(Je),(0,j.of)(je))}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275inject(B.eN))};static#t=this.\u0275prov=o.\u0275\u0275defineInjectable({token:ht,factory:ht.\u0275fac,providedIn:"root"})}return ht})();function ot(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",9),o.\u0275\u0275listener("click",function(){const At=o.\u0275\u0275restoreView(he).$implicit,li=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(li.downloadAllFiles(At))}),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()}if(2&ht){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(he.name)}}function dt(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,ot,2,1,"button",8),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",he.fileNames)}}const jt=".div-mat-card[_ngcontent-%COMP%]{min-height:80vh;height:auto;margin:0%}.view-note-card[_ngcontent-%COMP%]{box-shadow:none;background-color:transparent;border:none;width:100%;min-height:80vh;height:auto;padding-top:100px}.view-note-date-delete-btn[_ngcontent-%COMP%]{display:flex;flex-direction:row}.note-date-span[_ngcontent-%COMP%]{align-content:flex-start;align-self:center;color:#fff;letter-spacing:2px;width:50%;font-size:larger;padding-left:20px;display:inline-block}.delete-btn-div[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;width:50%;padding-right:20px}.delete-note-button[_ngcontent-%COMP%]{align-self:center;text-align:center;font-size:15px;font-weight:600;width:25%;color:#fff;background-color:transparent;display:inline-block;cursor:pointer;letter-spacing:1px;padding:0%}.div-text-area[_ngcontent-%COMP%]{color:#fff;font-size:medium;padding:40px 10px 40px 20px;height:435px;background-color:transparent;width:97%}.file-upload-btn[_ngcontent-%COMP%]{margin-right:8px;margin-bottom:8px}.footer-card[_ngcontent-%COMP%]{background-color:transparent;border:none;width:100%;height:-moz-fit-content;height:fit-content;position:absolute}.footer-home-button[_ngcontent-%COMP%]{color:#fff;float:left;width:50%;text-align:center;height:-moz-fit-content;height:fit-content}.footer-call-button[_ngcontent-%COMP%]{color:#fff;float:right;width:50%;text-align:center;height:-moz-fit-content;height:fit-content}  .footer-mat-icon{height:36px!important;width:36px!important;font-size:36px!important;vertical-align:middle}.dialog-header[_ngcontent-%COMP%]{text-align:center;padding-bottom:20px}.yes-button[_ngcontent-%COMP%]{font-size:large;font-weight:500;letter-spacing:1.5px;background-color:transparent;border:solid 2px;border-radius:7px;float:left;width:45%;height:45px;text-align:center}.no-button[_ngcontent-%COMP%]{font-size:large;font-weight:500;letter-spacing:1.5px;background-color:transparent;border:solid 2px;border-radius:7px;float:right;width:45%;height:45px;text-align:center}  .mat-dialog-container{margin:0!important;display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%!important;height:100%;min-height:inherit;max-height:inherit;background-color:#f05223!important}";let zt=(()=>{class ht{constructor(he,je,Je,At,li,zi,dn){this.titleService=he,this.dialog=je,this.customerInfoService=Je,this.commonInfoService=At,this.location=li,this.router=zi,this.dataService=dn,this.noteId="",this.crmUserId="",this.appFormDataId="",this.noteObj={},this.fileNamesLength=0,this.fileNames=[],this.commonInfoService.changeAddEditCustomerStatus(!1),this.isCrmContact=!1,localStorage.setItem("isCrmContact",JSON.stringify(this.isCrmContact)),this.titleService.changeTitle("NOTE"),this.titleService.setLocation("/crm/viewNotePage"),this.crmUserId=localStorage.getItem("crmUserId"),this.noteId=this.commonInfoService.noteID,this.appFormDataId=this.commonInfoService.appFormDataID}ngOnInit(){this.viewNote(this.noteId)}openConfirmationDialog(){this.dialog.open(ti,{width:"100%",maxWidth:"270px",maxHeight:"inherit",data:this.noteObj}).afterClosed().subscribe(je=>{this.confirmation=je,this.confirmation&&this.deleteNote(this.confirmation)})}viewNote(he){this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(je=>{je?this.customerInfoService.viewNote(he).subscribe(Je=>{Je?(console.log(Je,"trackedNote"),this.noteObj=Je,this.fileNames=this.noteObj.fileNames,this.fileNamesLength=this.noteObj.fileNames.length):this.commonInfoService.showCrmNotification("Error!","Error in recieving note. Please retry.",!1)}):this.showCrmNotification()})}downloadAllFiles(he){this.customerInfoService.downloadNoteFile(he.url,he.name).subscribe(je=>{const Je=new Blob([je],{type:je.type}),At=document.createElement("a");At.href=window.URL.createObjectURL(Je),At.download=he.name,document.body.appendChild(At),At.click(),document.body.removeChild(At)},je=>{console.error("Download error:",je)})}saveFile(he,je){const Je=window.URL.createObjectURL(he),At=document.createElement("a");At.href=Je,At.download=je,document.body.appendChild(At),At.click(),window.URL.revokeObjectURL(Je),document.body.removeChild(At)}getFileName(he){return console.log(he,"url"),he.toString().split("?")[0].split("/").pop()}goBack(){this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(he=>{he?this.location.back():this.showCrmNotification()})}deleteNote(he){this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(je=>{je?this.customerInfoService.deleteNote(he).subscribe(Je=>{Je?(this.commonInfoService.changeAppFormDataId(this.appFormDataId),this.router.navigate(["/crm/contactDetailsPage"])):this.commonInfoService.showCrmNotification("Error!","Can not delete note. Please retry.",!1)}):this.showCrmNotification()})}showCrmNotification(){this.commonInfoService.showCrmNotification("Warning!","Sorry you cannot access the app. Please contact Admin.",!0)}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275directiveInject(C.y),o.\u0275\u0275directiveInject(qe.on),o.\u0275\u0275directiveInject(ct),o.\u0275\u0275directiveInject(l.E),o.\u0275\u0275directiveInject(n.Location),o.\u0275\u0275directiveInject(e.F0),o.\u0275\u0275directiveInject(u.V))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-view-note-page"]],decls:14,vars:6,consts:[[1,"div-mat-card"],[1,"view-note-card"],[1,"view-note-date-delete-btn"],[1,"note-date-span","main-header-font"],[1,"delete-btn-div"],["type","submit","mat-button","",1,"delete-note-button","main-header-font",3,"click"],[1,"div-text-area","main-content-font",2,"display","flex","flex-direction","column","justify-content","space-between"],[4,"ngIf"],["type","button","class","file-upload-btn mat-focus-indicator main-button mat-stroked-button mat-button-base done-button-disabled mat-button-disabled","mat-raised-button","",3,"click",4,"ngFor","ngForOf"],["type","button","mat-raised-button","",1,"file-upload-btn","mat-focus-indicator","main-button","mat-stroked-button","mat-button-base","done-button-disabled","mat-button-disabled",3,"click"]],template:function(je,Je){1&je&&(o.\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"mat-card-content")(3,"div",2)(4,"span",3),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"date"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"div",4)(8,"button",5),o.\u0275\u0275listener("click",function(){return Je.openConfirmationDialog()}),o.\u0275\u0275text(9," DELETE "),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(10,"div",6)(11,"p"),o.\u0275\u0275text(12),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(13,dt,2,1,"div",7),o.\u0275\u0275elementEnd()()()()),2&je&&(o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind2(6,3,Je.noteObj.createdAt,"yyyy/MM/dd")),o.\u0275\u0275advance(7),o.\u0275\u0275textInterpolate(Je.noteObj.comment),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Je.fileNamesLength>0))},dependencies:[n.NgForOf,n.NgIf,ne.S$,ne.Qi,Oe.eB,n.DatePipe],styles:[jt]})}return ht})(),ti=(()=>{class ht{constructor(he,je){this.dialogRef=he,this.data=je}onNoClick(){this.dialogRef.close()}afterClosed(he){this.noteId=he,this.dialogRef.close(this.noteId)}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275directiveInject(qe.hV),o.\u0275\u0275directiveInject(qe.eJ))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-delete-note-confirmation-dialog"]],decls:7,vars:0,consts:[["mat-dialog-title","",1,"dialog-header","main-content-font"],["mat-dialog-actions","",1,"action-button"],["mat-raised-button","","cdkFocusInitial","",1,"yes-button","main-button",3,"click"],["mat-raised-button","",1,"no-button","main-button",3,"click"]],template:function(je,Je){1&je&&(o.\u0275\u0275elementStart(0,"h1",0),o.\u0275\u0275text(1,"CONFIRM"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(2,"div",1)(3,"button",2),o.\u0275\u0275listener("click",function(){return Je.afterClosed(Je.data.id)}),o.\u0275\u0275text(4," Yes "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"button",3),o.\u0275\u0275listener("click",function(){return Je.onNoClick()}),o.\u0275\u0275text(6,"No"),o.\u0275\u0275elementEnd()())},styles:[jt]})}return ht})();var mi=a(8249),Qt=a(9349);const Jt=["addnotetextarea"],lt=["notefileInput"],_t=["uploadBtn"];function Fe(ht,ni){1&ht&&(o.\u0275\u0275elementStart(0,"p",15),o.\u0275\u0275text(1,"No Files Selected"),o.\u0275\u0275elementEnd())}function Ae(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ht){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(he)}}function H(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"p",16),o.\u0275\u0275template(1,Ae,2,1,"span",17),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",he.fileNames)}}let W=(()=>{class ht{ngAfterViewInit(){this.noteTextArea.nativeElement.focus()}constructor(he,je,Je,At,li,zi){this.dialog=he,this.titleService=je,this.customerInfoService=Je,this.commonInfoService=At,this.router=li,this.dataService=zi,this.templateName=d.Bv,this.appFormDataId="",this.crmUserId="",this.note="",this.today=Date.now(),this.maxFileSize=2097152,this.maxFiles=5,this.selectedFiles=[],this.uploadedFileUrls=[],this.signedUrls=[],this.noteObj={},this.confirmation={},this.templateVersion="",this.trackFileUpload=0,this.fileNames=[],this.commonInfoService.changeAddEditCustomerStatus(!1),this.isCrmContact=!1,localStorage.setItem("isCrmContact",JSON.stringify(this.isCrmContact)),this.titleService.changeTitle("NOTE"),this.titleService.setLocation("/crm/addNotePage"),this.crmUserId=localStorage.getItem("crmUserId"),this.appFormDataId=this.commonInfoService.appFormDataID,this.commonInfoService.listenCrmUserLoginDevice(this.crmUserId),this.getTemplateVersion()}getTemplateVersion(){"Crm"===this.templateName?this.templateVersion="v1":"CrmV2"===this.templateName&&(this.templateVersion="v2")}ngOnInit(){}openConfirmationDialog(he){this.noteObj=he,this.dialog.open(mi.t,{width:"100%",maxWidth:"270px",maxHeight:"inherit",data:{note:he,title:"Confirm Save?"}}).afterClosed().subscribe(Je=>{console.log("The dialog was closed result",Je),this.confirmation=Je,this.confirmation&&this.addNote(this.confirmation.note)})}addNote(he){let je={comment:he,uploadedFiles:this.uploadedFileUrls,signedUrls:this.signedUrls};this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(Je=>{Je?this.customerInfoService.addNote(je,this.appFormDataId,this.crmUserId).subscribe(At=>{At?(this.commonInfoService.changeCrmUserId(this.crmUserId),this.commonInfoService.changeAppFormDataId(this.appFormDataId),this.router.navigate(["/crm/contactDetailsPage"])):this.commonInfoService.showCrmNotification("Error!","Error On Adding Note! Please Retry.",!1)}):this.showCrmNotification()})}onFilesSelected(he){const je=he.target;if(je.files&&je.files.length>0){const At=je.files[0].name;console.log("Selected file:",At),this.fileNames.push(At)}je.files&&je.files.length>0&&(this.selectedFiles=Array.from(je.files));for(const Je of this.selectedFiles){if(Je.size>this.maxFileSize)return console.log(`File size: ${Je.size} bytes`),console.log("You need to upload a file less than 2MB"),this.fileNames.pop(),void this.uploadFileNotification("Please upload a file less than 2MB.","Error!",!0);console.log(`File size is within the limit: ${Je.size} bytes`)}if(this.selectedFiles.length>0){const Je=new FormData;this.selectedFiles.forEach((At,li)=>{Je.append(`file${li}`,At)}),this.customerInfoService.addNewFiles(Je).subscribe(At=>{if(this.uploadedFileUrls.push({name:this.fileNames[this.trackFileUpload],url:At.fileUrl}),this.signedUrls.push({name:this.fileNames[this.trackFileUpload],url:At.signedUrl}),this.trackFileUpload++,this.trackFileUpload==this.maxFiles)return console.log("You have reached the maximum number of uploads"),void this.disableElements()},At=>{console.error("Error uploading files",At)})}else console.log("Please select files.")}disableElements(){const he=this.notefileInput.nativeElement,je=this.uploadBtn._elementRef.nativeElement;he&&je?(he.disabled=!0,je.disabled=!0,he.classList.add("note-file-upload-button-disabled"),je.classList.add("note-file-upload-button-disabled"),console.log("inputNode",he),console.log("buttonNode",je)):console.error("Elements not found:",{inputNode:he,buttonNode:je})}getFileNameFromUrl(he){try{const At=new URL(he).pathname.split("/");return decodeURIComponent(At[At.length-1])}catch(je){return console.error("Invalid URL:",je),""}}showCrmNotification(){this.commonInfoService.showCrmNotification("Warning!","Sorry you cannot access the app. Please contact Admin.",!0)}uploadFileNotification(he,je,Je){this.commonInfoService.showToaster(he,je,Je)}goBack(){"v2"===this.templateVersion&&this.router.navigate(["crm/contactDetailsPage"])}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275directiveInject(qe.on),o.\u0275\u0275directiveInject(C.y),o.\u0275\u0275directiveInject(ct),o.\u0275\u0275directiveInject(l.E),o.\u0275\u0275directiveInject(e.F0),o.\u0275\u0275directiveInject(u.V))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-add-note-page"]],viewQuery:function(je,Je){if(1&je&&(o.\u0275\u0275viewQuery(Jt,5),o.\u0275\u0275viewQuery(lt,5),o.\u0275\u0275viewQuery(_t,5,Oe.eB)),2&je){let At;o.\u0275\u0275queryRefresh(At=o.\u0275\u0275loadQuery())&&(Je.noteTextArea=At.first),o.\u0275\u0275queryRefresh(At=o.\u0275\u0275loadQuery())&&(Je.notefileInput=At.first),o.\u0275\u0275queryRefresh(At=o.\u0275\u0275loadQuery())&&(Je.uploadBtn=At.first)}},decls:21,vars:8,consts:[[1,"div-mat-card"],[1,"view-note-card"],[1,"note-header-line"],[1,"note-date-span","main-header-font"],["type","submit","mat-button","",1,"note-edit-done-button","main-header-font",3,"disabled","click"],[1,"div-text-area"],["required","","cdkTextareaAutosize","","matInput","","name","AddNote","maxlength","4800",1,"add-note-textarea",3,"ngModel","ngModelChange"],["addnotetextarea",""],[2,"display","flex","align-items","center"],["type","button","mat-raised-button","",1,"note-file-upload-button",3,"click"],["uploadBtn",""],["type","file","id","notefileInput",2,"display","none",3,"change"],["notefileInput",""],["style","margin: 0;\n            font-size: 9px;",4,"ngIf"],["style","margin: 0;\n            font-size: 9px;","class","note-file-name",4,"ngIf"],[2,"margin","0","font-size","9px"],[1,"note-file-name",2,"margin","0","font-size","9px"],[4,"ngFor","ngForOf"]],template:function(je,Je){if(1&je){const At=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"mat-card-content")(3,"div",2)(4,"span",3),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"date"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"button",4),o.\u0275\u0275listener("click",function(){return Je.addNote(Je.note)}),o.\u0275\u0275text(8," DONE "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(9,"div",5)(10,"textarea",6,7),o.\u0275\u0275listener("ngModelChange",function(zi){return Je.note=zi}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(12,"div",8)(13,"div")(14,"button",9,10),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(At);const zi=o.\u0275\u0275reference(18);return o.\u0275\u0275resetView(zi.click())}),o.\u0275\u0275text(16,"Upload File"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(17,"input",11,12),o.\u0275\u0275listener("change",function(zi){return Je.onFilesSelected(zi)}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(19,Fe,2,0,"p",13),o.\u0275\u0275template(20,H,2,1,"p",14),o.\u0275\u0275elementEnd()()()()()}2&je&&(o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind2(6,5,Je.today,"yyyy/MM/dd")),o.\u0275\u0275advance(2),o.\u0275\u0275property("disabled",!Je.note),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngModel",Je.note),o.\u0275\u0275advance(9),o.\u0275\u0275property("ngIf",0==Je.trackFileUpload),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",0!=Je.trackFileUpload))},dependencies:[n.NgForOf,n.NgIf,xe.Fj,xe.JJ,xe.Q7,xe.nD,ne.S$,ne.Qi,Qt.IC,Ze.k0,xe.On,Oe.eB,n.DatePipe],styles:[".div-mat-card[_ngcontent-%COMP%]{min-height:70vh;height:auto;margin:0%}.view-note-card[_ngcontent-%COMP%]{background-color:transparent;border:none;width:100%;height:auto;box-shadow:none;padding-top:80px}.note-header-line[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;align-items:center;height:40px;margin-bottom:5px}.note-date-span[_ngcontent-%COMP%]{color:#fff;letter-spacing:2px;width:80%;font-size:15px;padding-left:15px;display:inline-block}.note-edit-done-button[_ngcontent-%COMP%]{text-align:center;width:15%;font-size:15px;color:#fff;background-color:transparent;display:inline-block;letter-spacing:1px}.div-text-area[_ngcontent-%COMP%]{height:calc(100vh - 205px)!important;background-color:#fff}.add-note-textarea[_ngcontent-%COMP%]{width:100%;height:calc(100% - 60px)!important;padding:15px 10px;border:none}textarea.add-note-textarea[_ngcontent-%COMP%]:focus{outline-width:0}.note-file-upload-button[_ngcontent-%COMP%]{margin-left:30px;background:none}.note-file-name[_ngcontent-%COMP%]{display:flex;-moz-column-gap:18px;column-gap:18px;flex-wrap:wrap}"]})}return ht})();var He=a(2413);function Te(ht,ni){if(1&ht&&o.\u0275\u0275element(0,"img",8),2&ht){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("src",he.imageField.fieldValues.value,o.\u0275\u0275sanitizeUrl)}}function Be(ht,ni){1&ht&&o.\u0275\u0275element(0,"br")}function mt(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div",9),o.\u0275\u0275element(1,"img",10),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275property("src",he.imageField.fieldValues.value,o.\u0275\u0275sanitizeUrl)}}function Pe(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",11)(1,"label")(2,"input",12),o.\u0275\u0275listener("change",function(Je){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(At.addImageToPwa(Je))}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"span",13),o.\u0275\u0275text(4,"Add Image"),o.\u0275\u0275elementEnd()()()}}function Qe(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",14),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Je=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(Je.addImageToApk())}),o.\u0275\u0275elementStart(1,"span",15),o.\u0275\u0275text(2,"Add Image"),o.\u0275\u0275elementEnd()()}}function ut(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div",2),o.\u0275\u0275template(1,Te,1,1,"img",3),o.\u0275\u0275template(2,Be,1,0,"br",1),o.\u0275\u0275template(3,mt,2,1,"div",4),o.\u0275\u0275elementStart(4,"div",5),o.\u0275\u0275template(5,Pe,5,0,"button",6),o.\u0275\u0275template(6,Qe,3,0,"button",7),o.\u0275\u0275elementEnd()()),2&ht){const he=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!he.isLoading),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!he.isLoading),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",he.isLoading),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",!he.isCordovaApp),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",he.isCordovaApp)}}function te(ht,ni){if(1&ht&&o.\u0275\u0275element(0,"img",8),2&ht){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("src",he.imageField.fieldValues.value,o.\u0275\u0275sanitizeUrl)}}function k(ht,ni){if(1&ht&&o.\u0275\u0275element(0,"img",17),2&ht){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("src",he.imageField.fieldValues.value,o.\u0275\u0275sanitizeUrl)}}function R(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,te,1,1,"img",3),o.\u0275\u0275template(2,k,1,1,"img",16),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",he.imageField.fieldValues.id),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!he.imageField.fieldValues.id)}}let be=(()=>{class ht{constructor(he,je,Je,At,li){this.dataService=he,this.commonInfoService=je,this.router=Je,this.cameraService=At,this.ngZone=li,this.appId=d.Jf,this.userId=d.xS,this.camera=window.navigator.camera,this.Camera=window.Camera,this.isLoading=!1,this.fileInfo={}}ngOnChanges(he){if(this.viewWebImgUrl=this.dataService.getServerURL()+"/templates/viewWebImages?userId="+this.userId+"&appId="+this.appId+"&"+(new Date).getTime()+"&images=",this.imageField){let je=this.imageField.fieldValues.value;if(this.imageField.addedEvent=!1,je)if(""==je)this.imageField.fieldValues.value=`${this.viewWebImgUrl}/defaultProfImage.jpg`;else{let Je=je.split("thirdNavi/")[1];(!Je||"undefined"==Je||"null"==Je)&&(this.imageField.fieldValues.value=`${this.viewWebImgUrl}/defaultProfImage.jpg`)}else this.imageField.fieldValues.value=`${this.viewWebImgUrl}/defaultProfImage.jpg`}}addImageToApk(){console.log("Runn APK profile Image"),this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(he=>{he?this.addImageApkContinue():this.showCrmNotification()})}addImageApkContinue(){this.cameraService.getPicture({quality:50,destinationType:this.Camera.DestinationType.FILE_URI,sourceType:this.Camera.PictureSourceType.PHOTOLIBRARY,encodingType:this.Camera.EncodingType.JPEG,mediaType:this.Camera.MediaType.PICTURE,correctOrientation:!0}).subscribe(je=>{console.log("recived fileinfo : ",je),je.fileSize<=25e5?(this.ngZone.run(()=>{this.imageField.fieldValues.value=je.displayUrl}),this.imageField.addedEvent=!0,console.log("created Image field : ",this.imageField)):(this.imageField.addedEvent=!1,this.commonInfoService.showCrmNotification("Warning!","Please upload image file size less than 2.5MB",!1))},je=>{console.log("Error: ",je),this.commonInfoService.showCrmNotification("Warning!","Falid to load the image",!1)})}addImageToPwa(he){this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(je=>{if(je)if(he.target.files.length)if(he.target.files[0].size<=25e5){let Je=new FileReader;Je.readAsDataURL(he.target.files[0]),Je.onload=At=>{this.imageField.fieldValues.value=At.target.result,this.imageField.addedEvent=he.target.files[0]}}else this.commonInfoService.showCrmNotification("Warning!","Please upload image file size less than 2.5MB",!1);else this.commonInfoService.showCrmNotification("Warning!","Please upload an image!",!1);else this.showCrmNotification()})}showCrmNotification(){this.commonInfoService.showCrmNotification("Warning!","Sorry you cannot access the app. Please contact Admin.",!0)}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275directiveInject(u.V),o.\u0275\u0275directiveInject(l.E),o.\u0275\u0275directiveInject(e.F0),o.\u0275\u0275directiveInject(He.r),o.\u0275\u0275directiveInject(o.NgZone))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-profile-image"]],inputs:{imageField:"imageField",onlyShowImage:"onlyShowImage",isCordovaApp:"isCordovaApp"},features:[o.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[["class","prof-pic-div",4,"ngIf"],[4,"ngIf"],[1,"prof-pic-div"],["class","customer-profile-image","mat-card-lg-image","","alt","Profile Image",3,"src",4,"ngIf"],["style","background-color: white; ","class","customer-profile-image loader-div",4,"ngIf"],["id","upload_button"],["class","add-image-button main-content-font","mat-button","",4,"ngIf"],["mat-button","","class","add-image-button main-content-font",3,"click",4,"ngIf"],["mat-card-lg-image","","alt","Profile Image",1,"customer-profile-image",3,"src"],[1,"customer-profile-image","loader-div",2,"background-color","white"],["alt","Profile Image",1,"loader-gif",3,"src"],["mat-button","",1,"add-image-button","main-content-font"],["type","file","accept","image/png, image/jpeg",3,"change"],[1,"btn-lable","main-content-font","auto-span-add-img"],["mat-button","",1,"add-image-button","main-content-font",3,"click"],[1,"btn-lable","main-content-font"],["class","user-profile-image","mat-card-lg-image","","alt","Profile Image",3,"src",4,"ngIf"],["mat-card-lg-image","","alt","Profile Image",1,"user-profile-image",3,"src"]],template:function(je,Je){1&je&&(o.\u0275\u0275template(0,ut,7,5,"div",0),o.\u0275\u0275template(1,R,3,2,"div",1)),2&je&&(o.\u0275\u0275property("ngIf",Je.imageField&&!Je.onlyShowImage),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Je.imageField&&Je.onlyShowImage))},dependencies:[n.NgIf,ne.Al,Oe.eB],styles:[".prof-pic-div[_ngcontent-%COMP%]{background-color:transparent!important}.customer-profile-image[_ngcontent-%COMP%]{background-size:auto;height:105px;width:105px;border-radius:50%;flex-shrink:0;object-fit:cover}.loader-div[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;align-self:center}.loader-gif[_ngcontent-%COMP%]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;align-self:center}.add-image-button[_ngcontent-%COMP%]{padding:0 15px;margin:0;background-color:transparent!important;color:#fff;border:none;cursor:pointer}.btn-lable[_ngcontent-%COMP%]{color:#e9e9e9;font-size:20px;letter-spacing:1px;cursor:pointer}#upload_button[_ngcontent-%COMP%]{padding-top:7px;padding-bottom:14px;display:inline-block}#upload_button[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{display:none}.user-profile-image[_ngcontent-%COMP%]{padding-top:0;background-size:auto;height:70px;width:70px;border-radius:50%;flex-shrink:0;object-fit:cover}"]})}return ht})();function et(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",2)(1,"input",3),o.\u0275\u0275listener("ngModelChange",function(Je){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(At.inputField.fieldValues.value=Je)}),o.\u0275\u0275elementEnd()()}if(2&ht){const he=o.\u0275\u0275nextContext();o.\u0275\u0275property("formGroup",he.parentForm),o.\u0275\u0275advance(1),o.\u0275\u0275classMapInterpolate1("input-info-field auto-txt-",he.inputField.appFormFields.code,""),o.\u0275\u0275propertyInterpolate("placeholder",he.inputField.appFormFields.lable),o.\u0275\u0275property("ngModel",he.inputField.fieldValues.value)("formControlName",he.formCtrlName)}}function Ue(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div")(1,"input",4),o.\u0275\u0275listener("ngModelChange",function(Je){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(At.inputField.fieldValues.value=Je)}),o.\u0275\u0275elementEnd()()}if(2&ht){const he=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275classMapInterpolate1("input-info-field auto-txt-",he.inputField.appFormFields.code,""),o.\u0275\u0275propertyInterpolate("placeholder",he.inputField.appFormFields.lable),o.\u0275\u0275property("ngModel",he.inputField.fieldValues.value)}}let ge=(()=>{class ht{constructor(){this.isRequiredField=!1}ngOnChanges(he){if(this.inputField&&this.inputField.appFormFields.isRequired){this.isRequiredField=this.inputField.appFormFields.isRequired;let li=this.inputField.appFormFields.lable.toLowerCase().trim().replace(" ","_");this.formCtrlName=li}}static#e=this.\u0275fac=function(je){return new(je||ht)};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-input-text"]],inputs:{parentForm:"parentForm",inputField:"inputField"},features:[o.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[[3,"formGroup",4,"ngIf"],[4,"ngIf"],[3,"formGroup"],["type","text","matInput","","value","inputField.appFormFields.code","required","",3,"placeholder","ngModel","formControlName","ngModelChange"],["type","text","matInput","","value","inputField.appFormFields.code",3,"placeholder","ngModel","ngModelChange"]],template:function(je,Je){1&je&&(o.\u0275\u0275template(0,et,2,7,"div",0),o.\u0275\u0275template(1,Ue,2,5,"div",1)),2&je&&(o.\u0275\u0275property("ngIf",Je.inputField&&Je.isRequiredField),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Je.inputField&&!Je.isRequiredField))},dependencies:[n.NgIf,xe.Fj,xe.JJ,xe.JL,xe.Q7,xe.sg,xe.u,Ze.k0,xe.On],styles:[".input-info-field[_ngcontent-%COMP%]{padding-left:15px;text-align:left;color:#000;background-color:#fff;height:40px;width:85%;border:none;font-size:medium}[_ngcontent-%COMP%]::placeholder{text-align:left;color:#a5a5a5;font-size:medium;font-weight:450;letter-spacing:1.5px}"]})}return ht})();var ke=a(6289),gt=a(4363);function Pt(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"mat-option",5),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ht){const he=ni.$implicit,je=o.\u0275\u0275nextContext(2);o.\u0275\u0275classMapInterpolate2("auto-select-opt-",je.field.appFormFields.code,"-",he.code,""),o.\u0275\u0275property("value",he.code),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",he.text," ")}}function Bt(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",2)(1,"mat-select",3),o.\u0275\u0275listener("ngModelChange",function(Je){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(At.field.fieldValues.value=Je)}),o.\u0275\u0275template(2,Pt,2,6,"mat-option",4),o.\u0275\u0275elementEnd()()}if(2&ht){const he=o.\u0275\u0275nextContext();o.\u0275\u0275property("formGroup",he.parentForm),o.\u0275\u0275advance(1),o.\u0275\u0275classMapInterpolate1("input-info-field auto-select-",he.field.appFormFields.code,""),o.\u0275\u0275propertyInterpolate("placeholder",he.field.appFormFields.lable),o.\u0275\u0275property("value",he.field.appFormFields.code)("ngModel",he.field.fieldValues.value)("formControlName",he.formCtrlName),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",he.field.appFormFields.appFormFieldOptions)}}function st(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"mat-option",5),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ht){const he=ni.$implicit,je=o.\u0275\u0275nextContext(2);o.\u0275\u0275classMapInterpolate2("auto-select-opt-",je.field.appFormFields.code,"-",he.code,""),o.\u0275\u0275property("value",he.code),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",he.text," ")}}function Nt(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div")(1,"mat-select",6),o.\u0275\u0275listener("ngModelChange",function(Je){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(At.field.fieldValues.value=Je)}),o.\u0275\u0275template(2,st,2,6,"mat-option",4),o.\u0275\u0275elementEnd()()}if(2&ht){const he=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275classMapInterpolate1("input-info-field main-content-font auto-select-",he.field.appFormFields.code,""),o.\u0275\u0275propertyInterpolate("placeholder",he.field.appFormFields.lable),o.\u0275\u0275property("value",he.field.appFormFields.code)("ngModel",he.field.fieldValues.value),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",he.field.appFormFields.appFormFieldOptions)}}let at=(()=>{class ht{constructor(){this.isRequiredField=!1}ngOnChanges(he){if(this.field&&this.field.appFormFields.isRequired){this.isRequiredField=this.field.appFormFields.isRequired;let li=this.field.appFormFields.lable.toLowerCase().trim().replace(" ","_");this.formCtrlName=li}}static#e=this.\u0275fac=function(je){return new(je||ht)};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-input-select"]],inputs:{parentForm:"parentForm",field:"field"},features:[o.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[[3,"formGroup",4,"ngIf"],[4,"ngIf"],[3,"formGroup"],["required","",3,"placeholder","value","ngModel","formControlName","ngModelChange"],[3,"class","value",4,"ngFor","ngForOf"],[3,"value"],[3,"placeholder","value","ngModel","ngModelChange"]],template:function(je,Je){1&je&&(o.\u0275\u0275template(0,Bt,3,9,"div",0),o.\u0275\u0275template(1,Nt,3,7,"div",1)),2&je&&(o.\u0275\u0275property("ngIf",Je.field&&Je.isRequiredField),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Je.field&&!Je.isRequiredField))},dependencies:[n.NgForOf,n.NgIf,xe.JJ,xe.JL,xe.Q7,xe.sg,xe.u,xe.On,ke.x8,gt.CK],styles:[".input-info-field[_ngcontent-%COMP%]{padding-left:15px;text-align:left;color:#000;background-color:#fff;height:40px;width:85%;border:none;font-size:medium}  .mat-select-placeholder{text-align:left;color:#a5a5a5;font-size:17px;font-weight:450;letter-spacing:1.5px}  .mat-select-trigger{height:40px}  .mat-select-value{vertical-align:middle;color:#000000de}  .mat-option-text{background-color:#fff!important}"]})}return ht})();function Lt(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"app-profile-image",7),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext().$implicit,je=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(1),o.\u0275\u0275property("onlyShowImage",je.onlyShowImage)("imageField",he)("isCordovaApp",je.isCordovaApp)}}function Rt(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Lt,2,3,"div",3),o.\u0275\u0275elementEnd()),2&ht){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","Image"==he.appFormFields.feFormFieldType.type&&!he.appFormFields.isDeleted)}}function ai(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"app-input-text",9)(2,"br"),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext().$implicit,je=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(1),o.\u0275\u0275property("parentForm",je.parentForm)("inputField",he)}}function Xt(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"app-input-select",10)(2,"br"),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext().$implicit,je=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(1),o.\u0275\u0275property("parentForm",je.parentForm)("field",he)}}function ui(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",11)(1,"button",12),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Je=o.\u0275\u0275reference(6);return o.\u0275\u0275resetView(Je.click())}),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"span",13),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"input",14,15),o.\u0275\u0275listener("change",function(Je){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext(5);return o.\u0275\u0275resetView(At.onFileSelected(Je))}),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(7,"br"),o.\u0275\u0275elementEnd()}if(2&ht){const he=o.\u0275\u0275nextContext().$implicit,je=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1("",he.appFormFields.lable," "),o.\u0275\u0275advance(1),o.\u0275\u0275property("id",he.appFormFields.lable),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(je.uploadFileMessages[he.appFormFields.lable]||"No file selected..."),o.\u0275\u0275advance(1),o.\u0275\u0275property("parentForm",je.parentForm)("name",he.appFormFields.lable)("inputField",he)}}function vt(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,ai,3,2,"div",3),o.\u0275\u0275template(2,Xt,3,2,"div",3),o.\u0275\u0275template(3,ui,8,6,"div",8),o.\u0275\u0275elementEnd()),2&ht){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","Type"==he.appFormFields.feFormFieldType.type&&!he.appFormFields.isDeleted),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","Select"==he.appFormFields.feFormFieldType.type&&!he.appFormFields.isDeleted),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","File"==he.appFormFields.feFormFieldType.type)}}function Ut(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Rt,2,1,"div",4),o.\u0275\u0275elementStart(2,"form",5),o.\u0275\u0275template(3,vt,4,3,"div",4),o.\u0275\u0275element(4,"br"),o.\u0275\u0275elementStart(5,"button",6),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Je=o.\u0275\u0275nextContext(3);return o.\u0275\u0275resetView(Je.saveCustomerInfo(Je.fieldList))}),o.\u0275\u0275text(6," DONE "),o.\u0275\u0275elementEnd()()()}if(2&ht){const he=o.\u0275\u0275nextContext(3);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",he.fieldList),o.\u0275\u0275advance(1),o.\u0275\u0275property("formGroup",he.parentForm),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",he.fieldList),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngClass",he.parentForm.invalid?"done-button-disabled":"done-button")("disabled",he.parentForm.invalid)}}function Zt(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Ut,7,5,"div",3),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",he.fieldList)}}function Ci(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"app-profile-image",7),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext().$implicit,je=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(1),o.\u0275\u0275property("onlyShowImage",je.onlyShowImage)("imageField",he)("isCordovaApp",je.isCordovaApp)}}function _i(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Ci,2,3,"div",3),o.\u0275\u0275elementEnd()),2&ht){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","Image"==he.appFormFields.feFormFieldType.type&&!he.appFormFields.isDeleted)}}function pi(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"app-input-text",9)(2,"br"),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext().$implicit,je=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(1),o.\u0275\u0275property("parentForm",je.parentForm)("inputField",he)}}function Bi(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"app-input-select",10)(2,"br"),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext().$implicit,je=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(1),o.\u0275\u0275property("parentForm",je.parentForm)("field",he)}}function ze(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext(2).$implicit,je=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",je.uploadFileMessages[he.appFormFields.lable]||je.getFileNameFromUrl(he.fieldValues.value.files.signedUrl)||"No file selected..."," ")}}function ue(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext(2).$implicit,je=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(je.uploadFileMessages[he.appFormFields.lable]||"No file selected...")}}function re(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",17)(1,"button",18),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Je=o.\u0275\u0275reference(7);return o.\u0275\u0275resetView(Je.click())}),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(3,ze,2,1,"span",19),o.\u0275\u0275template(4,ue,2,1,"ng-template",null,20,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementStart(6,"input",21,15),o.\u0275\u0275listener("change",function(Je){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext(5);return o.\u0275\u0275resetView(At.onFileSelected(Je))}),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(8,"br"),o.\u0275\u0275elementEnd()}if(2&ht){const he=o.\u0275\u0275reference(5),je=o.\u0275\u0275nextContext().$implicit,Je=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1("",je.appFormFields.lable," "),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",je.fieldValues.value&&null!=je.fieldValues.value)("ngIfElse",he),o.\u0275\u0275advance(3),o.\u0275\u0275property("parentForm",Je.parentForm)("name",je.appFormFields.lable)("inputField",je)("value",je.fieldValues.value)}}function Ee(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,pi,3,2,"div",3),o.\u0275\u0275template(2,Bi,3,2,"div",3),o.\u0275\u0275template(3,re,9,7,"div",16),o.\u0275\u0275elementEnd()),2&ht){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","Type"==he.appFormFields.feFormFieldType.type&&!he.appFormFields.isDeleted),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","Select"==he.appFormFields.feFormFieldType.type&&!he.appFormFields.isDeleted),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","File"==he.appFormFields.feFormFieldType.type)}}function Re(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,_i,2,1,"div",4),o.\u0275\u0275elementStart(2,"form",5),o.\u0275\u0275template(3,Ee,4,3,"div",4),o.\u0275\u0275element(4,"br"),o.\u0275\u0275elementStart(5,"button",6),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Je=o.\u0275\u0275nextContext(3);return o.\u0275\u0275resetView(Je.saveCustomerInfo(Je.fieldList))}),o.\u0275\u0275text(6," DONE "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(7,"br"),o.\u0275\u0275elementEnd()}if(2&ht){const he=o.\u0275\u0275nextContext(3);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",he.fieldList),o.\u0275\u0275advance(1),o.\u0275\u0275property("formGroup",he.parentForm),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",he.fieldList),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngClass",he.parentForm.invalid?"done-button-disabled":"done-button")("disabled",he.parentForm.invalid)}}function We(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Re,8,5,"div",3),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",he.fieldList)}}function xt(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"mat-card-content",2),o.\u0275\u0275template(1,Zt,2,1,"div",3),o.\u0275\u0275template(2,We,2,1,"div",3),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!he.isEdit),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",he.isEdit)}}let Ht=(()=>{class ht{constructor(he,je,Je,At,li,zi,dn,en,Hn){this.dialog=he,this.titleService=je,this.customerInfoService=Je,this.commonInfoService=At,this.router=li,this.fb=zi,this.dataService=dn,this.cameraService=en,this.location=Hn,this.userId=d.xS,this.appId="",this.appFormDataId="",this.crmUserId="",this.fieldList=[],this.newDataArr=[],this.imageInfo={},this.isLoading=!0,this.fileUploadErrorMsg="",this.maxFileSize=2097152,this.uploadedFileUrl=null,this.uploadFileMessage="No file uploaded",this.noteObj={},this.selectedFiles=[],this.uploadFileMessages={},this.uploadedFileUrls=[],this.signedUrls=[],this.formDatasInArray=[],this.trackFileUpload=0,this.matchedFile={},this.isEditEnabled=!1,this.validateObj={},this.isCordovaApp=this.dataService.isCordovaApp(),this.isCrmContact=!1,localStorage.setItem("isCrmContact",JSON.stringify(this.isCrmContact)),this.titleService.changeTitle("ADD/EDIT CONTACT"),this.titleService.setLocation("/crm/customerAddEditPage"),this.appId=localStorage.getItem("appId"),this.crmUserId=localStorage.getItem("crmUserId"),this.parentForm=this.fb.group(this.validateObj),this.isAddCustomer=this.commonInfoService.isAddCustomer,this.appFormDataId=this.commonInfoService.appFormDataID,this.commonInfoService.listenCrmUserLoginDevice(this.crmUserId),this.isAdd=localStorage.getItem("isAdd")}ngOnInit(){"true"===this.isAdd?this.getAppFormFields(this.appId):this.getCustomerFieldsInfo(this.appFormDataId)}openConfirmationDialog(he){this.noteObj=he,this.dialog.open(mi.t,{width:"100%",maxWidth:"270px",maxHeight:"inherit",data:{note:he,title:"confirm save?"}}).afterClosed().subscribe(Je=>{console.log("The dialog was closed result",Je),this.confirmation=Je,this.confirmation&&this.saveCustomerInfo(this.confirmation)})}getAppFormFields(he){this.customerInfoService.getAppFormFields(he).subscribe(je=>{let Je=je.pop();this.isEdit=Je.isEdit,this.onlyShowImage=!1,this.fieldList=je;for(let At of this.fieldList)if(At.appFormFields.isRequired){let en=At.appFormFields.lable.toLowerCase().trim().replace(" ","_");this.validateObj[en]=["",xe.kI.required]}this.parentForm=this.fb.group(this.validateObj),je.length&&(this.isLoading=!1)})}getCustomerFieldsInfo(he){this.customerInfoService.getCustomerFieldsInfo(he).subscribe(je=>{let Je=je.pop();this.isEdit=Je.isEdit,this.onlyShowImage=!1,this.fieldList=je;for(let At of this.fieldList){if(At.appFormFields.isRequired){let en=At.appFormFields.lable.toLowerCase().trim().replace(" ","_");this.validateObj[en]=["",xe.kI.required]}At.fieldValues&&At.fieldValues.value&&At.fieldValues.value.files&&(this.uploadedFileUrls.push({name:At.appFormFields.lable,url:At.fieldValues.value.files.unsignedUrl}),this.signedUrls.push({name:At.appFormFields.lable,url:At.fieldValues.value.files.signedUrl}))}this.parentForm=this.fb.group(this.validateObj),je.length&&(this.isLoading=!1)})}onFileSelected(he){const je=he.target;if(this.isEdit){let li=je.value.replace(/^C:\\fakepath\\/,"");this.fileNameFromInput=li}let Je=he.target.name;this.inputNameOfBtn=Je,je.files&&je.files.length>0&&(this.selectedFiles=Array.from(je.files));for(const At of this.selectedFiles){if(At.size>this.maxFileSize)return void this.uploadFileNotification("Please upload a file less than 2MB.","Error!",!1);console.log(`File size is within the limit: ${At.size} bytes`)}if(this.selectedFiles.length>0){const At=new FormData;this.selectedFiles.forEach((li,zi)=>{At.append(`file${zi}`,li)}),this.customerInfoService.addNewFiles(At).subscribe(li=>{let zi=this.uploadedFileUrls.find(Hn=>Hn.name===Je),dn=this.signedUrls.find(Hn=>Hn.name===Je);zi?(zi.url=li.fileUrl,dn.url=li.signedUrl):(this.trackFileUpload=this.trackFileUpload+this.signedUrls.length,this.uploadedFileUrls.push({name:Je,url:li.fileUrl}),this.signedUrls.push({name:Je,url:li.signedUrl}));let en=this.getFileNameFromUrl(li.fileUrl);this.trackFileUpload++,Je?(en==this.fileNameFromInput&&this.isEdit&&(this.isEditEnabled=!0),this.uploadFileMessages[Je]=en):this.uploadedFileUrls.forEach(Hn=>{Hn.name===Je&&(this.uploadFileMessages[Je]=Hn.url)})},li=>{console.error("Error uploading files",li)})}}getFileNameFromUrl(he){try{const At=new URL(he).pathname.split("/");return decodeURIComponent(At[At.length-1])}catch(je){return console.error("Invalid URL:",je),""}}uploadFileNotification(he,je,Je){this.commonInfoService.showToaster(he,je,Je)}saveCustomerInfo(he){this.newDataArr=he;for(let je of this.newDataArr)if("File"==je.appFormFields.feFormFieldType.type)if(this.matchedFile=this.uploadedFileUrls.find(Je=>Je.name===je.appFormFields.lable),this.matchedFile){const Je=this.signedUrls.find(At=>At.name===je.appFormFields.lable);je.fieldValues.value=Je?{files:{unsignedUrl:this.matchedFile.url,signedUrl:Je.url},type:"File"}:{files:{unsignedUrl:this.matchedFile.url,signedUrl:null},type:"File"}}else je.fieldValues.value=null;this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(je=>{if(je){for(let Je of this.newDataArr)if("Image"==Je.appFormFields.feFormFieldType.type&&!Je.appFormFields.isDeleted)if(this.imageInfo=Je.addedEvent,this.imageInfo)this.isCordovaApp?this.addImageInApk(Je):this.addImageInPwa(Je);else{let At=Je.fieldValues.value.split("thirdNavi/")[1];Je.fieldValues.value=At,this.isEdit?this.updateCustomer(this.newDataArr):this.addNewCustomer(this.newDataArr)}}else console.log("Status is false. Showing notification"),this.showCrmNotification()})}addImageInPwa(he){const je=new FormData;je.append("profileImage",this.imageInfo,this.imageInfo.name),he.fieldValues.value=null,delete he.addedEvent,this.customerInfoService.addNewProfImage(je,this.appId).subscribe(Je=>{he.fieldValues.value=Je,this.isEdit?this.updateCustomer(this.newDataArr):this.addNewCustomer(this.newDataArr)})}addImageInApk(he){this.cameraService.uploadImageInApk(he.fieldValues.value,this.appId,this.userId).subscribe(Je=>{he.fieldValues.value=Je,this.isEdit?this.updateCustomer(this.newDataArr):this.addNewCustomer(this.newDataArr)},Je=>{console.log("Error : ",Je),this.commonInfoService.showCrmNotification("Error!","Server Error! Try again.",!1)})}addNewCustomer(he){this.customerInfoService.addNewCustomer(he,this.crmUserId,this.appId).subscribe(je=>{je?this.router.navigate(["/crm/crmHome"]):this.commonInfoService.showCrmNotification("Error!","Incorrect Data has been added.",!1)})}updateCustomer(he){this.customerInfoService.updateCustomer(he,this.appFormDataId).subscribe(je=>{je?this.router.navigate(["/crm/crmHome"]):this.commonInfoService.showCrmNotification("Error!","There is an error with edited data.",!1)})}showCrmNotification(){this.commonInfoService.showCrmNotification("Warning!","Sorry you cannot access the app. Please contact Admin.",!0)}uploadFileSizeNotification(){this.commonInfoService.showCrmNotification("Warning!","Please upload a file less than 2MB.",!1)}goBack(){this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(he=>{he?this.location.back():this.showCrmNotification()})}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275directiveInject(qe.on),o.\u0275\u0275directiveInject(C.y),o.\u0275\u0275directiveInject(ct),o.\u0275\u0275directiveInject(l.E),o.\u0275\u0275directiveInject(e.F0),o.\u0275\u0275directiveInject(xe.QS),o.\u0275\u0275directiveInject(u.V),o.\u0275\u0275directiveInject(He.r),o.\u0275\u0275directiveInject(n.Location))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-customer-add-edit-page"]],decls:2,vars:1,consts:[[1,"customer-add-edit-card"],["class","card-content",4,"ngIf"],[1,"card-content"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"formGroup"],["mat-stroked-button","","type","submit",1,"main-button",3,"ngClass","disabled","click"],[3,"onlyShowImage","imageField","isCordovaApp"],["class","action-btn",4,"ngIf"],[3,"parentForm","inputField"],[3,"parentForm","field"],[1,"action-btn"],["type","button","mat-raised-button","",3,"click"],[3,"id"],["type","file","id","fileInput",3,"parentForm","name","inputField","change"],["fileInput",""],["class","action-btn","style","margin-bottom: 14px;",4,"ngIf"],[1,"action-btn",2,"margin-bottom","14px"],["type","button","mat-raised-button","",2,"height","40px","text-align","left",3,"click"],[4,"ngIf","ngIfElse"],["noUrl",""],["type","file","id","fileInput",2,"display","none",3,"parentForm","name","inputField","value","change"]],template:function(je,Je){1&je&&(o.\u0275\u0275elementStart(0,"mat-card",0),o.\u0275\u0275template(1,xt,3,2,"mat-card-content",1),o.\u0275\u0275elementEnd()),2&je&&(o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!Je.isLoading))},dependencies:[n.NgClass,n.NgForOf,n.NgIf,xe._Y,xe.JL,xe.sg,ne.S$,ne.Qi,Oe.eB,be,ge,at],styles:[".customer-add-edit-card[_ngcontent-%COMP%]{text-align:-webkit-center;background-color:transparent;border:none;width:100%;box-shadow:none;min-height:100vh;height:auto;margin:0%;padding-top:80px}.card-content[_ngcontent-%COMP%]{padding-bottom:100px;margin:0 0 40px}.image-less-empty-div[_ngcontent-%COMP%]{background-color:transparent;border:none;height:30px}.done-button[_ngcontent-%COMP%]{font-size:medium!important;font-weight:450!important;letter-spacing:1.5px!important;color:#fff;text-align:center!important;background-color:transparent;border-color:#fff;border-width:2px;border:solid;border-radius:7px;padding-left:20px!important;padding-right:20px!important}.done-button-disabled[_ngcontent-%COMP%]{opacity:.5!important;pointer-events:none!important;font-size:medium!important;font-weight:450!important;letter-spacing:1.5px!important;color:#fff;text-align:center!important;background-color:transparent;border-color:#fff;border-width:2px;border:solid;border-radius:7px;padding-left:20px!important;padding-right:20px!important}.action-btn[_ngcontent-%COMP%]{width:85%;display:flex;align-items:baseline;gap:18px}.action-btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:40px;background-color:#f0e9e9;box-shadow:2px 2px 5px #0000004d;margin-bottom:16px}.action-btn[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:none}.action-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px}"]})}return ht})();var wt=a(7392),Mt=a(9982);let It=(()=>{class ht{changeString(he){this.search=he,this.SearchValueChange.emit(he)}constructor(){this.SearchValueChange=new o.EventEmitter}ngOnChanges(he){}static#e=this.\u0275fac=function(je){return new(je||ht)};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-search-bar"]],inputs:{search:"search"},outputs:{SearchValueChange:"SearchValueChange"},features:[o.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,consts:[["type","search","name","search","autocomplete","off","placeholder","\uf002  Search",1,"search-bar",3,"ngModel","ngModelChange"]],template:function(je,Je){1&je&&(o.\u0275\u0275elementStart(0,"input",0),o.\u0275\u0275listener("ngModelChange",function(li){return Je.search=li})("ngModelChange",function(li){return Je.changeString(li)}),o.\u0275\u0275elementEnd()),2&je&&o.\u0275\u0275property("ngModel",Je.search)},dependencies:[xe.Fj,xe.JJ,xe.On],styles:[".search-bar[_ngcontent-%COMP%]{display:flex;justify-content:center;font-family:fontawesome!important;font-style:normal!important;font-weight:400!important;text-decoration:inherit!important;font-size:medium!important;width:100%!important;padding:10px!important;border:none;border-radius:40px!important;background-color:#fff;color:#000}input.search-bar[_ngcontent-%COMP%]:focus{outline-width:0}[_ngcontent-%COMP%]::placeholder{text-align:left;color:#969696;font-size:medium;font-weight:450;letter-spacing:1.5px}"]})}return ht})();var se=a(3189);function we(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"mat-card-subtitle",20),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",he.value," ")}}function Le(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"a",21),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ht){const he=o.\u0275\u0275nextContext().$implicit,je=o.\u0275\u0275nextContext(2);o.\u0275\u0275propertyInterpolate("href",null==he.value||null==he.value.files?null:he.value.files.unsignedUrl,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(je.getFileNameFromUrl(null==he.value||null==he.value.files?null:he.value.files.unsignedUrl))}}function Ie(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,we,2,1,"mat-card-subtitle",18),o.\u0275\u0275template(2,Le,2,2,"a",19),o.\u0275\u0275elementEnd()),2&ht){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!(null!=he.value&&he.value.type)&&"File"!=(null==he.value?null:he.value.type)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",(null==he.value?null:he.value.type)&&"File"==(null==he.value?null:he.value.type))}}function Ot(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",24),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Je=o.\u0275\u0275nextContext().$implicit,At=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(At.showViewNotePage(Je.id))}),o.\u0275\u0275elementStart(1,"span",25),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"date"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"p",26),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"slice"),o.\u0275\u0275elementEnd()()}if(2&ht){const he=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind2(3,2,he.createdAt,"yyyy/MM/dd")),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1("",o.\u0275\u0275pipeBind3(6,5,he.comment,0,15),"....")}}function Me(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"mat-action-list",22),o.\u0275\u0275template(1,Ot,7,9,"button",23),o.\u0275\u0275elementEnd()),2&ht){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!he.isDeleted)}}function yt(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"mat-card",1)(1,"mat-card-header",2)(2,"div")(3,"div",3)(4,"button",4),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Je=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Je.viewEditCustomerPage())}),o.\u0275\u0275text(5," EDIT "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(6,"app-profile-image",5),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"div",6)(8,"mat-card-title",7),o.\u0275\u0275text(9),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(10,Ie,3,2,"div",8),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(11,"mat-card-content")(12,"span",9),o.\u0275\u0275text(13,"Notes"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(14,"div",10)(15,"div",11)(16,"app-search-bar",12),o.\u0275\u0275listener("SearchValueChange",function(Je){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(At.changeSearchingValue(Je))}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(17,"div",13)(18,"button",14),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Je=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Je.viewAddNotePage())}),o.\u0275\u0275elementStart(19,"mat-icon",15),o.\u0275\u0275text(20,"add"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(21,"div",16),o.\u0275\u0275template(22,Me,2,1,"mat-action-list",17),o.\u0275\u0275pipe(23,"filter"),o.\u0275\u0275elementEnd()()()}if(2&ht){const he=o.\u0275\u0275nextContext();o.\u0275\u0275advance(6),o.\u0275\u0275property("imageField",he.customerProfImage)("onlyShowImage",he.isShowProfile),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(he.customerFullName),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",he.customerInfo),o.\u0275\u0275advance(6),o.\u0275\u0275property("search",he.searchNote),o.\u0275\u0275advance(6),o.\u0275\u0275property("ngForOf",o.\u0275\u0275pipeBind2(23,6,he.customerNotes,he.searchNote))}}let St=(()=>{class ht{constructor(he,je,Je,At,li,zi){this.titleService=he,this.customerInfoService=je,this.commonInfoService=Je,this.router=At,this.dataService=li,this.location=zi,this.appId="",this.appFormDataId="",this.crmUserId="",this.customerFullName="",this.customerProfImage={},this.searchNote="",this.customerInfo=[],this.customerNotes=[],this.isLoading=!0,this.commonInfoService.changeAddEditCustomerStatus(!1),this.isCrmContact=!1,localStorage.setItem("isCrmContact",JSON.stringify(this.isCrmContact)),this.titleService.changeTitle("CONTACT"),this.titleService.setLocation("/crm/contactDetailsPage"),this.appId=localStorage.getItem("appId"),this.crmUserId=localStorage.getItem("crmUserId"),this.appFormDataId=this.commonInfoService.appFormDataID,this.dataService.isFromSearchComponent.subscribe(en=>{this.isFromSearchComponent=en})}ngOnInit(){this.showCustomerInfo(this.appFormDataId)}showCustomerInfo(he){this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(je=>{je?this.customerInfoService.showCustomerInfo(he).subscribe(Je=>{this.customerInfo=Je.appFormFieldData,this.customerNotes=Je.crmUserNotes,this.customerFullName=Je.fullName,this.customerProfImage=Je.profileImage,this.isShowProfile=Je.isShowProfile,this.onlyShowImage=!0,this.isLoading=this.isEmpty(Je)}):this.showCrmNotification()})}isEmpty(he){for(let je in he)if(he.hasOwnProperty(je))return!1;return!0}viewEditCustomerPage(){localStorage.setItem("isAdd",(!1).toString()),this.commonInfoService.changeAddEditCustomerStatus(!1),this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(je=>{je?(this.commonInfoService.changeAddEditCustomerStatus(!1),this.commonInfoService.changeAppFormDataId(this.appFormDataId),this.router.navigate(["/crm/customerAddEditPage"])):this.showCrmNotification()})}changeSearchingValue(he){this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(je=>{je?this.searchNote=he:this.showCrmNotification()})}viewAddNotePage(){this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(he=>{he?(this.commonInfoService.changeAppFormDataId(this.appFormDataId),this.router.navigate(["/crm/addNotePage"])):this.showCrmNotification()})}showViewNotePage(he){this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(je=>{je?(this.commonInfoService.changeAppFormDataId(this.appFormDataId),this.commonInfoService.changeNoteId(he),localStorage.setItem("noteId",he),this.router.navigate(["/crm/viewNotePage"])):this.showCrmNotification()})}showCrmNotification(){this.commonInfoService.showCrmNotification("Warning!","Sorry you cannot access the app. Please contact Admin.",!0)}containsUrl(he){return/https?:\/\/[^\s]+/i.test(he)}isValidUrl(he){try{return new URL(he),!0}catch{return!1}}getFileNameFromUrl(he){try{const At=new URL(he).pathname.split("/");return decodeURIComponent(At[At.length-1])}catch(je){return console.error("Invalid URL:",je),""}}goBack(){this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(he=>{he?this.router.navigate(["/crm/homePage"]):(this.showCrmNotification(),console.log("loc bak",this.location))})}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275directiveInject(C.y),o.\u0275\u0275directiveInject(ct),o.\u0275\u0275directiveInject(l.E),o.\u0275\u0275directiveInject(e.F0),o.\u0275\u0275directiveInject(u.V),o.\u0275\u0275directiveInject(n.Location))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-customer-details-page"]],decls:1,vars:1,consts:[["class","customer-notes-card",4,"ngIf"],[1,"customer-notes-card"],[1,"notes-card-header"],[1,"edit-btn-div"],["mat-button","",1,"edit-button","main-content-font",3,"click"],[3,"imageField","onlyShowImage"],[2,"padding-top","15px"],[1,"customer-info-title","main-header-font"],[4,"ngFor","ngForOf"],[1,"notes-card-span","main-content-font"],[1,"search-note"],[1,"align-search-hor"],[3,"search","SearchValueChange"],[1,"align-plusicon-hor"],["mat-icon-button","","aria-label","Button with add icon",3,"click"],["aria-hidden","false","aria-label","Add note icon",1,"add-note-button","main-content-font"],[1,"notes-list-div"],["class","notes-list",4,"ngFor","ngForOf"],["class","customer-info-subtitle main-header-font",4,"ngIf"],["class","customer-info-subtitle main-header-font",3,"href",4,"ngIf"],[1,"customer-info-subtitle","main-header-font"],[1,"customer-info-subtitle","main-header-font",3,"href"],[1,"notes-list"],["class","note-button","mat-list-item","",3,"click",4,"ngIf"],["mat-list-item","",1,"note-button",3,"click"],[1,"date-content","main-content-font"],[1,"note-content","main-content-font"]],template:function(je,Je){1&je&&o.\u0275\u0275template(0,yt,24,9,"mat-card",0),2&je&&o.\u0275\u0275property("ngIf",!Je.isLoading)},dependencies:[n.NgForOf,n.NgIf,ne.S$,ne.u7,ne.Qi,ne.mi,ne._K,Oe.eB,wt.Hw,Mt.Zj,Mt.oh,be,It,n.SlicePipe,n.DatePipe,se.Z],styles:[".customer-notes-card[_ngcontent-%COMP%]{text-align:left;background-color:transparent;border:none;box-shadow:none;width:100%;min-height:80vh;height:auto;margin:0%;padding:70px 0 100px}.edit-btn-div[_ngcontent-%COMP%]{position:absolute;float:right;width:95%}.edit-button[_ngcontent-%COMP%]{float:right;width:40px;text-align:center;font-size:large;font-weight:550;letter-spacing:1px;color:#fff;background-color:transparent!important}.notes-card-header[_ngcontent-%COMP%]{background-color:transparent;border:none;padding-bottom:7px;text-align:-webkit-center;display:flex;flex-direction:column;justify-content:center}.customer-info-card-image[_ngcontent-%COMP%]{background-size:auto;height:150px;width:150px;border-radius:50%;flex-shrink:0;object-fit:cover}.customer-info-title[_ngcontent-%COMP%]{color:#f0f0f0;font-size:21px;letter-spacing:1.5px;margin-bottom:10px}.customer-info-subtitle[_ngcontent-%COMP%]{color:#f0f0f0;font-size:15px;letter-spacing:1.5px;margin-bottom:7px}.notes-card-span[_ngcontent-%COMP%]{font-size:medium;letter-spacing:2px;color:#fff;padding:0 0 0 40px!important}.search-note[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-bottom:0!important;margin-top:10px!important}.align-search-hor[_ngcontent-%COMP%]{display:inline-block;width:80%;padding-left:20px}.align-plusicon-hor[_ngcontent-%COMP%]{display:flex;justify-content:center;width:15%}  .add-note-button{display:flex!important;align-items:center;color:#fff;height:40px!important;width:40px!important;font-size:36px!important;font-family:Material Icons!important;letter-spacing:0em!important;font-weight:500!important}.notes-list-div[_ngcontent-%COMP%]{padding-top:19px}.notes-list[_ngcontent-%COMP%]{padding-bottom:7px;color:#fff}.note-button[_ngcontent-%COMP%]{font-size:medium;height:-moz-fit-content;height:fit-content;width:95%;color:#fff;padding-left:6px}.date-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;color:#fff;letter-spacing:1px;word-spacing:2px}.note-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;width:100%;margin:0 10px 0 20px;color:#fff;letter-spacing:1.5px;word-spacing:2px}"]})}return ht})(),ii=(()=>{class ht{constructor(he){this.http=he,this.crmServerUrl=`${le.L}/api`,this.appId=d.Jf,this.cmsUserId=d.xS,this.httpOptions={headers:new B.WM({"Content-Type":"application/json"})}}loggedCrmUser(he,je){const Je=`${this.crmServerUrl}/loggedCrmUser`;let At=(new B.LE).set("userId",he).set("appId",je).set("cmsUserId",this.cmsUserId);return this.http.get(Je,{params:At}).pipe((0,Z.K)(this.handleError(`Error getCrmUser id : ${he}`)))}getCustomerList(he,je){const Je=`${this.crmServerUrl}/getAllCustomerNames`;let At=(new B.LE).set("userId",he).set("appId",je);return this.http.get(Je,{params:At}).pipe((0,Z.K)(this.handleError("Error getCustomer",[])))}handleError(he="operation",je){return Je=>(console.error(Je),(0,j.of)(je))}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275inject(B.eN))};static#t=this.\u0275prov=o.\u0275\u0275defineInjectable({token:ht,factory:ht.\u0275fac,providedIn:"root"})}return ht})();function Ki(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",15),o.\u0275\u0275listener("click",function(){const At=o.\u0275\u0275restoreView(he).$implicit,li=o.\u0275\u0275nextContext(3);return o.\u0275\u0275resetView(li.viewCustomerDetailsPage(At.appFormDataId))}),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()}if(2&ht){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",he.value," ")}}function Pn(ht,ni){if(1&ht&&(o.\u0275\u0275elementStart(0,"div")(1,"mat-action-list"),o.\u0275\u0275template(2,Ki,2,1,"button",14),o.\u0275\u0275pipe(3,"filter"),o.\u0275\u0275elementEnd()()),2&ht){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(2),o.\u0275\u0275property("ngForOf",o.\u0275\u0275pipeBind2(3,1,he.crmCustomers,he.searchCustomer))}}function ir(ht,ni){if(1&ht){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"mat-card",1)(1,"div",2)(2,"mat-card-header"),o.\u0275\u0275element(3,"app-profile-image",3),o.\u0275\u0275elementStart(4,"div",4)(5,"mat-card-title",5),o.\u0275\u0275text(6),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"mat-card-subtitle",6),o.\u0275\u0275text(8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(9,"mat-card-subtitle",6),o.\u0275\u0275text(10),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(11,"mat-card-content")(12,"div",7)(13,"div",8)(14,"app-search-bar",9),o.\u0275\u0275listener("SearchValueChange",function(Je){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(At.changeSearchingValue(Je))}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(15,"div",10)(16,"button",11),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Je=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Je.viewAddCustomerPage())}),o.\u0275\u0275elementStart(17,"mat-icon",12),o.\u0275\u0275text(18,"add"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275template(19,Pn,4,4,"div",13),o.\u0275\u0275elementEnd()()}if(2&ht){const he=o.\u0275\u0275nextContext();o.\u0275\u0275advance(3),o.\u0275\u0275property("imageField",he.crmUser)("onlyShowImage",he.onlyShowImage),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(he.crmUser.name),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(he.crmUser.email),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(he.crmUser.mobile),o.\u0275\u0275advance(4),o.\u0275\u0275property("search",he.searchCustomer),o.\u0275\u0275advance(5),o.\u0275\u0275property("ngIf",he.crmCustomers.length)}}const fr=[{path:"",component:me,children:[{path:"",redirectTo:"crmHome",pathMatch:"full"},{path:"loginPage",component:nt,canActivate:[v]},{path:"crmHome",component:(()=>{class ht{constructor(he,je,Je,At,li){this.titleService=he,this.homePageService=je,this.commonInfoService=Je,this.router=At,this.dataService=li,this.appId="",this.crmUserId="",this.crmCustomers=[],this.searchCustomer="",this.appData={},this.isLoading=!0,this.crmId="",this.commonInfoService.changeAddEditCustomerStatus(!1),this.isCrmContact=!1,localStorage.setItem("isCrmContact",JSON.stringify(this.isCrmContact)),this.appData=JSON.parse(localStorage.getItem("appData")),this.titleService.changeTitle(this.appData.appName),this.titleService.setLocation("crmHome"),this.appId=localStorage.getItem("appId"),this.crmUserId=localStorage.getItem("crmUserId"),this.commonInfoService.listenCrmUserLoginDevice(this.crmUserId)}ngOnInit(){this.loggedUserInfo(this.crmUserId,this.appId)}loggedUserInfo(he,je){this.homePageService.loggedCrmUser(he,je).subscribe(Je=>{this.crmUser=Je,this.onlyShowImage=Je.onlyShowImage,this.isLoading=this.isEmpty(Je),this.getCustomerList()})}getCustomerList(){this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(he=>{he?this.homePageService.getCustomerList(this.crmUserId,this.appId).subscribe(je=>{this.crmCustomers=je}):this.showCrmNotification()})}viewMenuPage(){this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(he=>{he?(this.commonInfoService.changeCrmUserId(this.crmUserId),this.router.navigate(["/crm/menuPage"])):this.showCrmNotification()})}changeSearchingValue(he){this.commonInfoService.listenCrmUserLoginDevice(this.crmUserId),this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(je=>{je?this.searchCustomer=he:this.showCrmNotification()})}viewAddCustomerPage(){localStorage.setItem("isAdd",(!0).toString()),this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(je=>{je?(this.commonInfoService.changeAddEditCustomerStatus(!0),this.router.navigate(["/crm/customerAddEditPage"])):this.showCrmNotification()})}viewCustomerDetailsPage(he){this.crmId=he,this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(je=>{je?(this.commonInfoService.changeAppFormDataId(he),localStorage.setItem("crmId",he),localStorage.setItem("initialCtrmId",he),this.router.navigate(["/crm/contactDetailsPage"])):this.showCrmNotification()})}isEmpty(he){for(let je in he)if(he.hasOwnProperty(je))return!1;return!0}showCrmNotification(){this.commonInfoService.showCrmNotification("Warning!","Sorry you cannot access the app. Please contact Admin.",!0)}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275directiveInject(C.y),o.\u0275\u0275directiveInject(ii),o.\u0275\u0275directiveInject(l.E),o.\u0275\u0275directiveInject(e.F0),o.\u0275\u0275directiveInject(u.V))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-home-page"]],decls:1,vars:1,consts:[["class","home-page-card",4,"ngIf"],[1,"home-page-card"],[1,"homepage-card-header"],[3,"imageField","onlyShowImage"],[1,"titles-set"],[1,"header-title","main-header-font"],[1,"header-sub-title","main-header-font"],[1,"search-customer"],[1,"align-search-hor"],[3,"search","SearchValueChange"],[1,"align-plusicon-hor"],["mat-icon-button","","aria-label","Button with add icon",1,"auto-btn-add-note",3,"click"],["aria-hidden","false","aria-label","Add note icon",1,"add-note-button","main-content-font"],[4,"ngIf"],["class","customer-list-button main-content-font","mat-list-item","",3,"click",4,"ngFor","ngForOf"],["mat-list-item","",1,"customer-list-button","main-content-font",3,"click"]],template:function(je,Je){1&je&&o.\u0275\u0275template(0,ir,20,7,"mat-card",0),2&je&&o.\u0275\u0275property("ngIf",!Je.isLoading)},dependencies:[n.NgForOf,n.NgIf,ne.S$,ne.u7,ne.Qi,ne.mi,ne._K,Oe.eB,wt.Hw,Mt.Zj,Mt.oh,be,It,se.Z],styles:[".home-page-card[_ngcontent-%COMP%]{width:100%;min-height:80vh;height:auto;background-color:transparent;padding:70px 0 100px;border:none;box-shadow:none;margin:0%}.homepage-card-header[_ngcontent-%COMP%]{display:flex;justify-content:center;padding-top:0}.titles-set[_ngcontent-%COMP%]{padding:8px 0 0 15px}.header-title[_ngcontent-%COMP%]{letter-spacing:1px;padding:0 0 5px;color:#fff;width:auto;margin-right:auto;margin-bottom:5px}.header-sub-title[_ngcontent-%COMP%]{padding-top:0;padding-bottom:5px;margin-top:0;margin-bottom:0;color:#fff}.search-customer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-bottom:10px!important;margin-top:15px!important}.align-search-hor[_ngcontent-%COMP%]{display:inline-block;width:80%;padding-left:20px}.align-plusicon-hor[_ngcontent-%COMP%]{display:flex;justify-content:center;width:15%}  .add-note-button{display:flex!important;align-items:center;color:#fff;height:40px!important;width:40px!important;font-size:36px!important;font-family:Material Icons!important;letter-spacing:0em!important;font-weight:500!important}.customer-list[_ngcontent-%COMP%]{height:450px;overflow:visible;overflow-y:scroll}.customer-list-button[_ngcontent-%COMP%]{margin-left:26px;width:90%!important;color:#fff}.mat-list-base[_ngcontent-%COMP%]   .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%]   .mat-list-option[_ngcontent-%COMP%]{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}"]})}return ht})(),canActivate:[v]},{path:"contactPage",component:(()=>{class ht{constructor(he,je){this.loginPageService=he,this.commonInfoService=je,this.appId=d.Jf,this.userId=d.xS,this.appIcon="",this.crmAppName="",this.crmUserId="",this.commonInfoService.changeAddEditCustomerStatus(!1),this.isContactPage=!0,localStorage.setItem("isCrmContact",JSON.stringify(this.isContactPage)),this.crmUserId=localStorage.getItem("crmUserId"),this.commonInfoService.listenCrmUserLoginDevice(this.crmUserId)}ngOnInit(){this.getCrmAppDetails(),this.getContactUsData()}getCrmAppDetails(){this.loginPageService.getCrmAppDetails(this.appId,this.userId).subscribe(he=>{this.logoUrl=he.logoUrl,this.crmAppName=he.appdata.appName})}getContactUsData(){this.loginPageService.getContactUsData().subscribe(he=>{he?(this.email=he.email,this.phoneNumber=he.telPhone):(this.email="info@simatosolutions.com",this.phoneNumber="+94 117 431232")})}static#e=this.\u0275fac=function(je){return new(je||ht)(o.\u0275\u0275directiveInject(q),o.\u0275\u0275directiveInject(l.E))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:ht,selectors:[["app-contact-page"]],decls:14,vars:8,consts:[[1,"contact-page-card"],[1,"app-logo"],["mat-card-image","","alt","Application Logo",1,"app-logo",3,"src"],[1,"app-name-div"],[1,"app-name","main-header-font"],[1,"div-contact-email"],[1,"conect-company",3,"href"],[1,"div-contact-tp"]],template:function(je,Je){1&je&&(o.\u0275\u0275elementStart(0,"mat-card",0)(1,"mat-card-content")(2,"div",1),o.\u0275\u0275element(3,"img",2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"div",3)(5,"span",4),o.\u0275\u0275text(6),o.\u0275\u0275pipe(7,"uppercase"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(8,"div",5)(9,"a",6),o.\u0275\u0275text(10),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(11,"div",7)(12,"a",6),o.\u0275\u0275text(13),o.\u0275\u0275elementEnd()()()()),2&je&&(o.\u0275\u0275advance(3),o.\u0275\u0275propertyInterpolate("src",Je.logoUrl,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(7,6,Je.crmAppName)),o.\u0275\u0275advance(3),o.\u0275\u0275propertyInterpolate1("href","mailto:",Je.email,"",o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(Je.email),o.\u0275\u0275advance(2),o.\u0275\u0275propertyInterpolate("href","tel:"+Je.phoneNumber,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(Je.phoneNumber))},dependencies:[ne.S$,ne.Qi,ne.k0,n.UpperCasePipe],styles:[".contact-page-card[_ngcontent-%COMP%]{text-align:-webkit-center;background-color:transparent;border:none;box-shadow:none;margin:0%;width:100%;min-height:80vh;height:auto;padding:70px 0 100px}.app-logo[_ngcontent-%COMP%]{text-align:center;max-width:250px;padding-top:20px;margin:0 0 5px}.app-name-div[_ngcontent-%COMP%]{text-align:-webkit-center;margin:0 0 50px}.app-name[_ngcontent-%COMP%]{color:#fff;font-size:x-large;letter-spacing:1mm;text-align:center}.div-contact-email[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:30px}.div-contact-tp[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:60px}.conect-company[_ngcontent-%COMP%]{color:#fff;font-size:medium}"]})}return ht})(),canActivate:[v]},{path:"contactDetailsPage",component:St,canActivate:[v]},{path:"addNotePage",component:W,canActivate:[v]},{path:"viewNotePage",component:zt,canActivate:[v]},{path:"customerAddEditPage",component:Ht,canActivate:[v]},{path:"**",redirectTo:"crmHome"}]}];let ar=(()=>{class ht{static#e=this.\u0275fac=function(je){return new(je||ht)};static#t=this.\u0275mod=o.\u0275\u0275defineNgModule({type:ht});static#i=this.\u0275inj=o.\u0275\u0275defineInjector({imports:[e.Bz.forChild(fr),e.Bz]})}return ht})();var Xi=a(3683),Mn=a(1281),Ln=a(3353),Rn=a(3668),zn=a(3238);const Fn=new o.InjectionToken("mat-progress-spinner-default-options",{providedIn:"root",factory:function bi(){return{diameter:gi}}}),gi=100;var qn=a(2654);function Mi(ht,ni){if(1&ht&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275element(0,"circle",4)),2&ht){const he=o.\u0275\u0275nextContext(),je=o.\u0275\u0275reference(1);o.\u0275\u0275styleProp("animation-name","mat-progress-spinner-stroke-rotate-"+he._spinnerAnimationLabel)("stroke-dashoffset",he._getStrokeDashOffset(),"px")("stroke-dasharray",he._getStrokeCircumference(),"px")("stroke-width",he._getCircleStrokeWidth(),"%")("transform-origin",he._getCircleTransformOrigin(je)),o.\u0275\u0275attribute("r",he._getCircleRadius())}}function qi(ht,ni){if(1&ht&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275element(0,"circle",4)),2&ht){const he=o.\u0275\u0275nextContext(),je=o.\u0275\u0275reference(1);o.\u0275\u0275styleProp("stroke-dashoffset",he._getStrokeDashOffset(),"px")("stroke-dasharray",he._getStrokeCircumference(),"px")("stroke-width",he._getCircleStrokeWidth(),"%")("transform-origin",he._getCircleTransformOrigin(je)),o.\u0275\u0275attribute("r",he._getCircleRadius())}}const Bn=(0,zn.pj)(class{constructor(ht){this._elementRef=ht}},"primary");class On extends Bn{get diameter(){return this._diameter}set diameter(ni){this._diameter=(0,Mn.su)(ni),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(ni){this._strokeWidth=(0,Mn.su)(ni)}get value(){return"determinate"===this.mode?this._value:0}set value(ni){this._value=Math.max(0,Math.min(100,(0,Mn.su)(ni)))}constructor(ni,he,je,Je,At,li,zi,dn){super(ni),this._document=je,this._diameter=100,this._value=0,this._resizeSubscription=qn.w.EMPTY,this.mode="determinate";const en=On._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),en.has(je.head)||en.set(je.head,new Set([100])),this._noopAnimations="NoopAnimations"===Je&&!!At&&!At._forceAnimations,"mat-spinner"===ni.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),At&&(At.color&&(this.color=this.defaultColor=At.color),At.diameter&&(this.diameter=At.diameter),At.strokeWidth&&(this.strokeWidth=At.strokeWidth)),he.isBrowser&&he.SAFARI&&zi&&li&&dn&&(this._resizeSubscription=zi.change(150).subscribe(()=>{"indeterminate"===this.mode&&dn.run(()=>li.markForCheck())}))}ngOnInit(){const ni=this._elementRef.nativeElement;this._styleRoot=(0,Ln.kV)(ni)||this._document.head,this._attachStyleNode(),ni.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const ni=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${ni} ${ni}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(ni){const he=50*(ni.currentScale??1);return`${he}% ${he}%`}_attachStyleNode(){const ni=this._styleRoot,he=this._diameter,je=On._diameters;let Je=je.get(ni);if(!Je||!Je.has(he)){const At=this._document.createElement("style");At.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),At.textContent=this._getAnimationText(),ni.appendChild(At),Je||(Je=new Set,je.set(ni,Je)),Je.add(he)}}_getAnimationText(){const ni=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*ni).replace(/END_VALUE/g,""+.2*ni).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}On._diameters=new WeakMap,On.\u0275fac=function(ni){return new(ni||On)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(Ln.t4),o.\u0275\u0275directiveInject(n.DOCUMENT,8),o.\u0275\u0275directiveInject(o.ANIMATION_MODULE_TYPE,8),o.\u0275\u0275directiveInject(Fn),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(Rn.rL),o.\u0275\u0275directiveInject(o.NgZone))},On.\u0275cmp=o.\u0275\u0275defineComponent({type:On,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(ni,he){2&ni&&(o.\u0275\u0275attribute("aria-valuemin","determinate"===he.mode?0:null)("aria-valuemax","determinate"===he.mode?100:null)("aria-valuenow","determinate"===he.mode?he.value:null)("mode",he.mode),o.\u0275\u0275styleProp("width",he.diameter,"px")("height",he.diameter,"px"),o.\u0275\u0275classProp("_mat-animation-noopable",he._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[o.\u0275\u0275InheritDefinitionFeature],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(ni,he){1&ni&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275elementStart(0,"svg",0,1),o.\u0275\u0275template(2,Mi,1,11,"circle",2),o.\u0275\u0275template(3,qi,1,9,"circle",3),o.\u0275\u0275elementEnd()),2&ni&&(o.\u0275\u0275styleProp("width",he.diameter,"px")("height",he.diameter,"px"),o.\u0275\u0275property("ngSwitch","indeterminate"===he.mode),o.\u0275\u0275attribute("viewBox",he._getViewBox()),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngSwitchCase",!0),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitchCase",!1))},dependencies:[n.NgSwitch,n.NgSwitchCase],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let Yn=(()=>{class ht{}return ht.\u0275fac=function(he){return new(he||ht)},ht.\u0275mod=o.\u0275\u0275defineNgModule({type:ht}),ht.\u0275inj=o.\u0275\u0275defineInjector({imports:[zn.BQ,n.CommonModule,zn.BQ]}),ht})(),Nn=(()=>{class ht{static#e=this.\u0275fac=function(je){return new(je||ht)};static#t=this.\u0275mod=o.\u0275\u0275defineNgModule({type:ht});static#i=this.\u0275inj=o.\u0275\u0275defineInjector({imports:[n.CommonModule,ar,xe.UX,ne.IF,Ze.x4,xe.u5,Oe.yu,B.JF,Xi.g0,wt.Ps,Mt.gR,se.h,qe.yj,ke.uw,Yn]})}return ht})()},3657:(G,P,a)=>{"use strict";a.r(P),a.d(P,{JobTemplateModule:()=>Le});var n=a(6895),e=a(4006),o=a(8729),l=a(1526),v=a(1411),d=a(4650),u=a(1086),b=a(529),C=a(7221),x=a(8136);let w=(()=>{class Ie{constructor(Me){this.http=Me,this.server_Url=`${x.L}/api`,this.appId=v.Jf,this.cmsUserId=v.xS,this.userId=v.xS,this.httpOptions={headers:new b.WM({"Content-Type":"application/json"})}}showCustomerInfo(Me){const yt=`${this.server_Url}/getOneCustomer`;let St=(new b.LE).set("cstmrId",Me).set("cmsUserId",this.cmsUserId);return this.http.get(yt,{params:St}).pipe((0,C.K)(this.handleError(`Error getCustomer id : ${Me}`)))}getAppFormFields(Me){return this.http.get(`${this.server_Url}/getAppFormFields/${Me}`).pipe((0,C.K)(this.handleError(`Error getFieldsInfo - App Id : ${Me}`)))}retrieveSliderData(){const Me={headers:new b.WM({"Content-Type":"application/json"}),params:(new b.LE).append("appId",this.appId).append("userId",this.userId)};return this.http.get(x.L+"/templates/getSliderData",Me)}getCustomerFieldsInfo(Me){const yt=`${this.server_Url}/getCustomerFormFields`;let St=(new b.LE).set("cstmrId",Me).set("cmsUserId",this.cmsUserId);return this.http.get(yt,{params:St}).pipe((0,C.K)(this.handleError(`Error getFieldsInfo - Customer id : ${Me}`)))}addOrEditUser(Me){return this.http.post(`${this.server_Url}/addOrEditUser`,Me)}getLatestJobs(Me,yt){return this.http.get(`${this.server_Url}/getLatestJobs/${Me}/${yt}`)}loginJobAppUser(Me){return this.http.post(`${this.server_Url}/loginJobAppUser`,Me,this.httpOptions)}forgotPassword(Me){return this.http.post(`${this.server_Url}/forgotPasswordJobAppUser`,Me,this.httpOptions)}handleError(Me="operation",yt){return St=>(console.error(St),(0,u.of)(yt))}static#e=this.\u0275fac=function(yt){return new(yt||Ie)(d.\u0275\u0275inject(b.eN))};static#t=this.\u0275prov=d.\u0275\u0275defineInjectable({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}return Ie})();var g=a(1713),f=a(6026),S=a(2013),j=a(2684),B=a(9066),Z=a(8377),le=a(2042),q=a(9818);let X=(()=>{class Ie{constructor(Me,yt,St,ii,Ki,Pn,ir){this.router=Me,this.customerInfoService=yt,this.profileService=St,this.titleService=ii,this.notificationService=Ki,this.messageService=Pn,this.dataService=ir,this.appId=v.Jf}ngOnInit(){this.titleService.changeTitle("My profile"),this.messageService.sendMessage({loadImageCount:this.dataService.initialImageCount})}loginInfo(Me,yt){this.customerInfoService.loginJobAppUser({email:Me,password:yt,appId:this.appId}).subscribe(ii=>{ii.isVerifiedCredentials?(this.profileService.saveFormDataIdInLocalStorage(ii.appFormDataId),this.notificationService.showNotification("Login Success !"),this.router.navigate([""])):this.notificationService.showNotification("The email or password you entered is incorrect")},ii=>{console.log("error ---0--\x3e",ii),this.notificationService.showNotification("The email or password you entered is incorrect")})}gotoRegPage(){this.router.navigate(["job/form"])}forgotPassword(Me){Me.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)?this.customerInfoService.forgotPassword({appId:this.appId,email:Me}).subscribe(ii=>{this.notificationService.showNotification(ii.message)},ii=>{ii&&ii.error&&ii.error.text&&this.notificationService.showNotification(ii.error.text)}):this.notificationService.showNotification("Please enter a valid email address")}static#e=this.\u0275fac=function(yt){return new(yt||Ie)(d.\u0275\u0275directiveInject(o.F0),d.\u0275\u0275directiveInject(w),d.\u0275\u0275directiveInject(g.H),d.\u0275\u0275directiveInject(f.y),d.\u0275\u0275directiveInject(S.g),d.\u0275\u0275directiveInject(j.e),d.\u0275\u0275directiveInject(B.V))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Ie,selectors:[["app-login"]],decls:26,vars:3,consts:[[1,"login-card"],[1,"login-card-content"],[1,"title"],[1,"line-style"],["name","loginForm"],["loginForm","ngForm"],["id","flex-style"],[1,"field-name"],[1,"input-position"],["placeholder","Email","type","email","matInput","","name","userEmail","email","true","ngModel","","pattern","^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$","required","",1,"input-info-field",3,"ngModel","ngModelChange"],["placeholder","Password","type","password","matInput","","name","userPassword","required","",1,"input-info-field",3,"ngModel","ngModelChange"],["type","submit","mat-raised-button","",1,"main-button","login-button",3,"disabled","click"],["mat-button","",2,"margin","2px","width","100%",3,"click"],["type","submit","mat-raised-button","",1,"main-button","goto-reg-button",3,"click"]],template:function(yt,St){if(1&yt&&(d.\u0275\u0275elementStart(0,"mat-card",0)(1,"mat-card-content",1)(2,"mat-card-title",2),d.\u0275\u0275text(3,"LOGIN TO YOUR ACCOUNT"),d.\u0275\u0275elementEnd(),d.\u0275\u0275element(4,"hr",3),d.\u0275\u0275elementStart(5,"form",4,5)(7,"table")(8,"tr",6)(9,"td",7),d.\u0275\u0275text(10,"Email Address"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(11,"td")(12,"div",8)(13,"input",9),d.\u0275\u0275listener("ngModelChange",function(Ki){return St.email=Ki}),d.\u0275\u0275elementEnd()()()(),d.\u0275\u0275elementStart(14,"tr",6)(15,"td",7),d.\u0275\u0275text(16,"Password"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(17,"td")(18,"div",8)(19,"input",10),d.\u0275\u0275listener("ngModelChange",function(Ki){return St.password=Ki}),d.\u0275\u0275elementEnd()()()()(),d.\u0275\u0275elementStart(20,"button",11),d.\u0275\u0275listener("click",function(){return St.loginInfo(St.email,St.password)}),d.\u0275\u0275text(21," Login "),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(22,"button",12),d.\u0275\u0275listener("click",function(){return St.forgotPassword(St.email)}),d.\u0275\u0275text(23," Forgotten Password ? "),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(24,"button",13),d.\u0275\u0275listener("click",function(){return St.gotoRegPage()}),d.\u0275\u0275text(25," Create New Account "),d.\u0275\u0275elementEnd()()()()),2&yt){const ii=d.\u0275\u0275reference(6);d.\u0275\u0275advance(13),d.\u0275\u0275property("ngModel",St.email),d.\u0275\u0275advance(6),d.\u0275\u0275property("ngModel",St.password),d.\u0275\u0275advance(1),d.\u0275\u0275property("disabled",!ii.form.valid)}},dependencies:[e._Y,e.Fj,e.JJ,e.JL,e.Q7,e.c5,e.on,e.On,e.F,Z.S$,Z.Qi,Z.mi,le.k0,q.eB],styles:[".login-card[_ngcontent-%COMP%]{text-align:-webkit-center;background-color:transparent;border:none;box-shadow:none;min-height:100vh;height:auto;margin:auto;display:flex;align-items:center;font-family:Work Sans,sans-serif}.login-card-content[_ngcontent-%COMP%]{padding:4%;margin:auto;border-radius:17px;background-color:#fff}.title[_ngcontent-%COMP%]{font-weight:700}@media only screen and (max-width: 425px){#flex-style[_ngcontent-%COMP%]{display:flex;flex-direction:column}#flex-style[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{width:200px}.login-card-content[_ngcontent-%COMP%]{padding:9%}}.app-name-div[_ngcontent-%COMP%]{text-align:-webkit-center;margin:0 0 35px}.app-name[_ngcontent-%COMP%]{color:#fff;font-size:x-large;letter-spacing:1mm;text-align:center}.card-image[_ngcontent-%COMP%]{text-align:center;max-width:250px;margin:0 0 10px}.input-position[_ngcontent-%COMP%]{margin:0 0 2% 1%}[_ngcontent-%COMP%]::placeholder{color:#adadad;text-align:center;font-size:medium;font-weight:450;letter-spacing:1.5px}.input-info-field[_ngcontent-%COMP%]{padding-left:15px;text-align:left;font-size:medium;background-color:#fff!important;background:white!important;height:40px;width:100%;border:2px solid #00000066;border-radius:4px}.goto-reg-button[_ngcontent-%COMP%]{color:#fff;text-align:center!important;background-color:#4b5d67;border-color:#fff;border-width:3px;border-radius:7px;padding-left:20px!important;padding-right:20px!important;width:100%}.login-button[_ngcontent-%COMP%]{font-size:medium!important;font-weight:550!important;letter-spacing:1.5px!important;color:#fff;text-align:center!important;background-color:#0d3561;border-color:#fff;border-width:3px;border-radius:7px;margin-top:30px!important;padding-left:20px!important;padding-right:20px!important;width:100%}.login-button-disabled[_ngcontent-%COMP%]{opacity:.5!important;pointer-events:none!important;font-size:medium!important;font-weight:550!important;letter-spacing:1.5px!important;color:#fff;text-align:center!important;background-color:#000da7c7;border-color:#fff;border-width:3px;border:solid;border-radius:7px;margin-top:30px!important;padding-left:20px!important;padding-right:20px!important}.field-name[_ngcontent-%COMP%]{font-size:1em}.line-style[_ngcontent-%COMP%]{border:1px solid #adadad}"]})}return Ie})();var K=a(2413),U=a(74),me=a(6289),xe=a(4363);function ne(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"mat-option",6),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&Ie){const Me=Ot.$implicit;d.\u0275\u0275property("value",Me.code),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate1(" ",Me.text," ")}}function Ze(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"div",2)(1,"table")(2,"tr")(3,"td",3),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"td")(6,"mat-select",4),d.\u0275\u0275listener("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(ii.field.fieldValues.value=St)}),d.\u0275\u0275template(7,ne,2,2,"mat-option",5),d.\u0275\u0275elementEnd()()()()()}if(2&Ie){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275property("formGroup",Me.parentForm),d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(Me.field.appFormFields.lable),d.\u0275\u0275advance(2),d.\u0275\u0275property("value",Me.field.appFormFields.code)("ngModel",Me.field.fieldValues.value)("formControlName",Me.formCtrlName),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",Me.field.appFormFields.appFormFieldOptions)}}function Oe(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"mat-option",6),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&Ie){const Me=Ot.$implicit;d.\u0275\u0275property("value",Me.code),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate1(" ",Me.text," ")}}function nt(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"div")(1,"table")(2,"tr")(3,"td",3),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"td")(6,"mat-select",7),d.\u0275\u0275listener("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(ii.field.fieldValues.value=St)}),d.\u0275\u0275template(7,Oe,2,2,"mat-option",5),d.\u0275\u0275elementEnd()()()()()}if(2&Ie){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(Me.field.appFormFields.lable),d.\u0275\u0275advance(2),d.\u0275\u0275property("ngModel",Me.field.fieldValues.value),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",Me.field.appFormFields.appFormFieldOptions)}}let qe=(()=>{class Ie{constructor(){this.isRequiredField=!1}ngOnChanges(Me){if(this.field&&this.field.appFormFields.isRequired){this.isRequiredField=this.field.appFormFields.isRequired;let Ki=this.field.appFormFields.lable.toLowerCase().trim().replace(" ","_");this.formCtrlName=Ki}}selectCar(Me){this.selectedOption=Me.target.value}static#e=this.\u0275fac=function(yt){return new(yt||Ie)};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Ie,selectors:[["app-input-select"]],inputs:{parentForm:"parentForm",field:"field"},features:[d.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[[3,"formGroup",4,"ngIf"],[4,"ngIf"],[3,"formGroup"],[1,"title-style"],["placeholder","select","required","",1,"input-info-field",3,"value","ngModel","formControlName","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["placeholder","select",1,"input-info-field","main-content-font",3,"ngModel","ngModelChange"]],template:function(yt,St){1&yt&&(d.\u0275\u0275template(0,Ze,8,6,"div",0),d.\u0275\u0275template(1,nt,8,3,"div",1)),2&yt&&(d.\u0275\u0275property("ngIf",St.field&&St.isRequiredField),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",St.field&&!St.isRequiredField))},dependencies:[e.JJ,e.JL,e.Q7,e.On,e.sg,e.u,n.NgForOf,n.NgIf,me.x8,xe.CK],styles:[".input-info-field[_ngcontent-%COMP%]{padding-left:15px;text-align:left;color:#0000008c;background-color:#fff;height:40px;width:100%;border:solid .235rem;border-radius:7px;font-size:medium}.title-style[_ngcontent-%COMP%]{width:35%}@media only screen and (max-width: 425px){.title-style[_ngcontent-%COMP%]{padding:0}}table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0;width:100%}td[_ngcontent-%COMP%]{text-align:left;padding:10px}  .mat-select-placeholder{text-align:left;color:#a5a5a5;font-size:17px;line-height:40px;font-weight:450;letter-spacing:1.5px}  .mat-select-trigger{height:100%;width:100%}  .mat-select-value{height:100%;vertical-align:middle;color:#000000de}  .mat-select-value-text{line-height:40px}  .mat-select-panel-wrap{flex-basis:100%;box-shadow:0 8px 16px #0003;background:white}  .mat-checkbox-checked .mat-checkbox-frame{background-color:#000!important}"]})}return Ie})();function ct(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",5),d.\u0275\u0275listener("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=St)})("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(St))}),d.\u0275\u0275elementEnd()()}if(2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function ot(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",6),d.\u0275\u0275listener("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=St)})("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(St))}),d.\u0275\u0275elementEnd()()}if(2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function dt(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",7),d.\u0275\u0275listener("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=St)})("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(St))}),d.\u0275\u0275elementEnd()()}if(2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function jt(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",8),d.\u0275\u0275listener("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=St)})("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(St))}),d.\u0275\u0275elementEnd()()}if(2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function zt(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div",2)(1,"table")(2,"tr")(3,"td",3),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(5,ct,2,2,"td",4),d.\u0275\u0275template(6,ot,2,2,"td",4),d.\u0275\u0275template(7,dt,2,2,"td",4),d.\u0275\u0275template(8,jt,2,2,"td",4),d.\u0275\u0275elementEnd()()()),2&Ie){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275property("formGroup",Me.parentForm),d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(Me.inputField.appFormFields.lable),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",!Me.mobileCheck&&!Me.passwordCheck&&!Me.isPostalCodeCheck()),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Me.mobileCheck),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Me.isPostalCodeCheck()),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Me.passwordCheck)}}function ti(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",9),d.\u0275\u0275listener("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=St)})("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(St))}),d.\u0275\u0275elementEnd()()}if(2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function mi(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",10),d.\u0275\u0275listener("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=St)})("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(St))}),d.\u0275\u0275elementEnd()()}if(2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function Qt(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",11),d.\u0275\u0275listener("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=St)})("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(St))}),d.\u0275\u0275elementEnd()()}if(2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function Jt(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div",2)(1,"table")(2,"tr")(3,"td",3),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(5,ti,2,2,"td",4),d.\u0275\u0275template(6,mi,2,2,"td",4),d.\u0275\u0275template(7,Qt,2,2,"td",4),d.\u0275\u0275elementEnd()()()),2&Ie){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275property("formGroup",Me.parentForm),d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(Me.inputField.appFormFields.lable),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",!Me.mobileCheck&&!Me.passwordCheck&&!Me.isPostalCodeCheck()),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Me.mobileCheck),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Me.isPostalCodeCheck())}}function lt(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div",12)(1,"span",13)(2,"i"),d.\u0275\u0275text(3),d.\u0275\u0275elementEnd()()()),2&Ie){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate1("*",Me.errorMsg,"")}}function _t(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",14),d.\u0275\u0275listener("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(3);return d.\u0275\u0275resetView(ii.compairPassword(St))}),d.\u0275\u0275elementEnd()()}if(2&Ie){const Me=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(1),d.\u0275\u0275property("formControlName",Me.formCtrlName)}}function Fe(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"tr")(1,"td",3),d.\u0275\u0275text(2,"Confirm Password"),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(3,_t,2,1,"td",4),d.\u0275\u0275elementEnd()),2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(3),d.\u0275\u0275property("ngIf",Me.passwordCheck)}}function Ae(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div",2)(1,"table"),d.\u0275\u0275template(2,Fe,4,1,"tr",4),d.\u0275\u0275elementEnd()()),2&Ie){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275property("formGroup",Me.parentForm),d.\u0275\u0275advance(2),d.\u0275\u0275property("ngIf",Me.passwordCheck)}}function H(Ie,Ot){1&Ie&&(d.\u0275\u0275elementStart(0,"div",12)(1,"span",13)(2,"i"),d.\u0275\u0275text(3,"*confirm password does not match"),d.\u0275\u0275elementEnd()()())}let W=(()=>{class Ie{constructor(Me){this.profileService=Me,this.isRequiredField=!1,this.errorMsg=null,this.validationError=!1,this.validationErrorConfirmPassword=!1,this.emailCheck=!1,this.mobileCheck=!1,this.passwordCheck=!1,this.postalCodeCheck=!1}ngOnInit(){switch(this.inputField.appFormFields.code){case"FIRSTNAME":case"LASTNAME":this.errorMsg="maximum of 100 characters",this.maxCharLimit=100,this.sendFieldInfo(this.inputField.appFormFields.code,!0);break;case"EMAIL":this.errorMsg="Please enter a valid email address",this.emailCheck=!0,this.maxCharLimit=50,this.sendFieldInfo(this.inputField.appFormFields.code,!0);break;case"MOBILE":this.errorMsg="maximum of 16 characters can be entered",this.maxCharLimit=16,this.mobileCheck=!0;break;case"PASSWORD":this.errorMsg="Maximum password size is 25 characters",this.maxCharLimit=25,this.passwordCheck=!0,this.sendFieldInfo(this.inputField.appFormFields.code,!0);break;case"POSTALCODE":this.errorMsg="Maximum is 10 characters",this.maxCharLimit=10,this.postalCodeCheck=!0}}ngOnChanges(Me){if(this.inputField){this.isRequiredField=this.inputField.appFormFields.isRequired;let Ki=this.inputField.appFormFields.lable.toLowerCase().trim().replace(" ","_");this.formCtrlName=Ki}}onChange(Me){if(Me){if(this.mobileCheck){if(["-","+","e"].includes(Me.key))return void Me.preventDefault();Me=Me.toString(),this.maxCharLimit&&(this.validationError=Me.length>this.maxCharLimit)}if(this.postalCodeCheck)if(this.inputField.fieldValues.value.length&&Me.length)if(/^\d+$/.test(Me))(this.maxCharLimit||!Me.length)&&(this.validationError=!Me.length||Me.length>this.maxCharLimit,this.errorMsg=Me.length?Me.length>this.maxCharLimit?"Maximum is 10 characters":"":"Enter valid postal code.");else{this.validationError=!0,this.errorMsg="Enter valid postal code.";const yt=Me.length?this.inputField.fieldValues.value.slice(0,-1):"";this.inputField.fieldValues.value=yt,Me=yt}else this.validationError=!0,this.errorMsg="Enter valid postal code.";if(this.passwordCheck&&(this.password=Me),this.emailCheck){let St=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(Me).toLowerCase());this.validationError=String(Me).length>this.maxCharLimit||!St}this.sendFieldInfo(this.inputField.appFormFields.code,this.validationError)}}compairPassword(Me){this.validationErrorConfirmPassword=this.password!=Me,this.sendFieldInfo("CONFIRM_PASSWORD",this.validationErrorConfirmPassword)}isPostalCodeCheck(){return"POSTALCODE"==this.inputField.appFormFields.code?(this.postalCodeCheck=!0,this.postalCodeCheck):(this.postalCodeCheck=!1,this.postalCodeCheck)}sendFieldInfo(Me,yt){this.profileService.sendDynamicFieldStatus({code:Me,value:yt})}static#e=this.\u0275fac=function(yt){return new(yt||Ie)(d.\u0275\u0275directiveInject(g.H))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Ie,selectors:[["app-input-text"]],inputs:{parentForm:"parentForm",inputField:"inputField"},features:[d.\u0275\u0275NgOnChangesFeature],decls:5,vars:5,consts:[[3,"formGroup",4,"ngIf"],["class","error-msg-div",4,"ngIf"],[3,"formGroup"],[1,"title-style"],[4,"ngIf"],["type","text","matInput","","value","inputField.appFormFields.code","required","",1,"input-info-field",3,"ngModel","formControlName","ngModelChange"],["type","number","matInput","","value","inputField.appFormFields.code","required","",1,"input-info-field",3,"ngModel","formControlName","ngModelChange"],["type","text","matInput","","value","inputField.appFormFields.code","maxlength","10","pattern","[0-9]+","required","",1,"input-info-field",3,"ngModel","formControlName","ngModelChange"],["type","password","matInput","","value","inputField.appFormFields.code","required","",1,"input-info-field",3,"ngModel","formControlName","ngModelChange"],["type","text","matInput","","value","inputField.appFormFields.code",1,"input-info-field",3,"ngModel","formControlName","ngModelChange"],["type","number","matInput","","value","inputField.appFormFields.code",1,"input-info-field",3,"ngModel","formControlName","ngModelChange"],["type","text","matInput","","value","inputField.appFormFields.code","maxlength","10","pattern","[0-9]+",1,"input-info-field",3,"ngModel","formControlName","ngModelChange"],[1,"error-msg-div"],[1,"error-span"],["type","password","matInput","","required","",1,"input-info-field",3,"formControlName","ngModelChange"]],template:function(yt,St){1&yt&&(d.\u0275\u0275template(0,zt,9,6,"div",0),d.\u0275\u0275template(1,Jt,8,5,"div",0),d.\u0275\u0275template(2,lt,4,1,"div",1),d.\u0275\u0275template(3,Ae,3,2,"div",0),d.\u0275\u0275template(4,H,4,0,"div",1)),2&yt&&(d.\u0275\u0275property("ngIf",St.inputField&&St.isRequiredField),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",St.inputField&&!St.isRequiredField),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",St.validationError&&(St.parentForm.get(St.formCtrlName).touched||St.parentForm.get(St.formCtrlName).dirty)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",St.inputField&&St.passwordCheck),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",St.validationErrorConfirmPassword&&(St.parentForm.get(St.formCtrlName).touched||St.parentForm.get(St.formCtrlName).dirty)))},dependencies:[e.Fj,e.wV,e.JJ,e.JL,e.Q7,e.nD,e.c5,e.sg,e.u,n.NgIf,le.k0],styles:[".input-info-field[_ngcontent-%COMP%]{padding-left:15px;text-align:left;color:#000;background-color:#fff;height:40px;width:100%;font-size:medium;border-width:revert;border-radius:7px}.title-style[_ngcontent-%COMP%]{width:35%}@media only screen and (max-width: 425px){.title-style[_ngcontent-%COMP%]{padding:0}}table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0;width:100%}td[_ngcontent-%COMP%]{text-align:left;padding:10px}[_ngcontent-%COMP%]::placeholder{text-align:left;color:#a5a5a5;font-size:medium;font-weight:450;letter-spacing:1.5px}.error-msg-div[_ngcontent-%COMP%]{text-align:center!important;background-color:transparent}.error-span[_ngcontent-%COMP%]{background-color:transparent;text-align:center!important;font-weight:400;color:red;font-size:smaller}"]})}return Ie})();function He(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"div",2)(1,"table")(2,"tr")(3,"td",3),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"td")(6,"textarea",4),d.\u0275\u0275listener("keyup",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(ii.onText(St))})("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=St)}),d.\u0275\u0275elementEnd()()()()()}if(2&Ie){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275property("formGroup",Me.parentForm),d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(Me.inputField.appFormFields.lable),d.\u0275\u0275advance(2),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function Te(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div",5)(1,"span",6)(2,"i"),d.\u0275\u0275text(3),d.\u0275\u0275elementEnd()()()),2&Ie){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate1("*",Me.errorMsg,"")}}let Be=(()=>{class Ie{constructor(){this.isRequiredField=!1,this.errorMsg=null,this.validationError=!1}ngOnInit(){"ADDRESS"===this.inputField.appFormFields.code&&(this.errorMsg="Maximum is 250 characters",this.maxCharLimit=250)}ngOnChanges(Me){if(this.inputField){this.isRequiredField=this.inputField.appFormFields.isRequired;let Ki=this.inputField.appFormFields.lable.toLowerCase().trim().replace(" ","_");this.formCtrlName=Ki}}onText(Me){String(this.inputField.fieldValues.value).length>this.maxCharLimit&&(this.validationError=!0)}static#e=this.\u0275fac=function(yt){return new(yt||Ie)};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Ie,selectors:[["app-input-textarea"]],inputs:{inputField:"inputField",parentForm:"parentForm"},features:[d.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[[3,"formGroup",4,"ngIf"],["class","error-msg-div",4,"ngIf"],[3,"formGroup"],[1,"title-style"],["matInput","","value","inputField.appFormFields.code","rows","4","maxlength","250",1,"input-info-field",3,"ngModel","formControlName","keyup","ngModelChange"],[1,"error-msg-div"],[1,"error-span"]],template:function(yt,St){1&yt&&(d.\u0275\u0275template(0,He,7,4,"div",0),d.\u0275\u0275template(1,Te,4,1,"div",1)),2&yt&&(d.\u0275\u0275property("ngIf",St.inputField&&!St.isRequiredField),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",St.validationError&&(St.parentForm.get(St.formCtrlName).touched||St.parentForm.get(St.formCtrlName).dirty)))},dependencies:[e.Fj,e.JJ,e.JL,e.nD,e.sg,e.u,n.NgIf,le.k0],styles:[".title-style[_ngcontent-%COMP%]{width:35%}@media only screen and (max-width: 425px){.title-style[_ngcontent-%COMP%]{padding:0}}.input-info-field[_ngcontent-%COMP%]{padding:10px 15px;text-align:left;color:#000;background-color:#fff;min-height:40px;width:100%;font-size:medium;border-width:revert;border-radius:7px;-ms-overflow-style:none;scrollbar-width:none}.input-info-field[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0;width:100%}td[_ngcontent-%COMP%]{text-align:left;padding:10px}textarea[_ngcontent-%COMP%]{overflow:auto!important;resize:vertical!important}.error-msg-div[_ngcontent-%COMP%]{text-align:center!important;background-color:transparent}"]})}return Ie})();function mt(Ie,Ot){if(1&Ie&&d.\u0275\u0275element(0,"img",10),2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275property("src",Me.imageField.fieldValues.value,d.\u0275\u0275sanitizeUrl)}}function Pe(Ie,Ot){1&Ie&&d.\u0275\u0275element(0,"br")}function Qe(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div",11),d.\u0275\u0275element(1,"img",12),d.\u0275\u0275elementEnd()),2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("src",Me.imageField.fieldValues.value,d.\u0275\u0275sanitizeUrl)}}function ut(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"div",2),d.\u0275\u0275template(1,mt,1,1,"img",3),d.\u0275\u0275template(2,Pe,1,0,"br",1),d.\u0275\u0275template(3,Qe,2,1,"div",4),d.\u0275\u0275elementStart(4,"div",5)(5,"button",6)(6,"label",7)(7,"input",8),d.\u0275\u0275listener("change",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(ii.addImageToPwa(St))}),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(8,"span",9),d.\u0275\u0275text(9,"UPLOAD IMAGE"),d.\u0275\u0275elementEnd()()()()()}if(2&Ie){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",!Me.isLoading),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",!Me.isLoading),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Me.isLoading)}}function te(Ie,Ot){if(1&Ie&&d.\u0275\u0275element(0,"img",10),2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275property("src",Me.imageField.fieldValues.value,d.\u0275\u0275sanitizeUrl)}}function k(Ie,Ot){if(1&Ie&&d.\u0275\u0275element(0,"img",14),2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275property("src",Me.imageField.fieldValues.value,d.\u0275\u0275sanitizeUrl)}}function R(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275template(1,te,1,1,"img",3),d.\u0275\u0275template(2,k,1,1,"img",13),d.\u0275\u0275elementEnd()),2&Ie){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Me.imageField.fieldValues.id),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",!Me.imageField.fieldValues.id)}}let be=(()=>{class Ie{constructor(Me,yt,St,ii){this.dataService=Me,this.router=yt,this.cameraService=St,this.ngZone=ii,this.appId=v.Jf,this.userId=v.xS,this.camera=window.navigator.camera,this.Camera=window.Camera,this.isLoading=!1,this.fileInfo={}}ngOnChanges(Me){if(this.viewWebImgUrl=this.dataService.getServerURL()+"/templates/viewWebImages?userId="+this.userId+"&appId="+this.appId+"&"+(new Date).getTime()+"&images=",this.imageField){let yt=this.imageField.fieldValues.value;this.imageField.addedEvent=!1,yt?""==yt&&(this.imageField.fieldValues.value=`${this.viewWebImgUrl}/defaultProfImage.jpg`):this.imageField.fieldValues.value=`${this.viewWebImgUrl}/defaultProfImage.jpg`}}addImageToPwa(Me){if(Me.target.files[0].size<=25e5){let yt=new FileReader;yt.readAsDataURL(Me.target.files[0]),yt.onload=St=>{this.imageField.fieldValues.value=St.target.result,this.imageField.addedEvent=Me.target.files[0]}}}static#e=this.\u0275fac=function(yt){return new(yt||Ie)(d.\u0275\u0275directiveInject(B.V),d.\u0275\u0275directiveInject(o.F0),d.\u0275\u0275directiveInject(K.r),d.\u0275\u0275directiveInject(d.NgZone))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Ie,selectors:[["app-profile-image"]],inputs:{imageField:"imageField",onlyShowImage:"onlyShowImage",isCordovaApp:"isCordovaApp"},features:[d.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[["class","prof-pic-div",4,"ngIf"],[4,"ngIf"],[1,"prof-pic-div"],["class","customer-profile-image","mat-card-lg-image","","alt","Profile Image",3,"src",4,"ngIf"],["style","background-color: white; ","class","customer-profile-image loader-div",4,"ngIf"],["id","upload_button"],["mat-button","",1,"add-image-button","main-button"],[1,"btn-lable"],["type","file","accept","image/png, image/jpeg",3,"change"],[1,"btn-span"],["mat-card-lg-image","","alt","Profile Image",1,"customer-profile-image",3,"src"],[1,"customer-profile-image","loader-div",2,"background-color","white"],["alt","Profile Image",1,"loader-gif",3,"src"],["class","user-profile-image","mat-card-lg-image","","alt","Profile Image",3,"src",4,"ngIf"],["mat-card-lg-image","","alt","Profile Image",1,"user-profile-image",3,"src"]],template:function(yt,St){1&yt&&(d.\u0275\u0275template(0,ut,10,3,"div",0),d.\u0275\u0275template(1,R,3,2,"div",1)),2&yt&&(d.\u0275\u0275property("ngIf",St.imageField&&!St.onlyShowImage),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",St.imageField&&St.onlyShowImage))},dependencies:[n.NgIf,Z.Al,q.eB],styles:[".prof-pic-div[_ngcontent-%COMP%]{background-color:transparent!important}.customer-profile-image[_ngcontent-%COMP%]{background-size:auto;height:auto;width:94%;border-radius:6%;flex-shrink:0;object-fit:cover}.loader-div[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;align-self:center}.loader-gif[_ngcontent-%COMP%]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;align-self:center}.add-image-button[_ngcontent-%COMP%]{padding:0 15px;margin:0;color:#fff;cursor:pointer;max-width:50}.btn-lable[_ngcontent-%COMP%]{margin:5px 0!important;font-weight:inherit}.btn-span[_ngcontent-%COMP%]{font-size:20px;letter-spacing:1px;cursor:pointer}@media only screen and (max-width: 1139px){.btn-span[_ngcontent-%COMP%]{font-size:15px}}#upload_button[_ngcontent-%COMP%]{display:inline-block;background-color:transparent!important;padding:0;border-radius:.5rem;width:100%;margin:15px 0}#upload_button[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{display:none}.user-profile-image[_ngcontent-%COMP%]{padding-top:0;background-size:auto;height:70px;width:70px;border-radius:50%;flex-shrink:0;object-fit:cover}"]})}return Ie})();function et(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275element(1,"app-profile-image",13),d.\u0275\u0275elementEnd()),2&Ie){const Me=d.\u0275\u0275nextContext().$implicit,yt=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(1),d.\u0275\u0275property("onlyShowImage",yt.onlyShowImage)("imageField",Me)("isCordovaApp",yt.isCordovaApp)}}function Ue(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275template(1,et,2,3,"div",4),d.\u0275\u0275elementEnd()),2&Ie){const Me=Ot.$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf","Image"==Me.appFormFields.feFormFieldType.type&&!Me.appFormFields.isDeleted)}}function ge(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275element(1,"app-input-text",14)(2,"br"),d.\u0275\u0275elementEnd()),2&Ie){const Me=d.\u0275\u0275nextContext().$implicit,yt=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(1),d.\u0275\u0275property("parentForm",yt.parentForm)("inputField",Me)}}function ke(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275element(1,"app-input-textarea",14)(2,"br"),d.\u0275\u0275elementEnd()),2&Ie){const Me=d.\u0275\u0275nextContext().$implicit,yt=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(1),d.\u0275\u0275property("parentForm",yt.parentForm)("inputField",Me)}}function gt(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275element(1,"app-input-select",15)(2,"br"),d.\u0275\u0275elementEnd()),2&Ie){const Me=d.\u0275\u0275nextContext().$implicit,yt=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(1),d.\u0275\u0275property("parentForm",yt.parentForm)("field",Me)}}function Pt(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275template(1,ge,3,2,"div",4),d.\u0275\u0275template(2,ke,3,2,"div",4),d.\u0275\u0275template(3,gt,3,2,"div",4),d.\u0275\u0275elementEnd()),2&Ie){const Me=Ot.$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf","Type"==Me.appFormFields.feFormFieldType.type&&!Me.appFormFields.isDeleted),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf","TextArea"==Me.appFormFields.feFormFieldType.type&&!Me.appFormFields.isDeleted),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf","Select"==Me.appFormFields.feFormFieldType.type&&!Me.appFormFields.isDeleted)}}function Bt(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275template(1,Ue,2,1,"div",5),d.\u0275\u0275elementStart(2,"form",6),d.\u0275\u0275template(3,Pt,4,3,"div",5),d.\u0275\u0275element(4,"br"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"section",7)(6,"mat-checkbox",8),d.\u0275\u0275listener("ngModelChange",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.isTickAgreement=St)}),d.\u0275\u0275text(7,"Agreed to terms and conditions."),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(8,"div",9)(9,"label",10)(10,"input",11),d.\u0275\u0275listener("change",function(St){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.addCv(St))}),d.\u0275\u0275elementEnd(),d.\u0275\u0275text(11," UPLOAD CV "),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(12,"div")(13,"button",12),d.\u0275\u0275listener("click",function(){d.\u0275\u0275restoreView(Me);const St=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(St.saveCustomerInfo(St.fieldList))}),d.\u0275\u0275text(14),d.\u0275\u0275elementEnd()()()}if(2&Ie){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",Me.fieldList),d.\u0275\u0275advance(1),d.\u0275\u0275property("formGroup",Me.parentForm),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",Me.fieldList),d.\u0275\u0275advance(3),d.\u0275\u0275property("ngModel",Me.isTickAgreement),d.\u0275\u0275advance(7),d.\u0275\u0275property("ngClass",Me.parentForm.invalid||!Me.isTickAgreement?"done-button-disabled":"done-button")("disabled",Me.parentForm.invalid||!Me.isTickAgreement),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate1(" ",Me.submitBtnName," ")}}function st(Ie,Ot){if(1&Ie&&(d.\u0275\u0275elementStart(0,"mat-card-content",2)(1,"div")(2,"div",3),d.\u0275\u0275text(3),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(4,Bt,15,7,"div",4),d.\u0275\u0275elementEnd()()),2&Ie){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate(Me.formTitle),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Me.fieldList)}}let Nt=(()=>{class Ie{constructor(Me,yt,St,ii,Ki,Pn,ir,Fr,yr,fr){this.router=Me,this.formBuilder=yt,this.profileService=St,this.customerInfoService=ii,this.titleService=Ki,this.dataService=Pn,this.fb=ir,this.cameraService=Fr,this.notificationService=yr,this.messageService=fr,this.appId=v.Jf,this.userId=v.xS,this.fieldList=[],this.imageInfo={},this.isLoading=!0,this.validateObj={},this.isTickAgreement=!1,this.formTitle="REGISTRATION FORM",this.DynamicFieldStatus=[],this.isCordovaApp=this.profileService.isCordovaApp(),this.profileService.receiveDynamicFieldsStatus.subscribe(ar=>this.saveDynamicFieldsStatus(ar)),this.isEdit=!!localStorage.getItem(this.appId+"JobAppUserappFormDataId"),this.submitBtnName=this.isEdit?"UPDATE":"REGISTER",this.isEdit?(this.formTitle="Edit Registration",this.titleService.changeTitle("Edit Registration"),this.JobAppUserappFormDataId=localStorage.getItem(this.appId+"JobAppUserappFormDataId")):(this.formTitle="REGISTRATION FORM",this.titleService.changeTitle("REGISTRATION FORM"))}ngOnInit(){this.formDataId=this.profileService.getformDataId(),this.getProfile(this.appId),this.messageService.sendMessage({loadImageCount:this.dataService.initialImageCount})}getProfile(Me){this.profileService.getAppFormFields({appId:Me,appFormDataId:this.formDataId}).subscribe(yt=>{let St=yt.pop();this.isEdit=St.isEdit,this.onlyShowImage=!1,this.fieldList=yt;for(let ii of this.fieldList){let Fr=ii.appFormFields.lable.toLowerCase().trim().replace(" ","_");this.validateObj[Fr]=[""]}this.parentForm=this.fb.group(this.validateObj),yt.length&&(this.isLoading=!1)},yt=>{console.log("error in getProfile",yt),this.profileService.removeFormDataIdInLocalStorage(),this.notificationService.showNotification("Error occurred, Try again !!!")})}addCv(Me){if("application/pdf"==Me.target.files[0].type){const yt=Me.target.files[0];if(!yt)return this.file=null,this.fileName=null,void(this.fileType=null);yt.size/1e6>=5?this.notificationService.showNotification("PDF should be less than 5 MB"):(this.file=yt,this.fileName=yt.name,this.notificationService.showNotification("CV File Uploaded"))}else this.notificationService.showNotification("Please Upload PDF File")}saveCustomerInfo(Me){if(!this.isFieldComplete)return void this.notificationService.showNotification("Please complete the form correctly !");const yt=Me.filter(ii=>"Image"==ii.appFormFields.feFormFieldType.type)[0];this.imageInfo=yt&&yt.appFormFields.isDeleted?yt.addedEvent:null,this.addOrEditProfileInPwa(Me,{isEdit:this.isEdit,JobAppUserappFormDataId:this.JobAppUserappFormDataId})}addOrEditProfileInPwa(Me,yt){const St=new FormData;St.append("isEdit",JSON.stringify(yt)),St.append("customerInfo",JSON.stringify(Me)),St.append("appId",this.appId),St.append("userId",this.userId),this.file||this.formDataId?(this.file&&(St.append("hasCvUpload","true"),St.append("cv",this.file,this.fileName)),this.customerInfoService.addOrEditUser(St).subscribe(ii=>{ii?(this.profileService.saveFormDataIdInLocalStorage(ii.appFormDataId),this.notificationService.showNotification(this.isEdit?"Profile Updated Successful !":"Registration Successful !"),this.router.navigate([""])):this.notificationService.showNotification("Please enter a valid email address")},ii=>{console.log("error --\x3e",ii),this.notificationService.showNotification("User registration failed, try again")})):this.notificationService.showNotification("Please Upload Your CV File !!!")}saveDynamicFieldsStatus(Me){this.DynamicFieldStatus[Me.code]=Me.value,this.isFieldComplete=!0;for(let yt in this.DynamicFieldStatus)this.DynamicFieldStatus[yt]&&(this.isFieldComplete=!1)}static#e=this.\u0275fac=function(yt){return new(yt||Ie)(d.\u0275\u0275directiveInject(o.F0),d.\u0275\u0275directiveInject(e.QS),d.\u0275\u0275directiveInject(g.H),d.\u0275\u0275directiveInject(w),d.\u0275\u0275directiveInject(f.y),d.\u0275\u0275directiveInject(B.V),d.\u0275\u0275directiveInject(e.QS),d.\u0275\u0275directiveInject(K.r),d.\u0275\u0275directiveInject(S.g),d.\u0275\u0275directiveInject(j.e))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Ie,selectors:[["app-profileform"]],decls:2,vars:1,consts:[[1,"customer-add-edit-card"],["class","card-content",4,"ngIf"],[1,"card-content"],[1,"mobile-title-view"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"formGroup"],[1,"terms-style"],[1,"example-margin",3,"ngModel","ngModelChange"],[1,"custom-btn-style"],[1,"custom-file-upload","main-button"],["type","file","accept",".pdf",3,"change"],["type","submit",1,"submit-btn","main-button","done-button",3,"ngClass","disabled","click"],[3,"onlyShowImage","imageField","isCordovaApp"],[3,"parentForm","inputField"],[3,"parentForm","field"]],template:function(yt,St){1&yt&&(d.\u0275\u0275elementStart(0,"mat-card",0),d.\u0275\u0275template(1,st,5,2,"mat-card-content",1),d.\u0275\u0275elementEnd()),2&yt&&(d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",!St.isLoading))},dependencies:[e._Y,e.JJ,e.JL,e.On,e.sg,n.NgClass,n.NgForOf,n.NgIf,Z.S$,Z.Qi,U.FC,qe,W,Be,be],styles:[".customer-add-edit-card[_ngcontent-%COMP%]{text-align:center;border-radius:17px;border:none;width:30em;box-shadow:none;min-height:100vh;height:auto;margin:90px auto 40px}@media only screen and (max-width: 560px){.customer-add-edit-card[_ngcontent-%COMP%]{width:93%}}.card-content[_ngcontent-%COMP%]{margin:0 0 40px}.image-less-empty-div[_ngcontent-%COMP%]{background-color:transparent;border:none;height:30px}.done-button[_ngcontent-%COMP%]{font-size:medium!important;font-weight:450!important;letter-spacing:1.5px!important;color:#fff;text-align:center!important;background-color:transparent;border-color:#fff;border-width:2px;border:solid;border-radius:7px;padding-left:20px!important;padding-right:20px!important}[_ngcontent-%COMP%]::mat-button   .mat-primary[disabled][_ngcontent-%COMP%]{color:#fff}.done-button-disabled[_ngcontent-%COMP%]{opacity:.5!important;pointer-events:none!important;font-size:medium!important;font-weight:450!important;letter-spacing:1.5px!important;color:#fff;text-align:center!important;border-color:#fff;border-width:2px;border:solid;border-radius:7px;padding-left:20px!important;padding-right:20px!important}.terms-style[_ngcontent-%COMP%]{text-align:-webkit-left;margin-left:2vw}.cv-btn-style[_ngcontent-%COMP%]{text-align:-webkit-left;margin-left:25px;color:#fff}.cv-btn-style[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#16213d;width:24%}.submit-btn[_ngcontent-%COMP%]{width:90%;background:rgb(9 29 52);height:8vh}.submit-btn[_ngcontent-%COMP%]   mat-button-wrapper[_ngcontent-%COMP%]{color:#fff}.mat-button-wrapper[_ngcontent-%COMP%]{color:#fff}input[type=file][_ngcontent-%COMP%]{display:none}.custom-file-upload[_ngcontent-%COMP%]{border:1px solid #ccc!important;border-radius:0!important;display:inline-block;padding:4px 6px;cursor:pointer;font-size:14px}[_nghost-%COMP%]     .mat-select-value-text{line-height:40px!important}@media only screen and (max-width:1139px){.custom-file-upload[_ngcontent-%COMP%]{padding:3px 5px;font-size:11px}}.custom-btn-style[_ngcontent-%COMP%]{text-align:left;margin:0 0 0 2vw}@media screen and (max-width:1140px){.mobile-title-view[_ngcontent-%COMP%]{display:none}}.mobile-title-view[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:28px;width:100%;font-size:18px;font-weight:700;text-transform:capitalize}"]})}return Ie})();var at=a(2687),Lt=a(1281),Rt=a(5017),ai=a(3238);const Xt=["button"],ui=["*"],vt=new d.InjectionToken("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),Ut=new d.InjectionToken("MatButtonToggleGroup"),Zt={provide:e.JU,useExisting:(0,d.forwardRef)(()=>pi),multi:!0};let Ci=0;class _i{constructor(Ot,Me){this.source=Ot,this.value=Me}}let pi=(()=>{class Ie{get name(){return this._name}set name(Me){this._name=Me,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(Me){this._vertical=(0,Lt.Ig)(Me)}get value(){const Me=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Me.map(yt=>yt.value):Me[0]?Me[0].value:void 0}set value(Me){this._setSelectionByValue(Me),this.valueChange.emit(this.value)}get selected(){const Me=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Me:Me[0]||null}get multiple(){return this._multiple}set multiple(Me){this._multiple=(0,Lt.Ig)(Me),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(Me){this._disabled=(0,Lt.Ig)(Me),this._markButtonsForCheck()}constructor(Me,yt){this._changeDetector=Me,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+Ci++,this.valueChange=new d.EventEmitter,this.change=new d.EventEmitter,this.appearance=yt&&yt.appearance?yt.appearance:"standard"}ngOnInit(){this._selectionModel=new Rt.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(Me=>Me.checked))}writeValue(Me){this.value=Me,this._changeDetector.markForCheck()}registerOnChange(Me){this._controlValueAccessorChangeFn=Me}registerOnTouched(Me){this._onTouched=Me}setDisabledState(Me){this.disabled=Me}_emitChangeEvent(Me){const yt=new _i(Me,this.value);this._controlValueAccessorChangeFn(yt.value),this.change.emit(yt)}_syncButtonToggle(Me,yt,St=!1,ii=!1){!this.multiple&&this.selected&&!Me.checked&&(this.selected.checked=!1),this._selectionModel?yt?this._selectionModel.select(Me):this._selectionModel.deselect(Me):ii=!0,ii?Promise.resolve().then(()=>this._updateModelValue(Me,St)):this._updateModelValue(Me,St)}_isSelected(Me){return this._selectionModel&&this._selectionModel.isSelected(Me)}_isPrechecked(Me){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(yt=>null!=Me.value&&yt===Me.value):Me.value===this._rawValue)}_setSelectionByValue(Me){this._rawValue=Me,this._buttonToggles&&(this.multiple&&Me?(Array.isArray(Me),this._clearSelection(),Me.forEach(yt=>this._selectValue(yt))):(this._clearSelection(),this._selectValue(Me)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(Me=>Me.checked=!1)}_selectValue(Me){const yt=this._buttonToggles.find(St=>null!=St.value&&St.value===Me);yt&&(yt.checked=!0,this._selectionModel.select(yt))}_updateModelValue(Me,yt){yt&&this._emitChangeEvent(Me),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(Me=>Me._markForCheck())}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(vt,8))},Ie.\u0275dir=d.\u0275\u0275defineDirective({type:Ie,selectors:[["mat-button-toggle-group"]],contentQueries:function(Me,yt,St){if(1&Me&&d.\u0275\u0275contentQuery(St,ze,5),2&Me){let ii;d.\u0275\u0275queryRefresh(ii=d.\u0275\u0275loadQuery())&&(yt._buttonToggles=ii)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(Me,yt){2&Me&&(d.\u0275\u0275attribute("aria-disabled",yt.disabled),d.\u0275\u0275classProp("mat-button-toggle-vertical",yt.vertical)("mat-button-toggle-group-appearance-standard","standard"===yt.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[d.\u0275\u0275ProvidersFeature([Zt,{provide:Ut,useExisting:Ie}])]}),Ie})();const Bi=(0,ai.Kr)(class{});let ze=(()=>{class Ie extends Bi{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(Me){this._appearance=Me}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(Me){const yt=(0,Lt.Ig)(Me);yt!==this._checked&&(this._checked=yt,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(Me){this._disabled=(0,Lt.Ig)(Me)}constructor(Me,yt,St,ii,Ki,Pn){super(),this._changeDetectorRef=yt,this._elementRef=St,this._focusMonitor=ii,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new d.EventEmitter;const ir=Number(Ki);this.tabIndex=ir||0===ir?ir:null,this.buttonToggleGroup=Me,this.appearance=Pn&&Pn.appearance?Pn.appearance:"standard"}ngOnInit(){const Me=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+Ci++,Me&&(Me._isPrechecked(this)?this.checked=!0:Me._isSelected(this)!==this._checked&&Me._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const Me=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),Me&&Me._isSelected(this)&&Me._syncButtonToggle(this,!1,!1,!0)}focus(Me){this._buttonElement.nativeElement.focus(Me)}_onButtonClick(){const Me=!!this._isSingleSelector()||!this._checked;Me!==this._checked&&(this._checked=Me,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new _i(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(d.\u0275\u0275directiveInject(Ut,8),d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(at.tE),d.\u0275\u0275injectAttribute("tabindex"),d.\u0275\u0275directiveInject(vt,8))},Ie.\u0275cmp=d.\u0275\u0275defineComponent({type:Ie,selectors:[["mat-button-toggle"]],viewQuery:function(Me,yt){if(1&Me&&d.\u0275\u0275viewQuery(Xt,5),2&Me){let St;d.\u0275\u0275queryRefresh(St=d.\u0275\u0275loadQuery())&&(yt._buttonElement=St.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(Me,yt){1&Me&&d.\u0275\u0275listener("focus",function(){return yt.focus()}),2&Me&&(d.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("id",yt.id)("name",null),d.\u0275\u0275classProp("mat-button-toggle-standalone",!yt.buttonToggleGroup)("mat-button-toggle-checked",yt.checked)("mat-button-toggle-disabled",yt.disabled)("mat-button-toggle-appearance-standard","standard"===yt.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[d.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ui,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(Me,yt){if(1&Me&&(d.\u0275\u0275projectionDef(),d.\u0275\u0275elementStart(0,"button",0,1),d.\u0275\u0275listener("click",function(){return yt._onButtonClick()}),d.\u0275\u0275elementStart(2,"span",2),d.\u0275\u0275projection(3),d.\u0275\u0275elementEnd()(),d.\u0275\u0275element(4,"span",3)(5,"span",4)),2&Me){const St=d.\u0275\u0275reference(1);d.\u0275\u0275property("id",yt.buttonId)("disabled",yt.disabled||null),d.\u0275\u0275attribute("tabindex",yt.disabled?-1:yt.tabIndex)("aria-pressed",yt.checked)("name",yt._getButtonName())("aria-label",yt.ariaLabel)("aria-labelledby",yt.ariaLabelledby),d.\u0275\u0275advance(5),d.\u0275\u0275property("matRippleTrigger",St)("matRippleDisabled",yt.disableRipple||yt.disabled)}},dependencies:[ai.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),Ie})(),ue=(()=>{class Ie{}return Ie.\u0275fac=function(Me){return new(Me||Ie)},Ie.\u0275mod=d.\u0275\u0275defineNgModule({type:Ie}),Ie.\u0275inj=d.\u0275\u0275defineInjector({imports:[ai.BQ,ai.si,ai.BQ]}),Ie})();function re(Ie,Ot){if(1&Ie){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"div",15)(1,"div",16)(2,"div",17)(3,"h2",18),d.\u0275\u0275listener("click",function(){const ii=d.\u0275\u0275restoreView(Me).$implicit,Ki=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(Ki.openVacancy(ii.vacancy))}),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"p",19),d.\u0275\u0275listener("click",function(){const ii=d.\u0275\u0275restoreView(Me).$implicit,Ki=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(Ki.openVacancy(ii.vacancy))}),d.\u0275\u0275text(6),d.\u0275\u0275pipe(7,"slice"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(8,"a",20),d.\u0275\u0275listener("click",function(){const ii=d.\u0275\u0275restoreView(Me).$implicit,Ki=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(Ki.removeVacancy(ii.id))}),d.\u0275\u0275text(9,"Remove"),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(10,"img",21),d.\u0275\u0275listener("click",function(){const ii=d.\u0275\u0275restoreView(Me).$implicit,Ki=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(Ki.openVacancy(ii.vacancy))}),d.\u0275\u0275elementEnd()()()}if(2&Ie){const Me=Ot.$implicit,yt=d.\u0275\u0275nextContext();d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(Me.vacancy.title),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(Me.vacancy.desc.length>110?d.\u0275\u0275pipeBind3(7,3,yt.htmlToPlaintext(Me.vacancy.desc),0,110)+"...":yt.htmlToPlaintext(Me.vacancy.desc)),d.\u0275\u0275advance(4),d.\u0275\u0275property("src",Me.vacancy.tempImageArray[0].imgURL,d.\u0275\u0275sanitizeUrl)}}const Re=[{path:"login",component:X},{path:"form",component:Nt},{path:"profileview",component:(()=>{class Ie{constructor(Me,yt,St,ii,Ki){this.dataService=Me,this.router=yt,this.notificationService=St,this.profileService=ii,this.messageService=Ki,this.appId=v.Jf,this.userId=v.xS,this.showAppliedVacancy=!0,this.profileViewInfo={profileimage:"",fname:"",lname:"",email:"",mobile:"",cv:"",cvUrl:""}}ngOnInit(){this.profileViewInfo.profileimage=null,this.formDataId=this.profileService.getformDataId(),this.jobAppInfo={appId:this.appId,userId:this.userId,formDataId:this.formDataId},this.retrieveVacancyInfo={formDataId:this.formDataId,isApplied:!1},this.formDataId&&this.getJobAppRelatedData(),this.getSavedAndAppliedVacancies(),this.messageService.sendMessage({loadImageCount:this.dataService.initialImageCount})}getJobAppRelatedData(){this.profileService.getProfile(this.jobAppInfo).subscribe(Me=>{this.profileViewInfo=Me.data})}getSavedAndAppliedVacancies(){this.profileService.retrieveVacancies(this.retrieveVacancyInfo).subscribe(Me=>{this.vacancies=Me.data},Me=>{console.log("error --\x3e",Me),this.notificationService.showNotification("error occurred, Try again !!!")})}htmlToPlaintext(Me){return Me.replace(/<[^>]+>/gm,"")}changeVacancyType(Me){this.retrieveVacancyInfo={formDataId:this.formDataId,isApplied:Me},this.getSavedAndAppliedVacancies()}gotoEditProfile(){this.profileService.checkJobAppUserStatus({formDataId:this.formDataId}).subscribe(Me=>{Me.status?this.router.navigate(["job/form"]):this.notificationService.showNotification("can not access profile, account blocked !")},Me=>{console.log("checkJobAppUserStatus failed !",Me)})}removeVacancy(Me){this.profileService.removeVacancy({id:Me,isApplied:this.retrieveVacancyInfo.isApplied}).subscribe(yt=>{this.notificationService.showNotification(yt.msg),this.getSavedAndAppliedVacancies()},yt=>{console.log("erroor occurred ->",yt)})}openVacancy(Me){this.dataService.data=Me,this.router.navigate(Me.isForm?["form",Me.selectedCategories[0].id,Me.id]:[Me.isQuestion?"questions":"product","",Me.selectedCategories[0],Me.id])}static#e=this.\u0275fac=function(yt){return new(yt||Ie)(d.\u0275\u0275directiveInject(B.V),d.\u0275\u0275directiveInject(o.F0),d.\u0275\u0275directiveInject(S.g),d.\u0275\u0275directiveInject(g.H),d.\u0275\u0275directiveInject(j.e))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Ie,selectors:[["app-profileview"]],decls:36,vars:8,consts:[[1,"profileview-style"],[1,"card","profileview-card-style"],["alt","Card image cap",1,"card-img-top",3,"src"],[1,"card-body","profileview-card-body"],[1,"title-style"],[1,"data-style"],[1,"data-style","email-style"],[3,"href"],[1,"main-button","edit-btn-style",3,"click"],[1,"vacancy-list-style"],["appearance","legacy","name","fontStyle","aria-label","Font Style","value","Saved"],["value","Saved",3,"click"],["value","Applied",3,"click"],[1,"row"],["class","col-sm-6",4,"ngFor","ngForOf"],[1,"col-sm-6"],[1,"card","vacancy-card-style"],[1,"card-body"],[1,"card-title",3,"click"],[1,"card-text",3,"click"],[3,"click"],[3,"src","click"]],template:function(yt,St){1&yt&&(d.\u0275\u0275elementStart(0,"div",0)(1,"div",1),d.\u0275\u0275element(2,"img",2),d.\u0275\u0275elementStart(3,"div",3)(4,"div",4),d.\u0275\u0275text(5,"First Name"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(6,"div",5),d.\u0275\u0275text(7),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(8,"div",4),d.\u0275\u0275text(9,"Last Name"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(10,"div",5),d.\u0275\u0275text(11),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(12,"div",4),d.\u0275\u0275text(13,"Email"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(14,"div",6),d.\u0275\u0275text(15),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(16,"div",4),d.\u0275\u0275text(17,"Phone Number"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(18,"div",5),d.\u0275\u0275text(19),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(20,"div",4),d.\u0275\u0275text(21,"CV"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(22,"div",5)(23,"a",7),d.\u0275\u0275text(24),d.\u0275\u0275elementEnd()()(),d.\u0275\u0275elementStart(25,"button",8),d.\u0275\u0275listener("click",function(){return St.gotoEditProfile()}),d.\u0275\u0275text(26,"EDIT PROFILE"),d.\u0275\u0275elementEnd()()(),d.\u0275\u0275elementStart(27,"div",9)(28,"mat-button-toggle-group",10)(29,"mat-button-toggle",11),d.\u0275\u0275listener("click",function(){return St.changeVacancyType(!1)}),d.\u0275\u0275text(30,"Saved"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(31,"mat-button-toggle",12),d.\u0275\u0275listener("click",function(){return St.changeVacancyType(!0)}),d.\u0275\u0275text(32,"Applied"),d.\u0275\u0275elementEnd()(),d.\u0275\u0275element(33,"hr"),d.\u0275\u0275elementStart(34,"div",13),d.\u0275\u0275template(35,re,11,7,"div",14),d.\u0275\u0275elementEnd()()),2&yt&&(d.\u0275\u0275advance(2),d.\u0275\u0275property("src",St.profileViewInfo.profileimage,d.\u0275\u0275sanitizeUrl),d.\u0275\u0275advance(5),d.\u0275\u0275textInterpolate(St.profileViewInfo.fname),d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(St.profileViewInfo.lname),d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(St.profileViewInfo.email),d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(St.profileViewInfo.mobile),d.\u0275\u0275advance(4),d.\u0275\u0275propertyInterpolate("href",St.profileViewInfo.cvUrl,d.\u0275\u0275sanitizeUrl),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(St.profileViewInfo.cv),d.\u0275\u0275advance(11),d.\u0275\u0275property("ngForOf",St.vacancies))},dependencies:[n.NgForOf,pi,ze,n.SlicePipe],styles:[".card-img-top[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto;width:100%;border-radius:9px}.profileview-style[_ngcontent-%COMP%]{text-align:-webkit-center}.profileview-card-style[_ngcontent-%COMP%]{max-width:700px;background:white;padding:20px;border-radius:12px;margin:8% 4px 3px}.profileview-card-body[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;width:100%;margin:14px 3px 0;text-align:left}.title-style[_ngcontent-%COMP%]{color:#757575;font-size:14px;width:50%;height:50px;overflow:overlay}.data-style[_ngcontent-%COMP%]{letter-spacing:2px;font-weight:600;padding-bottom:5px;font-family:var(--secondary-font);color:var(--secondary-font-color);font-size:1.7rem;width:50%;height:50px;overflow:overlay}.edit-btn-style[_ngcontent-%COMP%]{width:100%;padding:3%;letter-spacing:2px}mat-button-toggle-group[_ngcontent-%COMP%]{margin:2em 0 1em}mat-button-toggle[_ngcontent-%COMP%]{padding:0 2rem;border-radius:5px}.vacancy-list-style[_ngcontent-%COMP%]{padding:0 18px}hr[_ngcontent-%COMP%]{margin-top:0}.vacancy-card-style[_ngcontent-%COMP%]{background:white;padding:3%;border:white solid;border-radius:4px;margin-bottom:1%;display:flex;flex-direction:row}.vacancy-card-style[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]{width:60vw}.vacancy-card-style[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50%!important;border-radius:8px;height:60%}.email-style[_ngcontent-%COMP%]{line-height:1.5em;height:3em;overflow-wrap:break-word}@media only screen and (max-width:475px){.vacancy-card-style[_ngcontent-%COMP%]{flex-direction:column-reverse}.vacancy-card-style[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%!important}.vacancy-card-style[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]{width:100%;text-align:left}.profileview-card-style[_ngcontent-%COMP%]{margin:15% 5% 3px}.title-style[_ngcontent-%COMP%]{width:35%}.data-style[_ngcontent-%COMP%]{width:65%;font-size:1em;letter-spacing:1px}}.card-link[_ngcontent-%COMP%]{color:#a6c6e8}.card-body[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:1.2rem;font-style:italic;font-family:unset}.vacancy-card-style[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#f74a00}"]})}return Ie})()},{path:"form/:catName/:catId/:articleId",loadChildren:()=>Promise.resolve().then(a.bind(a,1663)).then(Ie=>Ie.FormEngineModule)},{path:"product/:catId/:articleId",component:l.F,data:{title:"Product Page"}}];let We=(()=>{class Ie{static#e=this.\u0275fac=function(yt){return new(yt||Ie)};static#t=this.\u0275mod=d.\u0275\u0275defineNgModule({type:Ie});static#i=this.\u0275inj=d.\u0275\u0275defineInjector({imports:[o.Bz.forChild(Re),o.Bz]})}return Ie})();var xt=a(231),Ht=a(7392),wt=a(9982),Mt=a(9095),It=a(5754),se=a(5001),we=a(3493);let Le=(()=>{class Ie{static#e=this.\u0275fac=function(yt){return new(yt||Ie)};static#t=this.\u0275mod=d.\u0275\u0275defineNgModule({type:Ie});static#i=this.\u0275inj=d.\u0275\u0275defineInjector({imports:[e.u5,e.UX,n.CommonModule,We,xt.Z,Z.IF,le.x4,q.yu,Ht.Ps,wt.gR,Mt.yj,me.uw,U.Zh,It.Nn,se.y,ue,we.OwlModule]})}return Ie})()},1713:(G,P,a)=>{"use strict";a.d(P,{H:()=>u});var d,n=a(4650),e=a(1411),o=a(8136),l=a(529),v=a(1481);let u=(()=>{class b{constructor(x,w){this.http=x,this.sanitizer=w,this.changeLoggingBtn=new n.EventEmitter,this.receiveDynamicFieldsStatus=new n.EventEmitter,this.appId=e.Jf,this.userId=e.xS,this.fileInfo={},this.isCordova=!1,d=this,this.isCordova=this.isCordovaApp(),this.isCordova&&(d.FileEntry=window.FileEntry)}getAppFormFields(x){return this.http.post(`${o.L}/api/getJobAppFormFields`,x)}sendDynamicFieldStatus(x){this.receiveDynamicFieldsStatus.emit(x)}saveFormDataIdInLocalStorage(x){localStorage.setItem(this.appId+"JobAppUserappFormDataId",x),this.changeLoggingBtn.emit()}removeFormDataIdInLocalStorage(){localStorage.removeItem(this.appId+"JobAppUserappFormDataId"),this.changeLoggingBtn.emit()}getformDataId(){return localStorage.getItem(this.appId+"JobAppUserappFormDataId")?localStorage.getItem(this.appId+"JobAppUserappFormDataId"):null}getProfile(x){return this.http.post(`${o.L}/api/getJobProfile`,x)}isCordovaApp(){return window.hasOwnProperty("cordova")}registerUser(x){return this.http.post(`${o.L}/api/registerJobUser`,x)}checkJobAppUserStatus(x){return this.http.post(`${o.L}/api/checkJobAppUserStatus`,x)}applyOrSaveVacancy(x){return this.http.post(`${o.L}/api/applyOrSaveVacancy`,x)}retrieveVacancies(x){return this.http.post(`${o.L}/api/retrieveVacancies`,x)}removeVacancy(x){return this.http.post(`${o.L}/api/removeVacancy`,x)}getJobAppUser(x){return this.http.post(`${o.L}/api/getJobAppUser`,x)}static#e=this.\u0275fac=function(w){return new(w||b)(n.\u0275\u0275inject(l.eN),n.\u0275\u0275inject(v.H7))};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()},3340:(G,P,a)=>{"use strict";a.r(P),a.d(P,{LocationTemplateModule:()=>pe});var n={};a.r(n),a.d(n,{hasBrowserEnv:()=>lr,hasStandardBrowserEnv:()=>Fn,hasStandardBrowserWebWorkerEnv:()=>bi});var e=a(4006),o=a(529),l=a(6895),v=a(8729),d=a(1411),u=a(4650),b=a(8257),C=a(8136);let x=(()=>{class y{constructor(N,de){this.http=N,this.commonService=de,this.appId=d.Jf,this.userId=d.xS,this.logedInUserId=null,this.msisdn="",this.httpOptions={headers:new o.WM({"Content-Type":"application/json"})},this.commonService.getMsisdn().subscribe($e=>{this.msisdn=$e}),this.commonService.getLoggedInUserId().subscribe($e=>{this.logedInUserId=$e})}listenOnLocalStorage(){this.loggedUserLocalStorageCheck=setInterval(()=>{this.checkLocalStorage()},500)}checkLocalStorage(){let N=localStorage.getItem("loggedLocationUser");N&&"null"!=N&&(this.logedInUserId=N,clearInterval(this.loggedUserLocalStorageCheck),this.getAllAddedUsers().subscribe(de=>{this.commonService.setAddedUsers(de?.addedUsers)}))}registerUser(N){return this.http.post(`${C.L}/edit/registerUser`,N,this.httpOptions)}addUser(N){return this.http.put(`${C.L}/edit/addUser`,{appId:this.appId,loggedUserId:this.logedInUserId,addingUserName:N})}getAllAddedUsers(){let N=this.commonService.checkIsFromCmsView();return this.http.get(`${C.L}/edit/getAllAddedUsers/${this.logedInUserId}?appId=${this.appId}&isFromCmsView=${N?1:0}`)}removeAddedUser(N){return this.http.put(`${C.L}/edit/removeAddedUser/${N}`,{userId:this.logedInUserId})}getProfileData(){return this.http.get(`${C.L}/edit/profile/${this.logedInUserId}`)}updateProfileData(N){return this.http.put(`${C.L}/edit/profile/update/${this.logedInUserId}/${this.appId}`,N)}checkUsernameExists(N){return this.http.post(`${C.L}/edit/profile/checkUsername/${this.logedInUserId}/${this.appId}`,N)}locationDetails(N,de){return this.http.post(`${C.L}/edit/locationDetails/${this.logedInUserId}`,{addedUserName:N,addedUserId:de},this.httpOptions)}getUserLocationDetails(N,de){const $e=`${C.L}/edit/getUserLocationDetails/${this.logedInUserId}`,Ve=(new o.LE).set("addedUserName",N).set("addedUserId",de);return this.http.get($e,{params:Ve})}getAllHistory(){return this.http.get(`${C.L}/edit/getAllHistory/${this.logedInUserId}`)}static#e=this.\u0275fac=function(de){return new(de||y)(u.\u0275\u0275inject(o.eN),u.\u0275\u0275inject(b.v))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();var w=a(6026);function g(y,J){if(1&y){const N=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"tr")(1,"td",7),u.\u0275\u0275element(2,"img",8),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"td",9)(4,"button",10),u.\u0275\u0275listener("click",function(){const Ve=u.\u0275\u0275restoreView(N).$implicit,pt=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(pt.locationHistoryOfUser(Ve.id,Ve.userName))}),u.\u0275\u0275text(5),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(6,"td",11)(7,"button",12),u.\u0275\u0275listener("click",function(){const Ve=u.\u0275\u0275restoreView(N).$implicit,pt=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(pt.removeAddedUser(Ve.id))}),u.\u0275\u0275text(8,"Remove"),u.\u0275\u0275elementEnd()()()}if(2&y){const N=J.$implicit;u.\u0275\u0275advance(5),u.\u0275\u0275textInterpolate(N.userName)}}let f=(()=>{class y{constructor(N,de,$e,Ve){this.router=N,this.commonService=de,this.userService=$e,this.titleService=Ve,this.title=d.u2,this.addedUsers=[],this.titleService.changeTitle(this.title),this.getAllAddedUsers(),this.commonService.setNavigatedPath("/location/home")}ngOnInit(){this.commonService.getAddedUsers().subscribe(N=>{this.addedUsers=N})}getAllAddedUsers(){this.userService.getAllAddedUsers().subscribe(N=>{N&&this.commonService.setAddedUsers(N.addedUsers)},N=>{console.error("Error in getAllAddedUsers: ",N)})}removeAddedUser(N){this.userService.removeAddedUser(N).subscribe(de=>{de&&this.commonService.setAddedUsers(de.data)},de=>{console.error("Error removing user:",de)})}locationHistoryOfUser(N,de){this.router.navigate(["/location/history",{addedUserName:de,addedUserId:N}])}navigate(N){this.commonService.navigate(N)}showInfo(){this.router.navigate(["/location/information"])}static#e=this.\u0275fac=function(de){return new(de||y)(u.\u0275\u0275directiveInject(v.F0),u.\u0275\u0275directiveInject(b.v),u.\u0275\u0275directiveInject(x),u.\u0275\u0275directiveInject(w.y))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:y,selectors:[["app-home"]],decls:16,vars:1,consts:[[1,"container"],[1,"button","main-button",3,"click"],[1,"table-container"],[1,"custom-table"],["colspan","2",1,"text-center"],[1,"text-center"],[4,"ngFor","ngForOf"],[1,"td-icon","text-right"],["src","assets/images/User.svg","alt","profile",1,"profile-img"],[1,"td-name","text-left"],[1,"name-btn",3,"click"],[1,"text-center","td-action"],[1,"remove-button",3,"click"]],template:function(de,$e){1&de&&(u.\u0275\u0275elementStart(0,"div",0)(1,"button",1),u.\u0275\u0275listener("click",function(){return $e.navigate("/location/add-user")}),u.\u0275\u0275text(2,"ADD USER"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"button",1),u.\u0275\u0275listener("click",function(){return $e.showInfo()}),u.\u0275\u0275text(4,"INFORMATION"),u.\u0275\u0275elementEnd()(),u.\u0275\u0275element(5,"br"),u.\u0275\u0275elementStart(6,"div",2)(7,"table",3)(8,"thead")(9,"tr")(10,"th",4),u.\u0275\u0275text(11,"Users"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(12,"th",5),u.\u0275\u0275text(13,"Action"),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275elementStart(14,"tbody"),u.\u0275\u0275template(15,g,9,1,"tr",6),u.\u0275\u0275elementEnd()()()),2&de&&(u.\u0275\u0275advance(15),u.\u0275\u0275property("ngForOf",$e.addedUsers))},dependencies:[l.NgForOf],styles:[".container[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.button[_ngcontent-%COMP%]{width:200px;display:flex;flex-direction:row;align-items:center;justify-content:center;padding:10px 20px;font-size:16px;font-weight:500;text-transform:uppercase;cursor:pointer;transition:background-color .3s ease;margin-right:10px;margin-bottom:0;font-size:smaller;letter-spacing:1px}.button[_ngcontent-%COMP%]:first-child{margin-left:0}.button[_ngcontent-%COMP%]:last-child{margin-right:0}.table-container[_ngcontent-%COMP%]{background-color:#2f3237;margin:0 auto;border-radius:10px;overflow:hidden;max-height:73vh;overflow-y:auto;margin-bottom:10vh}.custom-table[_ngcontent-%COMP%]{width:100%;color:#fff;border-collapse:collapse}.custom-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid #fff}.icon-cell[_ngcontent-%COMP%]{width:30px;color:#e56614}.user-icon[_ngcontent-%COMP%]{color:#e56614;font-size:20px}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:center}.button-image[_ngcontent-%COMP%]{width:30px;height:30px}.remove-button[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none;cursor:pointer;font-size:14px;opacity:.8}.remove-button[_ngcontent-%COMP%]:hover{text-decoration:underline}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}.text-left[_ngcontent-%COMP%]{text-align:left!important}.name-btn[_ngcontent-%COMP%]{padding-left:10px;background-color:transparent;border:none;text-align:left}.td-icon[_ngcontent-%COMP%]{width:auto!important;padding-left:30px!important}.td-name[_ngcontent-%COMP%]{width:auto!important}.td-action[_ngcontent-%COMP%]{width:30%!important}.footer-button.active[_ngcontent-%COMP%]{background-color:#e56614}@media (max-width: 767px){.table-container[_ngcontent-%COMP%]{max-height:65vh}}@media screen and (max-width: 480px){.td-icon[_ngcontent-%COMP%]{padding-left:20px!important}.name-btn[_ngcontent-%COMP%]{padding-left:0!important}}"]})}return y})();var S=a(3648);function j(y,J){1&y&&(u.\u0275\u0275elementStart(0,"div",10),u.\u0275\u0275text(1,"Please enter a username"),u.\u0275\u0275elementEnd())}function B(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"div",10),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&y){const N=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(N.errorMessage)}}function Z(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"div",11),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&y){const N=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(N.successMessage)}}let le=(()=>{class y{constructor(N,de,$e,Ve,pt){this.router=N,this.userService=de,this.commonService=$e,this.titleService=Ve,this.toastr=pt,this.addedUserName="",this.successMessage="",this.showUsernameError=!1,this.errorMessage="",this.titleService.changeTitle("ADD USER"),this.commonService.setNavigatedPath("/location/add_user")}ngOnInit(){}addUser(){this.addedUserName?(this.showUsernameError=!1,this.errorMessage="",this.successMessage="",this.userService.addUser(this.addedUserName).subscribe(N=>{!N?.isError&&N?.data?(this.addedUserName="",this.commonService.setAddedUsers(N.data),this.toastr.success(N.msg,"Success!",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"})):N?.isError&&N.msg&&""!==this.addedUserName&&this.toastr.error(N.msg,"Error!",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"})},N=>{console.error("Error while adding user:",N),N?.error?.msg?(this.errorMessage=N.error.msg,this.toastr.error(N.error.msg,"Error!",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"})):this.toastr.error(N.error,"Error!",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"})})):this.showUsernameError=!0}backToHome(){this.router.navigate(["/location"])}static#e=this.\u0275fac=function(de){return new(de||y)(u.\u0275\u0275directiveInject(v.F0),u.\u0275\u0275directiveInject(x),u.\u0275\u0275directiveInject(b.v),u.\u0275\u0275directiveInject(w.y),u.\u0275\u0275directiveInject(S._W))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:y,selectors:[["app-add-user"]],decls:16,vars:4,consts:[[1,"form-container"],[1,"form-heading"],[1,"form-row"],[1,"label-cell"],[1,"input-cell"],["type","text","placeholder","Enter username","maxlength","50",1,"input",3,"ngModel","ngModelChange"],["class","error-message",4,"ngIf"],["class","success-message",4,"ngIf"],[1,"button-container"],[1,"button","main-button",3,"click"],[1,"error-message"],[1,"success-message"]],template:function(de,$e){1&de&&(u.\u0275\u0275elementStart(0,"div",0)(1,"h2",1),u.\u0275\u0275text(2,"Add User"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"div",2)(4,"div",3),u.\u0275\u0275text(5,"Username"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(6,"div",4)(7,"input",5),u.\u0275\u0275listener("ngModelChange",function(pt){return $e.addedUserName=pt}),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(8,j,2,0,"div",6),u.\u0275\u0275template(9,B,2,1,"div",6),u.\u0275\u0275template(10,Z,2,1,"div",7),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275elementStart(11,"div",8)(12,"button",9),u.\u0275\u0275listener("click",function(){return $e.addUser()}),u.\u0275\u0275text(13,"ADD"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(14,"button",9),u.\u0275\u0275listener("click",function(){return $e.backToHome()}),u.\u0275\u0275text(15,"BACK"),u.\u0275\u0275elementEnd()()),2&de&&(u.\u0275\u0275advance(7),u.\u0275\u0275property("ngModel",$e.addedUserName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",$e.showUsernameError&&!$e.addedUserName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",$e.errorMessage&&!$e.successMessage),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",$e.successMessage&&!$e.errorMessage))},dependencies:[e.Fj,e.JJ,e.nD,e.On,l.NgIf],styles:[".form-container[_ngcontent-%COMP%]{background-color:#2f3237;border-radius:10px;color:#ea670f;text-align:center;padding-bottom:20px}.form-heading[_ngcontent-%COMP%]{font-size:18px;padding:20px;margin-bottom:20px;border-bottom:1px solid #fff}.form-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-bottom:10px}.label-cell[_ngcontent-%COMP%]{width:150px;text-align:right;display:flex;align-items:center}.input-cell[_ngcontent-%COMP%]{flex-grow:.4}.input[_ngcontent-%COMP%]{padding:5px;text-align:center;color:#000}.button-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin:20px auto}.button[_ngcontent-%COMP%]{width:200px;padding:10px 20px;font-weight:500;letter-spacing:1px;text-transform:uppercase;cursor:pointer;transition:background-color .3s ease;margin-bottom:10px;font-size:smaller}.button[_ngcontent-%COMP%]:last-child{margin-bottom:0}.custom-toast[_ngcontent-%COMP%]{text-align:center;background-color:#fff!important;border-radius:4px;box-shadow:0 0 10px #0003;width:30%;position:fixed;top:20px;left:50%;transform:translate(-50%);z-index:9999}.custom-toast[_ngcontent-%COMP%]   .toast-close-button[_ngcontent-%COMP%]{color:#000;position:absolute;top:5px;right:5px;font-size:18px;cursor:pointer;background:transparent;border:none;outline:none}.custom-toast[_ngcontent-%COMP%]   .toast-message[_ngcontent-%COMP%]{padding:21px 0}@media (max-width: 767px){.custom-toast[_ngcontent-%COMP%]{width:90%}.label-cell[_ngcontent-%COMP%]{width:100px!important}}"]})}return y})();function q(y,J){1&y&&(u.\u0275\u0275elementStart(0,"div",10),u.\u0275\u0275text(1,"Please enter a username"),u.\u0275\u0275elementEnd())}function X(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"div",10),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&y){const N=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(N.usernameExistsError)}}let K=(()=>{class y{constructor(N,de,$e,Ve,pt){this.router=N,this.userService=de,this.commonService=$e,this.titleService=Ve,this.toastr=pt,this.appId=d.Jf,this.userId=d.xS,this.userData={userName:"",msisdn:""},this.isSaveClicked=!1,this.showError=!1,this.titleService.changeTitle("USER REGISTRATION"),this.commonService.setNavigatedPath("/location/user_registration"),this.getMsisdn()}ngOnInit(){}getMsisdn(){this.commonService.getMsisdn().subscribe(de=>{de&&"null"!==de&&(this.userData.msisdn=de)}).unsubscribe()}validateInput(N){const de=N.target.value,$e=de.replace(/[^0-9]/g,"");de!==$e&&(N.target.value=$e,this.userData.msisdn=$e)}registerUser(){if(this.isSaveClicked=!0,this.userData.userName&&this.userData.msisdn){this.usernameExistsError="";const N={appId:this.appId,userName:this.userData.userName.trim(),msisdn:this.getFormattedMsisdn(this.userData.msisdn.toString().trim())};this.userService.registerUser(N).subscribe(de=>{this.toastr.success(de.message,"",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"}),this.router.navigate(["/location/home"])},de=>{console.error("Error: ",de),this.usernameExistsError=de.error})}}getFormattedMsisdn(N){return N.length>=9?"94"+N.substring(N.length-9):"94"+N}static#e=this.\u0275fac=function(de){return new(de||y)(u.\u0275\u0275directiveInject(v.F0),u.\u0275\u0275directiveInject(x),u.\u0275\u0275directiveInject(b.v),u.\u0275\u0275directiveInject(w.y),u.\u0275\u0275directiveInject(S._W))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:y,selectors:[["app-user-registration"]],decls:18,vars:5,consts:[[1,"form-container"],[1,"form-heading","main-header-font"],[1,"form-row"],[1,"label-cell","main-content-font"],[1,"input-cell"],["type","text","placeholder","Enter mobile number","pattern","[0-9]*","inputmode","numeric","disabled","",1,"input",3,"ngModel","ngModelChange","input"],["type","text","placeholder","Enter username","maxlength","30",1,"input",3,"ngModel","ngModelChange"],["class","error-message",4,"ngIf"],[1,"button-container"],[1,"button","main-button",3,"disabled","click"],[1,"error-message"]],template:function(de,$e){1&de&&(u.\u0275\u0275elementStart(0,"div",0)(1,"h2",1),u.\u0275\u0275text(2,"User Registration"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"div",2)(4,"div",3),u.\u0275\u0275text(5,"Mobile Number"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(6,"div",4)(7,"input",5),u.\u0275\u0275listener("ngModelChange",function(pt){return $e.userData.msisdn=pt})("input",function(pt){return $e.validateInput(pt)}),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275elementStart(8,"div",2)(9,"div",3),u.\u0275\u0275text(10,"Username"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(11,"div",4)(12,"input",6),u.\u0275\u0275listener("ngModelChange",function(pt){return $e.userData.userName=pt}),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(13,q,2,0,"div",7),u.\u0275\u0275template(14,X,2,1,"div",7),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275elementStart(15,"div",8)(16,"button",9),u.\u0275\u0275listener("click",function(){return $e.registerUser()}),u.\u0275\u0275text(17,"SAVE"),u.\u0275\u0275elementEnd()()),2&de&&(u.\u0275\u0275advance(7),u.\u0275\u0275property("ngModel",$e.userData.msisdn),u.\u0275\u0275advance(5),u.\u0275\u0275property("ngModel",$e.userData.userName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",!$e.userData.userName&&$e.isSaveClicked),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",$e.usernameExistsError),u.\u0275\u0275advance(2),u.\u0275\u0275property("disabled",!$e.userData.msisdn))},dependencies:[e.Fj,e.JJ,e.nD,e.c5,e.On,l.NgIf],styles:["[_nghost-%COMP%]{display:block;padding-bottom:40px}.form-container[_ngcontent-%COMP%]{background-color:#2f3237;border-radius:10px;color:#ea670f;text-align:center;padding-bottom:20px}.form-heading[_ngcontent-%COMP%]{font-size:18px;padding:20px;margin-bottom:20px;border-bottom:1px solid #fff}.form-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-bottom:10px}.label-cell[_ngcontent-%COMP%]{width:150px;display:flex;justify-content:flex-end;align-items:center}.input-cell[_ngcontent-%COMP%]{flex-grow:.4}.input[_ngcontent-%COMP%]{padding:5px;text-align:center;color:#000}.button-container[_ngcontent-%COMP%]{text-align:center;margin-top:20px}.button[_ngcontent-%COMP%]{width:200px;padding:8px 20px;cursor:pointer}.aligned[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column}input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.custom-toast[_ngcontent-%COMP%]{text-align:center;background-color:#fff!important;border-radius:4px;box-shadow:0 0 10px #0003;width:50%;position:fixed;top:20px;left:50%;transform:translate(-50%);z-index:9999}.custom-toast[_ngcontent-%COMP%]   .toast-message[_ngcontent-%COMP%]{padding:21px 0}@media (max-width: 767px){.custom-toast[_ngcontent-%COMP%]{width:90%}.label-cell[_ngcontent-%COMP%]{width:100px!important}}"]})}return y})();function U(y,J){1&y&&(u.\u0275\u0275elementStart(0,"div",11),u.\u0275\u0275text(1,"Please enter a username"),u.\u0275\u0275elementEnd())}function me(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"div",11),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&y){const N=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(N.errorMessage)}}function xe(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"div",12),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&y){const N=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(N.successMessage)}}let ne=(()=>{class y{constructor(N,de,$e,Ve,pt){this.router=N,this.userService=de,this.commonService=$e,this.titleService=Ve,this.toastr=pt,this.userName="",this.msisdn="",this.successMessage="",this.showUsernameError=!1,this.errorMessage="",this.titleService.changeTitle("MY PROFILE"),this.commonService.setNavigatedPath("/location/my_profile")}ngOnInit(){this.fetchProfileData()}fetchProfileData(){this.userService.getProfileData().subscribe(N=>{N&&(this.userName=N.userName,this.msisdn=N.msisdn)},N=>{console.error("Failed to fetch profile data",N)})}updateProfile(){this.userName?(this.showUsernameError=!1,this.errorMessage="",this.successMessage="",this.userService.updateProfileData({userName:this.userName}).subscribe(de=>{this.toastr.success(de.message,"",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"})},de=>{this.errorMessage=de.error,console.error("Failed to update profile",de)})):this.showUsernameError=!0}backToHome(){this.router.navigate(["/location/home"])}static#e=this.\u0275fac=function(de){return new(de||y)(u.\u0275\u0275directiveInject(v.F0),u.\u0275\u0275directiveInject(x),u.\u0275\u0275directiveInject(b.v),u.\u0275\u0275directiveInject(w.y),u.\u0275\u0275directiveInject(S._W))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:y,selectors:[["app-my-profile"]],decls:21,vars:5,consts:[[1,"form-container"],[1,"form-heading","main-header-font"],[1,"form-row"],[1,"label-cell","main-content-font"],[1,"input-cell"],["type","text","placeholder","Enter mobile number","disabled","",1,"input",3,"value"],["type","text","placeholder","Enter username","maxlength","30",1,"input",3,"ngModel","ngModelChange"],["class","error-message",4,"ngIf"],["class","success-message",4,"ngIf"],[1,"button-container"],[1,"button","main-button",3,"click"],[1,"error-message"],[1,"success-message"]],template:function(de,$e){1&de&&(u.\u0275\u0275elementStart(0,"div",0)(1,"h2",1),u.\u0275\u0275text(2,"My Profile"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"div",2)(4,"div",3),u.\u0275\u0275text(5,"Mobile Number"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(6,"div",4),u.\u0275\u0275element(7,"input",5),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(8,"div",2)(9,"div",3),u.\u0275\u0275text(10,"Username"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(11,"div",4)(12,"input",6),u.\u0275\u0275listener("ngModelChange",function(pt){return $e.userName=pt}),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(13,U,2,0,"div",7),u.\u0275\u0275template(14,me,2,1,"div",7),u.\u0275\u0275template(15,xe,2,1,"div",8),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275elementStart(16,"div",9)(17,"button",10),u.\u0275\u0275listener("click",function(){return $e.updateProfile()}),u.\u0275\u0275text(18,"UPDATE"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(19,"button",10),u.\u0275\u0275listener("click",function(){return $e.backToHome()}),u.\u0275\u0275text(20,"BACK"),u.\u0275\u0275elementEnd()()),2&de&&(u.\u0275\u0275advance(7),u.\u0275\u0275property("value",$e.msisdn),u.\u0275\u0275advance(5),u.\u0275\u0275property("ngModel",$e.userName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",$e.showUsernameError&&!$e.userName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",$e.errorMessage&&!$e.successMessage),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",$e.successMessage&&!$e.errorMessage))},dependencies:[e.Fj,e.JJ,e.nD,e.On,l.NgIf],styles:[".form-container[_ngcontent-%COMP%]{background-color:#2f3237;border-radius:10px;color:#ea670f;text-align:center;padding-bottom:20px}.form-heading[_ngcontent-%COMP%]{font-size:18px;padding:20px;margin-bottom:20px;border-bottom:1px solid #fff}.form-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-bottom:10px}.label-cell[_ngcontent-%COMP%]{width:150px;display:flex;justify-content:flex-end;align-items:center}.input-cell[_ngcontent-%COMP%]{flex-grow:.4}.input[_ngcontent-%COMP%]{padding:5px;text-align:center;color:#000}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column;align-items:center;margin-top:20px}.button[_ngcontent-%COMP%]{width:200px;padding:8px 20px;cursor:pointer;margin-bottom:8px}.custom-toast[_ngcontent-%COMP%]{text-align:center;background-color:#fff!important;border-radius:4px;box-shadow:0 0 10px #0003;width:30%;position:fixed;top:20px;left:50%;transform:translate(-50%);z-index:9999}.custom-toast[_ngcontent-%COMP%]   .toast-message[_ngcontent-%COMP%]{padding:21px 0}@media (max-width: 767px){.custom-toast[_ngcontent-%COMP%]{width:90%}.label-cell[_ngcontent-%COMP%]{width:100px!important}}"]})}return y})();var Ze=a(5861);function Oe(y,J){if(1&y){const N=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275elementStart(1,"tr",8),u.\u0275\u0275listener("click",function(){const Ve=u.\u0275\u0275restoreView(N).$implicit,pt=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(pt.getLocationView(Ve.id,Ve.lat,Ve.lon,pt.addedUserName,pt.getLocationDate(Ve),pt.getLocationTime(Ve)))}),u.\u0275\u0275elementStart(2,"td"),u.\u0275\u0275element(3,"img",9),u.\u0275\u0275text(4),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"td"),u.\u0275\u0275element(6,"img",10),u.\u0275\u0275text(7),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementContainerEnd()}if(2&y){const N=J.$implicit,de=u.\u0275\u0275nextContext();u.\u0275\u0275advance(4),u.\u0275\u0275textInterpolate1(" ",de.getLocationDate(N)," "),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate1(" ",de.getLocationTime(N)," ")}}let nt=(()=>{class y{constructor(N,de,$e,Ve,pt,qt){this.router=N,this.userService=de,this.commonService=$e,this.titleService=Ve,this.activeRoute=pt,this.location=qt,this.useLocationDetails=[],this.isClickedLocateBtn=!1,this.isLocating=!1,this.titleService.changeTitle("HISTORY"),this.commonService.setNavigatedPath("/location/history")}ngOnInit(){this.activeRoute.paramMap.subscribe(N=>{this.addedUserName=N.get("addedUserName"),this.addedUserId=N.get("addedUserId")}),this.getUserLocationDetails(this.addedUserId)}goBack(){this.location.back()}locationDetails(N){var de=this;return(0,Ze.Z)(function*(){if(de.isClickedLocateBtn=!0,yield de.commonService.checkSubscriptionStatus())de.checkIsOtcValid(N);else{const Ve=de.commonService.getSubProgress().subscribe(pt=>{pt||(Ve.unsubscribe(),de.checkIsOtcValid(N))})}})()}checkIsOtcValid(N){var de=this;return(0,Ze.Z)(function*(){let $e=yield de.commonService.fireOtcChargingRequest(N);console.log("isValid : ",$e),$e?de.getLocationDetailsAfterCheckingSubscription(N):de.isClickedLocateBtn=!1})()}getLocationDetailsAfterCheckingSubscription(N){this.isLocating||(this.isClickedLocateBtn=!0,this.isLocating=!0,this.userService.locationDetails(N,this.addedUserId).subscribe(de=>{if(this.isClickedLocateBtn=!1,this.isLocating=!1,de.isError)this.commonService.showToaster(de.msg,"Error",!0);else if(de&&de.location){const $e=de.location;this.useLocationDetails.push($e),this.commonService.showToaster(de.msg,"Success!",!1);let Ve=this;Ve.getLocationView($e.id,$e.lat,$e.lon,Ve.addedUserName,Ve.getLocationDate($e),Ve.getLocationTime($e))}else this.commonService.showToaster("Something went wrong. Please try again!","Error",!0)},de=>{this.isClickedLocateBtn=!1,this.isLocating=!1,console.error("Error retrieving location details:",de.error),this.commonService.showToaster("Something went wrong. Please try again!","Error",!0)}))}getUserLocationDetails(N){this.userService.getUserLocationDetails(this.addedUserName,N).subscribe(de=>{this.useLocationDetails=de,this.useLocationDetails=this.useLocationDetails.reverse()},de=>{console.error("Error retrieving location details:",de)})}getLocationDate(N){const de=new Date(N.locatedTime);return`${this.padZero(de.getDate())}/${this.padZero(de.getMonth()+1)}/${de.getFullYear()}`}getLocationTime(N){const de=new Date(N.locatedTime),$e=de.getHours(),Ve=de.getMinutes(),pt=$e>=12?"PM":"AM";return`${this.padZero($e%12||12)}:${this.padZero(Ve)} ${pt}`}padZero(N){return N.toString().padStart(2,"0")}getLocationView(N,de,$e,Ve,pt,qt){this.router.navigate(["/location/location-map",{userLocationId:N,latitude:de,longitude:$e,addedUserName:Ve,locationDate:pt,locationTime:qt}])}static#e=this.\u0275fac=function(de){return new(de||y)(u.\u0275\u0275directiveInject(v.F0),u.\u0275\u0275directiveInject(x),u.\u0275\u0275directiveInject(b.v),u.\u0275\u0275directiveInject(w.y),u.\u0275\u0275directiveInject(v.gz),u.\u0275\u0275directiveInject(l.Location))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:y,selectors:[["app-history"]],decls:16,vars:3,consts:[[1,"table-container"],[1,"custom-table"],[1,"btn-pack"],[1,"back-button","main-content-font",3,"click"],[1,"material-icons","back-icon",2,"font-family","'Material Icons'"],[1,"title"],[1,"button","main-button",3,"disabled","click"],[4,"ngFor","ngForOf"],[1,"clickable-row",3,"click"],["src","assets/images/Location.svg","alt","location",1,"location-icon"],["src","assets/images/Time.svg","alt","time",1,"time-icon"]],template:function(de,$e){1&de&&(u.\u0275\u0275elementStart(0,"div",0)(1,"table",1)(2,"thead")(3,"tr")(4,"th")(5,"div",2)(6,"button",3),u.\u0275\u0275listener("click",function(){return $e.goBack()}),u.\u0275\u0275elementStart(7,"span",4),u.\u0275\u0275text(8,"forward"),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(9,"div",5),u.\u0275\u0275text(10),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275elementStart(11,"th")(12,"button",6),u.\u0275\u0275listener("click",function(){return $e.locationDetails($e.addedUserName)}),u.\u0275\u0275text(13,"LOCATE"),u.\u0275\u0275elementEnd()()()(),u.\u0275\u0275elementStart(14,"tbody"),u.\u0275\u0275template(15,Oe,8,2,"ng-container",7),u.\u0275\u0275elementEnd()()()),2&de&&(u.\u0275\u0275advance(10),u.\u0275\u0275textInterpolate($e.addedUserName),u.\u0275\u0275advance(2),u.\u0275\u0275property("disabled",$e.isLocating||$e.isClickedLocateBtn),u.\u0275\u0275advance(3),u.\u0275\u0275property("ngForOf",$e.useLocationDetails))},dependencies:[l.NgForOf],styles:[".table-container[_ngcontent-%COMP%]{background-color:#2f3237;border-radius:10px;overflow:auto;max-height:80vh;margin-bottom:10vh}.custom-table[_ngcontent-%COMP%]{width:100%;color:#fff;border-collapse:collapse}.custom-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:15px;text-align:center;border-bottom:1px solid #fff}.custom-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#2f3237;border-top-left-radius:10px;border-top-right-radius:10px}.custom-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:10px}.button[_ngcontent-%COMP%]{padding:5px 10px;text-transform:uppercase;cursor:pointer;width:100px;font-weight:500;transition:background-color .3s ease;margin-right:10px;font-size:smaller}.custom-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{border-bottom-left-radius:10px}.arrow[_ngcontent-%COMP%]{color:#e16718;font-size:1.2em;vertical-align:middle}.location-icon[_ngcontent-%COMP%], .time-icon[_ngcontent-%COMP%]{color:#e16718;margin-right:5px!important;vertical-align:middle}.clock-icon[_ngcontent-%COMP%]{color:#e16718}.back-button[_ngcontent-%COMP%]{background-color:transparent!important;border:none;cursor:pointer;line-height:0;margin-left:20px;opacity:1}.back-icon[_ngcontent-%COMP%]{transform:scale3d(-1.2,1.2,1.2)!important;display:inline-block!important}.back-button[_ngcontent-%COMP%]:hover{opacity:.7}.clickable-row[_ngcontent-%COMP%]{cursor:pointer}.clickable-row[_ngcontent-%COMP%]:hover{background-color:#0000001a}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:4px}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:#000c}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar-button:decrement{background-color:transparent}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar-button:increment{background-color:transparent}.title[_ngcontent-%COMP%]{font-weight:500;margin-left:10px}.btn-pack[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center}@media (max-width: 767px){.table-container[_ngcontent-%COMP%]{max-height:75vh}.back-button[_ngcontent-%COMP%]{margin-left:5px}.title[_ngcontent-%COMP%]{margin-left:0}}"]})}return y})();var qe=a(8407);function ct(y,J){return function(){return y.apply(J,arguments)}}const{toString:ot}=Object.prototype,{getPrototypeOf:dt}=Object,jt=(y=Object.create(null),J=>{const N=ot.call(J);return y[N]||(y[N]=N.slice(8,-1).toLowerCase())}),zt=y=>(y=y.toLowerCase(),J=>jt(J)===y),ti=y=>J=>typeof J===y,{isArray:mi}=Array,Qt=ti("undefined");var y;const lt=zt("ArrayBuffer"),Fe=ti("string"),Ae=ti("function"),H=ti("number"),W=y=>null!==y&&"object"==typeof y,Te=y=>{if("object"!==jt(y))return!1;const J=dt(y);return!(null!==J&&J!==Object.prototype&&null!==Object.getPrototypeOf(J)||Symbol.toStringTag in y||Symbol.iterator in y)},Be=zt("Date"),mt=zt("File"),Pe=zt("Blob"),Qe=zt("FileList"),k=zt("URLSearchParams");function be(y,J,{allOwnKeys:N=!1}={}){if(null===y||typeof y>"u")return;let de,$e;if("object"!=typeof y&&(y=[y]),mi(y))for(de=0,$e=y.length;de<$e;de++)J.call(null,y[de],de,y);else{const Ve=N?Object.getOwnPropertyNames(y):Object.keys(y),pt=Ve.length;let qt;for(de=0;de<pt;de++)qt=Ve[de],J.call(null,y[qt],qt,y)}}function et(y,J){J=J.toLowerCase();const N=Object.keys(y);let $e,de=N.length;for(;de-- >0;)if($e=N[de],J===$e.toLowerCase())return $e;return null}const Ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ge=y=>!Qt(y)&&y!==Ue,Lt=(y=>J=>y&&J instanceof y)(typeof Uint8Array<"u"&&dt(Uint8Array)),Xt=zt("HTMLFormElement"),vt=(({hasOwnProperty:y})=>(J,N)=>y.call(J,N))(Object.prototype),Ut=zt("RegExp"),Zt=(y,J)=>{const N=Object.getOwnPropertyDescriptors(y),de={};be(N,($e,Ve)=>{let pt;!1!==(pt=J($e,Ve,y))&&(de[Ve]=pt||$e)}),Object.defineProperties(y,de)},ze="abcdefghijklmnopqrstuvwxyz",ue="0123456789",re={DIGIT:ue,ALPHA:ze,ALPHA_DIGIT:ze+ze.toUpperCase()+ue},xt=zt("AsyncFunction"),wt={isArray:mi,isArrayBuffer:lt,isBuffer:function Jt(y){return null!==y&&!Qt(y)&&null!==y.constructor&&!Qt(y.constructor)&&Ae(y.constructor.isBuffer)&&y.constructor.isBuffer(y)},isFormData:y=>{let J;return y&&("function"==typeof FormData&&y instanceof FormData||Ae(y.append)&&("formdata"===(J=jt(y))||"object"===J&&Ae(y.toString)&&"[object FormData]"===y.toString()))},isArrayBufferView:function _t(y){let J;return J=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(y):y&&y.buffer&&lt(y.buffer),J},isString:Fe,isNumber:H,isBoolean:y=>!0===y||!1===y,isObject:W,isPlainObject:Te,isUndefined:Qt,isDate:Be,isFile:mt,isBlob:Pe,isRegExp:Ut,isFunction:Ae,isStream:y=>W(y)&&Ae(y.pipe),isURLSearchParams:k,isTypedArray:Lt,isFileList:Qe,forEach:be,merge:function ke(){const{caseless:y}=ge(this)&&this||{},J={},N=(de,$e)=>{const Ve=y&&et(J,$e)||$e;J[Ve]=Te(J[Ve])&&Te(de)?ke(J[Ve],de):Te(de)?ke({},de):mi(de)?de.slice():de};for(let de=0,$e=arguments.length;de<$e;de++)arguments[de]&&be(arguments[de],N);return J},extend:(y,J,N,{allOwnKeys:de}={})=>(be(J,($e,Ve)=>{y[Ve]=N&&Ae($e)?ct($e,N):$e},{allOwnKeys:de}),y),trim:y=>y.trim?y.trim():y.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:y=>(65279===y.charCodeAt(0)&&(y=y.slice(1)),y),inherits:(y,J,N,de)=>{y.prototype=Object.create(J.prototype,de),y.prototype.constructor=y,Object.defineProperty(y,"super",{value:J.prototype}),N&&Object.assign(y.prototype,N)},toFlatObject:(y,J,N,de)=>{let $e,Ve,pt;const qt={};if(J=J||{},null==y)return J;do{for($e=Object.getOwnPropertyNames(y),Ve=$e.length;Ve-- >0;)pt=$e[Ve],(!de||de(pt,y,J))&&!qt[pt]&&(J[pt]=y[pt],qt[pt]=!0);y=!1!==N&&dt(y)}while(y&&(!N||N(y,J))&&y!==Object.prototype);return J},kindOf:jt,kindOfTest:zt,endsWith:(y,J,N)=>{y=String(y),(void 0===N||N>y.length)&&(N=y.length);const de=y.indexOf(J,N-=J.length);return-1!==de&&de===N},toArray:y=>{if(!y)return null;if(mi(y))return y;let J=y.length;if(!H(J))return null;const N=new Array(J);for(;J-- >0;)N[J]=y[J];return N},forEachEntry:(y,J)=>{const de=(y&&y[Symbol.iterator]).call(y);let $e;for(;($e=de.next())&&!$e.done;){const Ve=$e.value;J.call(y,Ve[0],Ve[1])}},matchAll:(y,J)=>{let N;const de=[];for(;null!==(N=y.exec(J));)de.push(N);return de},isHTMLForm:Xt,hasOwnProperty:vt,hasOwnProp:vt,reduceDescriptors:Zt,freezeMethods:y=>{Zt(y,(J,N)=>{if(Ae(y)&&-1!==["arguments","caller","callee"].indexOf(N))return!1;if(Ae(y[N])){if(J.enumerable=!1,"writable"in J)return void(J.writable=!1);J.set||(J.set=()=>{throw Error("Can not rewrite read-only method '"+N+"'")})}})},toObjectSet:(y,J)=>{const N={},de=$e=>{$e.forEach(Ve=>{N[Ve]=!0})};return mi(y)?de(y):de(String(y).split(J)),N},toCamelCase:y=>y.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(N,de,$e){return de.toUpperCase()+$e}),noop:()=>{},toFiniteNumber:(y,J)=>(y=+y,Number.isFinite(y)?y:J),findKey:et,global:Ue,isContextDefined:ge,ALPHABET:re,generateString:(y=16,J=re.ALPHA_DIGIT)=>{let N="";const{length:de}=J;for(;y--;)N+=J[Math.random()*de|0];return N},isSpecCompliantForm:function Re(y){return!!(y&&Ae(y.append)&&"FormData"===y[Symbol.toStringTag]&&y[Symbol.iterator])},toJSONObject:y=>{const J=new Array(10),N=(de,$e)=>{if(W(de)){if(J.indexOf(de)>=0)return;if(!("toJSON"in de)){J[$e]=de;const Ve=mi(de)?[]:{};return be(de,(pt,qt)=>{const ki=N(pt,$e+1);!Qt(ki)&&(Ve[qt]=ki)}),J[$e]=void 0,Ve}}return de};return N(y,0)},isAsyncFn:xt,isThenable:y=>y&&(W(y)||Ae(y))&&Ae(y.then)&&Ae(y.catch)};function Mt(y,J,N,de,$e){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=y,this.name="AxiosError",J&&(this.code=J),N&&(this.config=N),de&&(this.request=de),$e&&(this.response=$e)}wt.inherits(Mt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:wt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const It=Mt.prototype,se={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(y=>{se[y]={value:y}}),Object.defineProperties(Mt,se),Object.defineProperty(It,"isAxiosError",{value:!0}),Mt.from=(y,J,N,de,$e,Ve)=>{const pt=Object.create(It);return wt.toFlatObject(y,pt,function(ki){return ki!==Error.prototype},qt=>"isAxiosError"!==qt),Mt.call(pt,y.message,J,N,de,$e),pt.cause=y,pt.name=y.name,Ve&&Object.assign(pt,Ve),pt};const we=Mt;function Ie(y){return wt.isPlainObject(y)||wt.isArray(y)}function Ot(y){return wt.endsWith(y,"[]")?y.slice(0,-2):y}function Me(y,J,N){return y?y.concat(J).map(function($e,Ve){return $e=Ot($e),!N&&Ve?"["+$e+"]":$e}).join(N?".":""):J}const St=wt.toFlatObject(wt,{},null,function(J){return/^is[A-Z]/.test(J)}),Ki=function ii(y,J,N){if(!wt.isObject(y))throw new TypeError("target must be an object");J=J||new FormData;const de=(N=wt.toFlatObject(N,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Qi,sr){return!wt.isUndefined(sr[Qi])})).metaTokens,$e=N.visitor||hi,Ve=N.dots,pt=N.indexes,ki=(N.Blob||typeof Blob<"u"&&Blob)&&wt.isSpecCompliantForm(J);if(!wt.isFunction($e))throw new TypeError("visitor must be a function");function Ai(Pi){if(null===Pi)return"";if(wt.isDate(Pi))return Pi.toISOString();if(!ki&&wt.isBlob(Pi))throw new we("Blob is not supported. Use a Buffer instead.");return wt.isArrayBuffer(Pi)||wt.isTypedArray(Pi)?ki&&"function"==typeof Blob?new Blob([Pi]):Buffer.from(Pi):Pi}function hi(Pi,Qi,sr){let cr=Pi;if(Pi&&!sr&&"object"==typeof Pi)if(wt.endsWith(Qi,"{}"))Qi=de?Qi:Qi.slice(0,-2),Pi=JSON.stringify(Pi);else if(wt.isArray(Pi)&&function yt(y){return wt.isArray(y)&&!y.some(Ie)}(Pi)||(wt.isFileList(Pi)||wt.endsWith(Qi,"[]"))&&(cr=wt.toArray(Pi)))return Qi=Ot(Qi),cr.forEach(function(Zn,Io){!wt.isUndefined(Zn)&&null!==Zn&&J.append(!0===pt?Me([Qi],Io,Ve):null===pt?Qi:Qi+"[]",Ai(Zn))}),!1;return!!Ie(Pi)||(J.append(Me(sr,Qi,Ve),Ai(Pi)),!1)}const Hi=[],gn=Object.assign(St,{defaultVisitor:hi,convertValue:Ai,isVisitable:Ie});if(!wt.isObject(y))throw new TypeError("data must be an object");return function vr(Pi,Qi){if(!wt.isUndefined(Pi)){if(-1!==Hi.indexOf(Pi))throw Error("Circular reference detected in "+Qi.join("."));Hi.push(Pi),wt.forEach(Pi,function(cr,_n){!0===(!(wt.isUndefined(cr)||null===cr)&&$e.call(J,cr,wt.isString(_n)?_n.trim():_n,Qi,gn))&&vr(cr,Qi?Qi.concat(_n):[_n])}),Hi.pop()}}(y),J};function Pn(y){const J={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(y).replace(/[!'()~]|%20|%00/g,function(de){return J[de]})}function ir(y,J){this._pairs=[],y&&Ki(y,this,J)}const Fr=ir.prototype;Fr.append=function(J,N){this._pairs.push([J,N])},Fr.toString=function(J){const N=J?function(de){return J.call(this,de,Pn)}:Pn;return this._pairs.map(function($e){return N($e[0])+"="+N($e[1])},"").join("&")};const yr=ir;function fr(y){return encodeURIComponent(y).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ar(y,J,N){if(!J)return y;const de=N&&N.encode||fr,$e=N&&N.serialize;let Ve;if(Ve=$e?$e(J,N):wt.isURLSearchParams(J)?J.toString():new yr(J,N).toString(de),Ve){const pt=y.indexOf("#");-1!==pt&&(y=y.slice(0,pt)),y+=(-1===y.indexOf("?")?"?":"&")+Ve}return y}const Mn=class Xi{constructor(){this.handlers=[]}use(J,N,de){return this.handlers.push({fulfilled:J,rejected:N,synchronous:!!de&&de.synchronous,runWhen:de?de.runWhen:null}),this.handlers.length-1}eject(J){this.handlers[J]&&(this.handlers[J]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(J){wt.forEach(this.handlers,function(de){null!==de&&J(de)})}},Ln={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Si={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:yr,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},lr=typeof window<"u"&&typeof document<"u",Fn=(y=>lr&&["ReactNative","NativeScript","NS"].indexOf(y)<0)(typeof navigator<"u"&&navigator.product),bi=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,gi={...n,...Si},qn=function pn(y){function J(N,de,$e,Ve){let pt=N[Ve++];const qt=Number.isFinite(+pt),ki=Ve>=N.length;return pt=!pt&&wt.isArray($e)?$e.length:pt,ki?($e[pt]=wt.hasOwnProp($e,pt)?[$e[pt],de]:de,!qt):((!$e[pt]||!wt.isObject($e[pt]))&&($e[pt]=[]),J(N,de,$e[pt],Ve)&&wt.isArray($e[pt])&&($e[pt]=function Wn(y){const J={},N=Object.keys(y);let de;const $e=N.length;let Ve;for(de=0;de<$e;de++)Ve=N[de],J[Ve]=y[Ve];return J}($e[pt])),!qt)}if(wt.isFormData(y)&&wt.isFunction(y.entries)){const N={};return wt.forEachEntry(y,(de,$e)=>{J(function Dn(y){return wt.matchAll(/\w+|\[(\w*)]/g,y).map(J=>"[]"===J[0]?"":J[1]||J[0])}(de),$e,N,0)}),N}return null},qi={transitional:Ln,adapter:["xhr","http"],transformRequest:[function(J,N){const de=N.getContentType()||"",$e=de.indexOf("application/json")>-1,Ve=wt.isObject(J);if(Ve&&wt.isHTMLForm(J)&&(J=new FormData(J)),wt.isFormData(J))return $e&&$e?JSON.stringify(qn(J)):J;if(wt.isArrayBuffer(J)||wt.isBuffer(J)||wt.isStream(J)||wt.isFile(J)||wt.isBlob(J))return J;if(wt.isArrayBufferView(J))return J.buffer;if(wt.isURLSearchParams(J))return N.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),J.toString();let qt;if(Ve){if(de.indexOf("application/x-www-form-urlencoded")>-1)return function ji(y,J){return Ki(y,new gi.classes.URLSearchParams,Object.assign({visitor:function(N,de,$e,Ve){return gi.isNode&&wt.isBuffer(N)?(this.append(de,N.toString("base64")),!1):Ve.defaultVisitor.apply(this,arguments)}},J))}(J,this.formSerializer).toString();if((qt=wt.isFileList(J))||de.indexOf("multipart/form-data")>-1){const ki=this.env&&this.env.FormData;return Ki(qt?{"files[]":J}:J,ki&&new ki,this.formSerializer)}}return Ve||$e?(N.setContentType("application/json",!1),function Mi(y,J,N){if(wt.isString(y))try{return(J||JSON.parse)(y),wt.trim(y)}catch(de){if("SyntaxError"!==de.name)throw de}return(N||JSON.stringify)(y)}(J)):J}],transformResponse:[function(J){const N=this.transitional||qi.transitional,de=N&&N.forcedJSONParsing,$e="json"===this.responseType;if(J&&wt.isString(J)&&(de&&!this.responseType||$e)){const pt=!(N&&N.silentJSONParsing)&&$e;try{return JSON.parse(J)}catch(qt){if(pt)throw"SyntaxError"===qt.name?we.from(qt,we.ERR_BAD_RESPONSE,this,null,this.response):qt}}return J}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gi.classes.FormData,Blob:gi.classes.Blob},validateStatus:function(J){return J>=200&&J<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};wt.forEach(["delete","get","head","post","put","patch"],y=>{qi.headers[y]={}});const Qn=qi,Vi=wt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Br=Symbol("internals");function On(y){return y&&String(y).trim().toLowerCase()}function Yn(y){return!1===y||null==y?y:wt.isArray(y)?y.map(Yn):String(y)}function ht(y,J,N,de,$e){if(wt.isFunction(de))return de.call(this,J,N);if($e&&(J=N),wt.isString(J)){if(wt.isString(de))return-1!==J.indexOf(de);if(wt.isRegExp(de))return de.test(J)}}class je{constructor(J){J&&this.set(J)}set(J,N,de){const $e=this;function Ve(qt,ki,Ai){const hi=On(ki);if(!hi)throw new Error("header name must be a non-empty string");const Hi=wt.findKey($e,hi);(!Hi||void 0===$e[Hi]||!0===Ai||void 0===Ai&&!1!==$e[Hi])&&($e[Hi||ki]=Yn(qt))}const pt=(qt,ki)=>wt.forEach(qt,(Ai,hi)=>Ve(Ai,hi,ki));return wt.isPlainObject(J)||J instanceof this.constructor?pt(J,N):wt.isString(J)&&(J=J.trim())&&!(y=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(y.trim()))(J)?pt((y=>{const J={};let N,de,$e;return y&&y.split("\n").forEach(function(pt){$e=pt.indexOf(":"),N=pt.substring(0,$e).trim().toLowerCase(),de=pt.substring($e+1).trim(),!(!N||J[N]&&Vi[N])&&("set-cookie"===N?J[N]?J[N].push(de):J[N]=[de]:J[N]=J[N]?J[N]+", "+de:de)}),J})(J),N):null!=J&&Ve(N,J,de),this}get(J,N){if(J=On(J)){const de=wt.findKey(this,J);if(de){const $e=this[de];if(!N)return $e;if(!0===N)return function Ei(y){const J=Object.create(null),N=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let de;for(;de=N.exec(y);)J[de[1]]=de[2];return J}($e);if(wt.isFunction(N))return N.call(this,$e,de);if(wt.isRegExp(N))return N.exec($e);throw new TypeError("parser must be boolean|regexp|function")}}}has(J,N){if(J=On(J)){const de=wt.findKey(this,J);return!(!de||void 0===this[de]||N&&!ht(0,this[de],de,N))}return!1}delete(J,N){const de=this;let $e=!1;function Ve(pt){if(pt=On(pt)){const qt=wt.findKey(de,pt);qt&&(!N||ht(0,de[qt],qt,N))&&(delete de[qt],$e=!0)}}return wt.isArray(J)?J.forEach(Ve):Ve(J),$e}clear(J){const N=Object.keys(this);let de=N.length,$e=!1;for(;de--;){const Ve=N[de];(!J||ht(0,this[Ve],Ve,J,!0))&&(delete this[Ve],$e=!0)}return $e}normalize(J){const N=this,de={};return wt.forEach(this,($e,Ve)=>{const pt=wt.findKey(de,Ve);if(pt)return N[pt]=Yn($e),void delete N[Ve];const qt=J?function ni(y){return y.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(J,N,de)=>N.toUpperCase()+de)}(Ve):String(Ve).trim();qt!==Ve&&delete N[Ve],N[qt]=Yn($e),de[qt]=!0}),this}concat(...J){return this.constructor.concat(this,...J)}toJSON(J){const N=Object.create(null);return wt.forEach(this,(de,$e)=>{null!=de&&!1!==de&&(N[$e]=J&&wt.isArray(de)?de.join(", "):de)}),N}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([J,N])=>J+": "+N).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(J){return J instanceof this?J:new this(J)}static concat(J,...N){const de=new this(J);return N.forEach($e=>de.set($e)),de}static accessor(J){const de=(this[Br]=this[Br]={accessors:{}}).accessors,$e=this.prototype;function Ve(pt){const qt=On(pt);de[qt]||(function he(y,J){const N=wt.toCamelCase(" "+J);["get","set","has"].forEach(de=>{Object.defineProperty(y,de+N,{value:function($e,Ve,pt){return this[de].call(this,J,$e,Ve,pt)},configurable:!0})})}($e,pt),de[qt]=!0)}return wt.isArray(J)?J.forEach(Ve):Ve(J),this}}je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),wt.reduceDescriptors(je.prototype,({value:y},J)=>{let N=J[0].toUpperCase()+J.slice(1);return{get:()=>y,set(de){this[N]=de}}}),wt.freezeMethods(je);const Je=je;function At(y,J){const N=this||Qn,de=J||N,$e=Je.from(de.headers);let Ve=de.data;return wt.forEach(y,function(qt){Ve=qt.call(N,Ve,$e.normalize(),J?J.status:void 0)}),$e.normalize(),Ve}function li(y){return!(!y||!y.__CANCEL__)}function zi(y,J,N){we.call(this,y??"canceled",we.ERR_CANCELED,J,N),this.name="CanceledError"}wt.inherits(zi,we,{__CANCEL__:!0});const dn=zi,Hn=gi.hasStandardBrowserEnv?{write:function(N,de,$e,Ve,pt,qt){const ki=[];ki.push(N+"="+encodeURIComponent(de)),wt.isNumber($e)&&ki.push("expires="+new Date($e).toGMTString()),wt.isString(Ve)&&ki.push("path="+Ve),wt.isString(pt)&&ki.push("domain="+pt),!0===qt&&ki.push("secure"),document.cookie=ki.join("; ")},read:function(N){const de=document.cookie.match(new RegExp("(^|;\\s*)("+N+")=([^;]*)"));return de?decodeURIComponent(de[3]):null},remove:function(N){this.write(N,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Fi(y,J){return y&&!function Tn(y){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(y)}(J)?function Bo(y,J){return J?y.replace(/\/+$/,"")+"/"+J.replace(/^\/+/,""):y}(y,J):J}const bn=gi.hasStandardBrowserEnv?function(){const J=/(msie|trident)/i.test(navigator.userAgent),N=document.createElement("a");let de;function $e(Ve){let pt=Ve;return J&&(N.setAttribute("href",pt),pt=N.href),N.setAttribute("href",pt),{href:N.href,protocol:N.protocol?N.protocol.replace(/:$/,""):"",host:N.host,search:N.search?N.search.replace(/^\?/,""):"",hash:N.hash?N.hash.replace(/^#/,""):"",hostname:N.hostname,port:N.port,pathname:"/"===N.pathname.charAt(0)?N.pathname:"/"+N.pathname}}return de=$e(window.location.href),function(pt){const qt=wt.isString(pt)?$e(pt):pt;return qt.protocol===de.protocol&&qt.host===de.host}}():function(){return!0},eo=function dr(y,J){y=y||10;const N=new Array(y),de=new Array(y);let pt,$e=0,Ve=0;return J=void 0!==J?J:1e3,function(ki){const Ai=Date.now(),hi=de[Ve];pt||(pt=Ai),N[$e]=ki,de[$e]=Ai;let Hi=Ve,gn=0;for(;Hi!==$e;)gn+=N[Hi++],Hi%=y;if($e=($e+1)%y,$e===Ve&&(Ve=(Ve+1)%y),Ai-pt<J)return;const vr=hi&&Ai-hi;return vr?Math.round(1e3*gn/vr):void 0}};function $n(y,J){let N=0;const de=eo(50,250);return $e=>{const Ve=$e.loaded,pt=$e.lengthComputable?$e.total:void 0,qt=Ve-N,ki=de(qt);N=Ve;const hi={loaded:Ve,total:pt,progress:pt?Ve/pt:void 0,bytes:qt,rate:ki||void 0,estimated:ki&&pt&&Ve<=pt?(pt-Ve)/ki:void 0,event:$e};hi[J?"download":"upload"]=!0,y(hi)}}const Hr={http:null,xhr:typeof XMLHttpRequest<"u"&&function(y){return new Promise(function(N,de){let $e=y.data;const Ve=Je.from(y.headers).normalize(),pt=y.responseType;let qt,Ai;function ki(){y.cancelToken&&y.cancelToken.unsubscribe(qt),y.signal&&y.signal.removeEventListener("abort",qt)}if(wt.isFormData($e))if(gi.hasStandardBrowserEnv||gi.hasStandardBrowserWebWorkerEnv)Ve.setContentType(!1);else if(!1!==(Ai=Ve.getContentType())){const[Pi,...Qi]=Ai?Ai.split(";").map(sr=>sr.trim()).filter(Boolean):[];Ve.setContentType([Pi||"multipart/form-data",...Qi].join("; "))}let hi=new XMLHttpRequest;if(y.auth){const Pi=y.auth.username||"",Qi=y.auth.password?unescape(encodeURIComponent(y.auth.password)):"";Ve.set("Authorization","Basic "+btoa(Pi+":"+Qi))}const Hi=Fi(y.baseURL,y.url);function gn(){if(!hi)return;const Pi=Je.from("getAllResponseHeaders"in hi&&hi.getAllResponseHeaders());(function en(y,J,N){const de=N.config.validateStatus;N.status&&de&&!de(N.status)?J(new we("Request failed with status code "+N.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(N.status/100)-4],N.config,N.request,N)):y(N)})(function(_n){N(_n),ki()},function(_n){de(_n),ki()},{data:pt&&"text"!==pt&&"json"!==pt?hi.response:hi.responseText,status:hi.status,statusText:hi.statusText,headers:Pi,config:y,request:hi}),hi=null}if(hi.open(y.method.toUpperCase(),ar(Hi,y.params,y.paramsSerializer),!0),hi.timeout=y.timeout,"onloadend"in hi?hi.onloadend=gn:hi.onreadystatechange=function(){!hi||4!==hi.readyState||0===hi.status&&(!hi.responseURL||0!==hi.responseURL.indexOf("file:"))||setTimeout(gn)},hi.onabort=function(){hi&&(de(new we("Request aborted",we.ECONNABORTED,y,hi)),hi=null)},hi.onerror=function(){de(new we("Network Error",we.ERR_NETWORK,y,hi)),hi=null},hi.ontimeout=function(){let Qi=y.timeout?"timeout of "+y.timeout+"ms exceeded":"timeout exceeded";y.timeoutErrorMessage&&(Qi=y.timeoutErrorMessage),de(new we(Qi,(y.transitional||Ln).clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,y,hi)),hi=null},gi.hasStandardBrowserEnv){const Pi=bn(Hi)&&y.xsrfCookieName&&Hn.read(y.xsrfCookieName);Pi&&Ve.set(y.xsrfHeaderName,Pi)}void 0===$e&&Ve.setContentType(null),"setRequestHeader"in hi&&wt.forEach(Ve.toJSON(),function(Qi,sr){hi.setRequestHeader(sr,Qi)}),wt.isUndefined(y.withCredentials)||(hi.withCredentials=!!y.withCredentials),pt&&"json"!==pt&&(hi.responseType=y.responseType),"function"==typeof y.onDownloadProgress&&hi.addEventListener("progress",$n(y.onDownloadProgress,!0)),"function"==typeof y.onUploadProgress&&hi.upload&&hi.upload.addEventListener("progress",$n(y.onUploadProgress)),(y.cancelToken||y.signal)&&(qt=Pi=>{hi&&(de(!Pi||Pi.type?new dn(null,y,hi):Pi),hi.abort(),hi=null)},y.cancelToken&&y.cancelToken.subscribe(qt),y.signal&&(y.signal.aborted?qt():y.signal.addEventListener("abort",qt)));const vr=function cn(y){const J=/^([-+\w]{1,25})(:?\/\/|:)/.exec(y);return J&&J[1]||""}(Hi);vr&&-1===gi.protocols.indexOf(vr)?de(new we("Unsupported protocol "+vr+":",we.ERR_BAD_REQUEST,y)):hi.send($e||null)})}};wt.forEach(Hr,(y,J)=>{if(y){try{Object.defineProperty(y,"name",{value:J})}catch{}Object.defineProperty(y,"adapterName",{value:J})}});const Tr=y=>`- ${y}`,Kn=y=>wt.isFunction(y)||null===y||!1===y,Cr={getAdapter:y=>{y=wt.isArray(y)?y:[y];const{length:J}=y;let N,de;const $e={};for(let Ve=0;Ve<J;Ve++){let pt;if(N=y[Ve],de=N,!Kn(N)&&(de=Hr[(pt=String(N)).toLowerCase()],void 0===de))throw new we(`Unknown adapter '${pt}'`);if(de)break;$e[pt||"#"+Ve]=de}if(!de){const Ve=Object.entries($e).map(([qt,ki])=>`adapter ${qt} `+(!1===ki?"is not supported by the environment":"is not available in the build"));let pt=J?Ve.length>1?"since :\n"+Ve.map(Tr).join("\n"):" "+Tr(Ve[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+pt,"ERR_NOT_SUPPORT")}return de},adapters:Hr};function or(y){if(y.cancelToken&&y.cancelToken.throwIfRequested(),y.signal&&y.signal.aborted)throw new dn(null,y)}function Nr(y){return or(y),y.headers=Je.from(y.headers),y.data=At.call(y,y.transformRequest),-1!==["post","put","patch"].indexOf(y.method)&&y.headers.setContentType("application/x-www-form-urlencoded",!1),Cr.getAdapter(y.adapter||Qn.adapter)(y).then(function(de){return or(y),de.data=At.call(y,y.transformResponse,de),de.headers=Je.from(de.headers),de},function(de){return li(de)||(or(y),de&&de.response&&(de.response.data=At.call(y,y.transformResponse,de.response),de.response.headers=Je.from(de.response.headers))),Promise.reject(de)})}const ur=y=>y instanceof Je?y.toJSON():y;function $r(y,J){J=J||{};const N={};function de(Ai,hi,Hi){return wt.isPlainObject(Ai)&&wt.isPlainObject(hi)?wt.merge.call({caseless:Hi},Ai,hi):wt.isPlainObject(hi)?wt.merge({},hi):wt.isArray(hi)?hi.slice():hi}function $e(Ai,hi,Hi){return wt.isUndefined(hi)?wt.isUndefined(Ai)?void 0:de(void 0,Ai,Hi):de(Ai,hi,Hi)}function Ve(Ai,hi){if(!wt.isUndefined(hi))return de(void 0,hi)}function pt(Ai,hi){return wt.isUndefined(hi)?wt.isUndefined(Ai)?void 0:de(void 0,Ai):de(void 0,hi)}function qt(Ai,hi,Hi){return Hi in J?de(Ai,hi):Hi in y?de(void 0,Ai):void 0}const ki={url:Ve,method:Ve,data:Ve,baseURL:pt,transformRequest:pt,transformResponse:pt,paramsSerializer:pt,timeout:pt,timeoutMessage:pt,withCredentials:pt,adapter:pt,responseType:pt,xsrfCookieName:pt,xsrfHeaderName:pt,onUploadProgress:pt,onDownloadProgress:pt,decompress:pt,maxContentLength:pt,maxBodyLength:pt,beforeRedirect:pt,transport:pt,httpAgent:pt,httpsAgent:pt,cancelToken:pt,socketPath:pt,responseEncoding:pt,validateStatus:qt,headers:(Ai,hi)=>$e(ur(Ai),ur(hi),!0)};return wt.forEach(Object.keys(Object.assign({},y,J)),function(hi){const Hi=ki[hi]||$e,gn=Hi(y[hi],J[hi],hi);wt.isUndefined(gn)&&Hi!==qt||(N[hi]=gn)}),N}const Kr="1.6.1",Pr={};["object","boolean","number","function","string","symbol"].forEach((y,J)=>{Pr[y]=function(de){return typeof de===y||"a"+(J<1?"n ":" ")+y}});const Oo={};Pr.transitional=function(J,N,de){function $e(Ve,pt){return"[Axios v"+Kr+"] Transitional option '"+Ve+"'"+pt+(de?". "+de:"")}return(Ve,pt,qt)=>{if(!1===J)throw new we($e(pt," has been removed"+(N?" in "+N:"")),we.ERR_DEPRECATED);return N&&!Oo[pt]&&(Oo[pt]=!0,console.warn($e(pt," has been deprecated since v"+N+" and will be removed in the near future"))),!J||J(Ve,pt,qt)}};const Mo={assertOptions:function an(y,J,N){if("object"!=typeof y)throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const de=Object.keys(y);let $e=de.length;for(;$e-- >0;){const Ve=de[$e],pt=J[Ve];if(pt){const qt=y[Ve],ki=void 0===qt||pt(qt,Ve,y);if(!0!==ki)throw new we("option "+Ve+" must be "+ki,we.ERR_BAD_OPTION_VALUE)}else if(!0!==N)throw new we("Unknown option "+Ve,we.ERR_BAD_OPTION)}},validators:Pr},er=Mo.validators;class hr{constructor(J){this.defaults=J,this.interceptors={request:new Mn,response:new Mn}}request(J,N){"string"==typeof J?(N=N||{}).url=J:N=J||{},N=$r(this.defaults,N);const{transitional:de,paramsSerializer:$e,headers:Ve}=N;void 0!==de&&Mo.assertOptions(de,{silentJSONParsing:er.transitional(er.boolean),forcedJSONParsing:er.transitional(er.boolean),clarifyTimeoutError:er.transitional(er.boolean)},!1),null!=$e&&(wt.isFunction($e)?N.paramsSerializer={serialize:$e}:Mo.assertOptions($e,{encode:er.function,serialize:er.function},!0)),N.method=(N.method||this.defaults.method||"get").toLowerCase();let pt=Ve&&wt.merge(Ve.common,Ve[N.method]);Ve&&wt.forEach(["delete","get","head","post","put","patch","common"],Pi=>{delete Ve[Pi]}),N.headers=Je.concat(pt,Ve);const qt=[];let ki=!0;this.interceptors.request.forEach(function(Qi){"function"==typeof Qi.runWhen&&!1===Qi.runWhen(N)||(ki=ki&&Qi.synchronous,qt.unshift(Qi.fulfilled,Qi.rejected))});const Ai=[];this.interceptors.response.forEach(function(Qi){Ai.push(Qi.fulfilled,Qi.rejected)});let hi,gn,Hi=0;if(!ki){const Pi=[Nr.bind(this),void 0];for(Pi.unshift.apply(Pi,qt),Pi.push.apply(Pi,Ai),gn=Pi.length,hi=Promise.resolve(N);Hi<gn;)hi=hi.then(Pi[Hi++],Pi[Hi++]);return hi}gn=qt.length;let vr=N;for(Hi=0;Hi<gn;){const Pi=qt[Hi++],Qi=qt[Hi++];try{vr=Pi(vr)}catch(sr){Qi.call(this,sr);break}}try{hi=Nr.call(this,vr)}catch(Pi){return Promise.reject(Pi)}for(Hi=0,gn=Ai.length;Hi<gn;)hi=hi.then(Ai[Hi++],Ai[Hi++]);return hi}getUri(J){return ar(Fi((J=$r(this.defaults,J)).baseURL,J.url),J.params,J.paramsSerializer)}}wt.forEach(["delete","get","head","options"],function(J){hr.prototype[J]=function(N,de){return this.request($r(de||{},{method:J,url:N,data:(de||{}).data}))}}),wt.forEach(["post","put","patch"],function(J){function N(de){return function(Ve,pt,qt){return this.request($r(qt||{},{method:J,headers:de?{"Content-Type":"multipart/form-data"}:{},url:Ve,data:pt}))}}hr.prototype[J]=N(),hr.prototype[J+"Form"]=N(!0)});const Gr=hr;class go{constructor(J){if("function"!=typeof J)throw new TypeError("executor must be a function.");let N;this.promise=new Promise(function(Ve){N=Ve});const de=this;this.promise.then($e=>{if(!de._listeners)return;let Ve=de._listeners.length;for(;Ve-- >0;)de._listeners[Ve]($e);de._listeners=null}),this.promise.then=$e=>{let Ve;const pt=new Promise(qt=>{de.subscribe(qt),Ve=qt}).then($e);return pt.cancel=function(){de.unsubscribe(Ve)},pt},J(function(Ve,pt,qt){de.reason||(de.reason=new dn(Ve,pt,qt),N(de.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(J){this.reason?J(this.reason):this._listeners?this._listeners.push(J):this._listeners=[J]}unsubscribe(J){if(!this._listeners)return;const N=this._listeners.indexOf(J);-1!==N&&this._listeners.splice(N,1)}static source(){let J;return{token:new go(function($e){J=$e}),cancel:J}}}const Eo=go,wo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wo).forEach(([y,J])=>{wo[J]=y});const No=wo,Un=function Zr(y){const J=new Gr(y),N=ct(Gr.prototype.request,J);return wt.extend(N,Gr.prototype,J,{allOwnKeys:!0}),wt.extend(N,J,null,{allOwnKeys:!0}),N.create=function($e){return Zr($r(y,$e))},N}(Qn);Un.Axios=Gr,Un.CanceledError=dn,Un.CancelToken=Eo,Un.isCancel=li,Un.VERSION=Kr,Un.toFormData=Ki,Un.AxiosError=we,Un.Cancel=Un.CanceledError,Un.all=function(J){return Promise.all(J)},Un.spread=function lo(y){return function(N){return y.apply(null,N)}},Un.isAxiosError=function xr(y){return wt.isObject(y)&&!0===y.isAxiosError},Un.mergeConfig=$r,Un.AxiosHeaders=Je,Un.formToJSON=y=>qn(wt.isHTMLForm(y)?new FormData(y):y),Un.getAdapter=Cr.getAdapter,Un.HttpStatusCode=No,Un.default=Un;const gr=Un;let co=(()=>{class y{initMap(){this.map=qe.map("map",{center:this.centroid,zoom:12}),qe.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:20,minZoom:8,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(this.map),qe.marker(this.centroid).addTo(this.map)}constructor(N,de,$e,Ve){this.commonService=N,this.titleService=de,this.activeRoute=$e,this.location=Ve,this.locationName="",this.titleService.changeTitle("HISTORY"),this.commonService.setNavigatedPath("/location/location_map")}ngOnInit(){this.activeRoute.paramMap.subscribe(N=>{this.userLocationId=N.get("userLocationId");const de=N.get("latitude"),$e=N.get("longitude");this.addedUserName=N.get("addedUserName"),this.locationDate=N.get("locationDate"),this.locationTime=N.get("locationTime"),this.latitude=parseFloat(de),this.longitude=parseFloat($e),this.centroid=[this.latitude,this.longitude],this.initMap(),this.getLocationName(this.centroid[0],this.centroid[1])})}goBack(){this.location.back()}getLocationName(N,de){gr.get(`https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=${N}&lon=${de}`).then(Ve=>{if(Ve.data&&Ve.data.address){const{address:pt}=Ve.data,qt=[];pt.road&&qt.push(pt.road),pt.suburb&&qt.push(pt.suburb),pt.city&&qt.push(pt.city),pt.town&&qt.push(pt.town),pt.village&&qt.push(pt.village),pt.county&&qt.push(pt.county),pt.state&&qt.push(pt.state),pt.country&&qt.push(pt.country),this.locationName=qt.join(", ")}}).catch(Ve=>{console.error("Error fetching location address:",Ve)})}static#e=this.\u0275fac=function(de){return new(de||y)(u.\u0275\u0275directiveInject(b.v),u.\u0275\u0275directiveInject(w.y),u.\u0275\u0275directiveInject(v.gz),u.\u0275\u0275directiveInject(l.Location))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:y,selectors:[["app-location-map"]],decls:20,vars:4,consts:[[1,"container"],[1,"card"],[1,"header"],[1,"btn-pack"],[1,"back-button","main-content-font",3,"click"],[1,"material-icons","back-icon",2,"font-family","'Material Icons'"],[1,"title"],[1,"datetime"],[1,"date"],[1,"time"],["id","map",1,"map"],[1,"location"],[1,"material-icons","loc-icon","main-content-font",2,"font-family","'Material Icons'"],[1,"location-address"]],template:function(de,$e){1&de&&(u.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4),u.\u0275\u0275listener("click",function(){return $e.goBack()}),u.\u0275\u0275elementStart(5,"span",5),u.\u0275\u0275text(6,"forward"),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(7,"div",6),u.\u0275\u0275text(8),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(9,"div",7)(10,"div",8),u.\u0275\u0275text(11),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(12,"div",9),u.\u0275\u0275text(13),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275element(14,"div",10),u.\u0275\u0275elementStart(15,"div",11)(16,"span",12),u.\u0275\u0275text(17,"location_on"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(18,"span",13),u.\u0275\u0275text(19),u.\u0275\u0275elementEnd()()()()),2&de&&(u.\u0275\u0275advance(8),u.\u0275\u0275textInterpolate($e.addedUserName),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate($e.locationDate),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate($e.locationTime),u.\u0275\u0275advance(6),u.\u0275\u0275textInterpolate($e.locationName))},styles:[".container[_ngcontent-%COMP%]{background-color:#2f3237;height:480px;border-radius:10px;padding:10px;color:#fff;width:100%;margin-bottom:60px!important}.card[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-top:5px}.title[_ngcontent-%COMP%]{font-weight:500;margin-left:10px}.date[_ngcontent-%COMP%]{text-align:right;font-size:medium;margin-right:10px}.time[_ngcontent-%COMP%]{padding-left:5px;font-size:smaller;padding-top:2px}.map[_ngcontent-%COMP%]{flex-grow:1;background-color:#fff;border-radius:10px;margin-top:16px;margin-left:9px;margin-right:9px}.location[_ngcontent-%COMP%]{margin:15px 0 10px 10px;text-align:left;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start}.back-button[_ngcontent-%COMP%]{background-color:transparent!important;border:none;cursor:pointer;line-height:0;margin-left:20px;opacity:1}.back-button[_ngcontent-%COMP%]:hover{opacity:.7}.datetime[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-right:25px}.location-icon[_ngcontent-%COMP%]{color:#e16718;margin-right:5px}.map-iframe[_ngcontent-%COMP%]{border-radius:10px}.location-address[_ngcontent-%COMP%]{display:inline-flex;width:60%}.loc-icon[_ngcontent-%COMP%]{margin:0 10px 0 20px}.back-icon[_ngcontent-%COMP%]{transform:scale3d(-1.2,1.2,1.2)!important;display:inline-block!important}.btn-pack[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center}@media screen and (max-width: 480px){.back-button[_ngcontent-%COMP%]{margin-left:5px}.loc-icon[_ngcontent-%COMP%]{margin:0 10px 0 8px}.datetime[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;margin-right:10px}.date[_ngcontent-%COMP%]{text-align:right;font-size:14px;margin-right:0}.time[_ngcontent-%COMP%]{padding-left:0}}"]})}return y})(),Ur=(()=>{class y{constructor(N,de,$e,Ve){this.router=N,this.userService=de,this.commonService=$e,this.titleService=Ve,this.commonService.setNavigatedPath("/location/information"),this.router.navigate([""],{queryParams:{isLbsCats:!0}})}ngOnInit(){}static#e=this.\u0275fac=function(de){return new(de||y)(u.\u0275\u0275directiveInject(v.F0),u.\u0275\u0275directiveInject(x),u.\u0275\u0275directiveInject(b.v),u.\u0275\u0275directiveInject(w.y))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:y,selectors:[["app-information"]],decls:1,vars:0,consts:[[1,"container"]],template:function(de,$e){1&de&&u.\u0275\u0275element(0,"div",0)},styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:400px;width:100%}"]})}return y})();var si,nr=a(3472),_r=a(9066),Qr=a(3634),Xn=a(9792),Uo=a(2037),_o=a(9704),jn=a(9282),Ye=a(2684),kt=a(3048),D=a(9209),ae=a(7820),_e=a(5550);function it(y,J){if(1&y&&u.\u0275\u0275element(0,"img",21),2&y){const N=u.\u0275\u0275nextContext();u.\u0275\u0275propertyInterpolate("src",N.bannerImgUrl,u.\u0275\u0275sanitizeUrl)}}function Dt(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"p")(1,"span",22),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()()),2&y){const N=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(N.usernameExistsError)}}function oi(y,J){1&y&&(u.\u0275\u0275elementStart(0,"p")(1,"span",22),u.\u0275\u0275text(2,"Please enter a username"),u.\u0275\u0275elementEnd()())}function xi(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"p")(1,"span",22),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()()),2&y){const N=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(N.errorMessage)}}function Ii(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"p")(1,"span",22),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()()),2&y){const N=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(N.successMessage)}}let fn=(()=>{class y{static#e=this.PUSH_TOKEN_LOCAL_STORAGE_KEY="pushtoken";constructor(N,de,$e,Ve,pt,qt,ki,Ai,hi,Hi,gn,vr,Pi,Qi,sr,cr,_n,Zn,Io,to){this.dataService=N,this.categoryService=de,this.device=$e,this.title=Ve,this.push=pt,this.subscription=qt,this.appDataService=ki,this.messageService=Ai,this.ngZone=hi,this.preventScreenshot=Hi,this.imageCacheService=gn,this.swPush=vr,this.subscriptionService=Pi,this.router=Qi,this.commonService=sr,this.userService=cr,this.el=_n,this.renderer=Zn,this.articleService=Io,this.toastr=to,this.appId=d.Jf,this.userId=d.xS,this.templateName=d.Bv,this.results=[],this.localStorageUUIDString="UUID",this.isSubscribing=!1,this.renewalIntervals=[],this.loadImageCount=0,this.isFromCMSAppView=!1,this.isFromPushMessage=!1,this.isCordovaApp=!1,this.hideImageLoadingSpinner=!1,this.isInstallAvailable=!1,this.ishidePopup=!1,this.bannerImgUrl=null,this.subMessageNavigateShop=null,this.isCheckSubOnCategoryClickedLocked=!1,this.isInMessageConversation=!1,this.addedUserName="",this.usernameExistsError="",this.addedTrackUserName="",this.successMessage="",this.showTrackUsernameError=!1,this.errorMessage="",this.onDeviceReady(),this.isCordovaApp=this.dataService.isCordovaApp(),this.title.changeTitle(d.u2),si=this,this.title.setLocation("home"),this.messageService.sendMessage({loadImageCount:-1}),this.dataService.initialImageCount=0,this.dataService.hideImageLoadingSpinner(),window.addEventListener("beforeinstallprompt",Mr=>{this.promptEvent=Mr,this.isInstallAvailable=!0}),window.addEventListener("appinstalled",()=>{this.isInstallAvailable=!1}),this.bannerImgUrl=this.commonService.getlocationBannerUrl(),this.bannerImgUrl||this.commonService.getLocationBanner().subscribe(Mr=>{this.bannerImgUrl=Mr&&null!=Mr&&Mr.length?Mr:"assets/images/banner.png",this.commonService.setlocationBannerUrl(this.bannerImgUrl)},Mr=>{this.bannerImgUrl="assets/images/banner.png",this.commonService.setlocationBannerUrl(this.bannerImgUrl),console.error("banner image was not found")}),this.commonService.setMsisdn(this.commonService.getMsisdnLocally()),this.commonService.setLoggedInUserId(this.commonService.getLoggedUserIdLocally())}onLocalStorageChange(N){if("loggedLocationUser"===N.key){let de=localStorage.getItem("loggedLocationUser");de&&"null"!=de&&(this.userService.logedInUserId=JSON.parse(de),this.userService.getAllAddedUsers().subscribe($e=>{this.commonService.setAddedUsers($e?.addedUsers)}))}else"isAlreadySubscribedForLBS"===N.key&&this.commonService.checkLocalStorage()}onScroll(){if(this.isInstallAvailable&&!this.ishidePopup){$(".location-pwa-install-modal").modal("show");const N=this.el.nativeElement.querySelector(".container-div");this.renderer.setStyle(N,"height","100vh")}}ngOnInit(){this.appDataService.getPublishDetails().subscribe(N=>{if(this.appPublishDetails=N,N){this.isFreeApp=N.isFreeApp;const de=N.operators.filter($e=>"SUSPENDED"===$e.status||"TERMINATED"===$e.status||"DELETED"===$e.status);N&&"FREE"!==N.operators[0].operator&&de.length===N.operators.length&&(this.dataService.isFreeCategoryViewAvailable=!1,this.dataService.displayMessage=N.operators.filter(Ve=>"SUSPENDED"===Ve.status).length===N.operators.length?"The service is temporarily unavailable on the network":"Service no longer available."),this.checkSubAndReg()}if(!this.dataService.isIonicApp()){const de=!!this.appPublishDetails.disableScreenshots&&this.appPublishDetails.disableScreenshots;window.hasOwnProperty("cordova")&&this.enableOrDisableScreenshots(de)}}),this.dataService.newNotificationCount.subscribe(N=>{this.newArticleNotificationCount=N}),this.dataService.isInMessageConversation.subscribe(N=>{this.isInMessageConversation=N}),this.appDataService.getRenewalIntervals().subscribe(N=>{this.dataService.renewalIntervals=N,this.renewalIntervals=this.dataService.renewalIntervals}),this.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView")}checkAddedNameValid(N){return!N||N.length>30}addUserName(){var N=this;return(0,Ze.Z)(function*(){console.log("Added Name: ",N.addedUserName),N.usernameExistsError="";let de=N.commonService.getMsisdnLocally();if(de){const $e={appId:N.appId,userName:N.addedUserName.trim(),msisdn:N.getFormattedMsisdn(de.trim())};let Ve=yield N.commonService.checkRegistrationStatus();if(console.log("isRegisteredUser 2",Ve),Ve){const pt={userName:N.addedUserName.trim()};N.userService.updateProfileData(pt).subscribe(qt=>{$("#addUserNameModel").modal("hide"),N.commonService.openAddingTrackUserModel()},qt=>{console.error("Failed to update profile",qt)})}else N.userService.registerUser($e).subscribe(pt=>{N.commonService.setLoggedInUserId(pt?.user?.id?pt.user.id:null),$("#addUserNameModel").modal("hide"),N.commonService.openAddingTrackUserModel()},pt=>{console.error("Error: ",pt),N.usernameExistsError=pt.error})}else N.toastr.error("Can not be found the mobile number!","",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"})})()}checkUsername(){if(this.addedUserName.length<=0)return;const N={userName:this.addedUserName.trim()};this.userService.checkUsernameExists(N).subscribe(de=>{this.usernameExistsError=de?"Username already exists":null},de=>{console.error("Something went wrong:",de),this.usernameExistsError="Error checking username"})}addTrackUserName(){var N=this;return(0,Ze.Z)(function*(){N.addedTrackUserName?(N.showTrackUsernameError=!1,N.errorMessage="",N.successMessage="",N.userService.addUser(N.addedTrackUserName).subscribe(de=>{!de?.isError&&de?.data?(N.addedTrackUserName="",N.commonService.setAddedUsers(de.data),$("#addTrackUserNameModel").modal("hide"),N.toastr.success(de.msg,"Success!",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"})):de?.isError&&de.msg&&""!==N.addedTrackUserName&&(N.errorMessage=de.msg)},de=>{console.error("Error while adding user:",de),de?.error?.msg?N.errorMessage=de.error.msg:($("#addTrackUserNameModel").modal("hide"),N.toastr.error(de.error,"Error!",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"}))})):N.showTrackUsernameError=!0})()}navigate(N){this.commonService.navigate(N)}getFormattedMsisdn(N){return console.log("msisdn : ",N),N.length>=9?"94"+N.substring(N.length-9):"94"+N}checkSubAndReg(){var N=this;return(0,Ze.Z)(function*(){!N.commonService.getLoggedUserIdLocally()&&!N.isFromCMSAppView&&(N.commonService.navigate("initCheck"),N.commonService.listenOnLocalStorage(),N.userService.listenOnLocalStorage())})()}enableOrDisableScreenshots(N){N?this.preventScreenshot.enablePreventScreenshot().then(de=>console.log(de)).catch(de=>console.error(de)):this.preventScreenshot.disablePreventScreenshot().then(de=>console.log(de)).catch(de=>console.error(de))}ngAfterViewInit(){if(this.getDeviceUUID(),this.swPush.notificationClicks.subscribe(({notification:de})=>{console.log("locationTemplate: this.swPush.notificationClicks: notification: ",de),this.dataService.pushMessage=de.body,this.dataService.inAppNotificationInfo=de.data.popUpPushInfo,this.isFromPushMessage=!0,window.focus(),$(()=>{$("#appStatusModel").modal("hide"),$("#appPushNotificationModel").modal("show"),$("#appPushNotificationModel").off("hidden.bs.modal"),$("#appPushNotificationModel").on("hidden.bs.modal",()=>{de.data.category&&de.data.category.categoryId&&de.data.category.articleId?si.loadArticleOnReceivePushMessage(de.data.category,de.data.category.articleId):de.data.category&&de.data.category.categoryId&&de.data.category.name&&si.onCategoryClicked({data:{id:de.data.category.categoryId,isFree:de.data.category.isFree,name:de.data.category.name,categoryType:de.data.category.categoryType,categoryImageUrl:de.data.categoryImageUrl?de?.data.categoryImageUrl:de?.data.category.categoryImageUrl?de?.data.category.categoryImageUrl:""}})})})}),this.isCordovaApp){const N=this.el.nativeElement.querySelector(".container-div");this.renderer.setStyle(N,"height","100vh")}}getDeviceUUID(){var N=localStorage.getItem(this.localStorageUUIDString);this.dataService.isFromBrowser()?(N||(N=this.dataService.getRandomId(),localStorage.setItem(si.localStorageUUIDString,N)),si.uuid=N):this.dataService.isIonicApp()?N?this.deviceUUIDCallback(N):this.device.getUUID(si.deviceUUIDCallback):document.addEventListener("deviceready",()=>{this.deviceUUIDCallback(N||device.uuid)},!1)}deviceUUIDCallback(N){!localStorage.getItem(si.localStorageUUIDString)&&N&&localStorage.setItem(si.localStorageUUIDString,N),si.subscription.getSubscriptionStatus({appId:si.appId,uuId:N}).subscribe(Ve=>console.log("lbsTempCmp.componenet.getSubscriptionStatus=> ",Ve)),si.uuid=N,si.generatePushToken()}generatePushToken(){console.log("Call generatePushToken in homepage"),si.push.getToken(si.pushSuccessCallback,si.pushErrorCallback)}pushSuccessCallback(N){console.log("pushSuccessCallback Token: "+N),N&&null!==N?localStorage[y.PUSH_TOKEN_LOCAL_STORAGE_KEY]=N:localStorage.removeItem(y.PUSH_TOKEN_LOCAL_STORAGE_KEY),si.push.onTokenRefresh(si.pushTokenRefreshSuccessCallback,si.pushTokenRefreshErrorCallback),si.postDeviceToken("deviceId="+N+"&uuid="+si.uuid)}pushErrorCallback(N){console.log("pushErrorCallback: "+N)}pushTokenRefreshSuccessCallback(N){console.log("pushTokenRefreshSuccessCallback: "+N),localStorage[y.PUSH_TOKEN_LOCAL_STORAGE_KEY]!==N&&si.postDeviceToken("deviceId="+N+"&uuid="+si.uuid+"&action=NEW_TOKEN")}pushTokenRefreshErrorCallback(N){console.log("pushTokenRefreshErrorCallback: "+N)}postDeviceToken(N){try{N+="&appversion="+si.dataService.getAPKVersion(window.navigator.userAgent),si.categoryService.sendDeviceToken(N).subscribe(de=>{console.log("Device token persisted successfully"),si.callOnNotificationOpen()},de=>{console.log("Error while sending the device token to be persist.Error: "+de),si.callOnNotificationOpen()})}catch(de){console.log("Exception in pushSuccessCallback: "+de)}}callOnNotificationOpen(){this.dataService.isIonicApp()?si.push.onNotificationOpen(si.onNotificationOpenSuccessCallback,si.onNotificationOpenErrorCallback):window.FirebasePlugin.onMessageReceived(function(N){si.ngZone.run(()=>{si.onNotificationOpenSuccessCallback(N)})},function(N){si.onNotificationOpenErrorCallback(N)})}onNotificationOpenSuccessCallback(N){N=this.configRecievedPushMessage(N),this.dataService.pushMessage=N.body,this.dataService.inAppNotificationInfo=N.data.popUpPushInfo,this.isFromPushMessage=!0,$(()=>{$("#appStatusModel").modal("hide"),$("#appPushNotificationModel").modal("show"),$("#appPushNotificationModel").off("hidden.bs.modal"),$("#appPushNotificationModel").on("hidden.bs.modal",function(){if("ARTICLE_MESSAGE"===N.type)si.onArticleMessageReceivedHandler(N);else if(!N.isInAppMsg&&N.tap&&N.categoryId&&N.articleId){const de=N.data.category;de.category=N.data.category,si.loadArticleOnReceivePushMessage(de,N?.articleId)}else if(!N.isInAppMsg&&N.tap&&N.categoryId&&!N.articleId)si.onCategoryClicked({data:{id:N?.categoryId,isFree:!!N?.isFreeCat,name:N?.categoryName,categoryType:N?.categoryType,categoryImageUrl:N?.categoryImageUrl?N?.categoryImageUrl:""}});else if(!N.tap&&N.body||N.isInAppMsg)if(N.categoryId&&N.articleId){const de=N.data.category;de.category=N.data.category,si.loadArticleOnReceivePushMessage(de,N?.articleId)}else N.categoryId&&si.onCategoryClicked({data:{id:N?.categoryId,isFree:!!N?.isFreeCat,name:N?.categoryName,categoryType:N?.categoryType,categoryImageUrl:N?.categoryImageUrl?N?.categoryImageUrl:""}})})})}configRecievedPushMessage(N){return N&&((N=this.turnIntoProperJsObject(N)).body?this.dataService.pushMessage=N.body:N.text&&(this.dataService.pushMessage=N.text,N.body=N.text?N.text:""),N.category&&(N.data={...N.data,category:JSON.parse(N.category)},N.data.category.categoryId=N.categoryId,N.data.category.articleId=N.articleId,delete N.category),N.popUpPushInfo&&(N.data={...N.data,popUpPushInfo:JSON.parse(N.popUpPushInfo)},this.dataService.inAppNotificationInfo="{}"!=N.popUpPushInfo?N.data.popUpPushInfo:null,delete N.popUpPushInfo)),console.log("LocationTemplateComponent: onNotificationOpenSuccessCallback: notification: ",N),N}turnIntoProperJsObject(N){for(let de in N)N.hasOwnProperty(de)&&("null"===N[de]?N[de]=null:"false"===N[de]?N[de]=!1:"true"===N[de]&&(N[de]=!0));return N}onNotificationOpenErrorCallback(N){console.log("onNotificationOpenErrorCallback=>"+N)}imageLoaded(N){this.hideImageLoadingSpinner?this.messageService.sendMessage({loadImageCount:this.dataService.initialImageCount}):(this.loadImageCount+=1,this.messageService.sendMessage({loadImageCount:this.loadImageCount}))}onDeviceReady(){document.addEventListener("deviceready",()=>{this.dataService.isImageCacheInitialized.subscribe(N=>{N||this.initImageCache()})},!1)}initImageCache(){this.imageCacheService.initImageCache().then(()=>{this.dataService.changeIsImageCacheInitialized(!0)}).catch(()=>{console.error("ERROR: Init Cache."),this.dataService.changeIsImageCacheInitialized(!1)})}installPWAApp(){this.promptEvent.prompt(),this.promptEvent.userChoice.then(N=>{"accepted"===N.outcome?(console.log("User accepted the A2HS prompt"),this.isInstallAvailable=!1,this.hidePopup()):console.log("User dismissed the A2HS prompt"),this.promptEvent=null})}hidePopup(){this.ishidePopup=!0,$(".location-pwa-install-modal").modal("hide")}loadArticleOnReceivePushMessage(N,de){this.isFreeApp||N?.category?.isFree||N?.isFree?this.loadArticle(N.id,de):this.navigateShop("shop",N.id,N.name,N.imageUrl,N.isFree,de)}loadArticle(N,de){this.router.navigate(["product","fromPushMessage",N,de])}navigateShop(N,de,$e,Ve,pt,qt){this.dataService.isSuspendedApp?$("#appStatusModel").modal("show"):(null!=this.subMessageNavigateShop&&this.subMessageNavigateShop.unsubscribe(),this.isSubscribing=!1,this.dataService.pushMessageAttachedArticleId=null,this.manageArticleUser(),this.categoryService.getValidCategoryByArticleId(qt).subscribe(ki=>{this.checkSubOnNavigateShop(N,ki?.id,ki?.name,ki?.imageUrl,qt,ki?.categoryType)},ki=>{console.error(ki)}))}checkSubOnNavigateShop(N,de,$e,Ve,pt,qt){this.subMessageNavigateShop=this.subscriptionService.getSubscriptionMessage().subscribe(Ai=>{if(Ai.message.status===nr.Yg.SUB_RESPONSE&&"ERROR"!=Ai.message.data.status){this.subMessageNavigateShop.unsubscribe();const Hi=Ai.message.data.data;!Hi.isError&&("SUBSCRIBED"==Hi.subscriptionStatus||Hi.isValid)&&this.checkSubOnNavigateShopContinue(Ai.message.data.data,N,de,$e,Ve,pt)}});const ki=new nr.Mw;ki.status=nr.Yg.SUB_REQUEST,ki.data.data={categoryId:de,categoryName:$e,categoryType:qt},this.subscriptionService.sendSubscriptionMessage({message:ki})}checkSubOnNavigateShopContinue(N,de,$e,Ve,pt,qt){this.subscriptionStatus=N.subscriptionStatus,this.dataService.subscriptionStatus=N.subscriptionStatus,this.subscriptionStatus===this.dataService.STATUS_SUBSCRIBED||N.isValid?(this.manageArticleUser(),this.dataService.catId=$e,this.isFromPushMessage?(this.isFromPushMessage=!1,this.loadArticle($e,qt)):this.router.navigate(["/"+de,$e,Ve,pt])):(this.isFromPushMessage=!1,this.dataService.subUserArticleData.id=$e,this.dataService.subUserArticleData.name=Ve,this.dataService.subUserArticleData.image=pt,this.dataService.pushMessageAttachedArticleId=qt,this.isSubscribing=!1)}onCategoryClicked(N){if(this.dataService.isSuspendedApp)$("#appStatusModel").modal("show");else{this.manageArticleUser(),this.isSubscribing=!1;const de=N.data,$e={isLbsCats:!0,categoryID:de.id,categoryId:de.id,categoryName:de.name,articleId:null,categoryType:de.categoryType,categoryImageUrl:de.categoryImageUrl,isFreeCat:de.isFree?"true":"false",isPopupRequest:"false"};this.isFromCMSAppView||this.isFreeApp||"FREE"==de.categoryType&&this.dataService.isFreeCategoryViewAvailable?this.router.navigate([""],{queryParams:$e}):this.checkSubOnCategoryClicked({categoryID:de.id,categoryName:de.name,categoryType:de.categoryType},$e)}}checkSubOnCategoryClicked(N,de){if(this.isCheckSubOnCategoryClickedLocked)return;this.isCheckSubOnCategoryClickedLocked=!0;const $e=setTimeout(()=>this.isCheckSubOnCategoryClickedLocked=!1,2e3),Ve=this.subscriptionService.getSubscriptionMessage().subscribe(qt=>{let ki="ERROR"==qt.message.data.status&&!0;if(qt.message.status!==nr.Yg.SUB_RESPONSE||ki)qt.message.status===nr.Yg.SUB_RESPONSE&&ki&&qt.message.data.data.subscriptionStatus==nr.y5.SUBSCRIBED&&(this.subscriptionStatus=qt.message.data.data.subscriptionStatus,this.dataService.subscriptionStatus=qt.message.data.data.subscriptionStatus,this.messageService.sendMessage({subscription:qt.message.data.data}),this.isCheckSubOnCategoryClickedLocked=!1,clearTimeout($e));else{Ve.unsubscribe();const Ai=qt.message.data.data;!Ai.isError&&("SUBSCRIBED"==Ai.subscriptionStatus||Ai.isValid)&&(this.checkSubOnCategoryClickedContinue(qt.message.data.data,de),this.isCheckSubOnCategoryClickedLocked=!1,clearTimeout($e))}}),pt=new nr.Mw;pt.status=nr.Yg.SUB_REQUEST,pt.data.data={categoryId:N.categoryID,categoryName:N.categoryName,categoryType:N.categoryType},this.subscriptionService.sendSubscriptionMessage({message:pt})}checkSubOnCategoryClickedContinue(N,de){N.isValid||(this.subscriptionStatus=N.subscriptionStatus,this.dataService.subscriptionStatus=N.subscriptionStatus,this.messageService.sendMessage({subscription:N})),this.isSubscribing=!1,this.manageArticleUser(),this.router.navigate([""],{queryParams:de})}manageArticleUser(){let N=localStorage.getItem(this.appId+"ArticleUser");const de=JSON.parse(N),$e=localStorage.getItem(this.localStorageUUIDString),Ve=localStorage.getItem(this.appId+"msisdn");$e&&this.articleService.getArticleUser({params:{id:de?de.id:null,appId:this.appId,deviceUUID:$e,MSISDN:Ve||null}}).subscribe(qt=>{"SUCCESS"===qt.status&&localStorage.setItem(this.appId+"ArticleUser",JSON.stringify(qt.data))},qt=>{console.error(qt)})}onArticleMessageReceivedHandler(N){this.isInMessageConversation||(this.dataService.changeShowArticleNotification(!0),this.dataService.changeArticleNotificationsCount(this.newArticleNotificationCount+1),this.dataService.changeLatestArticleNotification(N))}static#t=this.\u0275fac=function(de){return new(de||y)(u.\u0275\u0275directiveInject(_r.V),u.\u0275\u0275directiveInject(Qr.G),u.\u0275\u0275directiveInject(Xn.G),u.\u0275\u0275directiveInject(w.y),u.\u0275\u0275directiveInject(Uo.G),u.\u0275\u0275directiveInject(_o.E),u.\u0275\u0275directiveInject(jn.U),u.\u0275\u0275directiveInject(Ye.e),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(kt.W),u.\u0275\u0275directiveInject(D.y),u.\u0275\u0275directiveInject(ae.Mk),u.\u0275\u0275directiveInject(nr.FF),u.\u0275\u0275directiveInject(v.F0),u.\u0275\u0275directiveInject(b.v),u.\u0275\u0275directiveInject(x),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.Renderer2),u.\u0275\u0275directiveInject(_e.n),u.\u0275\u0275directiveInject(S._W))};static#i=this.\u0275cmp=u.\u0275\u0275defineComponent({type:y,selectors:[["app-location-template"]],hostBindings:function(de,$e){1&de&&u.\u0275\u0275listener("storage",function(pt){return $e.onLocalStorageChange(pt)},!1,u.\u0275\u0275resolveWindow)("scroll",function(){return $e.onScroll()},!1,u.\u0275\u0275resolveWindow)},decls:65,vars:9,consts:[[1,"container-div"],[1,"align-logo"],["alt","Logo","class","image-size",3,"src",4,"ngIf"],["tabindex","-1","role","dialog","aria-labelledby","pwa install","aria-hidden","true",1,"modal","fade","location-pwa-install-modal"],[1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["id","exampleModalLongTitle",1,"modal-title"],[1,"modal-body","text-center"],[1,"btn","install-btn",3,"click"],["data-backdrop","static","data-keyboard","false","id","addUserNameModel","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],["role","document",1,"modal-dialog",2,"max-width","360px"],[1,"gray-back-txt"],[1,"input-cell",2,"margin-top","8px"],["type","text","maxlength","30",2,"width","100%","margin-left","0",3,"ngModel","ngModelChange","input"],[4,"ngIf"],["type","button",1,"btn","sub-button-sub","btn-block",3,"disabled","click"],["type","button","data-dismiss","modal",1,"btn","sub-button-cancel","btn-block","cancel-btn",3,"click"],["data-backdrop","static","data-keyboard","false","id","addTrackUserNameModel","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],["type","text","maxlength","30",2,"width","100%","margin-left","0",3,"ngModel","ngModelChange"],["alt","Logo",1,"image-size",3,"src"],[2,"color","red"]],template:function(de,$e){1&de&&(u.\u0275\u0275elementStart(0,"div",0)(1,"div",1),u.\u0275\u0275template(2,it,1,1,"img",2),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(3,"router-outlet"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"button",7),u.\u0275\u0275listener("click",function(){return $e.hidePopup()}),u.\u0275\u0275text(9," \xd7 "),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(10,"h5",8),u.\u0275\u0275text(11,"Click to install the app "),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(12,"div",9)(13,"button",10),u.\u0275\u0275listener("click",function(){return $e.installPWAApp()}),u.\u0275\u0275text(14,"INSTALL"),u.\u0275\u0275elementEnd()()()()(),u.\u0275\u0275elementStart(15,"div",11)(16,"div",12)(17,"div",5)(18,"div",9)(19,"div",13),u.\u0275\u0275text(20," Thanks for subscribing to the service. Let's get started by first creating a username. "),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(21,"div",13),u.\u0275\u0275text(22," \u0dc3\u0dda\u0dc0\u0dcf\u0dc0\u0da7 \u0daf\u0dcf\u0dba\u0d9a \u0dc0\u0dd3\u0db8 \u0d9c\u0dd0\u0db1 \u0dc3\u0dca\u0dad\u0dd4\u0dad\u0dd2\u0dba\u0dd2. \u0d85\u0db4\u0dd2 \u0db8\u0dd4\u0dbd\u0dd2\u0db1\u0dca\u0db8 \u0db4\u0dbb\u0dd2\u0dc1\u0dd3\u0dbd\u0d9a \u0db1\u0dcf\u0db8\u0dba\u0d9a\u0dca \u0db1\u0dd2\u0dbb\u0dca\u0db8\u0dcf\u0dab\u0dba \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0dd9\u0db1\u0dca \u0d86\u0dbb\u0db8\u0dca\u0db7 \u0d9a\u0dbb\u0db8\u0dd4. "),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(23,"div",13),u.\u0275\u0275text(24," \u0b9a\u0bc7\u0bb5\u0bc8\u0b95\u0bcd\u0b95\u0bc1 \u0b95\u0bc1\u0bb4\u0bc1\u0b9a\u0bc7\u0bb0\u0bcd\u0ba8\u0bcd\u0ba4\u0ba4\u0bb1\u0bcd\u0b95\u0bc1 \u0ba8\u0ba9\u0bcd\u0bb1\u0bbf. \u0bae\u0bc1\u0ba4\u0bb2\u0bbf\u0bb2\u0bcd \u0b92\u0bb0\u0bc1 \u0baa\u0baf\u0ba9\u0bb0\u0bcd\u0baa\u0bc6\u0baf\u0bb0\u0bc8 \u0b89\u0bb0\u0bc1\u0bb5\u0bbe\u0b95\u0bcd\u0b95\u0bc1\u0bb5\u0ba4\u0ba9\u0bcd \u0bae\u0bc2\u0bb2\u0bae\u0bcd \u0ba4\u0bca\u0b9f\u0b99\u0bcd\u0b95\u0bc1\u0bb5\u0bcb\u0bae\u0bcd. "),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(25,"p"),u.\u0275\u0275text(26,"Add your username in the text box:"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(27,"p"),u.\u0275\u0275text(28,"\u0db4\u0dd9\u0dc5 \u0d9a\u0ddc\u0da7\u0dd4\u0dc0 \u0dad\u0dd4\u0dc5 \u0d94\u0db6\u0d9c\u0dda \u0db4\u0dbb\u0dd2\u0dc1\u0dd3\u0dbd\u0d9a \u0db1\u0dcf\u0db8\u0dba \u0d91\u0d9a\u0dca \u0d9a\u0dbb\u0db1\u0dca\u0db1"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(29,"p"),u.\u0275\u0275text(30,"\u0b89\u0bb0\u0bc8 \u0baa\u0bc6\u0b9f\u0bcd\u0b9f\u0bbf\u0baf\u0bbf\u0bb2\u0bcd \u0b89\u0b99\u0bcd\u0b95\u0bb3\u0bcd \u0baa\u0baf\u0ba9\u0bb0\u0bcd \u0baa\u0bc6\u0baf\u0bb0\u0bc8\u0b9a\u0bcd \u0b9a\u0bc7\u0bb0\u0bcd\u0b95\u0bcd\u0b95\u0bb5\u0bc1\u0bae\u0bcd:"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(31,"div",14)(32,"input",15),u.\u0275\u0275listener("ngModelChange",function(pt){return $e.addedUserName=pt})("input",function(){return $e.checkUsername()}),u.\u0275\u0275elementEnd()(),u.\u0275\u0275template(33,Dt,3,1,"p",16),u.\u0275\u0275element(34,"br"),u.\u0275\u0275elementStart(35,"button",17),u.\u0275\u0275listener("click",function(){return $e.addUserName()}),u.\u0275\u0275text(36,"Save"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(37,"button",18),u.\u0275\u0275listener("click",function(){return $e.navigate("/location/home")}),u.\u0275\u0275text(38,"Exit"),u.\u0275\u0275elementEnd()()()()(),u.\u0275\u0275elementStart(39,"div",19)(40,"div",12)(41,"div",5)(42,"div",9)(43,"div",13),u.\u0275\u0275text(44," Congrats, you have successfully created a username. The next step is to add another user by entering their username. "),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(45,"div",13),u.\u0275\u0275text(46,' \u0d94\u0db6 \u0dc3\u0dcf\u0dbb\u0dca\u0dae\u0d9a\u0dc0 \u0db4\u0dbb\u0dd2\u0dc1\u0dd3\u0dbd\u0d9a \u0db1\u0dcf\u0db8\u0dba\u0d9a\u0dca \u0dc3\u0dcf\u0daf\u0dcf \u0d87\u0dad. \u0d8a\u0dc5\u0d9f \u0db4\u0dd2\u0dba\u0dc0\u0dbb \u0dc0\u0db1\u0dca\u0db1\u0dda \u0d94\u0dc0\u0dd4\u0db1\u0dca\u0d9c\u0dda \u0db4\u0dbb\u0dd2\u0dc1\u0dd3\u0dbd\u0d9a \u0db1\u0dcf\u0db8\u0dba \u0d87\u0dad\u0dd4\u0dc5\u0dad\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0dd9\u0db1\u0dca "location tracking" \u0dc0\u0dd9\u0db1\u0dad\u0dca \u0db4\u0dbb\u0dd2\u0dc1\u0dd3\u0dbd\u0d9a\u0dba\u0dd9\u0d9a\u0dd4 \u0d91\u0d9a\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0dba\u0dd2. '),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(47,"div",13),u.\u0275\u0275text(48,' \u0bb5\u0bbe\u0bb4\u0bcd\u0ba4\u0bcd\u0ba4\u0bc1\u0b95\u0bcd\u0b95\u0bb3\u0bcd, \u0ba8\u0bc0\u0b99\u0bcd\u0b95\u0bb3\u0bcd \u0bb5\u0bc6\u0bb1\u0bcd\u0bb1\u0bbf\u0b95\u0bb0\u0bae\u0bbe\u0b95 \u0b92\u0bb0\u0bc1 \u0baa\u0baf\u0ba9\u0bb0\u0bcd\u0baa\u0bc6\u0baf\u0bb0\u0bc8 \u0b89\u0bb0\u0bc1\u0bb5\u0bbe\u0b95\u0bcd\u0b95\u0bbf\u0baf\u0bc1\u0bb3\u0bcd\u0bb3\u0bc0\u0bb0\u0bcd\u0b95\u0bb3\u0bcd. \u0b85\u0b9f\u0bc1\u0ba4\u0bcd\u0ba4 \u0baa\u0b9f\u0bbf\u0baf\u0bbe\u0b95 \u0bae\u0bb1\u0bcd\u0bb1\u0bca\u0bb0\u0bc1 \u0baa\u0baf\u0ba9\u0bb0\u0bbf\u0ba9\u0bcd \u0baa\u0bc6\u0baf\u0bb0\u0bc8 \u0b89\u0bb3\u0bcd\u0bb3\u0bbf\u0b9f\u0bc1\u0bb5\u0ba4\u0ba9\u0bcd \u0bae\u0bc2\u0bb2\u0bae\u0bcd "location tarcking" \u0b9a\u0bc7\u0bb0\u0bcd\u0b95\u0bcd\u0b95 \u0bb5\u0bc7\u0ba3\u0bcd\u0b9f\u0bc1\u0bae\u0bcd. '),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(49,"p"),u.\u0275\u0275text(50,"Please note that this should be the username that they have registered with for the service:"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(51,"p"),u.\u0275\u0275text(52,"\u0db4\u0dbb\u0dd2\u0dc1\u0dd3\u0dbd\u0d9a \u0db1\u0dcf\u0db8\u0dba \u0d94\u0dc0\u0dd4\u0db1\u0dca app \u0d91\u0d9a \u0dc3\u0db8\u0d9f \u0dbd\u0dd2\u0dba\u0dcf\u0db4\u0daf\u0dd2\u0d82\u0da0\u0dd2 \u0dc0\u0dd3 \u0d87\u0dad\u0dd2 \u0d91\u0d9a \u0dc0\u0dd2\u0dba \u0dba\u0dd4\u0dad\u0dd4 \u0db6\u0dc0 \u0d9a\u0dbb\u0dd4\u0dab\u0dcf\u0dc0\u0dd9\u0db1\u0dca \u0dc3\u0dbd\u0d9a\u0db1\u0dca\u0db1."),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(53,"p"),u.\u0275\u0275text(54,"\u0baa\u0baf\u0ba9\u0bcd\u0baa\u0bbe\u0b9f\u0bcd\u0b9f\u0bbf\u0bb2\u0bcd \u0b85\u0bb5\u0bb0\u0bcd\u0b95\u0bb3\u0bcd \u0baa\u0ba4\u0bbf\u0bb5\u0bc1\u0b9a\u0bc6\u0baf\u0bcd\u0ba4 \u0baa\u0baf\u0ba9\u0bb0\u0bcd \u0baa\u0bc6\u0baf\u0bb0\u0bcd\u0ba4\u0bbe\u0ba9\u0bcd \u0b87\u0bb0\u0bc1\u0b95\u0bcd\u0b95 \u0bb5\u0bc7\u0ba3\u0bcd\u0b9f\u0bc1\u0bae\u0bcd \u0b8e\u0ba9\u0bcd\u0baa\u0ba4\u0bc8 \u0ba8\u0bbf\u0ba9\u0bc8\u0bb5\u0bbf\u0bb2\u0bcd \u0b95\u0bca\u0bb3\u0bcd\u0bb3\u0bb5\u0bc1\u0bae\u0bcd:"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(55,"div",14)(56,"input",20),u.\u0275\u0275listener("ngModelChange",function(pt){return $e.addedTrackUserName=pt}),u.\u0275\u0275elementEnd()(),u.\u0275\u0275template(57,oi,3,0,"p",16),u.\u0275\u0275template(58,xi,3,1,"p",16),u.\u0275\u0275template(59,Ii,3,1,"p",16),u.\u0275\u0275element(60,"br"),u.\u0275\u0275elementStart(61,"button",17),u.\u0275\u0275listener("click",function(){return $e.addTrackUserName()}),u.\u0275\u0275text(62,"Add"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(63,"button",18),u.\u0275\u0275listener("click",function(){return $e.navigate("/location/home")}),u.\u0275\u0275text(64,"Exit"),u.\u0275\u0275elementEnd()()()()()),2&de&&(u.\u0275\u0275advance(2),u.\u0275\u0275property("ngIf",!!$e.bannerImgUrl),u.\u0275\u0275advance(30),u.\u0275\u0275property("ngModel",$e.addedUserName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",$e.usernameExistsError),u.\u0275\u0275advance(2),u.\u0275\u0275property("disabled",$e.checkAddedNameValid($e.addedUserName)||null!=$e.usernameExistsError),u.\u0275\u0275advance(21),u.\u0275\u0275property("ngModel",$e.addedTrackUserName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",$e.showTrackUsernameError&&!$e.addedTrackUserName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",$e.errorMessage&&!$e.successMessage),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",$e.successMessage&&!$e.errorMessage),u.\u0275\u0275advance(2),u.\u0275\u0275property("disabled",$e.checkAddedNameValid($e.addedTrackUserName)||0==$e.addedTrackUserName.length))},dependencies:[e.Fj,e.JJ,e.nD,e.On,l.NgIf,v.lC],styles:['.container-div[_ngcontent-%COMP%]{position:absolute;top:0;width:calc(100% - 8vw);margin:0vh 4vw;padding-top:calc(7vh + 20px);padding-bottom:12vh;overflow:hidden;overflow-y:scroll}.container-div[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.container-div[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}.flex-row[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;margin:20px 0}.flex-row[_ngcontent-%COMP%]   .flex-col[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;padding:5px 10px}.flex-col[_ngcontent-%COMP%]{width:calc(100% / 3)}.flex-row[_ngcontent-%COMP%]   .flex-col[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{text-align:center;font-size:14px}.flex-row[_ngcontent-%COMP%]:last-child{padding-bottom:60px}.flex-row[_ngcontent-%COMP%]:first-child{padding-top:42px}.modal[_ngcontent-%COMP%]{text-align:center;padding:0!important}.modal[_ngcontent-%COMP%]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-4px}.modal-dialog[_ngcontent-%COMP%]{display:inline-block;text-align:left;vertical-align:middle}.sub-button-sub[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#2ba2fa,#0092fc,#0081fb,#006ff8,#0f5af2);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.sub-button-cancel[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#ff8c2b,#ff8328,#ff7a25,#ff7024,#ff6623);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.header[_ngcontent-%COMP%]{position:fixed;top:0;width:100%;box-shadow:0 2px 20px 2px #0000001f;z-index:10}.wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:360px;width:100%;justify-content:center;align-items:center}.loader-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;content-alignment:center;align-items:center;background-color:#0f0f0f80;border-radius:5px;height:200px;width:250px;box-shadow:1px 1px 1px #2f4f4f}.loader[_ngcontent-%COMP%]{border:1px solid white;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;width:80px;height:80px;animation-name:_ngcontent-%COMP%_loading;animation-duration:.7s;animation-iteration-count:infinite;animation-timing-function:linear}.loader-text[_ngcontent-%COMP%]{margin-top:10px;padding-top:10px;color:#d3d3d3;font-family:Lato,sans-serif;font-size:18px;animation-name:_ngcontent-%COMP%_fading;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}.description-box[_ngcontent-%COMP%]{margin-top:10px;padding:10px 5px;font-family:Lato,sans-serif;font-size:18px;height:35px;line-height:35px;width:500px;background-color:#fff;text-align:center;border-radius:5px}.modal-enter-msisdn[_ngcontent-%COMP%]{font-size:28px}.modal-enter-msisdn[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px;height:40px;border-color:#000;border:1px solid;margin-left:5px}.modal-enter-msisdn[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:170px;padding:3px}.modal-enter-otp-pin[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:40px;border-color:#000;border:1px solid;width:130px;margin-left:10px;text-align:center;font-size:28px}@supports not (-webkit-overflow-scrolling: touch){.modal-enter-otp-pin[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:28px}}@keyframes _ngcontent-%COMP%_loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_fading{0%,to{opacity:.05}50%{opacity:.95}}.m-container-padding[_ngcontent-%COMP%]{padding:70px 20px 50px;margin-bottom:20px}.article-container[_ngcontent-%COMP%]{padding:5px 0;border-bottom:1px solid;border-color:inherit}.article-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-transform:uppercase}.img-loader[_ngcontent-%COMP%]{margin:40px;padding-bottom:60px;text-align:center}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.modal-header[_ngcontent-%COMP%]{border-bottom:0px;text-align:center}.modal-title[_ngcontent-%COMP%]{font-weight:700;font-size:16px;color:#000;padding-top:20px}.modal-body[_ngcontent-%COMP%]{padding-bottom:15px;text-align:center}.install-btn[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#2ba2fa,#0092fc,#0081fb,#006ff8,#0f5af2);border-width:0px!important;color:#fff!important;padding:10px;border-radius:6px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase;width:146px}.close[_ngcontent-%COMP%]{font-size:28px;opacity:1}.image-size[_ngcontent-%COMP%]{height:auto;width:410px;border-radius:4px}.align-logo[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center;height:auto;padding-bottom:3vh}.container-div[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.container-div[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:4px}.container-div[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:#000c}.container-div[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}.container-div[_ngcontent-%COMP%]::-webkit-scrollbar-button:decrement{background-color:transparent}.container-div[_ngcontent-%COMP%]::-webkit-scrollbar-button:increment{background-color:transparent}@media (max-width: 767px){.image-size[_ngcontent-%COMP%]{width:calc(100% - 40px)}.container-div[_ngcontent-%COMP%]{padding-top:calc(7vh + 30px);padding-bottom:15vh}}.modal-dialog.modal-dialog-centered[_ngcontent-%COMP%]{width:300px}.gray-back-txt[_ngcontent-%COMP%]{background:#ddd;padding:5px;text-align:left;border-radius:3px;font-size:12px;margin-bottom:8px}#addUserNameModel[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], #addTrackUserNameModel[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:left;font-size:12px;margin-bottom:0}#addUserNameModel[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], #addTrackUserNameModel[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#ffa500,#ffa500,#ffa500,#ffa500,#ffa500)!important;border-radius:0;margin-bottom:5px;padding:7px 10px;font-size:11px;text-transform:initial}#addUserNameModel[_ngcontent-%COMP%]   .cancel-btn[_ngcontent-%COMP%], #addTrackUserNameModel[_ngcontent-%COMP%]   .cancel-btn[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#cb2a00,#cb2a00,#cb2a00,#cb2a00,#cb2a00)!important}']})}return y})();function Gn(y,J){if(1&y){const N=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275elementStart(1,"tr",5),u.\u0275\u0275listener("click",function(){const Ve=u.\u0275\u0275restoreView(N).$implicit,pt=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(pt.getLocationView(Ve.id,Ve.lat,Ve.lon,Ve.userName,pt.getLocationDate(Ve),pt.getLocationTime(Ve)))}),u.\u0275\u0275elementStart(2,"td",6),u.\u0275\u0275element(3,"img",7),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(4,"td",8),u.\u0275\u0275text(5),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(6,"td",9),u.\u0275\u0275element(7,"img",10),u.\u0275\u0275text(8),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementContainerEnd()}if(2&y){const N=J.$implicit,de=u.\u0275\u0275nextContext();u.\u0275\u0275advance(5),u.\u0275\u0275textInterpolate1(" ",N&&N.userName&&""!==N.userName?N.userName:"Inactive User"," "),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate1(" ",de.getLocationDate(N)," ")}}const uo=[{path:"",component:fn,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:f},{path:"add-user",component:le},{path:"user-registration",component:K},{path:"my-profile",component:ne},{path:"history",component:nt},{path:"location-history",component:(()=>{class y{constructor(N,de,$e,Ve){this.router=N,this.userService=de,this.commonService=$e,this.titleService=Ve,this.locationHistory=[],this.titleService.changeTitle("HISTORY"),this.commonService.setNavigatedPath("/location/location_history")}ngOnInit(){this.getHistory()}getHistory(){this.userService.getAllHistory().subscribe(N=>{this.locationHistory=N&&N.length?N.reverse():[]},N=>{console.error("Error retrieving location history:",N)})}getLocationDate(N){const de=new Date(N.locatedTime);return`${this.padZero(de.getDate())}/${this.padZero(de.getMonth()+1)}/${de.getFullYear()}`}getLocationTime(N){const de=new Date(N.locatedTime),$e=de.getHours(),Ve=de.getMinutes(),pt=$e>=12?"PM":"AM";return`${this.padZero($e%12||12)}:${this.padZero(Ve)} ${pt}`}padZero(N){return N.toString().padStart(2,"0")}getLocationView(N,de,$e,Ve,pt,qt){this.router.navigate(["/location/location-map",{userLocationId:N,latitude:de,longitude:$e,addedUserName:Ve,locationDate:pt,locationTime:qt}])}static#e=this.\u0275fac=function(de){return new(de||y)(u.\u0275\u0275directiveInject(v.F0),u.\u0275\u0275directiveInject(x),u.\u0275\u0275directiveInject(b.v),u.\u0275\u0275directiveInject(w.y))};static#t=this.\u0275cmp=u.\u0275\u0275defineComponent({type:y,selectors:[["app-location-history"]],decls:10,vars:1,consts:[[1,"table-container"],[1,"custom-table"],["colspan","2",1,"text-center"],[1,"text-center",2,"padding-left","0px !important"],[4,"ngFor","ngForOf"],[1,"clickable-row",3,"click"],[1,"td-icon","text-right"],["src","assets/images/User.svg","alt","user",1,"user-icon"],[1,"td-name","text-left"],[1,"text-center","td-action"],["src","assets/images/Location.svg","alt","location",1,"location-icon"]],template:function(de,$e){1&de&&(u.\u0275\u0275elementStart(0,"div",0)(1,"table",1)(2,"thead")(3,"tr")(4,"th",2),u.\u0275\u0275text(5,"Users"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(6,"th",3),u.\u0275\u0275text(7,"Last Location"),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275elementStart(8,"tbody"),u.\u0275\u0275template(9,Gn,9,2,"ng-container",4),u.\u0275\u0275elementEnd()()()),2&de&&(u.\u0275\u0275advance(9),u.\u0275\u0275property("ngForOf",$e.locationHistory))},dependencies:[l.NgForOf],styles:[".table-container[_ngcontent-%COMP%]{background-color:#2f3237;border-radius:10px;overflow:auto;max-height:80vh;margin-bottom:10vh}.custom-table[_ngcontent-%COMP%]{width:100%;color:#fff;border-collapse:collapse}.custom-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:15px;border-bottom:1px solid #fff}.custom-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#2f3237;border-top-right-radius:10px;text-align:center}.custom-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{border-left:1px solid #fff;border-bottom-left-radius:10px}.custom-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:10px;text-align:center}.button[_ngcontent-%COMP%]{background-color:#ea670f;color:#fff;border:none;padding:5px 10px;width:100px;border-radius:7px;font-weight:700;text-transform:uppercase;cursor:pointer;transition:background-color .3s ease;margin-right:10px;font-size:smaller}.custom-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{border-bottom-left-radius:10px}.arrow[_ngcontent-%COMP%]{color:#e16718;font-size:1.2em;vertical-align:middle}.location-icon[_ngcontent-%COMP%]{color:#e16718;margin-right:5px;vertical-align:middle}.clock-icon[_ngcontent-%COMP%]{color:#e16718}.back-button[_ngcontent-%COMP%]{background-color:transparent;border:none;cursor:pointer}.back-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#e16718;font-size:20px}.back-button[_ngcontent-%COMP%]:hover{opacity:.7}.user-text[_ngcontent-%COMP%]{background-color:transparent;border:none}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}.text-left[_ngcontent-%COMP%]{text-align:left!important}.name-btn[_ngcontent-%COMP%]{padding-left:10px;background-color:transparent;border:none;text-align:left}.td-icon[_ngcontent-%COMP%]{width:auto!important;padding-left:30px!important}.td-name[_ngcontent-%COMP%]{width:auto!important}.td-action[_ngcontent-%COMP%]{width:30%!important}.clickable-row[_ngcontent-%COMP%]{cursor:pointer}.clickable-row[_ngcontent-%COMP%]:hover{background-color:#0000001a}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:4px}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:#000c}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar-button:decrement{background-color:transparent}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar-button:increment{background-color:transparent}@media screen and (max-width: 480px){.td-icon[_ngcontent-%COMP%]{padding-left:20px!important}.td-name[_ngcontent-%COMP%]{padding-left:5px!important}}@media (max-width: 767px){.table-container[_ngcontent-%COMP%]{max-height:75vh}}"]})}return y})()},{path:"location-map",component:co},{path:"information",component:Ur},{path:"**",redirectTo:""}]}];let ve=(()=>{class y{static#e=this.\u0275fac=function(de){return new(de||y)};static#t=this.\u0275mod=u.\u0275\u0275defineNgModule({type:y});static#i=this.\u0275inj=u.\u0275\u0275defineInjector({imports:[v.Bz.forChild(uo),v.Bz]})}return y})(),pe=(()=>{class y{static#e=this.\u0275fac=function(de){return new(de||y)};static#t=this.\u0275mod=u.\u0275\u0275defineNgModule({type:y});static#i=this.\u0275inj=u.\u0275\u0275defineInjector({imports:[e.u5,o.JF,l.CommonModule,ve,S.Rh.forRoot()]})}return y})()},8257:(G,P,a)=>{"use strict";a.d(P,{v:()=>f});var n=a(5861),e=a(591),o=a(529),l=a(8136),v=a(3472),d=a(1411),u=a(4650),b=a(8729),C=a(2684),x=a(9066),w=a(9704),g=a(3648);let f=(()=>{class S{constructor(B,Z,le,q,X,K,U){this.http=B,this.router=Z,this.subscriptionService=le,this.messageService=q,this.dataService=X,this.subscription=K,this.toastr=U,this.appId=d.Jf,this.userId=d.xS,this.subscriptionStatus="",this.oneTimeLbsMockCatId="",this.locationBannerUrl=null,this.recivedLbsPushMsgs=[],this.isLbsSubOtcChecking=!1,this.httpOptions={headers:new o.WM({"Content-Type":"application/json"})},this.navigatedPath$=new e.X("home"),this.navigatedPath=this.navigatedPath$.asObservable(),this.isSubscribing$=new e.X(!1),this.isSubscribing=this.isSubscribing$.asObservable(),this.msisdn$=new e.X(null),this.msisdn=this.msisdn$.asObservable(),this.logedInUserId$=new e.X(null),this.logedInUserId=this.logedInUserId$.asObservable(),this.addedUsers$=new e.X([]),this.addedUsers=this.addedUsers$.asObservable(),this.lbsPushMsgCount$=new e.X(0),this.lbsPushMsgCount=this.lbsPushMsgCount$.asObservable(),this.subSucessPopupOff$=new e.X(!1),this.subSucessPopupOff=this.subSucessPopupOff$.asObservable(),this.issubscribedModelSubCompModalOpen$=new e.X(!1),this.issubscribedModelSubCompModalOpen=this.issubscribedModelSubCompModalOpen$.asObservable(),this.setMsisdn(this.getMsisdnLocally()),this.hideOtcSuccessAndMsgModals(),this.listenSubCompletePopupOn()}listenOnLocalStorage(){this.subRegLocalStorageCheck=setInterval(()=>{this.checkLocalStorage()},500)}listenSubCompletePopupOn(){const B=this;$("#subscribedModelSubComp").on("show.bs.modal",()=>{B.setSubscribedModelSubCompModalOpenStatus(!0)}).on("hidden.bs.modal",function(){B.setSubscribedModelSubCompModalOpenStatus(!1),B.setSubPopupOffStatus(!0)})}checkLocalStorage(){let B=localStorage.getItem("isAlreadySubscribedForLBS");B&&"null"!=B&&JSON.parse(B)&&(this.checkSubscriptionStatus(),clearInterval(this.subRegLocalStorageCheck),localStorage.removeItem("isAlreadySubscribedForLBS"))}updatePushMsgArray(B){this.recivedLbsPushMsgs=[B,...this.getLbsPushMsgsArray()],this.updateMessageCount(this.recivedLbsPushMsgs.length)}getLbsPushMsgsArray(){return this.recivedLbsPushMsgs}getLbsLatestPushMsg(){if(this.recivedLbsPushMsgs&&this.recivedLbsPushMsgs.length){const B=this.recivedLbsPushMsgs.shift();return this.updateMessageCount(this.recivedLbsPushMsgs.length),B}return this.updateMessageCount(0),null}updateMessageCount(B){this.lbsPushMsgCount$.next(B)}listenOnLbsPushMsgCount(){return this.lbsPushMsgCount}checkIsFromCmsView(){return!!this.dataService.isFromCMSAppView}setNavigatedPath(B){this.navigatedPath$.next(B)}getNavigatedPath(){return this.navigatedPath}setSubProgress(B){!1===B&&this.isLbsSubOtcChecking?(this.isLbsSubOtcChecking=!1,this.isSubscribing$.next(B)):this.isSubscribing$.next(B)}getSubProgress(){return this.isSubscribing}setMsisdn(B){localStorage.setItem(this.appId+"msisdn",B),this.msisdn$.next(B)}getMsisdn(){return this.msisdn}getMsisdnLocally(){let B=localStorage.getItem(this.appId+"msisdn");return B&&"null"!=B?B:null}setLoggedInUserId(B){localStorage.setItem(this.appId+"loggedLocationUser",B),this.logedInUserId$.next(B)}getlocationBannerUrl(){return this.locationBannerUrl}setlocationBannerUrl(B){this.locationBannerUrl=B}getLoggedInUserId(){return this.logedInUserId}getLoggedUserIdLocally(){let B=localStorage.getItem(this.appId+"loggedLocationUser");return B&&"null"!==B?B:null}setAddedUsers(B){this.addedUsers$.next(B)}getAddedUsers(){return this.addedUsers}setSubPopupOffStatus(B){this.subSucessPopupOff$.next(B)}getSubPopupOffStatus(){return this.subSucessPopupOff}setSubscribedModelSubCompModalOpenStatus(B){this.issubscribedModelSubCompModalOpen$.next(B)}getSubscribedModelSubCompModalOpenStatus(){return this.issubscribedModelSubCompModalOpen}getCurrentTimestamp(){return(new Date).getTime().toString()}updateLocalLbsOtcCatId(B){this.oneTimeLbsMockCatId=B}getLastStoredLbsOtcCatId(){return this.oneTimeLbsMockCatId}fireOtcChargingRequest(B){return this.isLbsSubOtcChecking=!0,new Promise(Z=>{let le=`${this.appId}_${this.getLastStoredLbsOtcCatId()}_msisdn`;localStorage.removeItem(le),this.updateLocalLbsOtcCatId("");let q=`lbs_${B}_${this.getMsisdnLocally()}_${this.getCurrentTimestamp()}`;this.updateLocalLbsOtcCatId(q),this.reqOtcOnClickLocate();const X=this.subscriptionService.getSubscriptionMessage().subscribe(K=>{if(console.log("fireOtcChargingRequest: ",K),K.message.status===v.Yg.SUB_RESPONSE&&"ERROR"!=K.message.data.status){const me=K.message.data.data;console.log("fireOtcChargingRequest: messageData: ",me),!me.isError&&me.isValid&&(X.unsubscribe(),this.setSubProgress(!1),Z(!0))}})})}reqOtcOnClickLocate(){this.setSubProgress(!0);const B=new v.Mw;B.status=v.Yg.SUB_REQUEST;const Z=new v.yh;Z.data={categoryId:this.oneTimeLbsMockCatId,categoryName:"",categoryType:"OTC"},B.data=Z,this.subscriptionService.sendSubscriptionMessage({message:B})}requestForSubscription(){this.setSubProgress(!0);const B=new v.Mw;B.status=v.Yg.SUB_REQUEST,this.subscriptionService.sendSubscriptionMessage({message:B})}checkSubscriptionStatus(){return this.isLbsSubOtcChecking=!0,new Promise(B=>{const Z=this.subscriptionService.getSubscriptionMessage().subscribe(le=>{console.log("checkSubscriptionStatus: ",le);let q="ERROR"==le.message.data.status&&!0;if(le.message.status!==v.Yg.SUB_RESPONSE||q)le.message.status===v.Yg.SUB_RESPONSE&&q&&le.message.data.data.subscriptionStatus==v.y5.SUBSCRIBED?(B(!1),this.subscriptionStatus=le.message.data.data.subscriptionStatus,this.dataService.subscriptionStatus=le.message.data.data.subscriptionStatus,this.messageService.sendMessage({subscription:le.message.data.data})):B(!1);else{const X=le.message.data.data;console.log("checkSubscriptionStatus: messageData: ",X),X.isError||"SUBSCRIBED"!=X.subscriptionStatus&&!X.isValid?B(!1):(this.messageService.sendMessage({subscription:X}),this.setMsisdn(localStorage.getItem(this.appId+"msisdn")),this.setSubProgress(!1),Z.unsubscribe(),B(!0))}});this.requestForSubscription()})}openAddingUserNameModel(){const B=this,Z=this.getSubPopupOffStatus().subscribe(le=>{le?(Z&&Z.unsubscribe(),this.router.navigate(["/location/home"]),setTimeout(()=>{$("#addUserNameModel").modal("show"),B.setSubPopupOffStatus(!1)},300)):this.getSubscribedModelSubCompModalOpenStatus().subscribe(q=>{q||(console.log("Closed Sub Success Popup!"),this.router.navigate(["/location/user-registration"]))})})}openAddingTrackUserModel(){setTimeout(()=>{$("#addTrackUserNameModel").modal("show")},300)}checkRegistrationStatus(){return new Promise(B=>{this.getMsisdn().subscribe(le=>{le?this.checkUserRegistration(le).subscribe(q=>{q&&q.id?(this.setLoggedInUserId(q.id),B(!0)):(this.setLoggedInUserId(null),B(!1))},q=>{this.setLoggedInUserId(null),console.error("checkRegistrationStatus: Error: ",q),B(!1)}):B(!1)}).unsubscribe()})}checkRegThenNavigate(B,Z){var le=this;return(0,n.Z)(function*(){let q=yield le.checkRegistrationStatus();console.log("isRegisteredUser : ",!!q),q?"initCheck"===B?le.getAndSetAllAddedUsers():le.router.navigate([B]):Z?le.openAddingUserNameModel():le.router.navigate(["/location/user-registration"])})()}navigate(B){var Z=this;return(0,n.Z)(function*(){if("/location/my-profile"===B||"/location/add-user"===B||"initCheck"===B){let le=yield Z.checkSubscriptionStatus();if(console.log("isSubscribed : ",!!le),le)Z.checkRegThenNavigate(B,!1);else{const q=Z.getSubProgress().subscribe(X=>{console.log("isSubInProgress : ",X),X||(q.unsubscribe(),Z.checkRegThenNavigate(B,!0))})}}else Z.router.navigate([B])})()}checkUserRegistration(B){return this.http.get(`${l.L}/edit/checkUserRegistration/${B}/${this.appId}`)}getLocationBanner(){return this.http.get(`${l.L}/edit/getLocationBanner/${this.appId}/${this.userId}`)}getAllAddedUsers(B){return this.http.get(B)}getAndSetAllAddedUsers(){let B=this.checkIsFromCmsView();this.getLoggedInUserId().subscribe(le=>{le&&"null"!=le&&this.getAllAddedUsers(`${l.L}/edit/getAllAddedUsers/${le}?appId=${this.appId}&isFromCmsView=${B?1:0}`).subscribe(X=>{this.setAddedUsers(X.addedUsers)})}).unsubscribe()}showToaster(B,Z,le){let q={timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"};le?this.toastr.error(B,Z,q):this.toastr.success(B,Z,q)}hideOtcSuccessAndMsgModals(){let B=this;$("#showMessageSubComp").on("show.bs.modal",function(Z){B.isLbsSubOtcChecking&&(Z.preventDefault(),console.log("Blocked displaying the 'showMessageSubComp'"))})}static#e=this.\u0275fac=function(Z){return new(Z||S)(u.\u0275\u0275inject(o.eN),u.\u0275\u0275inject(b.F0),u.\u0275\u0275inject(v.FF),u.\u0275\u0275inject(C.e),u.\u0275\u0275inject(x.V),u.\u0275\u0275inject(w.E),u.\u0275\u0275inject(g._W))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},1663:(G,P,a)=>{"use strict";a.r(P),a.d(P,{FormEngineModule:()=>ut});var n=a(6895),e=a(4006),o=a(8729),l=a(1411),v=a(4650),d=a(6026),u=a(529),b=a(8136),C=a(1086),x=a(7221);let w=(()=>{class te{constructor(R){this.http=R,this.formServerUrl=`${b.L}/edit`,this.appId=l.Jf,this.httpOptions={headers:new u.WM({"Content-Type":"application/json"})}}getFormInfo(R,be,et){const Ue=`${this.formServerUrl}/getFormInfo`;let ge=new u.LE;return ge=ge.set("msisdn",R),ge=ge.set("articleId",be),ge=ge.set("appId",et),this.http.get(Ue,{params:ge}).pipe((0,x.K)(this.handleError(`Error Getting form data on appId : ${this.appId}`)))}submitResponse(R){return this.http.post(`${this.formServerUrl}/submitResponse`,R,this.httpOptions).pipe((0,x.K)(this.handleError("Error in submitting new Response!")))}handleError(R="operation",be){return et=>(console.error(et),(0,C.of)(be))}static#e=this.\u0275fac=function(be){return new(be||te)(v.\u0275\u0275inject(u.eN))};static#t=this.\u0275prov=v.\u0275\u0275defineInjectable({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})();var g=a(2684),f=a(7289);function S(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",11),v.\u0275\u0275listener("click",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext().$implicit,ge=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(ge.onCheckMcq(Ue,et))}),v.\u0275\u0275elementEnd()}if(2&te){const R=v.\u0275\u0275nextContext().$implicit,be=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("value",R.text)("formControlName",be.formCtrlName)}}function j(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",12),v.\u0275\u0275listener("click",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext().$implicit,ge=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(ge.onCheckMcq(Ue,et))}),v.\u0275\u0275elementEnd()}if(2&te){const R=v.\u0275\u0275nextContext().$implicit;v.\u0275\u0275property("value",R.text)}}function B(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",13),v.\u0275\u0275listener("click",function(){v.\u0275\u0275restoreView(R);const et=v.\u0275\u0275nextContext().$implicit,Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onSelectMcq(et))}),v.\u0275\u0275elementEnd()}if(2&te){const R=v.\u0275\u0275nextContext().$implicit,be=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("name",be.formCtrlName)("value",R.text)("formControlName",be.formCtrlName)}}function Z(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",14),v.\u0275\u0275listener("click",function(){v.\u0275\u0275restoreView(R);const et=v.\u0275\u0275nextContext().$implicit,Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onSelectMcq(et))}),v.\u0275\u0275elementEnd()}if(2&te){const R=v.\u0275\u0275nextContext().$implicit;v.\u0275\u0275property("value",R.text)}}function le(te,k){if(1&te&&(v.\u0275\u0275elementStart(0,"li",5),v.\u0275\u0275template(1,S,1,2,"input",6),v.\u0275\u0275template(2,j,1,1,"input",7),v.\u0275\u0275template(3,B,1,3,"input",8),v.\u0275\u0275template(4,Z,1,1,"input",9),v.\u0275\u0275elementStart(5,"span",10),v.\u0275\u0275text(6),v.\u0275\u0275elementEnd(),v.\u0275\u0275element(7,"br"),v.\u0275\u0275elementEnd()),2&te){const R=k.$implicit,be=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",!be.radioField.hasOneOptionLimit&&be.radioField.isRequired),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",!be.radioField.hasOneOptionLimit&&!be.radioField.isRequired),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",be.radioField.hasOneOptionLimit&&be.radioField.isRequired),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",be.radioField.hasOneOptionLimit&&!be.radioField.isRequired),v.\u0275\u0275advance(1),v.\u0275\u0275propertyInterpolate("for",R.text),v.\u0275\u0275advance(1),v.\u0275\u0275textInterpolate(R.text)}}function q(te,k){1&te&&(v.\u0275\u0275elementStart(0,"div")(1,"span",15),v.\u0275\u0275text(2,"Please answer this question."),v.\u0275\u0275elementEnd()())}function X(te,k){if(1&te&&(v.\u0275\u0275elementStart(0,"div",1)(1,"ul",2),v.\u0275\u0275template(2,le,8,6,"li",3),v.\u0275\u0275elementEnd(),v.\u0275\u0275template(3,q,3,0,"div",4),v.\u0275\u0275elementEnd()),2&te){const R=v.\u0275\u0275nextContext();v.\u0275\u0275property("formGroup",R.parentForm),v.\u0275\u0275advance(2),v.\u0275\u0275property("ngForOf",R.radioField.mcqOptions),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",R.radioField.isRequired&&!R.radioField.response.length)}}let K=(()=>{class te{constructor(){this.responses=[]}ngOnInit(){this.formCtrlName=this.radioField.code}onSelectMcq(R){this.responses=[],this.responses.push(R),this.radioField.response=this.responses}onCheckMcq(R,be){if(be.target.checked)this.responses.push(R),this.radioField.response=this.responses;else if(this.responses.length)for(let et=0;et<this.responses.length;et++)if(this.responses[et].id==R.id){this.responses.splice(et,1),et--;break}}static#e=this.\u0275fac=function(be){return new(be||te)};static#t=this.\u0275cmp=v.\u0275\u0275defineComponent({type:te,selectors:[["app-input-radio"]],inputs:{parentForm:"parentForm",radioField:"radioField"},decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"mcq-list","main-content-font"],["class","mcq-list-options",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"mcq-list-options"],["class","main-content-font","type","checkbox","name","option.text","required","",3,"value","formControlName","click",4,"ngIf"],["class","main-content-font","type","checkbox","name","option.text",3,"value","click",4,"ngIf"],["class","main-content-font","type","radio","required","",3,"name","value","formControlName","click",4,"ngIf"],["class","main-content-font","type","radio","name","form-radio",3,"value","click",4,"ngIf"],[1,"radio-span","main-content-font",3,"for"],["type","checkbox","name","option.text","required","",1,"main-content-font",3,"value","formControlName","click"],["type","checkbox","name","option.text",1,"main-content-font",3,"value","click"],["type","radio","required","",1,"main-content-font",3,"name","value","formControlName","click"],["type","radio","name","form-radio",1,"main-content-font",3,"value","click"],[2,"color","red","font-size","smaller","font-weight","400"]],template:function(be,et){1&be&&v.\u0275\u0275template(0,X,4,3,"div",0),2&be&&v.\u0275\u0275property("ngIf",et.radioField.mcqOptions.length)},dependencies:[n.NgForOf,n.NgIf,e.Fj,e.Wl,e._,e.JJ,e.JL,e.Q7,e.Zs,e.sg,e.u],styles:[".form-page-div[_ngcontent-%COMP%]{width:100%!important;padding:5% 5% 100px;margin-top:70px;height:auto}.html-code-div[_ngcontent-%COMP%]{padding:30px 0 0}.input-type-div[_ngcontent-%COMP%]{padding:0 0 10px}.form-name[_ngcontent-%COMP%]{padding:0%;font-size:large;font-weight:600}ul[_ngcontent-%COMP%]{list-style-type:none;padding-inline-start:0px!important}textarea[_ngcontent-%COMP%]{padding:3%;resize:none;width:100%;background-color:#fff;color:#000}.mcq-list[_ngcontent-%COMP%]{color:#fff}.date-time-inputs[_ngcontent-%COMP%]{width:100%;background-color:#fff;color:#000;padding:5px 10px}.radio-span[_ngcontent-%COMP%]{padding:0 0 0 20px!important;color:#000}.submit-btn-div[_ngcontent-%COMP%]{text-align:center!important}.submit-btn[_ngcontent-%COMP%]{padding:2% 5%;border:none;border-radius:8px;font-size:large;font-weight:600;cursor:pointer}"]})}return te})();function U(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"textarea",5),v.\u0275\u0275listener("ngModelChange",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.response=et)})("keyup",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.textChange(et))}),v.\u0275\u0275elementEnd()}if(2&te){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.response)("formControlName",R.formCtrlName)}}function me(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"textarea",6),v.\u0275\u0275listener("ngModelChange",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.response=et)})("keyup",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.textChange(et))}),v.\u0275\u0275elementEnd()}if(2&te){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.response)("formControlName",R.formCtrlName)}}function xe(te,k){1&te&&(v.\u0275\u0275elementStart(0,"div")(1,"span",7),v.\u0275\u0275text(2,"Please answer this question."),v.\u0275\u0275elementEnd()())}function ne(te,k){1&te&&(v.\u0275\u0275elementStart(0,"div")(1,"span",7),v.\u0275\u0275text(2,"Too lengthy"),v.\u0275\u0275elementEnd()())}function Ze(te,k){if(1&te&&(v.\u0275\u0275elementStart(0,"div",1),v.\u0275\u0275template(1,U,1,2,"textarea",2),v.\u0275\u0275template(2,me,1,2,"textarea",3),v.\u0275\u0275template(3,xe,3,0,"div",4),v.\u0275\u0275template(4,ne,3,0,"div",4),v.\u0275\u0275elementEnd()),2&te){const R=v.\u0275\u0275nextContext();v.\u0275\u0275property("formGroup",R.parentForm),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",R.inputField.isRequired),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",!R.inputField.isRequired),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",R.inputField.isRequired&&""==R.inputField.response),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",R.inputField.response.length>500)}}let Oe=(()=>{class te{constructor(){this.response=""}ngOnInit(){this.formCtrlName=this.inputField.code}textChange(R){this.inputField.response=R.target.value}static#e=this.\u0275fac=function(be){return new(be||te)};static#t=this.\u0275cmp=v.\u0275\u0275defineComponent({type:te,selectors:[["app-input-textarea"]],inputs:{parentForm:"parentForm",inputField:"inputField"},decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],["class","main-content-font","name","Text-Type-Question","id","text-type-question","cols","","rows","3","required","",3,"ngModel","formControlName","ngModelChange","keyup",4,"ngIf"],["class","main-content-font","name","Text-Type-Question","id","text-type-question","cols","","rows","3",3,"ngModel","formControlName","ngModelChange","keyup",4,"ngIf"],[4,"ngIf"],["name","Text-Type-Question","id","text-type-question","cols","","rows","3","required","",1,"main-content-font",3,"ngModel","formControlName","ngModelChange","keyup"],["name","Text-Type-Question","id","text-type-question","cols","","rows","3",1,"main-content-font",3,"ngModel","formControlName","ngModelChange","keyup"],[2,"color","red","font-size","smaller","font-weight","400"]],template:function(be,et){1&be&&v.\u0275\u0275template(0,Ze,5,5,"div",0),2&be&&v.\u0275\u0275property("ngIf",et.inputField)},dependencies:[n.NgIf,e.Fj,e.JJ,e.JL,e.Q7,e.sg,e.u],styles:[".form-page-div[_ngcontent-%COMP%]{width:100%!important;padding:5% 5% 100px;margin-top:70px;height:auto}.html-code-div[_ngcontent-%COMP%]{padding:30px 0 0}.input-type-div[_ngcontent-%COMP%]{padding:0 0 10px}.form-name[_ngcontent-%COMP%]{padding:0%;font-size:large;font-weight:600}ul[_ngcontent-%COMP%]{list-style-type:none;padding-inline-start:0px!important}textarea[_ngcontent-%COMP%]{padding:3%;resize:none;width:100%;background-color:#fff;color:#000}.mcq-list[_ngcontent-%COMP%]{color:#fff}.date-time-inputs[_ngcontent-%COMP%]{width:100%;background-color:#fff;color:#000;padding:5px 10px}.radio-span[_ngcontent-%COMP%]{padding:0 0 0 20px!important}.submit-btn-div[_ngcontent-%COMP%]{text-align:center!important}.submit-btn[_ngcontent-%COMP%]{padding:2% 5%;border:none;border-radius:8px;font-size:large;font-weight:600;cursor:pointer}"]})}return te})();function nt(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",9),v.\u0275\u0275listener("ngModelChange",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.dateInput=et)})("change",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onTextChange(et))}),v.\u0275\u0275elementEnd()}if(2&te){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.dateInput)("formControlName",R.formCtrlName)}}function qe(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",10),v.\u0275\u0275listener("ngModelChange",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.dateInput=et)})("change",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onTextChange(et))}),v.\u0275\u0275elementEnd()}if(2&te){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.dateInput)("formControlName",R.formCtrlName)}}function ct(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",11),v.\u0275\u0275listener("ngModelChange",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.timeInput=et)})("change",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onTextChange(et))}),v.\u0275\u0275elementEnd()}if(2&te){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.timeInput)("formControlName",R.formCtrlName)}}function ot(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",12),v.\u0275\u0275listener("ngModelChange",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.timeInput=et)})("change",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onTextChange(et))}),v.\u0275\u0275elementEnd()}if(2&te){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.timeInput)("formControlName",R.formCtrlName)}}function dt(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",13),v.\u0275\u0275listener("ngModelChange",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.dateTimeInput=et)})("change",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onTextChange(et))}),v.\u0275\u0275elementEnd()}if(2&te){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.dateTimeInput)("formControlName",R.formCtrlName)}}function jt(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",14),v.\u0275\u0275listener("ngModelChange",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.dateTimeInput=et)})("change",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onTextChange(et))}),v.\u0275\u0275elementEnd()}if(2&te){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.dateTimeInput)("formControlName",R.formCtrlName)}}function zt(te,k){1&te&&(v.\u0275\u0275elementStart(0,"div")(1,"span",15),v.\u0275\u0275text(2,"Please answer this question."),v.\u0275\u0275elementEnd()())}function ti(te,k){if(1&te&&(v.\u0275\u0275elementStart(0,"div",1),v.\u0275\u0275template(1,nt,1,2,"input",2),v.\u0275\u0275template(2,qe,1,2,"input",3),v.\u0275\u0275template(3,ct,1,2,"input",4),v.\u0275\u0275template(4,ot,1,2,"input",5),v.\u0275\u0275template(5,dt,1,2,"input",6),v.\u0275\u0275template(6,jt,1,2,"input",7),v.\u0275\u0275template(7,zt,3,0,"div",8),v.\u0275\u0275elementEnd()),2&te){const R=v.\u0275\u0275nextContext();v.\u0275\u0275property("formGroup",R.parentForm),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf","DateOnly"==R.inputField.feFormFieldType.type&&R.inputField.isRequired),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf","DateOnly"==R.inputField.feFormFieldType.type&&!R.inputField.isRequired),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf","TimeOnly"==R.inputField.feFormFieldType.type&&R.inputField.isRequired),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf","TimeOnly"==R.inputField.feFormFieldType.type&&!R.inputField.isRequired),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf","DateTime"==R.inputField.feFormFieldType.type&&R.inputField.isRequired),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf","DateTime"==R.inputField.feFormFieldType.type&&!R.inputField.isRequired),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",R.inputField.isRequired&&!R.inputField.response)}}let mi=(()=>{class te{constructor(){}ngOnInit(){this.formCtrlName=this.inputField.code}onTextChange(R){("DateOnly"==this.inputField.feFormFieldType.type||"TimeOnly"==this.inputField.feFormFieldType.type||"DateTime"==this.inputField.feFormFieldType.type)&&(this.inputField.response=R.target.value)}static#e=this.\u0275fac=function(be){return new(be||te)};static#t=this.\u0275cmp=v.\u0275\u0275defineComponent({type:te,selectors:[["app-input-text"]],inputs:{parentForm:"parentForm",inputField:"inputField"},decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],["class","date-time-inputs main-content-font","type","date","value","dateInput","required","",3,"ngModel","formControlName","ngModelChange","change",4,"ngIf"],["class","date-time-inputs main-content-font","type","date","value","dateInput",3,"ngModel","formControlName","ngModelChange","change",4,"ngIf"],["class","date-time-inputs main-content-font","type","time","value","timeInput","required","",3,"ngModel","formControlName","ngModelChange","change",4,"ngIf"],["class","date-time-inputs main-content-font","type","time","value","timeInput",3,"ngModel","formControlName","ngModelChange","change",4,"ngIf"],["class","date-time-inputs main-content-font","type","datetime-local","value","dateTimeInput","required","",3,"ngModel","formControlName","ngModelChange","change",4,"ngIf"],["class","date-time-inputs main-content-font","type","datetime-local","value","dateTimeInput",3,"ngModel","formControlName","ngModelChange","change",4,"ngIf"],[4,"ngIf"],["type","date","value","dateInput","required","",1,"date-time-inputs","main-content-font",3,"ngModel","formControlName","ngModelChange","change"],["type","date","value","dateInput",1,"date-time-inputs","main-content-font",3,"ngModel","formControlName","ngModelChange","change"],["type","time","value","timeInput","required","",1,"date-time-inputs","main-content-font",3,"ngModel","formControlName","ngModelChange","change"],["type","time","value","timeInput",1,"date-time-inputs","main-content-font",3,"ngModel","formControlName","ngModelChange","change"],["type","datetime-local","value","dateTimeInput","required","",1,"date-time-inputs","main-content-font",3,"ngModel","formControlName","ngModelChange","change"],["type","datetime-local","value","dateTimeInput",1,"date-time-inputs","main-content-font",3,"ngModel","formControlName","ngModelChange","change"],[2,"color","red","font-size","smaller","font-weight","400"]],template:function(be,et){1&be&&v.\u0275\u0275template(0,ti,8,8,"div",0),2&be&&v.\u0275\u0275property("ngIf",et.inputField)},dependencies:[n.NgIf,e.Fj,e.JJ,e.JL,e.Q7,e.sg,e.u],styles:[".form-page-div[_ngcontent-%COMP%]{width:100%!important;padding:5% 5% 100px;margin-top:70px;height:auto}.html-code-div[_ngcontent-%COMP%]{padding:30px 0 0}.input-type-div[_ngcontent-%COMP%]{padding:0 0 10px}.form-name[_ngcontent-%COMP%]{padding:0%;font-size:large;font-weight:600}ul[_ngcontent-%COMP%]{list-style-type:none;padding-inline-start:0px!important}textarea[_ngcontent-%COMP%]{padding:3%;resize:none;width:100%;background-color:#fff;color:#000}.mcq-list[_ngcontent-%COMP%]{color:#fff}.date-time-inputs[_ngcontent-%COMP%]{width:100%;background-color:#fff;color:#000;padding:5px 10px}.radio-span[_ngcontent-%COMP%]{padding:0 0 0 20px!important}.submit-btn-div[_ngcontent-%COMP%]{text-align:center!important}.submit-btn[_ngcontent-%COMP%]{padding:2% 5%;border:none;border-radius:8px;font-size:large;font-weight:600;cursor:pointer}"]})}return te})();function Qt(te,k){if(1&te&&(v.\u0275\u0275elementStart(0,"div",2)(1,"span",3),v.\u0275\u0275text(2),v.\u0275\u0275elementEnd()()),2&te){const R=v.\u0275\u0275nextContext();v.\u0275\u0275advance(2),v.\u0275\u0275textInterpolate(R.errorMessage)}}function Jt(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div")(1,"app-page-paginations",10),v.\u0275\u0275listener("btnClick",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.paginatorClick(et))}),v.\u0275\u0275elementEnd()()}if(2&te){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275property("catId",R.mainCategoryId)("articleId",R.articleId)("selectedValue",R.selectedValue)}}function lt(te,k){if(1&te&&(v.\u0275\u0275elementStart(0,"div",13),v.\u0275\u0275element(1,"app-input-textarea",14),v.\u0275\u0275elementEnd()),2&te){const R=v.\u0275\u0275nextContext().$implicit,be=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275property("parentForm",be.parentForm)("inputField",R)}}function _t(te,k){if(1&te&&(v.\u0275\u0275elementStart(0,"div",13),v.\u0275\u0275element(1,"app-input-radio",15),v.\u0275\u0275elementEnd()),2&te){const R=v.\u0275\u0275nextContext().$implicit,be=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275property("parentForm",be.parentForm)("radioField",R)}}function Fe(te,k){if(1&te&&(v.\u0275\u0275elementStart(0,"div",13),v.\u0275\u0275element(1,"app-input-text",14),v.\u0275\u0275elementEnd()),2&te){const R=v.\u0275\u0275nextContext().$implicit,be=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275property("parentForm",be.parentForm)("inputField",R)}}function Ae(te,k){if(1&te&&(v.\u0275\u0275elementStart(0,"div"),v.\u0275\u0275element(1,"div",11),v.\u0275\u0275template(2,lt,2,2,"div",12),v.\u0275\u0275template(3,_t,2,2,"div",12),v.\u0275\u0275template(4,Fe,2,2,"div",12),v.\u0275\u0275elementEnd()),2&te){const R=k.$implicit;v.\u0275\u0275advance(1),v.\u0275\u0275property("innerHtml",R.description,v.\u0275\u0275sanitizeHtml),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf","Type"==R.feFormFieldType.type),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf","MCQ"==R.feFormFieldType.type),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf","DateOnly"==R.feFormFieldType.type||"TimeOnly"==R.feFormFieldType.type||"DateTime"==R.feFormFieldType.type)}}function H(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div",16)(1,"button",17),v.\u0275\u0275listener("click",function(){v.\u0275\u0275restoreView(R);const et=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(et.submitResponse())}),v.\u0275\u0275text(2,"SUBMIT"),v.\u0275\u0275elementEnd()()}if(2&te){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275property("disabled",!R.isAnyFieldFilled()||!R.isRequiredFieldFilled())("ngClass",R.isAnyFieldFilled()&&R.isRequiredFieldFilled()?"submit-btn main-button":"submit-btn main-button submit-disabled")}}function W(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div",16)(1,"button",18),v.\u0275\u0275listener("click",function(){v.\u0275\u0275restoreView(R);const et=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(et.submitResponse())}),v.\u0275\u0275text(2,"SUBMITTED"),v.\u0275\u0275elementEnd()()}if(2&te){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275property("disabled",R.hasSubmitted)}}function He(te,k){if(1&te){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div")(1,"app-page-paginations",10),v.\u0275\u0275listener("btnClick",function(et){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.paginatorClick(et))}),v.\u0275\u0275elementEnd()()}if(2&te){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275property("catId",R.mainCategoryId)("articleId",R.articleId)("selectedValue",R.selectedValue)}}function Te(te,k){if(1&te&&(v.\u0275\u0275elementStart(0,"div",4),v.\u0275\u0275template(1,Jt,2,3,"div",5),v.\u0275\u0275elementStart(2,"div")(3,"label",6),v.\u0275\u0275text(4),v.\u0275\u0275elementEnd()(),v.\u0275\u0275elementStart(5,"form",7),v.\u0275\u0275template(6,Ae,5,4,"div",8),v.\u0275\u0275template(7,H,3,2,"div",9),v.\u0275\u0275template(8,W,3,1,"div",9),v.\u0275\u0275elementEnd(),v.\u0275\u0275template(9,He,2,3,"div",5),v.\u0275\u0275elementEnd()),2&te){const R=v.\u0275\u0275nextContext();v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",R.mainCategoryId),v.\u0275\u0275advance(3),v.\u0275\u0275textInterpolate(R.formName),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngClass",R.isActive?"":"submit-disabled")("formGroup",R.parentForm),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngForOf",R.fields),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",!R.hasSubmitted),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",R.hasSubmitted),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",R.mainCategoryId)}}const mt=[{path:"",component:(()=>{class te{constructor(R,be,et,Ue,ge,ke,gt){this.titleService=R,this.formService=be,this.actRoute=et,this.location=Ue,this.fb=ge,this.router=ke,this.messageService=gt,this.appId=l.Jf,this.userId=l.xS,this.templateName=l.Bv,this.appTitle=l.u2,this.fields=[],this.checked=!1,this.submitFailed=!1,this.selectedValue=0,this.validateObj={},this.hasMsisdn=!0,this.hasStarted=!0,this.hasExpired=!1,this.hasSubmitted=!1,this.isFromCMSAppView=!1,this.isActive=!1,this.errorMessage="",this.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView"),this.messageService.sendMessage({loadImageCount:-2})}ngOnInit(){this.actRoute.params.subscribe(R=>{this.articleId=R.articleId,this.mainCategoryId=R.catId,this.mainCategoryName=R.catName}),this.parentForm=this.fb.group(this.validateObj),this.loadForms(),this.titleService.setLocation("/form/formContent")}paginatorClick(R){if(R.loadedArticle&&this.articleId!=R.loadedArticle.id)if(this.articleId=R.loadedArticle.id,this.selectedValue=R.loadedArticle.index,R.loadedArticle.isForm)this.loadForms();else{let be=R.loadedArticle;this.router.navigate([be.isQuestion?"questions":"product",be.title,this.mainCategoryId,be.id])}}loadForms(){const R=localStorage.getItem(this.appId+"msisdn");this.formService.getFormInfo(R,this.articleId,this.appId).subscribe(be=>{this.formInfo=be.formInfo;let et=this.formInfo.hasAvalabilityPeriod,Ue=this.formInfo.hasLimitedToOneResponse;this.fields=this.formInfo.appFormFields,this.formName=this.formInfo.formName,this.titleService.changeTitle(this.formName);for(let ge of this.fields)ge.isRequired?this.validateObj[ge.code]="Type"==ge.feFormFieldType.type?["",[e.kI.required,e.kI.minLength(1),e.kI.maxLength(500)]]:["",e.kI.required]:"Type"==ge.feFormFieldType.type&&(this.validateObj[ge.code]=["",[e.kI.minLength(1),e.kI.maxLength(500)]]);if(this.parentForm=this.fb.group(this.validateObj),this.isActive=!0,this.errorMessage="",Ue){if(et){let ge=new Date;this.formStartDate=new Date(this.formInfo.startDate),this.formEndDate=new Date(this.formInfo.endDate),ge<this.formStartDate?(this.hasStarted=!1,this.errorMessage="Form Not Started Yet!",this.isActive=!1):ge>this.formEndDate&&(this.hasExpired=!0,this.errorMessage="Form has Expired",this.isActive=!1)}}else if(this.isActive=!0,this.errorMessage="",et){let ge=new Date;this.formStartDate=new Date(this.formInfo.startDate),this.formEndDate=new Date(this.formInfo.endDate),ge<this.formStartDate?(this.hasStarted=!1,this.errorMessage="Form Not Started Yet!",this.isActive=!1):ge>this.formEndDate&&(this.hasExpired=!0,this.errorMessage="Form has Expired",this.isActive=!1)}"SUBMITED"==be.submitStatus&&(this.hasSubmitted=!0,this.errorMessage="You have sucessully added the response",this.isActive=!1)})}isAnyFieldFilled(){for(let R of this.fields)if(this.parentForm?.get(R.code)?.value||R.response&&""!=R.response)return!0;return!1}isRequiredFieldFilled(){let R=!0;for(let be of this.fields)be.isRequired&&!(this.parentForm?.get(be.code)?.value||be.response&&""!=be.response)&&(R=!1);return R}submitResponse(){const R=localStorage.getItem("UUID"),be=localStorage.getItem(this.appId+"msisdn");this.formInfo.appFormFields=this.fields,this.formInfo.userId=this.userId,this.formInfo.deviceUUID=R||"",this.formInfo.msisdn=be||"",this.formInfo.isFromCMSAppView=this.isFromCMSAppView,this.isFromCMSAppView?this.errorMessage="Answers successfully submitted":this.formService.submitResponse(this.formInfo).subscribe(et=>{"success"==et?(this.hasSubmitted=!0,this.errorMessage="Answers successfully submitted",this.isActive=!1):this.submitFailed=!0})}static#e=this.\u0275fac=function(be){return new(be||te)(v.\u0275\u0275directiveInject(d.y),v.\u0275\u0275directiveInject(w),v.\u0275\u0275directiveInject(o.gz),v.\u0275\u0275directiveInject(n.Location),v.\u0275\u0275directiveInject(e.QS),v.\u0275\u0275directiveInject(o.F0),v.\u0275\u0275directiveInject(g.e))};static#t=this.\u0275cmp=v.\u0275\u0275defineComponent({type:te,selectors:[["app-form-content"]],decls:3,vars:2,consts:[["class","message-err",4,"ngIf"],["id","formContent","class","form-page-div main-content-font",4,"ngIf"],[1,"message-err"],[1,"span-err"],["id","formContent",1,"form-page-div","main-content-font"],[4,"ngIf"],[1,"form-name"],[3,"ngClass","formGroup"],[4,"ngFor","ngForOf"],["class","submit-btn-div",4,"ngIf"],[3,"catId","articleId","selectedValue","btnClick"],[1,"html-code-div","main-content-font",3,"innerHtml"],["class","input-type-div main-content-font",4,"ngIf"],[1,"input-type-div","main-content-font"],[3,"parentForm","inputField"],[3,"parentForm","radioField"],[1,"submit-btn-div"],[3,"disabled","ngClass","click"],[1,"submit-btn","main-button","submit-disabled",3,"disabled","click"]],template:function(be,et){1&be&&(v.\u0275\u0275elementStart(0,"div"),v.\u0275\u0275template(1,Qt,3,1,"div",0),v.\u0275\u0275template(2,Te,10,8,"div",1),v.\u0275\u0275elementEnd()),2&be&&(v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",""!=et.errorMessage),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",!1===et.hasExpired))},dependencies:[n.NgClass,n.NgForOf,n.NgIf,e._Y,e.JL,e.sg,f.n,K,Oe,mi],styles:[".form-page-div[_ngcontent-%COMP%]{width:100%!important;padding:5% 5% 100px;margin-top:70px;height:auto}.html-code-div[_ngcontent-%COMP%]{padding:30px 0 0}.input-type-div[_ngcontent-%COMP%]{padding:0 0 10px}.form-name[_ngcontent-%COMP%]{padding:0%;font-size:large;font-weight:600}ul[_ngcontent-%COMP%]{list-style-type:none;padding-inline-start:0px!important}textarea[_ngcontent-%COMP%]{padding:3%;resize:none;width:100%;background-color:#fff;color:#000}.mcq-list[_ngcontent-%COMP%]{color:#fff}.date-time-inputs[_ngcontent-%COMP%]{width:100%;background-color:#fff;color:#000;padding:5px 10px}.radio-span[_ngcontent-%COMP%]{padding:0 0 0 20px!important}.submit-btn-div[_ngcontent-%COMP%]{text-align:center!important}.submit-btn[_ngcontent-%COMP%]{padding:2% 5%;border:none;border-radius:8px;font-size:large;font-weight:600;cursor:pointer;letter-spacing:1.5px}.submit-disabled[_ngcontent-%COMP%]{opacity:.7!important;pointer-events:none!important;cursor:not-allowed!important}.modal[_ngcontent-%COMP%]{display:none;position:fixed;z-index:1000;width:60%;height:30%;inset:30% 20% 40%;overflow:hidden;background-color:transparent!important;box-shadow:#353535 5px}.modal-content-div[_ngcontent-%COMP%]{position:absolute;margin:auto;display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}.modal-content[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column;align-items:center;max-width:100%;height:100%;margin:5%;padding:5% 2% 2%;border:none}.msg-span-div[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:50%}.msg-span[_ngcontent-%COMP%]{color:#000;font-size:larger;font-weight:500;background:transparent;border:none;width:100%;text-align:center}.cls-btn-div[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:50%;background-color:transparent}.modal-close-btn[_ngcontent-%COMP%]{width:75%;height:40%;background-color:#0f5af2;color:#fff;font-size:14px;font-weight:700;border-radius:20px;border:none;letter-spacing:2px}.modal-close-btn[_ngcontent-%COMP%]:hover, .modal-close-btn[_ngcontent-%COMP%]:focus{opacity:1;text-decoration:none;cursor:pointer}.modal-content-div[_ngcontent-%COMP%]{-webkit-animation-name:_ngcontent-%COMP%_zoom;-webkit-animation-duration:.6s;animation-name:_ngcontent-%COMP%_zoom;animation-duration:.6s}@keyframes _ngcontent-%COMP%_zoom{0%{transform:scale(0)}to{transform:scale(1)}}@media only screen and (max-width: 100%){.modal-content-div[_ngcontent-%COMP%]{width:100%}}.message-err[_ngcontent-%COMP%]{position:absolute;text-align:center;padding:2px 10px}.span-err[_ngcontent-%COMP%]{background-color:red;padding:4px 10px;color:#fff;font-weight:700;border-radius:7px}"]})}return te})(),pathMatch:"full"}];let Pe=(()=>{class te{static#e=this.\u0275fac=function(be){return new(be||te)};static#t=this.\u0275mod=v.\u0275\u0275defineNgModule({type:te});static#i=this.\u0275inj=v.\u0275\u0275defineInjector({imports:[o.Bz.forChild(mt),o.Bz]})}return te})();var Qe=a(522);let ut=(()=>{class te{static#e=this.\u0275fac=function(be){return new(be||te)};static#t=this.\u0275mod=v.\u0275\u0275defineNgModule({type:te});static#i=this.\u0275inj=v.\u0275\u0275defineInjector({imports:[n.CommonModule,e.UX,Pe,Qe.p]})}return te})()},7925:(G,P,a)=>{"use strict";a.d(P,{b:()=>w});var n=a(1411),e=a(4650),o=a(8729),l=a(6026),v=a(5550),d=a(9664),u=a(9066),b=a(2684);const C=["messagesContainer"];function x(g,f){1&g&&e.\u0275\u0275element(0,"article-message",5),2&g&&e.\u0275\u0275property("message",f.$implicit)}class w{static#e=this.APP_ID=n.Jf;static#t=this.USER_ID=n.xS;static#i=this.USER_ROLE="APP_USER";constructor(f,S,j,B,Z,le){this.activatedRouted=f,this.titleService=S,this.articleService=j,this.sailsClient=B,this.dataService=Z,this.messageService=le,this.isMobile=!1,this.articleMessages=[],this.articleUser=JSON.parse(localStorage.getItem(w.APP_ID+"ArticleUser")),this.activatedRouted.params.subscribe(q=>{const X=q.title;this.articleId=q.id,this.subscribeToArticleMessage(this.articleId),X&&(this.titleService.changeTitle(X),this.titleService.setLocation("messaging"))}),this.messageService.sendMessage({loadImageCount:-2})}ngOnInit(){this.articleUser&&this.getArticleMessages(),this.dataService.changeIsInMessageConversation(!0),this.dataService.changeArticleNotificationsCount(0),(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))&&(this.isMobile=!0)}ngAfterViewInit(){this.onArticleMessageModelEvents()}ngOnDestroy(){this.dataService.changeIsInMessageConversation(!1)}getArticleMessages(){this.articleService.getArticleMessages(this.articleId,this.articleUser.id,w.USER_ROLE).subscribe(f=>{"SUCCESS"===f.status&&(this.articleMessages=f.data,this.updateIsRead(),this.scrollToBottom())},f=>{console.error(f)})}updateIsRead(){const f=this.articleMessages.reduce((S,j)=>(!j.isSentByArticleUser&&!j.isRead&&S.push(j.id),S),[]);f.length>0&&this.articleService.updateIsRead({messageIds:f}).subscribe(j=>{},j=>{console.error(j)})}subscribeToArticleMessage(f){this.sailsClient.get(`/article/message/subscribe?articleId=${f}`).subscribe()}onArticleMessageModelEvents(){this.sailsClient.on("articlemessage").subscribe(f=>{const S=f;S.isScheduled||this.onNewMessageCreatedHandler(S),S.isScheduled&&this.onMessageUpdateHandler(S)})}onNewMessageCreatedHandler(f){f.articleId===this.articleId&&f.user.id===this.articleUser.id&&"SENT"===f.status&&(this.articleMessages.push(f),this.scrollToBottom())}onMessageUpdateHandler(f){f.articleId===this.articleId&&f.user.id===this.articleUser.id&&"SENT"===f.status&&f.isScheduled&&(this.articleMessages.push(f),this.scrollToBottom())}scrollToBottom(){setTimeout(()=>{try{this.messagesContainer.nativeElement.scrollTop=this.messagesContainer.nativeElement.scrollHeight}catch{}},100)}static#n=this.\u0275fac=function(S){return new(S||w)(e.\u0275\u0275directiveInject(o.gz),e.\u0275\u0275directiveInject(l.y),e.\u0275\u0275directiveInject(v.n),e.\u0275\u0275directiveInject(d.qq),e.\u0275\u0275directiveInject(u.V),e.\u0275\u0275directiveInject(b.e))};static#r=this.\u0275cmp=e.\u0275\u0275defineComponent({type:w,selectors:[["app-messaging"]],viewQuery:function(S,j){if(1&S&&e.\u0275\u0275viewQuery(C,5),2&S){let B;e.\u0275\u0275queryRefresh(B=e.\u0275\u0275loadQuery())&&(j.messagesContainer=B.first)}},decls:6,vars:4,consts:[[1,"a-m-messages-content"],["messagesContainer",""],[3,"message",4,"ngFor","ngForOf"],[1,"a-m-message-send-content"],[3,"id"],[3,"message"]],template:function(S,j){1&S&&(e.\u0275\u0275elementStart(0,"div")(1,"div",0,1),e.\u0275\u0275template(3,x,1,1,"article-message",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",3),e.\u0275\u0275element(5,"send-article-message",4),e.\u0275\u0275elementEnd()()),2&S&&(e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("height",j.isMobile?"calc(100vh - 230px)":"calc(100vh - 180px)"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",j.articleMessages),e.\u0275\u0275advance(2),e.\u0275\u0275property("id",j.articleId))},styles:[".a-m-messages-content[_ngcontent-%COMP%]{margin-top:56px;padding:15px 10px 10px;overflow-y:scroll;height:calc(100vh - 180px)}.a-m-message-send-content[_ngcontent-%COMP%]{padding:0 10px}"]})}},9066:(G,P,a)=>{"use strict";a.d(P,{V:()=>d});var n=a(1411),e=a(8136),o=a(591),l=a(4650),v=a(2684);let d=(()=>{class u{constructor(C){this.messageService=C,this.UNAUTHORISED_ACCESS_MSG="You are not authorized to access the contents.",this.ALREADY_UNSUBSCRIBED_MSG="You got already unsubscribed from this service.",this.USER_AGENT_TEXT_MOBILE="from mobile app",this.SERVER_URL_=e.L,this.appId=n.Jf,this.userId=n.xS,this.MOBITEL_SERVER_URL=n.Xo.xY,this.STATUS_SUBSCRIBED="SUBSCRIBED",this.STATUS_UNSUBSCRIBED="UNSUBSCRIBED",this.isFromMobile=!1,this.isSuspendedApp=!1,this.isFreeCategoryViewAvailable=!0,this.crmLoginRouteEnabled=!1,this.cart={cartItems:[],cartSize:0,totalPrice:0,totalQuantity:0},this.isUserLoggedIn={check:!1},this.parentobj={userLog:!1,cartSize:0,totalPrice:0},this.searchArray=[],this.renewalIntervals=[],this.subUserArticleData={id:null,name:null,image:null},this.pushMessageAttachedArticleId=null,this.defaultNumberOfTries=12,this.initialImageCount=0,this.isImagesLoaded=!1,this.pdfViewerFolder="",this.wrongPinMsg="The PIN you entered could not be verified. Please try again.",this.isInSearchSubject=new o.X(!1),this.isInSearchComponent=this.isInSearchSubject.asObservable(),this.searchSubject=new o.X(""),this.searchTerm=this.searchSubject.asObservable(),this.isFromSearchSubject=new o.X(!1),this.isFromSearchComponent=this.isFromSearchSubject.asObservable(),this.isInHomeSubject=new o.X(!1),this.isInHomeComponent=this.isInHomeSubject.asObservable(),this.newNotificationCountSubject=new o.X(0),this.newNotificationCount=this.newNotificationCountSubject.asObservable(),this.showArticleNotificationSubject=new o.X(!1),this.showArticleNotification=this.showArticleNotificationSubject.asObservable(),this.letestArticleNotificationSubject=new o.X(null),this.letestArticleNotification=this.letestArticleNotificationSubject.asObservable(),this.isInMessageConversationSubject=new o.X(!1),this.isInMessageConversation=this.isInMessageConversationSubject.asObservable(),this.isImageCacheInitializedSubject=new o.X(!1),this.isImageCacheInitialized=this.isImageCacheInitializedSubject.asObservable(),this.loadArticleFromHome=new o.X({}),this.loadArticlesTerm=this.loadArticleFromHome.asObservable(),this.fromBrowser=!0,this.public_key="BPEV6wEYrIFPmJ3stc9ncCdtJ1pzBtVrehqZgkq_MA6-QqmqGNBnXJJQa8--weeLZYOJHq8UZ0p6iMfTxty5E1Q",this.parentobj.cartSize=this.cart.cartSize,this.parentobj.userLog=this.isUserLoggedIn.check}getLocalStorageItem(C){return localStorage.getItem(C)}setLocalStorageItem(C,x){return localStorage.setItem(C,x)}getLocalStorageUUID(){return this.getLocalStorageItem("UUID")}getLocalStorageMSISDN(){return this.getLocalStorageItem(this.appId+"msisdn")}getLocalStorageToken(){return this.getLocalStorageItem("token")}setLocalStorageToken(C){return localStorage.setItem("token",C)}showPopupMessage(C){this.displayMessage=C,$(()=>{$("#appStatusModel").modal("show")})}getServerURL(){return this.SERVER_URL_}getServerUrlForRegisteredMSISDN(){return this.isMobitel()?this.MOBITEL_SERVER_URL:this.SERVER_URL_}hideImageLoadingSpinner(){this.messageService.sendMessage({loadImageCount:-2})}showSpinner(){this.messageService.sendMessage({loadImageCount:-1})}hideSpinner(){this.messageService.sendMessage({loadImageCount:-2})}getAPKVersion(C){let x=1;const w=C.indexOf(" APK_VERSION_END"),g=C.indexOf("APK_VERSION :");return g>0&&(x=-1===w?parseFloat(C.substring(g+13,g+16)):parseFloat(C.substring(g+13,w))),x}getAppApkVersion(){return""+this.getAPKVersion(window.navigator.userAgent)}changeSearchTerm(C){this.searchSubject.next(C)}changeIsInSearchComponent(C){this.isInSearchSubject.next(C)}changeIsFromSearchComponent(C){this.isFromSearchSubject.next(C)}changeInsInHomeComponent(C){this.isInHomeSubject.next(C)}changeArticleNotificationsCount(C){this.newNotificationCountSubject.next(C)}changeLoadArticlesFromHome(C){this.loadArticleFromHome.next(C)}changeShowArticleNotification(C){this.showArticleNotificationSubject.next(C),this.articleNotificationShowingInterval&&clearInterval(this.articleNotificationShowingInterval),this.articleNotificationShowingInterval=setInterval(()=>{this.showArticleNotificationSubject.next(!1)},5e3)}changeLatestArticleNotification(C){this.letestArticleNotificationSubject.next(C)}changeIsInMessageConversation(C){this.isInMessageConversationSubject.next(C)}changeIsImageCacheInitialized(C){this.isImageCacheInitializedSubject.next(C)}isIonicApp(){return this.getAPKVersion(window.navigator.userAgent)<2}isCordovaApp(){return window.hasOwnProperty("cordova")}isFromBrowser(){return this.fromBrowser}setIsFromBrowser(C){this.fromBrowser=C}getRandomId(){return"WEB_"+this.getCurrentDateTimeFormatted()+"_"+Math.floor(1e9+9e9*Math.random())}getCurrentDateTimeFormatted(){const C=new Date;return C.getFullYear()+"-"+(C.getMonth()+1)+"-"+C.getDate()+"_"+C.getHours()+":"+C.getMinutes()+":"+C.getSeconds()}getDeviceUUID(){var C=localStorage.getItem("UUID");return this.isFromBrowser()?C||(C=this.getRandomId(),localStorage.setItem("UUID",C)):C||(C=device.uuid,localStorage.setItem("UUID",C)),C}isMobitel(){if(this.appId&&localStorage.MOBITEL_OP_CODE&&localStorage.MOBITEL_OP_CODE.length>0){let C=this.getLocalStorageMSISDN();return C&&C.length>0&&localStorage.MOBITEL_OP_CODE.includes(C.substring(0,4))}return!1}getOTCMSISDNByCatID(C,x){return localStorage.getItem(C+"_"+x+"_msisdn")}getGallery(C){return $("#gallery").unitegallery({gallery_width:1170,gallery_autoplay:!0,gallery_play_interval:4500,slider_transition_speed:1e3,gallery_pause_on_mouseover:!1,theme_enable_text_panel:!1,gallery_background_color:"rgba(0,0,0,0)",slider_textpanel_bg_color:"#000000",slider_textpanel_bg_opacity:0,slider_scale_mode:"fit",theme_enable_fullscreen_button:!1,slider_control_zoom:!1,slider_enable_zoom_panel:!1,theme_enable_play_button:!1,slider_enable_arrows:!1,slider_enable_progress_indicator:!1})}static#e=this.\u0275fac=function(x){return new(x||u)(l.\u0275\u0275inject(v.e))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac})}return u})()},1526:(G,P,a)=>{"use strict";a.d(P,{F:()=>Te});var n=a(1411),e=a(4650),o=a(6423),l=a(1481),v=a(9066),d=a(8729),u=a(6895),b=a(6026),C=a(2684),x=a(5550),w=a(1713),g=a(2013),f=a(3593),S=a(3777),j=a(231),B=a(529),Z=a(1086);let le=(()=>{class Be{constructor(Pe,Qe){this.http=Pe,this.dataService=Qe,this.appId=n.Jf,this.userId=n.xS}getVoteData(Pe){const Qe={headers:new B.WM({"Content-Type":"application/json"})};return this.http.get(this.dataService.getServerURL()+`/vote/${Pe}/${this.userId}`,Qe)}vote(Pe){const Qe=localStorage.getItem("UUID"),ut=localStorage.getItem(this.appId+"msisdn");Pe={...Pe,userId:this.userId,appId:this.appId,deviceUUID:Qe||"",phone:ut||""},console.log("voteObj ",Pe);const te={headers:new B.WM({"Content-Type":"application/json"})};return this.http.post(this.dataService.getServerURL()+"/vote/lotLogs",Pe,te)}handleError(Pe="operation",Qe){return ut=>(0,Z.of)(Qe)}static#e=this.\u0275fac=function(Qe){return new(Qe||Be)(e.\u0275\u0275inject(B.eN),e.\u0275\u0275inject(v.V))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac,providedIn:"root"})}return Be})();function q(Be,mt){1&Be&&(e.\u0275\u0275elementStart(0,"h6"),e.\u0275\u0275text(1,"Vote Results"),e.\u0275\u0275elementEnd())}function X(Be,mt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"img",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Pe);const ut=e.\u0275\u0275nextContext().$implicit,te=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(te.selectedVal=ut.id)}),e.\u0275\u0275elementEnd()}if(2&Be){const Pe=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("src",Pe.img,e.\u0275\u0275sanitizeUrl)}}function K(Be,mt){1&Be&&e.\u0275\u0275element(0,"div",12)}function U(Be,mt){if(1&Be&&(e.\u0275\u0275elementStart(0,"note"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&Be){const Pe=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("",null==Pe?null:Pe.numberOfVotesPercentage,"%")}}const me=function(Be){return{hideColor:Be}};function xe(Be,mt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"label",13)(1,"input",14),e.\u0275\u0275listener("change",function(ut){e.\u0275\u0275restoreView(Pe);const te=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(te.selectedVals(ut))})("ngModelChange",function(ut){e.\u0275\u0275restoreView(Pe);const te=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(te.selectedVal=ut)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(2,"span",15),e.\u0275\u0275elementEnd()}if(2&Be){const Pe=e.\u0275\u0275nextContext().$implicit,Qe=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,me,Qe.isVoted&&Qe.selectedVal!=Pe.id)),e.\u0275\u0275advance(1),e.\u0275\u0275property("checked",Qe.selectedVal==Pe.id)("ngModel",Qe.selectedVal)("value",Pe.id)}}const ne=function(Be){return{"form-disbale":Be}};function Ze(Be,mt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",5)(1,"span",6),e.\u0275\u0275listener("click",function(){const te=e.\u0275\u0275restoreView(Pe).$implicit,k=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(k.selectedVal=te.id)}),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",7),e.\u0275\u0275template(4,X,1,1,"img",8),e.\u0275\u0275template(5,K,1,0,"div",9),e.\u0275\u0275template(6,U,2,1,"note",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,xe,3,6,"label",10),e.\u0275\u0275elementEnd()}if(2&Be){const Pe=mt.$implicit,Qe=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(8,ne,Qe.isVoted)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(10,me,Qe.isVoted&&Qe.selectedVal!=Pe.id)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(Pe.text),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(12,me,Qe.isVoted&&Qe.selectedVal!=Pe.id)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.img&&""!=Pe.img),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",""==(null==Pe?null:Pe.img)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Qe.isVoted),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","Active"==(null==Qe.voteData?null:Qe.voteData.status)&&!Qe.isVoted)}}function Oe(Be,mt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",16)(1,"button",17),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Pe);const ut=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ut.voteClick())}),e.\u0275\u0275text(2,"Vote"),e.\u0275\u0275elementEnd()()}if(2&Be){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,ne,!Pe.isButtonEabled)),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",!Pe.selectedVal)}}let nt=(()=>{class Be{constructor(Pe){this.voteService=Pe,this.isVoted=!1,this.isButtonEabled=!0}ngOnInit(){this.loadVotes()}loadInits(){const Pe=localStorage.getItem(this.data.id+"vote");this.isVoted=!!Pe,this.selectedVal=Pe||""}loadVotes(){this.voteService.getVoteData(this.data.id).subscribe(Pe=>{this.voteData=Pe[0]?Pe[0]:{},this.loadInits()},Pe=>{console.log("error ",Pe)})}selectedVals(Pe){this.selectedVal=Pe.target.value}voteClick(){this.isButtonEabled=!1,console.log("Calling Votess ",new Date),this.voteService.vote({voteId:this.voteData.id,articleId:this.data.id,optionId:this.selectedVal}).subscribe(Qe=>{localStorage.setItem(Qe.articleId+"vote",Qe.optionId),this.loadVotes()},Qe=>{this.isButtonEabled=!0,console.log("error ",Qe)})}static#e=this.\u0275fac=function(Qe){return new(Qe||Be)(e.\u0275\u0275directiveInject(le))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Be,selectors:[["app-vote"]],inputs:{data:"data"},decls:7,vars:4,consts:[[1,"header",2,"padding","18px"],[1,"header-title"],[4,"ngIf"],["class","options",3,"ngClass",4,"ngFor","ngForOf"],["class","vote-Btn-container",3,"ngClass",4,"ngIf"],[1,"options",3,"ngClass"],[1,"vote-span-text",3,"ngClass","click"],[1,"vote-image-container",3,"ngClass"],["style","width: 120px; height: 120px; height: 120px; object-fit: cover; align-self: flex-end;","alt","",3,"src","click",4,"ngIf"],["style","width: 120px; height: 120px; height: 120px; background-color: #ffffff; align-self: flex-end;",4,"ngIf"],["class","containerS",3,"ngClass",4,"ngIf"],["alt","",2,"width","120px","height","120px","height","120px","object-fit","cover","align-self","flex-end",3,"src","click"],[2,"width","120px","height","120px","height","120px","background-color","#ffffff","align-self","flex-end"],[1,"containerS",3,"ngClass"],["type","checkbox",3,"checked","ngModel","value","change","ngModelChange"],[1,"checkmark"],[1,"vote-Btn-container",3,"ngClass"],[1,"vote-Btn",3,"disabled","click"]],template:function(Qe,ut){1&Qe&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h3"),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,q,2,0,"h6",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,Ze,8,14,"div",3),e.\u0275\u0275template(6,Oe,3,4,"div",4),e.\u0275\u0275elementEnd()),2&Qe&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(null==ut.voteData?null:ut.voteData.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ut.isVoted),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==ut.voteData?null:ut.voteData.voteOptions),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","Active"==(null==ut.voteData?null:ut.voteData.status)&&!ut.isVoted))},dependencies:[u.NgClass,u.NgForOf,u.NgIf],styles:['.options[_ngcontent-%COMP%]{display:flex;margin:15px}.form-disbale[_ngcontent-%COMP%]{pointer-events:none}.header-title[_ngcontent-%COMP%]{text-align:center}.hideColor[_ngcontent-%COMP%]{opacity:.5}.vote-Btn-container[_ngcontent-%COMP%]{text-align:center}.vote-Btn[_ngcontent-%COMP%]{background-color:#b1b1b1;width:50%;border:.1px solid #c7bbbb;height:40px;border-radius:13px;font-weight:700}button[disabled][_ngcontent-%COMP%]{color:#f0f8ff;background-color:#ccc}.vote-image-container[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;text-align:right}.vote-span-text[_ngcontent-%COMP%]{flex:2;align-self:center;margin-right:3px}.containerS[_ngcontent-%COMP%]{display:block;position:relative;cursor:pointer;font-size:22px;-webkit-user-select:none;user-select:none;align-self:center}.containerS[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkmark[_ngcontent-%COMP%]{position:absolute;top:-9px;left:4px;height:25px;width:25px;background-color:#eee;border-radius:50%}.containerS[_ngcontent-%COMP%]:hover   input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%]{background-color:#ccc}.containerS[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{background-color:#2196f3}.checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none}.containerS[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}.containerS[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]:after{top:9px;left:9px;width:8px;height:8px;border-radius:50%;background:white}']})}return Be})();var qe=a(7289),ct=a(129);let ot=(()=>{class Be{constructor(Pe){this.sanitized=Pe}transform(Pe){return this.sanitized.bypassSecurityTrustHtml(Pe)}static#e=this.\u0275fac=function(Qe){return new(Qe||Be)(e.\u0275\u0275directiveInject(l.H7,16))};static#t=this.\u0275pipe=e.\u0275\u0275definePipe({name:"safeHtml",type:Be,pure:!0});static#i=this.\u0275prov=e.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac})}return Be})();function dt(Be,mt){if(1&Be&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275element(1,"ng2-pdfjs-viewer",15),e.\u0275\u0275elementEnd()),2&Be){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("viewerFolder",Pe.pdfViewerFolder)("pdfSrc",Pe.pdfDataUrl)("openFile",!1)("fullScreen",!1)("download",Pe.pdfDownload)}}function jt(Be,mt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"img",20),e.\u0275\u0275listener("load",function(ut){e.\u0275\u0275restoreView(Pe);const te=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(te.imageLoaded(ut))}),e.\u0275\u0275elementEnd()}if(2&Be){const Pe=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275propertyInterpolate("alt",Pe.name),e.\u0275\u0275property("src",Pe.imageUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275attribute("data-image",Pe.imageUrl)}}function zt(Be,mt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"img",20),e.\u0275\u0275listener("load",function(ut){e.\u0275\u0275restoreView(Pe);const te=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(te.imageLoaded(ut))}),e.\u0275\u0275elementEnd()}if(2&Be){const Pe=e.\u0275\u0275nextContext(2).$implicit,Qe=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("alt",Pe.name),e.\u0275\u0275property("src",Pe.img?Pe.imageUrl:"",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275attribute("data-type",Pe.videoType)("data-image",Pe.img?Pe.imageUrl:"")("data-videoid",Qe.checkUrl(Pe.videoUrl,Pe.videoType))}}function ti(Be,mt){if(1&Be&&(e.\u0275\u0275template(0,jt,1,3,"img",19),e.\u0275\u0275template(1,zt,1,5,"img",19)),2&Be){const Pe=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("ngIf",null==Pe.videoUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null!=Pe.videoUrl)}}function mi(Be,mt){1&Be&&e.\u0275\u0275template(0,ti,2,2,"ng-template",18),2&Be&&e.\u0275\u0275property("ngIf",mt.$implicit)}const Qt=function(){return[]};function Jt(Be,mt){if(1&Be&&(e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275template(1,mi,1,1,null,17),e.\u0275\u0275elementEnd()),2&Be){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",Pe.getArrayData(Pe.Data?Pe.Data.tempImageArray:e.\u0275\u0275pureFunction0(1,Qt)))}}function lt(Be,mt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"app-page-paginations",21),e.\u0275\u0275listener("btnClick",function(ut){e.\u0275\u0275restoreView(Pe);const te=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(te.paginatorClick(ut))}),e.\u0275\u0275elementEnd()()}if(2&Be){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("catId",Pe.catId)("articleId",Pe.articleId)("selectedValue",Pe.selectedValue)}}function _t(Be,mt){if(1&Be&&(e.\u0275\u0275elementStart(0,"div",22)(1,"h4",23),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"app-rss-feed",24),e.\u0275\u0275elementEnd()),2&Be){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(Pe.Data?Pe.Data.title:""),e.\u0275\u0275advance(1),e.\u0275\u0275property("rssFeedUrl",Pe.rssFeedUrl)("catId",Pe.catId)("articleId",Pe.articleId)}}function Fe(Be,mt){if(1&Be&&(e.\u0275\u0275elementStart(0,"div",22)(1,"h4",23),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"div",25),e.\u0275\u0275pipe(4,"safeHtml"),e.\u0275\u0275elementEnd()),2&Be){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(Pe.Data?Pe.Data.title:""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass","text"===Pe.Data.isHtmlCode?"desc ql-editor no-padding":"")("innerHtml",e.\u0275\u0275pipeBind1(4,3,Pe.Data.desc),e.\u0275\u0275sanitizeHtml)}}function Ae(Be,mt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"app-page-paginations",21),e.\u0275\u0275listener("btnClick",function(ut){e.\u0275\u0275restoreView(Pe);const te=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(te.paginatorClick(ut))}),e.\u0275\u0275elementEnd()()}if(2&Be){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("catId",Pe.catId)("articleId",Pe.articleId)("selectedValue",Pe.selectedValue)}}function H(Be,mt){if(1&Be&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"app-vote",26),e.\u0275\u0275elementEnd()),2&Be){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("data",Pe.Data)}}function W(Be,mt){if(1&Be&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"article-commenting-section",27),e.\u0275\u0275elementEnd()),2&Be){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("id",Pe.articleId)}}function He(Be,mt){if(1&Be&&(e.\u0275\u0275elementStart(0,"div",28),e.\u0275\u0275element(1,"send-message-button",29),e.\u0275\u0275elementEnd()),2&Be){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("id",Pe.articleId)("title",Pe.articleName)}}let Te=(()=>{class Be{constructor(Pe,Qe,ut,te,k,R,be,et,Ue,ge,ke){this.productService=Pe,this.sanitizer=Qe,this.dataService=ut,this.router=te,this.route=k,this.location=R,this.title=be,this.messageService=et,this.articleService=Ue,this.profileService=ge,this.notificationService=ke,this.appId=n.Jf,this.userId=n.xS,this.templateName=n.Bv,this.parentobj={cartItems:[],cartSize:0,totalPrice:0},this.lockBuyButton=!1,this.loadImageCount=0,this.isMessagingEnabled=!1,this.isCommentingEnbled=!1,this.hideImageLoadingSpinner=!1,this.isVote=!1,this.pdfDataUrl="",this.pdfViewerFolder="",this.pdfDownload=!1,this.selectedValue=0,this.isRssFeedEnable=!1,this.isApplyAndSave=!1,this.isDeactivedJobUser=!0,this.isApplied=!1,this.isSaved=!1,this.isFromCMSAppView=!1,this.rssFeedUrl="",this.initializeGallery=()=>{$("#gallery div").remove(),setTimeout(()=>{this.setGallery()},1)},this.setGallery=()=>{this.api="Jobs-III"==this.templateName?$("#gallery").unitegallery({theme_enable_text_panel:!1,gallery_background_color:"rgba(0,0,0,0)",slider_textpanel_bg_color:"#000000",slider_textpanel_bg_opacity:0,slider_scale_mode:"fit",theme_enable_fullscreen_button:!1,slider_enable_zoom_panel:!1,theme_enable_play_button:!1}):"Astro"!=this.templateName?$("#gallery").unitegallery({theme_enable_text_panel:!1,gallery_background_color:"rgba(0,0,0,0)",slider_textpanel_bg_color:"#000000",slider_textpanel_bg_opacity:0,slider_scale_mode:"fit"}):$("#gallery").unitegallery({theme_enable_text_panel:!1,gallery_background_color:"rgba(0,0,0,0)",slider_textpanel_bg_color:"#000000",slider_textpanel_bg_opacity:0,slider_scale_mode:"fill",theme_enable_hidepanel_button:!1,theme_enable_play_button:!1,slider_enable_zoom_panel:!1,slider_enable_progress_indicator:!1,theme_enable_fullscreen_button:!1,theme_hide_panel_under_width:4e3})},this.Data=this.dataService.data,this.pdfViewerFolder=this.dataService.pdfViewerFolder;const gt=this.Data?this.Data.tempImageArray:null;this.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView"),gt&&this.dataService.isCordovaApp()&&this.checkImagesAreInCache(gt),this.title.setLocation("product"),this.messageService.sendMessage("Comic"!=this.templateName?{loadImageCount:-1}:{loadImageCount:-2}),this.dataService.initialImageCount=gt?gt.length:0,this.hideImageLoadingSpinner&&this.messageService.sendMessage({loadImageCount:this.dataService.initialImageCount})}setCarousalControlls(){$(".ug-zoompanel").css("display","none"),$(".ug-default-button-hidepanel").css("display","none"),$(".ug-default-button-fullscreen-single").css("display","none"),$(".ug-default-button-play-single").css({right:"2px",left:"unset"})}loadArticle(Pe,Qe){Pe&&Qe&&(this.dataService.catId=Pe,this.productService.getArticleById(Qe).subscribe(te=>{if(this.isVote=te.isVote,te){console.log(te),this.isMessagingEnabled=te.isMessagingEnabled,this.isCommentingEnbled=te.isCommentingEnbled;var k=te.isPdfUploadEnable||te.isPdfUploadEnableDownloadDisabled||te.isPdfUploadEnableDownloadEnabled;this.isRssFeedEnable=te.isRssFeedEnable;var R=this.dataService.getLocalStorageMSISDN();if(this.articleName=te.title,this.isApplyAndSave=te.isApplyAndSave,this.isApplied=te.isApplied,this.isSaved=te.isSaved,!this.dataService.isFromCMSAppView&&this.articleName&&this.productService.createArticleViewDataInfo(R,this.articleName,te.id).subscribe(be=>{this.results=be},be=>{console.log("Error on create record")}),k)if(this.title.changeTitle(this.articleName),this.pdfDownload=!!te.isPdfUploadEnableDownloadEnabled,this.dataService.isCordovaApp()&&te.isPdfUploadEnableDownloadEnabled){let be=this;PreviewAnyFile.preview(te.pdfDataUrl,function(et){be.location.back(),"SUCCESS"==et?console.log("success"):console.log("error")},function(et){be.location.back(),console.log("err",et)})}else this.messageService.sendMessage({loadImageCount:this.dataService.initialImageCount}),this.pdfDataUrl=te.pdfDataUrl;else{this.dataService.data=te,this.title.changeTitle(this.articleName),this.Data=te;const be=this.Data.tempImageArray;this.dataService.initialImageCount=be?be.length:0,this.initializeGallery(),this.isRssFeedEnable&&(this.rssFeedUrl=te.rssFeedUrl)}}else console.log("Article not found for the catId: "+Pe+" articleId: "+Qe),this.Data.tempImageArray=0},ut=>{console.log("Error shop service"),this.Data.tempImageArray=0}))}ngOnInit(){this.router.params.subscribe(Pe=>{this.articleId=Pe.articleId,this.catId=Pe.catId,this.loadArticle(this.catId,this.articleId)}),window.addEventListener("message",Pe=>{"pdf_viewer"==Pe.data.from&&this.dataService.isCordovaApp&&this.productService.download(this.pdfDataUrl).then(Qe=>{Qe&&$(".pdf-download-modal").modal()})},!1),"Jobs-III"==this.templateName&&(this.jobAppInfo={appId:this.appId,articleId:this.articleId,formDataId:this.profileService.getformDataId()},this.profileService.checkJobAppUserStatus({formDataId:this.jobAppInfo.formDataId}).subscribe(Pe=>{this.isDeactivedJobUser=0!=Pe.status},Pe=>{console.log("checkJobAppUserStatus failed !",Pe)}))}getVideoType(Pe){let Qe="youtube";return Pe.match("vimeo")&&(Qe="vimeo"),Qe}getArrayData(Pe){for(const Qe of Pe)Qe.videoUrl&&Qe.videoUrl.match("vimeo")?Qe.videoType="vimeo":Qe.videoUrl&&(Qe.videoType="youtube");return Pe}checkUrl(Pe,Qe){let ut;if("youtube"===Qe){const k=Pe.slice(8).split(/\/|&|=/);ut=k.length>2?k[2]:k[1]}else"vimeo"===Qe&&(ut=Pe.substring(Pe.indexOf("video")+6));return ut}applyOrSaveVacancy(Pe){Pe&&!this.isApplied?this.isApplied=!0:!Pe&&!this.isSaved&&(this.isSaved=!0),this.profileService.getformDataId()?(this.jobAppInfo.isApply=Pe,this.profileService.applyOrSaveVacancy(this.jobAppInfo).subscribe(Qe=>{this.notificationService.showNotification(Qe.msg)},Qe=>{console.log("error --\x3e",Qe),this.notificationService.showNotification("error occurred, Try again !!!")})):this.route.navigate(["job/form"])}imageLoaded(Pe){this.hideImageLoadingSpinner||(this.loadImageCount+=1,this.messageService.sendMessage({loadImageCount:this.loadImageCount}))}checkImagesAreInCache(Pe){let Qe=0;for(let ut=0;ut<Pe.length;ut++){let te="object"==typeof Pe[ut].imgUrl?Pe[ut].imgUrl.changingThisBreaksApplicationSecurity:Pe[ut].imgUrl;te&&te.includes("http")&&Qe++}0===Qe&&(this.hideImageLoadingSpinner=!0)}paginatorClick(Pe){if(Pe.loadedArticle&&this.articleId!=Pe.loadedArticle.id)if(Pe.loadedArticle.isForm){let Qe=Pe.loadedArticle;this.route.navigate(["form",Qe.title,this.catId,Qe.id])}else this.pdfDataUrl="",this.articleId=Pe.loadedArticle.id,this.selectedValue=Pe.loadedArticle.index,this.setAllToReset(),this.loadArticle(this.catId,Pe.loadedArticle.id)}setAllToReset(){this.isVote=!1,this.isMessagingEnabled=!1,this.isCommentingEnbled=!1}static#e=this.\u0275fac=function(Qe){return new(Qe||Be)(e.\u0275\u0275directiveInject(o.s),e.\u0275\u0275directiveInject(l.H7),e.\u0275\u0275directiveInject(v.V),e.\u0275\u0275directiveInject(d.gz),e.\u0275\u0275directiveInject(d.F0),e.\u0275\u0275directiveInject(u.Location),e.\u0275\u0275directiveInject(b.y),e.\u0275\u0275directiveInject(C.e),e.\u0275\u0275directiveInject(x.n),e.\u0275\u0275directiveInject(w.H),e.\u0275\u0275directiveInject(g.g))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Be,selectors:[["app-product"]],decls:20,vars:9,consts:[[1,"page-container"],["style","height: 94vh;",4,"ngIf"],["id","gallery","style","display:none;",4,"ngIf"],[4,"ngIf"],["class","padding",4,"ngIf"],["class","messaging",4,"ngIf"],["onclick","scrollToTarget('1')",1,"bloc-button","btn","btn-d","scrollToTop"],[1,"fa","fa-chevron-up"],["tabindex","-1","role","dialog","aria-labelledby","pdf install","aria-hidden","true",1,"modal","fade","pdf-download-modal"],[1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["id","exampleModalLongTitle",1,"modal-title"],[2,"height","94vh"],[3,"viewerFolder","pdfSrc","openFile","fullScreen","download"],["id","gallery",2,"display","none"],[4,"ngFor","ngForOf"],[3,"ngIf"],["style","display: none",3,"alt","src","load",4,"ngIf"],[2,"display","none",3,"alt","src","load"],[3,"catId","articleId","selectedValue","btnClick"],[1,"padding"],[1,"text-center","main-header-font"],[3,"rssFeedUrl","catId","articleId"],["id","article-body-content",3,"ngClass","innerHtml"],[3,"data"],[3,"id"],[1,"messaging"],[3,"id","title"]],template:function(Qe,ut){1&Qe&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,dt,2,5,"div",1),e.\u0275\u0275template(2,Jt,2,2,"div",2),e.\u0275\u0275template(3,lt,2,3,"div",3),e.\u0275\u0275template(4,_t,4,4,"div",4),e.\u0275\u0275template(5,Fe,5,5,"div",4),e.\u0275\u0275template(6,Ae,2,3,"div",3),e.\u0275\u0275template(7,H,2,1,"div",3),e.\u0275\u0275template(8,W,2,1,"div",3),e.\u0275\u0275template(9,He,2,2,"div",5),e.\u0275\u0275elementStart(10,"a",6),e.\u0275\u0275element(11,"span",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"div",8)(13,"div",9)(14,"div",10)(15,"div",11)(16,"button",12),e.\u0275\u0275text(17," \xd7 "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"h5",13),e.\u0275\u0275text(19,"Pdf file successfully downloaded to device Dowload folder "),e.\u0275\u0275elementEnd()()()()()()),2&Qe&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ut.pdfDataUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!ut.pdfDataUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ut.catId&&!ut.pdfDataUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ut.Data&&ut.isRssFeedEnable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ut.Data&&!ut.pdfDataUrl&&!ut.isRssFeedEnable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ut.catId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ut.isVote),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ut.isCommentingEnbled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ut.isMessagingEnabled))},dependencies:[u.NgClass,u.NgForOf,u.NgIf,f.o,S.c,j.e,nt,qe.n,ct.v,ot],styles:[".desc[_ngcontent-%COMP%]{white-space:pre-wrap;margin-bottom:25px}.carousel-control[_ngcontent-%COMP%]{height:86%}.page-container[_ngcontent-%COMP%]{padding-top:58px;padding-bottom:100px}.messaging[_ngcontent-%COMP%]{margin-bottom:64px}  .ug-gallery-wrapper .ug-slider-wrapper{background-color:#0000!important}  .ug-slider-wrapper .ug-item-wrapper{background-color:#0000!important}  .ug-theme-panel .ug-strip-panel{background-color:#0000!important}  .ug-videoplayer .ug-videoplayer-button-close{background-image:none!important}"]})}return Be})()},6565:(G,P,a)=>{"use strict";a.r(P),a.d(P,{QuestionProductModule:()=>Bt});var n=a(6895),e=a(8729),o=a(4650),l=a(529),v=a(8136),d=a(1411),u=a(7221),b=a(1086),C=a(9066);let x=(()=>{class st{constructor(at,Lt){this.http=at,this.dataService=Lt,this.appId=d.Jf,this.userId=d.xS}getArticleById(at){const Lt={headers:new l.WM({"Content-Type":"application/json"}),params:(new l.LE).append("appId",this.appId).append("userId",this.userId).append("articleId",at)};return this.http.get(v.L+"/templates/getArticleById",Lt).pipe((0,u.K)(this.handleError("getArticleById",[])))}createArticleViewDataInfo(at,Lt,Rt){const ai={headers:new l.WM({"Content-Type":"application/json"}),params:(new l.LE).append("appId",this.appId).append("articleName",Lt).append("msisdn",at).append("articleId",Rt)};return this.http.get(this.dataService.getServerUrlForRegisteredMSISDN()+"/templates/createArticleViewDataInfo",ai).pipe((0,u.K)(this.handleError("createArticleViewDataInfo",[])))}getLocalStorageMSISDN(){return this.getLocalStorageItem(this.appId+"msisdn")}getQuestions(at){const Lt={headers:new l.WM({"Content-Type":"application/json"})};return this.http.get(v.L+`/questions/${at}/${this.userId}`,Lt).pipe((0,u.K)(this.handleError("getAppDetails",[])))}checkAwnser(at){const Lt={headers:new l.WM({"Content-Type":"application/json"})};return this.http.get(v.L+`/questions/checkAwnser/${at}/${this.userId}/${this.appId}`,Lt).pipe((0,u.K)(this.handleError("getAppDetails",[])))}getLocalStorageItem(at){return localStorage.getItem(at)}download(at){const Lt=new window.FileTransfer;let Rt=encodeURI(at),Xt=`file:///storage/emulated/0/Download/myArticle${(new Date).getTime()}.pdf`;return new Promise(ui=>{Lt.download(Rt,Xt,function(vt){ui(!0)},function(vt){console.log("download error source "+vt.source),console.log("download error target "+vt.target),console.log("download error code"+vt.code),ui(!1)},!1,{})})}handleError(at="operation",Lt){return Rt=>(this.log(`${at} failed: ${Rt.message}`),(0,b.of)(Lt))}log(at){console.error(at)}static#e=this.\u0275fac=function(Lt){return new(Lt||st)(o.\u0275\u0275inject(l.eN),o.\u0275\u0275inject(C.V))};static#t=this.\u0275prov=o.\u0275\u0275defineInjectable({token:st,factory:st.\u0275fac,providedIn:"root"})}return st})();var w=a(6026),g=a(2684),f=a(3593),S=a(3777),j=a(7289),B=a(129),Z=a(231),le=a(1481);let q=(()=>{class st{constructor(at){this.sanitized=at}transform(at){return this.sanitized.bypassSecurityTrustHtml(at)}static#e=this.\u0275fac=function(Lt){return new(Lt||st)(o.\u0275\u0275directiveInject(le.H7,16))};static#t=this.\u0275pipe=o.\u0275\u0275definePipe({name:"htmlSafe",type:st,pure:!0})}return st})();function X(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"span",12),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&st){const at=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1("",null!=at.questionData&&null!=at.questionData.result&&at.questionData.result.isCorrect?at.questionData.points:"0"," Points")}}function K(st,Nt){1&st&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275elementStart(0,"svg",14),o.\u0275\u0275element(1,"path",15)(2,"path",16),o.\u0275\u0275elementEnd())}function U(st,Nt){1&st&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275elementStart(0,"svg",17),o.\u0275\u0275element(1,"path",15)(2,"path",18)(3,"path",19),o.\u0275\u0275elementEnd())}function me(st,Nt){if(1&st&&(o.\u0275\u0275template(0,K,3,0,"ng-template",10),o.\u0275\u0275template(1,U,4,0,"ng-template",null,13,o.\u0275\u0275templateRefExtractor)),2&st){const at=o.\u0275\u0275reference(2),Lt=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("ngIf",null==Lt.questionData||null==Lt.questionData.result?null:Lt.questionData.result.isCorrect)("ngIfElse",at)}}function xe(st,Nt){if(1&st&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,X,2,1,"ng-template",10),o.\u0275\u0275template(2,me,3,2,"ng-template",null,11,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementContainerEnd()),2&st){const at=o.\u0275\u0275reference(3),Lt=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","points"==(null==Lt.questionData||null==Lt.questionData.resultType?null:Lt.questionData.resultType.code))("ngIfElse",at)}}function ne(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"div",20)(1,"span",21),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd()()),2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1("Correct Answer : ",at.questionData.answer[0].value,"")}}let Ze=(()=>{class st{constructor(){this.submitClickEvent=new o.EventEmitter,this.isInvalid=!0}chnage(at){this.isInvalid=""===at.target.value}ngOnInit(){document.getElementById("titleInput").innerHTML=this.questionData.result?this.questionData.result.value:""}submitClick(at){this.submitClickEvent.emit(at)}static#e=this.\u0275fac=function(Lt){return new(Lt||st)};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:st,selectors:[["app-input-question"]],inputs:{questionData:["data","questionData"],allowedToShowResult:"allowedToShowResult",disableSubmitButton:"disableSubmitButton"},outputs:{submitClickEvent:"submit"},decls:16,vars:9,consts:[[1,"input-body"],[1,"main-header-font"],["id","article-body-content",1,"desc","ql-editor","no-padding","main-header-font","desc-div","question-txt",3,"innerHtml"],[1,"answer-box","answer-txt"],["rows","auto","maxlength","4096","id","titleInput",1,"text-area",3,"disabled","value","valueChange","keyup"],["titleInput",""],[1,"answer-box-area"],[1,"submit-btn",3,"disabled","click"],[4,"ngIf"],["class","correct-answer-area",4,"ngIf"],[3,"ngIf","ngIfElse"],["rightOrWrong",""],[1,"points-label"],["wrong",""],["width","1em","height","1em","viewBox","0 0 16 16","fill","currentColor","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-check-square","svg-img"],["fill-rule","evenodd","d","M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"],["fill-rule","evenodd","d","M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.236.236 0 0 1 .02-.022z"],["width","1em","height","1em","viewBox","0 0 16 16","fill","currentColor","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-x-square","svg-img-wrong"],["fill-rule","evenodd","d","M11.854 4.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708-.708l7-7a.5.5 0 0 1 .708 0z"],["fill-rule","evenodd","d","M4.146 4.146a.5.5 0 0 0 0 .708l7 7a.5.5 0 0 0 .708-.708l-7-7a.5.5 0 0 0-.708 0z"],[1,"correct-answer-area"],[1,"main-content-font","answer-line"]],template:function(Lt,Rt){if(1&Lt){const ai=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275element(1,"hr"),o.\u0275\u0275elementStart(2,"span",1),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(4,"div",2),o.\u0275\u0275pipe(5,"htmlSafe"),o.\u0275\u0275elementStart(6,"div",3)(7,"span"),o.\u0275\u0275text(8,"Your Answer"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(9,"textarea",4,5),o.\u0275\u0275listener("valueChange",function(ui){return Rt.questionData.awn=ui})("keyup",function(ui){return Rt.chnage(ui)}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(11,"div",6)(12,"button",7),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(ai);const ui=o.\u0275\u0275reference(10);return o.\u0275\u0275resetView(Rt.submitClick(ui.value))}),o.\u0275\u0275text(13,"Submit"),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(14,xe,4,2,"ng-container",8),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(15,ne,3,1,"div",9),o.\u0275\u0275elementEnd()()}2&Lt&&(o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1("",Rt.questionData?Rt.questionData.title:"",":"),o.\u0275\u0275advance(1),o.\u0275\u0275property("innerHtml",o.\u0275\u0275pipeBind1(5,7,Rt.questionData.desc),o.\u0275\u0275sanitizeHtml),o.\u0275\u0275advance(5),o.\u0275\u0275property("disabled",null==Rt.questionData?null:Rt.questionData.result)("value",Rt.questionData.awn),o.\u0275\u0275advance(3),o.\u0275\u0275property("disabled",Rt.isInvalid||(null==Rt.questionData?null:Rt.questionData.result)||Rt.disableSubmitButton),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",Rt.questionData&&((null==Rt.questionData?null:Rt.questionData.result)&&Rt.allowedToShowResult||Rt.questionData.isTimerEnable&&Rt.disableSubmitButton)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Rt.questionData&&(Rt.questionData.result&&!(null!=Rt.questionData&&null!=Rt.questionData.result&&Rt.questionData.result.isCorrect)&&Rt.allowedToShowResult||!Rt.questionData.result&&Rt.disableSubmitButton)))},dependencies:[n.NgIf,q],styles:[".input-body[_ngcontent-%COMP%]{padding:18px}.desc-div[_ngcontent-%COMP%]{align-content:center;margin-top:5px;margin-bottom:5px}.answer-box[_ngcontent-%COMP%]{display:flex;flex-direction:column}.text-area[_ngcontent-%COMP%]{border:1px solid #b1b1b1;border-radius:8px;min-height:60px}.submit-btn[_ngcontent-%COMP%]{flex:1;height:40px;background-color:#39d;color:#fff;border-radius:6px;margin:5px auto auto}button[disabled][_ngcontent-%COMP%]{background-color:#b1b1b1}.answer-box-area[_ngcontent-%COMP%]{display:flex;width:60%}.points-label[_ngcontent-%COMP%]{margin:15px 6px;font-weight:700}.svg-img[_ngcontent-%COMP%]{background-color:#81e601;color:#fff;font-size:3em;margin:5px}.svg-img-wrong[_ngcontent-%COMP%]{background-color:#e65301;color:#fff;font-size:3em;margin:5px}  .question-txt p{font-size:18px;font-family:Roboto,sans-serif}.answer-txt[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{font-size:15px}"]})}return st})();var Oe=a(4006);function nt(st,Nt){if(1&st&&o.\u0275\u0275element(0,"img",13),2&st){const at=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275property("src",at.value,o.\u0275\u0275sanitizeUrl)}}function qe(st,Nt){if(1&st&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"label",9),o.\u0275\u0275text(2),o.\u0275\u0275template(3,nt,1,1,"img",10),o.\u0275\u0275element(4,"input",11)(5,"span",12),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementContainerEnd()),2&st){const at=Nt.$implicit;o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1("",at.answerType?"":at.value," "),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",at.answerType),o.\u0275\u0275advance(1),o.\u0275\u0275propertyInterpolate("value",at.id)}}function ct(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"span",16),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&st){const at=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1("",null!=at.questionData&&null!=at.questionData.result&&at.questionData.result.isCorrect?at.questionData.points:"0"," Points")}}function ot(st,Nt){1&st&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275elementStart(0,"svg",18),o.\u0275\u0275element(1,"path",19)(2,"path",20),o.\u0275\u0275elementEnd())}function dt(st,Nt){1&st&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275elementStart(0,"svg",21),o.\u0275\u0275element(1,"path",19)(2,"path",22)(3,"path",23),o.\u0275\u0275elementEnd())}function jt(st,Nt){if(1&st&&(o.\u0275\u0275template(0,ot,3,0,"ng-template",14),o.\u0275\u0275template(1,dt,4,0,"ng-template",null,17,o.\u0275\u0275templateRefExtractor)),2&st){const at=o.\u0275\u0275reference(2),Lt=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("ngIf",null==Lt.questionData||null==Lt.questionData.result?null:Lt.questionData.result.isCorrect)("ngIfElse",at)}}function zt(st,Nt){if(1&st&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,ct,2,1,"ng-template",14),o.\u0275\u0275template(2,jt,3,2,"ng-template",null,15,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementContainerEnd()),2&st){const at=o.\u0275\u0275reference(3),Lt=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","points"==(null==Lt.questionData||null==Lt.questionData.resultType?null:Lt.questionData.resultType.code))("ngIfElse",at)}}function ti(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"span",26),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&st){const at=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1("Correct Answer : ",at.getCorrectAnswer(),"")}}function mi(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"div",24),o.\u0275\u0275template(1,ti,2,1,"span",25),o.\u0275\u0275elementEnd()),2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",at.getCorrectAnswer())}}let Qt=(()=>{class st{constructor(at){this.fb=at,this.submitClickEvent=new o.EventEmitter,this.isAwnsers=[],this.disabled=!1}ngOnInit(){this.isAwnsers=this.questionData.answer,this.form=this.fb.group({awnser:[this.questionData.result?this.questionData.result.id:"",Oe.kI.required]}),this.questionData.result&&(this.form.get("awnser").disable(),this.form.disable())}submitClick(){const at=this.isAwnsers.find(Lt=>Lt.id===this.form.value.awnser);this.submitClickEvent.emit(at.value)}getCorrectAnswer(){let at=this.questionData.answer.find(Lt=>{if(Lt.isCorrect)return Lt});return at&&at.value?at.value:null}static#e=this.\u0275fac=function(Lt){return new(Lt||st)(o.\u0275\u0275directiveInject(Oe.QS))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:st,selectors:[["app-mcq-question"]],inputs:{questionData:["data","questionData"],allowedToShowResult:"allowedToShowResult",disableSubmitButton:"disableSubmitButton",selectedResults:["result","selectedResults"]},outputs:{submitClickEvent:"submit"},decls:13,vars:9,consts:[[1,"input-body"],[1,"main-header-font"],["id","article-body-content",1,"desc","ql-editor","no-padding","main-header-font","desc-div","question-txt",3,"innerHtml"],[3,"formGroup"],[4,"ngFor","ngForOf"],[1,"answer-box"],[1,"submit-btn",3,"disabled","click"],[4,"ngIf"],["class","correct-answer-area",4,"ngIf"],[1,"container","answer-txt"],["style","width: 100%;","alt","",3,"src",4,"ngIf"],["type","radio","formControlName","awnser",3,"value"],[1,"checkmark"],["alt","",2,"width","100%",3,"src"],[3,"ngIf","ngIfElse"],["rightOrWrong",""],[1,"points-label"],["wrong",""],["width","1em","height","1em","viewBox","0 0 16 16","fill","currentColor","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-check-square","svg-img"],["fill-rule","evenodd","d","M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"],["fill-rule","evenodd","d","M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.236.236 0 0 1 .02-.022z"],["width","1em","height","1em","viewBox","0 0 16 16","fill","currentColor","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-x-square","svg-img-wrong"],["fill-rule","evenodd","d","M11.854 4.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708-.708l7-7a.5.5 0 0 1 .708 0z"],["fill-rule","evenodd","d","M4.146 4.146a.5.5 0 0 0 0 .708l7 7a.5.5 0 0 0 .708-.708l-7-7a.5.5 0 0 0-.708 0z"],[1,"correct-answer-area"],["class","main-content-font answer-line",4,"ngIf"],[1,"main-content-font","answer-line"]],template:function(Lt,Rt){1&Lt&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275element(1,"hr"),o.\u0275\u0275elementStart(2,"span",1),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(4,"div",2),o.\u0275\u0275pipe(5,"htmlSafe"),o.\u0275\u0275elementStart(6,"form",3),o.\u0275\u0275template(7,qe,6,3,"ng-container",4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(8,"div",5)(9,"button",6),o.\u0275\u0275listener("click",function(){return Rt.submitClick()}),o.\u0275\u0275text(10,"Submit"),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(11,zt,4,2,"ng-container",7),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(12,mi,2,1,"div",8),o.\u0275\u0275elementEnd()),2&Lt&&(o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1("",Rt.questionData?Rt.questionData.title:"",":"),o.\u0275\u0275advance(1),o.\u0275\u0275property("innerHtml",o.\u0275\u0275pipeBind1(5,7,Rt.questionData.desc),o.\u0275\u0275sanitizeHtml),o.\u0275\u0275advance(2),o.\u0275\u0275property("formGroup",Rt.form),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",Rt.isAwnsers),o.\u0275\u0275advance(2),o.\u0275\u0275property("disabled",Rt.form.invalid||(null==Rt.questionData?null:Rt.questionData.result)||Rt.disableSubmitButton),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",Rt.questionData&&((null==Rt.questionData?null:Rt.questionData.result)&&Rt.allowedToShowResult||Rt.questionData.isTimerEnable&&Rt.disableSubmitButton)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Rt.questionData&&(Rt.questionData.result&&!(null!=Rt.questionData&&null!=Rt.questionData.result&&Rt.questionData.result.isCorrect)&&Rt.allowedToShowResult||!Rt.questionData.result&&Rt.disableSubmitButton)))},dependencies:[n.NgForOf,n.NgIf,Oe._Y,Oe.Fj,Oe._,Oe.JJ,Oe.JL,Oe.sg,Oe.u,q],styles:['.input-body[_ngcontent-%COMP%]{padding:18px}.desc-div[_ngcontent-%COMP%]{align-content:center;margin-top:5px;margin-bottom:5px}.submit-btn[_ngcontent-%COMP%]{flex:1;height:40px;background-color:#39d;color:#fff;border-radius:6px;margin:5px auto auto}.container[_ngcontent-%COMP%]{display:block;position:relative;font-weight:400;padding-left:35px;margin-bottom:12px;cursor:pointer;-webkit-user-select:none;user-select:none}.container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.checkmark[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:25px;width:25px;background-color:#eee;border-radius:50%}.container[_ngcontent-%COMP%]:hover   input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%]{background-color:#ccc}.container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{background-color:#2196f3}.checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none}.container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}.container[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]:after{top:9px;left:9px;width:8px;height:8px;border-radius:50%;background:white}button[disabled][_ngcontent-%COMP%]{background-color:#b1b1b1}.answer-box[_ngcontent-%COMP%]{display:flex;width:60%}.points-label[_ngcontent-%COMP%]{margin:15px 6px;font-weight:700}.svg-img[_ngcontent-%COMP%]{background-color:#81e601;color:#fff;font-size:3em;margin:5px}.svg-img-wrong[_ngcontent-%COMP%]{background-color:#e65301;color:#fff;font-size:3em;margin:5px}.timer-text[_ngcontent-%COMP%]{text-align:center;font-size:24px;font-weight:700;margin-bottom:20px}  .question-txt p{font-size:18px;font-family:Roboto,sans-serif}.answer-txt[_ngcontent-%COMP%]{font-size:15px}.container[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]:after{top:7.3px;left:7.3px}.checkmark[_ngcontent-%COMP%]{height:22px;width:22px}']})}return st})();function Jt(st,Nt){if(1&st){const at=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",5),o.\u0275\u0275listener("click",function(){const ai=o.\u0275\u0275restoreView(at).$implicit,Xt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Xt.submitClick(ai))}),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()}if(2&st){const at=Nt.$implicit,Lt=o.\u0275\u0275nextContext();o.\u0275\u0275property("disabled",Lt.disableSubmitButton),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(at.name)}}let lt=(()=>{class st{constructor(){this.submitClickEvent=new o.EventEmitter,this.disabled=!1}ngOnInit(){}submitClick(at){this.submitClickEvent.emit(at)}static#e=this.\u0275fac=function(Lt){return new(Lt||st)};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:st,selectors:[["app-link-question"]],inputs:{questionData:["data","questionData"],disableSubmitButton:"disableSubmitButton"},outputs:{submitClickEvent:"submit"},decls:10,vars:5,consts:[[1,"input-body"],[1,"main-header-font"],["id","article-body-content",1,"desc","ql-editor","no-padding","main-header-font","desc-div","question-txt",3,"innerHtml"],[1,"answer-box"],["class","submit-btn",3,"disabled","click",4,"ngFor","ngForOf"],[1,"submit-btn",3,"disabled","click"]],template:function(Lt,Rt){1&Lt&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275element(1,"hr"),o.\u0275\u0275elementStart(2,"span",1),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(4,"div",2),o.\u0275\u0275pipe(5,"htmlSafe"),o.\u0275\u0275elementStart(6,"div",3)(7,"span"),o.\u0275\u0275text(8,"Results"),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(9,Jt,2,2,"button",4),o.\u0275\u0275elementEnd()()),2&Lt&&(o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1("",Rt.questionData?Rt.questionData.title:"",":"),o.\u0275\u0275advance(1),o.\u0275\u0275property("innerHtml",o.\u0275\u0275pipeBind1(5,3,Rt.questionData.desc),o.\u0275\u0275sanitizeHtml),o.\u0275\u0275advance(5),o.\u0275\u0275property("ngForOf",null==Rt.questionData?null:Rt.questionData.answer))},dependencies:[n.NgForOf,q],styles:[".input-body[_ngcontent-%COMP%]{padding:18px}.desc-div[_ngcontent-%COMP%]{align-content:center;margin-top:5px;margin-bottom:5px}.answer-box[_ngcontent-%COMP%]{display:flex;flex-direction:column}.submit-btn[_ngcontent-%COMP%]{width:90%;height:40px;background-color:#39d;color:#fff;font-weight:400;font-size:1.5em;border-radius:6px;margin:9px auto auto}  .question-txt p{font-size:18px;font-family:Roboto,sans-serif}"]})}return st})(),_t=(()=>{class st{constructor(at){this.cdr=at,this.timerComplete=new o.EventEmitter,this.displayTime="00:00:00",this.onlineBack=!1}ngOnInit(){this.timeInSeconds=this.getTimeInSeconds(this.timerValue),this.checkNetworkStatus()}ngAfterViewInit(){this.startTimer()}ngDoCheck(){this.answeredToAll&&this.pauseTimer(),this.checkNetworkStatus()}getTimeInSeconds(at){const[Lt,Rt,ai]=at.split(":").map(Number);return 3600*Lt+60*Rt+ai}startTimer(){this.interval=setInterval(()=>{this.timeInSeconds>0?(this.timeInSeconds--,this.displayTime=this.getSecondsAsDigitalClock(this.timeInSeconds),this.cdr.detectChanges()):(clearInterval(this.interval),this.timerComplete.emit())},1e3)}getSecondsAsDigitalClock(at){const Lt=Math.floor(at/3600),Rt=at%3600,ai=Math.floor(Rt/60),Xt=Rt%60;return`${Lt<10?`0${Lt}`:`${Lt}`}:${ai<10?`0${ai}`:`${ai}`}:${Xt<10?`0${Xt}`:`${Xt}`}`}checkNetworkStatus(){navigator.onLine?this.onlineBack&&(console.log("Device is online now !"),this.onlineBack=!1,this.resumeTimer()):(console.log("Device gone offline !"),this.onlineBack=!0,this.pauseTimer())}resetTimer(){this.timeInSeconds=this.getTimeInSeconds(this.timerValue),this.displayTime=this.getSecondsAsDigitalClock(this.timeInSeconds)}clearTimer(){clearInterval(this.interval),this.timeInSeconds=0,this.displayTime="00:00"}pauseTimer(){clearInterval(this.interval)}resumeTimer(){this.startTimer()}static#e=this.\u0275fac=function(Lt){return new(Lt||st)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:st,selectors:[["app-countdown-timer"]],inputs:{isTimerEnable:"isTimerEnable",timerValue:"timerValue",answeredToAll:"answeredToAll"},outputs:{timerComplete:"timerComplete"},decls:3,vars:1,consts:[[1,"countdown-timer","main-header-font",2,"margin-top","20px"]],template:function(Lt,Rt){1&Lt&&(o.\u0275\u0275element(0,"hr"),o.\u0275\u0275elementStart(1,"div",0),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd()),2&Lt&&(o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" Time Left\xa0\xa0",Rt.displayTime,"\n"))},styles:[".countdown-timer[_ngcontent-%COMP%]{text-align:center;font-size:20px;font-weight:700;margin-bottom:20px}"]})}return st})();function Fe(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"div",17),o.\u0275\u0275element(1,"ng2-pdfjs-viewer",18),o.\u0275\u0275elementEnd()),2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("viewerFolder",at.pdfViewerFolder)("pdfSrc",at.pdfDataUrl)("openFile",!1)("fullScreen",!1)("download",at.pdfDownload)}}function Ae(st,Nt){if(1&st&&o.\u0275\u0275element(0,"img",20),2&st){const at=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("src",at.article.imgUrl,o.\u0275\u0275sanitizeUrl)}}function H(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Ae,1,1,"ng-template",19),o.\u0275\u0275elementEnd()),2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",at.article&&at.article.imgUrl)}}function W(st,Nt){if(1&st){const at=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div")(1,"app-page-paginations",21),o.\u0275\u0275listener("btnClick",function(Rt){o.\u0275\u0275restoreView(at);const ai=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(ai.paginatorClick(Rt))}),o.\u0275\u0275elementEnd()()}if(2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("catId",at.catId)("articleId",at.articleId)("selectedValue",at.selectedValue)}}function He(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"div",22)(1,"h4",23),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(3,"div",24),o.\u0275\u0275pipe(4,"htmlSafe"),o.\u0275\u0275elementEnd()),2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(at.article?at.article.title:""),o.\u0275\u0275advance(1),o.\u0275\u0275property("innerHtml",o.\u0275\u0275pipeBind1(4,2,at.article.desc),o.\u0275\u0275sanitizeHtml)}}function Te(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"div",22)(1,"h4",23),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(3,"app-rss-feed",25),o.\u0275\u0275elementEnd()),2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(at.article?at.article.title:""),o.\u0275\u0275advance(1),o.\u0275\u0275property("rssFeedUrl",at.rssFeedUrl)("catId",at.catId)("articleId",at.articleId)}}function Be(st,Nt){if(1&st){const at=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div")(1,"app-page-paginations",21),o.\u0275\u0275listener("btnClick",function(Rt){o.\u0275\u0275restoreView(at);const ai=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(ai.paginatorClick(Rt))}),o.\u0275\u0275elementEnd()()}if(2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("catId",at.catId)("articleId",at.articleId)("selectedValue",at.selectedValue)}}function mt(st,Nt){if(1&st){const at=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div")(1,"app-countdown-timer",26),o.\u0275\u0275listener("timerComplete",function(){o.\u0275\u0275restoreView(at);const Rt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Rt.onTimerComplete())}),o.\u0275\u0275elementEnd()()}if(2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("isTimerEnable",at.isTimerEnable)("timerValue",at.timerValue)("answeredToAll",at.answeredToAll)}}function Pe(st,Nt){if(1&st){const at=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"app-input-question",27),o.\u0275\u0275listener("submit",function(Rt){o.\u0275\u0275restoreView(at);const ai=o.\u0275\u0275nextContext().$implicit,Xt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Xt.submitClick(Rt,ai))}),o.\u0275\u0275elementEnd()}if(2&st){const at=o.\u0275\u0275nextContext().$implicit,Lt=o.\u0275\u0275nextContext();o.\u0275\u0275property("allowedToShowResult",Lt.isAllowedToShowResults())("disableSubmitButton",Lt.disableSubmitButton)("data",at)}}function Qe(st,Nt){if(1&st){const at=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"app-mcq-question",27),o.\u0275\u0275listener("submit",function(Rt){o.\u0275\u0275restoreView(at);const ai=o.\u0275\u0275nextContext().$implicit,Xt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Xt.submitClick(Rt,ai))}),o.\u0275\u0275elementEnd()}if(2&st){const at=o.\u0275\u0275nextContext().$implicit,Lt=o.\u0275\u0275nextContext();o.\u0275\u0275property("allowedToShowResult",Lt.isAllowedToShowResults())("disableSubmitButton",Lt.disableSubmitButton)("data",at)}}function ut(st,Nt){if(1&st){const at=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"app-link-question",28),o.\u0275\u0275listener("submit",function(Rt){o.\u0275\u0275restoreView(at);const ai=o.\u0275\u0275nextContext().$implicit,Xt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Xt.submitClick(Rt,ai))}),o.\u0275\u0275elementEnd()}if(2&st){const at=o.\u0275\u0275nextContext().$implicit,Lt=o.\u0275\u0275nextContext();o.\u0275\u0275property("disableSubmitButton",Lt.disableSubmitButton)("data",at)}}function te(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Pe,1,3,"ng-template",19),o.\u0275\u0275template(2,Qe,1,3,"ng-template",19),o.\u0275\u0275template(3,ut,1,2,"ng-template",19),o.\u0275\u0275elementEnd()),2&st){const at=Nt.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","input"==(null==at||null==at.questionType?null:at.questionType.code)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","mcq"==(null==at||null==at.questionType?null:at.questionType.code)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","link"==(null==at||null==at.questionType?null:at.questionType.code))}}function k(st,Nt){if(1&st){const at=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",29),o.\u0275\u0275element(1,"hr"),o.\u0275\u0275elementStart(2,"button",30),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(at);const Rt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Rt.nextBtn())}),o.\u0275\u0275text(3,"Next"),o.\u0275\u0275elementEnd()()}if(2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275property("disabled",!at.isNextBtnVaild())}}function R(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"div",31)(1,"p"),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"p"),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd()()),2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1("Number of Correct Answers: ",at.calculateCorrectAnswers(),""),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1("Total Points: ",at.calculateTotalPoints(),"")}}function be(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"article-commenting-section",32),o.\u0275\u0275elementEnd()),2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("id",at.articleId)}}function et(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"div",33),o.\u0275\u0275element(1,"send-message-button",34),o.\u0275\u0275elementEnd()),2&st){const at=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("id",at.articleId)("title",at.currentArticleName)}}const ge=[{path:"",component:(()=>{class st{constructor(at,Lt,Rt,ai,Xt,ui,vt,Ut){this.productService=at,this.router=Lt,this.route=Rt,this.title=ai,this.dataService=Xt,this.messageService=ui,this.location=vt,this.cdr=Ut,this.articleQuestions=[],this.txtAndMcqQs=[],this.txtAndMcqAnswers=[],this.overrolResult=[],this.isMessagingEnabled=!1,this.isCommentingEnbled=!1,this.selectedValue=0,this.pdfDataUrl=null,this.isRssFeedEnable=!1,this.pdfViewerFolder="",this.pdfDownload=!1,this.disabled=!1,this.disableSubmitButton=!1,this.notifyMessage="Time has expired !",this.isTimerEnable=!1,this.timerValue="00:00",this.answeredToAll=!1,this.rssFeedUrl="",this.router.params.subscribe(Zt=>{this.articleId=Zt.articleId,this.catId=Zt.catId,this.loadArticles(),this.loadQuestions(),window.addEventListener("message",Ci=>{"pdf_viewer"==Ci.data.from&&this.dataService.isCordovaApp&&this.productService.download(this.pdfDataUrl).then(_i=>{_i&&$(".pdf-download-modal").modal()})},!1)}),this.pdfViewerFolder=this.dataService.pdfViewerFolder}ngOnInit(){}ngDoCheck(){this.cdr.detectChanges()}onTimerComplete(){console.log("Timer completed in child component - product");let at=this;$("#questionsTimesUpModal").modal("show"),this.clsTimeOut=setTimeout(()=>{$("#questionsTimesUpModal").modal("hide")},3e3),$("#questionsTimesUpModal").on("hidden.bs.modal",()=>{console.log("Closed the Modal !!!"),clearTimeout(at.clsTimeOut),at.disableSubmitButton=!0})}submitClick(at,Lt){if("input"==Lt.questionType.code)this.articleQuestions=this.articleQuestions.map(ai=>{let Xt=ai.id==Lt.id?{value:at,result:ai.answer[0],id:ai.answer[0].id,isCorrect:at.toLowerCase()==ai.answer[0].value.toLowerCase(),questionType:"input",points:Lt.points}:ai.result?ai.result:null;return Xt&&(this.overrolResult.some(ui=>ui.id==Xt.id)||this.overrolResult.push(Xt),this.txtAndMcqAnswers.some(ui=>ui.id==Xt.id)||this.txtAndMcqAnswers.push(Xt)),{...ai,awn:ai.id==Lt.id?at:ai.awn,result:Xt}});else if("mcq"==Lt.questionType.code){var Rt=Lt.answer.filter(ai=>ai.value===at)[0];this.articleQuestions=this.articleQuestions.map(ai=>{var Xt=ai.id==Lt.id?{value:at,isCorrect:Rt.isCorrect,result:Rt,id:Rt.id,points:Lt.points,questionType:"mcq"}:ai.result?ai.result:null;return Xt&&(this.overrolResult.some(ui=>ui.id==Xt.id)||this.overrolResult.push(Xt),this.txtAndMcqAnswers.some(ui=>ui.id==Xt.id)||this.txtAndMcqAnswers.push(Xt)),{...ai,result:Xt}})}else this.productService.checkAwnser(at.pageId).subscribe(ai=>{ai&&ai.isPdfUploadEnable?window.open(ai.pdfDataUrl,"_blank"):this.route.navigate([ai.isQuestion?"questions":"product",at.value,at.pageCatId,at.pageId])},ai=>{console.log("error ",ai),this.route.navigate(["product",at.value,at.pageCatId,at.pageId])})}isAllowedToShowResults(){return!!this.disableSubmitButton||!(!this.txtAndMcqQs||!this.txtAndMcqAnswers||this.txtAndMcqQs.length!=this.txtAndMcqAnswers.length)&&(this.isTimerEnable&&(this.answeredToAll=!0),!0)}isNextBtnVaild(){return"score_achievements"==this.article.nextButtonType.code?this.overrolResult.filter(Lt=>Lt.isCorrect).map(Lt=>Number(Lt.points)).filter(Lt=>Lt).reduce((Lt,Rt)=>Lt+Rt,0)>Number(this.article.nextButtonCondition):"answer_all_questions"!=this.article.nextButtonType.code||this.overrolResult.length==this.articleQuestions.length}nextBtn(){let at=JSON.parse(this.article.nextButtonAction);console.log(at),this.productService.checkAwnser(at.id).subscribe(Lt=>{Lt&&Lt.isPdfUploadEnable?window.open(Lt.pdfDataUrl,"_blank"):this.route.navigate([Lt.isQuestion?"questions":"product",at.title,at.categoryId,at.id])},Lt=>{console.log("error ",Lt),this.route.navigate(["product",at.title,at.categoryId,at.id])})}loadQuestions(){this.productService.getQuestions(this.articleId).subscribe(at=>{this.articleQuestions=at.map(Lt=>(Lt.isTimerEnable=!!this.article&&this.article.isTimerEnable,Lt.timerValue=this.article?this.article.timerValue:"00:00",{...Lt,awn:""})),this.articleQuestions&&this.articleQuestions.length&&(this.txtAndMcqQs=this.articleQuestions.slice(0).filter(Lt=>{if("input"==Lt.questionType.code||"mcq"==Lt.questionType.code)return Lt}),this.txtAndMcqAnswers=[]),this.cdr.detectChanges()},at=>{console.log("Error while loading questions ",at)})}loadArticles(){this.pdfDataUrl=null,this.setAllToReset(),this.productService.getArticleById(this.articleId).subscribe(at=>{console.log("article ",at),this.article=at,this.isTimerEnable=!!this.article&&this.article.isTimerEnable,this.timerValue=this.article?this.article.timerValue:"00:00";var Lt=this.productService.getLocalStorageMSISDN(),Rt=at.title;this.currentArticleName=at.title,this.title.changeTitle(this.currentArticleName),this.isMessagingEnabled=at.isMessagingEnabled,this.isCommentingEnbled=at.isCommentingEnbled;var ai=at.isPdfUploadEnable||at.isPdfUploadEnableDownloadDisabled||at.isPdfUploadEnableDownloadEnabled;if(this.isRssFeedEnable=at.isRssFeedEnable,this.productService.createArticleViewDataInfo(Lt,Rt,at.id).subscribe(Xt=>{},Xt=>{console.log("Error on create record")}),ai)if(this.pdfDownload=!!at.isPdfUploadEnableDownloadEnabled,this.dataService.isCordovaApp()&&at.isPdfUploadEnableDownloadEnabled){let Xt=this;PreviewAnyFile.preview(at.pdfDataUrl,function(ui){Xt.location.back(),"SUCCESS"==ui?console.log("success"):console.log("error")},function(ui){Xt.location.back(),console.log("err",ui)})}else this.messageService.sendMessage({loadImageCount:this.dataService.initialImageCount}),this.pdfDataUrl=this.article.pdfDataUrl;else this.isRssFeedEnable&&(this.rssFeedUrl=at.rssFeedUrl);this.cdr.detectChanges()},at=>{console.log("Error while loading questions ",at)})}paginatorClick(at){if(at.loadedArticle&&this.articleId!=at.loadedArticle.id)if(at.loadedArticle.isForm){let Lt=at.loadedArticle;this.route.navigate(["form",Lt.title,this.catId,Lt.id])}else this.articleId=at.loadedArticle.id,this.selectedValue=at.loadedArticle.index,this.setAllToReset(),this.loadArticles(),this.loadQuestions()}setAllToReset(){this.isMessagingEnabled=!1,this.isCommentingEnbled=!1}calculateCorrectAnswers(){return this.overrolResult.filter(at=>at.isCorrect).length}calculateTotalPoints(){return this.overrolResult.filter(at=>at.isCorrect&&null!=at.points&&""!==at.points.trim()).reduce((at,Lt)=>at+parseFloat(Lt.points),0)}showTotalPointsAndCorrectAnswers(){return!!this.disableSubmitButton||this.articleQuestions.some(at=>"mcq"===at?.questionType?.code||"input")}static#e=this.\u0275fac=function(Lt){return new(Lt||st)(o.\u0275\u0275directiveInject(x),o.\u0275\u0275directiveInject(e.gz),o.\u0275\u0275directiveInject(e.F0),o.\u0275\u0275directiveInject(w.y),o.\u0275\u0275directiveInject(C.V),o.\u0275\u0275directiveInject(g.e),o.\u0275\u0275directiveInject(n.Location),o.\u0275\u0275directiveInject(o.ChangeDetectorRef))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:st,selectors:[["app-product"]],decls:24,vars:13,consts:[[1,"page-container"],["style","height: 94vh;",4,"ngIf"],[4,"ngIf"],["class","padding",4,"ngIf"],[4,"ngFor","ngForOf"],["class","next-btn-container",4,"ngIf"],["class","total-points",4,"ngIf"],["class","messaging",4,"ngIf"],["onclick","scrollToTarget('1')",1,"bloc-button","btn","btn-d","scrollToTop"],[1,"fa","fa-chevron-up"],["data-backdrop","static","data-keyboard","false","id","questionsTimesUpModal","tabindex","-1","role","dialog","aria-labelledby","questionsTimesUp","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal-dialog-centered"],[1,"modal-content","main-navigation"],[1,"modal-body","text-center"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","main-navigation"],["aria-hidden","true"],[2,"margin","40px !important"],[2,"height","94vh"],[3,"viewerFolder","pdfSrc","openFile","fullScreen","download"],[3,"ngIf"],["alt","",1,"header-img",3,"src"],[3,"catId","articleId","selectedValue","btnClick"],[1,"padding"],[1,"text-center","main-header-font"],["id","article-body-content",1,"ql-editor","no-padding",3,"innerHtml"],[3,"rssFeedUrl","catId","articleId"],[3,"isTimerEnable","timerValue","answeredToAll","timerComplete"],[3,"allowedToShowResult","disableSubmitButton","data","submit"],[3,"disableSubmitButton","data","submit"],[1,"next-btn-container"],[1,"next-btn",3,"disabled","click"],[1,"total-points"],[3,"id"],[1,"messaging"],[3,"id","title"]],template:function(Lt,Rt){1&Lt&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275template(1,Fe,2,5,"div",1),o.\u0275\u0275template(2,H,2,1,"div",2),o.\u0275\u0275template(3,W,2,3,"div",2),o.\u0275\u0275template(4,He,5,4,"div",3),o.\u0275\u0275template(5,Te,4,4,"div",3),o.\u0275\u0275template(6,Be,2,3,"div",2),o.\u0275\u0275template(7,mt,2,3,"div",2),o.\u0275\u0275template(8,te,4,3,"div",4),o.\u0275\u0275template(9,k,4,1,"div",5),o.\u0275\u0275template(10,R,5,2,"div",6),o.\u0275\u0275template(11,be,2,1,"div",2),o.\u0275\u0275template(12,et,2,2,"div",7),o.\u0275\u0275elementStart(13,"a",8),o.\u0275\u0275element(14,"span",9),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(15,"div",10)(16,"div",11)(17,"div",12)(18,"div",13)(19,"button",14)(20,"span",15),o.\u0275\u0275text(21,"\xd7"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(22,"p",16),o.\u0275\u0275text(23),o.\u0275\u0275elementEnd()()()()()),2&Lt&&(o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Rt.pdfDataUrl),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!Rt.pdfDataUrl),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Rt.catId&&!(null!=Rt.article&&Rt.article.isHidden)&&!Rt.pdfDataUrl),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Rt.article&&!Rt.pdfDataUrl&&!Rt.isRssFeedEnable),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Rt.article&&Rt.isRssFeedEnable),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Rt.catId&&!(null!=Rt.article&&Rt.article.isHidden)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Rt.isTimerEnable),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",Rt.articleQuestions),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",null==Rt.article?null:Rt.article.isNextButtonEnable),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Rt.showTotalPointsAndCorrectAnswers()),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Rt.isCommentingEnbled),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Rt.isMessagingEnabled),o.\u0275\u0275advance(11),o.\u0275\u0275textInterpolate(Rt.notifyMessage))},dependencies:[n.NgForOf,n.NgIf,f.o,S.c,j.n,B.v,Z.e,Ze,Qt,lt,_t,q],styles:['.desc[_ngcontent-%COMP%]{white-space:pre-wrap;margin-bottom:25px}.carousel-control[_ngcontent-%COMP%]{height:86%}.page-container[_ngcontent-%COMP%]{padding-top:58px;padding-bottom:60px}.messaging[_ngcontent-%COMP%]{margin-bottom:64px}  .ug-gallery-wrapper .ug-slider-wrapper{background-color:#0000!important}  .ug-slider-wrapper .ug-item-wrapper{background-color:#0000!important}  .ug-theme-panel .ug-strip-panel{background-color:#0000!important}  .ug-videoplayer .ug-videoplayer-button-close{background-image:none!important}.next-btn-container[_ngcontent-%COMP%]{text-align:center;padding-bottom:5%}.next-btn[_ngcontent-%COMP%]{width:50%;height:40px;background-color:#39d;color:#fff;border-radius:6px}button[disabled][_ngcontent-%COMP%]{background-color:#b1b1b1}.header-img[_ngcontent-%COMP%]{width:100%}.total-points[_ngcontent-%COMP%]{margin-top:15px;font-weight:bolder;font-size:large}#questionsTimesUpModal.modal[_ngcontent-%COMP%]{text-align:center;padding:0!important}#questionsTimesUpModal.modal[_ngcontent-%COMP%]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-4px}#questionsTimesUpModal[_ngcontent-%COMP%]   div.modal-dialog[_ngcontent-%COMP%]{display:inline-block;text-align:left;vertical-align:middle}#questionsTimesUpModal[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:30px!important;font-size:18px!important;font-weight:500!important}@media screen and (max-width: 480px){#questionsTimesUpModal[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:20px!important;font-size:14px!important}}']})}return st})(),pathMatch:"full"}];let ke=(()=>{class st{static#e=this.\u0275fac=function(Lt){return new(Lt||st)};static#t=this.\u0275mod=o.\u0275\u0275defineNgModule({type:st});static#i=this.\u0275inj=o.\u0275\u0275defineInjector({imports:[e.Bz.forChild(ge),e.Bz]})}return st})();var gt=a(5252),Pt=a(522);let Bt=(()=>{class st{static#e=this.\u0275fac=function(Lt){return new(Lt||st)};static#t=this.\u0275mod=o.\u0275\u0275defineNgModule({type:st});static#i=this.\u0275inj=o.\u0275\u0275defineInjector({imports:[n.CommonModule,Oe.u5,Oe.UX,ke,gt.N,Pt.p,Z.Z]})}return st})()},9282:(G,P,a)=>{"use strict";a.d(P,{U:()=>C});var n=a(529),e=a(8136),o=a(1411),l=a(7221),v=a(6498),d=a(1086),u=a(4650),b=a(9066);let C=(()=>{class x{constructor(g,f){this.http=g,this.dataService=f,this.appId=o.Jf,this.userId=o.xS}getTerms(){const g={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId)};return this.http.get(e.L+"/templates/getTermsAndConditions",g).pipe((0,l.K)(this.handleError("getTerms",[])))}getPolicies(){const g={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId)};return this.http.get(e.L+"/templates/getPolicies",g).pipe((0,l.K)(this.handleError("getPolicies",[])))}getContactUs(){const g={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId)};return this.http.get(e.L+"/templates/getContactUs",g).pipe((0,l.K)(this.handleError("getContactUs",[])))}getAboutUs(){const g={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId).append("userId",this.userId)};return this.http.get(e.L+"/templates/getAboutUs",g).pipe((0,l.K)(this.handleError("getAboutUs",[])))}getPublishDetails(){return new v.y(g=>{this.fetchPublishDetails().subscribe(f=>{null!=f&&f.mobitelOpCodes&&!localStorage.MOBITEL_OP_CODE&&localStorage.setItem("MOBITEL_OP_CODE",f.mobitelOpCodes),g.next(f)})})}fetchPublishDetails(){const g={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId)};return this.http.get(e.L+"/edit/getPublishDetails",g).pipe((0,l.K)(this.handleError("getPublishDetails",[])))}getAppTemplateInfo(){return console.log("Application ID: ",this.appId),this.http.get(`${e.L}/getAppTemplateInfo/${this.appId}`).pipe((0,l.K)(this.handleError(`Error Loading Application id : ${this.appId}`)))}getSettings(){const g={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId)};return this.http.get(e.L+"/edit/getSettings",g)}getRenewalIntervals(){const g={headers:new n.WM({"Content-Type":"application/json"})};return this.http.get(e.L+"/edit/getRenewals",g).pipe((0,l.K)(this.handleError("getRenewalIntervals",[])))}getCountries(){const g={headers:new n.WM({"Content-Type":"application/json"})};return this.http.get(e.L+"/auth/getAllCountry",g).pipe((0,l.K)(this.handleError("getCountries",[])))}getRenewalIntervalObjByIntervalCode(g){const f=this.dataService.renewalIntervals;return f.length>0?f.filter(S=>S.code===g):[]}getRenewalIntervalNumberOfDaysByIntervalCode(g){const f=this.getRenewalIntervalObjByIntervalCode(g);return f.length>0?f[0].noOfDays:""}getCompatibleApkVersion(){const g={headers:new n.WM({"Content-Type":"application/json"})};return this.http.get(e.L+"/edit/getCompatibleApkVersion",g).pipe((0,l.K)(this.handleError("getCompatibleApkVersion",[])))}getAppDetails(g){const f={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId).append("catId",g.catId?g.catId:null)};return this.http.get(e.L+"/edit/getAppDetails",f).pipe((0,l.K)(this.handleError("getAppDetails",[])))}getCrmAppLogoUrl(){const g={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId).append("userId",this.userId)};return this.http.get(`${e.L}/api/getCrmAppLogoUrl`,g).pipe((0,l.K)(this.handleError("getCrmAppLogoUrl Error!")))}getCrmAppBannerUrl(){const g={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId).append("userId",this.userId)};return this.http.get(`${e.L}/api/getCrmAppBannerUrl`,g).pipe((0,l.K)(this.handleError("getCrmAppBannerUrl Error!")))}getAppFullDetails(){return this.http.get(`${e.L}/api/getAppFullDetails/${this.appId}`).pipe((0,l.K)(this.handleError(`Error on Getting App Data on appId : ${this.appId}`)))}handleError(g="operation",f){return S=>(this.log(`${g} failed: ${S.message}`),(0,d.of)(f))}log(g){console.error(g)}forgotPassword(g){return this.http.post(e.L+"/templatesAuth/forgotPasswordP2P",g)}getFaceBookPixelId(){const g={params:(new n.LE).append("appId",this.appId)};return this.http.get(e.L+"/edit/publish/getFaceBookPixelId",g)}static#e=this.\u0275fac=function(f){return new(f||x)(u.\u0275\u0275inject(n.eN),u.\u0275\u0275inject(b.V))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac})}return x})()},5550:(G,P,a)=>{"use strict";a.d(P,{n:()=>d});var n=a(529),e=a(1086),o=a(7221),l=a(8136),v=a(4650);let d=(()=>{class u{constructor(C){this.http=C}getArticleDetails(C){const x={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("id",C)};return this.http.get(l.L+"/edit/getArticle",x).pipe((0,o.K)(this.handleError("getArticleDetails",[])))}getArticleUser(C){return this.http.get(l.L+"/article/user/getArticleUser",C).pipe((0,o.K)(this.handleError("getArticleUser",[])))}sendMessageToAppCreator(C){return this.http.post(l.L+"/article/message/sendToAppCreator",C).pipe((0,o.K)(this.handleError("sendMessageToAppCreator",[])))}getArticleMessages(C,x,w){const g={params:(new n.LE).append("articleId",C).append("articleUserId",x).append("userRole",w)};return this.http.get(l.L+"/article/messages/onArticleUser",g).pipe((0,o.K)(this.handleError("getArticleMessages",[])))}getUserMessagedArticles(C){const x={params:(new n.LE).append("id",C)};return this.http.get(l.L+"/article/user/messagedArticles",x).pipe((0,o.K)(this.handleError("getUserMessagedArticles",[])))}updateIsRead(C){return this.http.put(l.L+"/article/message/updateIsRead",C).pipe((0,o.K)(this.handleError("updateIsRead",[])))}getCommentsOnArticle(C){const x={params:(new n.LE).append("articleId",C)};return this.http.get(l.L+"/article/comment/onArticle",x).pipe((0,o.K)(this.handleError("getCommentsOnArticle",[])))}addArticleComment(C){return this.http.post(l.L+"/article/comment/addArticleComment",C).pipe((0,o.K)(this.handleError("addArticleComment",[])))}updateArticleUserName(C){return this.http.put(l.L+"/article/user/updateArticleUserName",C).pipe((0,o.K)(this.handleError("updateArticleUserName",[])))}downloadFile(C){return this.http.post(l.L+"/article/message/downloadMediaFile",C,{responseType:"blob",observe:"events",reportProgress:!0,headers:new n.WM({"Content-Type":"application/json"})})}handleError(C="operation",x){return w=>(this.log(`${C} failed: ${w.message}`),(0,e.of)(x))}log(C){console.error(C)}static#e=this.\u0275fac=function(x){return new(x||u)(v.\u0275\u0275inject(n.eN))};static#t=this.\u0275prov=v.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},3634:(G,P,a)=>{"use strict";a.d(P,{G:()=>u});var n=a(1086),e=a(7221),o=a(8136),l=a(1411),v=a(4650),d=a(529);let u=(()=>{class b{constructor(x){this.http=x,this.appId=l.Jf,this.userId=l.xS}sendDeviceToken(x){return this.http.get(o.L+"/templates/postDeviceId?appId="+this.appId+"&"+x).pipe((0,e.K)(this.handleError("sendDeviceToken",[])))}getCategoriesWithArticles(x){return this.http.get(o.L+"/article/category/getCategoriesWithArticles",x).pipe((0,e.K)(this.handleError("getCategoriesWithArticles",[])))}getValidCategoryByArticleId(x){return this.http.get(o.L+"/edit/getValidCategoryByArticleId?appId="+this.appId+"&articleId="+x).pipe((0,e.K)(this.handleError("getValidCategoryByArticleId",[])))}handleError(x="operation",w){return g=>(this.log(`${x} failed: ${g.message}`),(0,n.of)(w))}log(x){console.error(x)}static#e=this.\u0275fac=function(w){return new(w||b)(v.\u0275\u0275inject(d.eN))};static#t=this.\u0275prov=v.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac})}return b})()},2413:(G,P,a)=>{"use strict";a.d(P,{r:()=>b});var u,n=a(6498),e=a(1411),o=a(8136),l=a(4650),v=a(9066),d=a(1481);let b=(()=>{class C{constructor(w,g){this.dataService=w,this.sanitizer=g,this.templateName=e.Bv,this.chatServer=e.Qb,this.isCordovaApp=!1,this.fileInfo={},u=this,this.isCordovaApp=this.dataService.isCordovaApp(),this.isCordovaApp&&(u.camera=window.navigator.camera,u.Camera=window.Camera,u.FileEntry=window.FileEntry,u.cacheDirectory=window.cordova.file.cacheDirectory)}getPicture(w){return new n.y(g=>{window.navigator.camera.getPicture(f=>{const S=window.Ionic.WebView.convertFileSrc(f),j=u.sanitizer.bypassSecurityTrustUrl(S);window.resolveLocalFileSystemURL(f,B=>{u.fileInfo.displayUrl=j,u.fileInfo.nativeURL=B.nativeURL,u.fileInfo.fileName=B.name,u.readFile(B).then(Z=>{g.next(Z)}).catch(Z=>{})},()=>{console.log("got file: ERROR")})},f=>{console.log("Error Msg : ",f),g.error(f)},w)})}readFile(w){return new Promise((g,f)=>{w.file(S=>{u.fileInfo.fileSize=S.size,g(u.fileInfo)},S=>{console.log("Failed to read FileEntry!"),f(S)})})}uploadImageInApk(w,g,f){return new n.y(S=>{let j=w.nativeURL,B="";B="P2Pchat"==u.templateName||"P2PchatV2"==u.templateName||"P2PchatV3"==u.templateName?`${u.chatServer}/api/addProfileImage/${g}/${f}`:`${o.L}/api/addNewProfImage/${g}/${f}`;var Z=new window.FileUploadOptions;Z.fileKey="profileImage",Z.fileName=w.fileName,Z.mimeType="image/jpeg";var le={};le.memberId=w.memberId?w.memberId:null,le.email=w.email?w.email:null,Z.params=le,(new window.FileTransfer).upload(j,encodeURI(B),X=>{let K=JSON.parse(X.response);S.next(K)},X=>{console.log("upload error source "+X.source),console.log("upload error target "+X.target),S.error(X)},Z,!0)})}static#e=this.\u0275fac=function(g){return new(g||C)(l.\u0275\u0275inject(v.V),l.\u0275\u0275inject(d.H7))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})()},9792:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{G:()=>CordovaPluginDeviceService});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4650),deviceServiceInstance;let CordovaPluginDeviceService=(()=>{class _CordovaPluginDeviceService{constructor(){deviceServiceInstance=this}getSuccessFunctionToBePost(){return function(P){console.log("result=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ deviceServiceInstance.successCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}getErrorFunctionToBePost(){return function(P){console.log("error=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ deviceServiceInstance.errorCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}getUUID(G){this.addEventListnerReceiveMessageInIframe(),this.successCallbackFunc=G,this.parentPostMessage("function(){   var result = device.uuid;   console.log(\"result=> \" + JSON.stringify(result, null, 2));   if(result){     result = JSON.stringify(result);   }else{     result = '';   }   var msgSentSuccess = 'function(){ '     +  'deviceServiceInstance.successCallback(' + result +');'     +'}';   var successFunc = encodeURI(msgSentSuccess.toString());   var frame = document.getElementById('appframe');   frame.contentWindow.postMessage(successFunc, '*');}")}receiveMessageInIframe(evt){try{console.log("Exec receiveMessageInIframe + "+decodeURI(evt.data)),eval("("+decodeURI(evt.data)+")();")}catch(G){console.log("Error executing function: "+JSON.stringify(G,null,2))}finally{window.removeEventListener("message",this.receiveMessageInIframe,!1)}}addEventListnerReceiveMessageInIframe(){console.log("call deviceServiceInstance.addEventListnerReceiveMessageInIframe"),window.addEventListener("message",deviceServiceInstance.receiveMessageInIframe,!1)}parentPostMessage(G){console.log("call deviceServiceInstance.parentPostMessage"),window.parent.postMessage(deviceServiceInstance.serializeFunction(G),"*")}serializeFunction(G){return encodeURI(G.toString())}errorCallback(G){G||(G=null),this.errorCallbackFunc()(G)}successCallback(G){G||(G=null),this.successCallbackFunc(G)}static#_=this.\u0275fac=function G(P){return new(P||_CordovaPluginDeviceService)};static#_2=this.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:_CordovaPluginDeviceService,factory:_CordovaPluginDeviceService.\u0275fac})}return _CordovaPluginDeviceService})()},2037:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{G:()=>CordovaPluginFirebaseService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),src_app_page_body_page_body_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9066),firebaseInstance;let CordovaPluginFirebaseService=(()=>{class _CordovaPluginFirebaseService{static#_=this.FB_FUNCTION_GET_TOKEN="getToken";static#_2=this.FB_FUNCTION_ON_TOKEN_REFRESH="onTokenRefresh";static#_3=this.FB_FUNCTION_ON_NOTIFICATION_OPEN="onMessageReceived";constructor(G){this.dataService=G,firebaseInstance=this}getSuccessFunctionToBePost(){return function(P){console.log("result=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ firebaseInstance.successCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}getErrorFunctionToBePost(){return function(P){console.log("error=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ firebaseInstance.errorCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}executeFBFunction(G,P,a){console.log("executeFBFunction"),firebaseInstance.addEventListnerReceiveMessageInIframe(),this.successCallbackFunc=P,this.errorCallbackFunc=a;let n="function(){window.FirebasePlugin."+G+"("+firebaseInstance.getSuccessFunctionToBePost().toString()+", "+firebaseInstance.getErrorFunctionToBePost().toString()+");}";firebaseInstance.parentPostMessage(n)}getToken(G,P){this.dataService.isIonicApp()?(console.log("Ionic getToken executing"),this.executeFBFunction(_CordovaPluginFirebaseService.FB_FUNCTION_GET_TOKEN,G,P)):window.FirebasePlugin.getToken(function(a){G(a)},function(a){P(a)})}onTokenRefresh(G,P){this.dataService.isIonicApp()?(console.log("Ionic onTokenRefresh executing"),this.executeFBFunction(_CordovaPluginFirebaseService.FB_FUNCTION_ON_TOKEN_REFRESH,G,P)):window.FirebasePlugin.onTokenRefresh(function(a){G(a)},function(a){P(a)})}onNotificationOpen(G,P){console.log("onNotificationOpen"),this.executeFBFunction(_CordovaPluginFirebaseService.FB_FUNCTION_ON_NOTIFICATION_OPEN,G,P)}receiveMessageInIframe(evt){try{console.log("Exec receiveMessageInIframe method in firebase service "+decodeURI(evt.data)),eval("("+decodeURI(evt.data)+")();")}catch(G){console.log("Error Exec receiveMessageInIframe method in firebase service. Error: "+JSON.stringify(G,null,2))}}addEventListnerReceiveMessageInIframe(){console.log("call firebaseInstance.addEventListnerReceiveMessageInIframe"),window.addEventListener("message",firebaseInstance.receiveMessageInIframe,!1)}parentPostMessage(G){console.log("call firebaseInstance.parentPostMessage"),window.parent.postMessage(firebaseInstance.serializeFunction(G),"*")}serializeFunction(G){return encodeURI(G.toString())}errorCallback(G){G||(G=null),this.errorCallbackFunc(G)}successCallback(G){G||(G=null),this.successCallbackFunc(G)}static#_4=this.\u0275fac=function G(P){return new(P||_CordovaPluginFirebaseService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(src_app_page_body_page_body_service__WEBPACK_IMPORTED_MODULE_0__.V))};static#_5=this.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:_CordovaPluginFirebaseService,factory:_CordovaPluginFirebaseService.\u0275fac})}return _CordovaPluginFirebaseService})()},3048:(G,P,a)=>{"use strict";a.d(P,{W:()=>e});var n=a(4650);let e=(()=>{class o{constructor(){this.PREVENTSCREENSHOT=window.hasOwnProperty("cordova")?window.plugins.preventscreenshot:null}enablePreventScreenshot(){return new Promise((v,d)=>{this.PREVENTSCREENSHOT.disable(u=>v(u),u=>d(u))})}disablePreventScreenshot(){return new Promise((v,d)=>{this.PREVENTSCREENSHOT.enable(u=>v(u),u=>d(u))})}static#e=this.\u0275fac=function(d){return new(d||o)};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},928:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{T:()=>SMSRetrieverService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),src_app_page_body_page_body_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9066),smsRetriverInstance;let SMSRetrieverService=(()=>{class _SMSRetrieverService{constructor(G){this.dataService=G,smsRetriverInstance=this}getSuccessFunctionToBePost(){return function(P){console.log("SMSRetrieverService.result=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ smsRetriverInstance.successCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}getErrorFunctionToBePost(){return function(P){console.log("SMSRetrieverService.error=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ smsRetriverInstance.errorCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}startSMSRetriver(G,P){if(this.dataService.isIonicApp()){smsRetriverInstance.addEventListnerReceiveMessageInIframe(),this.successCallbackFunc=G,this.errorCallbackFunc=P;let a="function(){window['cordova']['plugins']['smsRetriever']['startWatching']("+smsRetriverInstance.getSuccessFunctionToBePost().toString()+", "+smsRetriverInstance.getErrorFunctionToBePost().toString()+");}";smsRetriverInstance.parentPostMessage(a)}else window.cordova.plugins.smsRetriever.startWatching(a=>{console.log("SMSRetrieverService: Received the sms as:",a),G(a)},a=>{console.log("SMSRetrieverService: Error occured when retrieving the code. error:",a),P(a)})}receiveMessageInIframe(evt){try{console.log("Exec receiveMessageInIframe method in SMS Retriever Service"+decodeURI(evt.data)),eval("("+decodeURI(evt.data)+")();")}catch(G){console.log("Error Exec receiveMessageInIframe method in SMS Retriever Service. Error: "+JSON.stringify(G,null,2))}finally{window.removeEventListener("message",smsRetriverInstance.receiveMessageInIframe,!1)}}addEventListnerReceiveMessageInIframe(){console.log("call smsRetriverInstance.addEventListnerReceiveMessageInIframe"),window.addEventListener("message",smsRetriverInstance.receiveMessageInIframe,!1)}parentPostMessage(G){console.log("call smsRetriverInstance.parentPostMessage"),window.parent.postMessage(smsRetriverInstance.serializeFunction(G),"*")}serializeFunction(G){return encodeURI(G.toString())}errorCallback(G){G||(G=null),this.errorCallbackFunc(G)}successCallback(G){G||(G=null),this.successCallbackFunc(G)}static#_=this.\u0275fac=function G(P){return new(P||_SMSRetrieverService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(src_app_page_body_page_body_service__WEBPACK_IMPORTED_MODULE_0__.V))};static#_2=this.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:_SMSRetrieverService,factory:_SMSRetrieverService.\u0275fac})}return _SMSRetrieverService})()},6678:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{o:()=>SMSService});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4650),smsInstance;let SMSService=(()=>{class _SMSService{constructor(){this.LOCALSTORAGE_KEYWORD_STRING="keyword",this.LOCALSTORAGE_PORT_STRING="port",this.SERVICE_REGISTRATION_STRING="start",this.SERVICE_UN_REGISTRATION_STRING="stop",smsInstance=this}getSuccessFunctionToBePost(){return function(P){console.log("result=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ smsInstance.successCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}getErrorFunctionToBePost(){return function(P){console.log("error=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ smsInstance.errorCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}send(G,P,a,n,e){smsInstance.addEventListnerReceiveMessageInIframe(),this.successCallbackFunc=n,this.errorCallbackFunc=e;let o="function(){sms.send('"+G+"', '"+P+"', "+JSON.stringify(a)+", "+smsInstance.getSuccessFunctionToBePost().toString()+", "+smsInstance.getErrorFunctionToBePost().toString()+");}";smsInstance.parentPostMessage(o)}receiveMessageInIframe(evt){try{console.log("Exec receiveMessageInIframe method in sms service "+decodeURI(evt.data)),eval("("+decodeURI(evt.data)+")();")}catch(G){console.log("Error Exec receiveMessageInIframe method in sms service. Error: "+JSON.stringify(G,null,2))}finally{window.removeEventListener("message",smsInstance.receiveMessageInIframe,!1)}}sendReg_UNREG_SMS(G,P,a){var e=localStorage.getItem(smsInstance.LOCALSTORAGE_KEYWORD_STRING),o=localStorage.getItem(smsInstance.LOCALSTORAGE_PORT_STRING),l=localStorage.getItem("UUID"),v=G+" "+e+" UUID "+l;console.log("Send SMS=> body:"+v+" port:"+o),e&&o&&l?smsInstance.send(o,v,{replaceLineBreaks:!1,android:{}},P,a):alert("Service not yet configured, please contact support.")}sendRegistrationSMS(G,P){smsInstance.sendReg_UNREG_SMS(smsInstance.SERVICE_REGISTRATION_STRING,G,P)}sendUnRegistrationSMS(G,P){smsInstance.sendReg_UNREG_SMS(smsInstance.SERVICE_UN_REGISTRATION_STRING,G,P)}addEventListnerReceiveMessageInIframe(){console.log("call smsInstance.addEventListnerReceiveMessageInIframe"),window.addEventListener("message",smsInstance.receiveMessageInIframe,!1)}parentPostMessage(G){console.log("call smsInstance.parentPostMessage"),window.parent.postMessage(smsInstance.serializeFunction(G),"*")}serializeFunction(G){return encodeURI(G.toString())}errorCallback(G){G||(G=null),this.errorCallbackFunc(G)}successCallback(G){G||(G=null),this.successCallbackFunc(G)}isServiceConfigured(){var G=localStorage.getItem(smsInstance.LOCALSTORAGE_KEYWORD_STRING),P=localStorage.getItem(smsInstance.LOCALSTORAGE_PORT_STRING),a=localStorage.getItem("UUID");return console.log("localStorage keys and values, keyword="+G+" port="+P+" uuid="+a),G&&P&&a}static#_=this.\u0275fac=function G(P){return new(P||_SMSService)};static#_2=this.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:_SMSService,factory:_SMSService.\u0275fac})}return _SMSService})()},9209:(G,P,a)=>{"use strict";a.d(P,{y:()=>v});var n=a(9424),o=a(4650),l=a(1481);let v=(()=>{class d{constructor(b){this.sanitizer=b}initImageCache(){return new Promise((b,C)=>{n.init(()=>b(),()=>C())})}cacheImageFile(b){return new Promise((C,x)=>{n.cacheFile(b,w=>C(w),()=>x())})}isFileCached(b){return new Promise((C,x)=>{n.isCached(b,(w,g)=>{w&&g?C({path:w,cached:g}):x({path:null,cached:g})})})}getCachedFileURL(b){return new Promise((C,x)=>{n.getCachedFileURL(b,(w,g)=>{C({imgUrl:w,sourceUri:g})},()=>{x()})})}clearCache(){return new Promise((b,C)=>{n.clearCache(()=>b(!0),()=>C(!1))})}getTrustUrl(b){return this.sanitizer.bypassSecurityTrustResourceUrl(b)}getImagesFromCache(b,C){return new Promise(x=>{Promise.all(b.map(f=>new Promise(S=>{this.isFileCached(f[C]).then(j=>{this.getCachedFileURL(j.path).then(B=>{f[C]=B.sourceUri,S(f)}).catch(()=>{S(f)})}).catch(()=>{this.cacheImageFile(f[C]).then(j=>{this.getCachedFileURL(j.path).then(B=>{f[C]=B.sourceUri,S(f)}).catch(()=>{S(f)})}).catch(()=>{S(f)})})}))).then(f=>x(f))})}static#e=this.\u0275fac=function(C){return new(C||d)(o.\u0275\u0275inject(l.H7))};static#t=this.\u0275prov=o.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},2684:(G,P,a)=>{"use strict";a.d(P,{e:()=>o});var n=a(8929),e=a(4650);let o=(()=>{class l{constructor(){this.subject=new n.xQ}sendMessage(d){this.subject.next(d)}clearMessage(){this.subject.next()}getMessage(){return this.subject.asObservable()}static#e=this.\u0275fac=function(u){return new(u||l)};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac})}return l})()},2013:(G,P,a)=>{"use strict";a.d(P,{g:()=>o});var n=a(4650),e=a(5001);let o=(()=>{class l{constructor(d){this.alertSnackBar=d,this.horizontalPosition="center",this.verticalPosition="top"}showNotification(d){this.alertSnackBar.open(d,"Close",{duration:3e3,panelClass:["main-background","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition})}static#e=this.\u0275fac=function(u){return new(u||l)(n.\u0275\u0275inject(e.pl))};static#t=this.\u0275prov=n.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},5457:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{G:()=>ParentJWTService});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4650),parentJWTInstance;let ParentJWTService=(()=>{class _ParentJWTService{constructor(){console.log("ParentJWTService construction..."),parentJWTInstance=this}getSuccessFunctionToBePost(){return function(P){console.log("ParentJWTService.result=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ parentJWTInstance.successCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}getToken(G){parentJWTInstance.addEventListnerReceiveMessageInIframe(),parentJWTInstance.successCallbackFunc=G,parentJWTInstance.parentPostMessage("function(){   var result = localStorage.getItem('satellizer_token')?localStorage.getItem('satellizer_token'):'none';   console.log(\"result=> \" + result);   var msgSentSuccess = 'function(){ '     +  'parentJWTInstance.successCallback(\"' + result +'\");'     +'}';   var successFunc = encodeURI(msgSentSuccess.toString());   var frame = document.querySelector('#appView iframe');   frame.contentWindow.postMessage(successFunc, '*');}")}receiveMessageInIframe(evt){try{console.log("Exec receiveMessageInIframe method in ParentJWTService "+decodeURI(evt.data)),eval("("+decodeURI(evt.data)+")();")}catch(G){console.log("Error Exec receiveMessageInIframe method in ParentJWTService. Error: "+JSON.stringify(G,null,2))}finally{window.removeEventListener("message",parentJWTInstance.receiveMessageInIframe,!1)}}addEventListnerReceiveMessageInIframe(){console.log("call parentJWTInstance.addEventListnerReceiveMessageInIframe"),window.addEventListener("message",parentJWTInstance.receiveMessageInIframe,!1)}parentPostMessage(G){console.log("call parentJWTInstance.parentPostMessage"),window.parent.postMessage(parentJWTInstance.serializeFunction(G),"*")}serializeFunction(G){return encodeURI(G.toString())}errorCallback(G){G||(G=null),this.errorCallbackFunc(G)}successCallback(G){G||(G=null),this.successCallbackFunc(G)}static#_=this.\u0275fac=function G(P){return new(P||_ParentJWTService)};static#_2=this.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:_ParentJWTService,factory:_ParentJWTService.\u0275fac})}return _ParentJWTService})()},6423:(G,P,a)=>{"use strict";a.d(P,{s:()=>u});var n=a(529),e=a(1086),o=a(7221),l=a(1411),v=a(4650),d=a(9066);let u=(()=>{class b{constructor(x,w){this.http=x,this.dataService=w,this.appId=l.Jf,this.userId=l.xS}getProducts(x,w,g){const f={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId).append("userId",this.userId).append("categoryId",x).append("limit",w.toString()).append("skip",g.toString())};return this.http.get(this.dataService.getServerURL()+"/templates/getArticles",f).pipe((0,o.K)(this.handleError("getProducts",[])))}getAllProducts(){const x={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId)};return this.http.get(this.dataService.getServerURL()+"/templates/getProductsByAppId",x).pipe((0,o.K)(this.handleError("getAllProducts",[])))}getCategoryData(x){const w={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("id",x)};return this.http.get(this.dataService.getServerURL()+"/templates/getCategoryByProdId",w).pipe((0,o.K)(this.handleError("getCategoryData",[])))}createArticleViewDataInfo(x,w,g){const f={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId).append("articleName",w).append("msisdn",x).append("articleId",g)};return this.http.get(this.dataService.getServerUrlForRegisteredMSISDN()+"/templates/createArticleViewDataInfo",f).pipe((0,o.K)(this.handleError("createArticleViewDataInfo",[])))}getLiveArticles(x,w){const g={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId).append("userId",this.userId)};return this.http.get(this.dataService.getServerURL()+`/edit/liveArticles/?index=${x}&text=${w}`,g).pipe((0,o.K)(this.handleError("getLiveArticles",[])))}getArticleById(x){const w={headers:new n.WM({"Content-Type":"application/json"}),params:(new n.LE).append("appId",this.appId).append("userId",this.userId).append("articleId",x)};return this.http.get(this.dataService.getServerURL()+"/templates/getArticleById",w).pipe((0,o.K)(this.handleError("getArticleById",[])))}handleError(x="operation",w){return g=>(this.log(`${x} failed: ${g.message}`),(0,e.of)(w))}log(x){console.error(x)}download(x){const w=new window.FileTransfer;let g=encodeURI(x),S=`file:///storage/emulated/0/Download/myArticle${(new Date).getTime()}.pdf`;return new Promise(j=>{w.download(g,S,function(B){j(!0)},function(B){console.log("download error source "+B.source),console.log("download error target "+B.target),console.log("download error code"+B.code),j(!1)},!1,{})})}static#e=this.\u0275fac=function(w){return new(w||b)(v.\u0275\u0275inject(n.eN),v.\u0275\u0275inject(d.V))};static#t=this.\u0275prov=v.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac})}return b})()},9704:(G,P,a)=>{"use strict";a.d(P,{E:()=>x});var n=a(5861),e=a(1086),o=a(2994),l=a(7221),v=a(8136),d=a(1411),u=a(4650),b=a(529),C=a(2684);let x=(()=>{class w{constructor(f,S){this.httpClient=f,this.messageService=S,this.appId=d.Jf,this.MOBITEL_SERVER_URL=d.Xo.xY}getSubscribedData(f){return this.httpClient.post(this.getServerUrl()+"/ideabiz/isSubscribed",f).pipe((0,o.b)(S=>{this.messageService.sendMessage({subscription:S})}),S=>S||(this.messageService.sendMessage({subscription:null}),null))}getSubscriptionStatus(f){return this.httpClient.post(this.getServerUrl()+"/ideabiz/getSubscriptionStatus",f).pipe((0,o.b)(S=>{this.messageService.sendMessage({subscription:S})}),S=>S||(this.messageService.sendMessage({subscription:null}),null))}getAppStatus(f){return this.httpClient.post(v.L+"/templates/getAppStatus",f).pipe((0,l.K)(this.handleError("getAppStatus",[])))}subscribePin(f){return this.httpClient.post(v.L+"/ideabiz/subscribePin",f).pipe((0,l.K)(this.handleError("subscribePin",[])))}msub(f){return this.httpClient.post(v.L+"/msub",f).pipe((0,l.K)(this.handleError("msub",[])))}munsub(f){return this.httpClient.post(v.L+"/munsub",f).pipe((0,l.K)(this.handleError("munsub",[])))}submitPin(f){return this.httpClient.post(v.L+"/ideabiz/submitPin",f).pipe((0,l.K)(this.handleError("submitPin",[])))}unsubscribe(f){return this.httpClient.post(this.getServerUrl()+"/ideabiz/unsubscribe",f).pipe((0,l.K)(this.handleError("unsubscribe",[])))}getPINFromSMS(f,S,j){return f.substring(S,j)}getMsisdnFormApiCall(){var f=this;return(0,n.Z)(function*(){return yield f.httpClient.get("https://dnfectch.appmaker.lk").toPromise()})()}handleError(f="operation",S){return j=>(this.log(`${f} failed: ${j.message}`),(0,e.of)(S))}log(f){console.error(f)}isMobitel(){if(this.appId&&localStorage.MOBITEL_OP_CODE&&localStorage.MOBITEL_OP_CODE.length>0){let f=localStorage.getItem(this.appId+"msisdn");return f&&f.length>0&&localStorage.MOBITEL_OP_CODE.includes(f.substring(0,4))}return!1}getServerUrl(){return this.isMobitel()?this.MOBITEL_SERVER_URL:v.L}isOTCValid(f){return this.httpClient.post(v.L+"/app/isOTCValid",f).pipe(S=>S||null)}static#e=this.\u0275fac=function(S){return new(S||w)(u.\u0275\u0275inject(b.eN),u.\u0275\u0275inject(C.e))};static#t=this.\u0275prov=u.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac})}return w})()},6026:(G,P,a)=>{"use strict";a.d(P,{y:()=>l});var n=a(8929),e=a(591),o=a(4650);let l=(()=>{class v{constructor(){this.locationSource=new n.xQ,this.titleSource=new e.X("Home"),this.currentTitle=this.titleSource.asObservable()}changeTitle(u){this.titleSource.next(u)}setLocation(u){this.locationSource.next(u)}getLocation(){return this.locationSource.asObservable()}static#e=this.\u0275fac=function(b){return new(b||v)};static#t=this.\u0275prov=o.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac})}return v})()},8136:(G,P,a)=>{"use strict";a.d(P,{L:()=>n});var n="https://apps.appmaker.lk"},7584:(G,P,a)=>{"use strict";var n=a(1481),e=a(4650),o=a(4006),l=a(529),v=a(1411),d=a(8729),u=a(9066),b=a(2684),C=a(6498);class x{constructor(){this.connectionMonitor=new C.y(I=>{window.addEventListener("offline",h=>{I.next(!1)}),window.addEventListener("online",h=>{I.next(!0)})})}monitor(){return this.connectionMonitor}}x.\u0275fac=function(I){return new(I||x)},x.\u0275prov=e.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac,providedIn:"root"}),x.ngInjectableDef=(0,e.defineInjectable)({factory:function(){return new x},token:x,providedIn:"root"});var g=a(9282),f=a(6895);let S=(()=>{class z{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(M){return new(M||z)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["app-page-body"]],decls:1,vars:0,template:function(M,F){1&M&&e.\u0275\u0275element(0,"router-outlet")},dependencies:[d.lC]})}return z})();var j=a(3472),B=a(5861),Z=a(4290),le=a(1715),q=a(9704),X=a(6026),K=a(6678),U=a(928),me=a(9792),xe=a(2013),ne=a(7820),Ze=a(1086),Oe=a(7221),nt=a(8136);let qe=(()=>{class z{constructor(h){this.http=h,this.appId=v.Jf}getPushMessages(h,M){const F={headers:new l.WM({"Content-Type":"application/json"}),params:(new l.LE).append("appId",this.appId).append("limit",h.toString()).append("skip",M.toString())};return this.http.get(nt.L+"/edit/engage/getPushMessages",F).pipe((0,Oe.K)(this.handleError("getPushMessages",[])))}handleError(h="operation",M){return F=>(this.log(`${h} failed: ${F.message}`),(0,Ze.of)(M))}log(h){console.error(h)}saveSwPushSubscription(h){const M=localStorage.getItem("UUID"),F={headers:new l.WM({"Content-Type":"application/json"})},fe={deviceUUID:M,appId:this.appId,pushSubscription:h};return this.http.post(nt.L+"/application/saveSWPushSubscription",fe,F).pipe((0,Oe.K)(this.handleError("savePushSbscription",fe)))}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275inject(l.eN))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();var ct=a(5114),ot=a(4064),dt=a(1713),jt=a(8257);let zt=(()=>{class z{constructor(h,M){this.dataService=h,this.router=M,this.dataService.newNotificationCount.subscribe(F=>{this.newNotificationCount=F}),this.dataService.letestArticleNotification.subscribe(F=>{this.articleId=F.articleId,this.articleTitle=F.articleTitle})}ngOnInit(){}goToMessageCoversation(){this.router.navigate(["messaging",this.articleId,this.articleTitle])}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(u.V),e.\u0275\u0275directiveInject(d.F0))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["article-message-notification"]],decls:2,vars:1,consts:[[1,"message",3,"click"]],template:function(M,F){1&M&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("click",function(){return F.goToMessageCoversation()}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("You have ",F.newNotificationCount," New Message"))},styles:[".message[_ngcontent-%COMP%]{width:250px;z-index:10;position:absolute;top:15px;text-align:center;background-color:#82e782;color:#000;font-family:inherit;margin-left:calc((100% - 250px)/2);padding:5px 0;font-weight:500;font-size:12px}"]})}return z})();function ti(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",65),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(F.goBack())}),e.\u0275\u0275element(1,"i",66),e.\u0275\u0275elementEnd()}}const mi=function(z,I){return{"mar-size":z,"mar-size2":I}};function Qt(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div")(1,"marquee",68),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&z){const h=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(2,mi,!h.isInstallAvailable,h.isInstallAvailable)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(h.title)}}function Jt(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",69),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(h.title)}}function lt(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Qt,3,5,"div",59),e.\u0275\u0275template(2,Jt,2,1,"ng-template",null,67,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275reference(3),M=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",M.title.length>M.articleSize)("ngIfElse",h)}}function _t(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",69),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(h.title)}}function Fe(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",70),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(F.installPWAApp())}),e.\u0275\u0275element(1,"i",71),e.\u0275\u0275elementEnd()}if(2&z){const h=e.\u0275\u0275nextContext(2);e.\u0275\u0275styleProp("right",h.isEnableNotifyMe&&!h.isCordovaApp?"60px":"20px")}}function Ae(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",72),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(F.notifyMe())}),e.\u0275\u0275element(1,"i",73),e.\u0275\u0275elementEnd()}}function H(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,ti,2,0,"button",56),e.\u0275\u0275elementStart(2,"button",57),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(F.openNav())}),e.\u0275\u0275element(3,"i",58),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,lt,4,2,"div",59),e.\u0275\u0275template(5,_t,2,1,"ng-template",null,60,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(7,Fe,2,2,"button",61),e.\u0275\u0275elementStart(8,"button",62),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(F.searchBtnClickHandler())}),e.\u0275\u0275element(9,"i",63),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(10,Ae,2,0,"button",64),e.\u0275\u0275elementEnd()}if(2&z){const h=e.\u0275\u0275reference(6),M=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",M.hideBackOnHome),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf","product"==M.tempName||"messaging"==M.tempName)("ngIfElse",h),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",M.isInstallAvailable),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",M.isEnableNotifyMe&&!M.isCordovaApp)}}function W(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",74)(2,"div",75)(3,"button",76),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(F.backBtnClickHandler())}),e.\u0275\u0275element(4,"i",66),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",77)(6,"input",78,79),e.\u0275\u0275listener("input",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275reference(7),fe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(fe.onSearchTermChangeHandler(F.value))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",75)(9,"button",80),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(F.closeBtnClickHandler())}),e.\u0275\u0275element(10,"i",81),e.\u0275\u0275elementEnd()()()()}}function He(z,I){1&z&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"article-message-notification"),e.\u0275\u0275elementEnd())}function Te(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",82),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(F.openRegisterModel())}),e.\u0275\u0275text(1,"Register"),e.\u0275\u0275elementEnd()}}function Be(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",83),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(F.openMyAccountModel())}),e.\u0275\u0275text(1,"My Account"),e.\u0275\u0275elementEnd()}}function mt(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"a",84),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" App Version ",h.apkVersion," ")}}function Pe(z,I){1&z&&(e.\u0275\u0275elementStart(0,"div")(1,"h3",36),e.\u0275\u0275text(2,"My Account"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"h4",85),e.\u0275\u0275text(4," Are you sure you want to unsubscribe from this service? "),e.\u0275\u0275elementEnd()())}function Qe(z,I){1&z&&(e.\u0275\u0275elementStart(0,"div")(1,"div",48)(2,"div",49),e.\u0275\u0275element(3,"div",50),e.\u0275\u0275elementStart(4,"div",51),e.\u0275\u0275text(5," Un-Subscribing... "),e.\u0275\u0275elementEnd()()()())}function ut(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div")(1,"p"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"titlecase"),e.\u0275\u0275elementEnd()()),2&z){const h=e.\u0275\u0275nextContext().$implicit,M=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate3(" ",e.\u0275\u0275pipeBind1(3,3,h.operator)," Rs.",h.amount,"+tax per ",M.getRenewalIntervalNumberOfDaysByIntervalCode(h.interval)," day(s)")}}function te(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,ut,4,5,"div",4),e.\u0275\u0275elementEnd()),2&z){const h=I.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.isEnabled&&"APPROVED"===h.status)}}function k(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,te,2,1,"div",86),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",h.appPublishDetails.operators)}}function R(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div")(1,"h3",36),e.\u0275\u0275text(2,"Subscribe"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,k,2,1,"div",4),e.\u0275\u0275elementStart(4,"p"),e.\u0275\u0275text(5,"The subscription amount will be charged to your mobile phone account and your subscription will be renewed automatically."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"p"),e.\u0275\u0275text(7,"\u0db8\u0dd9\u0db8 \u0dc3\u0dda\u0dc0\u0dcf\u0dc0 \u0dc3\u0daf\u0dc4\u0dcf \u0daf\u0dcf\u0dba\u0d9a \u0db8\u0dd4\u0daf\u0dbd \u0d94\u0db6\u0dda \u0da2\u0d82\u0d9c\u0db8 \u0daf\u0dd4\u0dbb\u0d9a\u0dad\u0db1 \u0d9c\u0dd2\u0dab\u0dd4\u0db8\u0dd9\u0db1\u0dca \u0d85\u0dba \u0d9a\u0dbb\u0db1\u0dd4 \u0dbd\u0dd0\u0db6\u0dda. \u0daf\u0dcf\u0dba\u0d9a \u0db8\u0dd4\u0daf\u0dbd\u0dca \u0dc3\u0dca\u0dc0\u0dba\u0d82\u0d9a\u0dca\u200d\u0dbb\u0dd3\u0dba\u0dc0 \u0db1\u0dd0\u0dc0\u0dad \u0d85\u0dbd\u0dd4\u0dad\u0dca \u0d9a\u0dd9\u0dbb\u0dd9\u0db1\u0dd4 \u0dbd\u0dd0\u0db6\u0dda."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"p"),e.\u0275\u0275text(9,"\u0b87\u0ba8\u0bcd\u0ba4 \u0b9a\u0bc7\u0bb5\u0bc8 \u0b95\u0b9f\u0bcd\u0b9f\u0ba3\u0bae\u0bcd \u0b89\u0b99\u0bcd\u0b95\u0bb3\u0bcd \u0ba4\u0bca\u0bb2\u0bc8\u0baa\u0bc7\u0b9a\u0bbf \u0b95\u0ba3\u0b95\u0bcd\u0b95\u0bbf\u0bb2\u0bbf\u0bb0\u0bc1\u0ba8\u0bcd\u0ba4\u0bc1 \u0b85\u0bb1\u0bb5\u0bbf\u0b9f\u0baa\u0bcd\u0baa\u0b9f\u0bc1\u0bae\u0bcd. \u0b89\u0b99\u0bcd\u0b95\u0bb3\u0ba4\u0bc1 \u0b9a\u0bc7\u0bb5\u0bc8\u0baf\u0bbe\u0ba9\u0ba4\u0bc1 \u0ba4\u0bbe\u0ba9\u0bbe\u0b95\u0bb5\u0bc7 \u0bae\u0bc0\u0ba3\u0bcd\u0b9f\u0bc1\u0bae\u0bcd \u0bae\u0bc0\u0bb3\u0bcd \u0b9a\u0bc6\u0baf\u0b9f\u0bcd\u0baa\u0b9f\u0bc1\u0ba4\u0bcd\u0ba4\u0baa\u0bcd\u0baa\u0b9f\u0bc1\u0bae\u0bcd."),e.\u0275\u0275elementEnd()()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",h.appPublishDetails)}}function be(z,I){1&z&&(e.\u0275\u0275elementStart(0,"div")(1,"div",48)(2,"div",49),e.\u0275\u0275element(3,"div",50),e.\u0275\u0275elementStart(4,"div",51),e.\u0275\u0275text(5," Subscribing... "),e.\u0275\u0275elementEnd()()()())}const et=function(z){return{width:z}};function Ue(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"p"),e.\u0275\u0275element(1,"img",87),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("src",h.inAppNotificationImageUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(2,et,h.isAppmakerPro?"100%":"auto"))}}function ge(z,I){1&z&&(e.\u0275\u0275elementStart(0,"strong"),e.\u0275\u0275text(1,"Notification"),e.\u0275\u0275elementEnd())}function ke(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"option",88),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&z){const h=I.$implicit;e.\u0275\u0275propertyInterpolate("value",h),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",h," ")}}const gt=function(z){return{display:z}},Pt=function(z){return{"auto-text-unsub-success":z}};let Bt,st,Nt=(()=>{class z{constructor(h,M,F,fe,Ge,ft,Et,$t,vi,wi,sn,on,Gi,tn,Sn,Vn,Lr,Ir,Wr,vs){this.subscription=h,this.activatedRouter=M,this.router=F,this.dataService=fe,this.titleServ=Ge,this.location=ft,this.sms=Et,this.smsRetriever=$t,this.ngZone=vi,this.device=wi,this.appDataService=sn,this.messageService=on,this.notificationService=Gi,this.push=tn,this.pushService=Sn,this.crmCommonService=Vn,this.chatCommonService=Lr,this.profileService=Ir,this.subscriptionService=Wr,this.locTempCommonService=vs,this.appId=v.Jf,this.userId=v.xS,this.templateName=v.Bv,this.appTitle=v.u2,this.articleSize=20,this.hideBackOnHome=!0,this.logoUrl="",this.isCrmApp=!1,this.crmState=!1,this.isCrmLogin=!1,this.isCrmContact=!1,this.isChatApp=!1,this.isLocationApp=!1,this.chatAppState=!1,this.isChatLogin=!1,this.showMyAccount=!0,this.isChatProfile=!1,this.isChatHome=!1,this.isChatDefPage=!1,this.hasChatProfile=!1,this.chatNotificationsCount=0,this.chatMessageCount=0,this.isJobApp="Jobs-III"==this.templateName,this.isActiveJobUser=!1,this.jobAppSideMenuTitle="Login",this.alive=!0,this.isSubscribing=!1,this.isUnsubscribing=!1,this.renewalIntervals=[],this.isFromCMSAppView=!1,this.selectedCountryCode="94",this.enteredMobileNumber="",this.enteredPinHeader="",this.isP2PchatTemplate=!1,this.isNotSearchBtnClickedFromHome=!1,this.showArticleNotification=!1,this.isInMessageConversation=!1,this.isInstallAvailable=!1,this.isEnableNotifyMe=!0,this.isCordovaApp=this.dataService.isCordovaApp(),this.operator=null,this.crmLoginRouteEnabled=!1,this.isAppmakerPro=!1,this.messageCount=0,this.initializeGallery=()=>{$("#gallery div").remove(),setTimeout(()=>{this.dataService.getGallery(this.templateName)},400)},this.cartNo=this.dataService.cart.cartItems.length,this.dataService.isInSearchComponent.subscribe(xn=>{this.isInSearchComponent=xn}),this.dataService.isFromSearchComponent.subscribe(xn=>{this.isFromSearchComponent=xn}),this.dataService.isInHomeComponent.subscribe(xn=>{this.isInHomeComponent=xn}),"Crm"==this.templateName||"CrmV2"==this.templateName?this.isCrmApp=!0:"P2Pchat"==this.templateName||"P2PchatV2"==this.templateName||"P2PchatV3"==this.templateName?this.isChatApp=!0:"Location"==this.templateName&&(this.isLocationApp=!0),"appmaker_2"==this.templateName&&(this.isAppmakerPro=!0),this.titleServ.getLocation().subscribe(xn=>{this.isChatWindow="/chatTemplate/chat"==xn,this.hideBackOnHome=!xn.includes("home"),xn.includes("home")?(this.hideBackOnHome=!1,this.isJobApp&&this.initializeGallery()):this.hideBackOnHome=!xn.includes("crmHome")}),Bt=this,this.titleServ.getLocation().subscribe(xn=>this.tempName=xn),this.dataService.showArticleNotification.subscribe(xn=>{this.showArticleNotification=xn}),this.dataService.isInMessageConversation.subscribe(xn=>{this.isInMessageConversation=xn}),window.addEventListener("beforeinstallprompt",xn=>{this.promptEvent=xn,this.isInstallAvailable=!0}),window.addEventListener("appinstalled",()=>{this.isInstallAvailable=!1}),F.events.subscribe(xn=>{if(xn.url){let Jr=new URLSearchParams(xn.url.split("?")[1]).get("isFromCMSAppView");null!=Jr?(localStorage.setItem(this.appId+"_isFromCMSAppView",Jr),this.dataService.isFromCMSAppView=!0,this.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView"),this.isFreeApp=this.isFromCMSAppView):localStorage.getItem(this.appId+"_isFromCMSAppView")||(localStorage.removeItem(this.appId+"_isFromCMSAppView"),this.dataService.isFromCMSAppView=!1,this.isFromCMSAppView=!1)}}),this.profileService.changeLoggingBtn.subscribe(()=>this.retrieveJobTemplateRelatedData())}ngOnInit(){("P2Pchat"==this.templateName||"P2PchatV2"==this.templateName||"P2PchatV3"==this.templateName)&&(this.isP2PchatTemplate=!0),this.initOTP(),this.dataService.isFromMobile=window.navigator.userAgent.includes(this.dataService.USER_AGENT_TEXT_MOBILE),this.appDataService.getCountries().subscribe(fe=>{const Ge=fe.platformExtCountries.map(ft=>{const Et=ft.countryCode;return Et.substring(Et.indexOf("+")+1)});this.countries=Ge}),this.appDataService.getCrmAppLogoUrl().subscribe(fe=>{this.logoUrl=fe&&fe.length>0?fe:""}),this.dataService.setIsFromBrowser(!this.dataService.isFromMobile&&!this.isFromCMSAppView),$("#registerModel").on("hide.bs.modal",()=>{this.alive=!1,this.isSubscribing=!1}),$("#myAccountModel").on("hide.bs.modal",()=>{this.alive=!1,this.isUnsubscribing=!1}),this.isSubscribing=!1,this.isUnsubscribing=!1;const h=localStorage.getItem(this.appId+"msisdn"),M=localStorage.getItem("UUID");if(this.subscription.getSubscribedData({appId:this.appId,msisdn:h,uuId:M}).subscribe(fe=>{this.subscriptionStatus=fe.subscriptionStatus,this.dataService.subscriptionStatus=fe.subscriptionStatus,this.messageService.sendMessage({subscription:fe}),this.subscriptionStatus===this.dataService.STATUS_SUBSCRIBED&&!fe.isError&&localStorage.setItem(this.appId+"msisdn",fe.msisdn)}),this.isJobApp&&this.retrieveJobTemplateRelatedData(),this.loadSettings(),this.appDataService.getPublishDetails().subscribe(fe=>{if(fe){!0===fe.isPwaDisable&&!this.dataService.isCordovaApp()&&!this.dataService.isFromCMSAppView&&(window.location.href=window.location.protocol+"//"+window.location.host+"/Whoops"),this.dataService.pdfViewerFolder=fe.pdfViewerFolder,this.isFreeApp=fe.isFreeApp;const Ge=fe.operators.filter(Et=>"SUSPENDED"===Et.status||"TERMINATED"===Et.status||"DELETED"===Et.status);this.isFreeAppStatusInvalid=fe&&"FREE"==fe?.operators[0]?.operator&&!!Ge.length,this.isPaidAppStatusInvalid=fe&&"FREE"!==fe?.operators[0]?.operator&&Ge.length===fe.operators.length;let ft=fe.operators.filter(Et=>"SUSPENDED"===Et.status);if(this.isSuspendedApp=!(!fe||"FREE"!=fe.operators[0].operator||"SUSPENDED"!=fe.operators[0].status)||!(!fe||"FREE"==fe.operators[0].operator||ft.length!==fe.operators.length),this.isSuspendedApp)this.dataService.isFreeCategoryViewAvailable=!1,this.dataService.isSuspendedApp=!0,this.isSuspendedApp=!0,this.dataService.displayMessage="FREE"==fe.operators[0].operator?"Service temporarily unavailable.":"The service is temporarily unavailable on the network",this.notifyMe(!0);else if(this.isPaidAppStatusInvalid||this.isFreeAppStatusInvalid)this.dataService.isFreeCategoryViewAvailable=!1,this.dataService.isSuspendedApp=!0,this.dataService.displayMessage=fe.operators.filter($t=>"SUSPENDED"===$t.status).length===fe.operators.length?"The service is temporarily unavailable on the network":"Service no longer available.",this.notifyMe(!0);else{this.appPublishDetails=fe,localStorage.setItem(this.sms.LOCALSTORAGE_KEYWORD_STRING,fe.keyword),localStorage.setItem(this.sms.LOCALSTORAGE_PORT_STRING,fe.port);const Et=fe.operators.filter($t=>"DELETED"===$t.status||"TERMINATED"===$t.status);(this.isSuspendedApp||Et.length>0)&&(this.dataService.isFreeCategoryViewAvailable=!1,this.dataService.isSuspendedApp=!0),this.isSuspendedApp?(this.dataService.displayMessage="The service is temporarily unavailable on the network",this.notifyMe(!0)):Et.length>0&&(this.dataService.displayMessage="Service no longer available.",this.notifyMe(!0))}}}),this.dataService.renewalIntervals.length>0&&(this.renewalIntervals=this.dataService.renewalIntervals),this.titleServ.currentTitle.subscribe(fe=>{this.title=fe}),$(".navbar-2").on("show.bs.collapse",function(){$(".mobileTitle").removeClass("visible-xs"),$(".mobileTitle").addClass("hidden")}),$(".navbar-2").on("hide.bs.collapse",function(){$(".mobileTitle").addClass("visible-xs"),$(".mobileTitle").removeClass("hidden")}),this.messageService.getMessage().subscribe(fe=>{fe.subscription&&null!==fe.subscription&&!fe.subscription.isError?(this.dataService.subscriptionStatus=fe.subscription.subscriptionStatus,this.subscriptionStatus=this.dataService.subscriptionStatus):(fe.subscription&&null===fe.subscription||fe.subscription&&null!==fe.subscription&&fe.subscription.isError)&&(this.dataService.subscriptionStatus=fe.subscription.subscriptionStatus?fe.subscription.subscriptionStatus:null,this.subscriptionStatus=this.dataService.subscriptionStatus)}),this.dataService.isCordovaApp()&&(this.appDataService.getCompatibleApkVersion().subscribe(fe=>{fe>this.dataService.getAppApkVersion()&&$("#apkVersionModel").modal("show")},fe=>{console.log(fe)}),this.apkVersion=this.dataService.getAppApkVersion()),this.dataService.isCordovaApp()||"Notification"in window&&(this.push.isEnabled&&"granted"!==Notification.permission?(this.isEnableNotifyMe=!0,this.pushSubscribe()):this.isEnableNotifyMe=!1),this.activatedRouter.queryParams.subscribe(fe=>{fe.deactivate&&this.unSubCheckPol()}),this.isChatApp){const Ge=localStorage.getItem(`chatLogin-${this.appId}`),ft=JSON.parse(Ge);ft?.loggedUser&&this.chatCommonService.getUnseenChatCounts(ft.loggedUser).subscribe(Et=>{this.chatMessageCount=0;let $t=[];Et.data.msgCountInfo.forEach(vi=>{$t[vi.fromMemberId]=!0,this.chatMessageCount+=vi.count}),this.chatCommonService.setUnseenChatMemberId($t),this.chatCommonService.listenOnMessageCount().subscribe(vi=>{this.chattingMemberId=this.chatCommonService.chattingMemberId,this.chatMessageCount=0;let wi=[];vi.msgCountInfo.forEach(sn=>{this.isChatWindow&&sn.fromMemberId==this.chattingMemberId?this.chatCommonService.removeCurrentChatMessageCount({from:this.chattingMemberId,to:ft.loggedUser}).subscribe(on=>{}):(wi[sn.fromMemberId]=!0,this.chatMessageCount+=sn.count)}),this.chatCommonService.setUnseenChatMemberId(wi)})})}this.dataService.newNotificationCount.subscribe(fe=>{this.messageCount=fe}),this.titleServ.getLocation().subscribe(fe=>{this.isSubCategory="sub_category"===fe,this.isPage="product"===fe})}retrieveJobTemplateRelatedData(){this.JobUserFormDataId=localStorage.hasOwnProperty(this.appId+"JobAppUserappFormDataId")?localStorage.getItem(this.appId+"JobAppUserappFormDataId"):null,this.jobAppSideMenuTitle=this.JobUserFormDataId?"my profile":"login",this.JobUserFormDataId&&this.profileService.checkJobAppUserStatus({formDataId:this.JobUserFormDataId}).subscribe(h=>{this.isActiveJobUser=h.status},h=>{console.log("checkJobAppUserStatus failed !",h)})}loadSettings(){this.appDataService.getSettings().subscribe(h=>{this.dataService.pdfViewerFolder=h.pdfViewerFolder},h=>{console.log("Error while loading settings ",h)})}ngDoCheck(){this.titleServ.currentTitle.subscribe(h=>{this.title=h}),this.subscriptionStatus=this.dataService.subscriptionStatus,this.displayMessage=this.dataService.displayMessage,this.pushMessage=this.dataService.pushMessage,this.inAppNotificationImageUrl=this.dataService.inAppNotificationInfo?this.dataService.inAppNotificationInfo.popupImage:null,this.inAppNotificationBtnName=this.dataService.inAppNotificationInfo&&this.dataService.inAppNotificationInfo.btnText&&""!=this.dataService.inAppNotificationInfo.btnText?this.dataService.inAppNotificationInfo.btnText:"Ok",this.crmNoteTitle=this.dataService.crmNoteTitle,this.crmNoteContent=this.dataService.crmNoteContent,this.crmLoginRouteEnabled=this.dataService.crmLoginRouteEnabled,this.isCrmApp?(this.isCrmLogin=JSON.parse(localStorage.getItem("isCrmLogin")),this.isCrmContact=JSON.parse(localStorage.getItem("isCrmContact")),this.crmState=this.isCrmLogin?this.isCrmLogin:!!this.isCrmContact&&this.isCrmContact):this.isChatApp&&(this.isChatProfile=JSON.parse(localStorage.getItem("isChatProfile")),this.isChatLogin=JSON.parse(localStorage.getItem("isChatLogin")),this.isChatHome=JSON.parse(localStorage.getItem("isChatHome")),this.isChatDefPage=JSON.parse(localStorage.getItem("isChatDefPage")),this.hasChatProfile=JSON.parse(localStorage.getItem("hasChatProfile")),this.chatNotificationsCount=null!==JSON.parse(localStorage.getItem("chatNotificationsCount"))?JSON.parse(localStorage.getItem("chatNotificationsCount")):0,this.chatAppState=!!this.isChatLogin)}navigate(h,M){this.isChatApp?this.isChatLogin?"MatchMe"==M?(this.router.navigate(["/chatTemplate/loginregistration"]),this.closeNav()):(this.router.navigate([h]),this.closeNav()):"MatchMe"==M?(this.router.navigate(["/chatTemplate/matchme"]),this.closeNav()):(this.router.navigate([h]),this.closeNav()):this.isLocationApp?(this.router.navigate(""==h?["/location/home"]:[h]),this.closeNav()):(this.isJobApp?"job"!=h?this.router.navigate([h]):(M=this.JobUserFormDataId?"profileview":"login",this.JobUserFormDataId?this.isActiveJobUser?this.router.navigate([h+"/"+M]):this.notificationService.showNotification("can not access profile, account blocked !"):this.router.navigate([h+"/"+M])):this.router.navigate([h]),this.closeNav())}navigateToHome(){this.router.navigate(["/crm/crmHome"]),this.closeNav()}crmLogOut(){this.crmCommonService.setWithExpiry(!1),localStorage.clear(),this.router.navigate(["/crm/loginPage"]),this.closeNav()}crmModalClose(){this.isUnsubscribing=!1,this.isSubscribing=!1,this.crmLoginRouteEnabled&&(this.crmCommonService.setWithExpiry(!1),this.dataService.crmLoginRouteEnabled=!1,this.router.navigate(["/crm/loginPage"]))}chatModalClose(){const M=localStorage.getItem(`chatLogin-${this.appId}`),F=JSON.parse(M);this.crmLoginRouteEnabled&&(this.chatCommonService.setWithExpiry(F.loggedUser,!1),this.dataService.crmLoginRouteEnabled=!1,this.router.navigate(["/chatTemplate/loginregistration"]))}chatLoginPage(){this.router.navigate(this.hasChatProfile?["/chatTemplate/matchme"]:["/chatTemplate/loginregistration"])}viewChatPage(){this.chatCommonService.chekUserActivation().subscribe(h=>{if(h)this.router.navigate(["/chatTemplate/conversations"]);else{let M="";this.chatCommonService.setLoggedMemberId(M),this.chatCommonService.setLikedByMemberId(M),this.chatCommonService.setConversationId(M),this.chatCommonService.setChattingMemberId(M),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}goToMyProfile(){this.router.navigate(["/chatTemplate/profile"])}chatLogOut(){this.chatCommonService.logOut()}crmContact(){this.router.navigate(["/crm/contactPage"]),this.closeNav()}goBack(){this.dataService.isPopupRequest?this.router.navigate([""]):(this.isFromSearchComponent&&this.dataService.changeIsInSearchComponent(!0),this.location.back())}manualToggle(){this.titleServ.changeTitle("Shopping Cart"),$(".navbar-2").removeClass("in"),$(".mobileTitle").addClass("visible-xs"),$(".mobileTitle").removeClass("hidden")}openNav(){this.isChatApp&&this.updateSubsciptionInfo(),this.isChatApp&&(this.showMyAccount=this.chatCommonService.checkUserLoggedIn()),this.isJobApp&&this.retrieveJobTemplateRelatedData(),this.dataService.isSuspendedApp?$("#appStatusModel").modal("show"):"News"==this.templateName||"Magazine"==this.templateName?(document.getElementById("mySidenav").style.height="100%",document.getElementById("header").style.height="100%"):(document.getElementById("mySidenav").style.width="100%",document.getElementById("header").style.height="100%")}updateSubsciptionInfo(){const h=localStorage.getItem(this.appId+"msisdn"),M=localStorage.getItem("UUID");this.subscription.getSubscribedData({appId:this.appId,msisdn:h,uuId:M}).subscribe(fe=>{this.subscriptionStatus=fe.subscriptionStatus,this.dataService.subscriptionStatus=fe.subscriptionStatus})}closeNav(){"News"==this.templateName||"Magazine"==this.templateName?(document.getElementById("mySidenav").style.height="0",document.getElementById("header").style.height="initial"):(document.getElementById("mySidenav").style.width="0",document.getElementById("header").style.height="initial")}close(){this.isUnsubscribing=!1,this.isSubscribing=!1}initLocationTemp(){this.locTempCommonService.navigate("initCheck")}openRegisterModel(){const h=this.subscriptionService.getSubscriptionMessage().subscribe(F=>{F.message.status===j.Yg.SUB_RESPONSE&&(h.unsubscribe(),F.message.data.data.subscriptionStatus==j.y5.SUBSCRIBED&&(this.subscriptionStatus=F.message.data.data.subscriptionStatus,this.dataService.subscriptionStatus=F.message.data.data.subscriptionStatus,this.messageService.sendMessage({subscription:F.message.data.data})))}),M=new j.Mw;M.status=j.Yg.SUB_REQUEST,this.subscriptionService.sendSubscriptionMessage({message:M})}openMyAccountModel(){const h={appId:this.appId,msisdn:this.dataService.getLocalStorageMSISDN(),uuId:this.dataService.getLocalStorageUUID()},M=this.subscription.getSubscriptionStatus(h).subscribe(F=>{M.unsubscribe(),F.subscriptionStatus===this.dataService.STATUS_SUBSCRIBED?$(()=>{$("#myAccountModel").modal("show")}):(this.dataService.displayMessage=this.dataService.ALREADY_UNSUBSCRIBED_MSG,$(()=>{$("#appStatusModel").modal("show")}))})}onSubscribe(){this.isFromCMSAppView||(this.enteredMobileNumber="",this.initOTP(),$("#registerModel").modal("hide"),$("#enterMSISDNHeader").modal("show"),$("#otpRetryButtonHeader").hide())}onUnsubscribe(){if(!this.isFromCMSAppView){if(this.appPublishDetails.mobitelOpCodes&&this.appPublishDetails.mobitelOpCodes.includes(this.dataService.getLocalStorageMSISDN().substring(0,4))){let F;if(this.dataService.isCordovaApp())F=encodeURIComponent("cordovaApp");else{let Ge=window.location.protocol+"//"+window.location.host+window.location.pathname;F=encodeURIComponent(Ge)}const fe={appId:this.appId,uuId:this.dataService.getLocalStorageUUID(),msisdn:this.dataService.getLocalStorageMSISDN(),hostUrl:F};return void this.subscription.munsub(fe).subscribe(Ge=>{Ge.isError?this.dataService.showPopupMessage(Ge.message):this.isCordovaApp?this.mobitelUnSubCordovaApp(Ge.concent):this.mobitelUnSubPWAApp(Ge.concent)},Ge=>{console.log("Error:",Ge)})}const M={appId:this.appId,msisdn:this.dataService.getLocalStorageMSISDN(),uuId:this.dataService.getLocalStorageUUID()};this.alive=!0,this.dataService.numberOfTries=1,this.subscription.unsubscribe(M).subscribe(F=>{console.log("Unsubscribe result:",F)}),this.isUnsubscribing=!0,(0,le.F)(5e3).pipe((0,Z.o)(()=>this.alive)).subscribe(()=>{if(this.dataService.numberOfTries===this.dataService.defaultNumberOfTries)return this.alive=!1,void this.timeoutUnubscriptionPopup();this.dataService.numberOfTries++,this.subscription.getSubscribedData(M).subscribe(F=>{this.subscriptionStatus=F.subscriptionStatus,this.dataService.subscriptionStatus=F.subscriptionStatus,this.subscriptionStatus===this.dataService.STATUS_UNSUBSCRIBED&&(this.isUnsubscribing=!1,localStorage.removeItem(this.appId+"msisdn"),this.alive=!1,this.router.navigate(this.isP2PchatTemplate?["/chatTemplate/matchme"]:[""]),$(()=>{this.unSubscribedSuccessPopup()}),this.closeNav())})})}}smsSuccessRegistrationCallback(h){console.log("smsSuccessRegistrationCallback inn Header Component: "+h)}smsErrorRegistrationCallback(h){console.log("smsErrorRegistrationCallback in Header Component: "+h),Bt.dataService.displayMessage="Sorry, you do not have enough credit to subscribe to the service",$(()=>{$("#registerModel").modal("hide"),$("#appStatusModel").modal("show")})}smsSuccessUnRegistrationCallback(h){console.log("smsSuccessUnRegistrationCallback in Header Component: "+h)}smsErrorUnRegistrationCallback(h){console.log("smsErrorUnRegistrationCallback in Header Component: "+h),Bt.dataService.displayMessage="Sorry, you do not have enough credit to send the sms to unsubscribe from the service",$(()=>{$("#myAccountModel").modal("toggle"),$("#appStatusModel").modal("show")})}timeoutSubscriptionPopup(){this.dataService.displayMessage="The subscription process timed out. We are unable to subscribe you to the service at this time.",$(()=>{$("#otpModelHeader").modal("hide"),$("#registerModel").modal("hide"),$("#appStatusModel").modal("show")})}timeoutUnubscriptionPopup(){this.dataService.displayMessage="The unsubscription process timed out, Please try again.",$(()=>{$("#myAccountModel").modal("toggle"),$("#appStatusModel").modal("show")})}unSubscribedSuccessPopup(){this.ngZone.run(()=>{this.dataService.displayMessage="You got unsubscribed from the service"}),this.dataService.displayMessage="You got unsubscribed from the service",$(()=>{$("#myAccountModel").modal("toggle"),$("#appStatusModel").modal("show")})}getRenewalIntervalNumberOfDaysByIntervalCode(h){return this.appDataService.getRenewalIntervalNumberOfDaysByIntervalCode(h)}getMSISDN(){return this.selectedCountryCode+""+this.enteredMobileNumber}initOTP(){this.enteredPinHeader=""}onchangeEnteredPin(){$("#enteredPinHeader").keypress(function(h){$("#enteredPinHeader").val().trim().length>=6&&h.preventDefault()})}retry(){this.hideOTPModel(),clearTimeout(st),$("#otpRetryButtonHeader").hide(),$("#enterMSISDNHeader").modal("show")}submitPin(){var h=this;return(0,B.Z)(function*(){const M=h.enteredPinHeader;if(console.log("submit PIN header:",M),clearTimeout(st),M){let F="";if("dialog"===h.operator)try{const Ge=yield h.subscription.getMsisdnFormApiCall();console.log(Ge),F=Ge.msisdn}catch(Ge){console.log("error while getting msisdn"+Ge)}const fe={appId:h.appId,uuId:h.dataService.getLocalStorageUUID(),msisdn:h.getMSISDN(),appTitle:h.appTitle,pin:M,msisdn_api:F};h.showHideSubscribingModel(!0),h.subscription.submitPin(fe).subscribe(Ge=>{Ge.isError?(h.showHideSubscribingModel(!1),h.hideOTPModel(),Bt.dataService.showPopupMessage(Ge.message)):h.subCheckPol()},Ge=>{h.showHideSubscribingModel(!1);const ft=JSON.parse(Ge._body);ft.isError&&(h.hideOTPModel(),Bt.dataService.displayMessage="Wrong PIN"===ft.message||"Wrong Pin"===ft.message?Bt.dataService.wrongPinMsg:ft.message?ft.message:"System Error",$(()=>{$("#appStatusModel").modal("show")}),("Wrong PIN"===ft.message||"Wrong Pin"===ft.message)&&$("#appStatusModel").on("hidden.bs.modal",function(){$("#appStatusModel").off("hidden.bs.modal"),Bt.showOTPModel()}))})}else console.log("<<<<< PIN entered in Header is not valid >>>>>",M)})()}subCheckPol(){const h={appId:this.appId,uuId:this.dataService.getLocalStorageUUID()};this.alive=!0,this.dataService.numberOfTries=1,(0,le.F)(5e3).pipe((0,Z.o)(()=>this.alive)).subscribe(()=>{if(this.dataService.numberOfTries===this.dataService.defaultNumberOfTries)return this.alive=!1,void this.timeoutSubscriptionPopup();this.dataService.numberOfTries++,this.subscription.getSubscribedData(h).subscribe(M=>{this.subscriptionStatus=M.subscriptionStatus,this.dataService.subscriptionStatus=M.subscriptionStatus,this.subscriptionStatus===this.dataService.STATUS_SUBSCRIBED&&localStorage.setItem(this.appId+"msisdn",this.getMSISDN()),M.isError?(this.showHideSubscribingModel(!1),this.alive=!1,this.hideOTPModel(),this.ngZone.run(()=>{this.dataService.showPopupMessage(M.displayMessage)}),this.closeNav()):this.subscriptionStatus===this.dataService.STATUS_SUBSCRIBED&&(this.showHideSubscribingModel(!1),this.alive=!1,this.hideOTPModel(),this.closeNav(),$(()=>{$("#subscribedModel").modal("show")}))})})}showHideSubscribingModel(h){Bt.isSubscribing=h,$(()=>{h?($("#isSubscribingHeader").show(),$("#otpPartHeader").hide()):($("#isSubscribingHeader").hide(),$("#otpPartHeader").show())})}hideOTPModel(){$(()=>{$("#otpModelHeader").modal("hide")})}showOTPModel(){this.initOTP(),$(()=>{$("#otpModelHeader").modal("show")}),this.showRetryButton()}submitMobileNumber(){this.appPublishDetails.mobitelOpCodes&&this.appPublishDetails.mobitelOpCodes.includes(this.getMSISDN().substring(0,4))&&this.appPublishDetails.operators&&this.appPublishDetails.operators.some(M=>"MOBITEL"===M.operator&&"APPROVED"===M.status)?(localStorage.setItem(this.appId+"msisdn",this.getMSISDN()),this.mobitelSub()):this.subPin()}subPin(){$("#enterMSISDNHeader").modal("hide"),this.showOTPModel();const h={appId:this.appId,uuId:this.dataService.getLocalStorageUUID(),msisdn:this.getMSISDN()};this.subscription.subscribePin(h).subscribe(M=>{console.log("subscribePin response:",M),M.isError?(this.hideOTPModel(),Bt.dataService.showPopupMessage(M.message)):(this.operator=M.operator,this.smsRetriever.startSMSRetriver(Bt.smsRetrieverSuccessCallback,Bt.smsRetrieverErrorCallback))},M=>{const F=JSON.parse(M._body);F.isError&&(Bt.hideOTPModel(),Bt.dataService.showPopupMessage(F.message))})}mobitelSub(){let h;if(this.dataService.isCordovaApp())h=encodeURIComponent("cordovaApp");else{let F=window.location.protocol+"//"+window.location.host+window.location.pathname;h=encodeURIComponent(F)}const M={appId:this.appId,uuId:this.dataService.getLocalStorageUUID(),msisdn:this.getMSISDN(),hostUrl:h};this.subscription.msub(M).subscribe(F=>{$("#enterMSISDNHeader").modal("hide"),F.isError&&"ALREADY_SUBSCRIBED"!=F.message?this.dataService.showPopupMessage(F.message):this.isCordovaApp?this.mobitelSubCordovaApp(F.concent):this.mobitelSubPWAApp(F.concent)},F=>{console.log("Error:",F)})}mobitelSubCordovaApp(h){let M=cordova.InAppBrowser.open(h,"_blank","hidden=no,location=no,clearsessioncache=yes,clearcache=yes,hardwareback=no,hideurlbar=yes");M.addEventListener("message",F=>{"SUCCESS"===F.data.status&&(this.isSubscribing=!0,$("#otpModelHeader").modal("show"),this.showHideSubscribingModel(!0),this.subCheckPol(),M.close())})}mobitelSubPWAApp(h){window.location.href=h}mobitelUnSubCordovaApp(h){let M=cordova.InAppBrowser.open(h,"_blank","hidden=no,location=no,clearsessioncache=yes,clearcache=yes,hardwareback=no,hideurlbar=yes");M.addEventListener("message",F=>{"SUCCESS"===F.data.status&&(this.isUnsubscribing=!0,this.ngZone.run(()=>{this.isUnsubscribing=!0}),this.unSubCheckPol(),M.close())})}mobitelUnSubPWAApp(h){window.location.href=h}unSubCheckPol(){const h={appId:this.appId,msisdn:this.dataService.getLocalStorageMSISDN(),uuId:this.dataService.getLocalStorageUUID()};this.alive=!0,this.dataService.numberOfTries=1,this.isUnsubscribing=!0,$("#myAccountModel").modal("show"),(0,le.F)(5e3).pipe((0,Z.o)(()=>this.alive)).subscribe(()=>{if(this.dataService.numberOfTries===this.dataService.defaultNumberOfTries)return this.alive=!1,void this.timeoutUnubscriptionPopup();this.dataService.numberOfTries++,this.subscription.getSubscribedData(h).subscribe(M=>{this.subscriptionStatus=M.subscriptionStatus,this.dataService.subscriptionStatus=M.subscriptionStatus,this.subscriptionStatus===this.dataService.STATUS_UNSUBSCRIBED&&(this.isUnsubscribing=!1,localStorage.removeItem(this.appId+"msisdn"),this.alive=!1,$(()=>{this.unSubscribedSuccessPopup()}),this.router.navigate([""]),this.closeNav())})})}smsRetrieverSuccessCallback(h){console.log("smsRetrieverSuccessCallback in header Component: "+JSON.stringify(h));const M=Bt.subscription.getPINFromSMS(h.Message,Bt.appPublishDetails.OTP_MESSAGE.pinStartIndex,Bt.appPublishDetails.OTP_MESSAGE.pinEndIndex);Bt.ngZone.run(()=>{M&&(Bt.enteredPinHeader=M)}),setTimeout(function(){Bt.submitPin()},1e3)}smsRetrieverErrorCallback(h){console.log("smsRetrieverErrorCallback in header Component: "+JSON.stringify(h))}showRetryButton(){st=setTimeout(function(){""===Bt.enteredPinHeader&&$("#otpRetryButtonHeader").show()},5e3)}searchBtnClickHandler(){this.isInHomeComponent||(this.isNotSearchBtnClickedFromHome=!0,this.router.navigate(["/"])),this.dataService.changeIsInSearchComponent(!0)}backBtnClickHandler(){this.dataService.changeIsInSearchComponent(!1),this.dataService.changeSearchTerm(null),this.isNotSearchBtnClickedFromHome&&(this.isNotSearchBtnClickedFromHome=!1,this.location.back())}closeBtnClickHandler(){this.dataService.changeIsInSearchComponent(!1),this.dataService.changeSearchTerm(null),this.isNotSearchBtnClickedFromHome&&(this.isNotSearchBtnClickedFromHome=!1,this.location.back())}onSearchTermChangeHandler(h){this.dataService.changeSearchTerm(h)}installPWAApp(){this.promptEvent.prompt(),this.promptEvent.userChoice.then(h=>{"accepted"===h.outcome?(console.log("User accepted the A2HS prompt"),this.isInstallAvailable=!1):console.log("User dismissed the A2HS prompt"),this.promptEvent=null})}notifyMe(h){h?$("#appStatusModel").modal("show"):"Notification"in window?"granted"===Notification.permission?(console.log("you have given permission"),this.isEnableNotifyMe=!1):"denied"!==Notification.permission?this.pushSubscribe():(this.isEnableNotifyMe=!1,alert("You have deined notification permission")):(alert("This browser does not support desktop notification"),this.isEnableNotifyMe=!1)}pushSubscribe(){this.push.requestSubscription({serverPublicKey:this.dataService.public_key}).then(h=>{console.log(h.toJSON()),this.pushService.saveSwPushSubscription(h).subscribe(M=>{console.log("saveSwPushSubscription:"+M),this.isEnableNotifyMe=!1})}).catch(h=>{this.isFromCMSAppView||console.log("Could not subscribe to notifications",h)})}isInAppPaymentEnabled(){return null!=localStorage.getItem("purchase-token")}notificationView(){console.log("Clicked Notification Button!")}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(q.E),e.\u0275\u0275directiveInject(d.gz),e.\u0275\u0275directiveInject(d.F0),e.\u0275\u0275directiveInject(u.V),e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(f.Location),e.\u0275\u0275directiveInject(K.o),e.\u0275\u0275directiveInject(U.T),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(me.G),e.\u0275\u0275directiveInject(g.U),e.\u0275\u0275directiveInject(b.e),e.\u0275\u0275directiveInject(xe.g),e.\u0275\u0275directiveInject(ne.Mk),e.\u0275\u0275directiveInject(qe),e.\u0275\u0275directiveInject(ct.E),e.\u0275\u0275directiveInject(ot.d),e.\u0275\u0275directiveInject(dt.H),e.\u0275\u0275directiveInject(j.FF),e.\u0275\u0275directiveInject(jt.v))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["app-header"]],decls:154,vars:30,consts:[["id","header",1,"page-container","header",3,"ngStyle"],["id","bloc-1",1,"bloc","bgc-white","l-bloc","main-navigation"],[1,"container"],[1,"navbar"],[4,"ngIf"],["id","mySidenav",1,"sidenav","main-navigation"],[1,"closebtn","auto-icon-side-menu-close",3,"click"],[1,"auto-btn-side-menu-home",3,"click"],["class","auto-btn-side-menu-register","data-toggle","modal",3,"click",4,"ngIf"],["class","auto-btn-side-menu-myaccount","data-toggle","modal",3,"click",4,"ngIf"],[1,"auto-btn-side-menu-inbox",3,"click"],[1,"auto-btn-side-menu-contactus",3,"click"],[1,"auto-btn-side-menu-privacypolicy",3,"click"],[1,"auto-btn-side-menu-aboutus",3,"click"],[1,"navbar-brand","text-center",3,"click"],["alt","logo",3,"src"],["class","text-center",4,"ngIf"],["onclick","scrollToTarget('1')",1,"bloc-button","btn","btn-d","scrollToTop"],[1,"fa","fa-chevron-up"],["data-backdrop","static","data-keyboard","false","id","myAccountModel","tabindex","-1","role","dialog","aria-labelledby","myAccountModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-body","text-center"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],["type","button",1,"btn","sub-button-sub","btn-block","auto-btn-my-account-unsub",3,"disabled","click"],["type","button","data-dismiss","modal",1,"btn","sub-button-cancel","btn-block","auto-btn-my-account-cancel",3,"click"],["data-backdrop","static","data-keyboard","false","id","registerModel","tabindex","-1","role","dialog","aria-labelledby","registerModalLabel",1,"modal","fade"],["type","button",1,"btn","sub-button-sub","btn-block",3,"disabled","click"],["type","button","data-dismiss","modal",1,"btn","sub-button-cancel","btn-block",3,"click"],["data-backdrop","static","data-keyboard","false","id","appStatusModel","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],[3,"ngClass"],["type","button","data-dismiss","modal",1,"btn","sub-button-sub","btn-block","auto-btn-unsub-success",3,"click"],["data-backdrop","static","data-keyboard","false","id","appPushNotificationModel","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],["type","button","data-dismiss","modal",1,"btn","sub-button-sub","btn-block",3,"click"],["data-backdrop","static","data-keyboard","false","id","enterMSISDNHeader","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],[1,"padding-bottom"],[1,"modal-enter-msisdn"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["type","number",3,"ngModel","ngModelChange"],["type","button","data-dismiss","modal",1,"btn","sub-button-cancel","btn-block"],["data-backdrop","static","data-keyboard","false","id","otpModelHeader","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],["id","otpPartHeader",1,"modal-body","text-center"],[1,"modal-enter-otp-pin"],["type","number","id","enteredPinHeader",3,"ngModel","ngModelChange"],["type","button","id","otpRetryButtonHeader",1,"btn","sub-button-cancel","btn-block",2,"display","none",3,"click"],["id","isSubscribingHeader",2,"display","none"],[1,"wrapper"],[1,"loader-box"],[1,"loader"],[1,"loader-text"],["data-backdrop","static","data-keyboard","false","id","apkVersionModel","tabindex","-1","role","dialog","aria-labelledby","apkModelLabel",1,"modal","fade"],[1,"modal-content","padding-vertical"],["data-backdrop","static","data-keyboard","false","id","subscribedModel","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],["type","button","data-dismiss","modal",1,"btn","sub-button-sub","btn-block"],["aria-label","menu","id","nav-toggle","type","button","class","pull-left ui-navbar-toggle navbar-toggle",3,"click",4,"ngIf"],["aria-label","menu","id","nav-toggle","type","button",1,"pull-left","ui-navbar-toggle","navbar-toggle","auto-icon-side-menu-open",3,"click"],[1,"fa","fa-bars","lg"],[4,"ngIf","ngIfElse"],["notProduct",""],["type","button","class","download navbar-toggle","aria-label","install",3,"right","click",4,"ngIf"],["type","button",1,"ui-navbar-toggle","navbar-toggle",3,"click"],[1,"fa","fa-search"],["type","button","class","ui-navbar-toggle notify navbar-toggle","aria-label","install",3,"click",4,"ngIf"],["aria-label","menu","id","nav-toggle","type","button",1,"pull-left","ui-navbar-toggle","navbar-toggle",3,"click"],[1,"fa","fa-arrow-left"],["noAnimation",""],[1,"mobile-title","mobileTitle",3,"ngClass"],[1,"mobile-title","mobileTitle"],["type","button","aria-label","install",1,"download","navbar-toggle",3,"click"],[1,"fa","fa-download"],["type","button","aria-label","install",1,"ui-navbar-toggle","notify","navbar-toggle",3,"click"],[1,"fa","fa-bell"],[1,"row","verticle-center"],[1,"col-xs-2"],["type","button",1,"pull-left","ui-navbar-toggle","navbar-toggle",3,"click"],[1,"col-xs-8"],["type","text","placeholder","Enter keyword",1,"form-control","input-lg","height-30",3,"input"],["search",""],["type","button",1,"ui-navbar-toggle","navbar-toggle","auto-icon-search-close",3,"click"],[1,"fa","fa-times"],["data-toggle","modal",1,"auto-btn-side-menu-register",3,"click"],["data-toggle","modal",1,"auto-btn-side-menu-myaccount",3,"click"],[1,"text-center"],[1,"auto-text-my-account"],[4,"ngFor","ngForOf"],[3,"ngStyle","src"],[3,"value"]],template:function(M,F){1&M&&(e.\u0275\u0275elementStart(0,"header",0)(1,"div",1)(2,"div",2)(3,"nav",3),e.\u0275\u0275template(4,H,11,5,"div",4),e.\u0275\u0275template(5,W,11,0,"div",4),e.\u0275\u0275template(6,He,2,0,"div",4),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"div",5)(8,"div",6),e.\u0275\u0275listener("click",function(){return F.closeNav()}),e.\u0275\u0275text(9,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"a",7),e.\u0275\u0275listener("click",function(){return F.navigate("","")}),e.\u0275\u0275text(11,"Home"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(12,Te,2,0,"a",8),e.\u0275\u0275template(13,Be,2,0,"a",9),e.\u0275\u0275elementStart(14,"a",10),e.\u0275\u0275listener("click",function(){return F.navigate("inbox","Inbox")}),e.\u0275\u0275text(15,"INBOX"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"a",11),e.\u0275\u0275listener("click",function(){return F.navigate("contact","Contact us")}),e.\u0275\u0275text(17,"Contact Us"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"a",12),e.\u0275\u0275listener("click",function(){return F.navigate("policies","Privacy Policy")}),e.\u0275\u0275text(19,"Privacy Policy"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"a",13),e.\u0275\u0275listener("click",function(){return F.navigate("aboutus","About us")}),e.\u0275\u0275text(21,"About Us"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"div",14),e.\u0275\u0275listener("click",function(){return F.navigate("","")}),e.\u0275\u0275element(23,"img",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(24,mt,2,1,"a",16),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"a",17),e.\u0275\u0275element(26,"span",18),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(27,"div",19)(28,"div",20)(29,"div",21)(30,"div",22)(31,"button",23)(32,"span",24),e.\u0275\u0275text(33,"\xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(34,Pe,5,0,"div",4),e.\u0275\u0275template(35,Qe,6,0,"div",4),e.\u0275\u0275elementStart(36,"button",25),e.\u0275\u0275listener("click",function(){return F.onUnsubscribe()}),e.\u0275\u0275text(37," Unsubscribe Now"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(38,"button",26),e.\u0275\u0275listener("click",function(){return F.close()}),e.\u0275\u0275text(39,"Cancel"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(40,"div",27)(41,"div",20)(42,"div",21)(43,"div",22)(44,"button",23)(45,"span",24),e.\u0275\u0275text(46,"\xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(47,R,10,1,"div",4),e.\u0275\u0275template(48,be,6,0,"div",4),e.\u0275\u0275elementStart(49,"button",28),e.\u0275\u0275listener("click",function(){return F.onSubscribe()}),e.\u0275\u0275text(50," Subscribe Now"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(51,"button",29),e.\u0275\u0275listener("click",function(){return F.close()}),e.\u0275\u0275text(52,"Cancel"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(53,"div",30)(54,"div",20)(55,"div",21)(56,"div",22),e.\u0275\u0275element(57,"br"),e.\u0275\u0275elementStart(58,"p",31),e.\u0275\u0275text(59),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(60,"br"),e.\u0275\u0275elementStart(61,"button",32),e.\u0275\u0275listener("click",function(){return F.close()}),e.\u0275\u0275text(62,"Ok"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(63,"div",33)(64,"div",20)(65,"div",21)(66,"div",22),e.\u0275\u0275template(67,Ue,2,4,"p",4),e.\u0275\u0275template(68,ge,2,0,"strong",4),e.\u0275\u0275element(69,"br"),e.\u0275\u0275elementStart(70,"p"),e.\u0275\u0275text(71),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(72,"br"),e.\u0275\u0275elementStart(73,"button",34),e.\u0275\u0275listener("click",function(){return F.close()}),e.\u0275\u0275text(74),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(75,"div",35)(76,"div",20)(77,"div",21)(78,"div",22)(79,"button",23)(80,"span",24),e.\u0275\u0275text(81,"\xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(82,"h3",36),e.\u0275\u0275text(83,"Subscribe"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(84,"p"),e.\u0275\u0275text(85,"Enter your mobile number."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(86,"p"),e.\u0275\u0275text(87,"\u0d94\u0db6\u0d9c\u0dda \u0da2\u0d82\u0d9c\u0db8 \u0daf\u0dd4\u0dbb\u0d9a\u0dae\u0db1 \u0d85\u0d82\u0d9a\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dad\u0dca \u0d9a\u0dbb\u0db1\u0dca\u0db1."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(88,"p"),e.\u0275\u0275text(89,"\u0b89\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b9f\u0bc8\u0baf \u0b95\u0bc8\u0baa\u0bc7\u0b9a\u0bbf \u0b8e\u0ba3\u0bcd\u0ba3\u0bc8 \u0b89\u0bb3\u0bcd\u0bb3\u0bbf\u0b9f\u0bb5\u0bc1\u0bae\u0bcd."),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(90,"br"),e.\u0275\u0275elementStart(91,"p",37)(92,"span"),e.\u0275\u0275text(93,"+"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(94,"select",38),e.\u0275\u0275listener("ngModelChange",function(Ge){return F.selectedCountryCode=Ge}),e.\u0275\u0275template(95,ke,2,2,"option",39),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(96,"input",40),e.\u0275\u0275listener("ngModelChange",function(Ge){return F.enteredMobileNumber=Ge}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(97,"br"),e.\u0275\u0275elementStart(98,"button",28),e.\u0275\u0275listener("click",function(){return F.submitMobileNumber()}),e.\u0275\u0275text(99,"Submit"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(100,"br"),e.\u0275\u0275elementStart(101,"button",41),e.\u0275\u0275text(102,"Cancel"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(103,"div",42)(104,"div",20)(105,"div",21)(106,"div",43)(107,"button",23)(108,"span",24),e.\u0275\u0275text(109,"\xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(110,"h3",36),e.\u0275\u0275text(111,"Subscribe"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(112,"p"),e.\u0275\u0275text(113,"Enter verification code."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(114,"p"),e.\u0275\u0275text(115,"SMS \u0d9a\u0ddd\u0da9\u0dca \u0d91\u0d9a \u0d87\u0dad\u0dd4\u0dbd\u0dad\u0dca \u0d9a\u0dbb\u0db1\u0dca\u0db1."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(116,"p"),e.\u0275\u0275text(117,"\u0b9a\u0bb0\u0bbf\u0baa\u0bbe\u0bb0\u0bcd\u0baa\u0bcd\u0baa\u0bc1\u0b95\u0bcd \u0b95\u0bc1\u0bb1\u0bbf\u0baf\u0bc0\u0b9f\u0bcd\u0b9f\u0bc8 \u0b89\u0bb3\u0bcd\u0bb3\u0bbf\u0b9f\u0bc1\u0b95."),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(118,"br"),e.\u0275\u0275elementStart(119,"p",44)(120,"input",45),e.\u0275\u0275listener("ngModelChange",function(Ge){return F.enteredPinHeader=Ge})("ngModelChange",function(){return F.onchangeEnteredPin()}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(121,"br"),e.\u0275\u0275elementStart(122,"button",28),e.\u0275\u0275listener("click",function(){return F.submitPin()}),e.\u0275\u0275text(123," Submit "),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(124,"br"),e.\u0275\u0275elementStart(125,"button",46),e.\u0275\u0275listener("click",function(){return F.retry()}),e.\u0275\u0275text(126,"Retry"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(127,"div",47)(128,"div",48)(129,"div",49),e.\u0275\u0275element(130,"div",50),e.\u0275\u0275elementStart(131,"div",51),e.\u0275\u0275text(132," Subscribing... "),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275elementStart(133,"div",52)(134,"div",20)(135,"div",53)(136,"div",22)(137,"p"),e.\u0275\u0275text(138,"You are using an old version of the app. Please close the app and update to the new version."),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(139,"div",54)(140,"div",20)(141,"div",21)(142,"div",22)(143,"h3",36),e.\u0275\u0275text(144,"Thank you"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(145,"p"),e.\u0275\u0275text(146,"You have successfully subscribed to the service."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(147,"p"),e.\u0275\u0275text(148,"\u0d94\u0db6 \u0dc3\u0dcf\u0dbb\u0dca\u0dae\u0d9a\u0dc0 \u0dc3\u0dda\u0dc0\u0dba \u0dc3\u0db3\u0dc4\u0dcf \u0daf\u0dcf\u0dba\u0d9a \u0dc0\u0dd3 \u0d87\u0dad."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(149,"p"),e.\u0275\u0275text(150,"\u0b9a\u0bc7\u0bb5\u0bc8\u0baf\u0bbf\u0bb2\u0bcd \u0bb5\u0bc6\u0bb1\u0bcd\u0bb1\u0bbf\u0b95\u0bb0\u0bae\u0bbe\u0b95 \u0b95\u0bc1\u0bb4\u0bc1\u0b9a\u0bc7\u0bb0\u0bcd\u0ba8\u0bcd\u0ba4\u0bc1\u0bb3\u0bcd\u0bb3\u0bc0\u0bb0\u0bcd\u0b95\u0bb3\u0bcd."),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(151,"br"),e.\u0275\u0275elementStart(152,"button",55),e.\u0275\u0275text(153,"Ok"),e.\u0275\u0275elementEnd()()()()()),2&M&&(e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(26,gt,F.isAppmakerPro?"none":"inline")),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",!F.isInSearchComponent),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",F.isInSearchComponent),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",F.showArticleNotification&&!F.isInMessageConversation),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngIf",!(null!==F.subscriptionStatus&&"UNSUBSCRIBED"!==F.subscriptionStatus||F.isFreeApp||F.isInAppPaymentEnabled())),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","SUBSCRIBED"===F.subscriptionStatus&&!F.isFreeApp&&!F.isInAppPaymentEnabled()),e.\u0275\u0275advance(10),e.\u0275\u0275property("src",F.logoUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",F.apkVersion),e.\u0275\u0275advance(10),e.\u0275\u0275property("ngIf",0==F.isUnsubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==F.isUnsubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",1==F.isUnsubscribing),e.\u0275\u0275advance(11),e.\u0275\u0275property("ngIf",0==F.isSubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==F.isSubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",1==F.isSubscribing),e.\u0275\u0275advance(9),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(28,Pt,"UNSUBSCRIBED"==F.subscriptionStatus)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(F.displayMessage),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngIf",F.inAppNotificationImageUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!F.inAppNotificationImageUrl),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(F.pushMessage),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(F.inAppNotificationBtnName),e.\u0275\u0275advance(20),e.\u0275\u0275property("ngModel",F.selectedCountryCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",F.countries),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",F.enteredMobileNumber),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",!F.enteredMobileNumber||F.enteredMobileNumber>"999999999"),e.\u0275\u0275advance(22),e.\u0275\u0275property("ngModel",F.enteredPinHeader),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",!F.enteredPinHeader))},dependencies:[f.NgClass,f.NgForOf,f.NgIf,f.NgStyle,o.YN,o.Kr,o.Fj,o.wV,o.EJ,o.JJ,o.On,zt,f.TitleCasePipe],styles:['.mobile-title[_ngcontent-%COMP%]{margin-top:9px;margin-right:0;padding:5px 0;width:100%;text-align:center;margin-left:0;position:absolute;font-size:18px;font-weight:700;text-transform:capitalize}.mar-size[_ngcontent-%COMP%]{width:83%}.mar-size2[_ngcontent-%COMP%]{width:80%}@media (max-width: 670px){.mar-size2[_ngcontent-%COMP%]{width:76%}}@media (max-width: 580px){.mar-size[_ngcontent-%COMP%]{width:74%}.mar-size2[_ngcontent-%COMP%]{width:72%}}@media (max-width: 480px){.mar-size2[_ngcontent-%COMP%]{width:66%}}@media (max-width: 390px){.mar-size[_ngcontent-%COMP%]{width:68%}.mar-size2[_ngcontent-%COMP%]{width:60%}}@media (max-width: 322px){.mar-size2[_ngcontent-%COMP%]{width:56%}}.ui-navbar-toggle[_ngcontent-%COMP%]{z-index:1;font-size:18px;margin-top:5px;margin-right:0;margin-bottom:0}.navbar-2[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .navbar-2[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{border:0}.logo[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer;width:100%}.logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin:auto}.sidenav[_ngcontent-%COMP%]{height:100%!important;width:0;position:fixed;z-index:1;top:0;left:0;overflow-x:hidden;transition:.5s;padding-top:60px}.sidenav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:15px;margin:3% 0%;text-decoration:none;font-size:15px;text-transform:uppercase;letter-spacing:2px;display:block;border-radius:5px;font-weight:500;text-align:center;transition:.3s}.sidenav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#f1f1f1}.sidenav[_ngcontent-%COMP%]   .closebtn[_ngcontent-%COMP%]{position:absolute;top:0;right:25px;font-size:36px;margin-left:50px;cursor:pointer}@media screen and (max-height: 450px){.sidenav[_ngcontent-%COMP%]{padding-top:15px}.sidenav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:18px}}.modal[_ngcontent-%COMP%]{text-align:center;padding:0!important}.modal[_ngcontent-%COMP%]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-4px}.modal-dialog[_ngcontent-%COMP%]{display:inline-block;text-align:left;vertical-align:middle}.sub-button-sub[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#2ba2fa,#0092fc,#0081fb,#006ff8,#0f5af2);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.sub-button-cancel[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#ff8c2b,#ff8328,#ff7a25,#ff7024,#ff6623);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.header[_ngcontent-%COMP%]{position:fixed;top:0;width:100%;z-index:10}.wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:360px;width:100%;justify-content:center;align-items:center}.loader-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;content-alignment:center;align-items:center;background-color:#0f0f0f80;border-radius:5px;height:200px;width:250px;box-shadow:1px 1px 1px #2f4f4f}.loader[_ngcontent-%COMP%]{border:1px solid white;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;width:80px;height:80px;animation-name:_ngcontent-%COMP%_loading;animation-duration:.7s;animation-iteration-count:infinite;animation-timing-function:linear}.loader-text[_ngcontent-%COMP%]{margin-top:10px;padding-top:10px;color:#d3d3d3;font-family:Lato,sans-serif;font-size:18px;animation-name:_ngcontent-%COMP%_fading;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}.description-box[_ngcontent-%COMP%]{margin-top:10px;padding:10px 5px;font-family:Lato,sans-serif;font-size:18px;height:35px;line-height:35px;width:500px;background-color:#fff;text-align:center;border-radius:5px}.modal-enter-msisdn[_ngcontent-%COMP%]{font-size:28px}.modal-enter-msisdn[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px;height:40px;border-color:#000;border:1px solid;margin-left:5px}.modal-enter-msisdn[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:170px;padding:3px}.modal-enter-otp-pin[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:40px;border-color:#000;border:1px solid;width:130px;margin-left:10px;text-align:center;font-size:28px}@supports not (-webkit-overflow-scrolling: touch){.modal-enter-otp-pin[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:28px}}@keyframes _ngcontent-%COMP%_loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_fading{0%,to{opacity:.05}50%{opacity:.95}}.verticle-center[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.height-30[_ngcontent-%COMP%]{height:30px}.download[_ngcontent-%COMP%]{position:absolute;right:20px;top:-2px;font-size:18px;animation-direction:normal;animation-play-state:running;animation-duration:1.03s;transform-origin:50px 50px;animation:_ngcontent-%COMP%_download-icon 1s infinite}.notify[_ngcontent-%COMP%]{color:gold}@keyframes _ngcontent-%COMP%_download-icon{0%,to{animation-timing-function:cubic-bezier(.5,0,1,.5);transform:translate(0)}50%{animation-timing-function:cubic-bezier(0,.5,.5,1);transform:translateY(-15px)}49.9%{transform:translateY(15px)}}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}#appPushNotificationModel[_ngcontent-%COMP%]   .modal-dialog[_ngcontent-%COMP%]{max-width:95%}']})}return z})();var at=a(8249),Lt=a(9095);function Rt(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(F.openFooterMyAccount())}),e.\u0275\u0275element(1,"i",20),e.\u0275\u0275elementEnd()}}const ai=function(z){return{display:z}};function Xt(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"footer",10)(1,"div",11)(2,"a",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(F.navigate(""))}),e.\u0275\u0275element(3,"i",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"a",14),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(F.navigate("policies"))}),e.\u0275\u0275element(5,"i",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"a",16),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(F.navigate("contact"))}),e.\u0275\u0275element(7,"i",17),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,Rt,2,0,"a",18),e.\u0275\u0275elementEnd()()}if(2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(2,ai,h.isAppmakerPro?"none":"inline")),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngIf","SUBSCRIBED"===h.subscriptionStatus&&!h.isInAppPaymentEnabled())}}function ui(z,I){1&z&&(e.\u0275\u0275elementStart(0,"div")(1,"h3",21),e.\u0275\u0275text(2,"My Account"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"h4",22),e.\u0275\u0275text(4," Are you sure you want to unsubscribe from this service? "),e.\u0275\u0275elementEnd()())}function vt(z,I){1&z&&(e.\u0275\u0275elementStart(0,"div")(1,"div",23)(2,"div",24),e.\u0275\u0275element(3,"div",25),e.\u0275\u0275elementStart(4,"div",26),e.\u0275\u0275text(5," Un-Subscribing... "),e.\u0275\u0275elementEnd()()()())}var Ut;let Zt=(()=>{class z{constructor(h,M,F,fe,Ge,ft,Et,$t,vi,wi,sn){this.dialog=h,this.subscription=M,this.router=F,this.ngZone=fe,this.messageService=Ge,this.titleServ=ft,this.appDataService=Et,this.chatCommonService=$t,this.dataService=vi,this.crmCommonService=wi,this.lbsCommonService=sn,this.appId=v.Jf,this.alive=!0,this.isSubscribing=!1,this.isUnsubscribing=!1,this.isP2PchatTemplate=!1,this.isFromCMSAppView=!1,this.templateName=v.Bv,this.isCrmApp=!1,this.isCrmLogin=!1,this.isFooterShow=!0,this.isAppmakerPro=!1,this.isLocationApp=!1,this.lbsHome=!1,this.lbsHistory=!1,this.lbsMyProfile=!1,Ut=this,("Crm"==this.templateName||"CrmV2"==this.templateName)&&(this.isCrmApp=!0),("P2Pchat"==this.templateName||"P2PchatV2"==this.templateName||"P2PchatV3"==this.templateName)&&(this.isP2PchatTemplate=!0),"Location"==this.templateName&&(this.isLocationApp=!0,this.setSubscribersForLbs()),this.titleServ.getLocation().subscribe(on=>{this.isFooterShow=JSON.parse(localStorage.getItem("isUserLoggedIn"))&&"/chatTemplate/chat"!=on}),"appmaker_2"==this.templateName&&(this.isAppmakerPro=!0)}ngOnInit(){this.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView"),$("#myAccountModelfooter").on("hide.bs.modal",()=>{this.alive=!1,console.log("model footer close "+this.alive),this.isUnsubscribing=!1}),this.messageService.getMessage().subscribe(h=>{h.subscription&&null!==h.subscription&&!h.subscription.isError?(this.dataService.subscriptionStatus=h.subscription.subscriptionStatus,this.subscriptionStatus=this.dataService.subscriptionStatus):(h.subscription&&null===h.subscription||h.subscription&&null!==h.subscription&&h.subscription.isError)&&(this.dataService.subscriptionStatus=h.subscription.subscriptionStatus?h.subscription.subscriptionStatus:null,this.subscriptionStatus=this.dataService.subscriptionStatus)}),this.appDataService.getPublishDetails().subscribe(h=>{h&&(this.appPublishDetails=h)})}ngDoCheck(){this.isCrmLogin=JSON.parse(localStorage.getItem("isCrmLogin")),this.isFromCMSAppView||(this.subscriptionStatus=this.dataService.subscriptionStatus)}openConfirmationDialog(h){this.dialog.open(at.t,{width:"100%",maxWidth:"270px",maxHeight:"inherit",data:{note:"",title:"Confirm Logout?"},panelClass:"Crm"==this.templateName?"main-background":""}).afterClosed().subscribe(F=>{console.log("The dialog was closed result",F),this.confirmation=F,this.confirmation&&this.crmLogOut()})}openFooterMyAccount(){const h={appId:this.appId,msisdn:this.dataService.getLocalStorageMSISDN(),uuId:this.dataService.getLocalStorageUUID()},M=this.subscription.getSubscriptionStatus(h).subscribe(F=>{M.unsubscribe(),F.subscriptionStatus===this.dataService.STATUS_SUBSCRIBED?$(()=>{$("#myAccountModelfooter").modal("show")}):(this.dataService.displayMessage=this.dataService.ALREADY_UNSUBSCRIBED_MSG,$(()=>{$("#appStatusModel").modal("show")}))})}navigate(h){this.dataService.changeIsInSearchComponent(!1),this.dataService.changeSearchTerm(null),this.isLocationApp?this.lbsCommonService.navigate(h):this.router.navigate([h])}openCrmHome(){this.router.navigate(["/crm/crmHome"])}openCrmContact(){this.router.navigate(["/crm/contactPage"])}crmLogOut(){this.crmCommonService.setWithExpiry(!1),localStorage.clear(),this.router.navigate(["/crm/loginPage"])}close(){this.isUnsubscribing=!1}onUnsubscribe(){if(this.appPublishDetails.mobitelOpCodes&&this.appPublishDetails.mobitelOpCodes.includes(this.dataService.getLocalStorageMSISDN().substring(0,4))){let F;if(this.dataService.isCordovaApp())F=encodeURIComponent("cordovaApp");else{let Ge=window.location.protocol+"//"+window.location.host+window.location.pathname;F=encodeURIComponent(Ge)}const fe={appId:this.appId,uuId:this.dataService.getLocalStorageUUID(),msisdn:this.dataService.getLocalStorageMSISDN(),hostUrl:F};return void this.subscription.munsub(fe).subscribe(Ge=>{Ge.isError?this.dataService.showPopupMessage(Ge.message):this.dataService.isCordovaApp()?this.mobitelUnSubCordovaApp(Ge.concent):this.mobitelUnSubPWAApp(Ge.concent)},Ge=>{console.log("Error:",Ge)})}const M={appId:this.appId,msisdn:this.dataService.getLocalStorageMSISDN(),uuId:this.dataService.getLocalStorageUUID()};this.alive=!0,this.subscription.unsubscribe(M).subscribe(F=>{console.log("Unsubscribe result:",F)}),this.dataService.numberOfTries=1,this.isUnsubscribing=!0,(0,le.F)(5e3).pipe((0,Z.o)(()=>this.alive)).subscribe(()=>{if(this.dataService.numberOfTries===this.dataService.defaultNumberOfTries)return this.alive=!1,void this.timeoutUnubscriptionPopup();this.dataService.numberOfTries++,this.subscription.getSubscribedData(M).subscribe(F=>{this.subscriptionStatus=F.subscriptionStatus,this.dataService.subscriptionStatus=F.subscriptionStatus,this.subscriptionStatus===this.dataService.STATUS_UNSUBSCRIBED&&(this.isUnsubscribing=!1,localStorage.removeItem(this.appId+"msisdn"),this.alive=!1,this.router.navigate(this.isP2PchatTemplate?["/chatTemplate/matchme"]:[""]),$(()=>{this.unSubscribedSuccessPopup()}),"News"==this.templateName||"Magazine"==this.templateName?(document.getElementById("mySidenav").style.height="0",document.getElementById("header").style.height="initial"):(document.getElementById("mySidenav").style.width="0",document.getElementById("header").style.height="initial"))})})}mobitelUnSubCordovaApp(h){let M=cordova.InAppBrowser.open(h,"_blank","hidden=no,location=no,clearsessioncache=yes,clearcache=yes,hardwareback=no,hideurlbar=yes");M.addEventListener("message",F=>{"SUCCESS"===F.data.status&&(this.isUnsubscribing=!0,this.ngZone.run(()=>{this.isUnsubscribing=!0}),this.unSubCheckPol(),M.close())})}mobitelUnSubPWAApp(h){window.location.href=h}unSubCheckPol(){const h={appId:this.appId,msisdn:this.dataService.getLocalStorageMSISDN(),uuId:this.dataService.getLocalStorageUUID()};this.alive=!0,this.dataService.numberOfTries=1,this.isUnsubscribing=!0,$("#myAccountModelfooter").modal("show"),(0,le.F)(5e3).pipe((0,Z.o)(()=>this.alive)).subscribe(()=>{if(this.dataService.numberOfTries===this.dataService.defaultNumberOfTries)return this.alive=!1,void this.timeoutUnubscriptionPopup();this.dataService.numberOfTries++,this.subscription.getSubscribedData(h).subscribe(M=>{this.subscriptionStatus=M.subscriptionStatus,this.dataService.subscriptionStatus=M.subscriptionStatus,this.subscriptionStatus===this.dataService.STATUS_UNSUBSCRIBED&&(this.isUnsubscribing=!1,localStorage.removeItem(this.appId+"msisdn"),this.alive=!1,this.router.navigate([""]),$(()=>{this.unSubscribedSuccessPopup()}))})})}smsSuccessUnRegistrationCallback(h){console.log("smsSuccessUnRegistrationCallback in Footer Component: "+h)}smsErrorUnRegistrationCallback(h){console.log("smsErrorUnRegistrationCallback in Footer Component: "+h),Ut.dataService.displayMessage="Sorry, you do not have enough credit to send the sms to unsubscribe from the service",$(()=>{$("#myAccountModelfooter").modal("hide"),$("#appStatusModel").modal("show")})}timeoutUnubscriptionPopup(){this.dataService.displayMessage="The unsubscription process timed out, Please try again.",$(()=>{$("#myAccountModelfooter").modal("toggle"),$("#appStatusModel").modal("show")})}unSubscribedSuccessPopup(){this.dataService.displayMessage="You got unsubscribed from the service",$(()=>{$("#myAccountModelfooter").modal("toggle"),$("#appStatusModel").modal("show")})}viewHomePage(){this.chatCommonService.chekUserActivation().subscribe(h=>{if(h)this.router.navigate(["/chatTemplate/matchme"]);else{let M="";this.chatCommonService.setLoggedMemberId(M),this.chatCommonService.setLikedByMemberId(M),this.chatCommonService.setConversationId(M),this.chatCommonService.setChattingMemberId(M),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}viewProfilePage(){this.chatCommonService.chekUserActivation().subscribe(h=>{if(h)this.router.navigate(["/chatTemplate/profile"]);else{let M="";this.chatCommonService.setLoggedMemberId(M),this.chatCommonService.setLikedByMemberId(M),this.chatCommonService.setConversationId(M),this.chatCommonService.setChattingMemberId(M),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}viewChatPage(){this.chatCommonService.chekUserActivation().subscribe(h=>{if(h)this.router.navigate(["/chatTemplate/conversations"]);else{let M="";this.chatCommonService.setLoggedMemberId(M),this.chatCommonService.setLikedByMemberId(M),this.chatCommonService.setConversationId(M),this.chatCommonService.setChattingMemberId(M),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}isInAppPaymentEnabled(){return null!=localStorage.getItem("purchase-token")}setSubscribersForLbs(){this.subOnLbsRoute=this.lbsCommonService.getNavigatedPath().subscribe(h=>{h&&"/location/home"===h?(this.lbsHome=!0,this.lbsHistory=!1,this.lbsMyProfile=!1):h&&"/location/location_history"===h||"/location/location_map"===h||"/location/history"===h?(this.lbsHome=!1,this.lbsHistory=!0,this.lbsMyProfile=!1):h&&"/location/my_profile"===h||"/location/user_registration"===h?(this.lbsHome=!1,this.lbsHistory=!1,this.lbsMyProfile=!0):(this.lbsHome=!1,this.lbsHistory=!1,this.lbsMyProfile=!1)})}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(Lt.on),e.\u0275\u0275directiveInject(q.E),e.\u0275\u0275directiveInject(d.F0),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(b.e),e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(g.U),e.\u0275\u0275directiveInject(ot.d),e.\u0275\u0275directiveInject(u.V),e.\u0275\u0275directiveInject(ct.E),e.\u0275\u0275directiveInject(jt.v))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["app-footer"]],decls:14,vars:4,consts:[["class","footer main-footer-back",3,"ngStyle",4,"ngIf"],["id","myAccountModelfooter","tabindex","-1","role","dialog","aria-labelledby","myAccountModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-body","text-center"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[4,"ngIf"],["type","button",1,"btn","sub-button-sub","btn-block","auto-btn-my-account-unsub",3,"disabled","click"],["type","button","data-dismiss","modal",1,"btn","sub-button-cancel","btn-block","auto-btn-my-account-cancel",3,"click"],[1,"footer","main-footer-back",3,"ngStyle"],["role","group","aria-label","footer",1,"btn-group"],["type","button","aria-label","Home",1,"main-footer-header",3,"click"],[1,"fa","fa-home","fa-lg"],["type","button","aria-label","Policies",1,"main-footer-header",3,"click"],[1,"fa","fa-shield","fa-lg"],["type","button","aria-label","Contact",1,"main-footer-header",3,"click"],[1,"fa","fa-phone","fa-lg"],["type","button","class","main-footer-header","aria-label","My Account","data-toggle","modal",3,"click",4,"ngIf"],["type","button","aria-label","My Account","data-toggle","modal",1,"main-footer-header",3,"click"],[1,"fa","fa-user","fa-lg"],[1,"padding-bottom"],[1,"auto-text-my-account"],[1,"wrapper"],[1,"loader-box"],[1,"loader"],[1,"loader-text"]],template:function(M,F){1&M&&(e.\u0275\u0275template(0,Xt,9,4,"footer",0),e.\u0275\u0275elementStart(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"button",5)(6,"span",6),e.\u0275\u0275text(7,"\xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(8,ui,5,0,"div",7),e.\u0275\u0275template(9,vt,6,0,"div",7),e.\u0275\u0275elementStart(10,"button",8),e.\u0275\u0275listener("click",function(){return F.onUnsubscribe()}),e.\u0275\u0275text(11,"Unsubscribe Now"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"button",9),e.\u0275\u0275listener("click",function(){return F.close()}),e.\u0275\u0275text(13,"Cancel"),e.\u0275\u0275elementEnd()()()()()),2&M&&(e.\u0275\u0275property("ngIf",!F.isP2PchatTemplate),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngIf",0==F.isUnsubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==F.isUnsubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",1==F.isUnsubscribing))},dependencies:[f.NgIf,f.NgStyle],styles:['.footer[_ngcontent-%COMP%]{position:fixed;bottom:0;height:60px;width:100%;box-shadow:0 -2px 20px 2px #0000001f;background-color:#fff}.footer[_ngcontent-%COMP%]   .btn-group[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around;height:100%}.footer[_ngcontent-%COMP%]   .btn-group[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:0;color:#989898}.footer[_ngcontent-%COMP%]   .btn-group[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:active{color:#000;background-color:transparent;box-shadow:none}.footer[_ngcontent-%COMP%]   button.btn.btn-default[_ngcontent-%COMP%]:active:after{content:"";width:55px;height:5px;background:black;position:absolute;left:-5px;bottom:-14px}.btn-default[_ngcontent-%COMP%]:hover{background-color:#fff}.modal[_ngcontent-%COMP%]{text-align:center;padding:0!important}.modal[_ngcontent-%COMP%]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-4px}.modal-dialog[_ngcontent-%COMP%]{display:inline-block;text-align:left;vertical-align:middle}.sub-button-sub[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#2ba2fa,#0092fc,#0081fb,#006ff8,#0f5af2);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.sub-button-cancel[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#ff8c2b,#ff8328,#ff7a25,#ff7024,#ff6623);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.header[_ngcontent-%COMP%]{position:fixed;top:0;width:100%;box-shadow:0 2px 20px 2px #0000001f;z-index:10}.wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:360px;width:100%;justify-content:center;align-items:center}.loader-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;content-alignment:center;align-items:center;background-color:#0f0f0f80;border-radius:5px;height:200px;width:250px;box-shadow:1px 1px 1px #2f4f4f}.loader[_ngcontent-%COMP%]{border:1px solid white;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;width:80px;height:80px;animation-name:_ngcontent-%COMP%_loading;animation-duration:.7s;animation-iteration-count:infinite;animation-timing-function:linear}.loader-text[_ngcontent-%COMP%]{margin-top:10px;padding-top:10px;color:#d3d3d3;font-family:Lato,sans-serif;font-size:18px;animation-name:_ngcontent-%COMP%_fading;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}.description-box[_ngcontent-%COMP%]{margin-top:10px;padding:10px 5px;font-family:Lato,sans-serif;font-size:18px;height:35px;line-height:35px;width:500px;background-color:#fff;text-align:center;border-radius:5px}@keyframes _ngcontent-%COMP%_loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_fading{0%,to{opacity:.05}50%{opacity:.95}}']})}return z})();function Ci(z,I){1&z&&(e.\u0275\u0275elementStart(0,"div",6)(1,"h4")(2,"b"),e.\u0275\u0275text(3,"Sorry no content available, kindly add at least one category to proceed."),e.\u0275\u0275elementEnd()()())}const _i=function(z){return{display:z}};function pi(z,I){if(1&z&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",2),e.\u0275\u0275element(2,"app-header")(3,"app-page-body")(4,"app-footer"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",3),e.\u0275\u0275element(6,"img",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,Ci,4,0,"div",5),e.\u0275\u0275elementContainerEnd()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(3,_i,h.isImagesLoaded?"block":h.isImagesLoaded?null:"none")),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(5,_i,h.isImagesLoaded?h.isImagesLoaded?"none":null:"flex")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",h.isDisplayNoContentAvaiable)}}function Bi(z,I){1&z&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275element(1,"app-header")(2,"app-page-body")(3,"app-footer"),e.\u0275\u0275elementEnd())}let ze=(()=>{class z{constructor(h,M,F,fe,Ge,ft){this.router=h,this.dataService=M,this.messageService=F,this.connectionService=fe,this.appdataService=Ge,this.titleService=ft,this.title="app works!",this.appId=v.Jf,this.userId=v.xS,this.templateName=v.Bv,this.isJobApp="Jobs-III"==v.Bv,this.isEducation="Education"==v.Bv,this.isAppmaker_2="appmaker_2"==v.Bv,this.isLocationApp="Location"==v.Bv,this.isImagesLoaded=this.dataService.isImagesLoaded,this.isDisplayNoContentAvaiable=!1,this.isAppmakerPro=!1,this.getAndSetFacebookPixelId(),h.events.subscribe(Et=>{if(Et.url){let vi=new URLSearchParams(Et.url.split("?")[1]).get("isFromCMSAppView");null!=vi?(localStorage.setItem(this.appId+"_isFromCMSAppView",vi),this.dataService.isFromCMSAppView=!0):localStorage.getItem(this.appId+"_isFromCMSAppView")||(localStorage.removeItem(this.appId+"_isFromCMSAppView"),this.dataService.isFromCMSAppView=!1)}}),this.messageService.getMessage().subscribe(Et=>{this.dataService.initialImageCount<=Et.loadImageCount||-2===Et.loadImageCount||this.isJobApp||this.isEducation?(this.dataService.isImagesLoaded=!0,this.isImagesLoaded=this.dataService.isImagesLoaded,window.hasOwnProperty("cordova")&&navigator.splashscreen?.hide(),-3===Et.loadImageCount&&this.isEducation&&(this.isDisplayNoContentAvaiable=!0)):-3===Et.loadImageCount?this.isDisplayNoContentAvaiable=!0:Et.loadImageCount&&(this.isImagesLoaded=!1)},Et=>console.log(Et)),this.connectionService.monitor().subscribe(Et=>{Et?$("#connectionModal").modal("hide"):$("#connectionModal").modal("show")}),this.appdataService.getAppDetails({}).subscribe(Et=>{this.titleService.setTitle(Et.app.appName)}),"appmaker_2"==this.templateName&&(this.isAppmakerPro=!0),this.isLocationApp&&(this.addCustomLinksIntoDOM("stylesheet","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css",null,null),this.addCustomLinksIntoDOM("stylesheet","https://unpkg.com/leaflet@1.9.4/dist/leaflet.css","sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=",""),this.addCustomScriptsIntoDOM("https://unpkg.com/leaflet@1.9.4/dist/leaflet.js","sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=",""))}addCustomLinksIntoDOM(h,M,F,fe){const Ge=document.createElement("link");Ge.rel=h,Ge.href=M,F&&(Ge.integrity=F),(fe||""===fe)&&(Ge.crossOrigin=fe),document.head.appendChild(Ge)}addCustomScriptsIntoDOM(h,M,F){const fe=document.createElement("script");fe.src=h,M&&(fe.integrity=M),(F||""===F)&&(fe.crossOrigin=F),document.body.appendChild(fe)}getAndSetFacebookPixelId(){this.appdataService.getFaceBookPixelId().subscribe(h=>{window.hasOwnProperty("fbq")&&h.facebookPixelId&&fbq("init",h.facebookPixelId)})}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(d.F0),e.\u0275\u0275directiveInject(u.V),e.\u0275\u0275directiveInject(b.e),e.\u0275\u0275directiveInject(x),e.\u0275\u0275directiveInject(g.U),e.\u0275\u0275directiveInject(n.Dx))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["app-root"]],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["appmakerPro",""],[3,"ngStyle"],[1,"spinnerSplashParent",3,"ngStyle"],["src","./assets/images/Loading75.gif",1,"spinnerSplash"],["class","no-content",4,"ngIf"],[1,"no-content"]],template:function(M,F){if(1&M&&(e.\u0275\u0275template(0,pi,8,7,"ng-container",0),e.\u0275\u0275template(1,Bi,4,0,"ng-template",null,1,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275element(3,"app-subscription")(4,"app-unsubscription")),2&M){const fe=e.\u0275\u0275reference(2);e.\u0275\u0275property("ngIf",!F.isAppmakerPro)("ngIfElse",fe)}},dependencies:[f.NgIf,f.NgStyle,S,j.b8,j.sH,Nt,Zt],styles:['app-page-body[_ngcontent-%COMP%]{min-height:calc(100vh - 382px);display:block}.spinnerSplash[_ngcontent-%COMP%]{margin:auto}.spinnerSplashParent[_ngcontent-%COMP%]{width:100%;background:#fff;height:100vh;z-index:1041;opacity:1;text-align:center}.modal[_ngcontent-%COMP%]{text-align:center;padding:0!important}.modal[_ngcontent-%COMP%]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-4px}.modal-dialog[_ngcontent-%COMP%]{display:inline-block;text-align:left;vertical-align:middle;z-index:1;position:relative}.no-content[_ngcontent-%COMP%]{width:100vw;height:100vh;background:#fff;z-index:100;position:fixed;top:0;left:0;display:flex;align-items:center;justify-content:center}']})}return z})();var ue=a(5252),re=a(3634),Ee=a(2037),Re=a(6423),We=a(5550),xt=a(3048),Ht=a(9209);let wt=(()=>{class z{constructor(h){this.http=h}getGamezopConfigs(){return this.http.get(`${nt.L}/edit/getGamezopConfigs`)}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275inject(l.eN))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();function Mt(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",5)(1,"img",6),e.\u0275\u0275listener("load",function(F){e.\u0275\u0275restoreView(h);const fe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(fe.onImageLoaded(F))})("error",function(F){e.\u0275\u0275restoreView(h);const fe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(fe.onImgLoadingError(F))}),e.\u0275\u0275elementEnd()()}if(2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("src",h.currentCategory.imgUrl,e.\u0275\u0275sanitizeUrl)}}function It(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9),e.\u0275\u0275listener("click",function(){const fe=e.\u0275\u0275restoreView(h).$implicit,Ge=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Ge.onCategoryClickHandler(fe))}),e.\u0275\u0275elementStart(1,"div",10)(2,"img",6),e.\u0275\u0275listener("load",function(F){e.\u0275\u0275restoreView(h);const fe=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(fe.onImageLoaded(F))})("error",function(F){e.\u0275\u0275restoreView(h);const fe=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(fe.onImgLoadingError(F))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(3,"div",10)(4,"div",11),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()()}if(2&z){const h=I.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("src",h.imgUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(h.name)}}const se=function(z,I){return{"t-padding-58":z,"b-padding-45":I}};function we(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275template(1,It,6,2,"div",8),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("t-padding-top-12",h.isAppEnabledGamezopAds&&h.isTemplateEnabledToGamezop),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(4,se,!h.currentCategory,h.data.articles&&0===h.data.articles.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",h.data.categories)}}function Le(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("",h.data.fullArticlesCount," Pages")}}function Ie(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",17),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext().$implicit,fe=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(fe.onArticleClickHandler(F))}),e.\u0275\u0275elementStart(1,"img",6),e.\u0275\u0275listener("load",function(F){e.\u0275\u0275restoreView(h);const fe=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(fe.onImageLoaded(F))})("error",function(F){e.\u0275\u0275restoreView(h);const fe=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(fe.onImgLoadingError(F))}),e.\u0275\u0275elementEnd()()}if(2&z){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("src",null==h.tempImageArray[0]?null:h.tempImageArray[0].imgUrl,e.\u0275\u0275sanitizeUrl)}}function Ot(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",18),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext().$implicit,fe=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(fe.onArticleClickHandler(F))}),e.\u0275\u0275elementStart(1,"img",6),e.\u0275\u0275listener("load",function(F){e.\u0275\u0275restoreView(h);const fe=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(fe.onImageLoaded(F))})("error",function(F){e.\u0275\u0275restoreView(h);const fe=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(fe.onImgLoadingError(F))}),e.\u0275\u0275elementEnd()()}if(2&z){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("src",null==h.tempImageArray[0]?null:h.tempImageArray[0].imgUrl,e.\u0275\u0275sanitizeUrl)}}function Me(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275template(1,Ie,2,1,"a",15),e.\u0275\u0275template(2,Ot,2,1,"a",16),e.\u0275\u0275elementStart(3,"div",11),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&z){const h=I.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!h.isPdfUploadEnable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.isPdfUploadEnable),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(h.title)}}function yt(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Me,5,3,"div",13),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",h.data.articles)}}class St{static#e=this.APP_NAME=v.u2;static#t=this.APP_ID=v.Jf;static#i=this.TEMPLATE_NAME=v.Bv;static#n=this.TEMPLATE={ZODIAC:"Zodiac",COMIC:"Comic",MAGAZINE:"Magazine"};constructor(I,h,M,F,fe,Ge,ft,Et){this.router=I,this.messageService=h,this.sanitizer=M,this.dataService=F,this.cdr=fe,this.commonService=Ge,this.titleServ=ft,this.ngZone=Et,this.isAppEnabledGamezopAds=!1,this.isTemplateEnabledToGamezop=!1,this.loadImageCount=0,this.imgLoadingErrCount=0,this.articleDescriptions=[],this.isFromCMSAppView=!1,this.isArticles=!1,this.bannerImgUrl=null,this.isMainCategory=!1,this.isSubCategory=!1,this.categoryClicked=new e.EventEmitter,this.isFromCMSAppView="1"===localStorage.getItem(St.APP_ID+"_isFromCMSAppView"),this.bannerImgUrl=this.commonService.getlocationBannerUrl()}ngOnChanges(){if(this.articleDescriptions=[],St.TEMPLATE_NAME===St.TEMPLATE.ZODIAC?this.noOfCategoryRows=Math.ceil(this.data.categories.length/3):(St.TEMPLATE_NAME===St.TEMPLATE.COMIC||St.TEMPLATE_NAME===St.TEMPLATE.MAGAZINE)&&(this.noOfCategoryRows=Math.ceil(this.data.categories.length/2)),this.currentCategory=this.data.mainCategory,this.data.articles&&this.data.articles.length>0)for(let I=0;I<this.data.articles.length;I++)this.articleDescriptions.push(this.data.articles[I].desc);this.cdr.detectChanges(),this.data.categories&&this.data.categories.length&&((this.data.categories.isMainCategory=!0)?(this.isMainCategory=!0,console.log("this.isMainCategory",this.isMainCategory)):(this.isMainCategory=!1,console.log("this.isMainCategory",this.isMainCategory)))}ngOnInit(){this.titleServ.getLocation().subscribe(I=>{"sub_category"===I&&(this.isSubCategory=!0)})}onCategoryClickHandler(I){this.categoryClicked.emit({data:I})}onArticleClickHandler(I){this.dataService.data=I,this.router.navigate(I.isForm?["form",this.currentCategory.name,this.currentCategory.id,I.id]:"Education"==St.TEMPLATE_NAME?["questions",this.currentCategory.name,this.currentCategory.id,I.id]:[I.isQuestion?"questions":"product",this.currentCategory.name,this.currentCategory.id,I.id])}onImageLoaded(I){this.loadImageCount+=1,this.imgLoadingErrCount?(this.dataService.initialImageCount=this.data.categories.length,this.messageService.sendMessage({loadImageCount:-2})):(this.dataService.initialImageCount=this.loadImageCount,this.messageService.sendMessage({loadImageCount:this.loadImageCount}))}onImgLoadingError(I){this.imgLoadingErrCount+=1}getSafeHtml(I){return this.sanitizer.bypassSecurityTrustHtml(I)}showInfo(){this.router.navigate(["/location/information"])}navigate(I){this.commonService.navigate(I)}static#r=this.\u0275fac=function(h){return new(h||St)(e.\u0275\u0275directiveInject(d.F0),e.\u0275\u0275directiveInject(b.e),e.\u0275\u0275directiveInject(n.H7),e.\u0275\u0275directiveInject(u.V),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(jt.v),e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(e.NgZone))};static#o=this.\u0275cmp=e.\u0275\u0275defineComponent({type:St,selectors:[["category"]],inputs:{isAppEnabledGamezopAds:"isAppEnabledGamezopAds",isTemplateEnabledToGamezop:"isTemplateEnabledToGamezop",data:"data"},outputs:{categoryClicked:"categoryClick"},features:[e.\u0275\u0275NgOnChangesFeature],decls:5,vars:4,consts:[["class","b-padding-30 t-padding-58",4,"ngIf"],["class","h-padding-16",3,"t-padding-top-12","ngClass",4,"ngIf"],[1,"bgc-white","b-padding-45"],["class","text-center grey margin-l main-content-font",4,"ngIf"],[4,"ngIf"],[1,"b-padding-30","t-padding-58"],["width","100%",3,"src","load","error"],[1,"h-padding-16",3,"ngClass"],["class","row auto-card-category",3,"click",4,"ngFor","ngForOf"],[1,"row","auto-card-category",3,"click"],[1,"col-xs-12"],[1,"main-header-font","name"],[1,"text-center","grey","margin-l","main-content-font"],["class","margin prod auto-article-click",4,"ngFor","ngForOf"],[1,"margin","prod","auto-article-click"],[3,"click",4,"ngIf"],["target","_blank",3,"click",4,"ngIf"],[3,"click"],["target","_blank",3,"click"]],template:function(h,M){1&h&&(e.\u0275\u0275template(0,Mt,2,1,"div",0),e.\u0275\u0275template(1,we,2,7,"div",1),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275template(3,Le,2,1,"div",3),e.\u0275\u0275template(4,yt,2,1,"div",4),e.\u0275\u0275elementEnd()),2&h&&(e.\u0275\u0275property("ngIf",M.currentCategory),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",M.data.categories&&M.data.categories.length>0),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",M.currentCategory&&M.data.articles),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",M.data.articles&&M.data.articles.length>0))},dependencies:[f.NgClass,f.NgForOf,f.NgIf],styles:["img[_ngcontent-%COMP%]{object-fit:cover}.t-padding-58[_ngcontent-%COMP%]{padding-top:58px}.t-padding-top-12[_ngcontent-%COMP%]{padding-top:12px}.t-padding-42[_ngcontent-%COMP%]{padding-top:42px}.h-padding-16[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px}.b-padding-30[_ngcontent-%COMP%]{padding-bottom:30px}.b-padding-45[_ngcontent-%COMP%]{padding-bottom:45px}.name[_ngcontent-%COMP%]{padding:10px 5px 20px;text-transform:uppercase}.prod[_ngcontent-%COMP%]{border-radius:5px 5px 2px 2px;box-shadow:0 0 3px 2px #0000004f}.prod[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:5px 5px 0 0;height:100%}"],changeDetection:0})}let ii=(()=>{class z{constructor(){this.gamezopCustomParameter="",this.gamezopConfigs={},this.uniqueLink="",this.bannerUrl=""}ngOnChanges(h){h.gamezopConfigs&&(this.uniqueLink=h.gamezopConfigs.currentValue.uniqueLink?this.makeUniqueGamezopLinkWithCustomParam(h.gamezopConfigs.currentValue.uniqueLink):"#",this.bannerUrl=h.gamezopConfigs.currentValue.defaultBannerLink)}makeUniqueGamezopLinkWithCustomParam(h){return h+"?cust-params="+this.gamezopCustomParameter}static#e=this.\u0275fac=function(M){return new(M||z)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["gamezop-ad-banner"]],inputs:{gamezopCustomParameter:"gamezopCustomParameter",gamezopConfigs:"gamezopConfigs"},features:[e.\u0275\u0275NgOnChangesFeature],decls:3,vars:2,consts:[[1,"gamezop-banner"],["target","_blank",3,"href"],["alt","Gamezop default banner",3,"src"]],template:function(M,F){1&M&&(e.\u0275\u0275elementStart(0,"div",0)(1,"a",1),e.\u0275\u0275element(2,"img",2),e.\u0275\u0275elementEnd()()),2&M&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("href",F.uniqueLink,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("src",F.bannerUrl,e.\u0275\u0275sanitizeUrl))},styles:[".gamezop-banner[_ngcontent-%COMP%]{text-align:center;margin-top:60px}.gamezop-banner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;height:auto}"]})}return z})();function Ki(z,I){if(1&z&&e.\u0275\u0275element(0,"gamezop-ad-banner",39),2&z){const h=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("gamezopConfigs",h.gamezopConfigs)("gamezopCustomParameter",h.gamezopCustomParameter)}}function Pn(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"category",40),e.\u0275\u0275listener("categoryClick",function(F){e.\u0275\u0275restoreView(h);const fe=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(fe.onCategoryClicked(F))}),e.\u0275\u0275elementEnd()}if(2&z){const h=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("isAppEnabledGamezopAds",h.isAppEnabledGamezopAds)("isTemplateEnabledToGamezop",h.isTemplateEnabledToGamezop)("data",h.categoryDetails)}}function ir(z,I){1&z&&(e.\u0275\u0275elementStart(0,"div",41),e.\u0275\u0275element(1,"img",42),e.\u0275\u0275elementEnd())}function Fr(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Ki,1,2,"gamezop-ad-banner",36),e.\u0275\u0275template(2,Pn,1,3,"category",37),e.\u0275\u0275template(3,ir,2,0,"div",38),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.isAppEnabledGamezopAds&&h.isTemplateEnabledToGamezop),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.categoryDetails),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.skip!=h.fullCount)}}function yr(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",46),e.\u0275\u0275listener("click",function(){const fe=e.\u0275\u0275restoreView(h).$implicit,Ge=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Ge.navigateShop(null,fe.selectedCategories[0],null,null,fe.isFree,fe.id))}),e.\u0275\u0275elementStart(2,"a"),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&z){const h=I.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(h.title)}}function fr(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",47),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(F.loadMoreLivearticles())}),e.\u0275\u0275text(1,"Load More"),e.\u0275\u0275elementEnd()}}function ar(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",43),e.\u0275\u0275template(1,yr,4,1,"ng-container",44),e.\u0275\u0275template(2,fr,2,0,"button",45),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",h.articles),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.isMoreAvailable)}}function Xi(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div")(1,"p"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"titlecase"),e.\u0275\u0275elementEnd()()),2&z){const h=e.\u0275\u0275nextContext().$implicit,M=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate3(" ",e.\u0275\u0275pipeBind1(3,3,h.operator)," Rs.",h.amount,"+tax per ",M.getRenewalIntervalNumberOfDaysByIntervalCode(h.interval)," day(s)")}}function Mn(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Xi,4,5,"div",3),e.\u0275\u0275elementEnd()),2&z){const h=I.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.isEnabled&&"APPROVED"===h.status)}}function Ln(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Mn,2,1,"div",44),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",h.appPublishDetails.operators)}}function Rn(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div")(1,"h3",20),e.\u0275\u0275text(2,"Subscribe"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,Ln,2,1,"div",3),e.\u0275\u0275elementStart(4,"p"),e.\u0275\u0275text(5,"The subscription amount will be charged to your mobile phone account and your subscription will be renewed automatically."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"p"),e.\u0275\u0275text(7,"\u0db8\u0dd9\u0db8 \u0dc3\u0dda\u0dc0\u0dcf\u0dc0 \u0dc3\u0daf\u0dc4\u0dcf \u0daf\u0dcf\u0dba\u0d9a \u0db8\u0dd4\u0daf\u0dbd \u0d94\u0db6\u0dda \u0da2\u0d82\u0d9c\u0db8 \u0daf\u0dd4\u0dbb\u0d9a\u0dad\u0db1 \u0d9c\u0dd2\u0dab\u0dd4\u0db8\u0dd9\u0db1\u0dca \u0d85\u0dba \u0d9a\u0dbb\u0db1\u0dd4 \u0dbd\u0dd0\u0db6\u0dda. \u0daf\u0dcf\u0dba\u0d9a \u0db8\u0dd4\u0daf\u0dbd\u0dca \u0dc3\u0dca\u0dc0\u0dba\u0d82\u0d9a\u0dca\u200d\u0dbb\u0dd3\u0dba\u0dc0 \u0db1\u0dd0\u0dc0\u0dad \u0d85\u0dbd\u0dd4\u0dad\u0dca \u0d9a\u0dd9\u0dbb\u0dd9\u0db1\u0dd4 \u0dbd\u0dd0\u0db6\u0dda."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"p"),e.\u0275\u0275text(9,"\u0b87\u0ba8\u0bcd\u0ba4 \u0b9a\u0bc7\u0bb5\u0bc8 \u0b95\u0b9f\u0bcd\u0b9f\u0ba3\u0bae\u0bcd \u0b89\u0b99\u0bcd\u0b95\u0bb3\u0bcd \u0ba4\u0bca\u0bb2\u0bc8\u0baa\u0bc7\u0b9a\u0bbf \u0b95\u0ba3\u0b95\u0bcd\u0b95\u0bbf\u0bb2\u0bbf\u0bb0\u0bc1\u0ba8\u0bcd\u0ba4\u0bc1 \u0b85\u0bb1\u0bb5\u0bbf\u0b9f\u0baa\u0bcd\u0baa\u0b9f\u0bc1\u0bae\u0bcd. \u0b89\u0b99\u0bcd\u0b95\u0bb3\u0ba4\u0bc1 \u0b9a\u0bc7\u0bb5\u0bc8\u0baf\u0bbe\u0ba9\u0ba4\u0bc1 \u0ba4\u0bbe\u0ba9\u0bbe\u0b95\u0bb5\u0bc7 \u0bae\u0bc0\u0ba3\u0bcd\u0b9f\u0bc1\u0bae\u0bcd \u0bae\u0bc0\u0bb3\u0bcd \u0b9a\u0bc6\u0baf\u0b9f\u0bcd\u0baa\u0b9f\u0bc1\u0ba4\u0bcd\u0ba4\u0baa\u0bcd\u0baa\u0b9f\u0bc1\u0bae\u0bcd."),e.\u0275\u0275elementEnd()()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",h.appPublishDetails)}}function zn(z,I){1&z&&(e.\u0275\u0275elementStart(0,"div")(1,"div",32)(2,"div",33),e.\u0275\u0275element(3,"div",34),e.\u0275\u0275elementStart(4,"div",35),e.\u0275\u0275text(5," Subscribing... "),e.\u0275\u0275elementEnd()()()())}function fo(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"option",48),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&z){const h=I.$implicit;e.\u0275\u0275propertyInterpolate("value",h),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",h," ")}}var Si,lr;let Fn=(()=>{class z{static#e=this.PUSH_TOKEN_LOCAL_STORAGE_KEY="pushtoken";onScroll(){!this.categoryID&&this.isBottomReached()&&this.fullCategoriesCount>this.skipCategories&&(this.isOnScroll=!0,this.getCategoriesWithArticles()),this.categoryID&&this.isBottomReached()&&this.fullArticlesCount>this.skipArticles&&this.getCategoriesWithArticles(),this.categoryID&&this.isBottomReached()&&this.fullCategoriesCount>this.skipCategories&&this.getCategoriesWithArticles(),this.isInstallAvailable&&!this.ishidePopup&&$(".pwa-install-modal").modal("show")}constructor(h,M,F,fe,Ge,ft,Et,$t,vi,wi,sn,on,Gi,tn,Sn,Vn,Lr,Ir,Wr,vs,xn){this.route=h,this.activatedRouter=M,this.dataService=F,this.router=fe,this.categoryService=Ge,this.device=ft,this.title=Et,this.smsRetriever=$t,this.push=vi,this.subscription=wi,this.productService=sn,this.appDataService=on,this.messageService=Gi,this.ngZone=tn,this.articleService=Sn,this.preventScreenshot=Vn,this.imageCacheService=Lr,this.swPush=Ir,this.subscriptionService=Wr,this.lbsCommonService=vs,this.commonSettingsService=xn,this.appId=v.Jf,this.userId=v.xS,this.appTitle=v.u2,this.templateName=v.Bv,this.isJobApp="Jobs-III"==this.templateName,this.results=[],this.localStorageUUIDString="UUID",this.alive=!0,this.isSubscribing=!1,this.subMessageNavigateShop=null,this.renewalIntervals=[],this.loadImageCount=0,this.isFromCMSAppView=!1,this.selectedCountryCode="94",this.enteredMobileNumber="",this.enteredPin="",this.articles=[],this.articlesBackup=[],this.searchTerm=null,this.isSearchBtnClicked=!1,this.isInMessageConversation=!1,this.isFromPushMessage=!1,this.isCordovaApp=!1,this.hideImageLoadingSpinner=!1,this.operator=null,this.fullCount=0,this.limit=10,this.skip=0,this.isOnRequest=!1,this.fullCategoriesCount=0,this.fullArticlesCount=0,this.skipCategories=0,this.skipArticles=0,this.isOnScroll=!1,this.liveArticleIndex=0,this.isMoreAvailable=!0,this.timeout=null,this.isInstallAvailable=!1,this.ishidePopup=!1,this.isCheckSubOnCategoryClickedLocked=!1,this.isLocationApp="Location"==v.Bv,this.isAppEnabledGamezopAds=!1,this.gamezopConfigs={},this.gamezopCustomParameter="",this.isTemplateEnabledToGamezop=!1,this.limit="Recipe"==this.templateName||"Fitness"==this.templateName||"Jobs"==this.templateName||"News"==this.templateName?4:"Magazine"==this.templateName||"VideoPortal"==this.templateName||"Comic"==this.templateName?8:"Jobs-II"==this.templateName?2:10,this.onDeviceReady(),this.isCordovaApp=this.dataService.isCordovaApp(),this.title.changeTitle(v.u2),Si=this,this.title.setLocation("home"),this.messageService.sendMessage({loadImageCount:-1}),this.dataService.searchTerm.subscribe(ln=>{this.searchTerm=ln,this.liveArticleIndex=0,this.articles=[],clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.loadArticles()},1e3)}),this.dataService.isInHomeComponent.subscribe(ln=>this.isInHomeComponent=ln),this._isInSearchComponentSub=this.dataService.isInSearchComponent.subscribe(ln=>{this.isSearchBtnClicked=ln,ln&&(this.dataService.initialImageCount=0,this.messageService.sendMessage({loadImageCount:-2}))}),this.dataService.changeInsInHomeComponent(!0),this.activatedRouter.queryParams.subscribe(ln=>{this.skipCategories=0,this.skipArticles=0,this.categoryID=ln.categoryID?ln.categoryID:null;let Jr=ln.categoryId?ln.categoryId:null,yo=ln.categoryName?ln.categoryName:"",Fo=ln.articleId?ln.articleId:null,fa=ln.categoryType?ln.categoryType:null,Ys=ln.categoryImageUrl?ln.categoryImageUrl:null,ss="true"==ln.isFreeCat||"false"!=ln.isFreeCat&&null;this.dataService.isPopupRequest="true"==ln.isPopupRequest,this.isLocationApp&&ln.hasOwnProperty("isFromPushMessage")&&(this.isFromPushMessage="true"==ln.isFromPushMessage),Jr&&Fo?(this.popUpArticleInfo={isFree:ss,id:Jr,name:yo,categoryType:fa,imageUrl:Ys,articleId:Fo},this.popUpCatInfo=null,this.title.setLocation("home"),this.getCategoriesWithArticles(),this.categoryID=Jr):Jr&&!Fo?(this.popUpCatInfo={data:{id:Jr,isFree:ss,name:yo,categoryType:fa,isMainCategory:!0}},this.popUpArticleInfo=null,this.title.setLocation("sub_category"),this.getCategoriesWithArticles(),this.categoryID=Jr):(this.popUpArticleInfo=null,this.popUpCatInfo=null,this.title.setLocation(this.categoryID?"sub_category":"home"),this.getCategoriesWithArticles())}),window.addEventListener("beforeinstallprompt",ln=>{this.promptEvent=ln,this.promptEvent.preventDefault(),this.isInstallAvailable=!0}),this.dataService.initialImageCount=0,this.dataService.hideImageLoadingSpinner(),this.checkingArtiles()}checkingArtiles(){this.dataService.loadArticlesTerm.subscribe(h=>{h.isTrue&&(this.isFromPushMessage=!0,this.navigateShop("shop",null,null,null,null,h.articleId),this.dataService.changeLoadArticlesFromHome({isTrue:!1,articleId:null}))})}loadArticles(){this.productService.getLiveArticles(this.liveArticleIndex,this.searchTerm).subscribe(h=>{"SUCCESS"===h.status?(this.isMoreAvailable=!(h.data.length<20),this.articles=this.articles.concat(h.data),this.articlesBackup=this.articles,this.dataService.isImagesLoaded=!0):this.isMoreAvailable=!1},h=>{console.error("Failed to load artcles.")})}loadMoreLivearticles(){this.liveArticleIndex=this.liveArticleIndex+20,this.loadArticles()}ngOnInit(){this.initOTP(),this.appDataService.getPublishDetails().subscribe(h=>{if(this.appPublishDetails=h,h&&(this.isFreeApp=h.isFreeApp,h.isEnabledGamezop&&(this.isAppEnabledGamezopAds=h.isEnabledGamezop,this.gamezopCustomParameter=h.gamezopCustomParameter,this.retrieveGamezopConfigs())),!this.dataService.isIonicApp()){const M=!!this.appPublishDetails?.disableScreenshots&&this.appPublishDetails.disableScreenshots;window.hasOwnProperty("cordova")&&this.enableOrDisableScreenshots(M)}}),this.appDataService.getCountries().subscribe(h=>{const M=h.platformExtCountries.map(F=>{const fe=F.countryCode;return fe.substring(fe.indexOf("+")+1)});this.countries=M}),this.appDataService.getRenewalIntervals().subscribe(h=>{this.dataService.renewalIntervals=h,this.renewalIntervals=this.dataService.renewalIntervals}),this.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView"),$("#registerModelhome").on("hide.bs.modal",()=>{this.alive=!1,this.isSubscribing=!1}),this.isSubscribing=!1,this.dataService.newNotificationCount.subscribe(h=>{this.newArticleNotificationCount=h}),this.dataService.isInMessageConversation.subscribe(h=>{this.isInMessageConversation=h}),this.popUpArticleInfo&&setTimeout(()=>{console.log("this.popUpArticleInfo.articleId: ",this.popUpArticleInfo.articleId),this.loadArticleOnReceivePushMessage(this.popUpArticleInfo,this.popUpArticleInfo.articleId)},1e3),this.popUpCatInfo&&setTimeout(()=>{this.onCategoryClicked(this.popUpCatInfo)},1e3)}ngAfterViewInit(){this.getDeviceUUID(),this.swPush.notificationClicks.subscribe(({notification:M})=>{this.dataService.pushMessage=M.body,this.dataService.inAppNotificationInfo=M.data.popUpPushInfo,this.isFromPushMessage=!0,window.focus(),$(()=>{$("#appStatusModel").modal("hide"),$("#appPushNotificationModel").modal("show"),$("#appPushNotificationModel").off("hidden.bs.modal"),M.data.category&&M.data.category.categoryId&&M.data.category.articleId?$("#appPushNotificationModel").on("hidden.bs.modal",()=>{this.loadArticleOnReceivePushMessage(M.data.category,M.data.category.articleId)}):M.data.category&&M.data.category.categoryId&&M.data.category.name&&$("#appPushNotificationModel").on("hidden.bs.modal",()=>{this.onCategoryClicked({data:{id:M.data.category.categoryId,isFree:M.data.category.isFree,name:M.data.category.name,categoryType:M.data.category.categoryType,isMainCategory:!0}})})})})}ngOnDestroy(){this.dataService.changeInsInHomeComponent(!1),this._isInSearchComponentSub.unsubscribe()}retrieveGamezopConfigs(){this.commonSettingsService.getGamezopConfigs().subscribe(h=>{h.isSuccess&&(this.gamezopConfigs=h.data,h.data.enabledTemplateNames&&h.data.enabledTemplateNames.length>0&&h.data.enabledTemplateNames.includes(this.templateName)&&(this.isTemplateEnabledToGamezop=!0))})}loadArticle(h,M){let F=this.articlesBackup.filter(fe=>fe.id===M)[0]?this.articlesBackup.filter(fe=>fe.id===M)[0]:null;F&&F.isForm?this.router.navigate(["form","",h,M]):"Education"==this.templateName?this.router.navigate(["questions",this.articleCatName,h,M]):this.route.navigate(["product","fromPushMessage",h,M])}onArticleMessageReceivedHandler(h){this.isInMessageConversation||(this.dataService.changeShowArticleNotification(!0),this.dataService.changeArticleNotificationsCount(this.newArticleNotificationCount+1),this.dataService.changeLatestArticleNotification(h))}loadArticleOnReceivePushMessage(h,M){this.isFreeApp||h?.category?.isFree||h?.isFree?this.loadArticle(h.id,M):this.navigateShop("shop",h.id,h.name,h.imageUrl,h.isFree,M)}navigateShop(h,M,F,fe,Ge,ft){this.dataService.isSuspendedApp?$("#appStatusModel").modal("show"):(null!=this.subMessageNavigateShop&&this.subMessageNavigateShop.unsubscribe(),this.isSubscribing=!1,this.dataService.pushMessageAttachedArticleId=null,this.manageArticleUser(),this.categoryService.getValidCategoryByArticleId(ft).subscribe(Et=>{"Education"==this.templateName&&Et.name&&(this.articleCatName=Et.name),this.isFromPushMessage||!this.isFromCMSAppView&&!this.isFreeApp&&"FREE"!==Et.categoryType?this.checkSubOnNavigateShop(h,Et?.id,Et?.name,Et?.imageUrl,ft,Et?.categoryType):(this.dataService.catId=Et.id,this.isSearchBtnClicked?(this.dataService.changeIsInSearchComponent(!1),this.dataService.changeIsFromSearchComponent(!0),this.dataService.changeSearchTerm(null),this.loadArticle(Et.id,ft)):this.router.navigate(["/"+h,Et.id,Et.name,Et.imageUrl]))},Et=>{console.error(Et)}))}checkSubOnNavigateShop(h,M,F,fe,Ge,ft){this.subMessageNavigateShop=this.subscriptionService.getSubscriptionMessage().subscribe($t=>{if($t.message.status===j.Yg.SUB_RESPONSE&&"ERROR"!=$t.message.data.status){this.subMessageNavigateShop.unsubscribe();const wi=$t.message.data.data;!wi.isError&&("SUBSCRIBED"==wi.subscriptionStatus||wi.isValid)&&this.checkSubOnNavigateShopContinue($t.message.data.data,h,M,F,fe,Ge)}});const Et=new j.Mw;Et.status=j.Yg.SUB_REQUEST,Et.data.data={categoryId:M,categoryName:F,categoryType:ft},this.subscriptionService.sendSubscriptionMessage({message:Et})}checkSubOnNavigateShopContinue(h,M,F,fe,Ge,ft){this.subscriptionStatus=h.subscriptionStatus,this.dataService.subscriptionStatus=h.subscriptionStatus,this.subscriptionStatus===this.dataService.STATUS_SUBSCRIBED||h.isValid?(this.manageArticleUser(),this.dataService.catId=F,this.isFromPushMessage?(this.isFromPushMessage=!1,this.loadArticle(F,ft)):this.isSearchBtnClicked?(this.dataService.changeIsInSearchComponent(!1),this.dataService.changeIsFromSearchComponent(!0),this.dataService.changeSearchTerm(null),this.loadArticle(F,ft)):this.router.navigate(["/"+M,F,fe,Ge])):(this.isFromPushMessage=!1,this.dataService.subUserArticleData.id=F,this.dataService.subUserArticleData.name=fe,this.dataService.subUserArticleData.image=Ge,this.dataService.pushMessageAttachedArticleId=ft,this.isSubscribing=!1)}postDeviceToken(h){try{h+="&appversion="+Si.dataService.getAPKVersion(window.navigator.userAgent),Si.categoryService.sendDeviceToken(h).subscribe(M=>{Si.callOnNotificationOpen()},M=>{console.log("Error while sending the device token to be persist.Error: "+M),Si.callOnNotificationOpen()})}catch(M){console.log("Exception in pushSuccessCallback: "+M)}}pushSuccessCallback(h){h&&null!==h?localStorage[z.PUSH_TOKEN_LOCAL_STORAGE_KEY]=h:localStorage.removeItem(z.PUSH_TOKEN_LOCAL_STORAGE_KEY),Si.push.onTokenRefresh(Si.pushTokenRefreshSuccessCallback,Si.pushTokenRefreshErrorCallback),Si.postDeviceToken("deviceId="+h+"&uuid="+Si.uuid)}pushErrorCallback(h){console.log("pushErrorCallback: "+h)}pushTokenRefreshSuccessCallback(h){localStorage[z.PUSH_TOKEN_LOCAL_STORAGE_KEY]!==h&&Si.postDeviceToken("deviceId="+h+"&uuid="+Si.uuid+"&action=NEW_TOKEN")}pushTokenRefreshErrorCallback(h){console.log("pushTokenRefreshErrorCallback: "+h)}generatePushToken(){Si.push.getToken(Si.pushSuccessCallback,Si.pushErrorCallback)}onNotificationOpenSuccessCallback(h){if(h=this.configRecievedPushMessage(h),Si.isFromPushMessage=!0,"ARTICLE_MESSAGE"===h.type)Si.onArticleMessageReceivedHandler(h);else if(!h.isInAppMsg&&h.tap&&h.categoryId&&h.articleId){const M=h.data.category;M.category=h.data.category,Si.loadArticleOnReceivePushMessage(M,h.articleId)}else if(!h.isInAppMsg&&h.tap&&h.categoryId&&!h.articleId){let M={data:{id:h.data.category.categoryId,isFree:h.data.category.isFree,name:h.data.category.name,categoryType:h.data.category.categoryType,isMainCategory:!0}};setTimeout(()=>{Si.onCategoryClicked(M)},2e3)}else(!h.tap&&h.body||h.isInAppMsg)&&(Si.dataService.pushMessage=h.body,$(()=>{$("#appStatusModel").modal("hide"),$("#appPushNotificationModel").modal("show"),$("#appPushNotificationModel").off("hidden.bs.modal"),h.categoryId&&h.articleId?$("#appPushNotificationModel").on("hidden.bs.modal",function(){const M=h.data.category;M.category=h.data.category,Si.loadArticleOnReceivePushMessage(M,h.articleId)}):h.categoryId&&$("#appPushNotificationModel").on("hidden.bs.modal",()=>{Si.onCategoryClicked({data:{id:h.data.category.categoryId,isFree:h.data.category.isFree,name:h.data.category.name,categoryType:h.data.category.categoryType,isMainCategory:!0}})})}))}configRecievedPushMessage(h){return h&&((h=this.turnIntoProperJsObject(h)).body?this.dataService.pushMessage=h.body:h.text&&(this.dataService.pushMessage=h.text,h.body=h.text?h.text:""),h.category&&(h.data={...h.data,category:JSON.parse(h.category)},h.data.category.categoryId=h.categoryId,h.data.category.articleId=h.articleId,delete h.category),h.popUpPushInfo&&(h.data={...h.data,popUpPushInfo:JSON.parse(h.popUpPushInfo)},this.dataService.inAppNotificationInfo="{}"!=h.popUpPushInfo?h.data.popUpPushInfo:null,delete h.popUpPushInfo)),h}turnIntoProperJsObject(h){for(let M in h)h.hasOwnProperty(M)&&("null"===h[M]?h[M]=null:"false"===h[M]?h[M]=!1:"true"===h[M]&&(h[M]=!0));return h}onNotificationOpenErrorCallback(h){console.log("onNotificationOpenErrorCallback=>"+h)}callOnNotificationOpen(){this.dataService.isIonicApp()?Si.push.onNotificationOpen(Si.onNotificationOpenSuccessCallback,Si.onNotificationOpenErrorCallback):window.FirebasePlugin.onMessageReceived(function(h){Si.ngZone.run(()=>{Si.onNotificationOpenSuccessCallback(h)})},function(h){Si.onNotificationOpenErrorCallback(h)})}deviceUUIDCallback(h){!localStorage.getItem(Si.localStorageUUIDString)&&h&&localStorage.setItem(Si.localStorageUUIDString,h),Si.subscription.getSubscriptionStatus({appId:Si.appId,uuId:h}).subscribe(fe=>console.log("homepage.componenet.getSubscriptionStatus=> ",fe)),Si.uuid=h,Si.generatePushToken()}getDeviceUUID(){var h=localStorage.getItem(this.localStorageUUIDString);this.dataService.isFromBrowser()?(h||(h=this.dataService.getRandomId(),localStorage.setItem(Si.localStorageUUIDString,h)),Si.uuid=h):this.dataService.isIonicApp()?h?this.deviceUUIDCallback(h):this.device.getUUID(Si.deviceUUIDCallback):document.addEventListener("deviceready",()=>{this.deviceUUIDCallback(h||device.uuid)},!1)}onCancel(){this.isSubscribing=!1,this.alive=!1}onSubscribe(){this.enteredMobileNumber="",this.initOTP(),$("#registerModelhome").modal("hide"),$("#enterMSISDN").modal("show"),$("#otpRetryButton").hide()}retry(){this.hideOTPModel(),clearTimeout(lr),$("#otpRetryButton").hide(),$("#enterMSISDN").modal("show")}submitPin(){var h=this;return(0,B.Z)(function*(){const M=h.enteredPin;if(console.log("submit PIN:",M),clearTimeout(lr),M){let F="";if("dialog"===h.operator)try{const Ge=yield h.subscription.getMsisdnFormApiCall();console.log(Ge),F=Ge.msisdn}catch{console.log("error while getting msisdn")}const fe={appId:h.appId,uuId:h.dataService.getLocalStorageUUID(),msisdn:h.getMSISDN(),appTitle:h.appTitle,pin:M,msisdn_api:F};console.log(JSON.stringify(fe)),h.showHideSubscribingModel(!0),h.subscription.submitPin(fe).subscribe(Ge=>{Ge.isError?(h.showHideSubscribingModel(!1),h.hideOTPModel(),Si.dataService.showPopupMessage(Ge.message)):h.subCheckPol()},Ge=>{h.showHideSubscribingModel(!1);const ft=JSON.parse(Ge._body);ft.isError&&(h.hideOTPModel(),Si.dataService.displayMessage="Wrong PIN"===ft.message||"Wrong Pin"===ft.message?Si.dataService.wrongPinMsg:ft.message,$(()=>{$("#appStatusModel").modal("show")}),("Wrong PIN"===ft.message||"Wrong Pin"===ft.message)&&$("#appStatusModel").on("hidden.bs.modal",function(){$("#appStatusModel").off("hidden.bs.modal"),Si.showOTPModel()}))})}else console.log("<<<<< PIN is not valid >>>>>",M)})()}subCheckPol(){const h={appId:this.appId,uuId:this.dataService.getLocalStorageUUID()};this.alive=!0,this.dataService.numberOfTries=1,(0,le.F)(5e3).pipe((0,Z.o)(()=>this.alive)).subscribe(()=>{if(this.dataService.numberOfTries===this.dataService.defaultNumberOfTries)return this.alive=!1,void this.timeoutSubscriptionPopup();this.dataService.numberOfTries++,this.subscription.getSubscribedData(h).subscribe(M=>{this.subscriptionStatus=M.subscriptionStatus,this.dataService.subscriptionStatus=M.subscriptionStatus,this.subscriptionStatus===this.dataService.STATUS_SUBSCRIBED&&localStorage.setItem(this.appId+"msisdn",this.getMSISDN()),M.isError?(this.showHideSubscribingModel(!1),this.alive=!1,this.hideOTPModel(),this.ngZone.run(()=>{this.dataService.showPopupMessage(M.displayMessage)})):this.subscriptionStatus===this.dataService.STATUS_SUBSCRIBED&&(this.showHideSubscribingModel(!1),this.alive=!1,this.hideOTPModel(),this.dataService.catId=this.dataService.subUserArticleData.id,this.dataService.pushMessageAttachedArticleId?(this.loadArticle(this.dataService.subUserArticleData.id,this.dataService.pushMessageAttachedArticleId),this.dataService.pushMessageAttachedArticleId=null):($(()=>{$("#subscribedModel").modal("show")}),$("#otpModel").modal("hide"),this.router.navigate(["/shop",this.dataService.subUserArticleData.id,this.dataService.subUserArticleData.name,this.dataService.subUserArticleData.image])))})})}showHideSubscribingModel(h){Si.isSubscribing=h,$(()=>{h?($("#isSubscribing").show(),$("#otpPart").hide()):($("#isSubscribing").hide(),$("#otpPart").show())})}hideOTPModel(){$(()=>{$("#otpModel").modal("hide")})}showOTPModel(){this.initOTP(),$(()=>{$("#otpModel").modal("show")}),this.showRetryButton()}submitMobileNumber(){this.appPublishDetails.mobitelOpCodes&&this.appPublishDetails.mobitelOpCodes.includes(this.getMSISDN().substring(0,4))&&this.appPublishDetails.operators&&this.appPublishDetails.operators.some(M=>"MOBITEL"===M.operator&&"APPROVED"===M.status)?(localStorage.setItem(this.appId+"msisdn",this.getMSISDN()),this.mobitelSub()):this.subPin()}mobitelSub(){let h;if(this.dataService.isCordovaApp())h=encodeURIComponent("cordovaApp");else{let F=window.location.protocol+"//"+window.location.host+window.location.pathname;h=encodeURIComponent(F)}const M={appId:this.appId,uuId:this.dataService.getLocalStorageUUID(),msisdn:this.getMSISDN(),hostUrl:h};this.subscription.msub(M).subscribe(F=>{$("#enterMSISDN").modal("hide"),F.isError&&"ALREADY_SUBSCRIBED"!=F.message?this.dataService.showPopupMessage(F.message):this.isCordovaApp?this.mobitelSubCordovaApp(F.concent):this.mobitelSubPWAApp(F.concent)},F=>{console.log("Error:",F)})}subPin(){const h={appId:this.appId,uuId:this.dataService.getLocalStorageUUID(),msisdn:this.getMSISDN()};$("#enterMSISDN").modal("hide"),this.showOTPModel(),this.subscription.subscribePin(h).subscribe(M=>{M.isError?(this.hideOTPModel(),this.dataService.showPopupMessage(M.message)):(this.operator=M.operator,this.smsRetriever.startSMSRetriver(Si.smsRetrieverSuccessCallback,Si.smsRetrieverErrorCallback))},M=>{const F=JSON.parse(M._body);F.isError&&(Si.hideOTPModel(),Si.dataService.showPopupMessage(F.message))})}mobitelSubCordovaApp(h){let M=cordova.InAppBrowser.open(h,"_blank","hidden=no,location=no,clearsessioncache=yes,clearcache=yes,hardwareback=no,hideurlbar=yes");M.addEventListener("message",F=>{"SUCCESS"===F.data.status&&(this.isSubscribing=!0,$("#otpModel").modal("show"),this.showHideSubscribingModel(!0),this.subCheckPol(),M.close())})}mobitelSubPWAApp(h){window.location.href=h}smsSuccessRegistrationCallback(h){console.log("smsSuccessRegistrationCallback in homepage Component: "+h)}smsErrorRegistrationCallback(h){Si.dataService.displayMessage="Sorry, you do not have enough credit to subscribe to the service",$(()=>{$("#registerModelhome").modal("hide"),$("#appStatusModel").modal("show")})}timeoutSubscriptionPopup(){this.dataService.displayMessage="The subscription process timed out. We are unable to subscribe you to the service at this time.",$(()=>{$("#otpModel").modal("hide"),$("#registerModelhome").modal("hide"),$("#appStatusModel").modal("show")})}getRenewalIntervalNumberOfDaysByIntervalCode(h){return this.appDataService.getRenewalIntervalNumberOfDaysByIntervalCode(h)}imageLoaded(h){this.hideImageLoadingSpinner?this.messageService.sendMessage({loadImageCount:this.dataService.initialImageCount}):(this.loadImageCount+=1,this.messageService.sendMessage({loadImageCount:this.loadImageCount}))}smsRetrieverSuccessCallback(h){const M=Si.subscription.getPINFromSMS(h.Message,Si.appPublishDetails.OTP_MESSAGE.pinStartIndex,Si.appPublishDetails.OTP_MESSAGE.pinEndIndex);Si.ngZone.run(()=>{M&&(Si.enteredPin=M)}),setTimeout(function(){Si.submitPin()},1e3)}smsRetrieverErrorCallback(h){console.log("smsRetrieverErrorCallback in homepage Component: "+JSON.stringify(h))}getMSISDN(){return this.selectedCountryCode+""+this.enteredMobileNumber}initOTP(){this.enteredPin=""}onchangeEnteredPin(){$("#enteredPin").keypress(function(h){$("#enteredPin").val().trim().length>=6&&h.preventDefault()})}showRetryButton(){lr=setTimeout(function(){""===Si.enteredPin&&$("#otpRetryButton").show()},5e3)}manageArticleUser(){const h=JSON.parse(localStorage.getItem(this.appId+"ArticleUser")),M=localStorage.getItem(this.localStorageUUIDString),F=localStorage.getItem(this.appId+"msisdn");M&&this.articleService.getArticleUser({params:{id:h?h.id:null,appId:this.appId,deviceUUID:M,MSISDN:F||null}}).subscribe(Ge=>{"SUCCESS"===Ge.status&&localStorage.setItem(this.appId+"ArticleUser",JSON.stringify(Ge.data))},Ge=>{console.error(Ge)})}enableOrDisableScreenshots(h){h?this.preventScreenshot.enablePreventScreenshot().then(M=>console.log(M)).catch(M=>console.error(M)):this.preventScreenshot.disablePreventScreenshot().then(M=>console.log(M)).catch(M=>console.error(M))}onDeviceReady(){document.addEventListener("deviceready",()=>{this.dataService.isImageCacheInitialized.subscribe(h=>{h||this.initImageCache()})},!1)}initImageCache(){this.imageCacheService.initImageCache().then(()=>{this.dataService.changeIsImageCacheInitialized(!0)}).catch(()=>{console.error("ERROR: Init Cache."),this.dataService.changeIsImageCacheInitialized(!1)})}prepareCategoriesToShow(h){h.mainCategory&&this.imageCacheService.getImagesFromCache([h.mainCategory],"imgUrl").then(M=>{M[0].imgUrl=this.imageCacheService.getTrustUrl(M[0].imgUrl),h.mainCategory=M[0]}),h.categories&&h.categories.length>0&&this.cacheSubCategoryImages(h.categories).then(M=>{h.categories=M,h.articles&&h.articles.length>0?this.cacheArticleImages(h.articles).then(F=>{h.articles=F,this.finalizeCategoriesWithArticlesToShow(h)}):this.finalizeCategoriesWithArticlesToShow(h)}),h.categories&&0===h.categories.length&&(h.articles&&h.articles.length>0?this.cacheArticleImages(h.articles).then(M=>{h.articles=M,this.finalizeCategoriesWithArticlesToShow(h)}):this.finalizeCategoriesWithArticlesToShow(h))}cacheSubCategoryImages(h){return new Promise(M=>{this.imageCacheService.getImagesFromCache(h,"imgUrl").then(F=>(F.map(fe=>fe.imgUrl=this.imageCacheService.getTrustUrl(fe.imgUrl)),M(F)))})}cacheArticleImages(h){return new Promise(M=>{Promise.all(h.map(Ge=>new Promise(ft=>{this.imageCacheService.getImagesFromCache(Ge.tempImageArray,"imgUrl").then(Et=>{Et.map($t=>$t.imgUrl=this.imageCacheService.getTrustUrl($t.imgUrl)),Ge.tempImageArray=Et,ft(Ge)})}))).then(Ge=>M(Ge))})}checkImagesAreInCache(h){let M=0;for(let F=0;F<h.length;F++)("object"==typeof h[F].imgUrl?h[F].imgUrl.changingThisBreaksApplicationSecurity:h[F].imgUrl).includes("http")&&M++;0===M&&(this.hideImageLoadingSpinner=!0)}isBottomReached(){return $(window).scrollTop()+$(window).height()>$(document).height()-100}getCategoriesWithArticles(){this.isOnRequest||(this.isOnRequest=!0,this.createHttpOptions().then(h=>{this.categoryService.getCategoriesWithArticles(h).subscribe(M=>{if("SUCCESS"===M.status){const F=M.data;this.isCordovaApp?(this.dataService.isImageCacheInitialized.subscribe(fe=>{fe&&this.prepareCategoriesToShow(F)}),this.title.changeTitle(F.mainCategory?F.mainCategory.name:this.appTitle)):F.categories.length>0||F.articles.length>0||null!=F.mainCategory?(this.finalizeCategoriesWithArticlesToShow(F),this.title.changeTitle(F.mainCategory?F.mainCategory.name:this.appTitle)):(this.dataService.initialImageCount=0,this.messageService.sendMessage({loadImageCount:-3}))}},M=>{console.error(M)})}))}createHttpOptions(){return new Promise(h=>{this.categoryDetails&&this.categoryDetails.mainCategory&&this.categoryDetails.mainCategory.id!==this.categoryID&&(this.skipArticles=0),h({params:{userId:this.userId,appId:this.appId,categoryID:this.categoryID,limit:this.limit+this.skipArticles,skipCategories:this.skipCategories,skipArticles:this.skipArticles}})})}finalizeCategoriesWithArticlesToShow(h){if(!this.categoryID&&this.isOnScroll)if(this.isOnScroll=!1,this.fullCategoriesCount=h.fullCategoriesCount,this.skipCategories+=h.categories.length,this.skipArticles=0,this.isOnRequest=!1,this.categoryDetails)if(this.categoryDetails.mainCategory)this.categoryDetails=h;else{const M={...this.categoryDetails};M.articles.push(...h.articles),this.categoryDetails.categories.push(...h.categories),this.categoryDetails=M}else this.categoryDetails=h;else if(this.fullCategoriesCount=h.fullCategoriesCount,this.skipCategories+=h.categories.length,this.fullArticlesCount=h.fullArticlesCount,this.skipArticles+=h.articles.length,this.isOnRequest=!1,this.categoryDetails&&!this.categoryDetails.mainCategory)this.categoryDetails=h;else if(this.categoryDetails&&this.categoryID!==this.categoryDetails.mainCategory.id)this.categoryDetails=h;else if(this.categoryDetails&&this.categoryID===this.categoryDetails.mainCategory.id){const M={...this.categoryDetails};M.articles.push(...h.articles),this.categoryDetails.categories.push(...h.categories),this.categoryDetails=M}else this.categoryDetails||(this.categoryDetails=h)}onCategoryClicked(h){if(this.dataService.isSuspendedApp)$("#appStatusModel").modal("show");else{this.manageArticleUser(),this.isSubscribing=!1;const M=h.data,F={categoryID:M.id};this.isFromCMSAppView||this.isFreeApp||"FREE"==M.categoryType&&this.dataService.isFreeCategoryViewAvailable?this.dataService.isPopupRequest?this.getCategoriesWithArticles():this.router.navigate([""],{queryParams:F}):this.checkSubOnCategoryClicked({categoryID:M.id,categoryName:M.name,categoryType:M.categoryType})}}checkSubOnCategoryClicked(h){if(this.isCheckSubOnCategoryClickedLocked)return;this.isCheckSubOnCategoryClickedLocked=!0;const M=setTimeout(()=>this.isCheckSubOnCategoryClickedLocked=!1,2e3),F=this.subscriptionService.getSubscriptionMessage().subscribe(Ge=>{let ft="ERROR"==Ge.message.data.status&&!0;if(Ge.message.status!==j.Yg.SUB_RESPONSE||ft)Ge.message.status===j.Yg.SUB_RESPONSE&&ft&&Ge.message.data.data.subscriptionStatus==j.y5.SUBSCRIBED&&(this.subscriptionStatus=Ge.message.data.data.subscriptionStatus,this.dataService.subscriptionStatus=Ge.message.data.data.subscriptionStatus,this.messageService.sendMessage({subscription:Ge.message.data.data}),this.isCheckSubOnCategoryClickedLocked=!1,clearTimeout(M));else{F.unsubscribe();const Et=Ge.message.data.data;!Et.isError&&("SUBSCRIBED"==Et.subscriptionStatus||Et.isValid)&&(this.checkSubOnCategoryClickedContinue(h,Ge.message.data.data),this.isCheckSubOnCategoryClickedLocked=!1,clearTimeout(M))}}),fe=new j.Mw;fe.status=j.Yg.SUB_REQUEST,fe.data.data={categoryId:h.categoryID,categoryName:h.categoryName,categoryType:h.categoryType},this.subscriptionService.sendSubscriptionMessage({message:fe})}checkSubOnCategoryClickedContinue(h,M){M.isValid||(this.subscriptionStatus=M.subscriptionStatus,this.dataService.subscriptionStatus=M.subscriptionStatus,this.messageService.sendMessage({subscription:M})),this.isSubscribing=!1,this.manageArticleUser(),this.dataService.isPopupRequest?this.getCategoriesWithArticles():(delete h.categoryName,delete h.categoryType,this.router.navigate([""],{queryParams:h}))}installPWAApp(){this.promptEvent.prompt(),this.promptEvent.userChoice.then(h=>{"accepted"===h.outcome?(console.log("User accepted the A2HS prompt"),this.isInstallAvailable=!1,this.hidePopup()):console.log("User dismissed the A2HS prompt"),this.promptEvent=null})}hidePopup(){this.ishidePopup=!0,$(".pwa-install-modal").modal("hide")}static#t=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(d.F0),e.\u0275\u0275directiveInject(d.gz),e.\u0275\u0275directiveInject(u.V),e.\u0275\u0275directiveInject(d.F0),e.\u0275\u0275directiveInject(re.G),e.\u0275\u0275directiveInject(me.G),e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(U.T),e.\u0275\u0275directiveInject(Ee.G),e.\u0275\u0275directiveInject(q.E),e.\u0275\u0275directiveInject(Re.s),e.\u0275\u0275directiveInject(g.U),e.\u0275\u0275directiveInject(b.e),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(We.n),e.\u0275\u0275directiveInject(xt.W),e.\u0275\u0275directiveInject(Ht.y),e.\u0275\u0275directiveInject(ne.Mk),e.\u0275\u0275directiveInject(j.FF),e.\u0275\u0275directiveInject(jt.v),e.\u0275\u0275directiveInject(wt))};static#i=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["app-homepage"]],hostBindings:function(M,F){1&M&&e.\u0275\u0275listener("scroll",function(){return F.onScroll()},!1,e.\u0275\u0275resolveWindow)},decls:87,vars:11,consts:[[1,"page-container"],["id","bloc-2",1,"bloc","bgc-white","l-bloc"],[1,"container"],[4,"ngIf"],["class","m-container-padding",4,"ngIf"],["tabindex","-1","role","dialog","aria-labelledby","pwa install","aria-hidden","true",1,"modal","fade","pwa-install-modal"],[1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","auto-icon-close-pwa-install-popup",3,"click"],["id","exampleModalLongTitle",1,"modal-title"],[1,"modal-body","text-center"],[1,"btn","install-btn","auto-btn-pwa-install-popup",3,"click"],["id","registerModelhome","tabindex","-1","role","dialog","aria-labelledby","registerModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],["type","button",1,"btn","sub-button-sub","btn-block",3,"disabled","click"],["type","button","data-dismiss","modal",1,"btn","sub-button-cancel","btn-block",3,"click"],["data-backdrop","static","data-keyboard","false","id","enterMSISDN","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],[1,"padding-bottom"],[1,"modal-enter-msisdn"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["type","number",3,"ngModel","ngModelChange"],["type","button","data-dismiss","modal",1,"btn","sub-button-cancel","btn-block"],["data-backdrop","static","data-keyboard","false","id","otpModel","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],["id","otpPart",1,"modal-body","text-center"],[1,"modal-enter-otp-pin"],["type","number","id","enteredPin",3,"ngModel","ngModelChange"],["type","button","id","otpRetryButton",1,"btn","sub-button-cancel","btn-block",2,"display","none",3,"click"],["id","isSubscribing",2,"display","none"],[1,"wrapper"],[1,"loader-box"],[1,"loader"],[1,"loader-text"],[3,"gamezopConfigs","gamezopCustomParameter",4,"ngIf"],[3,"isAppEnabledGamezopAds","isTemplateEnabledToGamezop","data","categoryClick",4,"ngIf"],["class","img-loader",4,"ngIf"],[3,"gamezopConfigs","gamezopCustomParameter"],[3,"isAppEnabledGamezopAds","isTemplateEnabledToGamezop","data","categoryClick"],[1,"img-loader"],["src","./assets/images/Loading75.gif"],[1,"m-container-padding"],[4,"ngFor","ngForOf"],["class","main-header-font","style","width: 100%; margin-top: 5px; border: 0px;",3,"click",4,"ngIf"],[1,"article-container","main-header-font","auto-searched-item",3,"click"],[1,"main-header-font",2,"width","100%","margin-top","5px","border","0px",3,"click"],[3,"value"]],template:function(M,F){1&M&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275template(3,Fr,4,3,"div",3),e.\u0275\u0275template(4,ar,3,2,"div",4),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"button",9),e.\u0275\u0275listener("click",function(){return F.hidePopup()}),e.\u0275\u0275text(10," \xd7 "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"h5",10),e.\u0275\u0275text(12,"Click to install the app "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(13,"div",11)(14,"button",12),e.\u0275\u0275listener("click",function(){return F.installPWAApp()}),e.\u0275\u0275text(15,"INSTALL"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(16,"div",13)(17,"div",14)(18,"div",7)(19,"div",11)(20,"button",15)(21,"span",16),e.\u0275\u0275text(22,"\xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(23,Rn,10,1,"div",3),e.\u0275\u0275template(24,zn,6,0,"div",3),e.\u0275\u0275elementStart(25,"button",17),e.\u0275\u0275listener("click",function(){return F.onSubscribe()}),e.\u0275\u0275text(26,"Subscribe Now"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"button",18),e.\u0275\u0275listener("click",function(){return F.onCancel()}),e.\u0275\u0275text(28,"Cancel"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(29,"div",19)(30,"div",14)(31,"div",7)(32,"div",11)(33,"button",15)(34,"span",16),e.\u0275\u0275text(35,"\xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(36,"h3",20),e.\u0275\u0275text(37,"Subscribe"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(38,"p"),e.\u0275\u0275text(39,"Enter your mobile number."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(40,"p"),e.\u0275\u0275text(41,"\u0d94\u0db6\u0d9c\u0dda \u0da2\u0d82\u0d9c\u0db8 \u0daf\u0dd4\u0dbb\u0d9a\u0dae\u0db1 \u0d85\u0d82\u0d9a\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dad\u0dca \u0d9a\u0dbb\u0db1\u0dca\u0db1."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(42,"p"),e.\u0275\u0275text(43,"\u0b89\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b9f\u0bc8\u0baf \u0b95\u0bc8\u0baa\u0bc7\u0b9a\u0bbf \u0b8e\u0ba3\u0bcd\u0ba3\u0bc8 \u0b89\u0bb3\u0bcd\u0bb3\u0bbf\u0b9f\u0bb5\u0bc1\u0bae\u0bcd."),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(44,"br"),e.\u0275\u0275elementStart(45,"p",21)(46,"span"),e.\u0275\u0275text(47,"+"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(48,"select",22),e.\u0275\u0275listener("ngModelChange",function(Ge){return F.selectedCountryCode=Ge}),e.\u0275\u0275template(49,fo,2,2,"option",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(50,"input",24),e.\u0275\u0275listener("ngModelChange",function(Ge){return F.enteredMobileNumber=Ge}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(51,"br"),e.\u0275\u0275elementStart(52,"button",17),e.\u0275\u0275listener("click",function(){return F.submitMobileNumber()}),e.\u0275\u0275text(53,"Submit"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(54,"br"),e.\u0275\u0275elementStart(55,"button",25),e.\u0275\u0275text(56,"Cancel"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(57,"div",26)(58,"div",14)(59,"div",7)(60,"div",27)(61,"button",15)(62,"span",16),e.\u0275\u0275text(63,"\xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(64,"h3",20),e.\u0275\u0275text(65,"Subscribe"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(66,"p"),e.\u0275\u0275text(67,"Enter verification code."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(68,"p"),e.\u0275\u0275text(69,"SMS \u0d9a\u0ddd\u0da9\u0dca \u0d91\u0d9a \u0d87\u0dad\u0dd4\u0dbd\u0dad\u0dca \u0d9a\u0dbb\u0db1\u0dca\u0db1."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(70,"p"),e.\u0275\u0275text(71,"\u0b9a\u0bb0\u0bbf\u0baa\u0bbe\u0bb0\u0bcd\u0baa\u0bcd\u0baa\u0bc1\u0b95\u0bcd \u0b95\u0bc1\u0bb1\u0bbf\u0baf\u0bc0\u0b9f\u0bcd\u0b9f\u0bc8 \u0b89\u0bb3\u0bcd\u0bb3\u0bbf\u0b9f\u0bc1\u0b95."),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(72,"br"),e.\u0275\u0275elementStart(73,"p",28)(74,"input",29),e.\u0275\u0275listener("ngModelChange",function(Ge){return F.enteredPin=Ge})("ngModelChange",function(){return F.onchangeEnteredPin()}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(75,"br"),e.\u0275\u0275elementStart(76,"button",17),e.\u0275\u0275listener("click",function(){return F.submitPin()}),e.\u0275\u0275text(77,"Submit"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(78,"br"),e.\u0275\u0275elementStart(79,"button",30),e.\u0275\u0275listener("click",function(){return F.retry()}),e.\u0275\u0275text(80,"Retry"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(81,"div",31)(82,"div",32)(83,"div",33),e.\u0275\u0275element(84,"div",34),e.\u0275\u0275elementStart(85,"div",35),e.\u0275\u0275text(86," Subscribing... "),e.\u0275\u0275elementEnd()()()()()()()),2&M&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!F.isSearchBtnClicked),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",F.isSearchBtnClicked),e.\u0275\u0275advance(19),e.\u0275\u0275property("ngIf",0==F.isSubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==F.isSubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",1==F.isSubscribing),e.\u0275\u0275advance(23),e.\u0275\u0275property("ngModel",F.selectedCountryCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",F.countries),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",F.enteredMobileNumber),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",!F.enteredMobileNumber||F.enteredMobileNumber>"999999999"),e.\u0275\u0275advance(22),e.\u0275\u0275property("ngModel",F.enteredPin),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",!F.enteredPin))},dependencies:[f.NgForOf,f.NgIf,St,ii,o.YN,o.Kr,o.Fj,o.wV,o.EJ,o.JJ,o.On,f.TitleCasePipe],styles:['img[_ngcontent-%COMP%]{height:calc((100vh - 190px) / 3);object-fit:cover}div[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]:first-child{padding-top:58px}.name[_ngcontent-%COMP%]{padding:10px 5px 20px;text-transform:uppercase}div[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]:last-child{padding-bottom:45px}.modal[_ngcontent-%COMP%]{text-align:center;padding:0!important}.modal[_ngcontent-%COMP%]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-4px}.modal-dialog[_ngcontent-%COMP%]{display:inline-block;text-align:left;vertical-align:middle}.sub-button-sub[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#2ba2fa,#0092fc,#0081fb,#006ff8,#0f5af2);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.sub-button-cancel[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#ff8c2b,#ff8328,#ff7a25,#ff7024,#ff6623);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.header[_ngcontent-%COMP%]{position:fixed;top:0;width:100%;box-shadow:0 2px 20px 2px #0000001f;z-index:10}.wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:360px;width:100%;justify-content:center;align-items:center}.loader-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;content-alignment:center;align-items:center;background-color:#0f0f0f80;border-radius:5px;height:200px;width:250px;box-shadow:1px 1px 1px #2f4f4f}.loader[_ngcontent-%COMP%]{border:1px solid white;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;width:80px;height:80px;animation-name:_ngcontent-%COMP%_loading;animation-duration:.7s;animation-iteration-count:infinite;animation-timing-function:linear}.loader-text[_ngcontent-%COMP%]{margin-top:10px;padding-top:10px;color:#d3d3d3;font-family:Lato,sans-serif;font-size:18px;animation-name:_ngcontent-%COMP%_fading;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}.description-box[_ngcontent-%COMP%]{margin-top:10px;padding:10px 5px;font-family:Lato,sans-serif;font-size:18px;height:35px;line-height:35px;width:500px;background-color:#fff;text-align:center;border-radius:5px}.modal-enter-msisdn[_ngcontent-%COMP%]{font-size:28px}.modal-enter-msisdn[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px;height:40px;border-color:#000;border:1px solid;margin-left:5px}.modal-enter-msisdn[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:170px;padding:3px}.modal-enter-otp-pin[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:40px;border-color:#000;border:1px solid;width:130px;margin-left:10px;text-align:center;font-size:28px}@supports not (-webkit-overflow-scrolling: touch){.modal-enter-otp-pin[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:28px}}@keyframes _ngcontent-%COMP%_loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_fading{0%,to{opacity:.05}50%{opacity:.95}}.m-container-padding[_ngcontent-%COMP%]{padding:71px 16px 66px;margin-bottom:20px}.article-container[_ngcontent-%COMP%]{padding:5px 0;border-bottom:1px solid;border-color:inherit}.article-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-transform:uppercase}.img-loader[_ngcontent-%COMP%]{margin:40px;padding-bottom:60px;text-align:center}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.modal-dialog.modal-dialog-centered[_ngcontent-%COMP%]{width:300px}.modal-header[_ngcontent-%COMP%]{border-bottom:0px;text-align:center}.modal-title[_ngcontent-%COMP%]{font-weight:700;font-size:16px;color:#000;padding-top:20px}.modal-body[_ngcontent-%COMP%]{padding-bottom:15px;text-align:center}.install-btn[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#2ba2fa,#0092fc,#0081fb,#006ff8,#0f5af2);border-width:0px!important;color:#fff!important;padding:10px;border-radius:6px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase;width:146px}.close[_ngcontent-%COMP%]{font-size:28px;opacity:1}']})}return z})(),bi=(()=>{class z{constructor(h,M,F,fe){this.appdataService=h,this.dataService=M,this.title=F,this.messageService=fe,this.appId=v.Jf,this.userId=v.xS,this.openWeekdays="we are closed",this.openSunday="we are closed",this.openSaturday="we are closed",this.title.changeTitle("About Us"),this.title.setLocation("aboutUs")}ngOnInit(){this.appdataService.getAboutUs().subscribe(h=>{this.messageService.sendMessage({loadImageCount:-2}),h&&(this.aboutUsDetails=h,this.header=h.header,this.content=h.content),this.aboutUsUrl=this.dataService.getServerURL()+"/templates/viewWebImages?userId="+this.userId+"&appId="+this.appId+"&"+(new Date).getTime()+"&images="},h=>{console.log(h)})}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(g.U),e.\u0275\u0275directiveInject(u.V),e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(b.e))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["app-aboutus"]],decls:5,vars:2,consts:[["id","bloc-10",1,"bloc","bgc-white","l-bloc"],[1,"container","bloc-sm"],[1,"col-sm-12"],[1,"padding-vertical","main-header-font",3,"innerHTML"],[1,"main-content-font","text-editor","ql-editor",3,"innerHTML"]],template:function(M,F){1&M&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275element(3,"h3",3)(4,"p",4),e.\u0275\u0275elementEnd()()()),2&M&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",F.header,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",F.content,e.\u0275\u0275sanitizeHtml))},styles:["h3[_ngcontent-%COMP%]{padding-top:40px}.text-editor[_ngcontent-%COMP%]{padding-bottom:70px}"]})}return z})();function gi(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",2)(1,"div",3)(2,"h3",4),e.\u0275\u0275text(3,"Ideadroid Terms and Conditions"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(4,"div",7),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275property("innerHTML",h.defaultTerms,e.\u0275\u0275sanitizeHtml)}}let ji=(()=>{class z{constructor(h,M,F,fe){this.http=h,this.appdataService=M,this.title=F,this.messageService=fe,this.title.changeTitle("Policies"),this.title.setLocation("policies")}ngOnInit(){this.appdataService.getPolicies().subscribe(h=>{this.messageService.sendMessage({loadImageCount:-2}),h&&(this.privacyPolicy=h.privacyPolicy,this.returnPolicy=h.returnPolicy,this.terms=h.termsAndCondition)},h=>{console.log(h)}),this.http.get(nt.L+"/templates/getDefaultTerms",{responseType:"text"}).subscribe(h=>{this.defaultTerms=h})}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(l.eN),e.\u0275\u0275directiveInject(g.U),e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(b.e))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["app-policies"]],decls:14,vars:3,consts:[[1,"page-container","padding"],["id","bloc-10",1,"bloc","bgc-white","l-bloc"],[1,"row"],[1,"col-sm-12"],[1,"padding-vertical","main-header-font"],[1,"main-content-font","ql-editor",3,"innerHTML"],["class","row",4,"ngIf"],[1,"main-content-font",3,"innerHTML"]],template:function(M,F){1&M&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"div",3)(5,"h3",4),e.\u0275\u0275text(6," Terms and Conditions "),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(7,"p",5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",2)(9,"div",3)(10,"h3",4),e.\u0275\u0275text(11," Privacy Policy "),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(12,"p",5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(13,gi,5,1,"div",6),e.\u0275\u0275elementEnd()()()),2&M&&(e.\u0275\u0275advance(7),e.\u0275\u0275property("innerHTML",F.terms,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(5),e.\u0275\u0275property("innerHTML",F.privacyPolicy,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",F.defaultTerms))},dependencies:[f.NgIf],styles:[".row[_ngcontent-%COMP%]:first-child{padding-top:60px}.row[_ngcontent-%COMP%]:last-child{padding-bottom:60px}p[_ngcontent-%COMP%]{white-space:pre-wrap}"]})}return z})();function Dn(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",7)(1,"div",8)(2,"div"),e.\u0275\u0275element(3,"i",9),e.\u0275\u0275elementStart(4,"span"),e.\u0275\u0275text(5," Address:"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(6,"div",10)(7,"div"),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd()()()),2&z){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(8),e.\u0275\u0275textInterpolate(h.address)}}function Wn(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",7)(1,"div",8)(2,"div"),e.\u0275\u0275element(3,"i",11),e.\u0275\u0275elementStart(4,"span"),e.\u0275\u0275text(5," Phone:"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(6,"div",10)(7,"div"),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd()()()),2&z){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(8),e.\u0275\u0275textInterpolate(h.telPhone)}}function pn(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",7)(1,"div",8)(2,"div"),e.\u0275\u0275element(3,"i",12),e.\u0275\u0275elementStart(4,"span"),e.\u0275\u0275text(5," Email:"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(6,"div",10)(7,"div")(8,"a",13),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd()()()()),2&z){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(8),e.\u0275\u0275propertyInterpolate1("href","mailto:",h.email,"",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(h.email)}}function qn(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",7)(1,"div",8)(2,"div"),e.\u0275\u0275element(3,"i",14),e.\u0275\u0275elementStart(4,"span"),e.\u0275\u0275text(5," WebSite:"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(6,"div",10)(7,"div",15)(8,"a",16),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd()()()()),2&z){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(8),e.\u0275\u0275propertyInterpolate("href",h.webSite,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(h.webSite)}}function Mi(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"a",17),e.\u0275\u0275element(1,"i",18),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("href",h.twitter,e.\u0275\u0275sanitizeUrl)}}function qi(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"a",17),e.\u0275\u0275element(1,"i",19),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("href",h.facebook,e.\u0275\u0275sanitizeUrl)}}function Qn(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"a",17),e.\u0275\u0275element(1,"i",20),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("href",h.instagram,e.\u0275\u0275sanitizeUrl)}}function Vi(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"a",17),e.\u0275\u0275element(1,"i",21),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("href",h.pinterest,e.\u0275\u0275sanitizeUrl)}}function Bn(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"a",17),e.\u0275\u0275element(1,"i",22),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("href",h.linkedin,e.\u0275\u0275sanitizeUrl)}}function Br(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"a",23),e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(1,"svg",24),e.\u0275\u0275element(2,"path",25),e.\u0275\u0275elementEnd()()),2&z){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("href",h.tiktok,e.\u0275\u0275sanitizeUrl)}}function On(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"section")(1,"h3",1),e.\u0275\u0275text(2," Contact Info: "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",2),e.\u0275\u0275template(4,Dn,9,1,"div",3),e.\u0275\u0275template(5,Wn,9,1,"div",3),e.\u0275\u0275template(6,pn,10,2,"div",3),e.\u0275\u0275template(7,qn,10,2,"div",3),e.\u0275\u0275elementStart(8,"div",4),e.\u0275\u0275template(9,Mi,2,1,"a",5),e.\u0275\u0275template(10,qi,2,1,"a",5),e.\u0275\u0275template(11,Qn,2,1,"a",5),e.\u0275\u0275template(12,Vi,2,1,"a",5),e.\u0275\u0275template(13,Bn,2,1,"a",5),e.\u0275\u0275template(14,Br,3,1,"a",6),e.\u0275\u0275elementEnd()()()),2&z){const h=I.$implicit;e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",h.address),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.telPhone),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.email),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.webSite),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",h.twitter),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.facebook),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.instagram),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.pinterest),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.linkedin),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.tiktok)}}let Yn=(()=>{class z{constructor(){this.appId=v.Jf,this.userId=v.xS}static#e=this.\u0275fac=function(M){return new(M||z)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["app-contact-info"]],inputs:{contacts:"contacts"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"padding-vertical","main-header-font"],[1,"main-content-font"],["class","row",4,"ngIf"],[1,"social-media"],["target","_blank","class","a-btn a-block bloc-mob-center-text text-center main-content-font",3,"href",4,"ngIf"],["target","_blank","class","a-btn a-block bloc-mob-center-text text-center main-content-font tiktokIcon",3,"href",4,"ngIf"],[1,"row"],[1,"col-md-4"],[1,"fa","fa-map-marker"],[1,"col-md-8"],[1,"fa","fa-phone"],[1,"fa","fa-envelope"],[3,"href"],[1,"fa","fa-file-text-o"],[1,"overflow"],["target","_blank",3,"href"],["target","_blank",1,"a-btn","a-block","bloc-mob-center-text","text-center","main-content-font",3,"href"],[1,"icon","fa","fa-twitter"],[1,"icon","fa","fa-facebook"],[1,"icon","fa","fa-instagram"],[1,"icon","fa","fa-pinterest-p"],[1,"icon","fa","fa-linkedin"],["target","_blank",1,"a-btn","a-block","bloc-mob-center-text","text-center","main-content-font","tiktokIcon",3,"href"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512","fill","currentColor","height","13px"],["d","M448 209.9a210.1 210.1 0 0 1 -122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V0l88 0a121.2 121.2 0 0 0 1.9 22.2h0A122.2 122.2 0 0 0 381 102.4a121.4 121.4 0 0 0 67 20.1z"]],template:function(M,F){1&M&&e.\u0275\u0275template(0,On,15,10,"section",0),2&M&&e.\u0275\u0275property("ngForOf",F.contacts)},dependencies:[f.NgForOf,f.NgIf],styles:["section[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:56px}h2[_ngcontent-%COMP%]{margin-bottom:25px;font-size:24px;font-weight:600}.overflow[_ngcontent-%COMP%]{white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}p[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:30px;padding-bottom:25px;font-size:16px;line-height:30px;border-bottom:1px dotted #b3b3b3}.social-media[_ngcontent-%COMP%]{display:flex;padding-bottom:60px;padding-top:15px}.row[_ngcontent-%COMP%]{margin:10px -15px}.tiktokIcon[_ngcontent-%COMP%]{display:flex;align-items:center}@media (max-width: 767px){.col-md-9[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin-bottom:20px;padding-left:27px}li[_ngcontent-%COMP%], i[_ngcontent-%COMP%]{margin-bottom:0;padding-left:0}.tiktokIcon[_ngcontent-%COMP%]{justify-content:center}}"]})}return z})();function Nn(z,I){if(1&z&&e.\u0275\u0275element(0,"app-contact-info",4),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275property("contacts",h.contactInfo)}}let ht=(()=>{class z{constructor(h,M,F){this.appdataService=h,this.title=M,this.messageService=F,this.CONTACNTINFO=[],this.contactInfo=this.CONTACNTINFO,this.messageService.sendMessage({loadImageCount:-2}),this.appdataService.getContactUs().subscribe(fe=>{if(fe.contactInfo){const Ge=fe.contactInfo;this.CONTACNTINFO.push(Ge),Ge.coords&&(this.lat=Ge.coords.latitude,this.lng=Ge.coords.longitude)}}),this.title.changeTitle("Contact Us"),this.title.setLocation("contactUs")}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(g.U),e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(b.e))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["app-contact"]],decls:4,vars:1,consts:[[1,"container"],[1,"row"],[1,"col-md-6"],[3,"contacts",4,"ngIf"],[3,"contacts"]],template:function(M,F){1&M&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275template(3,Nn,1,1,"app-contact-info",3),e.\u0275\u0275elementEnd()()()),2&M&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",F.contactInfo))},dependencies:[f.NgIf,Yn],styles:["agm-map[_ngcontent-%COMP%]{height:600px}@media (max-width: 767px){agm-map[_ngcontent-%COMP%]{height:360px}}"]})}return z})();function ni(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",8),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("",h.results.length," Pages")}}function he(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9),e.\u0275\u0275listener("click",function(){const fe=e.\u0275\u0275restoreView(h).$implicit,Ge=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Ge.navigateProd("product",fe))}),e.\u0275\u0275elementStart(1,"img",10),e.\u0275\u0275listener("load",function(F){e.\u0275\u0275restoreView(h);const fe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(fe.imageLoaded(F))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"div",11),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()}if(2&z){const h=I.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("src",h.tempImageArray[0].imageUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(h.title)}}function je(z,I){1&z&&(e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275element(1,"img",13),e.\u0275\u0275elementEnd())}let Je=(()=>{class z{onScroll(){this.isBottomReached()&&this.fullCount>this.skip&&this.getProducts()}constructor(h,M,F,fe,Ge,ft,Et){this.productService=h,this.dataService=M,this.router=F,this.route=fe,this.title=Ge,this.messageService=ft,this.imageCacheService=Et,this.appId=v.Jf,this.userId=v.xS,this.templateName=v.Bv,this.results=[],this.description=[],this.loadImageCount=0,this.isFromCMSAppView=!1,this.hideImageLoadingSpinner=!1,this.imageUrl1=this.dataService.getServerURL()+"/templates/viewWebImages?userId="+this.userId+"&appId="+this.appId+"&"+(new Date).getTime()+"&images=secondNavi",this.fullCount=0,this.limit=10,this.skip=0,this.isOnRequest=!1,this.title.setLocation("shop"),this.messageService.sendMessage({loadImageCount:-1}),this.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView"),this.limit="Recipe"==this.templateName||"Fitness"==this.templateName||"Jobs"==this.templateName||"Magazine"==this.templateName||"News"==this.templateName||"Jobs-II"==this.templateName?4:8,this.router.params.subscribe($t=>{this.catId=$t.id,this.catName=$t.name,this.catImage=$t.image,this.title.changeTitle(this.catName?this.catName:"Store")})}ngOnInit(){null!=this.catId?this.getProducts():this.productService.getAllProducts().subscribe(h=>{this.results=h,this.dataService.initialImageCount="Recipe"==this.templateName||"Magazine"==this.templateName||"News"==this.templateName?h?h.length+1:0:h?h.length:0,h&&0===h.length&&this.dataService.hideImageLoadingSpinner()},h=>{console.log("Error shop service all"),this.dataService.initialImageCount=0,this.dataService.hideImageLoadingSpinner()})}htmlToPlaintext(h){return h.replace(/<[^>]+>/gm,"")}navigateProd(h,M){this.dataService.data=M,this.route.navigate([h,this.catName,M.categoryId,M.id])}imageLoaded(h){this.hideImageLoadingSpinner||(this.loadImageCount+=1,this.messageService.sendMessage({loadImageCount:this.loadImageCount}))}prepareArticlesToShow(h){return new Promise(M=>{if(this.dataService.isCordovaApp()){const F=Ge=>new Promise(ft=>{this.imageCacheService.getImagesFromCache(Ge.tempImageArray,"imageUrl").then(Et=>{Ge.tempImageArray=Et,ft(Ge)})});Promise.all(h.map(F)).then(Ge=>M(Ge))}else M(h)})}checkImagesAreInCache(h){let M=0;for(let F=0;F<h.length;F++)for(let fe=0;fe<h[F].tempImageArray.length;fe++)h[F].tempImageArray[fe].imageUrl.includes("http")&&M++;0===M&&(this.hideImageLoadingSpinner=!0)}getProducts(){this.isOnRequest||(this.isOnRequest=!0,this.productService.getProducts(this.catId,this.limit,this.skip).subscribe(h=>{this.isOnRequest=!1,this.fullCount=h.fullCount,this.skip+=h.data.length;let M=h.data;for(let F=0;F<M.length;F++)this.description.push(this.htmlToPlaintext(M[F].desc));this.prepareArticlesToShow(M).then(F=>{this.results.push(...F),this.skip=this.results.length,this.dataService.isCordovaApp()&&(this.checkImagesAreInCache(this.results),this.results.map(fe=>{fe.tempImageArray.map(Ge=>Ge.imageUrl=this.imageCacheService.getTrustUrl(Ge.imageUrl))})),this.dataService.initialImageCount="Recipe"==this.templateName||"Magazine"==this.templateName||"News"==this.templateName?M?M.length+1:0:M?M.length:0,M&&0===M.length&&this.dataService.hideImageLoadingSpinner(),this.hideImageLoadingSpinner&&this.messageService.sendMessage({loadImageCount:this.dataService.initialImageCount})})},h=>{console.log("ShopComponent: Error when getting products.Err: ",h),this.dataService.initialImageCount=0,this.dataService.hideImageLoadingSpinner(),this.dataService.showPopupMessage(this.dataService.UNAUTHORISED_ACCESS_MSG)}))}isBottomReached(){return $(window).scrollTop()+$(window).height()==$(document).height()}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(Re.s),e.\u0275\u0275directiveInject(u.V),e.\u0275\u0275directiveInject(d.gz),e.\u0275\u0275directiveInject(d.F0),e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(b.e),e.\u0275\u0275directiveInject(Ht.y))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["app-shop"]],hostBindings:function(M,F){1&M&&e.\u0275\u0275listener("scroll",function(){return F.onScroll()},!1,e.\u0275\u0275resolveWindow)},decls:8,vars:5,consts:[[1,"page-container"],["id","bloc-0",1,"bloc","bgc-white","l-bloc"],["width","100%",1,"cat-image",3,"src","load"],["class","text-center grey margin-l main-content-font",4,"ngIf"],["class","margin prod",3,"click",4,"ngFor","ngForOf"],["class","img-loader",4,"ngIf"],["onclick","scrollToTarget('1')",1,"bloc-button","btn","btn-d","scrollToTop"],[1,"fa","fa-chevron-up"],[1,"text-center","grey","margin-l","main-content-font"],[1,"margin","prod",3,"click"],["width","100%",3,"src","load"],[1,"main-header-font","name"],[1,"img-loader"],["src","./assets/images/Loading75.gif"]],template:function(M,F){1&M&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"img",2),e.\u0275\u0275listener("load",function(Ge){return F.imageLoaded(Ge)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,ni,2,1,"div",3),e.\u0275\u0275template(4,he,4,2,"div",4),e.\u0275\u0275template(5,je,2,0,"div",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"a",6),e.\u0275\u0275element(7,"span",7),e.\u0275\u0275elementEnd()()),2&M&&(e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate2("src","",F.imageUrl1,"/",F.catImage,"",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",F.results),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",F.results),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0!=F.skip&&0!=F.fullCount&&F.skip!=F.fullCount))},dependencies:[f.NgForOf,f.NgIf],styles:[".container[_ngcontent-%COMP%]{height:100vh;background:#fff;border-top:1px solid #ccc}.cat-image[_ngcontent-%COMP%]{padding-top:56px}.name[_ngcontent-%COMP%]{padding:10px;text-transform:uppercase}.prod[_ngcontent-%COMP%]{border-radius:5px 5px 2px 2px;box-shadow:0 0 3px 2px #0000004f}.prod[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:5px 5px 0 0}.prod[_ngcontent-%COMP%]:last-child{margin-bottom:76px!important}.grey[_ngcontent-%COMP%]{color:#717171;letter-spacing:.5px}.margin-l[_ngcontent-%COMP%]{margin:8px 5px}.img-loader[_ngcontent-%COMP%]{margin:40px;padding-bottom:60px;text-align:center}"]})}return z})();var At=a(1526),li=a(7925);const zi=function(z,I){return{"light-font":z,"bold-font":I}},dn=function(z,I){return{"place-right":!0,"light-font":z,"bold-font":I}};function en(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275listener("click",function(){const fe=e.\u0275\u0275restoreView(h).$implicit,Ge=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Ge.gotoMessages(fe._id,fe.title))}),e.\u0275\u0275elementStart(1,"div",2),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",2),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"date"),e.\u0275\u0275elementEnd()()}if(2&z){const h=I.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(7,zi,h.isRead,!h.isRead)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(h.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(10,dn,h.isRead,!h.isRead)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(5,4,h.date,"dd/MM/yyyy"),"")}}const Hn=function(){return{"place-right":!0}};let Tn=(()=>{class z{constructor(h,M,F,fe){this.title=h,this.articleService=M,this.router=F,this.messageService=fe,this.messageArticles=[],this.title.changeTitle("Inbox"),this.title.setLocation("Inbox"),this.articleUser=JSON.parse(localStorage.getItem(li.b.APP_ID+"ArticleUser")),this.messageService.sendMessage({loadImageCount:-2}),this.articleUser&&this.getUserMessagedArticles()}getUserMessagedArticles(){this.articleService.getUserMessagedArticles(this.articleUser.id).subscribe(h=>{"SUCCESS"===h.status&&(this.messageArticles=h.data.sort((M,F)=>new Date(F.date).getTime()-new Date(M.date).getTime()))})}gotoMessages(h,M){this.router.navigate(["messaging",h,M])}gotoGeneralMessages(){this.router.navigate(["general"])}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(We.n),e.\u0275\u0275directiveInject(d.F0),e.\u0275\u0275directiveInject(b.e))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["app-inbox"]],decls:6,vars:3,consts:[[1,"inbox-container","main-header-font"],[1,"article-container",3,"click"],[3,"ngClass"],["class","article-container",3,"click",4,"ngFor","ngForOf"]],template:function(M,F){1&M&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275listener("click",function(){return F.gotoGeneralMessages()}),e.\u0275\u0275elementStart(2,"div"),e.\u0275\u0275text(3,"GENERAL"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(4,"div",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,en,6,13,"div",3),e.\u0275\u0275elementEnd()),2&M&&(e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction0(2,Hn)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",F.messageArticles))},dependencies:[f.NgClass,f.NgForOf,f.DatePipe],styles:[".inbox-container[_ngcontent-%COMP%]{padding:75px 15px}.article-container[_ngcontent-%COMP%]{display:flex;justify-content:space-around;padding:10px 0;border-bottom:1px solid}.place-right[_ngcontent-%COMP%]{margin-right:0;margin-left:auto}.light-font[_ngcontent-%COMP%]{font-weight:100}.bold-font[_ngcontent-%COMP%]{font-weight:700}"]})}return z})(),Bo=(()=>{class z{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(M){return new(M||z)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["general-message"]],inputs:{message:"message"},decls:6,vars:5,consts:[[1,"main-container"],[1,"d-container"],[1,"m-container"]],template:function(M,F){1&M&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"date"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",2),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&M&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,F.message.createdAt,"dd/M/yyyy h:mm a")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(F.message.message))},dependencies:[f.DatePipe],styles:[".main-container[_ngcontent-%COMP%]{padding:10px}.d-container[_ngcontent-%COMP%]{padding:5px;text-align:center}.m-container[_ngcontent-%COMP%]{padding:10px;background-color:#c5bebe;border-radius:5px}"]})}return z})();function Fi(z,I){1&z&&e.\u0275\u0275element(0,"general-message",2),2&z&&e.\u0275\u0275property("message",I.$implicit)}let bn=(()=>{class z{onScroll(){this.isBottomReached()&&this.getPushMessages(this.skip)}constructor(h,M,F){this.pushMessageService=h,this.title=M,this.messageService=F,this.skip=0,this.messages=[]}ngOnInit(){this.changeTitle(),this.getPushMessages(this.skip),this.messageService.sendMessage({loadImageCount:-2})}getPushMessages(h){this.pushMessageService.getPushMessages(10,h).subscribe(F=>{"SUCCESS"===F.status&&(this.messages.push(...F.data),this.skip=this.messages.length)})}changeTitle(){setTimeout(()=>{this.title.changeTitle("General"),this.title.setLocation("General")},100)}isBottomReached(){return window.innerHeight+window.scrollY>=document.body.offsetHeight}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(qe),e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(b.e))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["general-messages"]],hostBindings:function(M,F){1&M&&e.\u0275\u0275listener("scroll",function(){return F.onScroll()},!1,e.\u0275\u0275resolveWindow)},decls:2,vars:1,consts:[[1,"messages-content"],[3,"message",4,"ngFor","ngForOf"],[3,"message"]],template:function(M,F){1&M&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Fi,1,1,"general-message",1),e.\u0275\u0275elementEnd()),2&M&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",F.messages))},dependencies:[f.NgForOf,Bo],styles:[".messages-content[_ngcontent-%COMP%]{padding:50px 0 66px}"]})}return z})(),cn=(()=>{class z{constructor(h,M,F,fe,Ge){this.dataService=h,this.router=M,this.appDataService=F,this.subscription=fe,this.titleServ=Ge,this.appId=v.Jf,this.templateName=v.Bv,this.articleId=""}canActivate(h,M){if(this.titleServ.getLocation().subscribe(F=>{this.isSubCategory="sub_category"===F,console.log("getLocation",F),this.isPage="product"===F}),"Crm"==this.templateName||"CrmV2"==this.templateName)this.router.navigate(["crm"]);else if("P2Pchat"==this.templateName||"P2PchatV2"==this.templateName||"P2PchatV3"==this.templateName)this.router.navigate(["chatTemplate"]);else if("appmaker_2"==this.templateName)this.router.navigate(["appmakerPro"]);else{if("Location"!=this.templateName)return this.articleId=h.params&&h.params.articleId?h.params.articleId:null,h.params.catId?this.isValid(h.params.catId):h.queryParams.categoryID?this.isValid(h.queryParams.categoryID):(0,Ze.of)(!0);if(h.queryParams.isLbsCats||h.params.catId)return this.articleId=h.params&&h.params.articleId?h.params.articleId:null,h.params.catId?this.isValid(h.params.catId):h.queryParams.categoryID?this.isValid(h.queryParams.categoryID):(0,Ze.of)(!0);this.isPage||this.router.navigate(["location"])}}isValid(h){if(null!=localStorage.getItem("purchase-token"))return(0,Ze.of)(!0);let F=localStorage.getItem(this.appId+"msisdn");const fe=localStorage.getItem("UUID");let Ge={catId:h};return new C.y(ft=>{this.appDataService.getAppDetails(Ge).subscribe(Et=>{if(!Et)return ft.next(!0);if("1"==localStorage.getItem(this.appId+"_isFromCMSAppView")||this.dataService.isFromCMSAppView||Et.publish?.isFreeApp)return this.dataService.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView"),ft.next(!0);if(Et.category?.categoryType&&"SUBSCRIPTION"===Et.category?.categoryType)Ge={appId:this.appId,msisdn:F,uuId:fe,catId:h},this.subscription.getSubscribedData(Ge).subscribe($t=>"UNSUBSCRIBED"!=$t.subscriptionStatus?ft.next(!0):(this.dataService.changeLoadArticlesFromHome({isTrue:!0,articleId:this.articleId}),ft.next(this.router.parseUrl(""))));else{if(!Et.category?.categoryType||"OTC"!==Et.category?.categoryType)return ft.next(!(!Et.category?.categoryType||"FREE"!==Et.category?.categoryType)||this.router.parseUrl(""));F=this.dataService.getOTCMSISDNByCatID(this.appId,h),Ge={appId:this.appId,msisdn:F,uuId:fe,categoryId:h},this.subscription.isOTCValid(Ge).subscribe($t=>$t.isValid?ft.next(!0):(this.dataService.changeLoadArticlesFromHome({isTrue:!0,articleId:this.articleId}),ft.next(this.router.parseUrl(""))))}})})}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275inject(u.V),e.\u0275\u0275inject(d.F0),e.\u0275\u0275inject(g.U),e.\u0275\u0275inject(q.E),e.\u0275\u0275inject(X.y))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();const dr=[{path:"",component:Fn,pathMatch:"full",canActivate:[cn]},{path:"aboutus",component:bi,data:{title:"About Us Page"}},{path:"policies",component:ji,data:{title:"Policies Page"}},{path:"contact",component:ht,data:{title:"Contact Page"}},{path:"shop/:id/:name/:image",component:Je,data:{title:"Shop Page"}},{path:"product/:catName/:catId/:articleId",component:At.F,data:{title:"Product Page"},canActivate:[cn]},{path:"messaging/:id/:title",component:li.b},{path:"inbox",component:Tn},{path:"general",component:bn},{path:"crm",loadChildren:()=>Promise.resolve().then(a.bind(a,8552)).then(z=>z.CrmTemplateModule)},{path:"form/:catName/:catId/:articleId",loadChildren:()=>Promise.resolve().then(a.bind(a,1663)).then(z=>z.FormEngineModule)},{path:"questions/:catName/:catId/:articleId",canActivate:[cn],loadChildren:()=>Promise.resolve().then(a.bind(a,6565)).then(z=>z.QuestionProductModule)},{path:"chatTemplate",loadChildren:()=>Promise.resolve().then(a.bind(a,8182)).then(z=>z.ChatTemplateModule)},{path:"appmakerPro",loadChildren:()=>a.e(938).then(a.bind(a,2938)).then(z=>z.Appmaker20Module)},{path:"job",loadChildren:()=>Promise.resolve().then(a.bind(a,3657)).then(z=>z.JobTemplateModule)},{path:"location",loadChildren:()=>Promise.resolve().then(a.bind(a,3340)).then(z=>z.LocationTemplateModule)},{path:"**",redirectTo:""}];let eo=(()=>{class z{static#e=this.\u0275fac=function(M){return new(M||z)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:z});static#i=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[d.Bz.forRoot(dr,{scrollPositionRestoration:"top",preloadingStrategy:d.wm}),d.Bz]})}return z})();var $n=a(6565);let ao=(()=>{class z{static#e=this.\u0275fac=function(M){return new(M||z)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:z});static#i=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[f.CommonModule]})}return z})();var Dr=a(231),Hr=a(8552),Tr=a(8182),Kn=a(1663),Cr=a(9818),or=a(7392),Nr=a(7084),ur=a(5001),$r=a(6255),Kr=a(8014),Pr=a(3657),Oo=a(522),an=a(3493),Mo=a(3340),er=a(9441);function hr(z,I){if(1&z){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"a",2),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const F=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(F.downloadFile())}),e.\u0275\u0275elementStart(2,"div"),e.\u0275\u0275element(3,"i",3),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()}if(2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",h.message.file.niceFileName,"")}}const Gr=function(z){return{"message-content":!0,"message-content-right":z}},go=function(z){return{"main-content-font":!0,"text-align-right":z}},Eo=function(z,I){return{"message-body-content":!0,"main-content-font":z,"article-user-message":I}};let lo=(()=>{class z{constructor(h,M){this.articleService=h,this.dataService=M,this.isCordovaApp=!1}ngOnInit(){this.isCordovaApp=this.dataService.isCordovaApp()}downloadFile(){let M=this;this.articleService.downloadFile({appId:li.b.APP_ID,userId:li.b.USER_ID,articleUserId:this.message.user.id,fileType:this.message.file.type,fileName:this.message.file.name}).subscribe(F=>{if(console.log(F),F.type===l.dt.Response)if(this.isCordovaApp){let fe="file:///storage/emulated/0/Download";console.log(fe),window.resolveLocalFileSystemURL(fe,function(Ge){Ge.getFile(M.message.file.name,{create:!0},function(ft){ft.createWriter(function(Et){Et.write(F.body),Et.onwriteend=function(){ft.toURL(),window.alert("Your file has been saved in Download folder!")},Et.onerror=function($t){window.alert("Unable to download"),console.error($t)}},function(Et){console.log("Unable to download"),console.error(Et)})},function(ft){console.log("Unable to download"),console.error(ft)})},function(Ge){console.log("Unable to download"),console.error(Ge)})}else(0,er.saveAs)(F.body,this.message.file.name)})}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(We.n),e.\u0275\u0275directiveInject(u.V))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["article-message"]],inputs:{message:"message"},decls:9,vars:16,consts:[[3,"ngClass"],[4,"ngIf"],[3,"click"],[1,"fa","fa-download"]],template:function(M,F){1&M&&(e.\u0275\u0275elementStart(0,"div")(1,"div",0)(2,"div",0),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"date"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",0)(6,"div"),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,hr,5,1,"div",1),e.\u0275\u0275elementEnd()()()),2&M&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(9,Gr,F.message.isSentByArticleUser)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(11,go,!F.message.isSentByArticleUser)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,6,F.message.sentDateTime,"dd/M/yyyy h:mm a")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(13,Eo,!F.message.isSentByArticleUser,F.message.isSentByArticleUser)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(F.message.message),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",F.message.file))},dependencies:[f.NgClass,f.NgIf,f.DatePipe],styles:[".message-content[_ngcontent-%COMP%]{width:60%;margin-top:10px;margin-bottom:10px}.message-content-right[_ngcontent-%COMP%]{margin-right:0;margin-left:auto}.message-body-content[_ngcontent-%COMP%]{border:1px solid;border-color:inherit;border-radius:5px;padding:5px}.article-user-message[_ngcontent-%COMP%]{background-color:#c5bebe;border-color:#c5bebe}.text-align-right[_ngcontent-%COMP%]{text-align:right}"]})}return z})();function xr(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",12)(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(h.fileName)}}function wo(z,I){if(1&z&&(e.\u0275\u0275elementStart(0,"div",13),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&z){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",h.errorMessage," ")}}const No=function(z,I){return{"div-send-disable":z,"div-send-enable":I}};let Zr=(()=>{class z{static#e=this.ACCEPTED_FILE_TYPE={IMAGE:{type:"IMAGE",value:"image/"},VIDEO:{type:"VIDEO",value:"video/"},PDF:{type:"PDF",value:"application/pdf"}};static#t=this.MAX_SIZE=50;constructor(h){this.articleService=h,this.user={},this.articleMessage={message:null,articleId:null,isSentByArticleUser:!0},this.showError=!1}ngOnInit(){const h=JSON.parse(localStorage.getItem(li.b.APP_ID+"ArticleUser"));this.user.id=h.id}onSendButtonClickHandler(){if(this.articleMessage.message){this.articleMessage.articleId=this.articleId,this.articleMessage.user=this.user.id;let h={};if(this.file){const M=new FileReader;M.readAsDataURL(this.file),M.onload=()=>{h={message:JSON.stringify(this.articleMessage),appId:li.b.APP_ID,userId:li.b.USER_ID,fileType:this.fileType,fileName:this.fileName,file:M.result},this.sendMessageToAppCreator(h)}}else h={message:JSON.stringify(this.articleMessage)},this.sendMessageToAppCreator(h)}}sendMessageToAppCreator(h){this.articleService.sendMessageToAppCreator(h).subscribe(M=>{this.articleMessage.message=null,this.file=null,this.fileName=null,this.fileType=null},M=>{console.error(M)})}onFileSelectHandler(h){const M=Et=>{this.file=null,this.fileName=null,this.fileType=null,Et&&this.showErrors(Et)},F=()=>{const $t=fe.type;fe.size/1e6>z.MAX_SIZE?this.showErrors("File size should be less than 50MB."):($t.indexOf(z.ACCEPTED_FILE_TYPE.IMAGE.value)>-1?this.fileType=z.ACCEPTED_FILE_TYPE.IMAGE.type:$t.indexOf(z.ACCEPTED_FILE_TYPE.VIDEO.value)>-1?this.fileType=z.ACCEPTED_FILE_TYPE.VIDEO.type:$t.indexOf(z.ACCEPTED_FILE_TYPE.PDF.value)>-1?this.fileType=z.ACCEPTED_FILE_TYPE.PDF.type:M("The file type you have selected is not supported"),this.file=fe,this.fileName=fe.name)},fe=h.target.files[0];if(fe){var Ge=window.URL||window.webkitURL,ft=new Image;ft.src=Ge.createObjectURL(fe),ft.onerror=()=>M("The file type you have selected is not supported"),ft.onload=()=>F()}else M(null)}showErrors(h){this.showError=!0,this.errorMessage=h,setTimeout(()=>{this.showError=!1,this.errorMessage=null},3e3)}static#i=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275directiveInject(We.n))};static#n=this.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["send-article-message"]],inputs:{articleId:["id","articleId"]},decls:14,vars:7,consts:[[1,"s-m-main-content"],["class","div-attached-file",4,"ngIf"],["class","div-error",4,"ngIf"],[1,"text-center"],[1,"div-message"],["name","message","id","message","rows","auto","maxlength","4096",3,"ngModel","ngModelChange"],["msg",""],[1,"div-attachment-icon"],[1,"fa","fa-paperclip"],["type","file","accept","image/png, image/jpeg",3,"change"],[1,"div-send-container",3,"ngClass"],[1,"div-send",3,"click"],[1,"div-attached-file"],[1,"div-error"]],template:function(M,F){if(1&M&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,xr,3,1,"div",1),e.\u0275\u0275template(2,wo,2,1,"div",2),e.\u0275\u0275elementStart(3,"div",3)(4,"div",4)(5,"textarea",5,6),e.\u0275\u0275listener("ngModelChange",function(Ge){return F.articleMessage.message=Ge}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",7)(8,"label")(9,"i",8)(10,"input",9),e.\u0275\u0275listener("change",function(Ge){return F.onFileSelectHandler(Ge)}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(11,"div",10)(12,"div",11),e.\u0275\u0275listener("click",function(){return F.onSendButtonClickHandler()}),e.\u0275\u0275text(13,"Send"),e.\u0275\u0275elementEnd()()()()),2&M){const fe=e.\u0275\u0275reference(6);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",F.fileName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",F.showError),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",F.articleMessage.message),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(4,No,0===fe.value.length,fe.value.length>0))}},dependencies:[f.NgClass,f.NgIf,o.Fj,o.JJ,o.nD,o.On],styles:[".s-m-main-content[_ngcontent-%COMP%]{display:block}.div-message[_ngcontent-%COMP%]{height:50px;width:68%;display:inline-block;padding:10px;background-color:#c5bebe;border-top-left-radius:10px;border-bottom-left-radius:10px}.div-message[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;height:100%}.div-attachment-icon[_ngcontent-%COMP%]{display:inline-block;background-color:#c5bebe;margin-left:5px;padding:19px 5px 0}.div-send-container[_ngcontent-%COMP%]{height:50px;width:20%;display:inline-block;padding:10px;position:relative;margin-left:5px;border-top-right-radius:10px;border-bottom-right-radius:10px;bottom:10px}.div-send-enable[_ngcontent-%COMP%]{background-color:#dad2d2}.div-send-disable[_ngcontent-%COMP%]{color:#888383;background-color:#c5bebe}.div-send[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center;font-weight:700;font-style:inherit;cursor:pointer}i[_ngcontent-%COMP%]{font-size:24px;bottom:5px;position:relative}.div-attached-file[_ngcontent-%COMP%]{padding-left:4%}input[type=file][_ngcontent-%COMP%]{display:none}.div-error[_ngcontent-%COMP%]{height:30px;background-color:#e8695c;z-index:10;position:-ms-device-fixed;width:100%;padding:5px 10px;border-radius:5px}"]})}return z})(),Un=(()=>{class z{static#e=this.\u0275fac=function(M){return new(M||z)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:z});static#i=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[f.CommonModule,eo,ue.N,o.u5,o.UX,Dr.Z,$n.QuestionProductModule,Pr.JobTemplateModule,Hr.CrmTemplateModule,ao,Tr.ChatTemplateModule,Kn.FormEngineModule,Mo.LocationTemplateModule,Cr.yu,or.Ps,Nr.To,Lt.yj,ur.y,$r.jT,Kr.t,Oo.p,an.OwlModule]})}return z})();e.\u0275\u0275setComponentScope(li.b,[f.NgForOf,lo,Zr],[]);var Ur,gr=a(5457),co=a(8929);let nr=(()=>{class z{constructor(h,M,F){this.httpClient=h,this.parentJWTService=M,this.dataService=F,this.jwt=new co.xQ,Ur=this}getNewToken(){return new C.y(h=>{const M={appId:this.dataService.appId,msisdn:this.dataService.getLocalStorageMSISDN(),uuId:this.dataService.getLocalStorageUUID()},F={headers:new l.WM({"Content-Type":"application/json"})},fe=this.dataService.getServerURL()+"/auth/getTokenForMobileUser";this.httpClient.post(fe,M,F).subscribe(Ge=>{this.dataService.setLocalStorageToken(Ge.token),h.next(Ge.token)},Ge=>{h?.error(Ge)})})}getToken(){return new C.y(h=>{if(this.dataService.isFromMobile){const M=this.dataService.getLocalStorageToken();M?h.next({token:M}):this.getNewToken().subscribe(F=>{h.next({token:F})},F=>{console.log("auth.service: Error occured when getToken error:",F),h?.error(F)})}else{const M=this.getParentToken().subscribe(F=>{M.unsubscribe(),h.next(F)})}})}getParentToken(){return Ur.parentJWTService.getToken(Ur.getParentJWTCallback),Ur.jwt.asObservable()}getParentJWTCallback(h){console.log("getParentJWTCallback in authService=>",h),Ur.jwt.next({token:h})}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275inject(l.eN),e.\u0275\u0275inject(gr.G),e.\u0275\u0275inject(u.V))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac})}return z})(),_r=(()=>{class z{constructor(h,M,F){this.authService=h,this.dataService=M,this.httpClient=F,this.jwt=new co.xQ,this.appId=v.Jf,this.userId=v.xS}sendAPICall(h){return new C.y(M=>{const F=this.authService.getToken().subscribe(fe=>{F&&F.unsubscribe();let Ge={};"none"!==fe.token&&(Ge={headers:new l.WM({"Content-Type":"application/json",Authorization:"Bearer "+fe.token})}),this.httpClient.get(h,Ge).subscribe(ft=>{M.next(ft)},ft=>{if(ft instanceof l.UA){const Et=ft,$t=Et.status;console.log("auth.handler.service: Call api: errorReponse:",Et),this.dataService.isFromMobile&&401===$t&&Et&&Et.error&&"TokenExpiredError"===Et.error.name?this.renewTokenAndReSendAPICall(h,M):(console.log("auth.handler.service: Call api: Received error response code:%s",$t),M?.error(ft))}else console.log("auth.handler.service: Call api: error not returning a HttpErrorResponse?.error:",ft),M?.error(ft)})},fe=>{console.log("auth.handler.service: Call getToken error:",fe),M?.error(fe)})})}renewTokenAndReSendAPICall(h,M){this.authService.getNewToken().subscribe(F=>{const fe={headers:new l.WM({"Content-Type":"application/json",Authorization:"Bearer "+F})};this.httpClient.get(h,fe).subscribe(Ge=>{M.next(Ge)},Ge=>{console.log("api.handler.service.renewTokenAndReSendAPICall: Error renewing the token.Err: ",Ge),M?.error(Ge)})},F=>{console.log("auth.handler.service: Call renewTokenAndReSendAPICall error:",F),M?.error(F)})}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275inject(nr),e.\u0275\u0275inject(u.V),e.\u0275\u0275inject(l.eN))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac})}return z})();var Xn=a(1737),Uo=a(4850);let _o=(()=>{class z{constructor(h){this.dataService=h}intercept(h,M){return M.handle(h).pipe((0,Uo.U)(F=>F),(0,Oe.K)(F=>(F.statusText&&"Unknown Error"===F.statusText&&console.log("Oops something went wrong, please try again in a bit.  : ERROR "+JSON.stringify(F)),(0,Xn._)(F))))}static#e=this.\u0275fac=function(M){return new(M||z)(e.\u0275\u0275inject(u.V))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac})}return z})();var jn=a(9664),Ye=a(7340);function D(z){return new e.\u0275RuntimeError(3e3,!1)}function Mr(){return typeof window<"u"&&typeof window.document<"u"}function ho(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function io(z){switch(z.length){case 0:return new Ye.ZN;case 1:return z[0];default:return new Ye.ZE(z)}}function Ms(z,I,h,M,F=new Map,fe=new Map){const Ge=[],ft=[];let Et=-1,$t=null;if(M.forEach(vi=>{const wi=vi.get("offset"),sn=wi==Et,on=sn&&$t||new Map;vi.forEach((Gi,tn)=>{let Sn=tn,Vn=Gi;if("offset"!==tn)switch(Sn=I.normalizePropertyName(Sn,Ge),Vn){case Ye.k1:Vn=F.get(tn);break;case Ye.l3:Vn=fe.get(tn);break;default:Vn=I.normalizeStyleValue(tn,Sn,Vn,Ge)}on.set(Sn,Vn)}),sn||ft.push(on),$t=on,Et=wi}),Ge.length)throw function Ai(z){return new e.\u0275RuntimeError(3502,!1)}();return ft}function ls(z,I,h,M){switch(I){case"start":z.onStart(()=>M(h&&jo(h,"start",z)));break;case"done":z.onDone(()=>M(h&&jo(h,"done",z)));break;case"destroy":z.onDestroy(()=>M(h&&jo(h,"destroy",z)))}}function jo(z,I,h){const fe=Ao(z.element,z.triggerName,z.fromState,z.toState,I||z.phaseName,h.totalTime??z.totalTime,!!h.disabled),Ge=z._data;return null!=Ge&&(fe._data=Ge),fe}function Ao(z,I,h,M,F="",fe=0,Ge){return{element:z,triggerName:I,fromState:h,toState:M,phaseName:F,totalTime:fe,disabled:!!Ge}}function br(z,I,h){let M=z.get(I);return M||z.set(I,M=h),M}function vo(z){const I=z.indexOf(":");return[z.substring(1,I),z.slice(I+1)]}let Vo=(z,I)=>!1,ko=(z,I,h)=>[],zo=null;function Es(z){const I=z.parentNode||z.host;return I===zo?null:I}(ho()||typeof Element<"u")&&(Mr()?(zo=(()=>document.documentElement)(),Vo=(z,I)=>{for(;I;){if(I===z)return!0;I=Es(I)}return!1}):Vo=(z,I)=>z.contains(I),ko=(z,I,h)=>{if(h)return Array.from(z.querySelectorAll(I));const M=z.querySelector(I);return M?[M]:[]});let Wo=null,is=!1;const Yr=Vo,Jn=ko;let Ss=(()=>{class z{validateStyleProperty(h){return function Is(z){Wo||(Wo=function An(){return typeof document<"u"?document.body:null}()||{},is=!!Wo.style&&"WebkitAppearance"in Wo.style);let I=!0;return Wo.style&&!function $s(z){return"ebkit"==z.substring(1,6)}(z)&&(I=z in Wo.style,!I&&is&&(I="Webkit"+z.charAt(0).toUpperCase()+z.slice(1)in Wo.style)),I}(h)}matchesElement(h,M){return!1}containsElement(h,M){return Yr(h,M)}getParentElement(h){return Es(h)}query(h,M,F){return Jn(h,M,F)}computeStyle(h,M,F){return F||""}animate(h,M,F,fe,Ge,ft=[],Et){return new Ye.ZN(F,fe)}}return z.\u0275fac=function(h){return new(h||z)},z.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac}),z})(),gs=(()=>{class z{}return z.NOOP=new Ss,z})();const ra=1e3,So="ng-enter",Ho="ng-leave",Xo="ng-trigger",ee=".ng-trigger",Se="ng-animating",oe=".ng-animating";function Ne(z){if("number"==typeof z)return z;const I=z.match(/^(-?[\.\d]+)(m?s)/);return!I||I.length<2?0:bt(parseFloat(I[1]),I[2])}function bt(z,I){return"s"===I?z*ra:z}function Gt(z,I,h){return z.hasOwnProperty("duration")?z:function ei(z,I,h){let F,fe=0,Ge="";if("string"==typeof z){const ft=z.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ft)return I.push(D()),{duration:0,delay:0,easing:""};F=bt(parseFloat(ft[1]),ft[2]);const Et=ft[3];null!=Et&&(fe=bt(parseFloat(Et),ft[4]));const $t=ft[5];$t&&(Ge=$t)}else F=z;if(!h){let ft=!1,Et=I.length;F<0&&(I.push(function ae(){return new e.\u0275RuntimeError(3100,!1)}()),ft=!0),fe<0&&(I.push(function _e(){return new e.\u0275RuntimeError(3101,!1)}()),ft=!0),ft&&I.splice(Et,0,D())}return{duration:F,delay:fe,easing:Ge}}(z,I,h)}function Li(z,I={}){return Object.keys(z).forEach(h=>{I[h]=z[h]}),I}function En(z){const I=new Map;return Object.keys(z).forEach(h=>{I.set(h,z[h])}),I}function Yi(z,I=new Map,h){if(h)for(let[M,F]of h)I.set(M,F);for(let[M,F]of z)I.set(M,F);return I}function tr(z,I,h){return h?I+":"+h+";":""}function Cn(z){let I="";for(let h=0;h<z.style.length;h++){const M=z.style.item(h);I+=tr(0,M,z.style.getPropertyValue(M))}for(const h in z.style)z.style.hasOwnProperty(h)&&!h.startsWith("_")&&(I+=tr(0,ye(h),z.style[h]));z.setAttribute("style",I)}function In(z,I,h){z.style&&(I.forEach((M,F)=>{const fe=Y(F);h&&!h.has(F)&&h.set(F,z.style[fe]),z.style[fe]=M}),ho()&&Cn(z))}function Or(z,I){z.style&&(I.forEach((h,M)=>{const F=Y(M);z.style[F]=""}),ho()&&Cn(z))}function Er(z){return Array.isArray(z)?1==z.length?z[0]:(0,Ye.vP)(z):z}const jr=new RegExp("{{\\s*(.+?)\\s*}}","g");function mo(z){let I=[];if("string"==typeof z){let h;for(;h=jr.exec(z);)I.push(h[1]);jr.lastIndex=0}return I}function s(z,I,h){const M=z.toString(),F=M.replace(jr,(fe,Ge)=>{let ft=I[Ge];return null==ft&&(h.push(function Dt(z){return new e.\u0275RuntimeError(3003,!1)}()),ft=""),ft.toString()});return F==M?z:F}function m(z){const I=[];let h=z.next();for(;!h.done;)I.push(h.value),h=z.next();return I}const E=/-+([a-z0-9])/g;function Y(z){return z.replace(E,(...I)=>I[1].toUpperCase())}function ye(z){return z.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Wt(z,I,h){switch(I.type){case 7:return z.visitTrigger(I,h);case 0:return z.visitState(I,h);case 1:return z.visitTransition(I,h);case 2:return z.visitSequence(I,h);case 3:return z.visitGroup(I,h);case 4:return z.visitAnimate(I,h);case 5:return z.visitKeyframes(I,h);case 6:return z.visitStyle(I,h);case 8:return z.visitReference(I,h);case 9:return z.visitAnimateChild(I,h);case 10:return z.visitAnimateRef(I,h);case 11:return z.visitQuery(I,h);case 12:return z.visitStagger(I,h);default:throw function oi(z){return new e.\u0275RuntimeError(3004,!1)}()}}function Yt(z,I){return window.getComputedStyle(z)[I]}const Ar="*";function ds(z,I){const h=[];return"string"==typeof z?z.split(/\s*,\s*/).forEach(M=>function Rs(z,I,h){if(":"==z[0]){const Et=function sa(z,I){switch(z){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(h,M)=>parseFloat(M)>parseFloat(h);case":decrement":return(h,M)=>parseFloat(M)<parseFloat(h);default:return I.push(function Ve(z){return new e.\u0275RuntimeError(3016,!1)}()),"* => *"}}(z,h);if("function"==typeof Et)return void I.push(Et);z=Et}const M=z.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==M||M.length<4)return h.push(function $e(z){return new e.\u0275RuntimeError(3015,!1)}()),I;const F=M[1],fe=M[2],Ge=M[3];I.push(rs(F,Ge));"<"==fe[0]&&!(F==Ar&&Ge==Ar)&&I.push(rs(Ge,F))}(M,h,I)):h.push(z),h}const Fs=new Set(["true","1"]),ns=new Set(["false","0"]);function rs(z,I){const h=Fs.has(z)||ns.has(z),M=Fs.has(I)||ns.has(I);return(F,fe)=>{let Ge=z==Ar||z==F,ft=I==Ar||I==fe;return!Ge&&h&&"boolean"==typeof F&&(Ge=F?Fs.has(z):ns.has(z)),!ft&&M&&"boolean"==typeof fe&&(ft=fe?Fs.has(I):ns.has(I)),Ge&&ft}}const mr=new RegExp("s*:selfs*,?","g");function Ko(z,I,h,M){return new ba(z).build(I,h,M)}class ba{constructor(I){this._driver=I}build(I,h,M){const F=new ya(h);return this._resetContextStyleTimingState(F),Wt(this,Er(I),F)}_resetContextStyleTimingState(I){I.currentQuerySelector="",I.collectedStyles=new Map,I.collectedStyles.set("",new Map),I.currentTime=0}visitTrigger(I,h){let M=h.queryCount=0,F=h.depCount=0;const fe=[],Ge=[];return"@"==I.name.charAt(0)&&h.errors.push(function Ii(){return new e.\u0275RuntimeError(3006,!1)}()),I.definitions.forEach(ft=>{if(this._resetContextStyleTimingState(h),0==ft.type){const Et=ft,$t=Et.name;$t.toString().split(/\s*,\s*/).forEach(vi=>{Et.name=vi,fe.push(this.visitState(Et,h))}),Et.name=$t}else if(1==ft.type){const Et=this.visitTransition(ft,h);M+=Et.queryCount,F+=Et.depCount,Ge.push(Et)}else h.errors.push(function si(){return new e.\u0275RuntimeError(3007,!1)}())}),{type:7,name:I.name,states:fe,transitions:Ge,queryCount:M,depCount:F,options:null}}visitState(I,h){const M=this.visitStyle(I.styles,h),F=I.options&&I.options.params||null;if(M.containsDynamicStyles){const fe=new Set,Ge=F||{};M.styles.forEach(ft=>{ft instanceof Map&&ft.forEach(Et=>{mo(Et).forEach($t=>{Ge.hasOwnProperty($t)||fe.add($t)})})}),fe.size&&(m(fe.values()),h.errors.push(function fn(z,I){return new e.\u0275RuntimeError(3008,!1)}()))}return{type:0,name:I.name,style:M,options:F?{params:F}:null}}visitTransition(I,h){h.queryCount=0,h.depCount=0;const M=Wt(this,Er(I.animation),h);return{type:1,matchers:ds(I.expr,h.errors),animation:M,queryCount:h.queryCount,depCount:h.depCount,options:Lo(I.options)}}visitSequence(I,h){return{type:2,steps:I.steps.map(M=>Wt(this,M,h)),options:Lo(I.options)}}visitGroup(I,h){const M=h.currentTime;let F=0;const fe=I.steps.map(Ge=>{h.currentTime=M;const ft=Wt(this,Ge,h);return F=Math.max(F,h.currentTime),ft});return h.currentTime=F,{type:3,steps:fe,options:Lo(I.options)}}visitAnimate(I,h){const M=function Gs(z,I){if(z.hasOwnProperty("duration"))return z;if("number"==typeof z)return kr(Gt(z,I).duration,0,"");const h=z;if(h.split(/\s+/).some(fe=>"{"==fe.charAt(0)&&"{"==fe.charAt(1))){const fe=kr(0,0,"");return fe.dynamic=!0,fe.strValue=h,fe}const F=Gt(h,I);return kr(F.duration,F.delay,F.easing)}(I.timings,h.errors);h.currentAnimateTimings=M;let F,fe=I.styles?I.styles:(0,Ye.oB)({});if(5==fe.type)F=this.visitKeyframes(fe,h);else{let Ge=I.styles,ft=!1;if(!Ge){ft=!0;const $t={};M.easing&&($t.easing=M.easing),Ge=(0,Ye.oB)($t)}h.currentTime+=M.duration+M.delay;const Et=this.visitStyle(Ge,h);Et.isEmptyStep=ft,F=Et}return h.currentAnimateTimings=null,{type:4,timings:M,style:F,options:null}}visitStyle(I,h){const M=this._makeStyleAst(I,h);return this._validateStyleAst(M,h),M}_makeStyleAst(I,h){const M=[],F=Array.isArray(I.styles)?I.styles:[I.styles];for(let ft of F)"string"==typeof ft?ft===Ye.l3?M.push(ft):h.errors.push(new e.\u0275RuntimeError(3002,!1)):M.push(En(ft));let fe=!1,Ge=null;return M.forEach(ft=>{if(ft instanceof Map&&(ft.has("easing")&&(Ge=ft.get("easing"),ft.delete("easing")),!fe))for(let Et of ft.values())if(Et.toString().indexOf("{{")>=0){fe=!0;break}}),{type:6,styles:M,easing:Ge,offset:I.offset,containsDynamicStyles:fe,options:null}}_validateStyleAst(I,h){const M=h.currentAnimateTimings;let F=h.currentTime,fe=h.currentTime;M&&fe>0&&(fe-=M.duration+M.delay),I.styles.forEach(Ge=>{"string"!=typeof Ge&&Ge.forEach((ft,Et)=>{const $t=h.collectedStyles.get(h.currentQuerySelector),vi=$t.get(Et);let wi=!0;vi&&(fe!=F&&fe>=vi.startTime&&F<=vi.endTime&&(h.errors.push(function uo(z,I,h,M,F){return new e.\u0275RuntimeError(3010,!1)}()),wi=!1),fe=vi.startTime),wi&&$t.set(Et,{startTime:fe,endTime:F}),h.options&&function $o(z,I,h){const M=I.params||{},F=mo(z);F.length&&F.forEach(fe=>{M.hasOwnProperty(fe)||h.push(function it(z){return new e.\u0275RuntimeError(3001,!1)}())})}(ft,h.options,h.errors)})})}visitKeyframes(I,h){const M={type:5,styles:[],options:null};if(!h.currentAnimateTimings)return h.errors.push(function ve(){return new e.\u0275RuntimeError(3011,!1)}()),M;let fe=0;const Ge=[];let ft=!1,Et=!1,$t=0;const vi=I.steps.map(Vn=>{const Lr=this._makeStyleAst(Vn,h);let Ir=null!=Lr.offset?Lr.offset:function aa(z){if("string"==typeof z)return null;let I=null;if(Array.isArray(z))z.forEach(h=>{if(h instanceof Map&&h.has("offset")){const M=h;I=parseFloat(M.get("offset")),M.delete("offset")}});else if(z instanceof Map&&z.has("offset")){const h=z;I=parseFloat(h.get("offset")),h.delete("offset")}return I}(Lr.styles),Wr=0;return null!=Ir&&(fe++,Wr=Lr.offset=Ir),Et=Et||Wr<0||Wr>1,ft=ft||Wr<$t,$t=Wr,Ge.push(Wr),Lr});Et&&h.errors.push(function pe(){return new e.\u0275RuntimeError(3012,!1)}()),ft&&h.errors.push(function y(){return new e.\u0275RuntimeError(3200,!1)}());const wi=I.steps.length;let sn=0;fe>0&&fe<wi?h.errors.push(function J(){return new e.\u0275RuntimeError(3202,!1)}()):0==fe&&(sn=1/(wi-1));const on=wi-1,Gi=h.currentTime,tn=h.currentAnimateTimings,Sn=tn.duration;return vi.forEach((Vn,Lr)=>{const Ir=sn>0?Lr==on?1:sn*Lr:Ge[Lr],Wr=Ir*Sn;h.currentTime=Gi+tn.delay+Wr,tn.duration=Wr,this._validateStyleAst(Vn,h),Vn.offset=Ir,M.styles.push(Vn)}),M}visitReference(I,h){return{type:8,animation:Wt(this,Er(I.animation),h),options:Lo(I.options)}}visitAnimateChild(I,h){return h.depCount++,{type:9,options:Lo(I.options)}}visitAnimateRef(I,h){return{type:10,animation:this.visitReference(I.animation,h),options:Lo(I.options)}}visitQuery(I,h){const M=h.currentQuerySelector,F=I.options||{};h.queryCount++,h.currentQuery=I;const[fe,Ge]=function Ks(z){const I=!!z.split(/\s*,\s*/).find(h=>":self"==h);return I&&(z=z.replace(mr,"")),z=z.replace(/@\*/g,ee).replace(/@\w+/g,h=>ee+"-"+h.slice(1)).replace(/:animating/g,oe),[z,I]}(I.selector);h.currentQuerySelector=M.length?M+" "+fe:fe,br(h.collectedStyles,h.currentQuerySelector,new Map);const ft=Wt(this,Er(I.animation),h);return h.currentQuery=null,h.currentQuerySelector=M,{type:11,selector:fe,limit:F.limit||0,optional:!!F.optional,includeSelf:Ge,animation:ft,originalSelector:I.selector,options:Lo(I.options)}}visitStagger(I,h){h.currentQuery||h.errors.push(function N(){return new e.\u0275RuntimeError(3013,!1)}());const M="full"===I.timings?{duration:0,delay:0,easing:"full"}:Gt(I.timings,h.errors,!0);return{type:12,animation:Wt(this,Er(I.animation),h),timings:M,options:null}}}class ya{constructor(I){this.errors=I,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Lo(z){return z?(z=Li(z)).params&&(z.params=function Ds(z){return z?Li(z):null}(z.params)):z={},z}function kr(z,I,h){return{duration:z,delay:I,easing:h}}function _s(z,I,h,M,F,fe,Ge=null,ft=!1){return{type:1,element:z,keyframes:I,preStyleProps:h,postStyleProps:M,duration:F,delay:fe,totalTime:F+fe,easing:Ge,subTimeline:ft}}class Do{constructor(){this._map=new Map}get(I){return this._map.get(I)||[]}append(I,h){let M=this._map.get(I);M||this._map.set(I,M=[]),M.push(...h)}has(I){return this._map.has(I)}clear(){this._map.clear()}}const bo=new RegExp(":enter","g"),rr=new RegExp(":leave","g");function Fa(z,I,h,M,F,fe=new Map,Ge=new Map,ft,Et,$t=[]){return(new fl).buildKeyframes(z,I,h,M,F,fe,Ge,ft,Et,$t)}class fl{buildKeyframes(I,h,M,F,fe,Ge,ft,Et,$t,vi=[]){$t=$t||new Do;const wi=new ca(I,h,$t,F,fe,vi,[]);wi.options=Et;const sn=Et.delay?Ne(Et.delay):0;wi.currentTimeline.delayNextStep(sn),wi.currentTimeline.setStyles([Ge],null,wi.errors,Et),Wt(this,M,wi);const on=wi.timelines.filter(Gi=>Gi.containsAnimation());if(on.length&&ft.size){let Gi;for(let tn=on.length-1;tn>=0;tn--){const Sn=on[tn];if(Sn.element===h){Gi=Sn;break}}Gi&&!Gi.allowOnlyTimelineStyles()&&Gi.setStyles([ft],null,wi.errors,Et)}return on.length?on.map(Gi=>Gi.buildKeyframes()):[_s(h,[],[],[],0,sn,"",!1)]}visitTrigger(I,h){}visitState(I,h){}visitTransition(I,h){}visitAnimateChild(I,h){const M=h.subInstructions.get(h.element);if(M){const F=h.createSubContext(I.options),fe=h.currentTimeline.currentTime,Ge=this._visitSubInstructions(M,F,F.options);fe!=Ge&&h.transformIntoNewTimeline(Ge)}h.previousNode=I}visitAnimateRef(I,h){const M=h.createSubContext(I.options);M.transformIntoNewTimeline(),this._applyAnimationRefDelays([I.options,I.animation.options],h,M),this.visitReference(I.animation,M),h.transformIntoNewTimeline(M.currentTimeline.currentTime),h.previousNode=I}_applyAnimationRefDelays(I,h,M){for(const F of I){const fe=F?.delay;if(fe){const Ge="number"==typeof fe?fe:Ne(s(fe,F?.params??{},h.errors));M.delayNextStep(Ge)}}}_visitSubInstructions(I,h,M){let fe=h.currentTimeline.currentTime;const Ge=null!=M.duration?Ne(M.duration):null,ft=null!=M.delay?Ne(M.delay):null;return 0!==Ge&&I.forEach(Et=>{const $t=h.appendInstructionToTimeline(Et,Ge,ft);fe=Math.max(fe,$t.duration+$t.delay)}),fe}visitReference(I,h){h.updateOptions(I.options,!0),Wt(this,I.animation,h),h.previousNode=I}visitSequence(I,h){const M=h.subContextCount;let F=h;const fe=I.options;if(fe&&(fe.params||fe.delay)&&(F=h.createSubContext(fe),F.transformIntoNewTimeline(),null!=fe.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=hs);const Ge=Ne(fe.delay);F.delayNextStep(Ge)}I.steps.length&&(I.steps.forEach(Ge=>Wt(this,Ge,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>M&&F.transformIntoNewTimeline()),h.previousNode=I}visitGroup(I,h){const M=[];let F=h.currentTimeline.currentTime;const fe=I.options&&I.options.delay?Ne(I.options.delay):0;I.steps.forEach(Ge=>{const ft=h.createSubContext(I.options);fe&&ft.delayNextStep(fe),Wt(this,Ge,ft),F=Math.max(F,ft.currentTimeline.currentTime),M.push(ft.currentTimeline)}),M.forEach(Ge=>h.currentTimeline.mergeTimelineCollectedStyles(Ge)),h.transformIntoNewTimeline(F),h.previousNode=I}_visitTiming(I,h){if(I.dynamic){const M=I.strValue;return Gt(h.params?s(M,h.params,h.errors):M,h.errors)}return{duration:I.duration,delay:I.delay,easing:I.easing}}visitAnimate(I,h){const M=h.currentAnimateTimings=this._visitTiming(I.timings,h),F=h.currentTimeline;M.delay&&(h.incrementTime(M.delay),F.snapshotCurrentStyles());const fe=I.style;5==fe.type?this.visitKeyframes(fe,h):(h.incrementTime(M.duration),this.visitStyle(fe,h),F.applyStylesToKeyframe()),h.currentAnimateTimings=null,h.previousNode=I}visitStyle(I,h){const M=h.currentTimeline,F=h.currentAnimateTimings;!F&&M.hasCurrentStyleProperties()&&M.forwardFrame();const fe=F&&F.easing||I.easing;I.isEmptyStep?M.applyEmptyStep(fe):M.setStyles(I.styles,fe,h.errors,h.options),h.previousNode=I}visitKeyframes(I,h){const M=h.currentAnimateTimings,F=h.currentTimeline.duration,fe=M.duration,ft=h.createSubContext().currentTimeline;ft.easing=M.easing,I.styles.forEach(Et=>{ft.forwardTime((Et.offset||0)*fe),ft.setStyles(Et.styles,Et.easing,h.errors,h.options),ft.applyStylesToKeyframe()}),h.currentTimeline.mergeTimelineCollectedStyles(ft),h.transformIntoNewTimeline(F+fe),h.previousNode=I}visitQuery(I,h){const M=h.currentTimeline.currentTime,F=I.options||{},fe=F.delay?Ne(F.delay):0;fe&&(6===h.previousNode.type||0==M&&h.currentTimeline.hasCurrentStyleProperties())&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=hs);let Ge=M;const ft=h.invokeQuery(I.selector,I.originalSelector,I.limit,I.includeSelf,!!F.optional,h.errors);h.currentQueryTotal=ft.length;let Et=null;ft.forEach(($t,vi)=>{h.currentQueryIndex=vi;const wi=h.createSubContext(I.options,$t);fe&&wi.delayNextStep(fe),$t===h.element&&(Et=wi.currentTimeline),Wt(this,I.animation,wi),wi.currentTimeline.applyStylesToKeyframe(),Ge=Math.max(Ge,wi.currentTimeline.currentTime)}),h.currentQueryIndex=0,h.currentQueryTotal=0,h.transformIntoNewTimeline(Ge),Et&&(h.currentTimeline.mergeTimelineCollectedStyles(Et),h.currentTimeline.snapshotCurrentStyles()),h.previousNode=I}visitStagger(I,h){const M=h.parentContext,F=h.currentTimeline,fe=I.timings,Ge=Math.abs(fe.duration),ft=Ge*(h.currentQueryTotal-1);let Et=Ge*h.currentQueryIndex;switch(fe.duration<0?"reverse":fe.easing){case"reverse":Et=ft-Et;break;case"full":Et=M.currentStaggerTime}const vi=h.currentTimeline;Et&&vi.delayNextStep(Et);const wi=vi.currentTime;Wt(this,I.animation,h),h.previousNode=I,M.currentStaggerTime=F.currentTime-wi+(F.startTime-M.currentTimeline.startTime)}}const hs={};class ca{constructor(I,h,M,F,fe,Ge,ft,Et){this._driver=I,this.element=h,this.subInstructions=M,this._enterClassName=F,this._leaveClassName=fe,this.errors=Ge,this.timelines=ft,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hs,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Et||new Bs(this._driver,h,0),ft.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(I,h){if(!I)return;const M=I;let F=this.options;null!=M.duration&&(F.duration=Ne(M.duration)),null!=M.delay&&(F.delay=Ne(M.delay));const fe=M.params;if(fe){let Ge=F.params;Ge||(Ge=this.options.params={}),Object.keys(fe).forEach(ft=>{(!h||!Ge.hasOwnProperty(ft))&&(Ge[ft]=s(fe[ft],Ge,this.errors))})}}_copyOptions(){const I={};if(this.options){const h=this.options.params;if(h){const M=I.params={};Object.keys(h).forEach(F=>{M[F]=h[F]})}}return I}createSubContext(I=null,h,M){const F=h||this.element,fe=new ca(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,M||0));return fe.previousNode=this.previousNode,fe.currentAnimateTimings=this.currentAnimateTimings,fe.options=this._copyOptions(),fe.updateOptions(I),fe.currentQueryIndex=this.currentQueryIndex,fe.currentQueryTotal=this.currentQueryTotal,fe.parentContext=this,this.subContextCount++,fe}transformIntoNewTimeline(I){return this.previousNode=hs,this.currentTimeline=this.currentTimeline.fork(this.element,I),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(I,h,M){const F={duration:h??I.duration,delay:this.currentTimeline.currentTime+(M??0)+I.delay,easing:""},fe=new gl(this._driver,I.element,I.keyframes,I.preStyleProps,I.postStyleProps,F,I.stretchStartingKeyframe);return this.timelines.push(fe),F}incrementTime(I){this.currentTimeline.forwardTime(this.currentTimeline.duration+I)}delayNextStep(I){I>0&&this.currentTimeline.delayNextStep(I)}invokeQuery(I,h,M,F,fe,Ge){let ft=[];if(F&&ft.push(this.element),I.length>0){I=(I=I.replace(bo,"."+this._enterClassName)).replace(rr,"."+this._leaveClassName);let $t=this._driver.query(this.element,I,1!=M);0!==M&&($t=M<0?$t.slice($t.length+M,$t.length):$t.slice(0,M)),ft.push(...$t)}return!fe&&0==ft.length&&Ge.push(function de(z){return new e.\u0275RuntimeError(3014,!1)}()),ft}}class Bs{constructor(I,h,M,F){this._driver=I,this.element=h,this.startTime=M,this._elementTimelineStylesLookup=F,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(h),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(h,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(I){const h=1===this._keyframes.size&&this._pendingStyles.size;this.duration||h?(this.forwardTime(this.currentTime+I),h&&this.snapshotCurrentStyles()):this.startTime+=I}fork(I,h){return this.applyStylesToKeyframe(),new Bs(this._driver,I,h||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(I){this.applyStylesToKeyframe(),this.duration=I,this._loadKeyframe()}_updateStyle(I,h){this._localTimelineStyles.set(I,h),this._globalTimelineStyles.set(I,h),this._styleSummary.set(I,{time:this.currentTime,value:h})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(I){I&&this._previousKeyframe.set("easing",I);for(let[h,M]of this._globalTimelineStyles)this._backFill.set(h,M||Ye.l3),this._currentKeyframe.set(h,Ye.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(I,h,M,F){h&&this._previousKeyframe.set("easing",h);const fe=F&&F.params||{},Ge=function zr(z,I){const h=new Map;let M;return z.forEach(F=>{if("*"===F){M=M||I.keys();for(let fe of M)h.set(fe,Ye.l3)}else Yi(F,h)}),h}(I,this._globalTimelineStyles);for(let[ft,Et]of Ge){const $t=s(Et,fe,M);this._pendingStyles.set(ft,$t),this._localTimelineStyles.has(ft)||this._backFill.set(ft,this._globalTimelineStyles.get(ft)??Ye.l3),this._updateStyle(ft,$t)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((I,h)=>{this._currentKeyframe.set(h,I)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((I,h)=>{this._currentKeyframe.has(h)||this._currentKeyframe.set(h,I)}))}snapshotCurrentStyles(){for(let[I,h]of this._localTimelineStyles)this._pendingStyles.set(I,h),this._updateStyle(I,h)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const I=[];for(let h in this._currentKeyframe)I.push(h);return I}mergeTimelineCollectedStyles(I){I._styleSummary.forEach((h,M)=>{const F=this._styleSummary.get(M);(!F||h.time>F.time)&&this._updateStyle(M,h.value)})}buildKeyframes(){this.applyStylesToKeyframe();const I=new Set,h=new Set,M=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((ft,Et)=>{const $t=Yi(ft,new Map,this._backFill);$t.forEach((vi,wi)=>{vi===Ye.k1?I.add(wi):vi===Ye.l3&&h.add(wi)}),M||$t.set("offset",Et/this.duration),F.push($t)});const fe=I.size?m(I.values()):[],Ge=h.size?m(h.values()):[];if(M){const ft=F[0],Et=new Map(ft);ft.set("offset",0),Et.set("offset",1),F=[ft,Et]}return _s(this.element,F,fe,Ge,this.duration,this.startTime,this.easing,!1)}}class gl extends Bs{constructor(I,h,M,F,fe,Ge,ft=!1){super(I,h,Ge.delay),this.keyframes=M,this.preStyleProps=F,this.postStyleProps=fe,this._stretchStartingKeyframe=ft,this.timings={duration:Ge.duration,delay:Ge.delay,easing:Ge.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let I=this.keyframes,{delay:h,duration:M,easing:F}=this.timings;if(this._stretchStartingKeyframe&&h){const fe=[],Ge=M+h,ft=h/Ge,Et=Yi(I[0]);Et.set("offset",0),fe.push(Et);const $t=Yi(I[0]);$t.set("offset",Ba(ft)),fe.push($t);const vi=I.length-1;for(let wi=1;wi<=vi;wi++){let sn=Yi(I[wi]);const on=sn.get("offset");sn.set("offset",Ba((h+on*M)/Ge)),fe.push(sn)}M=Ge,h=0,F="",I=fe}return _s(this.element,I,this.preStyleProps,this.postStyleProps,M,h,F,!0)}}function Ba(z,I=3){const h=Math.pow(10,I-1);return Math.round(z*h)/h}class Na{}const Ca=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class da extends Na{normalizePropertyName(I,h){return Y(I)}normalizeStyleValue(I,h,M,F){let fe="";const Ge=M.toString().trim();if(Ca.has(h)&&0!==M&&"0"!==M)if("number"==typeof M)fe="px";else{const ft=M.match(/^[+-]?[\d\.]+([a-z]*)$/);ft&&0==ft[1].length&&F.push(function xi(z,I){return new e.\u0275RuntimeError(3005,!1)}())}return Ge+fe}}function Ns(z,I,h,M,F,fe,Ge,ft,Et,$t,vi,wi,sn){return{type:0,element:z,triggerName:I,isRemovalTransition:F,fromState:h,fromStyles:fe,toState:M,toStyles:Ge,timelines:ft,queriedElements:Et,preStyleProps:$t,postStyleProps:vi,totalTime:wi,errors:sn}}const Ro={};class ms{constructor(I,h,M){this._triggerName=I,this.ast=h,this._stateStyles=M}match(I,h,M,F){return function ua(z,I,h,M,F){return z.some(fe=>fe(I,h,M,F))}(this.ast.matchers,I,h,M,F)}buildStyles(I,h,M){let F=this._stateStyles.get("*");return void 0!==I&&(F=this._stateStyles.get(I?.toString())||F),F?F.buildStyles(h,M):new Map}build(I,h,M,F,fe,Ge,ft,Et,$t,vi){const wi=[],sn=this.ast.options&&this.ast.options.params||Ro,Gi=this.buildStyles(M,ft&&ft.params||Ro,wi),tn=Et&&Et.params||Ro,Sn=this.buildStyles(F,tn,wi),Vn=new Set,Lr=new Map,Ir=new Map,Wr="void"===F,vs={params:Zs(tn,sn),delay:this.ast.options?.delay},xn=vi?[]:Fa(I,h,this.ast.animation,fe,Ge,Gi,Sn,vs,$t,wi);let ln=0;if(xn.forEach(yo=>{ln=Math.max(yo.duration+yo.delay,ln)}),wi.length)return Ns(h,this._triggerName,M,F,Wr,Gi,Sn,[],[],Lr,Ir,ln,wi);xn.forEach(yo=>{const Fo=yo.element,fa=br(Lr,Fo,new Set);yo.preStyleProps.forEach(ss=>fa.add(ss));const Ys=br(Ir,Fo,new Set);yo.postStyleProps.forEach(ss=>Ys.add(ss)),Fo!==h&&Vn.add(Fo)});const Jr=m(Vn.values());return Ns(h,this._triggerName,M,F,Wr,Gi,Sn,xn,Jr,Lr,Ir,ln)}}function Zs(z,I){const h=Li(I);for(const M in z)z.hasOwnProperty(M)&&null!=z[M]&&(h[M]=z[M]);return h}class vl{constructor(I,h,M){this.styles=I,this.defaultParams=h,this.normalizer=M}buildStyles(I,h){const M=new Map,F=Li(this.defaultParams);return Object.keys(I).forEach(fe=>{const Ge=I[fe];null!==Ge&&(F[fe]=Ge)}),this.styles.styles.forEach(fe=>{"string"!=typeof fe&&fe.forEach((Ge,ft)=>{Ge&&(Ge=s(Ge,F,h));const Et=this.normalizer.normalizePropertyName(ft,h);Ge=this.normalizer.normalizeStyleValue(ft,Et,Ge,h),M.set(ft,Ge)})}),M}}class bl{constructor(I,h,M){this.name=I,this.ast=h,this._normalizer=M,this.transitionFactories=[],this.states=new Map,h.states.forEach(F=>{this.states.set(F.name,new vl(F.style,F.options&&F.options.params||{},M))}),To(this.states,"true","1"),To(this.states,"false","0"),h.transitions.forEach(F=>{this.transitionFactories.push(new ms(I,F,this.states))}),this.fallbackTransition=function Yl(z,I,h){return new ms(z,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ge,ft)=>!0],options:null,queryCount:0,depCount:0},I)}(I,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(I,h,M,F){return this.transitionFactories.find(Ge=>Ge.match(I,h,M,F))||null}matchStyles(I,h,M){return this.fallbackTransition.buildStyles(I,h,M)}}function To(z,I,h){z.has(I)?z.has(h)||z.set(h,z.get(I)):z.has(h)&&z.set(I,z.get(h))}const ha=new Do;class Us{constructor(I,h,M){this.bodyNode=I,this._driver=h,this._normalizer=M,this._animations=new Map,this._playersById=new Map,this.players=[]}register(I,h){const M=[],F=[],fe=Ko(this._driver,h,M,F);if(M.length)throw function hi(z){return new e.\u0275RuntimeError(3503,!1)}();this._animations.set(I,fe)}_buildPlayer(I,h,M){const F=I.element,fe=Ms(0,this._normalizer,0,I.keyframes,h,M);return this._driver.animate(F,fe,I.duration,I.delay,I.easing,[],!0)}create(I,h,M={}){const F=[],fe=this._animations.get(I);let Ge;const ft=new Map;if(fe?(Ge=Fa(this._driver,h,fe,So,Ho,new Map,new Map,M,ha,F),Ge.forEach(vi=>{const wi=br(ft,vi.element,new Map);vi.postStyleProps.forEach(sn=>wi.set(sn,null))})):(F.push(function Hi(){return new e.\u0275RuntimeError(3300,!1)}()),Ge=[]),F.length)throw function gn(z){return new e.\u0275RuntimeError(3504,!1)}();ft.forEach((vi,wi)=>{vi.forEach((sn,on)=>{vi.set(on,this._driver.computeStyle(wi,on,Ye.l3))})});const $t=io(Ge.map(vi=>{const wi=ft.get(vi.element);return this._buildPlayer(vi,new Map,wi)}));return this._playersById.set(I,$t),$t.onDestroy(()=>this.destroy(I)),this.players.push($t),$t}destroy(I){const h=this._getPlayer(I);h.destroy(),this._playersById.delete(I);const M=this.players.indexOf(h);M>=0&&this.players.splice(M,1)}_getPlayer(I){const h=this._playersById.get(I);if(!h)throw function vr(z){return new e.\u0275RuntimeError(3301,!1)}();return h}listen(I,h,M,F){const fe=Ao(h,"","","");return ls(this._getPlayer(I),M,fe,F),()=>{}}command(I,h,M,F){if("register"==M)return void this.register(I,F[0]);if("create"==M)return void this.create(I,h,F[0]||{});const fe=this._getPlayer(I);switch(M){case"play":fe.play();break;case"pause":fe.pause();break;case"reset":fe.reset();break;case"restart":fe.restart();break;case"finish":fe.finish();break;case"init":fe.init();break;case"setPosition":fe.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(I)}}}const Xl="ng-animate-queued",V="ng-animate-disabled",Ke=[],rt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ri="__ng_removed";class Ti{get params(){return this.options.params}constructor(I,h=""){this.namespaceId=h;const M=I&&I.hasOwnProperty("value");if(this.value=function Po(z){return z??null}(M?I.value:I),M){const fe=Li(I);delete fe.value,this.options=fe}else this.options={};this.options.params||(this.options.params={})}absorbOptions(I){const h=I.params;if(h){const M=this.options.params;Object.keys(h).forEach(F=>{null==M[F]&&(M[F]=h[F])})}}}const Oi="void",vn=new Ti(Oi);class pr{constructor(I,h,M){this.id=I,this.hostElement=h,this._engine=M,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+I,os(h,this._hostClassName)}listen(I,h,M,F){if(!this._triggers.has(h))throw function Pi(z,I){return new e.\u0275RuntimeError(3302,!1)}();if(null==M||0==M.length)throw function Qi(z){return new e.\u0275RuntimeError(3303,!1)}();if(!function xa(z){return"start"==z||"done"==z}(M))throw function sr(z,I){return new e.\u0275RuntimeError(3400,!1)}();const fe=br(this._elementListeners,I,[]),Ge={name:h,phase:M,callback:F};fe.push(Ge);const ft=br(this._engine.statesByElement,I,new Map);return ft.has(h)||(os(I,Xo),os(I,Xo+"-"+h),ft.set(h,vn)),()=>{this._engine.afterFlush(()=>{const Et=fe.indexOf(Ge);Et>=0&&fe.splice(Et,1),this._triggers.has(h)||ft.delete(h)})}}register(I,h){return!this._triggers.has(I)&&(this._triggers.set(I,h),!0)}_getTrigger(I){const h=this._triggers.get(I);if(!h)throw function cr(z){return new e.\u0275RuntimeError(3401,!1)}();return h}trigger(I,h,M,F=!0){const fe=this._getTrigger(h),Ge=new Go(this.id,h,I);let ft=this._engine.statesByElement.get(I);ft||(os(I,Xo),os(I,Xo+"-"+h),this._engine.statesByElement.set(I,ft=new Map));let Et=ft.get(h);const $t=new Ti(M,this.id);if(!(M&&M.hasOwnProperty("value"))&&Et&&$t.absorbOptions(Et.options),ft.set(h,$t),Et||(Et=vn),$t.value!==Oi&&Et.value===$t.value){if(!function sd(z,I){const h=Object.keys(z),M=Object.keys(I);if(h.length!=M.length)return!1;for(let F=0;F<h.length;F++){const fe=h[F];if(!I.hasOwnProperty(fe)||z[fe]!==I[fe])return!1}return!0}(Et.params,$t.params)){const tn=[],Sn=fe.matchStyles(Et.value,Et.params,tn),Vn=fe.matchStyles($t.value,$t.params,tn);tn.length?this._engine.reportError(tn):this._engine.afterFlush(()=>{Or(I,Sn),In(I,Vn)})}return}const sn=br(this._engine.playersByElement,I,[]);sn.forEach(tn=>{tn.namespaceId==this.id&&tn.triggerName==h&&tn.queued&&tn.destroy()});let on=fe.matchTransition(Et.value,$t.value,I,$t.params),Gi=!1;if(!on){if(!F)return;on=fe.fallbackTransition,Gi=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:I,triggerName:h,transition:on,fromState:Et,toState:$t,player:Ge,isFallbackTransition:Gi}),Gi||(os(I,Xl),Ge.onStart(()=>{Ea(I,Xl)})),Ge.onDone(()=>{let tn=this.players.indexOf(Ge);tn>=0&&this.players.splice(tn,1);const Sn=this._engine.playersByElement.get(I);if(Sn){let Vn=Sn.indexOf(Ge);Vn>=0&&Sn.splice(Vn,1)}}),this.players.push(Ge),sn.push(Ge),Ge}deregister(I){this._triggers.delete(I),this._engine.statesByElement.forEach(h=>h.delete(I)),this._elementListeners.forEach((h,M)=>{this._elementListeners.set(M,h.filter(F=>F.name!=I))})}clearElementCache(I){this._engine.statesByElement.delete(I),this._elementListeners.delete(I);const h=this._engine.playersByElement.get(I);h&&(h.forEach(M=>M.destroy()),this._engine.playersByElement.delete(I))}_signalRemovalForInnerTriggers(I,h){const M=this._engine.driver.query(I,ee,!0);M.forEach(F=>{if(F[ri])return;const fe=this._engine.fetchNamespacesByElement(F);fe.size?fe.forEach(Ge=>Ge.triggerLeaveAnimation(F,h,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>M.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(I,h,M,F){const fe=this._engine.statesByElement.get(I),Ge=new Map;if(fe){const ft=[];if(fe.forEach((Et,$t)=>{if(Ge.set($t,Et.value),this._triggers.has($t)){const vi=this.trigger(I,$t,Oi,F);vi&&ft.push(vi)}}),ft.length)return this._engine.markElementAsRemoved(this.id,I,!0,h,Ge),M&&io(ft).onDone(()=>this._engine.processLeaveNode(I)),!0}return!1}prepareLeaveAnimationListeners(I){const h=this._elementListeners.get(I),M=this._engine.statesByElement.get(I);if(h&&M){const F=new Set;h.forEach(fe=>{const Ge=fe.name;if(F.has(Ge))return;F.add(Ge);const Et=this._triggers.get(Ge).fallbackTransition,$t=M.get(Ge)||vn,vi=new Ti(Oi),wi=new Go(this.id,Ge,I);this._engine.totalQueuedPlayers++,this._queue.push({element:I,triggerName:Ge,transition:Et,fromState:$t,toState:vi,player:wi,isFallbackTransition:!0})})}}removeNode(I,h){const M=this._engine;if(I.childElementCount&&this._signalRemovalForInnerTriggers(I,h),this.triggerLeaveAnimation(I,h,!0))return;let F=!1;if(M.totalAnimations){const fe=M.players.length?M.playersByQueriedElement.get(I):[];if(fe&&fe.length)F=!0;else{let Ge=I;for(;Ge=Ge.parentNode;)if(M.statesByElement.get(Ge)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(I),F)M.markElementAsRemoved(this.id,I,!1,h);else{const fe=I[ri];(!fe||fe===rt)&&(M.afterFlush(()=>this.clearElementCache(I)),M.destroyInnerAnimations(I),M._onRemovalComplete(I,h))}}insertNode(I,h){os(I,this._hostClassName)}drainQueuedTransitions(I){const h=[];return this._queue.forEach(M=>{const F=M.player;if(F.destroyed)return;const fe=M.element,Ge=this._elementListeners.get(fe);Ge&&Ge.forEach(ft=>{if(ft.name==M.triggerName){const Et=Ao(fe,M.triggerName,M.fromState.value,M.toState.value);Et._data=I,ls(M.player,ft.phase,Et,ft.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):h.push(M)}),this._queue=[],h.sort((M,F)=>{const fe=M.transition.ast.depCount,Ge=F.transition.ast.depCount;return 0==fe||0==Ge?fe-Ge:this._engine.driver.containsElement(M.element,F.element)?1:-1})}destroy(I){this.players.forEach(h=>h.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,I)}elementContainsData(I){let h=!1;return this._elementListeners.has(I)&&(h=!0),h=!!this._queue.find(M=>M.element===I)||h,h}}class ps{_onRemovalComplete(I,h){this.onRemovalComplete(I,h)}constructor(I,h,M){this.bodyNode=I,this.driver=h,this._normalizer=M,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(F,fe)=>{}}get queuedPlayers(){const I=[];return this._namespaceList.forEach(h=>{h.players.forEach(M=>{M.queued&&I.push(M)})}),I}createNamespace(I,h){const M=new pr(I,h,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,h)?this._balanceNamespaceList(M,h):(this.newHostElements.set(h,M),this.collectEnterElement(h)),this._namespaceLookup[I]=M}_balanceNamespaceList(I,h){const M=this._namespaceList,F=this.namespacesByHostElement;if(M.length-1>=0){let Ge=!1,ft=this.driver.getParentElement(h);for(;ft;){const Et=F.get(ft);if(Et){const $t=M.indexOf(Et);M.splice($t+1,0,I),Ge=!0;break}ft=this.driver.getParentElement(ft)}Ge||M.unshift(I)}else M.push(I);return F.set(h,I),I}register(I,h){let M=this._namespaceLookup[I];return M||(M=this.createNamespace(I,h)),M}registerTrigger(I,h,M){let F=this._namespaceLookup[I];F&&F.register(h,M)&&this.totalAnimations++}destroy(I,h){if(!I)return;const M=this._fetchNamespace(I);this.afterFlush(()=>{this.namespacesByHostElement.delete(M.hostElement),delete this._namespaceLookup[I];const F=this._namespaceList.indexOf(M);F>=0&&this._namespaceList.splice(F,1)}),this.afterFlushAnimationsDone(()=>M.destroy(h))}_fetchNamespace(I){return this._namespaceLookup[I]}fetchNamespacesByElement(I){const h=new Set,M=this.statesByElement.get(I);if(M)for(let F of M.values())if(F.namespaceId){const fe=this._fetchNamespace(F.namespaceId);fe&&h.add(fe)}return h}trigger(I,h,M,F){if(ma(h)){const fe=this._fetchNamespace(I);if(fe)return fe.trigger(h,M,F),!0}return!1}insertNode(I,h,M,F){if(!ma(h))return;const fe=h[ri];if(fe&&fe.setForRemoval){fe.setForRemoval=!1,fe.setForMove=!0;const Ge=this.collectedLeaveElements.indexOf(h);Ge>=0&&this.collectedLeaveElements.splice(Ge,1)}if(I){const Ge=this._fetchNamespace(I);Ge&&Ge.insertNode(h,M)}F&&this.collectEnterElement(h)}collectEnterElement(I){this.collectedEnterElements.push(I)}markElementAsDisabled(I,h){h?this.disabledNodes.has(I)||(this.disabledNodes.add(I),os(I,V)):this.disabledNodes.has(I)&&(this.disabledNodes.delete(I),Ea(I,V))}removeNode(I,h,M,F){if(ma(h)){const fe=I?this._fetchNamespace(I):null;if(fe?fe.removeNode(h,F):this.markElementAsRemoved(I,h,!1,F),M){const Ge=this.namespacesByHostElement.get(h);Ge&&Ge.id!==I&&Ge.removeNode(h,F)}}else this._onRemovalComplete(h,F)}markElementAsRemoved(I,h,M,F,fe){this.collectedLeaveElements.push(h),h[ri]={namespaceId:I,setForRemoval:F,hasAnimation:M,removedBeforeQueried:!1,previousTriggersValues:fe}}listen(I,h,M,F,fe){return ma(h)?this._fetchNamespace(I).listen(h,M,F,fe):()=>{}}_buildInstruction(I,h,M,F,fe){return I.transition.build(this.driver,I.element,I.fromState.value,I.toState.value,M,F,I.fromState.options,I.toState.options,h,fe)}destroyInnerAnimations(I){let h=this.driver.query(I,ee,!0);h.forEach(M=>this.destroyActiveAnimationsForElement(M)),0!=this.playersByQueriedElement.size&&(h=this.driver.query(I,oe,!0),h.forEach(M=>this.finishActiveQueriedAnimationOnElement(M)))}destroyActiveAnimationsForElement(I){const h=this.playersByElement.get(I);h&&h.forEach(M=>{M.queued?M.markedForDestroy=!0:M.destroy()})}finishActiveQueriedAnimationOnElement(I){const h=this.playersByQueriedElement.get(I);h&&h.forEach(M=>M.finish())}whenRenderingDone(){return new Promise(I=>{if(this.players.length)return io(this.players).onDone(()=>I());I()})}processLeaveNode(I){const h=I[ri];if(h&&h.setForRemoval){if(I[ri]=rt,h.namespaceId){this.destroyInnerAnimations(I);const M=this._fetchNamespace(h.namespaceId);M&&M.clearElementCache(I)}this._onRemovalComplete(I,h.setForRemoval)}I.classList?.contains(V)&&this.markElementAsDisabled(I,!1),this.driver.query(I,".ng-animate-disabled",!0).forEach(M=>{this.markElementAsDisabled(M,!1)})}flush(I=-1){let h=[];if(this.newHostElements.size&&(this.newHostElements.forEach((M,F)=>this._balanceNamespaceList(M,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let M=0;M<this.collectedEnterElements.length;M++)os(this.collectedEnterElements[M],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const M=[];try{h=this._flushAnimations(M,I)}finally{for(let F=0;F<M.length;F++)M[F]()}}else for(let M=0;M<this.collectedLeaveElements.length;M++)this.processLeaveNode(this.collectedLeaveElements[M]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(M=>M()),this._flushFns=[],this._whenQuietFns.length){const M=this._whenQuietFns;this._whenQuietFns=[],h.length?io(h).onDone(()=>{M.forEach(F=>F())}):M.forEach(F=>F())}}reportError(I){throw function _n(z){return new e.\u0275RuntimeError(3402,!1)}()}_flushAnimations(I,h){const M=new Do,F=[],fe=new Map,Ge=[],ft=new Map,Et=new Map,$t=new Map,vi=new Set;this.disabledNodes.forEach(Ui=>{vi.add(Ui);const Zi=this.driver.query(Ui,".ng-animate-queued",!0);for(let nn=0;nn<Zi.length;nn++)vi.add(Zi[nn])});const wi=this.bodyNode,sn=Array.from(this.statesByElement.keys()),on=pa(sn,this.collectedEnterElements),Gi=new Map;let tn=0;on.forEach((Ui,Zi)=>{const nn=So+tn++;Gi.set(Zi,nn),Ui.forEach(kn=>os(kn,nn))});const Sn=[],Vn=new Set,Lr=new Set;for(let Ui=0;Ui<this.collectedLeaveElements.length;Ui++){const Zi=this.collectedLeaveElements[Ui],nn=Zi[ri];nn&&nn.setForRemoval&&(Sn.push(Zi),Vn.add(Zi),nn.hasAnimation?this.driver.query(Zi,".ng-star-inserted",!0).forEach(kn=>Vn.add(kn)):Lr.add(Zi))}const Ir=new Map,Wr=pa(sn,Array.from(Vn));Wr.forEach((Ui,Zi)=>{const nn=Ho+tn++;Ir.set(Zi,nn),Ui.forEach(kn=>os(kn,nn))}),I.push(()=>{on.forEach((Ui,Zi)=>{const nn=Gi.get(Zi);Ui.forEach(kn=>Ea(kn,nn))}),Wr.forEach((Ui,Zi)=>{const nn=Ir.get(Zi);Ui.forEach(kn=>Ea(kn,nn))}),Sn.forEach(Ui=>{this.processLeaveNode(Ui)})});const vs=[],xn=[];for(let Ui=this._namespaceList.length-1;Ui>=0;Ui--)this._namespaceList[Ui].drainQueuedTransitions(h).forEach(nn=>{const kn=nn.player,ro=nn.element;if(vs.push(kn),this.collectedEnterElements.length){const Co=ro[ri];if(Co&&Co.setForMove){if(Co.previousTriggersValues&&Co.previousTriggersValues.has(nn.triggerName)){const qo=Co.previousTriggersValues.get(nn.triggerName),es=this.statesByElement.get(nn.element);if(es&&es.has(nn.triggerName)){const wa=es.get(nn.triggerName);wa.value=qo,es.set(nn.triggerName,wa)}}return void kn.destroy()}}const as=!wi||!this.driver.containsElement(wi,ro),Zo=Ir.get(ro),bs=Gi.get(ro),Sr=this._buildInstruction(nn,M,bs,Zo,as);if(Sr.errors&&Sr.errors.length)return void xn.push(Sr);if(as)return kn.onStart(()=>Or(ro,Sr.fromStyles)),kn.onDestroy(()=>In(ro,Sr.toStyles)),void F.push(kn);if(nn.isFallbackTransition)return kn.onStart(()=>Or(ro,Sr.fromStyles)),kn.onDestroy(()=>In(ro,Sr.toStyles)),void F.push(kn);const mc=[];Sr.timelines.forEach(Co=>{Co.stretchStartingKeyframe=!0,this.disabledNodes.has(Co.element)||mc.push(Co)}),Sr.timelines=mc,M.append(ro,Sr.timelines),Ge.push({instruction:Sr,player:kn,element:ro}),Sr.queriedElements.forEach(Co=>br(ft,Co,[]).push(kn)),Sr.preStyleProps.forEach((Co,qo)=>{if(Co.size){let es=Et.get(qo);es||Et.set(qo,es=new Set),Co.forEach((wa,Sl)=>es.add(Sl))}}),Sr.postStyleProps.forEach((Co,qo)=>{let es=$t.get(qo);es||$t.set(qo,es=new Set),Co.forEach((wa,Sl)=>es.add(Sl))})});if(xn.length){const Ui=[];xn.forEach(Zi=>{Ui.push(function Io(z,I){return new e.\u0275RuntimeError(3505,!1)}())}),vs.forEach(Zi=>Zi.destroy()),this.reportError(Ui)}const ln=new Map,Jr=new Map;Ge.forEach(Ui=>{const Zi=Ui.element;M.has(Zi)&&(Jr.set(Zi,Zi),this._beforeAnimationBuild(Ui.player.namespaceId,Ui.instruction,ln))}),F.forEach(Ui=>{const Zi=Ui.element;this._getPreviousPlayers(Zi,!1,Ui.namespaceId,Ui.triggerName,null).forEach(kn=>{br(ln,Zi,[]).push(kn),kn.destroy()})});const yo=Sn.filter(Ui=>ec(Ui,Et,$t)),Fo=new Map;Qs(Fo,this.driver,Lr,$t,Ye.l3).forEach(Ui=>{ec(Ui,Et,$t)&&yo.push(Ui)});const Ys=new Map;on.forEach((Ui,Zi)=>{Qs(Ys,this.driver,new Set(Ui),Et,Ye.k1)}),yo.forEach(Ui=>{const Zi=Fo.get(Ui),nn=Ys.get(Ui);Fo.set(Ui,new Map([...Array.from(Zi?.entries()??[]),...Array.from(nn?.entries()??[])]))});const ss=[],uc=[],hc={};Ge.forEach(Ui=>{const{element:Zi,player:nn,instruction:kn}=Ui;if(M.has(Zi)){if(vi.has(Zi))return nn.onDestroy(()=>In(Zi,kn.toStyles)),nn.disabled=!0,nn.overrideTotalTime(kn.totalTime),void F.push(nn);let ro=hc;if(Jr.size>1){let Zo=Zi;const bs=[];for(;Zo=Zo.parentNode;){const Sr=Jr.get(Zo);if(Sr){ro=Sr;break}bs.push(Zo)}bs.forEach(Sr=>Jr.set(Sr,ro))}const as=this._buildAnimation(nn.namespaceId,kn,ln,fe,Ys,Fo);if(nn.setRealPlayer(as),ro===hc)ss.push(nn);else{const Zo=this.playersByElement.get(ro);Zo&&Zo.length&&(nn.parentPlayer=io(Zo)),F.push(nn)}}else Or(Zi,kn.fromStyles),nn.onDestroy(()=>In(Zi,kn.toStyles)),uc.push(nn),vi.has(Zi)&&F.push(nn)}),uc.forEach(Ui=>{const Zi=fe.get(Ui.element);if(Zi&&Zi.length){const nn=io(Zi);Ui.setRealPlayer(nn)}}),F.forEach(Ui=>{Ui.parentPlayer?Ui.syncPlayerEvents(Ui.parentPlayer):Ui.destroy()});for(let Ui=0;Ui<Sn.length;Ui++){const Zi=Sn[Ui],nn=Zi[ri];if(Ea(Zi,Ho),nn&&nn.hasAnimation)continue;let kn=[];if(ft.size){let as=ft.get(Zi);as&&as.length&&kn.push(...as);let Zo=this.driver.query(Zi,oe,!0);for(let bs=0;bs<Zo.length;bs++){let Sr=ft.get(Zo[bs]);Sr&&Sr.length&&kn.push(...Sr)}}const ro=kn.filter(as=>!as.destroyed);ro.length?Jl(this,Zi,ro):this.processLeaveNode(Zi)}return Sn.length=0,ss.forEach(Ui=>{this.players.push(Ui),Ui.onDone(()=>{Ui.destroy();const Zi=this.players.indexOf(Ui);this.players.splice(Zi,1)}),Ui.play()}),ss}elementContainsData(I,h){let M=!1;const F=h[ri];return F&&F.setForRemoval&&(M=!0),this.playersByElement.has(h)&&(M=!0),this.playersByQueriedElement.has(h)&&(M=!0),this.statesByElement.has(h)&&(M=!0),this._fetchNamespace(I).elementContainsData(h)||M}afterFlush(I){this._flushFns.push(I)}afterFlushAnimationsDone(I){this._whenQuietFns.push(I)}_getPreviousPlayers(I,h,M,F,fe){let Ge=[];if(h){const ft=this.playersByQueriedElement.get(I);ft&&(Ge=ft)}else{const ft=this.playersByElement.get(I);if(ft){const Et=!fe||fe==Oi;ft.forEach($t=>{$t.queued||!Et&&$t.triggerName!=F||Ge.push($t)})}}return(M||F)&&(Ge=Ge.filter(ft=>!(M&&M!=ft.namespaceId||F&&F!=ft.triggerName))),Ge}_beforeAnimationBuild(I,h,M){const fe=h.element,Ge=h.isRemovalTransition?void 0:I,ft=h.isRemovalTransition?void 0:h.triggerName;for(const Et of h.timelines){const $t=Et.element,vi=$t!==fe,wi=br(M,$t,[]);this._getPreviousPlayers($t,vi,Ge,ft,h.toState).forEach(on=>{const Gi=on.getRealPlayer();Gi.beforeDestroy&&Gi.beforeDestroy(),on.destroy(),wi.push(on)})}Or(fe,h.fromStyles)}_buildAnimation(I,h,M,F,fe,Ge){const ft=h.triggerName,Et=h.element,$t=[],vi=new Set,wi=new Set,sn=h.timelines.map(Gi=>{const tn=Gi.element;vi.add(tn);const Sn=tn[ri];if(Sn&&Sn.removedBeforeQueried)return new Ye.ZN(Gi.duration,Gi.delay);const Vn=tn!==Et,Lr=function ql(z){const I=[];return od(z,I),I}((M.get(tn)||Ke).map(ln=>ln.getRealPlayer())).filter(ln=>!!ln.element&&ln.element===tn),Ir=fe.get(tn),Wr=Ge.get(tn),vs=Ms(0,this._normalizer,0,Gi.keyframes,Ir,Wr),xn=this._buildPlayer(Gi,vs,Lr);if(Gi.subTimeline&&F&&wi.add(tn),Vn){const ln=new Go(I,ft,tn);ln.setRealPlayer(xn),$t.push(ln)}return xn});$t.forEach(Gi=>{br(this.playersByQueriedElement,Gi.element,[]).push(Gi),Gi.onDone(()=>function Jo(z,I,h){let M=z.get(I);if(M){if(M.length){const F=M.indexOf(h);M.splice(F,1)}0==M.length&&z.delete(I)}return M}(this.playersByQueriedElement,Gi.element,Gi))}),vi.forEach(Gi=>os(Gi,Se));const on=io(sn);return on.onDestroy(()=>{vi.forEach(Gi=>Ea(Gi,Se)),In(Et,h.toStyles)}),wi.forEach(Gi=>{br(F,Gi,[]).push(on)}),on}_buildPlayer(I,h,M){return h.length>0?this.driver.animate(I.element,h,I.duration,I.delay,I.easing,M):new Ye.ZN(I.duration,I.delay)}}class Go{constructor(I,h,M){this.namespaceId=I,this.triggerName=h,this.element=M,this._player=new Ye.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(I){this._containsRealPlayer||(this._player=I,this._queuedCallbacks.forEach((h,M)=>{h.forEach(F=>ls(I,M,void 0,F))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(I.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(I){this.totalTime=I}syncPlayerEvents(I){const h=this._player;h.triggerCallback&&I.onStart(()=>h.triggerCallback("start")),I.onDone(()=>this.finish()),I.onDestroy(()=>this.destroy())}_queueEvent(I,h){br(this._queuedCallbacks,I,[]).push(h)}onDone(I){this.queued&&this._queueEvent("done",I),this._player.onDone(I)}onStart(I){this.queued&&this._queueEvent("start",I),this._player.onStart(I)}onDestroy(I){this.queued&&this._queueEvent("destroy",I),this._player.onDestroy(I)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(I){this.queued||this._player.setPosition(I)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(I){const h=this._player;h.triggerCallback&&h.triggerCallback(I)}}function ma(z){return z&&1===z.nodeType}function Ma(z,I){const h=z.style.display;return z.style.display=I??"none",h}function Qs(z,I,h,M,F){const fe=[];h.forEach(Et=>fe.push(Ma(Et)));const Ge=[];M.forEach((Et,$t)=>{const vi=new Map;Et.forEach(wi=>{const sn=I.computeStyle($t,wi,F);vi.set(wi,sn),(!sn||0==sn.length)&&($t[ri]=Vt,Ge.push($t))}),z.set($t,vi)});let ft=0;return h.forEach(Et=>Ma(Et,fe[ft++])),Ge}function pa(z,I){const h=new Map;if(z.forEach(ft=>h.set(ft,[])),0==I.length)return h;const M=1,F=new Set(I),fe=new Map;function Ge(ft){if(!ft)return M;let Et=fe.get(ft);if(Et)return Et;const $t=ft.parentNode;return Et=h.has($t)?$t:F.has($t)?M:Ge($t),fe.set(ft,Et),Et}return I.forEach(ft=>{const Et=Ge(ft);Et!==M&&h.get(Et).push(ft)}),h}function os(z,I){z.classList?.add(I)}function Ea(z,I){z.classList?.remove(I)}function Jl(z,I,h){io(h).onDone(()=>z.processLeaveNode(I))}function od(z,I){for(let h=0;h<z.length;h++){const M=z[h];M instanceof Ye.ZE?od(M.players,I):I.push(M)}}function ec(z,I,h){const M=h.get(z);if(!M)return!1;let F=I.get(z);return F?M.forEach(fe=>F.add(fe)):I.set(z,M),h.delete(z),!0}class Ua{constructor(I,h,M){this.bodyNode=I,this._driver=h,this._normalizer=M,this._triggerCache={},this.onRemovalComplete=(F,fe)=>{},this._transitionEngine=new ps(I,h,M),this._timelineEngine=new Us(I,h,M),this._transitionEngine.onRemovalComplete=(F,fe)=>this.onRemovalComplete(F,fe)}registerTrigger(I,h,M,F,fe){const Ge=I+"-"+F;let ft=this._triggerCache[Ge];if(!ft){const Et=[],$t=[],vi=Ko(this._driver,fe,Et,$t);if(Et.length)throw function ki(z,I){return new e.\u0275RuntimeError(3404,!1)}();ft=function Ql(z,I,h){return new bl(z,I,h)}(F,vi,this._normalizer),this._triggerCache[Ge]=ft}this._transitionEngine.registerTrigger(h,F,ft)}register(I,h){this._transitionEngine.register(I,h)}destroy(I,h){this._transitionEngine.destroy(I,h)}onInsert(I,h,M,F){this._transitionEngine.insertNode(I,h,M,F)}onRemove(I,h,M,F){this._transitionEngine.removeNode(I,h,F||!1,M)}disableAnimations(I,h){this._transitionEngine.markElementAsDisabled(I,h)}process(I,h,M,F){if("@"==M.charAt(0)){const[fe,Ge]=vo(M);this._timelineEngine.command(fe,h,Ge,F)}else this._transitionEngine.trigger(I,h,M,F)}listen(I,h,M,F,fe){if("@"==M.charAt(0)){const[Ge,ft]=vo(M);return this._timelineEngine.listen(Ge,h,ft,fe)}return this._transitionEngine.listen(I,h,M,F,fe)}flush(I=-1){this._transitionEngine.flush(I)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let tc=(()=>{class z{constructor(h,M,F){this._element=h,this._startStyles=M,this._endStyles=F,this._state=0;let fe=z.initialStylesByElement.get(h);fe||z.initialStylesByElement.set(h,fe=new Map),this._initialStyles=fe}start(){this._state<1&&(this._startStyles&&In(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(In(this._element,this._initialStyles),this._endStyles&&(In(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(z.initialStylesByElement.delete(this._element),this._startStyles&&(Or(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Or(this._element,this._endStyles),this._endStyles=null),In(this._element,this._initialStyles),this._state=3)}}return z.initialStylesByElement=new WeakMap,z})();function yl(z){let I=null;return z.forEach((h,M)=>{(function Cl(z){return"display"===z||"position"===z})(M)&&(I=I||new Map,I.set(M,h))}),I}class ad{constructor(I,h,M,F){this.element=I,this.keyframes=h,this.options=M,this._specialStyles=F,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=M.duration,this._delay=M.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(I=>I()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const I=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,I,this.options),this._finalKeyframe=I.length?I[I.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(I){const h=[];return I.forEach(M=>{h.push(Object.fromEntries(M))}),h}_triggerWebAnimation(I,h,M){return I.animate(this._convertKeyframesToObject(h),M)}onStart(I){this._originalOnStartFns.push(I),this._onStartFns.push(I)}onDone(I){this._originalOnDoneFns.push(I),this._onDoneFns.push(I)}onDestroy(I){this._onDestroyFns.push(I)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(I=>I()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(I=>I()),this._onDestroyFns=[])}setPosition(I){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=I*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const I=new Map;this.hasStarted()&&this._finalKeyframe.forEach((M,F)=>{"offset"!==F&&I.set(F,this._finished?M:Yt(this.element,F))}),this.currentSnapshot=I}triggerCallback(I){const h="start"===I?this._onStartFns:this._onDoneFns;h.forEach(M=>M()),h.length=0}}class ic{validateStyleProperty(I){return!0}validateAnimatableStyleProperty(I){return!0}matchesElement(I,h){return!1}containsElement(I,h){return Yr(I,h)}getParentElement(I){return Es(I)}query(I,h,M){return Jn(I,h,M)}computeStyle(I,h,M){return window.getComputedStyle(I)[h]}animate(I,h,M,F,fe,Ge=[]){const Et={duration:M,delay:F,fill:0==F?"both":"forwards"};fe&&(Et.easing=fe);const $t=new Map,vi=Ge.filter(on=>on instanceof ad);(function Xe(z,I){return 0===z||0===I})(M,F)&&vi.forEach(on=>{on.currentSnapshot.forEach((Gi,tn)=>$t.set(tn,Gi))});let wi=function wn(z){return z.length?z[0]instanceof Map?z:z.map(I=>En(I)):[]}(h).map(on=>Yi(on));wi=function Tt(z,I,h){if(h.size&&I.length){let M=I[0],F=[];if(h.forEach((fe,Ge)=>{M.has(Ge)||F.push(Ge),M.set(Ge,fe)}),F.length)for(let fe=1;fe<I.length;fe++){let Ge=I[fe];F.forEach(ft=>Ge.set(ft,Yt(z,ft)))}}return I}(I,wi,$t);const sn=function ja(z,I){let h=null,M=null;return Array.isArray(I)&&I.length?(h=yl(I[0]),I.length>1&&(M=yl(I[I.length-1]))):I instanceof Map&&(h=yl(I)),h||M?new tc(z,h,M):null}(I,wi);return new ad(I,wi,Et,sn)}}let ld=(()=>{class z extends Ye._j{constructor(h,M){super(),this._nextAnimationId=0,this._renderer=h.createRenderer(M.body,{id:"0",encapsulation:e.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(h){const M=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(h)?(0,Ye.vP)(h):h;return Va(this._renderer,null,M,"register",[F]),new nc(M,this._renderer)}}return z.\u0275fac=function(h){return new(h||z)(e.\u0275\u0275inject(e.RendererFactory2),e.\u0275\u0275inject(f.DOCUMENT))},z.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac}),z})();class nc extends Ye.LC{constructor(I,h){super(),this._id=I,this._renderer=h}create(I,h){return new rc(this._id,I,h||{},this._renderer)}}class rc{constructor(I,h,M,F){this.id=I,this.element=h,this._renderer=F,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",M)}_listen(I,h){return this._renderer.listen(this.element,`@@${this.id}:${I}`,h)}_command(I,...h){return Va(this._renderer,this.element,this.id,I,h)}onDone(I){this._listen("done",I)}onStart(I){this._listen("start",I)}onDestroy(I){this._listen("destroy",I)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(I){this._command("setPosition",I)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Va(z,I,h,M,F){return z.setProperty(I,`@@${h}:${M}`,F)}const oc="@.disabled";let xl=(()=>{class z{constructor(h,M,F){this.delegate=h,this.engine=M,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),M.onRemovalComplete=(fe,Ge)=>{const ft=Ge?.parentNode(fe);ft&&Ge.removeChild(ft,fe)}}createRenderer(h,M){const fe=this.delegate.createRenderer(h,M);if(!(h&&M&&M.data&&M.data.animation)){let vi=this._rendererCache.get(fe);return vi||(vi=new sc("",fe,this.engine,()=>this._rendererCache.delete(fe)),this._rendererCache.set(fe,vi)),vi}const Ge=M.id,ft=M.id+"-"+this._currentId;this._currentId++,this.engine.register(ft,h);const Et=vi=>{Array.isArray(vi)?vi.forEach(Et):this.engine.registerTrigger(Ge,ft,h,vi.name,vi)};return M.data.animation.forEach(Et),new cd(this,ft,fe,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(h,M,F){h>=0&&h<this._microtaskId?this._zone.run(()=>M(F)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(fe=>{const[Ge,ft]=fe;Ge(ft)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([M,F]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return z.\u0275fac=function(h){return new(h||z)(e.\u0275\u0275inject(e.RendererFactory2),e.\u0275\u0275inject(Ua),e.\u0275\u0275inject(e.NgZone))},z.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac}),z})();class sc{constructor(I,h,M,F){this.namespaceId=I,this.delegate=h,this.engine=M,this._onDestroy=F,this.destroyNode=this.delegate.destroyNode?fe=>h.destroyNode(fe):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(I,h){return this.delegate.createElement(I,h)}createComment(I){return this.delegate.createComment(I)}createText(I){return this.delegate.createText(I)}appendChild(I,h){this.delegate.appendChild(I,h),this.engine.onInsert(this.namespaceId,h,I,!1)}insertBefore(I,h,M,F=!0){this.delegate.insertBefore(I,h,M),this.engine.onInsert(this.namespaceId,h,I,F)}removeChild(I,h,M){this.engine.onRemove(this.namespaceId,h,this.delegate,M)}selectRootElement(I,h){return this.delegate.selectRootElement(I,h)}parentNode(I){return this.delegate.parentNode(I)}nextSibling(I){return this.delegate.nextSibling(I)}setAttribute(I,h,M,F){this.delegate.setAttribute(I,h,M,F)}removeAttribute(I,h,M){this.delegate.removeAttribute(I,h,M)}addClass(I,h){this.delegate.addClass(I,h)}removeClass(I,h){this.delegate.removeClass(I,h)}setStyle(I,h,M,F){this.delegate.setStyle(I,h,M,F)}removeStyle(I,h,M){this.delegate.removeStyle(I,h,M)}setProperty(I,h,M){"@"==h.charAt(0)&&h==oc?this.disableAnimations(I,!!M):this.delegate.setProperty(I,h,M)}setValue(I,h){this.delegate.setValue(I,h)}listen(I,h,M){return this.delegate.listen(I,h,M)}disableAnimations(I,h){this.engine.disableAnimations(I,h)}}class cd extends sc{constructor(I,h,M,F,fe){super(h,M,F,fe),this.factory=I,this.namespaceId=h}setProperty(I,h,M){"@"==h.charAt(0)?"."==h.charAt(1)&&h==oc?this.disableAnimations(I,M=void 0===M||!!M):this.engine.process(this.namespaceId,I,h.slice(1),M):this.delegate.setProperty(I,h,M)}listen(I,h,M){if("@"==h.charAt(0)){const F=function Hh(z){switch(z){case"body":return document.body;case"document":return document;case"window":return window;default:return z}}(I);let fe=h.slice(1),Ge="";return"@"!=fe.charAt(0)&&([fe,Ge]=function $h(z){const I=z.indexOf(".");return[z.substring(0,I),z.slice(I+1)]}(fe)),this.engine.listen(this.namespaceId,F,fe,Ge,ft=>{this.factory.scheduleListenerCallback(ft._data||-1,M,ft)})}return this.delegate.listen(I,h,M)}}const Wa=[{provide:Ye._j,useClass:ld},{provide:Na,useFactory:function dd(){return new da}},{provide:Ua,useClass:(()=>{class z extends Ua{constructor(h,M,F,fe){super(h.body,M,F)}ngOnDestroy(){this.flush()}}return z.\u0275fac=function(h){return new(h||z)(e.\u0275\u0275inject(f.DOCUMENT),e.\u0275\u0275inject(gs),e.\u0275\u0275inject(Na),e.\u0275\u0275inject(e.ApplicationRef))},z.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac}),z})()},{provide:e.RendererFactory2,useFactory:function ac(z,I,h){return new xl(z,I,h)},deps:[n.se,Ua,e.NgZone]}],Ha=[{provide:gs,useFactory:()=>new ic},{provide:e.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...Wa],Ml=[{provide:gs,useClass:Ss},{provide:e.ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},...Wa];let lc=(()=>{class z{static withConfig(h){return{ngModule:z,providers:h.disableAnimations?Ml:Ha}}}return z.\u0275fac=function(h){return new(h||z)},z.\u0275mod=e.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=e.\u0275\u0275defineInjector({providers:Ha,imports:[n.b2]}),z})();var ud=a(2413);const cc={uri:!v.Bv||"P2Pchat"!==v.Bv&&"P2PchatV2"!==v.Bv&&"P2PchatV3"!==v.Bv?nt.L:v.Qb},El={uri:nt.L,userId:v.xS,appId:v.Jf,mobitelUri:v.Xo.xY};let hd=(()=>{class z{static#e=this.\u0275fac=function(M){return new(M||z)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:z,bootstrap:[ze]});static#i=this.\u0275inj=e.\u0275\u0275defineInjector({providers:[u.V,re.G,Re.s,g.U,X.y,q.E,K.o,ud.r,U.T,Ee.G,me.G,b.e,gr.G,_r,nr,{provide:l.TP,useClass:_o,multi:!0},{provide:jn.vQ,useValue:cc},{provide:j.P4,useValue:El}],imports:[n.b2,o.u5,l.JF,ue.N,Un,Dr.Z,j.Im,ne.Wr.register("./ngsw-worker.js",{enabled:true,registrationStrategy:"registerImmediately"}),lc,Cr.yu,or.Ps,Nr.To,Lt.yj,ur.y,$r.jT,Kr.t,d.Bz,an.OwlModule]})}return z})();function wl(){n.q6().bootstrapModule(hd).catch(z=>console.log(z))}function Il(){$("#connectionModal").modal("hide"),document.removeEventListener("online",Il,!1),wl()}console.log("templateName:",v.Bv),(0,e.enableProdMode)(),window.hasOwnProperty("cordova")?console.log("You're on a mobile device"):wl(),document.addEventListener("deviceready",function dc(){"none"===navigator.connection.type?(document.addEventListener("online",Il,!1),window.hasOwnProperty("cordova")&&navigator.splashscreen?.hide(),$("#connectionModal").modal("show")):wl()},!1)},8498:G=>{function a(){}G.exports=function P(n,e,o){var l=!1;return o=o||a,v.count=n,0===n?e():v;function v(d,u){if(v.count<=0)throw new Error("after called too many times");--v.count,d?(l=!0,e(d),e=o):0===v.count&&!l&&e(null,u)}}},9933:G=>{G.exports=function(P,a,n){var e=P.byteLength;if(a=a||0,n=n||e,P.slice)return P.slice(a,n);if(a<0&&(a+=e),n<0&&(n+=e),n>e&&(n=e),a>=e||a>=n||0===e)return new ArrayBuffer(0);for(var o=new Uint8Array(P),l=new Uint8Array(n-a),v=a,d=0;v<n;v++,d++)l[d]=o[v];return l.buffer}},2150:G=>{function P(a){this.ms=(a=a||{}).min||100,this.max=a.max||1e4,this.factor=a.factor||2,this.jitter=a.jitter>0&&a.jitter<=1?a.jitter:0,this.attempts=0}G.exports=P,P.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),e=Math.floor(n*this.jitter*a);a=1&Math.floor(10*n)?a+e:a-e}return 0|Math.min(a,this.max)},P.prototype.reset=function(){this.attempts=0},P.prototype.setMin=function(a){this.ms=a},P.prototype.setMax=function(a){this.max=a},P.prototype.setJitter=function(a){this.jitter=a}},390:(G,P)=>{!function(a){"use strict";P.encode=function(n){var o,e=new Uint8Array(n),l=e.length,v="";for(o=0;o<l;o+=3)v+=a[e[o]>>2],v+=a[(3&e[o])<<4|e[o+1]>>4],v+=a[(15&e[o+1])<<2|e[o+2]>>6],v+=a[63&e[o+2]];return l%3==2?v=v.substring(0,v.length-1)+"=":l%3==1&&(v=v.substring(0,v.length-2)+"=="),v},P.decode=function(n){var l,d,u,b,C,e=.75*n.length,o=n.length,v=0;"="===n[n.length-1]&&(e--,"="===n[n.length-2]&&e--);var x=new ArrayBuffer(e),w=new Uint8Array(x);for(l=0;l<o;l+=4)d=a.indexOf(n[l]),u=a.indexOf(n[l+1]),b=a.indexOf(n[l+2]),C=a.indexOf(n[l+3]),w[v++]=d<<2|u>>4,w[v++]=(15&u)<<4|b>>2,w[v++]=(3&b)<<6|63&C;return x}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},5343:(G,P)=>{"use strict";P.byteLength=function u(f){var S=d(f),B=S[1];return 3*(S[0]+B)/4-B},P.toByteArray=function C(f){var S,K,j=d(f),B=j[0],Z=j[1],le=new e(function b(f,S,j){return 3*(S+j)/4-j}(0,B,Z)),q=0,X=Z>0?B-4:B;for(K=0;K<X;K+=4)S=n[f.charCodeAt(K)]<<18|n[f.charCodeAt(K+1)]<<12|n[f.charCodeAt(K+2)]<<6|n[f.charCodeAt(K+3)],le[q++]=S>>16&255,le[q++]=S>>8&255,le[q++]=255&S;return 2===Z&&(S=n[f.charCodeAt(K)]<<2|n[f.charCodeAt(K+1)]>>4,le[q++]=255&S),1===Z&&(S=n[f.charCodeAt(K)]<<10|n[f.charCodeAt(K+1)]<<4|n[f.charCodeAt(K+2)]>>2,le[q++]=S>>8&255,le[q++]=255&S),le},P.fromByteArray=function g(f){for(var S,j=f.length,B=j%3,Z=[],q=0,X=j-B;q<X;q+=16383)Z.push(w(f,q,q+16383>X?X:q+16383));return 1===B?Z.push(a[(S=f[j-1])>>2]+a[S<<4&63]+"=="):2===B&&Z.push(a[(S=(f[j-2]<<8)+f[j-1])>>10]+a[S>>4&63]+a[S<<2&63]+"="),Z.join("")};for(var a=[],n=[],e=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,v=o.length;l<v;++l)a[l]=o[l],n[o.charCodeAt(l)]=l;function d(f){var S=f.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var j=f.indexOf("=");return-1===j&&(j=S),[j,j===S?0:4-j%4]}function x(f){return a[f>>18&63]+a[f>>12&63]+a[f>>6&63]+a[63&f]}function w(f,S,j){for(var Z=[],le=S;le<j;le+=3)Z.push(x((f[le]<<16&16711680)+(f[le+1]<<8&65280)+(255&f[le+2])));return Z.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},113:G=>{var P=typeof P<"u"?P:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"&&MozBlobBuilder,a=function(){try{return 2===new Blob(["hi"]).size}catch{return!1}}(),n=a&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch{return!1}}(),e=P&&P.prototype.append&&P.prototype.getBlob;function o(d){return d.map(function(u){if(u.buffer instanceof ArrayBuffer){var b=u.buffer;if(u.byteLength!==b.byteLength){var C=new Uint8Array(u.byteLength);C.set(new Uint8Array(b,u.byteOffset,u.byteLength)),b=C.buffer}return b}return u})}function l(d,u){u=u||{};var b=new P;return o(d).forEach(function(C){b.append(C)}),u.type?b.getBlob(u.type):b.getBlob()}function v(d,u){return new Blob(o(d),u||{})}typeof Blob<"u"&&(l.prototype=Blob.prototype,v.prototype=Blob.prototype),G.exports=a?n?Blob:v:e?l:void 0},3172:(G,P,a)=>{"use strict";var n=a(5343),e=a(8461),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=u,P.SlowBuffer=function le(te){return+te!=te&&(te=0),u.alloc(+te)},P.INSPECT_MAX_BYTES=50;var l=2147483647;function d(te){if(te>l)throw new RangeError('The value "'+te+'" is invalid for option "size"');var k=new Uint8Array(te);return Object.setPrototypeOf(k,u.prototype),k}function u(te,k,R){if("number"==typeof te){if("string"==typeof k)throw new TypeError('The "string" argument must be of type string. Received type number');return w(te)}return b(te,k,R)}function b(te,k,R){if("string"==typeof te)return function g(te,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!u.isEncoding(k))throw new TypeError("Unknown encoding: "+k);var R=0|q(te,k),be=d(R),et=be.write(te,k);return et!==R&&(be=be.slice(0,et)),be}(te,k);if(ArrayBuffer.isView(te))return function S(te){if(Pe(te,Uint8Array)){var k=new Uint8Array(te);return j(k.buffer,k.byteOffset,k.byteLength)}return f(te)}(te);if(null==te)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof te);if(Pe(te,ArrayBuffer)||te&&Pe(te.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pe(te,SharedArrayBuffer)||te&&Pe(te.buffer,SharedArrayBuffer)))return j(te,k,R);if("number"==typeof te)throw new TypeError('The "value" argument must not be of type number. Received type number');var be=te.valueOf&&te.valueOf();if(null!=be&&be!==te)return u.from(be,k,R);var et=function B(te){if(u.isBuffer(te)){var k=0|Z(te.length),R=d(k);return 0===R.length||te.copy(R,0,0,k),R}return void 0!==te.length?"number"!=typeof te.length||Qe(te.length)?d(0):f(te):"Buffer"===te.type&&Array.isArray(te.data)?f(te.data):void 0}(te);if(et)return et;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof te[Symbol.toPrimitive])return u.from(te[Symbol.toPrimitive]("string"),k,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof te)}function C(te){if("number"!=typeof te)throw new TypeError('"size" argument must be of type number');if(te<0)throw new RangeError('The value "'+te+'" is invalid for option "size"')}function w(te){return C(te),d(te<0?0:0|Z(te))}function f(te){for(var k=te.length<0?0:0|Z(te.length),R=d(k),be=0;be<k;be+=1)R[be]=255&te[be];return R}function j(te,k,R){if(k<0||te.byteLength<k)throw new RangeError('"offset" is outside of buffer bounds');if(te.byteLength<k+(R||0))throw new RangeError('"length" is outside of buffer bounds');var be;return be=void 0===k&&void 0===R?new Uint8Array(te):void 0===R?new Uint8Array(te,k):new Uint8Array(te,k,R),Object.setPrototypeOf(be,u.prototype),be}function Z(te){if(te>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|te}function q(te,k){if(u.isBuffer(te))return te.length;if(ArrayBuffer.isView(te)||Pe(te,ArrayBuffer))return te.byteLength;if("string"!=typeof te)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof te);var R=te.length,be=arguments.length>2&&!0===arguments[2];if(!be&&0===R)return 0;for(var et=!1;;)switch(k){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return W(te).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return Be(te).length;default:if(et)return be?-1:W(te).length;k=(""+k).toLowerCase(),et=!0}}function X(te,k,R){var be=!1;if((void 0===k||k<0)&&(k=0),k>this.length||((void 0===R||R>this.length)&&(R=this.length),R<=0)||(R>>>=0)<=(k>>>=0))return"";for(te||(te="utf8");;)switch(te){case"hex":return ti(this,k,R);case"utf8":case"utf-8":return ct(this,k,R);case"ascii":return jt(this,k,R);case"latin1":case"binary":return zt(this,k,R);case"base64":return qe(this,k,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mi(this,k,R);default:if(be)throw new TypeError("Unknown encoding: "+te);te=(te+"").toLowerCase(),be=!0}}function K(te,k,R){var be=te[k];te[k]=te[R],te[R]=be}function U(te,k,R,be,et){if(0===te.length)return-1;if("string"==typeof R?(be=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),Qe(R=+R)&&(R=et?0:te.length-1),R<0&&(R=te.length+R),R>=te.length){if(et)return-1;R=te.length-1}else if(R<0){if(!et)return-1;R=0}if("string"==typeof k&&(k=u.from(k,be)),u.isBuffer(k))return 0===k.length?-1:me(te,k,R,be,et);if("number"==typeof k)return k&=255,"function"==typeof Uint8Array.prototype.indexOf?et?Uint8Array.prototype.indexOf.call(te,k,R):Uint8Array.prototype.lastIndexOf.call(te,k,R):me(te,[k],R,be,et);throw new TypeError("val must be string, number or Buffer")}function me(te,k,R,be,et){var Pt,Ue=1,ge=te.length,ke=k.length;if(void 0!==be&&("ucs2"===(be=String(be).toLowerCase())||"ucs-2"===be||"utf16le"===be||"utf-16le"===be)){if(te.length<2||k.length<2)return-1;Ue=2,ge/=2,ke/=2,R/=2}function gt(at,Lt){return 1===Ue?at[Lt]:at.readUInt16BE(Lt*Ue)}if(et){var Bt=-1;for(Pt=R;Pt<ge;Pt++)if(gt(te,Pt)===gt(k,-1===Bt?0:Pt-Bt)){if(-1===Bt&&(Bt=Pt),Pt-Bt+1===ke)return Bt*Ue}else-1!==Bt&&(Pt-=Pt-Bt),Bt=-1}else for(R+ke>ge&&(R=ge-ke),Pt=R;Pt>=0;Pt--){for(var st=!0,Nt=0;Nt<ke;Nt++)if(gt(te,Pt+Nt)!==gt(k,Nt)){st=!1;break}if(st)return Pt}return-1}function xe(te,k,R,be){R=Number(R)||0;var et=te.length-R;be?(be=Number(be))>et&&(be=et):be=et;var Ue=k.length;be>Ue/2&&(be=Ue/2);for(var ge=0;ge<be;++ge){var ke=parseInt(k.substr(2*ge,2),16);if(Qe(ke))return ge;te[R+ge]=ke}return ge}function ne(te,k,R,be){return mt(W(k,te.length-R),te,R,be)}function Ze(te,k,R,be){return mt(function He(te){for(var k=[],R=0;R<te.length;++R)k.push(255&te.charCodeAt(R));return k}(k),te,R,be)}function Oe(te,k,R,be){return mt(Be(k),te,R,be)}function nt(te,k,R,be){return mt(function Te(te,k){for(var R,be,Ue=[],ge=0;ge<te.length&&!((k-=2)<0);++ge)be=(R=te.charCodeAt(ge))>>8,Ue.push(R%256),Ue.push(be);return Ue}(k,te.length-R),te,R,be)}function qe(te,k,R){return n.fromByteArray(0===k&&R===te.length?te:te.slice(k,R))}function ct(te,k,R){R=Math.min(te.length,R);for(var be=[],et=k;et<R;){var gt,Pt,Bt,st,Ue=te[et],ge=null,ke=Ue>239?4:Ue>223?3:Ue>191?2:1;if(et+ke<=R)switch(ke){case 1:Ue<128&&(ge=Ue);break;case 2:128==(192&(gt=te[et+1]))&&(st=(31&Ue)<<6|63&gt)>127&&(ge=st);break;case 3:Pt=te[et+2],128==(192&(gt=te[et+1]))&&128==(192&Pt)&&(st=(15&Ue)<<12|(63&gt)<<6|63&Pt)>2047&&(st<55296||st>57343)&&(ge=st);break;case 4:Pt=te[et+2],Bt=te[et+3],128==(192&(gt=te[et+1]))&&128==(192&Pt)&&128==(192&Bt)&&(st=(15&Ue)<<18|(63&gt)<<12|(63&Pt)<<6|63&Bt)>65535&&st<1114112&&(ge=st)}null===ge?(ge=65533,ke=1):ge>65535&&(be.push((ge-=65536)>>>10&1023|55296),ge=56320|1023&ge),be.push(ge),et+=ke}return function dt(te){var k=te.length;if(k<=ot)return String.fromCharCode.apply(String,te);for(var R="",be=0;be<k;)R+=String.fromCharCode.apply(String,te.slice(be,be+=ot));return R}(be)}P.kMaxLength=l,!(u.TYPED_ARRAY_SUPPORT=function v(){try{var te=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(te,k),42===te.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(te,k,R){return b(te,k,R)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(te,k,R){return function x(te,k,R){return C(te),te<=0?d(te):void 0!==k?"string"==typeof R?d(te).fill(k,R):d(te).fill(k):d(te)}(te,k,R)},u.allocUnsafe=function(te){return w(te)},u.allocUnsafeSlow=function(te){return w(te)},u.isBuffer=function(k){return null!=k&&!0===k._isBuffer&&k!==u.prototype},u.compare=function(k,R){if(Pe(k,Uint8Array)&&(k=u.from(k,k.offset,k.byteLength)),Pe(R,Uint8Array)&&(R=u.from(R,R.offset,R.byteLength)),!u.isBuffer(k)||!u.isBuffer(R))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(k===R)return 0;for(var be=k.length,et=R.length,Ue=0,ge=Math.min(be,et);Ue<ge;++Ue)if(k[Ue]!==R[Ue]){be=k[Ue],et=R[Ue];break}return be<et?-1:et<be?1:0},u.isEncoding=function(k){switch(String(k).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(k,R){if(!Array.isArray(k))throw new TypeError('"list" argument must be an Array of Buffers');if(0===k.length)return u.alloc(0);var be;if(void 0===R)for(R=0,be=0;be<k.length;++be)R+=k[be].length;var et=u.allocUnsafe(R),Ue=0;for(be=0;be<k.length;++be){var ge=k[be];if(Pe(ge,Uint8Array))Ue+ge.length>et.length?u.from(ge).copy(et,Ue):Uint8Array.prototype.set.call(et,ge,Ue);else{if(!u.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(et,Ue)}Ue+=ge.length}return et},u.byteLength=q,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var R=0;R<k;R+=2)K(this,R,R+1);return this},u.prototype.swap32=function(){var k=this.length;if(k%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var R=0;R<k;R+=4)K(this,R,R+3),K(this,R+1,R+2);return this},u.prototype.swap64=function(){var k=this.length;if(k%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var R=0;R<k;R+=8)K(this,R,R+7),K(this,R+1,R+6),K(this,R+2,R+5),K(this,R+3,R+4);return this},u.prototype.toLocaleString=u.prototype.toString=function(){var k=this.length;return 0===k?"":0===arguments.length?ct(this,0,k):X.apply(this,arguments)},u.prototype.equals=function(k){if(!u.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k||0===u.compare(this,k)},u.prototype.inspect=function(){var k="",R=P.INSPECT_MAX_BYTES;return k=this.toString("hex",0,R).replace(/(.{2})/g,"$1 ").trim(),this.length>R&&(k+=" ... "),"<Buffer "+k+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(k,R,be,et,Ue){if(Pe(k,Uint8Array)&&(k=u.from(k,k.offset,k.byteLength)),!u.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(void 0===R&&(R=0),void 0===be&&(be=k?k.length:0),void 0===et&&(et=0),void 0===Ue&&(Ue=this.length),R<0||be>k.length||et<0||Ue>this.length)throw new RangeError("out of range index");if(et>=Ue&&R>=be)return 0;if(et>=Ue)return-1;if(R>=be)return 1;if(this===k)return 0;for(var ge=(Ue>>>=0)-(et>>>=0),ke=(be>>>=0)-(R>>>=0),gt=Math.min(ge,ke),Pt=this.slice(et,Ue),Bt=k.slice(R,be),st=0;st<gt;++st)if(Pt[st]!==Bt[st]){ge=Pt[st],ke=Bt[st];break}return ge<ke?-1:ke<ge?1:0},u.prototype.includes=function(k,R,be){return-1!==this.indexOf(k,R,be)},u.prototype.indexOf=function(k,R,be){return U(this,k,R,be,!0)},u.prototype.lastIndexOf=function(k,R,be){return U(this,k,R,be,!1)},u.prototype.write=function(k,R,be,et){if(void 0===R)et="utf8",be=this.length,R=0;else if(void 0===be&&"string"==typeof R)et=R,be=this.length,R=0;else{if(!isFinite(R))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");R>>>=0,isFinite(be)?(be>>>=0,void 0===et&&(et="utf8")):(et=be,be=void 0)}var Ue=this.length-R;if((void 0===be||be>Ue)&&(be=Ue),k.length>0&&(be<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");et||(et="utf8");for(var ge=!1;;)switch(et){case"hex":return xe(this,k,R,be);case"utf8":case"utf-8":return ne(this,k,R,be);case"ascii":case"latin1":case"binary":return Ze(this,k,R,be);case"base64":return Oe(this,k,R,be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt(this,k,R,be);default:if(ge)throw new TypeError("Unknown encoding: "+et);et=(""+et).toLowerCase(),ge=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ot=4096;function jt(te,k,R){var be="";R=Math.min(te.length,R);for(var et=k;et<R;++et)be+=String.fromCharCode(127&te[et]);return be}function zt(te,k,R){var be="";R=Math.min(te.length,R);for(var et=k;et<R;++et)be+=String.fromCharCode(te[et]);return be}function ti(te,k,R){var be=te.length;(!k||k<0)&&(k=0),(!R||R<0||R>be)&&(R=be);for(var et="",Ue=k;Ue<R;++Ue)et+=ut[te[Ue]];return et}function mi(te,k,R){for(var be=te.slice(k,R),et="",Ue=0;Ue<be.length-1;Ue+=2)et+=String.fromCharCode(be[Ue]+256*be[Ue+1]);return et}function Qt(te,k,R){if(te%1!=0||te<0)throw new RangeError("offset is not uint");if(te+k>R)throw new RangeError("Trying to access beyond buffer length")}function Jt(te,k,R,be,et,Ue){if(!u.isBuffer(te))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>et||k<Ue)throw new RangeError('"value" argument is out of bounds');if(R+be>te.length)throw new RangeError("Index out of range")}function lt(te,k,R,be,et,Ue){if(R+be>te.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function _t(te,k,R,be,et){return k=+k,R>>>=0,et||lt(te,0,R,4),e.write(te,k,R,be,23,4),R+4}function Fe(te,k,R,be,et){return k=+k,R>>>=0,et||lt(te,0,R,8),e.write(te,k,R,be,52,8),R+8}u.prototype.slice=function(k,R){var be=this.length;(k=~~k)<0?(k+=be)<0&&(k=0):k>be&&(k=be),(R=void 0===R?be:~~R)<0?(R+=be)<0&&(R=0):R>be&&(R=be),R<k&&(R=k);var et=this.subarray(k,R);return Object.setPrototypeOf(et,u.prototype),et},u.prototype.readUintLE=u.prototype.readUIntLE=function(k,R,be){k>>>=0,R>>>=0,be||Qt(k,R,this.length);for(var et=this[k],Ue=1,ge=0;++ge<R&&(Ue*=256);)et+=this[k+ge]*Ue;return et},u.prototype.readUintBE=u.prototype.readUIntBE=function(k,R,be){k>>>=0,R>>>=0,be||Qt(k,R,this.length);for(var et=this[k+--R],Ue=1;R>0&&(Ue*=256);)et+=this[k+--R]*Ue;return et},u.prototype.readUint8=u.prototype.readUInt8=function(k,R){return k>>>=0,R||Qt(k,1,this.length),this[k]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(k,R){return k>>>=0,R||Qt(k,2,this.length),this[k]|this[k+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(k,R){return k>>>=0,R||Qt(k,2,this.length),this[k]<<8|this[k+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(k,R){return k>>>=0,R||Qt(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(k,R){return k>>>=0,R||Qt(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},u.prototype.readIntLE=function(k,R,be){k>>>=0,R>>>=0,be||Qt(k,R,this.length);for(var et=this[k],Ue=1,ge=0;++ge<R&&(Ue*=256);)et+=this[k+ge]*Ue;return et>=(Ue*=128)&&(et-=Math.pow(2,8*R)),et},u.prototype.readIntBE=function(k,R,be){k>>>=0,R>>>=0,be||Qt(k,R,this.length);for(var et=R,Ue=1,ge=this[k+--et];et>0&&(Ue*=256);)ge+=this[k+--et]*Ue;return ge>=(Ue*=128)&&(ge-=Math.pow(2,8*R)),ge},u.prototype.readInt8=function(k,R){return k>>>=0,R||Qt(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},u.prototype.readInt16LE=function(k,R){k>>>=0,R||Qt(k,2,this.length);var be=this[k]|this[k+1]<<8;return 32768&be?4294901760|be:be},u.prototype.readInt16BE=function(k,R){k>>>=0,R||Qt(k,2,this.length);var be=this[k+1]|this[k]<<8;return 32768&be?4294901760|be:be},u.prototype.readInt32LE=function(k,R){return k>>>=0,R||Qt(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},u.prototype.readInt32BE=function(k,R){return k>>>=0,R||Qt(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},u.prototype.readFloatLE=function(k,R){return k>>>=0,R||Qt(k,4,this.length),e.read(this,k,!0,23,4)},u.prototype.readFloatBE=function(k,R){return k>>>=0,R||Qt(k,4,this.length),e.read(this,k,!1,23,4)},u.prototype.readDoubleLE=function(k,R){return k>>>=0,R||Qt(k,8,this.length),e.read(this,k,!0,52,8)},u.prototype.readDoubleBE=function(k,R){return k>>>=0,R||Qt(k,8,this.length),e.read(this,k,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(k,R,be,et){k=+k,R>>>=0,be>>>=0,et||Jt(this,k,R,be,Math.pow(2,8*be)-1,0);var ge=1,ke=0;for(this[R]=255&k;++ke<be&&(ge*=256);)this[R+ke]=k/ge&255;return R+be},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(k,R,be,et){k=+k,R>>>=0,be>>>=0,et||Jt(this,k,R,be,Math.pow(2,8*be)-1,0);var ge=be-1,ke=1;for(this[R+ge]=255&k;--ge>=0&&(ke*=256);)this[R+ge]=k/ke&255;return R+be},u.prototype.writeUint8=u.prototype.writeUInt8=function(k,R,be){return k=+k,R>>>=0,be||Jt(this,k,R,1,255,0),this[R]=255&k,R+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(k,R,be){return k=+k,R>>>=0,be||Jt(this,k,R,2,65535,0),this[R]=255&k,this[R+1]=k>>>8,R+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(k,R,be){return k=+k,R>>>=0,be||Jt(this,k,R,2,65535,0),this[R]=k>>>8,this[R+1]=255&k,R+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(k,R,be){return k=+k,R>>>=0,be||Jt(this,k,R,4,4294967295,0),this[R+3]=k>>>24,this[R+2]=k>>>16,this[R+1]=k>>>8,this[R]=255&k,R+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(k,R,be){return k=+k,R>>>=0,be||Jt(this,k,R,4,4294967295,0),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=255&k,R+4},u.prototype.writeIntLE=function(k,R,be,et){if(k=+k,R>>>=0,!et){var Ue=Math.pow(2,8*be-1);Jt(this,k,R,be,Ue-1,-Ue)}var ge=0,ke=1,gt=0;for(this[R]=255&k;++ge<be&&(ke*=256);)k<0&&0===gt&&0!==this[R+ge-1]&&(gt=1),this[R+ge]=(k/ke>>0)-gt&255;return R+be},u.prototype.writeIntBE=function(k,R,be,et){if(k=+k,R>>>=0,!et){var Ue=Math.pow(2,8*be-1);Jt(this,k,R,be,Ue-1,-Ue)}var ge=be-1,ke=1,gt=0;for(this[R+ge]=255&k;--ge>=0&&(ke*=256);)k<0&&0===gt&&0!==this[R+ge+1]&&(gt=1),this[R+ge]=(k/ke>>0)-gt&255;return R+be},u.prototype.writeInt8=function(k,R,be){return k=+k,R>>>=0,be||Jt(this,k,R,1,127,-128),k<0&&(k=255+k+1),this[R]=255&k,R+1},u.prototype.writeInt16LE=function(k,R,be){return k=+k,R>>>=0,be||Jt(this,k,R,2,32767,-32768),this[R]=255&k,this[R+1]=k>>>8,R+2},u.prototype.writeInt16BE=function(k,R,be){return k=+k,R>>>=0,be||Jt(this,k,R,2,32767,-32768),this[R]=k>>>8,this[R+1]=255&k,R+2},u.prototype.writeInt32LE=function(k,R,be){return k=+k,R>>>=0,be||Jt(this,k,R,4,2147483647,-2147483648),this[R]=255&k,this[R+1]=k>>>8,this[R+2]=k>>>16,this[R+3]=k>>>24,R+4},u.prototype.writeInt32BE=function(k,R,be){return k=+k,R>>>=0,be||Jt(this,k,R,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=255&k,R+4},u.prototype.writeFloatLE=function(k,R,be){return _t(this,k,R,!0,be)},u.prototype.writeFloatBE=function(k,R,be){return _t(this,k,R,!1,be)},u.prototype.writeDoubleLE=function(k,R,be){return Fe(this,k,R,!0,be)},u.prototype.writeDoubleBE=function(k,R,be){return Fe(this,k,R,!1,be)},u.prototype.copy=function(k,R,be,et){if(!u.isBuffer(k))throw new TypeError("argument should be a Buffer");if(be||(be=0),!et&&0!==et&&(et=this.length),R>=k.length&&(R=k.length),R||(R=0),et>0&&et<be&&(et=be),et===be||0===k.length||0===this.length)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(be<0||be>=this.length)throw new RangeError("Index out of range");if(et<0)throw new RangeError("sourceEnd out of bounds");et>this.length&&(et=this.length),k.length-R<et-be&&(et=k.length-R+be);var Ue=et-be;return this===k&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(R,be,et):Uint8Array.prototype.set.call(k,this.subarray(be,et),R),Ue},u.prototype.fill=function(k,R,be,et){if("string"==typeof k){if("string"==typeof R?(et=R,R=0,be=this.length):"string"==typeof be&&(et=be,be=this.length),void 0!==et&&"string"!=typeof et)throw new TypeError("encoding must be a string");if("string"==typeof et&&!u.isEncoding(et))throw new TypeError("Unknown encoding: "+et);if(1===k.length){var Ue=k.charCodeAt(0);("utf8"===et&&Ue<128||"latin1"===et)&&(k=Ue)}}else"number"==typeof k?k&=255:"boolean"==typeof k&&(k=Number(k));if(R<0||this.length<R||this.length<be)throw new RangeError("Out of range index");if(be<=R)return this;var ge;if(R>>>=0,be=void 0===be?this.length:be>>>0,k||(k=0),"number"==typeof k)for(ge=R;ge<be;++ge)this[ge]=k;else{var ke=u.isBuffer(k)?k:u.from(k,et),gt=ke.length;if(0===gt)throw new TypeError('The value "'+k+'" is invalid for argument "value"');for(ge=0;ge<be-R;++ge)this[ge+R]=ke[ge%gt]}return this};var Ae=/[^+/0-9A-Za-z-_]/g;function W(te,k){k=k||1/0;for(var R,be=te.length,et=null,Ue=[],ge=0;ge<be;++ge){if((R=te.charCodeAt(ge))>55295&&R<57344){if(!et){if(R>56319){(k-=3)>-1&&Ue.push(239,191,189);continue}if(ge+1===be){(k-=3)>-1&&Ue.push(239,191,189);continue}et=R;continue}if(R<56320){(k-=3)>-1&&Ue.push(239,191,189),et=R;continue}R=65536+(et-55296<<10|R-56320)}else et&&(k-=3)>-1&&Ue.push(239,191,189);if(et=null,R<128){if((k-=1)<0)break;Ue.push(R)}else if(R<2048){if((k-=2)<0)break;Ue.push(R>>6|192,63&R|128)}else if(R<65536){if((k-=3)<0)break;Ue.push(R>>12|224,R>>6&63|128,63&R|128)}else{if(!(R<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;Ue.push(R>>18|240,R>>12&63|128,R>>6&63|128,63&R|128)}}return Ue}function Be(te){return n.toByteArray(function H(te){if((te=(te=te.split("=")[0]).trim().replace(Ae,"")).length<2)return"";for(;te.length%4!=0;)te+="=";return te}(te))}function mt(te,k,R,be){for(var et=0;et<be&&!(et+R>=k.length||et>=te.length);++et)k[et+R]=te[et];return et}function Pe(te,k){return te instanceof k||null!=te&&null!=te.constructor&&null!=te.constructor.name&&te.constructor.name===k.name}function Qe(te){return te!=te}var ut=function(){for(var te="0123456789abcdef",k=new Array(256),R=0;R<16;++R)for(var be=16*R,et=0;et<16;++et)k[be+et]=te[R]+te[et];return k}()},1213:G=>{var P=[].slice;G.exports=function(a,n){if("string"==typeof n&&(n=a[n]),"function"!=typeof n)throw new Error("bind() requires a function");var e=P.call(arguments,2);return function(){return n.apply(a,e.concat(P.call(arguments)))}}},1264:G=>{function P(n){if(n)return function a(n){for(var e in P.prototype)n[e]=P.prototype[e];return n}(n)}G.exports=P,P.prototype.on=P.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this},P.prototype.once=function(n,e){function o(){this.off(n,o),e.apply(this,arguments)}return o.fn=e,this.on(n,o),this},P.prototype.off=P.prototype.removeListener=P.prototype.removeAllListeners=P.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o=this._callbacks["$"+n];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+n],this;for(var l,v=0;v<o.length;v++)if((l=o[v])===e||l.fn===e){o.splice(v,1);break}return 0===o.length&&delete this._callbacks["$"+n],this},P.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),o=this._callbacks["$"+n],l=1;l<arguments.length;l++)e[l-1]=arguments[l];if(o){l=0;for(var v=(o=o.slice(0)).length;l<v;++l)o[l].apply(this,e)}return this},P.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},P.prototype.hasListeners=function(n){return!!this.listeners(n).length}},9471:G=>{G.exports=function(P,a){var n=function(){};n.prototype=a.prototype,P.prototype=new n,P.prototype.constructor=P}},6570:G=>{function P(n){if(n)return function a(n){for(var e in P.prototype)n[e]=P.prototype[e];return n}(n)}G.exports=P,P.prototype.on=P.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks[n]=this._callbacks[n]||[]).push(e),this},P.prototype.once=function(n,e){var o=this;function l(){o.off(n,l),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},l.fn=e,this.on(n,l),this},P.prototype.off=P.prototype.removeListener=P.prototype.removeAllListeners=P.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o=this._callbacks[n];if(!o)return this;if(1==arguments.length)return delete this._callbacks[n],this;for(var l,v=0;v<o.length;v++)if((l=o[v])===e||l.fn===e){o.splice(v,1);break}return this},P.prototype.emit=function(n){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),o=this._callbacks[n];if(o)for(var l=0,v=(o=o.slice(0)).length;l<v;++l)o[l].apply(this,e);return this},P.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks[n]||[]},P.prototype.hasListeners=function(n){return!!this.listeners(n).length}},851:G=>{G.exports=typeof self<"u"?self:typeof window<"u"?window:Function("return this")()},7410:(G,P,a)=>{G.exports=a(3213),G.exports.parser=a(2580)},3213:(G,P,a)=>{var n=a(1497),e=a(1264),o=a(2534)("engine.io-client:socket"),l=a(4068),v=a(2580),d=a(1884),u=a(3257);function b(x,w){if(!(this instanceof b))return new b(x,w);w=w||{},x&&"object"==typeof x&&(w=x,x=null),x?(x=d(x),w.hostname=x.host,w.secure="https"===x.protocol||"wss"===x.protocol,w.port=x.port,x.query&&(w.query=x.query)):w.host&&(w.hostname=d(w.host).host),this.secure=null!=w.secure?w.secure:typeof location<"u"&&"https:"===location.protocol,w.hostname&&!w.port&&(w.port=this.secure?"443":"80"),this.agent=w.agent||!1,this.hostname=w.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=w.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=w.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==w.upgrade,this.path=(w.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!w.forceJSONP,this.jsonp=!1!==w.jsonp,this.forceBase64=!!w.forceBase64,this.enablesXDR=!!w.enablesXDR,this.withCredentials=!1!==w.withCredentials,this.timestampParam=w.timestampParam||"t",this.timestampRequests=w.timestampRequests,this.transports=w.transports||["polling","websocket"],this.transportOptions=w.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=w.policyPort||843,this.rememberUpgrade=w.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=w.onlyBinaryUpgrades,this.perMessageDeflate=!1!==w.perMessageDeflate&&(w.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=w.pfx||void 0,this.key=w.key||void 0,this.passphrase=w.passphrase||void 0,this.cert=w.cert||void 0,this.ca=w.ca||void 0,this.ciphers=w.ciphers||void 0,this.rejectUnauthorized=void 0===w.rejectUnauthorized||w.rejectUnauthorized,this.forceNode=!!w.forceNode,this.isReactNative=typeof navigator<"u"&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),(typeof self>"u"||this.isReactNative)&&(w.extraHeaders&&Object.keys(w.extraHeaders).length>0&&(this.extraHeaders=w.extraHeaders),w.localAddress&&(this.localAddress=w.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}G.exports=b,b.priorWebsocketSuccess=!1,e(b.prototype),b.protocol=v.protocol,b.Socket=b,b.Transport=a(3330),b.transports=a(1497),b.parser=a(2580),b.prototype.createTransport=function(x){o('creating transport "%s"',x);var w=function C(x){var w={};for(var g in x)x.hasOwnProperty(g)&&(w[g]=x[g]);return w}(this.query);w.EIO=v.protocol,w.transport=x;var g=this.transportOptions[x]||{};return this.id&&(w.sid=this.id),new n[x]({query:w,socket:this,agent:g.agent||this.agent,hostname:g.hostname||this.hostname,port:g.port||this.port,secure:g.secure||this.secure,path:g.path||this.path,forceJSONP:g.forceJSONP||this.forceJSONP,jsonp:g.jsonp||this.jsonp,forceBase64:g.forceBase64||this.forceBase64,enablesXDR:g.enablesXDR||this.enablesXDR,withCredentials:g.withCredentials||this.withCredentials,timestampRequests:g.timestampRequests||this.timestampRequests,timestampParam:g.timestampParam||this.timestampParam,policyPort:g.policyPort||this.policyPort,pfx:g.pfx||this.pfx,key:g.key||this.key,passphrase:g.passphrase||this.passphrase,cert:g.cert||this.cert,ca:g.ca||this.ca,ciphers:g.ciphers||this.ciphers,rejectUnauthorized:g.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:g.perMessageDeflate||this.perMessageDeflate,extraHeaders:g.extraHeaders||this.extraHeaders,forceNode:g.forceNode||this.forceNode,localAddress:g.localAddress||this.localAddress,requestTimeout:g.requestTimeout||this.requestTimeout,protocols:g.protocols||void 0,isReactNative:this.isReactNative})},b.prototype.open=function(){var x;if(this.rememberUpgrade&&b.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))x="websocket";else{if(0===this.transports.length){var w=this;return void setTimeout(function(){w.emit("error","No transports available")},0)}x=this.transports[0]}this.readyState="opening";try{x=this.createTransport(x)}catch{return this.transports.shift(),void this.open()}x.open(),this.setTransport(x)},b.prototype.setTransport=function(x){o("setting transport %s",x.name);var w=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=x,x.on("drain",function(){w.onDrain()}).on("packet",function(g){w.onPacket(g)}).on("error",function(g){w.onError(g)}).on("close",function(){w.onClose("transport close")})},b.prototype.probe=function(x){o('probing transport "%s"',x);var w=this.createTransport(x,{probe:1}),g=!1,f=this;function S(){f.onlyBinaryUpgrades&&(g=g||!this.supportsBinary&&f.transport.supportsBinary),g||(o('probe transport "%s" opened',x),w.send([{type:"ping",data:"probe"}]),w.once("packet",function(U){if(!g)if("pong"===U.type&&"probe"===U.data){if(o('probe transport "%s" pong',x),f.upgrading=!0,f.emit("upgrading",w),!w)return;b.priorWebsocketSuccess="websocket"===w.name,o('pausing current transport "%s"',f.transport.name),f.transport.pause(function(){g||"closed"!==f.readyState&&(o("changing transport and sending upgrade packet"),X(),f.setTransport(w),w.send([{type:"upgrade"}]),f.emit("upgrade",w),w=null,f.upgrading=!1,f.flush())})}else{o('probe transport "%s" failed',x);var me=new Error("probe error");me.transport=w.name,f.emit("upgradeError",me)}}))}function j(){g||(g=!0,X(),w.close(),w=null)}function B(K){var U=new Error("probe error: "+K);U.transport=w.name,j(),o('probe transport "%s" failed because of error: %s',x,K),f.emit("upgradeError",U)}function Z(){B("transport closed")}function le(){B("socket closed")}function q(K){w&&K.name!==w.name&&(o('"%s" works - aborting "%s"',K.name,w.name),j())}function X(){w.removeListener("open",S),w.removeListener("error",B),w.removeListener("close",Z),f.removeListener("close",le),f.removeListener("upgrading",q)}b.priorWebsocketSuccess=!1,w.once("open",S),w.once("error",B),w.once("close",Z),this.once("close",le),this.once("upgrading",q),w.open()},b.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",b.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var x=0,w=this.upgrades.length;x<w;x++)this.probe(this.upgrades[x])}},b.prototype.onPacket=function(x){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(o('socket receive: type "%s", data "%s"',x.type,x.data),this.emit("packet",x),this.emit("heartbeat"),x.type){case"open":this.onHandshake(JSON.parse(x.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var w=new Error("server error");w.code=x.data,this.onError(w);break;case"message":this.emit("data",x.data),this.emit("message",x.data)}else o('packet received with socket readyState "%s"',this.readyState)},b.prototype.onHandshake=function(x){this.emit("handshake",x),this.id=x.sid,this.transport.query.sid=x.sid,this.upgrades=this.filterUpgrades(x.upgrades),this.pingInterval=x.pingInterval,this.pingTimeout=x.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},b.prototype.onHeartbeat=function(x){clearTimeout(this.pingTimeoutTimer);var w=this;w.pingTimeoutTimer=setTimeout(function(){"closed"!==w.readyState&&w.onClose("ping timeout")},x||w.pingInterval+w.pingTimeout)},b.prototype.setPing=function(){var x=this;clearTimeout(x.pingIntervalTimer),x.pingIntervalTimer=setTimeout(function(){o("writing ping packet - expecting pong within %sms",x.pingTimeout),x.ping(),x.onHeartbeat(x.pingTimeout)},x.pingInterval)},b.prototype.ping=function(){var x=this;this.sendPacket("ping",function(){x.emit("ping")})},b.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},b.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(o("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},b.prototype.write=b.prototype.send=function(x,w,g){return this.sendPacket("message",x,w,g),this},b.prototype.sendPacket=function(x,w,g,f){if("function"==typeof w&&(f=w,w=void 0),"function"==typeof g&&(f=g,g=null),"closing"!==this.readyState&&"closed"!==this.readyState){(g=g||{}).compress=!1!==g.compress;var S={type:x,data:w,options:g};this.emit("packetCreate",S),this.writeBuffer.push(S),f&&this.once("flush",f),this.flush()}},b.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var x=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?f():w()}):this.upgrading?f():w()}function w(){x.onClose("forced close"),o("socket closing - telling transport to close"),x.transport.close()}function g(){x.removeListener("upgrade",g),x.removeListener("upgradeError",g),w()}function f(){x.once("upgrade",g),x.once("upgradeError",g)}return this},b.prototype.onError=function(x){o("socket error %j",x),b.priorWebsocketSuccess=!1,this.emit("error",x),this.onClose("transport error",x)},b.prototype.onClose=function(x,w){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(o('socket close with reason: "%s"',x),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",x,w),this.writeBuffer=[],this.prevBufferLen=0)},b.prototype.filterUpgrades=function(x){for(var w=[],g=0,f=x.length;g<f;g++)~l(this.transports,x[g])&&w.push(x[g]);return w}},3330:(G,P,a)=>{var n=a(2580),e=a(1264);function o(l){this.path=l.path,this.hostname=l.hostname,this.port=l.port,this.secure=l.secure,this.query=l.query,this.timestampParam=l.timestampParam,this.timestampRequests=l.timestampRequests,this.readyState="",this.agent=l.agent||!1,this.socket=l.socket,this.enablesXDR=l.enablesXDR,this.withCredentials=l.withCredentials,this.pfx=l.pfx,this.key=l.key,this.passphrase=l.passphrase,this.cert=l.cert,this.ca=l.ca,this.ciphers=l.ciphers,this.rejectUnauthorized=l.rejectUnauthorized,this.forceNode=l.forceNode,this.isReactNative=l.isReactNative,this.extraHeaders=l.extraHeaders,this.localAddress=l.localAddress}G.exports=o,e(o.prototype),o.prototype.onError=function(l,v){var d=new Error(l);return d.type="TransportError",d.description=v,this.emit("error",d),this},o.prototype.open=function(){return("closed"===this.readyState||""===this.readyState)&&(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this},o.prototype.send=function(l){if("open"!==this.readyState)throw new Error("Transport not open");this.write(l)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(l){var v=n.decodePacket(l,this.socket.binaryType);this.onPacket(v)},o.prototype.onPacket=function(l){this.emit("packet",l)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},1497:(G,P,a)=>{var n=a(3260),e=a(2889),o=a(6029),l=a(3909);P.polling=function v(d){var b=!1,C=!1,x=!1!==d.jsonp;if(typeof location<"u"){var w="https:"===location.protocol,g=location.port;g||(g=w?443:80),b=d.hostname!==location.hostname||g!==d.port,C=d.secure!==w}if(d.xdomain=b,d.xscheme=C,"open"in new n(d)&&!d.forceJSONP)return new e(d);if(!x)throw new Error("JSONP disabled");return new o(d)},P.websocket=l},6029:(G,P,a)=>{var n=a(3904),e=a(9471),o=a(851);G.exports=b;var d,l=/\n/g,v=/\\n/g;function u(){}function b(C){n.call(this,C),this.query=this.query||{},d||(d=o.___eio=o.___eio||[]),this.index=d.length;var x=this;d.push(function(w){x.onData(w)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){x.script&&(x.script.onerror=u)},!1)}e(b,n),b.prototype.supportsBinary=!1,b.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),n.prototype.doClose.call(this)},b.prototype.doPoll=function(){var C=this,x=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),x.async=!0,x.src=this.uri(),x.onerror=function(f){C.onError("jsonp poll error",f)};var w=document.getElementsByTagName("script")[0];w?w.parentNode.insertBefore(x,w):(document.head||document.body).appendChild(x),this.script=x,typeof navigator<"u"&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var f=document.createElement("iframe");document.body.appendChild(f),document.body.removeChild(f)},100)},b.prototype.doWrite=function(C,x){var w=this;if(!this.form){var j,g=document.createElement("form"),f=document.createElement("textarea"),S=this.iframeId="eio_iframe_"+this.index;g.className="socketio",g.style.position="absolute",g.style.top="-1000px",g.style.left="-1000px",g.target=S,g.method="POST",g.setAttribute("accept-charset","utf-8"),f.name="d",g.appendChild(f),document.body.appendChild(g),this.form=g,this.area=f}function B(){Z(),x()}function Z(){if(w.iframe)try{w.form.removeChild(w.iframe)}catch(q){w.onError("jsonp polling iframe removal error",q)}try{j=document.createElement('<iframe src="javascript:0" name="'+w.iframeId+'">')}catch{(j=document.createElement("iframe")).name=w.iframeId,j.src="javascript:0"}j.id=w.iframeId,w.form.appendChild(j),w.iframe=j}this.form.action=this.uri(),Z(),C=C.replace(v,"\\\n"),this.area.value=C.replace(l,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===w.iframe.readyState&&B()}:this.iframe.onload=B}},2889:(G,P,a)=>{var n=a(3260),e=a(3904),o=a(1264),l=a(9471),v=a(2534)("engine.io-client:polling-xhr"),d=a(851);function u(){}function b(g){if(e.call(this,g),this.requestTimeout=g.requestTimeout,this.extraHeaders=g.extraHeaders,typeof location<"u"){var f="https:"===location.protocol,S=location.port;S||(S=f?443:80),this.xd=typeof location<"u"&&g.hostname!==location.hostname||S!==g.port,this.xs=g.secure!==f}}function C(g){this.method=g.method||"GET",this.uri=g.uri,this.xd=!!g.xd,this.xs=!!g.xs,this.async=!1!==g.async,this.data=void 0!==g.data?g.data:null,this.agent=g.agent,this.isBinary=g.isBinary,this.supportsBinary=g.supportsBinary,this.enablesXDR=g.enablesXDR,this.withCredentials=g.withCredentials,this.requestTimeout=g.requestTimeout,this.pfx=g.pfx,this.key=g.key,this.passphrase=g.passphrase,this.cert=g.cert,this.ca=g.ca,this.ciphers=g.ciphers,this.rejectUnauthorized=g.rejectUnauthorized,this.extraHeaders=g.extraHeaders,this.create()}function w(){for(var g in C.requests)C.requests.hasOwnProperty(g)&&C.requests[g].abort()}G.exports=b,G.exports.Request=C,l(b,e),b.prototype.supportsBinary=!0,b.prototype.request=function(g){return(g=g||{}).uri=this.uri(),g.xd=this.xd,g.xs=this.xs,g.agent=this.agent||!1,g.supportsBinary=this.supportsBinary,g.enablesXDR=this.enablesXDR,g.withCredentials=this.withCredentials,g.pfx=this.pfx,g.key=this.key,g.passphrase=this.passphrase,g.cert=this.cert,g.ca=this.ca,g.ciphers=this.ciphers,g.rejectUnauthorized=this.rejectUnauthorized,g.requestTimeout=this.requestTimeout,g.extraHeaders=this.extraHeaders,new C(g)},b.prototype.doWrite=function(g,f){var j=this.request({method:"POST",data:g,isBinary:"string"!=typeof g&&void 0!==g}),B=this;j.on("success",f),j.on("error",function(Z){B.onError("xhr post error",Z)}),this.sendXhr=j},b.prototype.doPoll=function(){v("xhr poll");var g=this.request(),f=this;g.on("data",function(S){f.onData(S)}),g.on("error",function(S){f.onError("xhr poll error",S)}),this.pollXhr=g},o(C.prototype),C.prototype.create=function(){var g={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};g.pfx=this.pfx,g.key=this.key,g.passphrase=this.passphrase,g.cert=this.cert,g.ca=this.ca,g.ciphers=this.ciphers,g.rejectUnauthorized=this.rejectUnauthorized;var f=this.xhr=new n(g),S=this;try{v("xhr open %s: %s",this.method,this.uri),f.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var j in f.setDisableHeaderCheck&&f.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(j)&&f.setRequestHeader(j,this.extraHeaders[j])}catch{}if("POST"===this.method)try{f.setRequestHeader("Content-type",this.isBinary?"application/octet-stream":"text/plain;charset=UTF-8")}catch{}try{f.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in f&&(f.withCredentials=this.withCredentials),this.requestTimeout&&(f.timeout=this.requestTimeout),this.hasXDR()?(f.onload=function(){S.onLoad()},f.onerror=function(){S.onError(f.responseText)}):f.onreadystatechange=function(){if(2===f.readyState)try{var B=f.getResponseHeader("Content-Type");(S.supportsBinary&&"application/octet-stream"===B||"application/octet-stream; charset=UTF-8"===B)&&(f.responseType="arraybuffer")}catch{}4===f.readyState&&(200===f.status||1223===f.status?S.onLoad():setTimeout(function(){S.onError("number"==typeof f.status?f.status:0)},0))},v("xhr data %s",this.data),f.send(this.data)}catch(B){return void setTimeout(function(){S.onError(B)},0)}typeof document<"u"&&(this.index=C.requestsCount++,C.requests[this.index]=this)},C.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},C.prototype.onData=function(g){this.emit("data",g),this.onSuccess()},C.prototype.onError=function(g){this.emit("error",g),this.cleanup(!0)},C.prototype.cleanup=function(g){if(!(typeof this.xhr>"u"||null===this.xhr)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=u:this.xhr.onreadystatechange=u,g)try{this.xhr.abort()}catch{}typeof document<"u"&&delete C.requests[this.index],this.xhr=null}},C.prototype.onLoad=function(){var g;try{var f;try{f=this.xhr.getResponseHeader("Content-Type")}catch{}g=("application/octet-stream"===f||"application/octet-stream; charset=UTF-8"===f)&&this.xhr.response||this.xhr.responseText}catch(S){this.onError(S)}null!=g&&this.onData(g)},C.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR},C.prototype.abort=function(){this.cleanup()},C.requestsCount=0,C.requests={},typeof document<"u"&&("function"==typeof attachEvent?attachEvent("onunload",w):"function"==typeof addEventListener&&addEventListener("onpagehide"in d?"pagehide":"unload",w,!1))},3904:(G,P,a)=>{var n=a(3330),e=a(3257),o=a(2580),l=a(9471),v=a(1067),d=a(2534)("engine.io-client:polling");G.exports=b;var u=null!=new(a(3260))({xdomain:!1}).responseType;function b(C){(!u||C&&C.forceBase64)&&(this.supportsBinary=!1),n.call(this,C)}l(b,n),b.prototype.name="polling",b.prototype.doOpen=function(){this.poll()},b.prototype.pause=function(C){var x=this;function w(){d("paused"),x.readyState="paused",C()}if(this.readyState="pausing",this.polling||!this.writable){var g=0;this.polling&&(d("we are currently polling - waiting to pause"),g++,this.once("pollComplete",function(){d("pre-pause polling complete"),--g||w()})),this.writable||(d("we are currently writing - waiting to pause"),g++,this.once("drain",function(){d("pre-pause writing complete"),--g||w()}))}else w()},b.prototype.poll=function(){d("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},b.prototype.onData=function(C){var x=this;d("polling got data %s",C),o.decodePayload(C,this.socket.binaryType,function(g,f,S){if("opening"===x.readyState&&"open"===g.type&&x.onOpen(),"close"===g.type)return x.onClose(),!1;x.onPacket(g)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():d('ignoring poll - transport state "%s"',this.readyState))},b.prototype.doClose=function(){var C=this;function x(){d("writing close packet"),C.write([{type:"close"}])}"open"===this.readyState?(d("transport open - closing"),x()):(d("transport not open - deferring close"),this.once("open",x))},b.prototype.write=function(C){var x=this;this.writable=!1;var w=function(){x.writable=!0,x.emit("drain")};o.encodePayload(C,this.supportsBinary,function(g){x.doWrite(g,w)})},b.prototype.uri=function(){var C=this.query||{},x=this.secure?"https":"http",w="";return!1!==this.timestampRequests&&(C[this.timestampParam]=v()),!this.supportsBinary&&!C.sid&&(C.b64=1),C=e.encode(C),this.port&&("https"===x&&443!==Number(this.port)||"http"===x&&80!==Number(this.port))&&(w=":"+this.port),C.length&&(C="?"+C),x+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+w+this.path+C}},3909:(G,P,a)=>{var u,b,n=a(3330),e=a(2580),o=a(3257),l=a(9471),v=a(1067),d=a(2534)("engine.io-client:websocket");if(typeof WebSocket<"u"?u=WebSocket:typeof self<"u"&&(u=self.WebSocket||self.MozWebSocket),typeof window>"u")try{b=a(7020)}catch{}var C=u||b;function x(w){w&&w.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=w.perMessageDeflate,this.usingBrowserWebSocket=u&&!w.forceNode,this.protocols=w.protocols,this.usingBrowserWebSocket||(C=b),n.call(this,w)}G.exports=x,l(x,n),x.prototype.name="websocket",x.prototype.supportsBinary=!0,x.prototype.doOpen=function(){if(this.check()){var w=this.uri(),g=this.protocols,f={};this.isReactNative||(f.agent=this.agent,f.perMessageDeflate=this.perMessageDeflate,f.pfx=this.pfx,f.key=this.key,f.passphrase=this.passphrase,f.cert=this.cert,f.ca=this.ca,f.ciphers=this.ciphers,f.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(f.headers=this.extraHeaders),this.localAddress&&(f.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?g?new C(w,g):new C(w):new C(w,g,f)}catch(S){return this.emit("error",S)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},x.prototype.addEventListeners=function(){var w=this;this.ws.onopen=function(){w.onOpen()},this.ws.onclose=function(){w.onClose()},this.ws.onmessage=function(g){w.onData(g.data)},this.ws.onerror=function(g){w.onError("websocket error",g)}},x.prototype.write=function(w){var g=this;this.writable=!1;for(var f=w.length,S=0,j=f;S<j;S++)!function(Z){e.encodePacket(Z,g.supportsBinary,function(le){if(!g.usingBrowserWebSocket){var q={};Z.options&&(q.compress=Z.options.compress),g.perMessageDeflate&&("string"==typeof le?Buffer.byteLength(le):le.length)<g.perMessageDeflate.threshold&&(q.compress=!1)}try{g.usingBrowserWebSocket?g.ws.send(le):g.ws.send(le,q)}catch{d("websocket closed before onclose event")}--f||(g.emit("flush"),setTimeout(function(){g.writable=!0,g.emit("drain")},0))})}(w[S])},x.prototype.onClose=function(){n.prototype.onClose.call(this)},x.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()},x.prototype.uri=function(){var w=this.query||{},g=this.secure?"wss":"ws",f="";return this.port&&("wss"===g&&443!==Number(this.port)||"ws"===g&&80!==Number(this.port))&&(f=":"+this.port),this.timestampRequests&&(w[this.timestampParam]=v()),this.supportsBinary||(w.b64=1),(w=o.encode(w)).length&&(w="?"+w),g+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+f+this.path+w},x.prototype.check=function(){return!(!C||"__initialize"in C&&this.name===x.prototype.name)}},3260:(G,P,a)=>{var n=a(764),e=a(851);G.exports=function(o){var l=o.xdomain,v=o.xscheme,d=o.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!l||n))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!v&&d)return new XDomainRequest}catch{}if(!l)try{return new(e[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch{}}},2534:(G,P,a)=>{function v(){var u;try{u=P.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}(P=G.exports=a(4071)).log=function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},P.formatArgs=function e(u){var b=this.useColors;if(u[0]=(b?"%c":"")+this.namespace+(b?" %c":" ")+u[0]+(b?"%c ":" ")+"+"+P.humanize(this.diff),b){var C="color: "+this.color;u.splice(1,0,C,"color: inherit");var x=0,w=0;u[0].replace(/%[a-zA-Z%]/g,function(g){"%%"!==g&&(x++,"%c"===g&&(w=x))}),u.splice(w,0,C)}},P.save=function l(u){try{null==u?P.storage.removeItem("debug"):P.storage.debug=u}catch{}},P.load=v,P.useColors=function n(){return!!(typeof window<"u"&&window.process&&"renderer"===window.process.type)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},P.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function d(){try{return window.localStorage}catch{}}(),P.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],P.formatters.j=function(u){try{return JSON.stringify(u)}catch(b){return"[UnexpectedJSONParseError]: "+b.message}},P.enable(v())},4071:(G,P,a)=>{function e(b){var C;function x(){if(x.enabled){var w=x,g=+new Date;w.diff=g-(C||g),w.prev=C,w.curr=g,C=g;for(var S=new Array(arguments.length),j=0;j<S.length;j++)S[j]=arguments[j];S[0]=P.coerce(S[0]),"string"!=typeof S[0]&&S.unshift("%O");var B=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,function(le,q){if("%%"===le)return le;B++;var X=P.formatters[q];return"function"==typeof X&&(le=X.call(w,S[B]),S.splice(B,1),B--),le}),P.formatArgs.call(w,S),(x.log||P.log||console.log.bind(console)).apply(w,S)}}return x.namespace=b,x.enabled=P.enabled(b),x.useColors=P.useColors(),x.color=function n(b){var x,C=0;for(x in b)C=(C<<5)-C+b.charCodeAt(x),C|=0;return P.colors[Math.abs(C)%P.colors.length]}(b),x.destroy=o,"function"==typeof P.init&&P.init(x),P.instances.push(x),x}function o(){var b=P.instances.indexOf(this);return-1!==b&&(P.instances.splice(b,1),!0)}(P=G.exports=e.debug=e.default=e).coerce=function u(b){return b instanceof Error?b.stack||b.message:b},P.disable=function v(){P.enable("")},P.enable=function l(b){P.save(b),P.names=[],P.skips=[];var C,x=("string"==typeof b?b:"").split(/[\s,]+/),w=x.length;for(C=0;C<w;C++)x[C]&&("-"===(b=x[C].replace(/\*/g,".*?"))[0]?P.skips.push(new RegExp("^"+b.substr(1)+"$")):P.names.push(new RegExp("^"+b+"$")));for(C=0;C<P.instances.length;C++){var g=P.instances[C];g.enabled=P.enabled(g.namespace)}},P.enabled=function d(b){if("*"===b[b.length-1])return!0;var C,x;for(C=0,x=P.skips.length;C<x;C++)if(P.skips[C].test(b))return!1;for(C=0,x=P.names.length;C<x;C++)if(P.names[C].test(b))return!0;return!1},P.humanize=a(20),P.instances=[],P.names=[],P.skips=[],P.formatters={}},20:G=>{var P=1e3,a=60*P,n=60*a,e=24*n;function u(b,C,x){if(!(b<C))return b<1.5*C?Math.floor(b/C)+" "+x:Math.ceil(b/C)+" "+x+"s"}G.exports=function(b,C){C=C||{};var x=typeof b;if("string"===x&&b.length>0)return function l(b){if(!((b=String(b)).length>100)){var C=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(b);if(C){var x=parseFloat(C[1]);switch((C[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*x;case"days":case"day":case"d":return x*e;case"hours":case"hour":case"hrs":case"hr":case"h":return x*n;case"minutes":case"minute":case"mins":case"min":case"m":return x*a;case"seconds":case"second":case"secs":case"sec":case"s":return x*P;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return x;default:return}}}}(b);if("number"===x&&!1===isNaN(b))return C.long?function d(b){return u(b,e,"day")||u(b,n,"hour")||u(b,a,"minute")||u(b,P,"second")||b+" ms"}(b):function v(b){return b>=e?Math.round(b/e)+"d":b>=n?Math.round(b/n)+"h":b>=a?Math.round(b/a)+"m":b>=P?Math.round(b/P)+"s":b+"ms"}(b);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(b))}},2580:(G,P,a)=>{var d,n=a(4871),e=a(988),o=a(9933),l=a(8498),v=a(5407);typeof ArrayBuffer<"u"&&(d=a(390));var u=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),b=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),C=u||b;P.protocol=3;var x=P.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},w=n(x),g={type:"error",data:"parser error"},f=a(113);function q(X,K,U){for(var me=new Array(X.length),xe=l(X.length,U),ne=function(Oe,nt,qe){K(nt,function(ct,ot){me[Oe]=ot,qe(ct,me)})},Ze=0;Ze<X.length;Ze++)ne(Ze,X[Ze],xe)}P.encodePacket=function(X,K,U,me){"function"==typeof K&&(me=K,K=!1),"function"==typeof U&&(me=U,U=null);var xe=void 0===X.data?void 0:X.data.buffer||X.data;if(typeof ArrayBuffer<"u"&&xe instanceof ArrayBuffer)return function j(X,K,U){if(!K)return P.encodeBase64Packet(X,U);var me=X.data,xe=new Uint8Array(me),ne=new Uint8Array(1+me.byteLength);ne[0]=x[X.type];for(var Ze=0;Ze<xe.length;Ze++)ne[Ze+1]=xe[Ze];return U(ne.buffer)}(X,K,me);if(typeof f<"u"&&xe instanceof f)return function Z(X,K,U){if(!K)return P.encodeBase64Packet(X,U);if(C)return function B(X,K,U){if(!K)return P.encodeBase64Packet(X,U);var me=new FileReader;return me.onload=function(){P.encodePacket({type:X.type,data:me.result},K,!0,U)},me.readAsArrayBuffer(X.data)}(X,K,U);var me=new Uint8Array(1);return me[0]=x[X.type],U(new f([me.buffer,X.data]))}(X,K,me);if(xe&&xe.base64)return function S(X,K){return K("b"+P.packets[X.type]+X.data.data)}(X,me);var ne=x[X.type];return void 0!==X.data&&(ne+=U?v.encode(String(X.data),{strict:!1}):String(X.data)),me(""+ne)},P.encodeBase64Packet=function(X,K){var xe,U="b"+P.packets[X.type];if(typeof f<"u"&&X.data instanceof f){var me=new FileReader;return me.onload=function(){var nt=me.result.split(",")[1];K(U+nt)},me.readAsDataURL(X.data)}try{xe=String.fromCharCode.apply(null,new Uint8Array(X.data))}catch{for(var ne=new Uint8Array(X.data),Ze=new Array(ne.length),Oe=0;Oe<ne.length;Oe++)Ze[Oe]=ne[Oe];xe=String.fromCharCode.apply(null,Ze)}return U+=btoa(xe),K(U)},P.decodePacket=function(X,K,U){if(void 0===X)return g;if("string"==typeof X){if("b"===X.charAt(0))return P.decodeBase64Packet(X.substr(1),K);if(U&&!1===(X=function le(X){try{X=v.decode(X,{strict:!1})}catch{return!1}return X}(X)))return g;var xe=X.charAt(0);return Number(xe)==xe&&w[xe]?X.length>1?{type:w[xe],data:X.substring(1)}:{type:w[xe]}:g}xe=new Uint8Array(X)[0];var ne=o(X,1);return f&&"blob"===K&&(ne=new f([ne])),{type:w[xe],data:ne}},P.decodeBase64Packet=function(X,K){var U=w[X.charAt(0)];if(!d)return{type:U,data:{base64:!0,data:X.substr(1)}};var me=d.decode(X.substr(1));return"blob"===K&&f&&(me=new f([me])),{type:U,data:me}},P.encodePayload=function(X,K,U){"function"==typeof K&&(U=K,K=null);var me=e(X);return K&&me?f&&!C?P.encodePayloadAsBlob(X,U):P.encodePayloadAsArrayBuffer(X,U):X.length?void q(X,function ne(Ze,Oe){P.encodePacket(Ze,!!me&&K,!1,function(nt){Oe(null,function xe(Ze){return Ze.length+":"+Ze}(nt))})},function(Ze,Oe){return U(Oe.join(""))}):U("0:")},P.decodePayload=function(X,K,U){if("string"!=typeof X)return P.decodePayloadAsBinary(X,K,U);var me;if("function"==typeof K&&(U=K,K=null),""===X)return U(g,0,1);for(var ne,Ze,xe="",Oe=0,nt=X.length;Oe<nt;Oe++){var qe=X.charAt(Oe);if(":"===qe){if(""===xe||xe!=(ne=Number(xe))||xe!=(Ze=X.substr(Oe+1,ne)).length)return U(g,0,1);if(Ze.length){if(me=P.decodePacket(Ze,K,!1),g.type===me.type&&g.data===me.data)return U(g,0,1);if(!1===U(me,Oe+ne,nt))return}Oe+=ne,xe=""}else xe+=qe}return""!==xe?U(g,0,1):void 0},P.encodePayloadAsArrayBuffer=function(X,K){if(!X.length)return K(new ArrayBuffer(0));q(X,function U(me,xe){P.encodePacket(me,!0,!0,function(ne){return xe(null,ne)})},function(me,xe){var ne=xe.reduce(function(nt,qe){var ct;return nt+(ct="string"==typeof qe?qe.length:qe.byteLength).toString().length+ct+2},0),Ze=new Uint8Array(ne),Oe=0;return xe.forEach(function(nt){var qe="string"==typeof nt,ct=nt;if(qe){for(var jt=new Uint8Array(nt.length),ot=0;ot<nt.length;ot++)jt[ot]=nt.charCodeAt(ot);ct=jt.buffer}Ze[Oe++]=qe?0:1;var dt=ct.byteLength.toString();for(ot=0;ot<dt.length;ot++)Ze[Oe++]=parseInt(dt[ot]);for(Ze[Oe++]=255,jt=new Uint8Array(ct),ot=0;ot<jt.length;ot++)Ze[Oe++]=jt[ot]}),K(Ze.buffer)})},P.encodePayloadAsBlob=function(X,K){q(X,function U(me,xe){P.encodePacket(me,!0,!0,function(ne){var Ze=new Uint8Array(1);if(Ze[0]=1,"string"==typeof ne){for(var Oe=new Uint8Array(ne.length),nt=0;nt<ne.length;nt++)Oe[nt]=ne.charCodeAt(nt);ne=Oe.buffer,Ze[0]=0}var ct=(ne instanceof ArrayBuffer?ne.byteLength:ne.size).toString(),ot=new Uint8Array(ct.length+1);for(nt=0;nt<ct.length;nt++)ot[nt]=parseInt(ct[nt]);if(ot[ct.length]=255,f){var dt=new f([Ze.buffer,ot.buffer,ne]);xe(null,dt)}})},function(me,xe){return K(new f(xe))})},P.decodePayloadAsBinary=function(X,K,U){"function"==typeof K&&(U=K,K=null);for(var me=X,xe=[];me.byteLength>0;){for(var ne=new Uint8Array(me),Ze=0===ne[0],Oe="",nt=1;255!==ne[nt];nt++){if(Oe.length>310)return U(g,0,1);Oe+=ne[nt]}me=o(me,2+Oe.length),Oe=parseInt(Oe);var qe=o(me,0,Oe);if(Ze)try{qe=String.fromCharCode.apply(null,new Uint8Array(qe))}catch{var ct=new Uint8Array(qe);for(qe="",nt=0;nt<ct.length;nt++)qe+=String.fromCharCode(ct[nt])}xe.push(qe),me=o(me,Oe)}var ot=xe.length;xe.forEach(function(dt,jt){U(P.decodePacket(dt,K,!0),jt,ot)})}},4871:G=>{G.exports=Object.keys||function(a){var n=[],e=Object.prototype.hasOwnProperty;for(var o in a)e.call(a,o)&&n.push(o);return n}},5407:G=>{var b,C,x,P=String.fromCharCode;function a(g){for(var B,Z,f=[],S=0,j=g.length;S<j;)(B=g.charCodeAt(S++))>=55296&&B<=56319&&S<j?56320==(64512&(Z=g.charCodeAt(S++)))?f.push(((1023&B)<<10)+(1023&Z)+65536):(f.push(B),S--):f.push(B);return f}function e(g,f){if(g>=55296&&g<=57343){if(f)throw Error("Lone surrogate U+"+g.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function o(g,f){return P(g>>f&63|128)}function l(g,f){if(!(4294967168&g))return P(g);var S="";return 4294965248&g?4294901760&g?4292870144&g||(S=P(g>>18&7|240),S+=o(g,12),S+=o(g,6)):(e(g,f)||(g=65533),S=P(g>>12&15|224),S+=o(g,6)):S=P(g>>6&31|192),S+P(63&g|128)}function d(){if(x>=C)throw Error("Invalid byte index");var g=255&b[x];if(x++,128==(192&g))return 63&g;throw Error("Invalid continuation byte")}function u(g){var f,Z;if(x>C)throw Error("Invalid byte index");if(x==C)return!1;if(f=255&b[x],x++,!(128&f))return f;if(192==(224&f)){if((Z=(31&f)<<6|d())>=128)return Z;throw Error("Invalid continuation byte")}if(224==(240&f)){if((Z=(15&f)<<12|d()<<6|d())>=2048)return e(Z,g)?Z:65533;throw Error("Invalid continuation byte")}if(240==(248&f)&&(Z=(7&f)<<18|d()<<12|d()<<6|d())>=65536&&Z<=1114111)return Z;throw Error("Invalid UTF-8 detected")}G.exports={version:"2.1.2",encode:function v(g,f){for(var S=!1!==(f=f||{}).strict,j=a(g),B=j.length,Z=-1,q="";++Z<B;)q+=l(j[Z],S);return q},decode:function w(g,f){var S=!1!==(f=f||{}).strict;b=a(g),C=b.length,x=0;for(var B,j=[];!1!==(B=u(S));)j.push(B);return function n(g){for(var j,f=g.length,S=-1,B="";++S<f;)(j=g[S])>65535&&(B+=P((j-=65536)>>>10&1023|55296),j=56320|1023&j),B+=P(j);return B}(j)}}},9069:G=>{"use strict";var n,P="object"==typeof Reflect?Reflect:null,a=P&&"function"==typeof P.apply?P.apply:function(X,K,U){return Function.prototype.apply.call(X,K,U)};n=P&&"function"==typeof P.ownKeys?P.ownKeys:Object.getOwnPropertySymbols?function(X){return Object.getOwnPropertyNames(X).concat(Object.getOwnPropertySymbols(X))}:function(X){return Object.getOwnPropertyNames(X)};var o=Number.isNaN||function(X){return X!=X};function l(){l.init.call(this)}G.exports=l,G.exports.once=function B(q,X){return new Promise(function(K,U){function me(ne){q.removeListener(X,xe),U(ne)}function xe(){"function"==typeof q.removeListener&&q.removeListener("error",me),K([].slice.call(arguments))}le(q,X,xe,{once:!0}),"error"!==X&&function Z(q,X,K){"function"==typeof q.on&&le(q,"error",X,K)}(q,me,{once:!0})})},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var v=10;function d(q){if("function"!=typeof q)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof q)}function u(q){return void 0===q._maxListeners?l.defaultMaxListeners:q._maxListeners}function b(q,X,K,U){var me,xe,ne;if(d(K),void 0===(xe=q._events)?(xe=q._events=Object.create(null),q._eventsCount=0):(void 0!==xe.newListener&&(q.emit("newListener",X,K.listener?K.listener:K),xe=q._events),ne=xe[X]),void 0===ne)ne=xe[X]=K,++q._eventsCount;else if("function"==typeof ne?ne=xe[X]=U?[K,ne]:[ne,K]:U?ne.unshift(K):ne.push(K),(me=u(q))>0&&ne.length>me&&!ne.warned){ne.warned=!0;var Ze=new Error("Possible EventEmitter memory leak detected. "+ne.length+" "+String(X)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ze.name="MaxListenersExceededWarning",Ze.emitter=q,Ze.type=X,Ze.count=ne.length,function e(q){console&&console.warn&&console.warn(q)}(Ze)}return q}function C(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function x(q,X,K){var U={fired:!1,wrapFn:void 0,target:q,type:X,listener:K},me=C.bind(U);return me.listener=K,U.wrapFn=me,me}function w(q,X,K){var U=q._events;if(void 0===U)return[];var me=U[X];return void 0===me?[]:"function"==typeof me?K?[me.listener||me]:[me]:K?function j(q){for(var X=new Array(q.length),K=0;K<X.length;++K)X[K]=q[K].listener||q[K];return X}(me):f(me,me.length)}function g(q){var X=this._events;if(void 0!==X){var K=X[q];if("function"==typeof K)return 1;if(void 0!==K)return K.length}return 0}function f(q,X){for(var K=new Array(X),U=0;U<X;++U)K[U]=q[U];return K}function le(q,X,K,U){if("function"==typeof q.on)U.once?q.once(X,K):q.on(X,K);else{if("function"!=typeof q.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof q);q.addEventListener(X,function me(xe){U.once&&q.removeEventListener(X,me),K(xe)})}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return v},set:function(q){if("number"!=typeof q||q<0||o(q))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+q+".");v=q}}),l.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(X){if("number"!=typeof X||X<0||o(X))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+X+".");return this._maxListeners=X,this},l.prototype.getMaxListeners=function(){return u(this)},l.prototype.emit=function(X){for(var K=[],U=1;U<arguments.length;U++)K.push(arguments[U]);var me="error"===X,xe=this._events;if(void 0!==xe)me=me&&void 0===xe.error;else if(!me)return!1;if(me){var ne;if(K.length>0&&(ne=K[0]),ne instanceof Error)throw ne;var Ze=new Error("Unhandled error."+(ne?" ("+ne.message+")":""));throw Ze.context=ne,Ze}var Oe=xe[X];if(void 0===Oe)return!1;if("function"==typeof Oe)a(Oe,this,K);else{var nt=Oe.length,qe=f(Oe,nt);for(U=0;U<nt;++U)a(qe[U],this,K)}return!0},l.prototype.on=l.prototype.addListener=function(X,K){return b(this,X,K,!1)},l.prototype.prependListener=function(X,K){return b(this,X,K,!0)},l.prototype.once=function(X,K){return d(K),this.on(X,x(this,X,K)),this},l.prototype.prependOnceListener=function(X,K){return d(K),this.prependListener(X,x(this,X,K)),this},l.prototype.off=l.prototype.removeListener=function(X,K){var U,me,xe,ne,Ze;if(d(K),void 0===(me=this._events))return this;if(void 0===(U=me[X]))return this;if(U===K||U.listener===K)0==--this._eventsCount?this._events=Object.create(null):(delete me[X],me.removeListener&&this.emit("removeListener",X,U.listener||K));else if("function"!=typeof U){for(xe=-1,ne=U.length-1;ne>=0;ne--)if(U[ne]===K||U[ne].listener===K){Ze=U[ne].listener,xe=ne;break}if(xe<0)return this;0===xe?U.shift():function S(q,X){for(;X+1<q.length;X++)q[X]=q[X+1];q.pop()}(U,xe),1===U.length&&(me[X]=U[0]),void 0!==me.removeListener&&this.emit("removeListener",X,Ze||K)}return this},l.prototype.removeAllListeners=function(X){var K,U,me;if(void 0===(U=this._events))return this;if(void 0===U.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==U[X]&&(0==--this._eventsCount?this._events=Object.create(null):delete U[X]),this;if(0===arguments.length){var ne,xe=Object.keys(U);for(me=0;me<xe.length;++me)"removeListener"!==(ne=xe[me])&&this.removeAllListeners(ne);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(K=U[X]))this.removeListener(X,K);else if(void 0!==K)for(me=K.length-1;me>=0;me--)this.removeListener(X,K[me]);return this},l.prototype.listeners=function(X){return w(this,X,!0)},l.prototype.rawListeners=function(X){return w(this,X,!1)},l.listenerCount=function(q,X){return"function"==typeof q.listenerCount?q.listenerCount(X):g.call(q,X)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},9441:function(G,P){var a,e;void 0!==(e="function"==typeof(a=function(){"use strict";function l(x,w,g){var f=new XMLHttpRequest;f.open("GET",x),f.responseType="blob",f.onload=function(){C(f.response,w,g)},f.onerror=function(){console.error("could not download file")},f.send()}function v(x){var w=new XMLHttpRequest;w.open("HEAD",x,!1);try{w.send()}catch{}return 200<=w.status&&299>=w.status}function d(x){try{x.dispatchEvent(new MouseEvent("click"))}catch{var w=document.createEvent("MouseEvents");w.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),x.dispatchEvent(w)}}var u="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,b=u.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),C=u.saveAs||("object"!=typeof window||window!==u?function(){}:"download"in HTMLAnchorElement.prototype&&!b?function(x,w,g){var f=u.URL||u.webkitURL,S=document.createElement("a");S.download=w=w||x.name||"download",S.rel="noopener","string"==typeof x?(S.href=x,S.origin===location.origin?d(S):v(S.href)?l(x,w,g):d(S,S.target="_blank")):(S.href=f.createObjectURL(x),setTimeout(function(){f.revokeObjectURL(S.href)},4e4),setTimeout(function(){d(S)},0))}:"msSaveOrOpenBlob"in navigator?function(x,w,g){if(w=w||x.name||"download","string"!=typeof x)navigator.msSaveOrOpenBlob(function o(x,w){return typeof w>"u"?w={autoBom:!1}:"object"!=typeof w&&(console.warn("Deprecated: Expected third argument to be a object"),w={autoBom:!w}),w.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(x.type)?new Blob(["\ufeff",x],{type:x.type}):x}(x,g),w);else if(v(x))l(x,w,g);else{var f=document.createElement("a");f.href=x,f.target="_blank",setTimeout(function(){d(f)})}}:function(x,w,g,f){if((f=f||open("","_blank"))&&(f.document.title=f.document.body.innerText="downloading..."),"string"==typeof x)return l(x,w,g);var S="application/octet-stream"===x.type,j=/constructor/i.test(u.HTMLElement)||u.safari,B=/CriOS\/[\d]+/.test(navigator.userAgent);if((B||S&&j||b)&&typeof FileReader<"u"){var Z=new FileReader;Z.onloadend=function(){var X=Z.result;X=B?X:X.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=X:location=X,f=null},Z.readAsDataURL(x)}else{var le=u.URL||u.webkitURL,q=le.createObjectURL(x);f?f.location=q:location.href=q,f=null,setTimeout(function(){le.revokeObjectURL(q)},4e4)}});u.saveAs=C.saveAs=C,G.exports=C})?a.apply(P,[]):a)&&(G.exports=e)},988:(G,P,a)=>{var n=a(6425),e=Object.prototype.toString,o="function"==typeof Blob||typeof Blob<"u"&&"[object BlobConstructor]"===e.call(Blob),l="function"==typeof File||typeof File<"u"&&"[object FileConstructor]"===e.call(File);G.exports=function v(d){if(!d||"object"!=typeof d)return!1;if(n(d)){for(var u=0,b=d.length;u<b;u++)if(v(d[u]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(d)||"function"==typeof ArrayBuffer&&d instanceof ArrayBuffer||o&&d instanceof Blob||l&&d instanceof File)return!0;if(d.toJSON&&"function"==typeof d.toJSON&&1===arguments.length)return v(d.toJSON(),!0);for(var C in d)if(Object.prototype.hasOwnProperty.call(d,C)&&v(d[C]))return!0;return!1}},764:G=>{try{G.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{G.exports=!1}},8461:(G,P)=>{P.read=function(a,n,e,o,l){var v,d,u=8*l-o-1,b=(1<<u)-1,C=b>>1,x=-7,w=e?l-1:0,g=e?-1:1,f=a[n+w];for(w+=g,v=f&(1<<-x)-1,f>>=-x,x+=u;x>0;v=256*v+a[n+w],w+=g,x-=8);for(d=v&(1<<-x)-1,v>>=-x,x+=o;x>0;d=256*d+a[n+w],w+=g,x-=8);if(0===v)v=1-C;else{if(v===b)return d?NaN:1/0*(f?-1:1);d+=Math.pow(2,o),v-=C}return(f?-1:1)*d*Math.pow(2,v-o)},P.write=function(a,n,e,o,l,v){var d,u,b,C=8*v-l-1,x=(1<<C)-1,w=x>>1,g=23===l?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:v-1,S=o?1:-1,j=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(u=isNaN(n)?1:0,d=x):(d=Math.floor(Math.log(n)/Math.LN2),n*(b=Math.pow(2,-d))<1&&(d--,b*=2),(n+=d+w>=1?g/b:g*Math.pow(2,1-w))*b>=2&&(d++,b/=2),d+w>=x?(u=0,d=x):d+w>=1?(u=(n*b-1)*Math.pow(2,l),d+=w):(u=n*Math.pow(2,w-1)*Math.pow(2,l),d=0));l>=8;a[e+f]=255&u,f+=S,u/=256,l-=8);for(d=d<<l|u,C+=l;C>0;a[e+f]=255&d,f+=S,d/=256,C-=8);a[e+f-S]|=128*j}},9424:(G,P)=>{var n,e={version:"1.1.0",options:{debug:!1,localCacheFolder:"imgcache",useDataURI:!1,chromeQuota:10485760,usePersistentCache:!0,cacheClearSize:0,headers:{},withCredentials:!1,skipURIencoding:!1,cordovaFilesystemRoot:null,timeout:0},overridables:{hash:function(d){function u(g,f,S){for(;0<S--;)g.push(f)}function b(g,f){return g<<f|g>>>32-f}function C(g,f,S){return g^f^S}function x(g,f){var S=(65535&f)+(65535&g);return(65535&(f>>>16)+(g>>>16)+(S>>>16))<<16|65535&S}var w="0123456789abcdef";return function(g){for(var j,f=[],S=4*g.length,B=0;B<S;B++)f.push(w.charAt((j=g[B>>2]>>8*(3-B%4))>>4&15)+w.charAt(15&j));return f.join("")}(function(g,f){var S,j,B,Z,le,ct,q=g.length,X=1732584193,K=4023233417,U=2562383102,me=271733878,xe=3285377520,ne=[];u(ne,1518500249,20),u(ne,1859775393,20),u(ne,2400959708,20),u(ne,3395469782,20),g[f>>5]|=128<<24-f%32,g[15+(f+65>>9<<4)]=f;for(var Ze=0;Ze<q;Ze+=16){S=X,j=K,B=U,Z=me,le=xe;for(var Oe=0,nt=[];Oe<80;Oe++){nt[Oe]=Oe<16?g[Oe+Ze]:b(nt[Oe-3]^nt[Oe-8]^nt[Oe-14]^nt[Oe-16],1);var qe=function(ct,ot,dt,jt,zt){var ti=(65535&zt)+(65535&ct)+(65535&ot)+(65535&dt)+(65535&jt);return(65535&(zt>>>16)+(ct>>>16)+(ot>>>16)+(dt>>>16)+(jt>>>16)+(ti>>>16))<<16|65535&ti}(Oe<20?(ct=j)&B^~ct&Z:Oe<40?C(j,B,Z):Oe<60?function(ct,ot,dt){return ct&ot^ct&dt^ot&dt}(j,B,Z):C(j,B,Z),le,ne[Oe],nt[Oe],b(S,5));le=Z,Z=B,B=b(j,30),j=S,S=qe}X=x(X,S),K=x(K,j),U=x(U,B),me=x(me,Z),xe=x(xe,le)}return[X,K,U,me,xe]}(function(g){for(var f=[],j=8*g.length,B=0;B<j;B+=8)f[B>>5]|=(255&g.charCodeAt(B/8))<<24-B%32;return f}(d).slice(),8*d.length))},log:function(d,u){"use strict";e.options.debug&&(u===o&&(d="INFO: "+d),u===l&&(d="WARN: "+d),u===v&&(d="ERROR: "+d),console.log(d))}},ready:!1,attributes:{}},o=1,l=2,v=3;!function(d){"use strict";var u={sanitizeURI:function(f){return e.options.skipURIencoding?f:(f.length>=2&&'"'===f[0]&&'"'===f[f.length-1]&&(f=f.substr(1,f.length-2)),encodeURI(f))},URI:function(f){f||(f="");var j=f.match(/^(?:([^:\/?\#]+):)?(?:\/\/([^\/?\#]*))?([^?\#]*)(?:\?([^\#]*))?(?:\#(.*))?/);this.scheme=j[1]||null,this.authority=j[2]||null,this.path=j[3]||null,this.query=j[4]||null,this.fragment=j[5]||null},URIGetFileName:function(f){if(f){var S=f.lastIndexOf("/");if(S)return f.substr(S+1).toLowerCase()}},URIGetPath:function(f){if(f)return u.URI(f).path.toLowerCase()},fileGetExtension:function(f){if(!f)return"";var S=(f=f.split("?")[0]).split(".").pop();return!S||S.length>4?"":S},appendPaths:function(f,S){return S||(S=""),f&&""!==f?f+("/"==f[f.length-1]||S.length>0&&"/"==S[0]?"":"/")+S:(S.length>0&&"/"==S[0]?"":"/")+S},hasJqueryOrJqueryLite:function(){return e.jQuery||e.jQueryLite},isCordova:function(){return typeof cordova<"u"||typeof phonegap<"u"},isCordovaAndroid:function(){return u.isCordova()&&device&&device.platform&&device.platform.toLowerCase().indexOf("android")>=0},isCordovaWindowsPhone:function(){return u.isCordova()&&device&&device.platform&&(device.platform.toLowerCase().indexOf("win32nt")>=0||device.platform.toLowerCase().indexOf("windows")>=0)},isCordovaIOS:function(){return u.isCordova()&&device&&device.platform&&"ios"===device.platform.toLowerCase()},isCordovaAndroidOlderThan3_3:function(){return u.isCordovaAndroid()&&device.version&&(0===device.version.indexOf("2.")||0===device.version.indexOf("3.0")||0===device.version.indexOf("3.1")||0===device.version.indexOf("3.2"))},isCordovaAndroidOlderThan4:function(){return u.isCordovaAndroid()&&device.version&&(0===device.version.indexOf("2.")||0===device.version.indexOf("3."))},EntryToURL:function(f){return u.isCordovaAndroidOlderThan4()&&"function"==typeof f.toNativeURL?f.toNativeURL():"function"==typeof f.toInternalURL?f.toInternalURL():f.toURL()},EntryGetURL:function(f){return"function"==typeof f.toURL?u.EntryToURL(f):f.toURI()},EntryGetPath:function(f){return u.isCordova()?u.isCordovaIOS()?u.isCordovaAndroidOlderThan3_3()?f.fullPath:f.nativeURL:"function"==typeof f.toURL?u.EntryToURL(f):f.fullPath:f.fullPath},getCordovaStorageType:function(f){if(typeof LocalFileSystem<"u"){if(f&&LocalFileSystem.hasOwnProperty("PERSISTENT"))return LocalFileSystem.PERSISTENT;if(!f&&LocalFileSystem.hasOwnProperty("TEMPORARY"))return LocalFileSystem.TEMPORARY}return f?window.PERSISTENT:window.TEMPORARY}},b={trigger:function(f,S){e.jQuery?d(f).trigger(S):((u.isCordovaWindowsPhone()||!window.CustomEvent)&&(window.CustomEvent=function(B,Z){var le;Z=Z||{bubbles:!1,cancelable:!1,detail:void 0};try{(le=document.createEvent("CustomEvent")).initCustomEvent(B,Z.bubbles,Z.cancelable,Z.detail)}catch{(le=document.createEvent("Event")).initEvent(B,Z.bubbles,Z.cancelable),le.detail=Z.detail}return le}),f.dispatchEvent(new CustomEvent(S)))},removeAttribute:function(f,S){u.hasJqueryOrJqueryLite()?f.removeAttr(S):f.removeAttribute(S)},setAttribute:function(f,S,j){u.hasJqueryOrJqueryLite()?f.attr(S,j):f.setAttribute(S,j)},getAttribute:function(f,S){return u.hasJqueryOrJqueryLite()?f.attr(S):f.getAttribute(S)},getBackgroundImage:function(f){if(u.hasJqueryOrJqueryLite())return f.attr("data-old-background")?"url("+f.attr("data-old-background")+")":f.css("background-image");var S=window.getComputedStyle(f,null);return S?f.getAttribute("data-old-background")?"url("+f.getAttribute("data-old-background")+")":S.backgroundImage:void 0},setBackgroundImage:function(f,S){u.hasJqueryOrJqueryLite()?f.css("background-image",S):f.style.backgroundImage=S}},C={attributes:{},isImgCacheLoaded:function(){return!(!e.attributes.filesystem||!e.attributes.dirEntry)||(e.overridables.log("ImgCache not loaded yet! - Have you called ImgCache.init() first?",l),!1)}};C.attributes.hasLocalStorage=!1,C.hasLocalStorage=function(){if(C.attributes.hasLocalStorage)return C.attributes.hasLocalStorage;try{var f=e.overridables.hash("imgcache_test");return localStorage.setItem(f,f),localStorage.removeItem(f),C.attributes.hasLocalStorage=!0,!0}catch(S){return e.overridables.log("Could not write to local storage: "+S.message,o),!1}},C.setCurrentSize=function(f){e.overridables.log("current size: "+f,o),C.hasLocalStorage()&&localStorage.setItem("imgcache:"+e.options.localCacheFolder,f)},C.getCachedFilePath=function(f){return u.appendPaths(e.options.localCacheFolder,C.getCachedFileName(f))},C.getCachedFileFullPath=function(f){var S=u.EntryGetPath(e.attributes.dirEntry);return u.appendPaths(S,C.getCachedFileName(f))},C.getCachedFileName=function(f){if(f){var S=e.overridables.hash(f),j=u.fileGetExtension(u.URIGetFileName(f));return S+(j?"."+j:"")}e.overridables.log("No source given to getCachedFileName",l)},C.setNewImgPath=function(f,S,j){b.setAttribute(f,"src",S),b.setAttribute(f,x,j)},C.createCacheDir=function(f,S){if(!e.attributes.filesystem)return e.overridables.log("Filesystem instance was not initialised",v),void(S&&S());var j=function(Z){e.overridables.log("Failed to get/create local cache directory: "+Z.code,v),S&&S()};e.attributes.filesystem.root.getDirectory(e.options.localCacheFolder,{create:!0,exclusive:!1},function(Z){e.attributes.dirEntry=Z,e.overridables.log("Local cache folder opened: "+u.EntryGetPath(Z),o),u.isCordovaAndroid()?Z.getFile(".nomedia",{create:!0,exclusive:!1},function(){e.overridables.log(".nomedia file created.",o),f&&f()},j):(u.isCordovaWindowsPhone()||u.isCordovaIOS()&&Z.setMetadata&&Z.setMetadata(function(){e.overridables.log("com.apple.MobileBackup metadata set",o)},function(){e.overridables.log("com.apple.MobileBackup metadata could not be set",l)},{"com.apple.MobileBackup":1}),f&&f()),e.ready=!0,b.trigger(document,g)},j)},C.FileTransferWrapper=function(f){u.isCordova()&&(this.fileTransfer=new FileTransfer),this.filesystem=f},C.FileTransferWrapper.prototype.download=function(f,S,j,B,Z){var le=e.options.headers||{},q="function"==typeof Z;if(this.fileTransfer)return q&&(this.fileTransfer.onprogress=Z),this.fileTransfer.download(f,S,j,B,!1,{headers:le});var X=this.filesystem,K=function(xe,ne,Ze){e.overridables.log(xe,ne),Ze&&Ze({code:0,source:f,target:S})},U=new XMLHttpRequest;for(var me in U.open("GET",f,!0),q&&(U.onprogress=Z),e.options.withCredentials&&(U.withCredentials=!0),U.timeout=e.options.timeout,U.responseType="blob",le)U.setRequestHeader(me,le[me]);U.onload=function(){!U.response||200!==U.status&&0!==U.status?K("Image "+f+" could not be downloaded - status: "+U.status,3,B):X.root.getFile(S,{create:!0},function(xe){xe.createWriter(function(ne){ne.onerror=B,ne.onwriteend=function(){j(xe)},ne.write(U.response,B)},B)},B)},U.onerror=function(){K("XHR error - Image "+f+" could not be downloaded - status: "+U.status,3,B)},U.send()},C.getBackgroundImageURL=function(f){var S=b.getBackgroundImage(f);if(S)return/url\s?\((.+)\)/.exec(S)[1].replace(/(['"])/g,"")},C.loadCachedFile=function(f,S,j,B,Z){if(C.isImgCacheLoaded()&&f){var le=u.URIGetFileName(S);e.attributes.filesystem.root.getFile(C.getCachedFilePath(S),{create:!1},function(K){if(e.options.useDataURI)K.file(function(ne){var Ze=new FileReader;Ze.onloadend=function(Oe){var nt=Oe.target.result;if(!nt)return e.overridables.log("File in cache "+le+" is empty",l),void(Z&&Z(f));j(f,nt,S),e.overridables.log("File "+le+" loaded from cache",o),B&&B(f)},Ze.readAsDataURL(ne)},function(ne){e.overridables.log("Failed to read file "+ne.code,v),Z&&Z(f)});else{var xe=u.EntryGetURL(K);j(f,xe,S),e.overridables.log("File "+le+" loaded from cache",o),B&&B(f)}},function(){e.overridables.log("File "+le+" not in cache",o),Z&&Z(f)})}};var x="data-old-src",w="data-old-background",g="ImgCacheReady";e.init=function(f,S){e.jQuery=!(!window.jQuery&&!window.Zepto),e.jQueryLite=!!(typeof window.angular<"u"&&window.angular.element),e.attributes.init_callback=f,e.overridables.log("ImgCache initialising",o);var B=function(X){e.overridables.log("LocalFileSystem opened",o),e.attributes.filesystem=X,C.createCacheDir(function(){!function(X){e.options.cacheClearSize>0&&e.getCurrentSize()>1024*e.options.cacheClearSize*1024?e.clearCache(X,X):X&&X()}(e.attributes.init_callback)},S)},Z=function(X){e.overridables.log("Failed to initialise LocalFileSystem "+X.code,v),S&&S()};if(u.isCordova()&&window.requestFileSystem)if(e.options.cordovaFilesystemRoot)try{window.resolveLocalFileSystemURL(e.options.cordovaFilesystemRoot,function(X){B({root:X})},Z)}catch(X){Z({code:X.message})}else window.requestFileSystem(u.getCordovaStorageType(e.options.usePersistentCache),0,B,Z);else{var le=window.requestFileSystem||window.webkitRequestFileSystem;if(window.storageInfo=window.storageInfo||(e.options.usePersistentCache?navigator.webkitPersistentStorage:navigator.webkitTemporaryStorage),!window.storageInfo)return e.overridables.log("Your browser does not support the html5 File API",l),void(S&&S());var q=e.options.chromeQuota;window.storageInfo.requestQuota(q,function(){var X=e.options.usePersistentCache?window.storageInfo.PERSISTENT:window.storageInfo.TEMPORARY;le(X,q,B,Z)},function(X){e.overridables.log("Failed to request quota: "+X.message,v),S&&S()})}},e.getCurrentSize=function(){if(C.hasLocalStorage()){var f=localStorage.getItem("imgcache:"+e.options.localCacheFolder);return null===f?0:parseInt(f,10)}return 0},e.cacheFile=function(f,S,j,B){if(C.isImgCacheLoaded()&&f){f=u.sanitizeURI(f);var Z=C.getCachedFileFullPath(f);new C.FileTransferWrapper(e.attributes.filesystem).download(f,Z,function(q){q.getMetadata(function(X){X&&"size"in X?(e.overridables.log("Cached file size: "+X.size,o),C.setCurrentSize(e.getCurrentSize()+parseInt(X.size,10))):e.overridables.log("No metadata size property available",o)}),e.overridables.log("Download complete: "+u.EntryGetPath(q),o),q.setMetadata&&q.setMetadata(function(){e.overridables.log("com.apple.MobileBackup metadata set",o)},function(){e.overridables.log("com.apple.MobileBackup metadata could not be set",l)},{"com.apple.MobileBackup":1}),S&&S(q.toURL())},function(q){q.source&&e.overridables.log("Download error source: "+q.source,v),q.target&&e.overridables.log("Download error target: "+q.target,v),e.overridables.log("Download error code: "+q.code,v),j&&j()},B)}},e.getCachedFile=function(f,S){if(C.isImgCacheLoaded()&&S){var j=f;f=u.sanitizeURI(f);var B=C.getCachedFilePath(f);u.isCordovaAndroid()&&0===B.indexOf("file://")&&(B=B.substr(7)),e.attributes.filesystem.root.getFile(B,{create:!1},function(Z){S(f,Z)},function(){S(j,null)})}},e.getCachedFileURL=function(f,S,j){e.getCachedFile(f,function(Z,le){le?S(Z,u.EntryGetURL(le)):j&&j(Z)})},e.isCached=function(f,S){e.getCachedFile(f,function(j,B){S(j,null!==B)})},e.useOnlineFile=function(f){if(C.isImgCacheLoaded()&&f){var S=b.getAttribute(f,x);S&&b.setAttribute(f,"src",S),b.removeAttribute(f,x)}},e.useCachedFile=function(f,S,j){C.isImgCacheLoaded()&&C.loadCachedFile(f,b.getAttribute(f,"src"),C.setNewImgPath,S,j)},e.useCachedFileWithSource=function(f,S,j,B){if(C.isImgCacheLoaded()){var Z=u.sanitizeURI(S);C.loadCachedFile(f,Z,C.setNewImgPath,j,B)}},e.clearCache=function(f,S){C.isImgCacheLoaded()&&e.attributes.dirEntry.removeRecursively(function(){e.overridables.log("Local cache cleared",o),C.setCurrentSize(0),C.createCacheDir(f,S)},function(j){e.overridables.log("Failed to remove directory or its contents: "+j.code,v),S&&S()})},e.removeFile=function(f,S,j){f=u.sanitizeURI(f);var B=C.getCachedFilePath(f),Z=function(le){e.overridables.log("Failed to remove file due to "+le.code,v),j&&j()};e.attributes.filesystem.root.getFile(B,{create:!1},function(le){le.remove(function(){S&&S()},Z)},Z)},e.isBackgroundCached=function(f,S){var j=C.getBackgroundImageURL(f);e.getCachedFile(j,function(B,Z){S(B,null!==Z)})},e.cacheBackground=function(f,S,j,B){if(C.isImgCacheLoaded()){var Z=C.getBackgroundImageURL(f);if(!Z)return e.overridables.log("No background to cache",l),void(j&&j());e.overridables.log("Background image URL: "+Z,o),e.cacheFile(Z,S,j,B)}},e.useCachedBackground=function(f,S,j){if(C.isImgCacheLoaded()){var B=C.getBackgroundImageURL(f);if(!B)return e.overridables.log("No background to cache",l),void(j&&j());C.loadCachedFile(f,B,function(le,q,X){b.setBackgroundImage(le,'url("'+q+'")'),b.setAttribute(le,w,X)},S,j)}},e.useBackgroundOnlineFile=function(f){if(f){var S=b.getAttribute(f,w);S&&b.setBackgroundImage(f,'url("'+S+'")'),b.removeAttribute(f,w)}},e.getCacheFolderURI=function(){if(C.isImgCacheLoaded())return u.EntryGetURL(e.attributes.dirEntry)},e.helpers=u,e.domHelpers=b,e.private=C,void 0!==(n=function(){return e}.apply(P,[]))&&(G.exports=n)}(window.jQuery||window.Zepto||function(){throw"jQuery is not available"})},4068:G=>{var P=[].indexOf;G.exports=function(a,n){if(P)return a.indexOf(n);for(var e=0;e<a.length;++e)if(a[e]===n)return e;return-1}},6425:G=>{var P={}.toString;G.exports=Array.isArray||function(a){return"[object Array]"==P.call(a)}},8407:function(G,P){!function(a){"use strict";function e(s){var m,E,Y,ye;for(E=1,Y=arguments.length;E<Y;E++)for(m in ye=arguments[E])s[m]=ye[m];return s}var o=Object.create||function(){function s(){}return function(m){return s.prototype=m,new s}}();function l(s,m){var E=Array.prototype.slice;if(s.bind)return s.bind.apply(s,E.call(arguments,1));var Y=E.call(arguments,2);return function(){return s.apply(m,Y.length?Y.concat(E.call(arguments)):arguments)}}var v=0;function d(s){return"_leaflet_id"in s||(s._leaflet_id=++v),s._leaflet_id}function u(s,m,E){var Y,ye,Xe,Tt;return Tt=function(){Y=!1,ye&&(Xe.apply(E,ye),ye=!1)},Xe=function(){Y?ye=arguments:(s.apply(E,arguments),setTimeout(Tt,m),Y=!0)},Xe}function b(s,m,E){var Y=m[1],ye=m[0],Xe=Y-ye;return s===Y&&E?s:((s-ye)%Xe+Xe)%Xe+ye}function C(){return!1}function x(s,m){if(!1===m)return s;var E=Math.pow(10,void 0===m?6:m);return Math.round(s*E)/E}function w(s){return s.trim?s.trim():s.replace(/^\s+|\s+$/g,"")}function g(s){return w(s).split(/\s+/)}function f(s,m){for(var E in Object.prototype.hasOwnProperty.call(s,"options")||(s.options=s.options?o(s.options):{}),m)s.options[E]=m[E];return s.options}function S(s,m,E){var Y=[];for(var ye in s)Y.push(encodeURIComponent(E?ye.toUpperCase():ye)+"="+encodeURIComponent(s[ye]));return(m&&-1!==m.indexOf("?")?"&":"?")+Y.join("&")}var j=/\{ *([\w_ -]+) *\}/g;function B(s,m){return s.replace(j,function(E,Y){var ye=m[Y];if(void 0===ye)throw new Error("No value provided for variable "+E);return"function"==typeof ye&&(ye=ye(m)),ye})}var Z=Array.isArray||function(s){return"[object Array]"===Object.prototype.toString.call(s)};function le(s,m){for(var E=0;E<s.length;E++)if(s[E]===m)return E;return-1}var q="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function X(s){return window["webkit"+s]||window["moz"+s]||window["ms"+s]}var K=0;function U(s){var m=+new Date,E=Math.max(0,16-(m-K));return K=m+E,window.setTimeout(s,E)}var me=window.requestAnimationFrame||X("RequestAnimationFrame")||U,xe=window.cancelAnimationFrame||X("CancelAnimationFrame")||X("CancelRequestAnimationFrame")||function(s){window.clearTimeout(s)};function ne(s,m,E){if(!E||me!==U)return me.call(window,l(s,m));s.call(m)}function Ze(s){s&&xe.call(window,s)}var Oe={__proto__:null,extend:e,create:o,bind:l,get lastId(){return v},stamp:d,throttle:u,wrapNum:b,falseFn:C,formatNum:x,trim:w,splitWords:g,setOptions:f,getParamString:S,template:B,isArray:Z,indexOf:le,emptyImageUrl:q,requestFn:me,cancelFn:xe,requestAnimFrame:ne,cancelAnimFrame:Ze};function nt(){}nt.extend=function(s){var m=function(){f(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},E=m.__super__=this.prototype,Y=o(E);for(var ye in Y.constructor=m,m.prototype=Y,this)Object.prototype.hasOwnProperty.call(this,ye)&&"prototype"!==ye&&"__super__"!==ye&&(m[ye]=this[ye]);return s.statics&&e(m,s.statics),s.includes&&(function qe(s){if(!(typeof L>"u")&&L&&L.Mixin){s=Z(s)?s:[s];for(var m=0;m<s.length;m++)s[m]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(s.includes),e.apply(null,[Y].concat(s.includes))),e(Y,s),delete Y.statics,delete Y.includes,Y.options&&(Y.options=E.options?o(E.options):{},e(Y.options,s.options)),Y._initHooks=[],Y.callInitHooks=function(){if(!this._initHooksCalled){E.callInitHooks&&E.callInitHooks.call(this),this._initHooksCalled=!0;for(var Xe=0,Tt=Y._initHooks.length;Xe<Tt;Xe++)Y._initHooks[Xe].call(this)}},m},nt.include=function(s){var m=this.prototype.options;return e(this.prototype,s),s.options&&(this.prototype.options=m,this.mergeOptions(s.options)),this},nt.mergeOptions=function(s){return e(this.prototype.options,s),this},nt.addInitHook=function(s){var m=Array.prototype.slice.call(arguments,1),E="function"==typeof s?s:function(){this[s].apply(this,m)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(E),this};var ct={on:function(s,m,E){if("object"==typeof s)for(var Y in s)this._on(Y,s[Y],m);else for(var ye=0,Xe=(s=g(s)).length;ye<Xe;ye++)this._on(s[ye],m,E);return this},off:function(s,m,E){if(arguments.length)if("object"==typeof s)for(var Y in s)this._off(Y,s[Y],m);else{s=g(s);for(var ye=1===arguments.length,Xe=0,Tt=s.length;Xe<Tt;Xe++)ye?this._off(s[Xe]):this._off(s[Xe],m,E)}else delete this._events;return this},_on:function(s,m,E,Y){if("function"==typeof m){if(!1===this._listens(s,m,E)){E===this&&(E=void 0);var ye={fn:m,ctx:E};Y&&(ye.once=!0),this._events=this._events||{},this._events[s]=this._events[s]||[],this._events[s].push(ye)}}else console.warn("wrong listener type: "+typeof m)},_off:function(s,m,E){var Y,ye,Xe;if(this._events&&(Y=this._events[s])){if(1===arguments.length){if(this._firingCount)for(ye=0,Xe=Y.length;ye<Xe;ye++)Y[ye].fn=C;return void delete this._events[s]}if("function"!=typeof m)return void console.warn("wrong listener type: "+typeof m);var Tt=this._listens(s,m,E);!1!==Tt&&(this._firingCount&&(Y[Tt].fn=C,this._events[s]=Y=Y.slice()),Y.splice(Tt,1))}},fire:function(s,m,E){if(!this.listens(s,E))return this;var Y=e({},m,{type:s,target:this,sourceTarget:m&&m.sourceTarget||this});if(this._events){var ye=this._events[s];if(ye){this._firingCount=this._firingCount+1||1;for(var Xe=0,Tt=ye.length;Xe<Tt;Xe++){var Wt=ye[Xe],Yt=Wt.fn;Wt.once&&this.off(s,Yt,Wt.ctx),Yt.call(Wt.ctx||this,Y)}this._firingCount--}}return E&&this._propagateEvent(Y),this},listens:function(s,m,E,Y){"string"!=typeof s&&console.warn('"string" type argument expected');var ye=m;"function"!=typeof m&&(Y=!!m,ye=void 0,E=void 0);var Xe=this._events&&this._events[s];if(Xe&&Xe.length&&!1!==this._listens(s,ye,E))return!0;if(Y)for(var Tt in this._eventParents)if(this._eventParents[Tt].listens(s,m,E,Y))return!0;return!1},_listens:function(s,m,E){if(!this._events)return!1;var Y=this._events[s]||[];if(!m)return!!Y.length;E===this&&(E=void 0);for(var ye=0,Xe=Y.length;ye<Xe;ye++)if(Y[ye].fn===m&&Y[ye].ctx===E)return ye;return!1},once:function(s,m,E){if("object"==typeof s)for(var Y in s)this._on(Y,s[Y],m,!0);else for(var ye=0,Xe=(s=g(s)).length;ye<Xe;ye++)this._on(s[ye],m,E,!0);return this},addEventParent:function(s){return this._eventParents=this._eventParents||{},this._eventParents[d(s)]=s,this},removeEventParent:function(s){return this._eventParents&&delete this._eventParents[d(s)],this},_propagateEvent:function(s){for(var m in this._eventParents)this._eventParents[m].fire(s.type,e({layer:s.target,propagatedFrom:s.target},s),!0)}};ct.addEventListener=ct.on,ct.removeEventListener=ct.clearAllEventListeners=ct.off,ct.addOneTimeEventListener=ct.once,ct.fireEvent=ct.fire,ct.hasEventListeners=ct.listens;var ot=nt.extend(ct);function dt(s,m,E){this.x=E?Math.round(s):s,this.y=E?Math.round(m):m}var jt=Math.trunc||function(s){return s>0?Math.floor(s):Math.ceil(s)};function zt(s,m,E){return s instanceof dt?s:Z(s)?new dt(s[0],s[1]):null==s?s:"object"==typeof s&&"x"in s&&"y"in s?new dt(s.x,s.y):new dt(s,m,E)}function ti(s,m){if(s)for(var E=m?[s,m]:s,Y=0,ye=E.length;Y<ye;Y++)this.extend(E[Y])}function mi(s,m){return!s||s instanceof ti?s:new ti(s,m)}function Qt(s,m){if(s)for(var E=m?[s,m]:s,Y=0,ye=E.length;Y<ye;Y++)this.extend(E[Y])}function Jt(s,m){return s instanceof Qt?s:new Qt(s,m)}function lt(s,m,E){if(isNaN(s)||isNaN(m))throw new Error("Invalid LatLng object: ("+s+", "+m+")");this.lat=+s,this.lng=+m,void 0!==E&&(this.alt=+E)}function _t(s,m,E){return s instanceof lt?s:Z(s)&&"object"!=typeof s[0]?3===s.length?new lt(s[0],s[1],s[2]):2===s.length?new lt(s[0],s[1]):null:null==s?s:"object"==typeof s&&"lat"in s?new lt(s.lat,"lng"in s?s.lng:s.lon,s.alt):void 0===m?null:new lt(s,m,E)}dt.prototype={clone:function(){return new dt(this.x,this.y)},add:function(s){return this.clone()._add(zt(s))},_add:function(s){return this.x+=s.x,this.y+=s.y,this},subtract:function(s){return this.clone()._subtract(zt(s))},_subtract:function(s){return this.x-=s.x,this.y-=s.y,this},divideBy:function(s){return this.clone()._divideBy(s)},_divideBy:function(s){return this.x/=s,this.y/=s,this},multiplyBy:function(s){return this.clone()._multiplyBy(s)},_multiplyBy:function(s){return this.x*=s,this.y*=s,this},scaleBy:function(s){return new dt(this.x*s.x,this.y*s.y)},unscaleBy:function(s){return new dt(this.x/s.x,this.y/s.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=jt(this.x),this.y=jt(this.y),this},distanceTo:function(s){var m=(s=zt(s)).x-this.x,E=s.y-this.y;return Math.sqrt(m*m+E*E)},equals:function(s){return(s=zt(s)).x===this.x&&s.y===this.y},contains:function(s){return s=zt(s),Math.abs(s.x)<=Math.abs(this.x)&&Math.abs(s.y)<=Math.abs(this.y)},toString:function(){return"Point("+x(this.x)+", "+x(this.y)+")"}},ti.prototype={extend:function(s){var m,E;if(!s)return this;if(s instanceof dt||"number"==typeof s[0]||"x"in s)m=E=zt(s);else if(E=(s=mi(s)).max,!(m=s.min)||!E)return this;return this.min||this.max?(this.min.x=Math.min(m.x,this.min.x),this.max.x=Math.max(E.x,this.max.x),this.min.y=Math.min(m.y,this.min.y),this.max.y=Math.max(E.y,this.max.y)):(this.min=m.clone(),this.max=E.clone()),this},getCenter:function(s){return zt((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,s)},getBottomLeft:function(){return zt(this.min.x,this.max.y)},getTopRight:function(){return zt(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(s){var m,E;return(s="number"==typeof s[0]||s instanceof dt?zt(s):mi(s))instanceof ti?(m=s.min,E=s.max):m=E=s,m.x>=this.min.x&&E.x<=this.max.x&&m.y>=this.min.y&&E.y<=this.max.y},intersects:function(s){s=mi(s);var m=this.min,E=this.max,Y=s.min,ye=s.max;return ye.x>=m.x&&Y.x<=E.x&&ye.y>=m.y&&Y.y<=E.y},overlaps:function(s){s=mi(s);var m=this.min,E=this.max,Y=s.min,ye=s.max;return ye.x>m.x&&Y.x<E.x&&ye.y>m.y&&Y.y<E.y},isValid:function(){return!(!this.min||!this.max)},pad:function(s){var m=this.min,E=this.max,Y=Math.abs(m.x-E.x)*s,ye=Math.abs(m.y-E.y)*s;return mi(zt(m.x-Y,m.y-ye),zt(E.x+Y,E.y+ye))},equals:function(s){return!!s&&(s=mi(s),this.min.equals(s.getTopLeft())&&this.max.equals(s.getBottomRight()))}},Qt.prototype={extend:function(s){var Y,ye,m=this._southWest,E=this._northEast;if(s instanceof lt)Y=s,ye=s;else{if(!(s instanceof Qt))return s?this.extend(_t(s)||Jt(s)):this;if(ye=s._northEast,!(Y=s._southWest)||!ye)return this}return m||E?(m.lat=Math.min(Y.lat,m.lat),m.lng=Math.min(Y.lng,m.lng),E.lat=Math.max(ye.lat,E.lat),E.lng=Math.max(ye.lng,E.lng)):(this._southWest=new lt(Y.lat,Y.lng),this._northEast=new lt(ye.lat,ye.lng)),this},pad:function(s){var m=this._southWest,E=this._northEast,Y=Math.abs(m.lat-E.lat)*s,ye=Math.abs(m.lng-E.lng)*s;return new Qt(new lt(m.lat-Y,m.lng-ye),new lt(E.lat+Y,E.lng+ye))},getCenter:function(){return new lt((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new lt(this.getNorth(),this.getWest())},getSouthEast:function(){return new lt(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(s){s="number"==typeof s[0]||s instanceof lt||"lat"in s?_t(s):Jt(s);var Y,ye,m=this._southWest,E=this._northEast;return s instanceof Qt?(Y=s.getSouthWest(),ye=s.getNorthEast()):Y=ye=s,Y.lat>=m.lat&&ye.lat<=E.lat&&Y.lng>=m.lng&&ye.lng<=E.lng},intersects:function(s){s=Jt(s);var m=this._southWest,E=this._northEast,Y=s.getSouthWest(),ye=s.getNorthEast();return ye.lat>=m.lat&&Y.lat<=E.lat&&ye.lng>=m.lng&&Y.lng<=E.lng},overlaps:function(s){s=Jt(s);var m=this._southWest,E=this._northEast,Y=s.getSouthWest(),ye=s.getNorthEast();return ye.lat>m.lat&&Y.lat<E.lat&&ye.lng>m.lng&&Y.lng<E.lng},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(s,m){return!!s&&(s=Jt(s),this._southWest.equals(s.getSouthWest(),m)&&this._northEast.equals(s.getNorthEast(),m))},isValid:function(){return!(!this._southWest||!this._northEast)}},lt.prototype={equals:function(s,m){return!!s&&(s=_t(s),Math.max(Math.abs(this.lat-s.lat),Math.abs(this.lng-s.lng))<=(void 0===m?1e-9:m))},toString:function(s){return"LatLng("+x(this.lat,s)+", "+x(this.lng,s)+")"},distanceTo:function(s){return Ae.distance(this,_t(s))},wrap:function(){return Ae.wrapLatLng(this)},toBounds:function(s){var m=180*s/40075017,E=m/Math.cos(Math.PI/180*this.lat);return Jt([this.lat-m,this.lng-E],[this.lat+m,this.lng+E])},clone:function(){return new lt(this.lat,this.lng,this.alt)}};var s,Fe={latLngToPoint:function(s,m){var E=this.projection.project(s),Y=this.scale(m);return this.transformation._transform(E,Y)},pointToLatLng:function(s,m){var E=this.scale(m),Y=this.transformation.untransform(s,E);return this.projection.unproject(Y)},project:function(s){return this.projection.project(s)},unproject:function(s){return this.projection.unproject(s)},scale:function(s){return 256*Math.pow(2,s)},zoom:function(s){return Math.log(s/256)/Math.LN2},getProjectedBounds:function(s){if(this.infinite)return null;var m=this.projection.bounds,E=this.scale(s);return new ti(this.transformation.transform(m.min,E),this.transformation.transform(m.max,E))},infinite:!1,wrapLatLng:function(s){var m=this.wrapLng?b(s.lng,this.wrapLng,!0):s.lng;return new lt(this.wrapLat?b(s.lat,this.wrapLat,!0):s.lat,m,s.alt)},wrapLatLngBounds:function(s){var m=s.getCenter(),E=this.wrapLatLng(m),Y=m.lat-E.lat,ye=m.lng-E.lng;if(0===Y&&0===ye)return s;var Xe=s.getSouthWest(),Tt=s.getNorthEast();return new Qt(new lt(Xe.lat-Y,Xe.lng-ye),new lt(Tt.lat-Y,Tt.lng-ye))}},Ae=e({},Fe,{wrapLng:[-180,180],R:6371e3,distance:function(s,m){var E=Math.PI/180,Y=s.lat*E,ye=m.lat*E,Xe=Math.sin((m.lat-s.lat)*E/2),Tt=Math.sin((m.lng-s.lng)*E/2),Wt=Xe*Xe+Math.cos(Y)*Math.cos(ye)*Tt*Tt,Yt=2*Math.atan2(Math.sqrt(Wt),Math.sqrt(1-Wt));return this.R*Yt}}),H=6378137,W={R:H,MAX_LATITUDE:85.0511287798,project:function(s){var m=Math.PI/180,E=this.MAX_LATITUDE,Y=Math.max(Math.min(E,s.lat),-E),ye=Math.sin(Y*m);return new dt(this.R*s.lng*m,this.R*Math.log((1+ye)/(1-ye))/2)},unproject:function(s){var m=180/Math.PI;return new lt((2*Math.atan(Math.exp(s.y/this.R))-Math.PI/2)*m,s.x*m/this.R)},bounds:(s=H*Math.PI,new ti([-s,-s],[s,s]))};function He(s,m,E,Y){if(Z(s))return this._a=s[0],this._b=s[1],this._c=s[2],void(this._d=s[3]);this._a=s,this._b=m,this._c=E,this._d=Y}function Te(s,m,E,Y){return new He(s,m,E,Y)}He.prototype={transform:function(s,m){return this._transform(s.clone(),m)},_transform:function(s,m){return s.x=(m=m||1)*(this._a*s.x+this._b),s.y=m*(this._c*s.y+this._d),s},untransform:function(s,m){return new dt((s.x/(m=m||1)-this._b)/this._a,(s.y/m-this._d)/this._c)}};var Be=e({},Ae,{code:"EPSG:3857",projection:W,transformation:function(){var s=.5/(Math.PI*W.R);return Te(s,.5,-s,.5)}()}),mt=e({},Be,{code:"EPSG:900913"});function Pe(s){return document.createElementNS("http://www.w3.org/2000/svg",s)}function Qe(s,m){var Y,ye,Xe,Tt,Wt,Yt,E="";for(Y=0,Xe=s.length;Y<Xe;Y++){for(ye=0,Tt=(Wt=s[Y]).length;ye<Tt;ye++)E+=(ye?"L":"M")+(Yt=Wt[ye]).x+" "+Yt.y;E+=m?se.svg?"z":"x":""}return E||"M0 0"}var ut=document.documentElement.style,te="ActiveXObject"in window,k=te&&!document.addEventListener,R="msLaunchUri"in navigator&&!("documentMode"in document),be=It("webkit"),et=It("android"),Ue=It("android 2")||It("android 3"),ge=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ke=et&&It("Google")&&ge<537&&!("AudioNode"in window),gt=!!window.opera,Pt=!R&&It("chrome"),Bt=It("gecko")&&!be&&!gt&&!te,st=!Pt&&It("safari"),Nt=It("phantom"),at="OTransition"in ut,Lt=0===navigator.platform.indexOf("Win"),Rt=te&&"transition"in ut,ai="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Ue,Xt="MozPerspective"in ut,ui=!window.L_DISABLE_3D&&(Rt||ai||Xt)&&!at&&!Nt,vt=typeof orientation<"u"||It("mobile"),Ut=vt&&be,Zt=vt&&ai,Ci=!window.PointerEvent&&window.MSPointerEvent,_i=!(!window.PointerEvent&&!Ci),pi="ontouchstart"in window||!!window.TouchEvent,Bi=!window.L_NO_TOUCH&&(pi||_i),ze=vt&&gt,ue=vt&&Bt,re=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Ee=function(){var s=!1;try{var m=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",C,m),window.removeEventListener("testPassiveEventSupport",C,m)}catch{}return s}(),Re=!!document.createElement("canvas").getContext,We=!(!document.createElementNS||!Pe("svg").createSVGRect),xt=!!We&&function(){var s=document.createElement("div");return s.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(s.firstChild&&s.firstChild.namespaceURI)}(),Ht=!We&&function(){try{var s=document.createElement("div");s.innerHTML='<v:shape adj="1"/>';var m=s.firstChild;return m.style.behavior="url(#default#VML)",m&&"object"==typeof m.adj}catch{return!1}}();function It(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var se={ie:te,ielt9:k,edge:R,webkit:be,android:et,android23:Ue,androidStock:ke,opera:gt,chrome:Pt,gecko:Bt,safari:st,phantom:Nt,opera12:at,win:Lt,ie3d:Rt,webkit3d:ai,gecko3d:Xt,any3d:ui,mobile:vt,mobileWebkit:Ut,mobileWebkit3d:Zt,msPointer:Ci,pointer:_i,touch:Bi,touchNative:pi,mobileOpera:ze,mobileGecko:ue,retina:re,passiveEvents:Ee,canvas:Re,svg:We,vml:Ht,inlineSvg:xt,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},we=se.msPointer?"MSPointerDown":"pointerdown",Le=se.msPointer?"MSPointerMove":"pointermove",Ie=se.msPointer?"MSPointerUp":"pointerup",Ot=se.msPointer?"MSPointerCancel":"pointercancel",Me={touchstart:we,touchmove:Le,touchend:Ie,touchcancel:Ot},yt={touchstart:function Xi(s,m){m.MSPOINTER_TYPE_TOUCH&&m.pointerType===m.MSPOINTER_TYPE_TOUCH&&Kn(m),ar(s,m)},touchmove:ar,touchend:ar,touchcancel:ar},St={},ii=!1;function Ki(s,m,E){return"touchstart"===m&&function fr(){ii||(document.addEventListener(we,ir,!0),document.addEventListener(Le,Fr,!0),document.addEventListener(Ie,yr,!0),document.addEventListener(Ot,yr,!0),ii=!0)}(),yt[m]?(E=yt[m].bind(this,E),s.addEventListener(Me[m],E,!1),E):(console.warn("wrong event specified:",m),C)}function ir(s){St[s.pointerId]=s}function Fr(s){St[s.pointerId]&&(St[s.pointerId]=s)}function yr(s){delete St[s.pointerId]}function ar(s,m){if(m.pointerType!==(m.MSPOINTER_TYPE_MOUSE||"mouse")){for(var E in m.touches=[],St)m.touches.push(St[E]);m.changedTouches=[m],s(m)}}var Ln=200;var ht,ni,he,li,zi,fo=On(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Si=On(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lr="webkitTransition"===Si||"OTransition"===Si?Si+"End":"transitionend";function Fn(s){return"string"==typeof s?document.getElementById(s):s}function bi(s,m){var E=s.style[m]||s.currentStyle&&s.currentStyle[m];if((!E||"auto"===E)&&document.defaultView){var Y=document.defaultView.getComputedStyle(s,null);E=Y?Y[m]:null}return"auto"===E?null:E}function gi(s,m,E){var Y=document.createElement(s);return Y.className=m||"",E&&E.appendChild(Y),Y}function ji(s){var m=s.parentNode;m&&m.removeChild(s)}function Dn(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function Wn(s){var m=s.parentNode;m&&m.lastChild!==s&&m.appendChild(s)}function pn(s){var m=s.parentNode;m&&m.firstChild!==s&&m.insertBefore(s,m.firstChild)}function qn(s,m){if(void 0!==s.classList)return s.classList.contains(m);var E=Vi(s);return E.length>0&&new RegExp("(^|\\s)"+m+"(\\s|$)").test(E)}function Mi(s,m){if(void 0!==s.classList)for(var E=g(m),Y=0,ye=E.length;Y<ye;Y++)s.classList.add(E[Y]);else if(!qn(s,m)){var Xe=Vi(s);Qn(s,(Xe?Xe+" ":"")+m)}}function qi(s,m){void 0!==s.classList?s.classList.remove(m):Qn(s,w((" "+Vi(s)+" ").replace(" "+m+" "," ")))}function Qn(s,m){void 0===s.className.baseVal?s.className=m:s.className.baseVal=m}function Vi(s){return s.correspondingElement&&(s=s.correspondingElement),void 0===s.className.baseVal?s.className:s.className.baseVal}function Bn(s,m){"opacity"in s.style?s.style.opacity=m:"filter"in s.style&&function Br(s,m){var E=!1,Y="DXImageTransform.Microsoft.Alpha";try{E=s.filters.item(Y)}catch{if(1===m)return}m=Math.round(100*m),E?(E.Enabled=100!==m,E.Opacity=m):s.style.filter+=" progid:"+Y+"(opacity="+m+")"}(s,m)}function On(s){for(var m=document.documentElement.style,E=0;E<s.length;E++)if(s[E]in m)return s[E];return!1}function Yn(s,m,E){var Y=m||new dt(0,0);s.style[fo]=(se.ie3d?"translate("+Y.x+"px,"+Y.y+"px)":"translate3d("+Y.x+"px,"+Y.y+"px,0)")+(E?" scale("+E+")":"")}function Ei(s,m){s._leaflet_pos=m,se.any3d?Yn(s,m):(s.style.left=m.x+"px",s.style.top=m.y+"px")}function Nn(s){return s._leaflet_pos||new dt(0,0)}if("onselectstart"in document)ht=function(){Fi(window,"selectstart",Kn)},ni=function(){cn(window,"selectstart",Kn)};else{var je=On(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ht=function(){if(je){var s=document.documentElement.style;he=s[je],s[je]="none"}},ni=function(){je&&(document.documentElement.style[je]=he,he=void 0)}}function Je(){Fi(window,"dragstart",Kn)}function At(){cn(window,"dragstart",Kn)}function dn(s){for(;-1===s.tabIndex;)s=s.parentNode;s.style&&(en(),li=s,zi=s.style.outlineStyle,s.style.outlineStyle="none",Fi(window,"keydown",en))}function en(){li&&(li.style.outlineStyle=zi,li=void 0,zi=void 0,cn(window,"keydown",en))}function Hn(s){do{s=s.parentNode}while(!(s.offsetWidth&&s.offsetHeight||s===document.body));return s}function Tn(s){var m=s.getBoundingClientRect();return{x:m.width/s.offsetWidth||1,y:m.height/s.offsetHeight||1,boundingClientRect:m}}var Bo={__proto__:null,TRANSFORM:fo,TRANSITION:Si,TRANSITION_END:lr,get:Fn,getStyle:bi,create:gi,remove:ji,empty:Dn,toFront:Wn,toBack:pn,hasClass:qn,addClass:Mi,removeClass:qi,setClass:Qn,getClass:Vi,setOpacity:Bn,testProp:On,setTransform:Yn,setPosition:Ei,getPosition:Nn,get disableTextSelection(){return ht},get enableTextSelection(){return ni},disableImageDrag:Je,enableImageDrag:At,preventOutline:dn,restoreOutline:en,getSizedParentNode:Hn,getScale:Tn};function Fi(s,m,E,Y){if(m&&"object"==typeof m)for(var ye in m)$n(s,ye,m[ye],E);else for(var Xe=0,Tt=(m=g(m)).length;Xe<Tt;Xe++)$n(s,m[Xe],E,Y);return this}var bn="_leaflet_events";function cn(s,m,E,Y){if(1===arguments.length)dr(s),delete s[bn];else if(m&&"object"==typeof m)for(var ye in m)ao(s,ye,m[ye],E);else if(m=g(m),2===arguments.length)dr(s,function(Wt){return-1!==le(m,Wt)});else for(var Xe=0,Tt=m.length;Xe<Tt;Xe++)ao(s,m[Xe],E,Y);return this}function dr(s,m){for(var E in s[bn]){var Y=E.split(/\d/)[0];(!m||m(Y))&&ao(s,Y,null,null,E)}}var eo={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function $n(s,m,E,Y){var ye=m+d(E)+(Y?"_"+d(Y):"");if(s[bn]&&s[bn][ye])return this;var Xe=function(Wt){return E.call(Y||s,Wt||window.event)},Tt=Xe;!se.touchNative&&se.pointer&&0===m.indexOf("touch")?Xe=Ki(s,m,Xe):se.touch&&"dblclick"===m?Xe=function Rn(s,m){s.addEventListener("dblclick",m);var Y,E=0;function ye(Xe){if(1===Xe.detail){if("mouse"!==Xe.pointerType&&(!Xe.sourceCapabilities||Xe.sourceCapabilities.firesTouchEvents)){var Tt=or(Xe);if(!Tt.some(function(Yt){return Yt instanceof HTMLLabelElement&&Yt.attributes.for})||Tt.some(function(Yt){return Yt instanceof HTMLInputElement||Yt instanceof HTMLSelectElement})){var Wt=Date.now();Wt-E<=Ln?2==++Y&&m(function Mn(s){var E,Y,m={};for(Y in s)m[Y]=(E=s[Y])&&E.bind?E.bind(s):E;return s=m,m.type="dblclick",m.detail=2,m.isTrusted=!1,m._simulated=!0,m}(Xe)):Y=1,E=Wt}}}else Y=Xe.detail}return s.addEventListener("click",ye),{dblclick:m,simDblclick:ye}}(s,Xe):"addEventListener"in s?"touchstart"===m||"touchmove"===m||"wheel"===m||"mousewheel"===m?s.addEventListener(eo[m]||m,Xe,!!se.passiveEvents&&{passive:!1}):"mouseenter"===m||"mouseleave"===m?s.addEventListener(eo[m],Xe=function(Wt){Wt=Wt||window.event,Kr(s,Wt)&&Tt(Wt)},!1):s.addEventListener(m,Tt,!1):s.attachEvent("on"+m,Xe),s[bn]=s[bn]||{},s[bn][ye]=Xe}function ao(s,m,E,Y,ye){ye=ye||m+d(E)+(Y?"_"+d(Y):"");var Xe=s[bn]&&s[bn][ye];if(!Xe)return this;!se.touchNative&&se.pointer&&0===m.indexOf("touch")?function Pn(s,m,E){Me[m]?s.removeEventListener(Me[m],E,!1):console.warn("wrong event specified:",m)}(s,m,Xe):se.touch&&"dblclick"===m?function zn(s,m){s.removeEventListener("dblclick",m.dblclick),s.removeEventListener("click",m.simDblclick)}(s,Xe):"removeEventListener"in s?s.removeEventListener(eo[m]||m,Xe,!1):s.detachEvent("on"+m,Xe),s[bn][ye]=null}function Dr(s){return s.stopPropagation?s.stopPropagation():s.originalEvent?s.originalEvent._stopped=!0:s.cancelBubble=!0,this}function Hr(s){return $n(s,"wheel",Dr),this}function Tr(s){return Fi(s,"mousedown touchstart dblclick contextmenu",Dr),s._leaflet_disable_click=!0,this}function Kn(s){return s.preventDefault?s.preventDefault():s.returnValue=!1,this}function Cr(s){return Kn(s),Dr(s),this}function or(s){if(s.composedPath)return s.composedPath();for(var m=[],E=s.target;E;)m.push(E),E=E.parentNode;return m}function Nr(s,m){if(!m)return new dt(s.clientX,s.clientY);var E=Tn(m),Y=E.boundingClientRect;return new dt((s.clientX-Y.left)/E.x-m.clientLeft,(s.clientY-Y.top)/E.y-m.clientTop)}var ur=se.linux&&se.chrome?window.devicePixelRatio:se.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function $r(s){return se.edge?s.wheelDeltaY/2:s.deltaY&&0===s.deltaMode?-s.deltaY/ur:s.deltaY&&1===s.deltaMode?20*-s.deltaY:s.deltaY&&2===s.deltaMode?60*-s.deltaY:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?20*-s.detail:s.detail?s.detail/-32765*60:0}function Kr(s,m){var E=m.relatedTarget;if(!E)return!0;try{for(;E&&E!==s;)E=E.parentNode}catch{return!1}return E!==s}var Pr={__proto__:null,on:Fi,off:cn,stopPropagation:Dr,disableScrollPropagation:Hr,disableClickPropagation:Tr,preventDefault:Kn,stop:Cr,getPropagationPath:or,getMousePosition:Nr,getWheelDelta:$r,isExternalTarget:Kr,addListener:Fi,removeListener:cn},Oo=ot.extend({run:function(s,m,E,Y){this.stop(),this._el=s,this._inProgress=!0,this._duration=E||.25,this._easeOutPower=1/Math.max(Y||.5,.2),this._startPos=Nn(s),this._offset=m.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=ne(this._animate,this),this._step()},_step:function(s){var m=+new Date-this._startTime,E=1e3*this._duration;m<E?this._runFrame(this._easeOut(m/E),s):(this._runFrame(1),this._complete())},_runFrame:function(s,m){var E=this._startPos.add(this._offset.multiplyBy(s));m&&E._round(),Ei(this._el,E),this.fire("step")},_complete:function(){Ze(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(s){return 1-Math.pow(1-s,this._easeOutPower)}}),an=ot.extend({options:{crs:Be,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(s,m){m=f(this,m),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(s),this._initLayout(),this._onResize=l(this._onResize,this),this._initEvents(),m.maxBounds&&this.setMaxBounds(m.maxBounds),void 0!==m.zoom&&(this._zoom=this._limitZoom(m.zoom)),m.center&&void 0!==m.zoom&&this.setView(_t(m.center),m.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Si&&se.any3d&&!se.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Fi(this._proxy,lr,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(s,m,E){return m=void 0===m?this._zoom:this._limitZoom(m),s=this._limitCenter(_t(s),m,this.options.maxBounds),E=E||{},this._stop(),this._loaded&&!E.reset&&!0!==E&&(void 0!==E.animate&&(E.zoom=e({animate:E.animate},E.zoom),E.pan=e({animate:E.animate,duration:E.duration},E.pan)),this._zoom!==m?this._tryAnimatedZoom&&this._tryAnimatedZoom(s,m,E.zoom):this._tryAnimatedPan(s,E.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(s,m,E.pan&&E.pan.noMoveStart),this)},setZoom:function(s,m){return this._loaded?this.setView(this.getCenter(),s,{zoom:m}):(this._zoom=s,this)},zoomIn:function(s,m){return this.setZoom(this._zoom+(s=s||(se.any3d?this.options.zoomDelta:1)),m)},zoomOut:function(s,m){return this.setZoom(this._zoom-(s=s||(se.any3d?this.options.zoomDelta:1)),m)},setZoomAround:function(s,m,E){var Y=this.getZoomScale(m),ye=this.getSize().divideBy(2),Tt=(s instanceof dt?s:this.latLngToContainerPoint(s)).subtract(ye).multiplyBy(1-1/Y),Wt=this.containerPointToLatLng(ye.add(Tt));return this.setView(Wt,m,{zoom:E})},_getBoundsCenterZoom:function(s,m){m=m||{},s=s.getBounds?s.getBounds():Jt(s);var E=zt(m.paddingTopLeft||m.padding||[0,0]),Y=zt(m.paddingBottomRight||m.padding||[0,0]),ye=this.getBoundsZoom(s,!1,E.add(Y));if((ye="number"==typeof m.maxZoom?Math.min(m.maxZoom,ye):ye)===1/0)return{center:s.getCenter(),zoom:ye};var Xe=Y.subtract(E).divideBy(2),Tt=this.project(s.getSouthWest(),ye),Wt=this.project(s.getNorthEast(),ye);return{center:this.unproject(Tt.add(Wt).divideBy(2).add(Xe),ye),zoom:ye}},fitBounds:function(s,m){if(!(s=Jt(s)).isValid())throw new Error("Bounds are not valid.");var E=this._getBoundsCenterZoom(s,m);return this.setView(E.center,E.zoom,m)},fitWorld:function(s){return this.fitBounds([[-90,-180],[90,180]],s)},panTo:function(s,m){return this.setView(s,this._zoom,{pan:m})},panBy:function(s,m){if(m=m||{},!(s=zt(s).round()).x&&!s.y)return this.fire("moveend");if(!0!==m.animate&&!this.getSize().contains(s))return this._resetView(this.unproject(this.project(this.getCenter()).add(s)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Oo,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),m.noMoveStart||this.fire("movestart"),!1!==m.animate){Mi(this._mapPane,"leaflet-pan-anim");var E=this._getMapPanePos().subtract(s).round();this._panAnim.run(this._mapPane,E,m.duration||.25,m.easeLinearity)}else this._rawPanBy(s),this.fire("move").fire("moveend");return this},flyTo:function(s,m,E){if(!1===(E=E||{}).animate||!se.any3d)return this.setView(s,m,E);this._stop();var Y=this.project(this.getCenter()),ye=this.project(s),Xe=this.getSize(),Tt=this._zoom;s=_t(s),m=void 0===m?Tt:m;var Wt=Math.max(Xe.x,Xe.y),Yt=Wt*this.getZoomScale(Tt,m),di=ye.distanceTo(Y)||1,Di=1.42,$i=Di*Di;function un(mr){var Ds=(Yt*Yt-Wt*Wt+(mr?-1:1)*$i*$i*di*di)/(2*(mr?Yt:Wt)*$i*di),ya=Math.sqrt(Ds*Ds+1)-Ds;return ya<1e-9?-18:Math.log(ya)}function Vr(mr){return(Math.exp(mr)-Math.exp(-mr))/2}function wr(mr){return(Math.exp(mr)+Math.exp(-mr))/2}var Ar=un(0);function Rs(mr){return Wt*(wr(Ar)*function po(mr){return Vr(mr)/wr(mr)}(Ar+Di*mr)-Vr(Ar))/$i}var Fs=Date.now(),ns=(un(1)-Ar)/Di,rs=E.duration?1e3*E.duration:1e3*ns*.8;return this._moveStart(!0,E.noMoveStart),function Xr(){var mr=(Date.now()-Fs)/rs,Ko=function sa(mr){return 1-Math.pow(1-mr,1.5)}(mr)*ns;mr<=1?(this._flyToFrame=ne(Xr,this),this._move(this.unproject(Y.add(ye.subtract(Y).multiplyBy(Rs(Ko)/di)),Tt),this.getScaleZoom(Wt/function ds(mr){return Wt*(wr(Ar)/wr(Ar+Di*mr))}(Ko),Tt),{flyTo:!0})):this._move(s,m)._moveEnd(!0)}.call(this),this},flyToBounds:function(s,m){var E=this._getBoundsCenterZoom(s,m);return this.flyTo(E.center,E.zoom,m)},setMaxBounds:function(s){return s=Jt(s),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),s.isValid()?(this.options.maxBounds=s,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(s){var m=this.options.minZoom;return this.options.minZoom=s,this._loaded&&m!==s&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(s):this},setMaxZoom:function(s){var m=this.options.maxZoom;return this.options.maxZoom=s,this._loaded&&m!==s&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,m){this._enforcingBounds=!0;var E=this.getCenter(),Y=this._limitCenter(E,this._zoom,Jt(s));return E.equals(Y)||this.panTo(Y,m),this._enforcingBounds=!1,this},panInside:function(s,m){var E=zt((m=m||{}).paddingTopLeft||m.padding||[0,0]),Y=zt(m.paddingBottomRight||m.padding||[0,0]),ye=this.project(this.getCenter()),Xe=this.project(s),Tt=this.getPixelBounds(),Wt=mi([Tt.min.add(E),Tt.max.subtract(Y)]),Yt=Wt.getSize();if(!Wt.contains(Xe)){this._enforcingBounds=!0;var di=Xe.subtract(Wt.getCenter()),Di=Wt.extend(Xe).getSize().subtract(Yt);ye.x+=di.x<0?-Di.x:Di.x,ye.y+=di.y<0?-Di.y:Di.y,this.panTo(this.unproject(ye),m),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=e({animate:!1,pan:!0},!0===s?{animate:!0}:s);var m=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var E=this.getSize(),Y=m.divideBy(2).round(),ye=E.divideBy(2).round(),Xe=Y.subtract(ye);return Xe.x||Xe.y?(s.animate&&s.pan?this.panBy(Xe):(s.pan&&this._rawPanBy(Xe),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(l(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:m,newSize:E})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=e({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var m=l(this._handleGeolocationResponse,this),E=l(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(m,E,s):navigator.geolocation.getCurrentPosition(m,E,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(this._container._leaflet_id){var m=s.code,E=s.message||(1===m?"permission denied":2===m?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:m,message:"Geolocation error: "+E+"."})}},_handleGeolocationResponse:function(s){if(this._container._leaflet_id){var Y=new lt(s.coords.latitude,s.coords.longitude),ye=Y.toBounds(2*s.coords.accuracy),Xe=this._locateOptions;if(Xe.setView){var Tt=this.getBoundsZoom(ye);this.setView(Y,Xe.maxZoom?Math.min(Tt,Xe.maxZoom):Tt)}var Wt={latlng:Y,bounds:ye,timestamp:s.timestamp};for(var Yt in s.coords)"number"==typeof s.coords[Yt]&&(Wt[Yt]=s.coords[Yt]);this.fire("locationfound",Wt)}},addHandler:function(s,m){if(!m)return this;var E=this[s]=new m(this);return this._handlers.push(E),this.options[s]&&E.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}var s;for(s in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ji(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Ze(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[s].remove();for(s in this._panes)ji(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,m){var Y=gi("div","leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),m||this._mapPane);return s&&(this._panes[s]=Y),Y},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds();return new Qt(this.unproject(s.getBottomLeft()),this.unproject(s.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(s,m,E){s=Jt(s),E=zt(E||[0,0]);var Y=this.getZoom()||0,ye=this.getMinZoom(),Xe=this.getMaxZoom(),Tt=s.getNorthWest(),Wt=s.getSouthEast(),Yt=this.getSize().subtract(E),di=mi(this.project(Wt,Y),this.project(Tt,Y)).getSize(),Di=se.any3d?this.options.zoomSnap:1,$i=Yt.x/di.x,un=Yt.y/di.y,Vr=m?Math.max($i,un):Math.min($i,un);return Y=this.getScaleZoom(Vr,Y),Di&&(Y=Math.round(Y/(Di/100))*(Di/100),Y=m?Math.ceil(Y/Di)*Di:Math.floor(Y/Di)*Di),Math.max(ye,Math.min(Xe,Y))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new dt(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,m){var E=this._getTopLeftPoint(s,m);return new ti(E,E.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(void 0===s?this.getZoom():s)},getPane:function(s){return"string"==typeof s?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,m){var E=this.options.crs;return m=void 0===m?this._zoom:m,E.scale(s)/E.scale(m)},getScaleZoom:function(s,m){var E=this.options.crs,Y=E.zoom(s*E.scale(m=void 0===m?this._zoom:m));return isNaN(Y)?1/0:Y},project:function(s,m){return m=void 0===m?this._zoom:m,this.options.crs.latLngToPoint(_t(s),m)},unproject:function(s,m){return m=void 0===m?this._zoom:m,this.options.crs.pointToLatLng(zt(s),m)},layerPointToLatLng:function(s){var m=zt(s).add(this.getPixelOrigin());return this.unproject(m)},latLngToLayerPoint:function(s){return this.project(_t(s))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(_t(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(Jt(s))},distance:function(s,m){return this.options.crs.distance(_t(s),_t(m))},containerPointToLayerPoint:function(s){return zt(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return zt(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var m=this.containerPointToLayerPoint(zt(s));return this.layerPointToLatLng(m)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(_t(s)))},mouseEventToContainerPoint:function(s){return Nr(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var m=this._container=Fn(s);if(!m)throw new Error("Map container not found.");if(m._leaflet_id)throw new Error("Map container is already initialized.");Fi(m,"scroll",this._onScroll,this),this._containerId=d(m)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&se.any3d,Mi(s,"leaflet-container"+(se.touch?" leaflet-touch":"")+(se.retina?" leaflet-retina":"")+(se.ielt9?" leaflet-oldie":"")+(se.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var m=bi(s,"position");"absolute"!==m&&"relative"!==m&&"fixed"!==m&&"sticky"!==m&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ei(this._mapPane,new dt(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Mi(s.markerPane,"leaflet-zoom-hide"),Mi(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,m,E){Ei(this._mapPane,new dt(0,0));var Y=!this._loaded;this._loaded=!0,m=this._limitZoom(m),this.fire("viewprereset");var ye=this._zoom!==m;this._moveStart(ye,E)._move(s,m)._moveEnd(ye),this.fire("viewreset"),Y&&this.fire("load")},_moveStart:function(s,m){return s&&this.fire("zoomstart"),m||this.fire("movestart"),this},_move:function(s,m,E,Y){void 0===m&&(m=this._zoom);var ye=this._zoom!==m;return this._zoom=m,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),Y?E&&E.pinch&&this.fire("zoom",E):((ye||E&&E.pinch)&&this.fire("zoom",E),this.fire("move",E)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Ze(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){Ei(this._mapPane,this._getMapPanePos().subtract(s))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(s){this._targets={},this._targets[d(this._container)]=this;var m=s?cn:Fi;m(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&m(window,"resize",this._onResize,this),se.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Ze(this._resizeRequest),this._resizeRequest=ne(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,m){for(var Y,E=[],ye="mouseout"===m||"mouseover"===m,Xe=s.target||s.srcElement,Tt=!1;Xe;){if((Y=this._targets[d(Xe)])&&("click"===m||"preclick"===m)&&this._draggableMoved(Y)){Tt=!0;break}if(Y&&Y.listens(m,!0)&&(ye&&!Kr(Xe,s)||(E.push(Y),ye))||Xe===this._container)break;Xe=Xe.parentNode}return!E.length&&!Tt&&!ye&&this.listens(m,!0)&&(E=[this]),E},_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var m=s.target||s.srcElement;if(!(!this._loaded||m._leaflet_disable_events||"click"===s.type&&this._isClickDisabled(m))){var E=s.type;"mousedown"===E&&dn(m),this._fireDOMEvent(s,E)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,m,E){if("click"===s.type){var Y=e({},s);Y.type="preclick",this._fireDOMEvent(Y,Y.type,E)}var ye=this._findEventTargets(s,m);if(E){for(var Xe=[],Tt=0;Tt<E.length;Tt++)E[Tt].listens(m,!0)&&Xe.push(E[Tt]);ye=Xe.concat(ye)}if(ye.length){"contextmenu"===m&&Kn(s);var Wt=ye[0],Yt={originalEvent:s};if("keypress"!==s.type&&"keydown"!==s.type&&"keyup"!==s.type){var di=Wt.getLatLng&&(!Wt._radius||Wt._radius<=10);Yt.containerPoint=di?this.latLngToContainerPoint(Wt.getLatLng()):this.mouseEventToContainerPoint(s),Yt.layerPoint=this.containerPointToLayerPoint(Yt.containerPoint),Yt.latlng=di?Wt.getLatLng():this.layerPointToLatLng(Yt.layerPoint)}for(Tt=0;Tt<ye.length;Tt++)if(ye[Tt].fire(m,Yt,!0),Yt.originalEvent._stopped||!1===ye[Tt].options.bubblingMouseEvents&&-1!==le(this._mouseEvents,m))return}},_draggableMoved:function(s){return(s=s.dragging&&s.dragging.enabled()?s:this).dragging&&s.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var s=0,m=this._handlers.length;s<m;s++)this._handlers[s].disable()},whenReady:function(s,m){return this._loaded?s.call(m||this,{target:this}):this.on("load",s,m),this},_getMapPanePos:function(){return Nn(this._mapPane)||new dt(0,0)},_moved:function(){var s=this._getMapPanePos();return s&&!s.equals([0,0])},_getTopLeftPoint:function(s,m){return(s&&void 0!==m?this._getNewPixelOrigin(s,m):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(s,m){var E=this.getSize()._divideBy(2);return this.project(s,m)._subtract(E)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(s,m,E){var Y=this._getNewPixelOrigin(E,m);return this.project(s,m)._subtract(Y)},_latLngBoundsToNewLayerBounds:function(s,m,E){var Y=this._getNewPixelOrigin(E,m);return mi([this.project(s.getSouthWest(),m)._subtract(Y),this.project(s.getNorthWest(),m)._subtract(Y),this.project(s.getSouthEast(),m)._subtract(Y),this.project(s.getNorthEast(),m)._subtract(Y)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(s){return this.latLngToLayerPoint(s).subtract(this._getCenterLayerPoint())},_limitCenter:function(s,m,E){if(!E)return s;var Y=this.project(s,m),ye=this.getSize().divideBy(2),Xe=new ti(Y.subtract(ye),Y.add(ye)),Tt=this._getBoundsOffset(Xe,E,m);return Math.abs(Tt.x)<=1&&Math.abs(Tt.y)<=1?s:this.unproject(Y.add(Tt),m)},_limitOffset:function(s,m){if(!m)return s;var E=this.getPixelBounds(),Y=new ti(E.min.add(s),E.max.add(s));return s.add(this._getBoundsOffset(Y,m))},_getBoundsOffset:function(s,m,E){var Y=mi(this.project(m.getNorthEast(),E),this.project(m.getSouthWest(),E)),ye=Y.min.subtract(s.min),Xe=Y.max.subtract(s.max);return new dt(this._rebound(ye.x,-Xe.x),this._rebound(ye.y,-Xe.y))},_rebound:function(s,m){return s+m>0?Math.round(s-m)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(m))},_limitZoom:function(s){var m=this.getMinZoom(),E=this.getMaxZoom(),Y=se.any3d?this.options.zoomSnap:1;return Y&&(s=Math.round(s/Y)*Y),Math.max(m,Math.min(E,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){qi(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,m){var E=this._getCenterOffset(s)._trunc();return!(!0!==(m&&m.animate)&&!this.getSize().contains(E)||(this.panBy(E,m),0))},_createAnimProxy:function(){var s=this._proxy=gi("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(m){var E=fo,Y=this._proxy.style[E];Yn(this._proxy,this.project(m.center,m.zoom),this.getZoomScale(m.zoom,1)),Y===this._proxy.style[E]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ji(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),m=this.getZoom();Yn(this._proxy,this.project(s,m),this.getZoomScale(m,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,m,E){if(this._animatingZoom)return!0;if(E=E||{},!this._zoomAnimated||!1===E.animate||this._nothingToAnimate()||Math.abs(m-this._zoom)>this.options.zoomAnimationThreshold)return!1;var Y=this.getZoomScale(m),ye=this._getCenterOffset(s)._divideBy(1-1/Y);return!(!0!==E.animate&&!this.getSize().contains(ye)||(ne(function(){this._moveStart(!0,E.noMoveStart||!1)._animateZoom(s,m,!0)},this),0))},_animateZoom:function(s,m,E,Y){this._mapPane&&(E&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=m,Mi(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:m,noUpdate:Y}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(l(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&qi(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var er=nt.extend({options:{position:"topright"},initialize:function(s){f(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var m=this._map;return m&&m.removeControl(this),this.options.position=s,m&&m.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var m=this._container=this.onAdd(s),E=this.getPosition(),Y=s._controlCorners[E];return Mi(m,"leaflet-control"),-1!==E.indexOf("bottom")?Y.insertBefore(m,Y.firstChild):Y.appendChild(m),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ji(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),hr=function(s){return new er(s)};an.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this},_initControlPos:function(){var s=this._controlCorners={},m="leaflet-",E=this._controlContainer=gi("div",m+"control-container",this._container);function Y(ye,Xe){s[ye+Xe]=gi("div",m+ye+" "+m+Xe,E)}Y("top","left"),Y("top","right"),Y("bottom","left"),Y("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)ji(this._controlCorners[s]);ji(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Gr=er.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,m,E,Y){return E<Y?-1:Y<E?1:0}},initialize:function(s,m,E){for(var Y in f(this,E),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,s)this._addLayer(s[Y],Y);for(Y in m)this._addLayer(m[Y],Y,!0)},onAdd:function(s){this._initLayout(),this._update(),this._map=s,s.on("zoomend",this._checkDisabledLayers,this);for(var m=0;m<this._layers.length;m++)this._layers[m].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(s){return er.prototype.addTo.call(this,s),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(s,m){return this._addLayer(s,m),this._map?this._update():this},addOverlay:function(s,m){return this._addLayer(s,m,!0),this._map?this._update():this},removeLayer:function(s){s.off("add remove",this._onLayerChange,this);var m=this._getLayer(d(s));return m&&this._layers.splice(this._layers.indexOf(m),1),this._map?this._update():this},expand:function(){Mi(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var s=this._map.getSize().y-(this._container.offsetTop+50);return s<this._section.clientHeight?(Mi(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=s+"px"):qi(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return qi(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var s="leaflet-control-layers",m=this._container=gi("div",s),E=this.options.collapsed;m.setAttribute("aria-haspopup",!0),Tr(m),Hr(m);var Y=this._section=gi("section",s+"-list");E&&(this._map.on("click",this.collapse,this),Fi(m,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var ye=this._layersLink=gi("a",s+"-toggle",m);ye.href="#",ye.title="Layers",ye.setAttribute("role","button"),Fi(ye,{keydown:function(Xe){13===Xe.keyCode&&this._expandSafely()},click:function(Xe){Kn(Xe),this._expandSafely()}},this),E||this.expand(),this._baseLayersList=gi("div",s+"-base",Y),this._separator=gi("div",s+"-separator",Y),this._overlaysList=gi("div",s+"-overlays",Y),m.appendChild(Y)},_getLayer:function(s){for(var m=0;m<this._layers.length;m++)if(this._layers[m]&&d(this._layers[m].layer)===s)return this._layers[m]},_addLayer:function(s,m,E){this._map&&s.on("add remove",this._onLayerChange,this),this._layers.push({layer:s,name:m,overlay:E}),this.options.sortLayers&&this._layers.sort(l(function(Y,ye){return this.options.sortFunction(Y.layer,ye.layer,Y.name,ye.name)},this)),this.options.autoZIndex&&s.setZIndex&&(this._lastZIndex++,s.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Dn(this._baseLayersList),Dn(this._overlaysList),this._layerControlInputs=[];var s,m,E,Y,ye=0;for(E=0;E<this._layers.length;E++)this._addItem(Y=this._layers[E]),m=m||Y.overlay,s=s||!Y.overlay,ye+=Y.overlay?0:1;return this.options.hideSingleBase&&(this._baseLayersList.style.display=(s=s&&ye>1)?"":"none"),this._separator.style.display=m&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var m=this._getLayer(d(s.target)),E=m.overlay?"add"===s.type?"overlayadd":"overlayremove":"add"===s.type?"baselayerchange":null;E&&this._map.fire(E,m)},_createRadioElement:function(s,m){var E='<input type="radio" class="leaflet-control-layers-selector" name="'+s+'"'+(m?' checked="checked"':"")+"/>",Y=document.createElement("div");return Y.innerHTML=E,Y.firstChild},_addItem:function(s){var Y,m=document.createElement("label"),E=this._map.hasLayer(s.layer);s.overlay?((Y=document.createElement("input")).type="checkbox",Y.className="leaflet-control-layers-selector",Y.defaultChecked=E):Y=this._createRadioElement("leaflet-base-layers_"+d(this),E),this._layerControlInputs.push(Y),Y.layerId=d(s.layer),Fi(Y,"click",this._onInputClick,this);var ye=document.createElement("span");ye.innerHTML=" "+s.name;var Xe=document.createElement("span");return m.appendChild(Xe),Xe.appendChild(Y),Xe.appendChild(ye),(s.overlay?this._overlaysList:this._baseLayersList).appendChild(m),this._checkDisabledLayers(),m},_onInputClick:function(){if(!this._preventClick){var m,E,s=this._layerControlInputs,Y=[],ye=[];this._handlingClick=!0;for(var Xe=s.length-1;Xe>=0;Xe--)E=this._getLayer((m=s[Xe]).layerId).layer,m.checked?Y.push(E):m.checked||ye.push(E);for(Xe=0;Xe<ye.length;Xe++)this._map.hasLayer(ye[Xe])&&this._map.removeLayer(ye[Xe]);for(Xe=0;Xe<Y.length;Xe++)this._map.hasLayer(Y[Xe])||this._map.addLayer(Y[Xe]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var m,E,s=this._layerControlInputs,Y=this._map.getZoom(),ye=s.length-1;ye>=0;ye--)E=this._getLayer((m=s[ye]).layerId).layer,m.disabled=void 0!==E.options.minZoom&&Y<E.options.minZoom||void 0!==E.options.maxZoom&&Y>E.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,Fi(s,"click",Kn),this.expand();var m=this;setTimeout(function(){cn(s,"click",Kn),m._preventClick=!1})}}),Eo=er.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(s){var m="leaflet-control-zoom",E=gi("div",m+" leaflet-bar"),Y=this.options;return this._zoomInButton=this._createButton(Y.zoomInText,Y.zoomInTitle,m+"-in",E,this._zoomIn),this._zoomOutButton=this._createButton(Y.zoomOutText,Y.zoomOutTitle,m+"-out",E,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),E},onRemove:function(s){s.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(s){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(s.shiftKey?3:1))},_zoomOut:function(s){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,m,E,Y,ye){var Xe=gi("a",E,Y);return Xe.innerHTML=s,Xe.href="#",Xe.title=m,Xe.setAttribute("role","button"),Xe.setAttribute("aria-label",m),Tr(Xe),Fi(Xe,"click",Cr),Fi(Xe,"click",ye,this),Fi(Xe,"click",this._refocusOnMap,this),Xe},_updateDisabled:function(){var s=this._map,m="leaflet-disabled";qi(this._zoomInButton,m),qi(this._zoomOutButton,m),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(Mi(this._zoomOutButton,m),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(Mi(this._zoomInButton,m),this._zoomInButton.setAttribute("aria-disabled","true"))}});an.mergeOptions({zoomControl:!0}),an.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Eo,this.addControl(this.zoomControl))});var xr=er.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var m="leaflet-control-scale",E=gi("div",m),Y=this.options;return this._addScales(Y,m+"-line",E),s.on(Y.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),E},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,m,E){s.metric&&(this._mScale=gi("div",m,E)),s.imperial&&(this._iScale=gi("div",m,E))},_update:function(){var s=this._map,m=s.getSize().y/2,E=s.distance(s.containerPointToLatLng([0,m]),s.containerPointToLatLng([this.options.maxWidth,m]));this._updateScales(E)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var m=this._getRoundNum(s);this._updateScale(this._mScale,m<1e3?m+" m":m/1e3+" km",m/s)},_updateImperial:function(s){var E,Y,ye,m=3.2808399*s;m>5280?(Y=this._getRoundNum(E=m/5280),this._updateScale(this._iScale,Y+" mi",Y/E)):(ye=this._getRoundNum(m),this._updateScale(this._iScale,ye+" ft",ye/m))},_updateScale:function(s,m,E){s.style.width=Math.round(this.options.maxWidth*E)+"px",s.innerHTML=m},_getRoundNum:function(s){var m=Math.pow(10,(Math.floor(s)+"").length-1),E=s/m;return m*(E>=10?10:E>=5?5:E>=3?3:E>=2?2:1)}}),Zr=er.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(se.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(s){f(this,s),this._attributions={}},onAdd:function(s){for(var m in s.attributionControl=this,this._container=gi("div","leaflet-control-attribution"),Tr(this._container),s._layers)s._layers[m].getAttribution&&this.addAttribution(s._layers[m].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(this._map){var s=[];for(var m in this._attributions)this._attributions[m]&&s.push(m);var E=[];this.options.prefix&&E.push(this.options.prefix),s.length&&E.push(s.join(", ")),this._container.innerHTML=E.join(' <span aria-hidden="true">|</span> ')}}});an.mergeOptions({attributionControl:!0}),an.addInitHook(function(){this.options.attributionControl&&(new Zr).addTo(this)});er.Layers=Gr,er.Zoom=Eo,er.Scale=xr,er.Attribution=Zr,hr.layers=function(s,m,E){return new Gr(s,m,E)},hr.zoom=function(s){return new Eo(s)},hr.scale=function(s){return new xr(s)},hr.attribution=function(s){return new Zr(s)};var gr=nt.extend({initialize:function(s){this._map=s},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});gr.addTo=function(s,m){return s.addHandler(m,this),this};var co={Events:ct},Ur=se.touch?"touchstart mousedown":"mousedown",nr=ot.extend({options:{clickTolerance:3},initialize:function(s,m,E,Y){f(this,Y),this._element=s,this._dragStartTarget=m||s,this._preventOutline=E},enable:function(){this._enabled||(Fi(this._dragStartTarget,Ur,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(nr._dragging===this&&this.finishDrag(!0),cn(this._dragStartTarget,Ur,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!qn(this._element,"leaflet-zoom-anim"))){if(s.touches&&1!==s.touches.length)return void(nr._dragging===this&&this.finishDrag());if(!(nr._dragging||s.shiftKey||1!==s.which&&1!==s.button&&!s.touches||(nr._dragging=this,this._preventOutline&&dn(this._element),Je(),ht(),this._moving))){this.fire("down");var m=s.touches?s.touches[0]:s,E=Hn(this._element);this._startPoint=new dt(m.clientX,m.clientY),this._startPos=Nn(this._element),this._parentScale=Tn(E);var Y="mousedown"===s.type;Fi(document,Y?"mousemove":"touchmove",this._onMove,this),Fi(document,Y?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(this._enabled){if(s.touches&&s.touches.length>1)return void(this._moved=!0);var m=s.touches&&1===s.touches.length?s.touches[0]:s,E=new dt(m.clientX,m.clientY)._subtract(this._startPoint);!E.x&&!E.y||Math.abs(E.x)+Math.abs(E.y)<this.options.clickTolerance||(E.x/=this._parentScale.x,E.y/=this._parentScale.y,Kn(s),this._moved||(this.fire("dragstart"),this._moved=!0,Mi(document.body,"leaflet-dragging"),this._lastTarget=s.target||s.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Mi(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(E),this._moving=!0,this._lastEvent=s,this._updatePosition())}},_updatePosition:function(){var s={originalEvent:this._lastEvent};this.fire("predrag",s),Ei(this._element,this._newPos),this.fire("drag",s)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(s){qi(document.body,"leaflet-dragging"),this._lastTarget&&(qi(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),cn(document,"mousemove touchmove",this._onMove,this),cn(document,"mouseup touchend touchcancel",this._onUp,this),At(),ni();var m=this._moved&&this._moving;this._moving=!1,nr._dragging=!1,m&&this.fire("dragend",{noInertia:s,distance:this._newPos.distanceTo(this._startPos)})}});function _r(s,m,E){var Y,Xe,Tt,Wt,Yt,di,Di,$i,un,ye=[1,4,2,8];for(Xe=0,Di=s.length;Xe<Di;Xe++)s[Xe]._code=oi(s[Xe],m);for(Wt=0;Wt<4;Wt++){for($i=ye[Wt],Y=[],Xe=0,Tt=(Di=s.length)-1;Xe<Di;Tt=Xe++)di=s[Tt],(Yt=s[Xe])._code&$i?di._code&$i||((un=Dt(di,Yt,$i,m,E))._code=oi(un,m),Y.push(un)):(di._code&$i&&((un=Dt(di,Yt,$i,m,E))._code=oi(un,m),Y.push(un)),Y.push(Yt));s=Y}return s}function Qr(s,m){var E,Y,ye,Xe,Tt,Wt,Yt,di;if(!s||0===s.length)throw new Error("latlngs not passed");si(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var $i=_t([0,0]),un=Jt(s);un.getNorthWest().distanceTo(un.getSouthWest())*un.getNorthEast().distanceTo(un.getNorthWest())<1700&&($i=Xn(s));var wr=s.length,po=[];for(E=0;E<wr;E++){var Ar=_t(s[E]);po.push(m.project(_t([Ar.lat-$i.lat,Ar.lng-$i.lng])))}for(Wt=Yt=di=0,E=0,Y=wr-1;E<wr;Y=E++)Yt+=((ye=po[E]).x+(Xe=po[Y]).x)*(Tt=ye.y*Xe.x-Xe.y*ye.x),di+=(ye.y+Xe.y)*Tt,Wt+=3*Tt;var ds=m.unproject(zt(0===Wt?po[0]:[Yt/Wt,di/Wt]));return _t([ds.lat+$i.lat,ds.lng+$i.lng])}function Xn(s){for(var m=0,E=0,Y=0,ye=0;ye<s.length;ye++){var Xe=_t(s[ye]);m+=Xe.lat,E+=Xe.lng,Y++}return _t([m/Y,E/Y])}var _e,Uo={__proto__:null,clipPolygon:_r,polygonCenter:Qr,centroid:Xn};function _o(s,m){if(!m||!s.length)return s.slice();var E=m*m;return function kt(s,m){var E=s.length,ye=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(E);ye[0]=ye[E-1]=1,D(s,ye,m,0,E-1);var Xe,Tt=[];for(Xe=0;Xe<E;Xe++)ye[Xe]&&Tt.push(s[Xe]);return Tt}(s=function ae(s,m){for(var E=[s[0]],Y=1,ye=0,Xe=s.length;Y<Xe;Y++)xi(s[Y],s[ye])>m&&(E.push(s[Y]),ye=Y);return ye<Xe-1&&E.push(s[Xe-1]),E}(s,E),E)}function jn(s,m,E){return Math.sqrt(Ii(s,m,E,!0))}function D(s,m,E,Y,ye){var Tt,Wt,Yt,Xe=0;for(Wt=Y+1;Wt<=ye-1;Wt++)(Yt=Ii(s[Wt],s[Y],s[ye],!0))>Xe&&(Tt=Wt,Xe=Yt);Xe>E&&(m[Tt]=1,D(s,m,E,Y,Tt),D(s,m,E,Tt,ye))}function it(s,m,E,Y,ye){var Wt,Yt,di,Xe=Y?_e:oi(s,E),Tt=oi(m,E);for(_e=Tt;;){if(!(Xe|Tt))return[s,m];if(Xe&Tt)return!1;di=oi(Yt=Dt(s,m,Wt=Xe||Tt,E,ye),E),Wt===Xe?(s=Yt,Xe=di):(m=Yt,Tt=di)}}function Dt(s,m,E,Y,ye){var di,Di,Xe=m.x-s.x,Tt=m.y-s.y,Wt=Y.min,Yt=Y.max;return 8&E?(di=s.x+Xe*(Yt.y-s.y)/Tt,Di=Yt.y):4&E?(di=s.x+Xe*(Wt.y-s.y)/Tt,Di=Wt.y):2&E?(di=Yt.x,Di=s.y+Tt*(Yt.x-s.x)/Xe):1&E&&(di=Wt.x,Di=s.y+Tt*(Wt.x-s.x)/Xe),new dt(di,Di,ye)}function oi(s,m){var E=0;return s.x<m.min.x?E|=1:s.x>m.max.x&&(E|=2),s.y<m.min.y?E|=4:s.y>m.max.y&&(E|=8),E}function xi(s,m){var E=m.x-s.x,Y=m.y-s.y;return E*E+Y*Y}function Ii(s,m,E,Y){var di,ye=m.x,Xe=m.y,Tt=E.x-ye,Wt=E.y-Xe,Yt=Tt*Tt+Wt*Wt;return Yt>0&&((di=((s.x-ye)*Tt+(s.y-Xe)*Wt)/Yt)>1?(ye=E.x,Xe=E.y):di>0&&(ye+=Tt*di,Xe+=Wt*di)),Tt=s.x-ye,Wt=s.y-Xe,Y?Tt*Tt+Wt*Wt:new dt(ye,Xe)}function si(s){return!Z(s[0])||"object"!=typeof s[0][0]&&typeof s[0][0]<"u"}function fn(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),si(s)}function Gn(s,m){var E,Y,ye,Xe,Tt,Wt,Yt,di;if(!s||0===s.length)throw new Error("latlngs not passed");si(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var Di=_t([0,0]),$i=Jt(s);$i.getNorthWest().distanceTo($i.getSouthWest())*$i.getNorthEast().distanceTo($i.getNorthWest())<1700&&(Di=Xn(s));var Vr=s.length,wr=[];for(E=0;E<Vr;E++){var po=_t(s[E]);wr.push(m.project(_t([po.lat-Di.lat,po.lng-Di.lng])))}for(E=0,Y=0;E<Vr-1;E++)Y+=wr[E].distanceTo(wr[E+1])/2;if(0===Y)di=wr[0];else for(E=0,Xe=0;E<Vr-1;E++)if((Xe+=ye=(Tt=wr[E]).distanceTo(Wt=wr[E+1]))>Y){di=[Wt.x-(Yt=(Xe-Y)/ye)*(Wt.x-Tt.x),Wt.y-Yt*(Wt.y-Tt.y)];break}var Ar=m.unproject(zt(di));return _t([Ar.lat+Di.lat,Ar.lng+Di.lng])}var Wi={__proto__:null,simplify:_o,pointToSegmentDistance:jn,closestPointOnSegment:function Ye(s,m,E){return Ii(s,m,E)},clipSegment:it,_getEdgeIntersection:Dt,_getBitCode:oi,_sqClosestPointOnSegment:Ii,isFlat:si,_flat:fn,polylineCenter:Gn},uo={project:function(s){return new dt(s.lng,s.lat)},unproject:function(s){return new lt(s.y,s.x)},bounds:new ti([-180,-90],[180,90])},ve={R:6378137,R_MINOR:6356752.314245179,bounds:new ti([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(s){var m=Math.PI/180,E=this.R,Y=s.lat*m,ye=this.R_MINOR/E,Xe=Math.sqrt(1-ye*ye),Tt=Xe*Math.sin(Y),Wt=Math.tan(Math.PI/4-Y/2)/Math.pow((1-Tt)/(1+Tt),Xe/2);return Y=-E*Math.log(Math.max(Wt,1e-10)),new dt(s.lng*m*E,Y)},unproject:function(s){for(var di,m=180/Math.PI,E=this.R,Y=this.R_MINOR/E,ye=Math.sqrt(1-Y*Y),Xe=Math.exp(-s.y/E),Tt=Math.PI/2-2*Math.atan(Xe),Wt=0,Yt=.1;Wt<15&&Math.abs(Yt)>1e-7;Wt++)di=ye*Math.sin(Tt),di=Math.pow((1-di)/(1+di),ye/2),Tt+=Yt=Math.PI/2-2*Math.atan(Xe*di)-Tt;return new lt(Tt*m,s.x*m/E)}},pe={__proto__:null,LonLat:uo,Mercator:ve,SphericalMercator:W},y=e({},Ae,{code:"EPSG:3395",projection:ve,transformation:function(){var s=.5/(Math.PI*ve.R);return Te(s,.5,-s,.5)}()}),J=e({},Ae,{code:"EPSG:4326",projection:uo,transformation:Te(1/180,1,-1/180,.5)}),N=e({},Fe,{projection:uo,transformation:Te(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,m){var E=m.lng-s.lng,Y=m.lat-s.lat;return Math.sqrt(E*E+Y*Y)},infinite:!0});Fe.Earth=Ae,Fe.EPSG3395=y,Fe.EPSG3857=Be,Fe.EPSG900913=mt,Fe.EPSG4326=J,Fe.Simple=N;var de=ot.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[d(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[d(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var m=s.target;if(m.hasLayer(this)){if(this._map=m,this._zoomAnimated=m._zoomAnimated,this.getEvents){var E=this.getEvents();m.on(E,this),this.once("remove",function(){m.off(E,this)},this)}this.onAdd(m),this.fire("add"),m.fire("layeradd",{layer:this})}}});an.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var m=d(s);return this._layers[m]||(this._layers[m]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s)),this},removeLayer:function(s){var m=d(s);return this._layers[m]?(this._loaded&&s.onRemove(this),delete this._layers[m],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return d(s)in this._layers},eachLayer:function(s,m){for(var E in this._layers)s.call(m,this._layers[E]);return this},_addLayers:function(s){for(var m=0,E=(s=s?Z(s)?s:[s]:[]).length;m<E;m++)this.addLayer(s[m])},_addZoomLimit:function(s){(!isNaN(s.options.maxZoom)||!isNaN(s.options.minZoom))&&(this._zoomBoundLayers[d(s)]=s,this._updateZoomLevels())},_removeZoomLimit:function(s){var m=d(s);this._zoomBoundLayers[m]&&(delete this._zoomBoundLayers[m],this._updateZoomLevels())},_updateZoomLevels:function(){var s=1/0,m=-1/0,E=this._getZoomSpan();for(var Y in this._zoomBoundLayers){var ye=this._zoomBoundLayers[Y].options;s=void 0===ye.minZoom?s:Math.min(s,ye.minZoom),m=void 0===ye.maxZoom?m:Math.max(m,ye.maxZoom)}this._layersMaxZoom=m===-1/0?void 0:m,this._layersMinZoom=s===1/0?void 0:s,E!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var $e=de.extend({initialize:function(s,m){var E,Y;if(f(this,m),this._layers={},s)for(E=0,Y=s.length;E<Y;E++)this.addLayer(s[E])},addLayer:function(s){var m=this.getLayerId(s);return this._layers[m]=s,this._map&&this._map.addLayer(s),this},removeLayer:function(s){var m=s in this._layers?s:this.getLayerId(s);return this._map&&this._layers[m]&&this._map.removeLayer(this._layers[m]),delete this._layers[m],this},hasLayer:function(s){return("number"==typeof s?s:this.getLayerId(s))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(s){var E,Y,m=Array.prototype.slice.call(arguments,1);for(E in this._layers)(Y=this._layers[E])[s]&&Y[s].apply(Y,m);return this},onAdd:function(s){this.eachLayer(s.addLayer,s)},onRemove:function(s){this.eachLayer(s.removeLayer,s)},eachLayer:function(s,m){for(var E in this._layers)s.call(m,this._layers[E]);return this},getLayer:function(s){return this._layers[s]},getLayers:function(){var s=[];return this.eachLayer(s.push,s),s},setZIndex:function(s){return this.invoke("setZIndex",s)},getLayerId:function(s){return d(s)}}),pt=$e.extend({addLayer:function(s){return this.hasLayer(s)?this:(s.addEventParent(this),$e.prototype.addLayer.call(this,s),this.fire("layeradd",{layer:s}))},removeLayer:function(s){return this.hasLayer(s)?(s in this._layers&&(s=this._layers[s]),s.removeEventParent(this),$e.prototype.removeLayer.call(this,s),this.fire("layerremove",{layer:s})):this},setStyle:function(s){return this.invoke("setStyle",s)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var s=new Qt;for(var m in this._layers){var E=this._layers[m];s.extend(E.getBounds?E.getBounds():E.getLatLng())}return s}}),ki=nt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(s){f(this,s)},createIcon:function(s){return this._createIcon("icon",s)},createShadow:function(s){return this._createIcon("shadow",s)},_createIcon:function(s,m){var E=this._getIconUrl(s);if(!E){if("icon"===s)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var Y=this._createImg(E,m&&"IMG"===m.tagName?m:null);return this._setIconStyles(Y,s),(this.options.crossOrigin||""===this.options.crossOrigin)&&(Y.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),Y},_setIconStyles:function(s,m){var E=this.options,Y=E[m+"Size"];"number"==typeof Y&&(Y=[Y,Y]);var ye=zt(Y),Xe=zt("shadow"===m&&E.shadowAnchor||E.iconAnchor||ye&&ye.divideBy(2,!0));s.className="leaflet-marker-"+m+" "+(E.className||""),Xe&&(s.style.marginLeft=-Xe.x+"px",s.style.marginTop=-Xe.y+"px"),ye&&(s.style.width=ye.x+"px",s.style.height=ye.y+"px")},_createImg:function(s,m){return(m=m||document.createElement("img")).src=s,m},_getIconUrl:function(s){return se.retina&&this.options[s+"RetinaUrl"]||this.options[s+"Url"]}});var hi=ki.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(s){return"string"!=typeof hi.imagePath&&(hi.imagePath=this._detectIconPath()),(this.options.imagePath||hi.imagePath)+ki.prototype._getIconUrl.call(this,s)},_stripUrl:function(s){var m=function(E,Y,ye){var Xe=Y.exec(E);return Xe&&Xe[ye]};return(s=m(s,/^url\((['"])?(.+)\1\)$/,2))&&m(s,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var s=gi("div","leaflet-default-icon-path",document.body),m=bi(s,"background-image")||bi(s,"backgroundImage");if(document.body.removeChild(s),m=this._stripUrl(m))return m;var E=document.querySelector('link[href$="leaflet.css"]');return E?E.href.substring(0,E.href.length-11-1):""}}),Hi=gr.extend({initialize:function(s){this._marker=s},addHooks:function(){var s=this._marker._icon;this._draggable||(this._draggable=new nr(s,s,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Mi(s,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&qi(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(s){var m=this._marker,E=m._map,Y=this._marker.options.autoPanSpeed,ye=this._marker.options.autoPanPadding,Xe=Nn(m._icon),Tt=E.getPixelBounds(),Wt=E.getPixelOrigin(),Yt=mi(Tt.min._subtract(Wt).add(ye),Tt.max._subtract(Wt).subtract(ye));if(!Yt.contains(Xe)){var di=zt((Math.max(Yt.max.x,Xe.x)-Yt.max.x)/(Tt.max.x-Yt.max.x)-(Math.min(Yt.min.x,Xe.x)-Yt.min.x)/(Tt.min.x-Yt.min.x),(Math.max(Yt.max.y,Xe.y)-Yt.max.y)/(Tt.max.y-Yt.max.y)-(Math.min(Yt.min.y,Xe.y)-Yt.min.y)/(Tt.min.y-Yt.min.y)).multiplyBy(Y);E.panBy(di,{animate:!1}),this._draggable._newPos._add(di),this._draggable._startPos._add(di),Ei(m._icon,this._draggable._newPos),this._onDrag(s),this._panRequest=ne(this._adjustPan.bind(this,s))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(s){this._marker.options.autoPan&&(Ze(this._panRequest),this._panRequest=ne(this._adjustPan.bind(this,s)))},_onDrag:function(s){var m=this._marker,E=m._shadow,Y=Nn(m._icon),ye=m._map.layerPointToLatLng(Y);E&&Ei(E,Y),m._latlng=ye,s.latlng=ye,s.oldLatLng=this._oldLatLng,m.fire("move",s).fire("drag",s)},_onDragEnd:function(s){Ze(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",s)}}),gn=de.extend({options:{icon:new hi,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(s,m){f(this,m),this._latlng=_t(s)},onAdd:function(s){this._zoomAnimated=this._zoomAnimated&&s.options.markerZoomAnimation,this._zoomAnimated&&s.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(s){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&s.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(s){var m=this._latlng;return this._latlng=_t(s),this.update(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},setZIndexOffset:function(s){return this.options.zIndexOffset=s,this.update()},getIcon:function(){return this.options.icon},setIcon:function(s){return this.options.icon=s,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var s=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(s)}return this},_initIcon:function(){var s=this.options,m="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),E=s.icon.createIcon(this._icon),Y=!1;E!==this._icon&&(this._icon&&this._removeIcon(),Y=!0,s.title&&(E.title=s.title),"IMG"===E.tagName&&(E.alt=s.alt||"")),Mi(E,m),s.keyboard&&(E.tabIndex="0",E.setAttribute("role","button")),this._icon=E,s.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Fi(E,"focus",this._panOnFocus,this);var ye=s.icon.createShadow(this._shadow),Xe=!1;ye!==this._shadow&&(this._removeShadow(),Xe=!0),ye&&(Mi(ye,m),ye.alt=""),this._shadow=ye,s.opacity<1&&this._updateOpacity(),Y&&this.getPane().appendChild(this._icon),this._initInteraction(),ye&&Xe&&this.getPane(s.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&cn(this._icon,"focus",this._panOnFocus,this),ji(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ji(this._shadow),this._shadow=null},_setPos:function(s){this._icon&&Ei(this._icon,s),this._shadow&&Ei(this._shadow,s),this._zIndex=s.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(s){this._icon&&(this._icon.style.zIndex=this._zIndex+s)},_animateZoom:function(s){var m=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center).round();this._setPos(m)},_initInteraction:function(){if(this.options.interactive&&(Mi(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Hi)){var s=this.options.draggable;this.dragging&&(s=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Hi(this),s&&this.dragging.enable()}},setOpacity:function(s){return this.options.opacity=s,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var s=this.options.opacity;this._icon&&Bn(this._icon,s),this._shadow&&Bn(this._shadow,s)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var s=this._map;if(s){var m=this.options.icon.options,E=m.iconSize?zt(m.iconSize):zt(0,0),Y=m.iconAnchor?zt(m.iconAnchor):zt(0,0);s.panInside(this._latlng,{paddingTopLeft:Y,paddingBottomRight:E.subtract(Y)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var Pi=de.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(s){this._renderer=s.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(s){return f(this,s),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&s&&Object.prototype.hasOwnProperty.call(s,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Qi=Pi.extend({options:{fill:!0,radius:10},initialize:function(s,m){f(this,m),this._latlng=_t(s),this._radius=this.options.radius},setLatLng:function(s){var m=this._latlng;return this._latlng=_t(s),this.redraw(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(s){return this.options.radius=this._radius=s,this.redraw()},getRadius:function(){return this._radius},setStyle:function(s){var m=s&&s.radius||this._radius;return Pi.prototype.setStyle.call(this,s),this.setRadius(m),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var s=this._radius,m=this._radiusY||s,E=this._clickTolerance(),Y=[s+E,m+E];this._pxBounds=new ti(this._point.subtract(Y),this._point.add(Y))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(s){return s.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var cr=Qi.extend({initialize:function(s,m,E){if("number"==typeof m&&(m=e({},E,{radius:m})),f(this,m),this._latlng=_t(s),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(s){return this._mRadius=s,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var s=[this._radius,this._radiusY||this._radius];return new Qt(this._map.layerPointToLatLng(this._point.subtract(s)),this._map.layerPointToLatLng(this._point.add(s)))},setStyle:Pi.prototype.setStyle,_project:function(){var s=this._latlng.lng,m=this._latlng.lat,E=this._map,Y=E.options.crs;if(Y.distance===Ae.distance){var ye=Math.PI/180,Xe=this._mRadius/Ae.R/ye,Tt=E.project([m+Xe,s]),Wt=E.project([m-Xe,s]),Yt=Tt.add(Wt).divideBy(2),di=E.unproject(Yt).lat,Di=Math.acos((Math.cos(Xe*ye)-Math.sin(m*ye)*Math.sin(di*ye))/(Math.cos(m*ye)*Math.cos(di*ye)))/ye;(isNaN(Di)||0===Di)&&(Di=Xe/Math.cos(Math.PI/180*m)),this._point=Yt.subtract(E.getPixelOrigin()),this._radius=isNaN(Di)?0:Yt.x-E.project([di,s-Di]).x,this._radiusY=Yt.y-Tt.y}else{var $i=Y.unproject(Y.project(this._latlng).subtract([this._mRadius,0]));this._point=E.latLngToLayerPoint(this._latlng),this._radius=this._point.x-E.latLngToLayerPoint($i).x}this._updateBounds()}});var Zn=Pi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(s,m){f(this,m),this._setLatLngs(s)},getLatLngs:function(){return this._latlngs},setLatLngs:function(s){return this._setLatLngs(s),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(s){for(var ye,Xe,m=1/0,E=null,Y=Ii,Tt=0,Wt=this._parts.length;Tt<Wt;Tt++)for(var Yt=this._parts[Tt],di=1,Di=Yt.length;di<Di;di++){var $i=Y(s,ye=Yt[di-1],Xe=Yt[di],!0);$i<m&&(m=$i,E=Y(s,ye,Xe))}return E&&(E.distance=Math.sqrt(m)),E},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Gn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(s,m){return m=m||this._defaultShape(),s=_t(s),m.push(s),this._bounds.extend(s),this.redraw()},_setLatLngs:function(s){this._bounds=new Qt,this._latlngs=this._convertLatLngs(s)},_defaultShape:function(){return si(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(s){for(var m=[],E=si(s),Y=0,ye=s.length;Y<ye;Y++)E?(m[Y]=_t(s[Y]),this._bounds.extend(m[Y])):m[Y]=this._convertLatLngs(s[Y]);return m},_project:function(){var s=new ti;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,s),this._bounds.isValid()&&s.isValid()&&(this._rawPxBounds=s,this._updateBounds())},_updateBounds:function(){var s=this._clickTolerance(),m=new dt(s,s);this._rawPxBounds&&(this._pxBounds=new ti([this._rawPxBounds.min.subtract(m),this._rawPxBounds.max.add(m)]))},_projectLatlngs:function(s,m,E){var Xe,Tt,ye=s.length;if(s[0]instanceof lt){for(Tt=[],Xe=0;Xe<ye;Xe++)Tt[Xe]=this._map.latLngToLayerPoint(s[Xe]),E.extend(Tt[Xe]);m.push(Tt)}else for(Xe=0;Xe<ye;Xe++)this._projectLatlngs(s[Xe],m,E)},_clipPoints:function(){var s=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(s)){if(this.options.noClip)return void(this._parts=this._rings);var E,Y,ye,Xe,Tt,Wt,Yt,m=this._parts;for(E=0,ye=0,Xe=this._rings.length;E<Xe;E++)for(Y=0,Tt=(Yt=this._rings[E]).length;Y<Tt-1;Y++)(Wt=it(Yt[Y],Yt[Y+1],s,Y,!0))&&(m[ye]=m[ye]||[],m[ye].push(Wt[0]),(Wt[1]!==Yt[Y+1]||Y===Tt-2)&&(m[ye].push(Wt[1]),ye++))}},_simplifyPoints:function(){for(var s=this._parts,m=this.options.smoothFactor,E=0,Y=s.length;E<Y;E++)s[E]=_o(s[E],m)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(s,m){var E,Y,ye,Xe,Tt,Wt,Yt=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(E=0,Xe=this._parts.length;E<Xe;E++)for(Y=0,ye=(Tt=(Wt=this._parts[E]).length)-1;Y<Tt;ye=Y++)if((m||0!==Y)&&jn(s,Wt[ye],Wt[Y])<=Yt)return!0;return!1}});Zn._flat=fn;var to=Zn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Qr(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(s){var m=Zn.prototype._convertLatLngs.call(this,s),E=m.length;return E>=2&&m[0]instanceof lt&&m[0].equals(m[E-1])&&m.pop(),m},_setLatLngs:function(s){Zn.prototype._setLatLngs.call(this,s),si(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return si(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,m=this.options.weight,E=new dt(m,m);if(s=new ti(s.min.subtract(E),s.max.add(E)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(s)){if(this.options.noClip)return void(this._parts=this._rings);for(var Xe,Y=0,ye=this._rings.length;Y<ye;Y++)(Xe=_r(this._rings[Y],s,!0)).length&&this._parts.push(Xe)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(s){var E,Y,ye,Xe,Tt,Wt,Yt,di,m=!1;if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(Xe=0,Yt=this._parts.length;Xe<Yt;Xe++)for(Tt=0,Wt=(di=(E=this._parts[Xe]).length)-1;Tt<di;Wt=Tt++)(Y=E[Tt]).y>s.y!=(ye=E[Wt]).y>s.y&&s.x<(ye.x-Y.x)*(s.y-Y.y)/(ye.y-Y.y)+Y.x&&(m=!m);return m||Zn.prototype._containsPoint.call(this,s,!0)}});var ho=pt.extend({initialize:function(s,m){f(this,m),this._layers={},s&&this.addData(s)},addData:function(s){var E,Y,ye,m=Z(s)?s:s.features;if(m){for(E=0,Y=m.length;E<Y;E++)((ye=m[E]).geometries||ye.geometry||ye.features||ye.coordinates)&&this.addData(ye);return this}var Xe=this.options;if(Xe.filter&&!Xe.filter(s))return this;var Tt=io(s,Xe);return Tt?(Tt.feature=Vo(s),Tt.defaultOptions=Tt.options,this.resetStyle(Tt),Xe.onEachFeature&&Xe.onEachFeature(s,Tt),this.addLayer(Tt)):this},resetStyle:function(s){return void 0===s?this.eachLayer(this.resetStyle,this):(s.options=e({},s.defaultOptions),this._setLayerStyle(s,this.options.style),this)},setStyle:function(s){return this.eachLayer(function(m){this._setLayerStyle(m,s)},this)},_setLayerStyle:function(s,m){s.setStyle&&("function"==typeof m&&(m=m(s.feature)),s.setStyle(m))}});function io(s,m){var Wt,Yt,di,Di,E="Feature"===s.type?s.geometry:s,Y=E?E.coordinates:null,ye=[],Xe=m&&m.pointToLayer,Tt=m&&m.coordsToLatLng||ls;if(!Y&&!E)return null;switch(E.type){case"Point":return Ms(Xe,s,Wt=Tt(Y),m);case"MultiPoint":for(di=0,Di=Y.length;di<Di;di++)Wt=Tt(Y[di]),ye.push(Ms(Xe,s,Wt,m));return new pt(ye);case"LineString":case"MultiLineString":return Yt=jo(Y,"LineString"===E.type?0:1,Tt),new Zn(Yt,m);case"Polygon":case"MultiPolygon":return Yt=jo(Y,"Polygon"===E.type?1:2,Tt),new to(Yt,m);case"GeometryCollection":for(di=0,Di=E.geometries.length;di<Di;di++){var $i=io({geometry:E.geometries[di],type:"Feature",properties:s.properties},m);$i&&ye.push($i)}return new pt(ye);case"FeatureCollection":for(di=0,Di=E.features.length;di<Di;di++){var un=io(E.features[di],m);un&&ye.push(un)}return new pt(ye);default:throw new Error("Invalid GeoJSON object.")}}function Ms(s,m,E,Y){return s?s(m,E):new gn(E,Y&&Y.markersInheritOptions&&Y)}function ls(s){return new lt(s[1],s[0],s[2])}function jo(s,m,E){for(var Tt,Y=[],ye=0,Xe=s.length;ye<Xe;ye++)Tt=m?jo(s[ye],m-1,E):(E||ls)(s[ye]),Y.push(Tt);return Y}function Ao(s,m){return void 0!==(s=_t(s)).alt?[x(s.lng,m),x(s.lat,m),x(s.alt,m)]:[x(s.lng,m),x(s.lat,m)]}function br(s,m,E,Y){for(var ye=[],Xe=0,Tt=s.length;Xe<Tt;Xe++)ye.push(m?br(s[Xe],si(s[Xe])?0:m-1,E,Y):Ao(s[Xe],Y));return!m&&E&&ye.length>0&&ye.push(ye[0].slice()),ye}function vo(s,m){return s.feature?e({},s.feature,{geometry:m}):Vo(m)}function Vo(s){return"Feature"===s.type||"FeatureCollection"===s.type?s:{type:"Feature",properties:{},geometry:s}}var ko={toGeoJSON:function(s){return vo(this,{type:"Point",coordinates:Ao(this.getLatLng(),s)})}};function zo(s,m){return new ho(s,m)}gn.include(ko),cr.include(ko),Qi.include(ko),Zn.include({toGeoJSON:function(s){var m=!si(this._latlngs);return vo(this,{type:(m?"Multi":"")+"LineString",coordinates:br(this._latlngs,m?1:0,!1,s)})}}),to.include({toGeoJSON:function(s){var m=!si(this._latlngs),E=m&&!si(this._latlngs[0]),Y=br(this._latlngs,E?2:m?1:0,!0,s);return m||(Y=[Y]),vo(this,{type:(E?"Multi":"")+"Polygon",coordinates:Y})}}),$e.include({toMultiPoint:function(s){var m=[];return this.eachLayer(function(E){m.push(E.toGeoJSON(s).geometry.coordinates)}),vo(this,{type:"MultiPoint",coordinates:m})},toGeoJSON:function(s){var m=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===m)return this.toMultiPoint(s);var E="GeometryCollection"===m,Y=[];return this.eachLayer(function(ye){if(ye.toGeoJSON){var Xe=ye.toGeoJSON(s);if(E)Y.push(Xe.geometry);else{var Tt=Vo(Xe);"FeatureCollection"===Tt.type?Y.push.apply(Y,Tt.features):Y.push(Tt)}}}),E?vo(this,{geometries:Y,type:"GeometryCollection"}):{type:"FeatureCollection",features:Y}}});var Es=zo,ws=de.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,m,E){this._url=s,this._bounds=Jt(m),f(this,E)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Mi(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ji(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&Wn(this._image),this},bringToBack:function(){return this._map&&pn(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=Jt(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s="IMG"===this._url.tagName,m=this._image=s?this._url:gi("img");Mi(m,"leaflet-image-layer"),this._zoomAnimated&&Mi(m,"leaflet-zoom-animated"),this.options.className&&Mi(m,this.options.className),m.onselectstart=C,m.onmousemove=C,m.onload=l(this.fire,this,"load"),m.onerror=l(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(m.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s?this._url=m.src:(m.src=this._url,m.alt=this.options.alt)},_animateZoom:function(s){var m=this._map.getZoomScale(s.zoom),E=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;Yn(this._image,E,m)},_reset:function(){var s=this._image,m=new ti(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),E=m.getSize();Ei(s,m.min),s.style.width=E.x+"px",s.style.height=E.y+"px"},_updateOpacity:function(){Bn(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),Wo=ws.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var s="VIDEO"===this._url.tagName,m=this._image=s?this._url:gi("video");if(Mi(m,"leaflet-image-layer"),this._zoomAnimated&&Mi(m,"leaflet-zoom-animated"),this.options.className&&Mi(m,this.options.className),m.onselectstart=C,m.onmousemove=C,m.onloadeddata=l(this.fire,this,"load"),s){for(var E=m.getElementsByTagName("source"),Y=[],ye=0;ye<E.length;ye++)Y.push(E[ye].src);this._url=E.length>0?Y:[m.src]}else{Z(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(m.style,"objectFit")&&(m.style.objectFit="fill"),m.autoplay=!!this.options.autoplay,m.loop=!!this.options.loop,m.muted=!!this.options.muted,m.playsInline=!!this.options.playsInline;for(var Xe=0;Xe<this._url.length;Xe++){var Tt=gi("source");Tt.src=this._url[Xe],m.appendChild(Tt)}}}});var Is=ws.extend({_initImage:function(){var s=this._image=this._url;Mi(s,"leaflet-image-layer"),this._zoomAnimated&&Mi(s,"leaflet-zoom-animated"),this.options.className&&Mi(s,this.options.className),s.onselectstart=C,s.onmousemove=C}});var An=de.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(s,m){s&&(s instanceof lt||Z(s))?(this._latlng=_t(s),f(this,m)):(f(this,s),this._source=m),this.options.content&&(this._content=this.options.content)},openOn:function(s){return(s=arguments.length?s:this._source._map).hasLayer(this)||s.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(s){return this._map?this.close():(arguments.length?this._source=s:s=this._source,this._prepareOpen(),this.openOn(s._map)),this},onAdd:function(s){this._zoomAnimated=s._zoomAnimated,this._container||this._initLayout(),s._fadeAnimated&&Bn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),s._fadeAnimated&&Bn(this._container,1),this.bringToFront(),this.options.interactive&&(Mi(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(s){s._fadeAnimated?(Bn(this._container,0),this._removeTimeout=setTimeout(l(ji,void 0,this._container),200)):ji(this._container),this.options.interactive&&(qi(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(s){return this._latlng=_t(s),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(s){return this._content=s,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var s={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Wn(this._container),this},bringToBack:function(){return this._map&&pn(this._container),this},_prepareOpen:function(s){var m=this._source;if(!m._map)return!1;if(m instanceof pt){m=null;var E=this._source._layers;for(var Y in E)if(E[Y]._map){m=E[Y];break}if(!m)return!1;this._source=m}if(!s)if(m.getCenter)s=m.getCenter();else if(m.getLatLng)s=m.getLatLng();else{if(!m.getBounds)throw new Error("Unable to get source layer LatLng.");s=m.getBounds().getCenter()}return this.setLatLng(s),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var s=this._contentNode,m="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof m)s.innerHTML=m;else{for(;s.hasChildNodes();)s.removeChild(s.firstChild);s.appendChild(m)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var s=this._map.latLngToLayerPoint(this._latlng),m=zt(this.options.offset),E=this._getAnchor();this._zoomAnimated?Ei(this._container,s.add(E)):m=m.add(s).add(E);var Y=this._containerBottom=-m.y,ye=this._containerLeft=-Math.round(this._containerWidth/2)+m.x;this._container.style.bottom=Y+"px",this._container.style.left=ye+"px"}},_getAnchor:function(){return[0,0]}});an.include({_initOverlay:function(s,m,E,Y){var ye=m;return ye instanceof s||(ye=new s(Y).setContent(m)),E&&ye.setLatLng(E),ye}}),de.include({_initOverlay:function(s,m,E,Y){var ye=E;return ye instanceof s?(f(ye,Y),ye._source=this):(ye=m&&!Y?m:new s(Y,this)).setContent(E),ye}});var Yr=An.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(s){return!(s=arguments.length?s:this._source._map).hasLayer(this)&&s._popup&&s._popup.options.autoClose&&s.removeLayer(s._popup),s._popup=this,An.prototype.openOn.call(this,s)},onAdd:function(s){An.prototype.onAdd.call(this,s),s.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Pi||this._source.on("preclick",Dr))},onRemove:function(s){An.prototype.onRemove.call(this,s),s.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Pi||this._source.off("preclick",Dr))},getEvents:function(){var s=An.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(s.preclick=this.close),this.options.keepInView&&(s.moveend=this._adjustPan),s},_initLayout:function(){var s="leaflet-popup",m=this._container=gi("div",s+" "+(this.options.className||"")+" leaflet-zoom-animated"),E=this._wrapper=gi("div",s+"-content-wrapper",m);if(this._contentNode=gi("div",s+"-content",E),Tr(m),Hr(this._contentNode),Fi(m,"contextmenu",Dr),this._tipContainer=gi("div",s+"-tip-container",m),this._tip=gi("div",s+"-tip",this._tipContainer),this.options.closeButton){var Y=this._closeButton=gi("a",s+"-close-button",m);Y.setAttribute("role","button"),Y.setAttribute("aria-label","Close popup"),Y.href="#close",Y.innerHTML='<span aria-hidden="true">&#215;</span>',Fi(Y,"click",function(ye){Kn(ye),this.close()},this)}},_updateLayout:function(){var s=this._contentNode,m=s.style;m.width="",m.whiteSpace="nowrap";var E=s.offsetWidth;E=Math.min(E,this.options.maxWidth),E=Math.max(E,this.options.minWidth),m.width=E+1+"px",m.whiteSpace="",m.height="";var ye=this.options.maxHeight,Xe="leaflet-popup-scrolled";ye&&s.offsetHeight>ye?(m.height=ye+"px",Mi(s,Xe)):qi(s,Xe),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var m=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),E=this._getAnchor();Ei(this._container,m.add(E))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)return void(this._autopanning=!1);var s=this._map,m=parseInt(bi(this._container,"marginBottom"),10)||0,E=this._container.offsetHeight+m,Y=this._containerWidth,ye=new dt(this._containerLeft,-E-this._containerBottom);ye._add(Nn(this._container));var Xe=s.layerPointToContainerPoint(ye),Tt=zt(this.options.autoPanPadding),Wt=zt(this.options.autoPanPaddingTopLeft||Tt),Yt=zt(this.options.autoPanPaddingBottomRight||Tt),di=s.getSize(),Di=0,$i=0;Xe.x+Y+Yt.x>di.x&&(Di=Xe.x+Y-di.x+Yt.x),Xe.x-Di-Wt.x<0&&(Di=Xe.x-Wt.x),Xe.y+E+Yt.y>di.y&&($i=Xe.y+E-di.y+Yt.y),Xe.y-$i-Wt.y<0&&($i=Xe.y-Wt.y),(Di||$i)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([Di,$i]))}},_getAnchor:function(){return zt(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});an.mergeOptions({closePopupOnClick:!0}),an.include({openPopup:function(s,m,E){return this._initOverlay(Yr,s,m,E).openOn(this),this},closePopup:function(s){return(s=arguments.length?s:this._popup)&&s.close(),this}}),de.include({bindPopup:function(s,m){return this._popup=this._initOverlay(Yr,this._popup,s,m),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(s){return this._popup&&(this instanceof pt||(this._popup._source=this),this._popup._prepareOpen(s||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(this._popup&&this._map){Cr(s);var m=s.layer||s.target;if(this._popup._source===m&&!(m instanceof Pi))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng));this._popup._source=m,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){13===s.originalEvent.keyCode&&this._openPopup(s)}});var Yo=An.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){An.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){An.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=An.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){this._contentNode=this._container=gi("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var m,E,Y=this._map,ye=this._container,Xe=Y.latLngToContainerPoint(Y.getCenter()),Tt=Y.layerPointToContainerPoint(s),Wt=this.options.direction,Yt=ye.offsetWidth,di=ye.offsetHeight,Di=zt(this.options.offset),$i=this._getAnchor();"top"===Wt?(m=Yt/2,E=di):"bottom"===Wt?(m=Yt/2,E=0):"center"===Wt?(m=Yt/2,E=di/2):"right"===Wt?(m=0,E=di/2):"left"===Wt?(m=Yt,E=di/2):Tt.x<Xe.x?(Wt="right",m=0,E=di/2):(Wt="left",m=Yt+2*(Di.x+$i.x),E=di/2),s=s.subtract(zt(m,E,!0)).add(Di).add($i),qi(ye,"leaflet-tooltip-right"),qi(ye,"leaflet-tooltip-left"),qi(ye,"leaflet-tooltip-top"),qi(ye,"leaflet-tooltip-bottom"),Mi(ye,"leaflet-tooltip-"+Wt),Ei(ye,s)},_updatePosition:function(){var s=this._map.latLngToLayerPoint(this._latlng);this._setPosition(s)},setOpacity:function(s){this.options.opacity=s,this._container&&Bn(this._container,s)},_animateZoom:function(s){var m=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center);this._setPosition(m)},_getAnchor:function(){return zt(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});an.include({openTooltip:function(s,m,E){return this._initOverlay(Yo,s,m,E).openOn(this),this},closeTooltip:function(s){return s.close(),this}}),de.include({bindTooltip:function(s,m){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Yo,this._tooltip,s,m),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(s){if(s||!this._tooltipHandlersAdded){var m=s?"off":"on",E={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?E.add=this._openTooltip:(E.mouseover=this._openTooltip,E.mouseout=this.closeTooltip,E.click=this._openTooltip,this._map?this._addFocusListeners():E.add=this._addFocusListeners),this._tooltip.options.sticky&&(E.mousemove=this._moveTooltip),this[m](E),this._tooltipHandlersAdded=!s}},openTooltip:function(s){return this._tooltip&&(this instanceof pt||(this._tooltip._source=this),this._tooltip._prepareOpen(s)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(s){return this._tooltip&&this._tooltip.setContent(s),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(s){var m="function"==typeof s.getElement&&s.getElement();m&&(Fi(m,"focus",function(){this._tooltip._source=s,this.openTooltip()},this),Fi(m,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(s){var m="function"==typeof s.getElement&&s.getElement();m&&m.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(s){if(this._tooltip&&this._map){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var m=this;return void this._map.once("moveend",function(){m._openOnceFlag=!1,m._openTooltip(s)})}this._tooltip._source=s.layer||s.target,this.openTooltip(this._tooltip.options.sticky?s.latlng:void 0)}},_moveTooltip:function(s){var E,Y,m=s.latlng;this._tooltip.options.sticky&&s.originalEvent&&(E=this._map.mouseEventToContainerPoint(s.originalEvent),Y=this._map.containerPointToLayerPoint(E),m=this._map.layerPointToLatLng(Y)),this._tooltip.setLatLng(m)}});var gs=ki.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(s){var m=s&&"DIV"===s.tagName?s:document.createElement("div"),E=this.options;if(E.html instanceof Element?(Dn(m),m.appendChild(E.html)):m.innerHTML=!1!==E.html?E.html:"",E.bgPos){var Y=zt(E.bgPos);m.style.backgroundPosition=-Y.x+"px "+-Y.y+"px"}return this._setIconStyles(m,"icon"),m},createShadow:function(){return null}});ki.Default=hi;var cs=de.extend({options:{tileSize:256,opacity:1,updateWhenIdle:se.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(s){f(this,s)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(s){s._addZoomLimit(this)},onRemove:function(s){this._removeAllTiles(),ji(this._container),s._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Wn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(pn(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(s){return this.options.opacity=s,this._updateOpacity(),this},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var s=this._clampZoom(this._map.getZoom());s!==this._tileZoom&&(this._tileZoom=s,this._updateLevels()),this._update()}return this},getEvents:function(){var s={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=u(this._onMoveEnd,this.options.updateInterval,this)),s.move=this._onMove),this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},createTile:function(){return document.createElement("div")},getTileSize:function(){var s=this.options.tileSize;return s instanceof dt?s:new dt(s,s)},_updateZIndex:function(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(s){for(var Xe,m=this.getPane().children,E=-s(-1/0,1/0),Y=0,ye=m.length;Y<ye;Y++)Xe=m[Y].style.zIndex,m[Y]!==this._container&&Xe&&(E=s(E,+Xe));isFinite(E)&&(this.options.zIndex=E+s(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!se.ielt9){Bn(this._container,this.options.opacity);var s=+new Date,m=!1,E=!1;for(var Y in this._tiles){var ye=this._tiles[Y];if(ye.current&&ye.loaded){var Xe=Math.min(1,(s-ye.loaded)/200);Bn(ye.el,Xe),Xe<1?m=!0:(ye.active?E=!0:this._onOpaqueTile(ye),ye.active=!0)}}E&&!this._noPrune&&this._pruneTiles(),m&&(Ze(this._fadeFrame),this._fadeFrame=ne(this._updateOpacity,this))}},_onOpaqueTile:C,_initContainer:function(){this._container||(this._container=gi("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var s=this._tileZoom,m=this.options.maxZoom;if(void 0!==s){for(var E in this._levels)E=Number(E),this._levels[E].el.children.length||E===s?(this._levels[E].el.style.zIndex=m-Math.abs(s-E),this._onUpdateLevel(E)):(ji(this._levels[E].el),this._removeTilesAtZoom(E),this._onRemoveLevel(E),delete this._levels[E]);var Y=this._levels[s],ye=this._map;return Y||((Y=this._levels[s]={}).el=gi("div","leaflet-tile-container leaflet-zoom-animated",this._container),Y.el.style.zIndex=m,Y.origin=ye.project(ye.unproject(ye.getPixelOrigin()),s).round(),Y.zoom=s,this._setZoomTransform(Y,ye.getCenter(),ye.getZoom()),this._onCreateLevel(Y)),this._level=Y,Y}},_onUpdateLevel:C,_onRemoveLevel:C,_onCreateLevel:C,_pruneTiles:function(){if(this._map){var s,m,E=this._map.getZoom();if(E>this.options.maxZoom||E<this.options.minZoom)return void this._removeAllTiles();for(s in this._tiles)(m=this._tiles[s]).retain=m.current;for(s in this._tiles)if((m=this._tiles[s]).current&&!m.active){var Y=m.coords;this._retainParent(Y.x,Y.y,Y.z,Y.z-5)||this._retainChildren(Y.x,Y.y,Y.z,Y.z+2)}for(s in this._tiles)this._tiles[s].retain||this._removeTile(s)}},_removeTilesAtZoom:function(s){for(var m in this._tiles)this._tiles[m].coords.z===s&&this._removeTile(m)},_removeAllTiles:function(){for(var s in this._tiles)this._removeTile(s)},_invalidateAll:function(){for(var s in this._levels)ji(this._levels[s].el),this._onRemoveLevel(Number(s)),delete this._levels[s];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(s,m,E,Y){var ye=Math.floor(s/2),Xe=Math.floor(m/2),Tt=E-1,Wt=new dt(+ye,+Xe);Wt.z=+Tt;var Yt=this._tileCoordsToKey(Wt),di=this._tiles[Yt];return di&&di.active?(di.retain=!0,!0):(di&&di.loaded&&(di.retain=!0),Tt>Y&&this._retainParent(ye,Xe,Tt,Y))},_retainChildren:function(s,m,E,Y){for(var ye=2*s;ye<2*s+2;ye++)for(var Xe=2*m;Xe<2*m+2;Xe++){var Tt=new dt(ye,Xe);Tt.z=E+1;var Wt=this._tileCoordsToKey(Tt),Yt=this._tiles[Wt];Yt&&Yt.active?Yt.retain=!0:(Yt&&Yt.loaded&&(Yt.retain=!0),E+1<Y&&this._retainChildren(ye,Xe,E+1,Y))}},_resetView:function(s){var m=s&&(s.pinch||s.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),m,m)},_animateZoom:function(s){this._setView(s.center,s.zoom,!0,s.noUpdate)},_clampZoom:function(s){var m=this.options;return void 0!==m.minNativeZoom&&s<m.minNativeZoom?m.minNativeZoom:void 0!==m.maxNativeZoom&&m.maxNativeZoom<s?m.maxNativeZoom:s},_setView:function(s,m,E,Y){var ye=Math.round(m);ye=void 0!==this.options.maxZoom&&ye>this.options.maxZoom||void 0!==this.options.minZoom&&ye<this.options.minZoom?void 0:this._clampZoom(ye),(!Y||this.options.updateWhenZooming&&ye!==this._tileZoom)&&(this._tileZoom=ye,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==ye&&this._update(s),E||this._pruneTiles(),this._noPrune=!!E),this._setZoomTransforms(s,m)},_setZoomTransforms:function(s,m){for(var E in this._levels)this._setZoomTransform(this._levels[E],s,m)},_setZoomTransform:function(s,m,E){var Y=this._map.getZoomScale(E,s.zoom),ye=s.origin.multiplyBy(Y).subtract(this._map._getNewPixelOrigin(m,E)).round();se.any3d?Yn(s.el,ye,Y):Ei(s.el,ye)},_resetGrid:function(){var s=this._map,m=s.options.crs,E=this._tileSize=this.getTileSize(),Y=this._tileZoom,ye=this._map.getPixelWorldBounds(this._tileZoom);ye&&(this._globalTileRange=this._pxBoundsToTileRange(ye)),this._wrapX=m.wrapLng&&!this.options.noWrap&&[Math.floor(s.project([0,m.wrapLng[0]],Y).x/E.x),Math.ceil(s.project([0,m.wrapLng[1]],Y).x/E.y)],this._wrapY=m.wrapLat&&!this.options.noWrap&&[Math.floor(s.project([m.wrapLat[0],0],Y).y/E.x),Math.ceil(s.project([m.wrapLat[1],0],Y).y/E.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(s){var m=this._map,E=m._animatingZoom?Math.max(m._animateToZoom,m.getZoom()):m.getZoom(),Y=m.getZoomScale(E,this._tileZoom),ye=m.project(s,this._tileZoom).floor(),Xe=m.getSize().divideBy(2*Y);return new ti(ye.subtract(Xe),ye.add(Xe))},_update:function(s){var m=this._map;if(m){var E=this._clampZoom(m.getZoom());if(void 0===s&&(s=m.getCenter()),void 0!==this._tileZoom){var Y=this._getTiledPixelBounds(s),ye=this._pxBoundsToTileRange(Y),Xe=ye.getCenter(),Tt=[],Wt=this.options.keepBuffer,Yt=new ti(ye.getBottomLeft().subtract([Wt,-Wt]),ye.getTopRight().add([Wt,-Wt]));if(!(isFinite(ye.min.x)&&isFinite(ye.min.y)&&isFinite(ye.max.x)&&isFinite(ye.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var di in this._tiles){var Di=this._tiles[di].coords;(Di.z!==this._tileZoom||!Yt.contains(new dt(Di.x,Di.y)))&&(this._tiles[di].current=!1)}if(Math.abs(E-this._tileZoom)>1)return void this._setView(s,E);for(var $i=ye.min.y;$i<=ye.max.y;$i++)for(var un=ye.min.x;un<=ye.max.x;un++){var Vr=new dt(un,$i);if(Vr.z=this._tileZoom,this._isValidTile(Vr)){var wr=this._tiles[this._tileCoordsToKey(Vr)];wr?wr.current=!0:Tt.push(Vr)}}if(Tt.sort(function(Ar,ds){return Ar.distanceTo(Xe)-ds.distanceTo(Xe)}),0!==Tt.length){this._loading||(this._loading=!0,this.fire("loading"));var po=document.createDocumentFragment();for(un=0;un<Tt.length;un++)this._addTile(Tt[un],po);this._level.el.appendChild(po)}}}},_isValidTile:function(s){var m=this._map.options.crs;if(!m.infinite){var E=this._globalTileRange;if(!m.wrapLng&&(s.x<E.min.x||s.x>E.max.x)||!m.wrapLat&&(s.y<E.min.y||s.y>E.max.y))return!1}if(!this.options.bounds)return!0;var Y=this._tileCoordsToBounds(s);return Jt(this.options.bounds).overlaps(Y)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var m=this._map,E=this.getTileSize(),Y=s.scaleBy(E),ye=Y.add(E);return[m.unproject(Y,s.z),m.unproject(ye,s.z)]},_tileCoordsToBounds:function(s){var m=this._tileCoordsToNwSe(s),E=new Qt(m[0],m[1]);return this.options.noWrap||(E=this._map.wrapLatLngBounds(E)),E},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var m=s.split(":"),E=new dt(+m[0],+m[1]);return E.z=+m[2],E},_removeTile:function(s){var m=this._tiles[s];m&&(ji(m.el),delete this._tiles[s],this.fire("tileunload",{tile:m.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){Mi(s,"leaflet-tile");var m=this.getTileSize();s.style.width=m.x+"px",s.style.height=m.y+"px",s.onselectstart=C,s.onmousemove=C,se.ielt9&&this.options.opacity<1&&Bn(s,this.options.opacity)},_addTile:function(s,m){var E=this._getTilePos(s),Y=this._tileCoordsToKey(s),ye=this.createTile(this._wrapCoords(s),l(this._tileReady,this,s));this._initTile(ye),this.createTile.length<2&&ne(l(this._tileReady,this,s,null,ye)),Ei(ye,E),this._tiles[Y]={el:ye,coords:s,current:!0},m.appendChild(ye),this.fire("tileloadstart",{tile:ye,coords:s})},_tileReady:function(s,m,E){m&&this.fire("tileerror",{error:m,tile:E,coords:s});var Y=this._tileCoordsToKey(s);(E=this._tiles[Y])&&(E.loaded=+new Date,this._map._fadeAnimated?(Bn(E.el,0),Ze(this._fadeFrame),this._fadeFrame=ne(this._updateOpacity,this)):(E.active=!0,this._pruneTiles()),m||(Mi(E.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:E.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),se.ielt9||!this._map._fadeAnimated?ne(this._pruneTiles,this):setTimeout(l(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var m=new dt(this._wrapX?b(s.x,this._wrapX):s.x,this._wrapY?b(s.y,this._wrapY):s.y);return m.z=s.z,m},_pxBoundsToTileRange:function(s){var m=this.getTileSize();return new ti(s.min.unscaleBy(m).floor(),s.max.unscaleBy(m).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});var So=cs.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,m){this._url=s,(m=f(this,m)).detectRetina&&se.retina&&m.maxZoom>0?(m.tileSize=Math.floor(m.tileSize/2),m.zoomReverse?(m.zoomOffset--,m.minZoom=Math.min(m.maxZoom,m.minZoom+1)):(m.zoomOffset++,m.maxZoom=Math.max(m.minZoom,m.maxZoom-1)),m.minZoom=Math.max(0,m.minZoom)):m.zoomReverse?m.minZoom=Math.min(m.maxZoom,m.minZoom):m.maxZoom=Math.max(m.minZoom,m.maxZoom),"string"==typeof m.subdomains&&(m.subdomains=m.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,m){return this._url===s&&void 0===m&&(m=!0),this._url=s,m||this.redraw(),this},createTile:function(s,m){var E=document.createElement("img");return Fi(E,"load",l(this._tileOnLoad,this,m,E)),Fi(E,"error",l(this._tileOnError,this,m,E)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(E.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(E.referrerPolicy=this.options.referrerPolicy),E.alt="",E.src=this.getTileUrl(s),E},getTileUrl:function(s){var m={r:se.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var E=this._globalTileRange.max.y-s.y;this.options.tms&&(m.y=E),m["-y"]=E}return B(this._url,e(m,this.options))},_tileOnLoad:function(s,m){se.ielt9?setTimeout(l(s,this,null,m),0):s(null,m)},_tileOnError:function(s,m,E){var Y=this.options.errorTileUrl;Y&&m.getAttribute("src")!==Y&&(m.src=Y),s(E,m)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom;return this.options.zoomReverse&&(s=this.options.maxZoom-s),s+this.options.zoomOffset},_getSubdomain:function(s){var m=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[m]},_abortLoading:function(){var s,m;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&((m=this._tiles[s].el).onload=C,m.onerror=C,!m.complete)){m.src=q;var E=this._tiles[s].coords;ji(m),delete this._tiles[s],this.fire("tileabort",{tile:m,coords:E})}},_removeTile:function(s){var m=this._tiles[s];if(m)return m.el.setAttribute("src",q),cs.prototype._removeTile.call(this,s)},_tileReady:function(s,m,E){if(this._map&&(!E||E.getAttribute("src")!==q))return cs.prototype._tileReady.call(this,s,m,E)}});function Ho(s,m){return new So(s,m)}var Xo=So.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,m){this._url=s;var E=e({},this.defaultWmsParams);for(var Y in m)Y in this.options||(E[Y]=m[Y]);var ye=(m=f(this,m)).detectRetina&&se.retina?2:1,Xe=this.getTileSize();E.width=Xe.x*ye,E.height=Xe.y*ye,this.wmsParams=E},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[this._wmsVersion>=1.3?"crs":"srs"]=this._crs.code,So.prototype.onAdd.call(this,s)},getTileUrl:function(s){var m=this._tileCoordsToNwSe(s),E=this._crs,Y=mi(E.project(m[0]),E.project(m[1])),ye=Y.min,Xe=Y.max,Tt=(this._wmsVersion>=1.3&&this._crs===J?[ye.y,ye.x,Xe.y,Xe.x]:[ye.x,ye.y,Xe.x,Xe.y]).join(","),Wt=So.prototype.getTileUrl.call(this,s);return Wt+S(this.wmsParams,Wt,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Tt},setParams:function(s,m){return e(this.wmsParams,s),m||this.redraw(),this}});So.WMS=Xo,Ho.wms=function ee(s,m){return new Xo(s,m)};var Se=de.extend({options:{padding:.1},initialize:function(s){f(this,s),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Mi(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,m){var E=this._map.getZoomScale(m,this._zoom),Y=this._map.getSize().multiplyBy(.5+this.options.padding),ye=this._map.project(this._center,m),Xe=Y.multiplyBy(-E).add(ye).subtract(this._map._getNewPixelOrigin(s,m));se.any3d?Yn(this._container,Xe,E):Ei(this._container,Xe)},_reset:function(){for(var s in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,m=this._map.getSize(),E=this._map.containerPointToLayerPoint(m.multiplyBy(-s)).round();this._bounds=new ti(E,E.add(m.multiplyBy(1+2*s)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),oe=Se.extend({options:{tolerance:0},getEvents:function(){var s=Se.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Se.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");Fi(s,"mousemove",this._onMouseMove,this),Fi(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Fi(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){Ze(this._redrawRequest),delete this._ctx,ji(this._container),cn(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var m in this._redrawBounds=null,this._layers)this._layers[m]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Se.prototype._update.call(this);var s=this._bounds,m=this._container,E=s.getSize(),Y=se.retina?2:1;Ei(m,s.min),m.width=Y*E.x,m.height=Y*E.y,m.style.width=E.x+"px",m.style.height=E.y+"px",se.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){Se.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[d(s)]=s;var m=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=m),this._drawLast=m,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var m=s._order,E=m.next,Y=m.prev;E?E.prev=Y:this._drawLast=Y,Y?Y.next=E:this._drawFirst=E,delete s._order,delete this._layers[d(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if("string"==typeof s.options.dashArray){var Y,ye,m=s.options.dashArray.split(/[, ]+/),E=[];for(ye=0;ye<m.length;ye++){if(Y=Number(m[ye]),isNaN(Y))return;E.push(Y)}s.options._dashArray=E}else s.options._dashArray=s.options.dashArray},_requestRedraw:function(s){this._map&&(this._extendRedrawBounds(s),this._redrawRequest=this._redrawRequest||ne(this._redraw,this))},_extendRedrawBounds:function(s){if(s._pxBounds){var m=(s.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new ti,this._redrawBounds.extend(s._pxBounds.min.subtract([m,m])),this._redrawBounds.extend(s._pxBounds.max.add([m,m]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var s=this._redrawBounds;if(s){var m=s.getSize();this._ctx.clearRect(s.min.x,s.min.y,m.x,m.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var s,m=this._redrawBounds;if(this._ctx.save(),m){var E=m.getSize();this._ctx.beginPath(),this._ctx.rect(m.min.x,m.min.y,E.x,E.y),this._ctx.clip()}this._drawing=!0;for(var Y=this._drawFirst;Y;Y=Y.next)s=Y.layer,(!m||s._pxBounds&&s._pxBounds.intersects(m))&&s._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(s,m){if(this._drawing){var E,Y,ye,Xe,Tt=s._parts,Wt=Tt.length,Yt=this._ctx;if(Wt){for(Yt.beginPath(),E=0;E<Wt;E++){for(Y=0,ye=Tt[E].length;Y<ye;Y++)Yt[Y?"lineTo":"moveTo"]((Xe=Tt[E][Y]).x,Xe.y);m&&Yt.closePath()}this._fillStroke(Yt,s)}}},_updateCircle:function(s){if(this._drawing&&!s._empty()){var m=s._point,E=this._ctx,Y=Math.max(Math.round(s._radius),1),ye=(Math.max(Math.round(s._radiusY),1)||Y)/Y;1!==ye&&(E.save(),E.scale(1,ye)),E.beginPath(),E.arc(m.x,m.y/ye,Y,0,2*Math.PI,!1),1!==ye&&E.restore(),this._fillStroke(E,s)}},_fillStroke:function(s,m){var E=m.options;E.fill&&(s.globalAlpha=E.fillOpacity,s.fillStyle=E.fillColor||E.color,s.fill(E.fillRule||"evenodd")),E.stroke&&0!==E.weight&&(s.setLineDash&&s.setLineDash(m.options&&m.options._dashArray||[]),s.globalAlpha=E.opacity,s.lineWidth=E.weight,s.strokeStyle=E.color,s.lineCap=E.lineCap,s.lineJoin=E.lineJoin,s.stroke())},_onClick:function(s){for(var E,Y,m=this._map.mouseEventToLayerPoint(s),ye=this._drawFirst;ye;ye=ye.next)(E=ye.layer).options.interactive&&E._containsPoint(m)&&("click"!==s.type&&"preclick"!==s.type||!this._map._draggableMoved(E))&&(Y=E);this._fireEvent(!!Y&&[Y],s)},_onMouseMove:function(s){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var m=this._map.mouseEventToLayerPoint(s);this._handleMouseHover(s,m)}},_handleMouseOut:function(s){var m=this._hoveredLayer;m&&(qi(this._container,"leaflet-interactive"),this._fireEvent([m],s,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(s,m){if(!this._mouseHoverThrottled){for(var E,Y,ye=this._drawFirst;ye;ye=ye.next)(E=ye.layer).options.interactive&&E._containsPoint(m)&&(Y=E);Y!==this._hoveredLayer&&(this._handleMouseOut(s),Y&&(Mi(this._container,"leaflet-interactive"),this._fireEvent([Y],s,"mouseover"),this._hoveredLayer=Y)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],s),this._mouseHoverThrottled=!0,setTimeout(l(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(s,m,E){this._map._fireDOMEvent(m,E||m.type,s)},_bringToFront:function(s){var m=s._order;if(m){var E=m.next,Y=m.prev;if(!E)return;E.prev=Y,Y?Y.next=E:E&&(this._drawFirst=E),m.prev=this._drawLast,this._drawLast.next=m,m.next=null,this._drawLast=m,this._requestRedraw(s)}},_bringToBack:function(s){var m=s._order;if(m){var E=m.next,Y=m.prev;if(!Y)return;Y.next=E,E?E.prev=Y:Y&&(this._drawLast=Y),m.prev=null,m.next=this._drawFirst,this._drawFirst.prev=m,this._drawFirst=m,this._requestRedraw(s)}}});function Ne(s){return se.canvas?new oe(s):null}var bt=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(s){return document.createElement("<lvml:"+s+' class="lvml">')}}catch{}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Gt={_initContainer:function(){this._container=gi("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Se.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var m=s._container=bt("shape");Mi(m,"leaflet-vml-shape "+(this.options.className||"")),m.coordsize="1 1",s._path=bt("path"),m.appendChild(s._path),this._updateStyle(s),this._layers[d(s)]=s},_addPath:function(s){var m=s._container;this._container.appendChild(m),s.options.interactive&&s.addInteractiveTarget(m)},_removePath:function(s){var m=s._container;ji(m),s.removeInteractiveTarget(m),delete this._layers[d(s)]},_updateStyle:function(s){var m=s._stroke,E=s._fill,Y=s.options,ye=s._container;ye.stroked=!!Y.stroke,ye.filled=!!Y.fill,Y.stroke?(m||(m=s._stroke=bt("stroke")),ye.appendChild(m),m.weight=Y.weight+"px",m.color=Y.color,m.opacity=Y.opacity,m.dashStyle=Y.dashArray?Z(Y.dashArray)?Y.dashArray.join(" "):Y.dashArray.replace(/( *, *)/g," "):"",m.endcap=Y.lineCap.replace("butt","flat"),m.joinstyle=Y.lineJoin):m&&(ye.removeChild(m),s._stroke=null),Y.fill?(E||(E=s._fill=bt("fill")),ye.appendChild(E),E.color=Y.fillColor||Y.color,E.opacity=Y.fillOpacity):E&&(ye.removeChild(E),s._fill=null)},_updateCircle:function(s){var m=s._point.round(),E=Math.round(s._radius),Y=Math.round(s._radiusY||E);this._setPath(s,s._empty()?"M0 0":"AL "+m.x+","+m.y+" "+E+","+Y+" 0,23592600")},_setPath:function(s,m){s._path.v=m},_bringToFront:function(s){Wn(s._container)},_bringToBack:function(s){pn(s._container)}},ei=se.vml?bt:Pe,Li=Se.extend({_initContainer:function(){this._container=ei("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ei("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ji(this._container),cn(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Se.prototype._update.call(this);var s=this._bounds,m=s.getSize(),E=this._container;(!this._svgSize||!this._svgSize.equals(m))&&(this._svgSize=m,E.setAttribute("width",m.x),E.setAttribute("height",m.y)),Ei(E,s.min),E.setAttribute("viewBox",[s.min.x,s.min.y,m.x,m.y].join(" ")),this.fire("update")}},_initPath:function(s){var m=s._path=ei("path");s.options.className&&Mi(m,s.options.className),s.options.interactive&&Mi(m,"leaflet-interactive"),this._updateStyle(s),this._layers[d(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){ji(s._path),s.removeInteractiveTarget(s._path),delete this._layers[d(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var m=s._path,E=s.options;m&&(E.stroke?(m.setAttribute("stroke",E.color),m.setAttribute("stroke-opacity",E.opacity),m.setAttribute("stroke-width",E.weight),m.setAttribute("stroke-linecap",E.lineCap),m.setAttribute("stroke-linejoin",E.lineJoin),E.dashArray?m.setAttribute("stroke-dasharray",E.dashArray):m.removeAttribute("stroke-dasharray"),E.dashOffset?m.setAttribute("stroke-dashoffset",E.dashOffset):m.removeAttribute("stroke-dashoffset")):m.setAttribute("stroke","none"),E.fill?(m.setAttribute("fill",E.fillColor||E.color),m.setAttribute("fill-opacity",E.fillOpacity),m.setAttribute("fill-rule",E.fillRule||"evenodd")):m.setAttribute("fill","none"))},_updatePoly:function(s,m){this._setPath(s,Qe(s._parts,m))},_updateCircle:function(s){var m=s._point,E=Math.max(Math.round(s._radius),1),ye="a"+E+","+(Math.max(Math.round(s._radiusY),1)||E)+" 0 1,0 ",Xe=s._empty()?"M0 0":"M"+(m.x-E)+","+m.y+ye+2*E+",0 "+ye+2*-E+",0 ";this._setPath(s,Xe)},_setPath:function(s,m){s._path.setAttribute("d",m)},_bringToFront:function(s){Wn(s._path)},_bringToBack:function(s){pn(s._path)}});function En(s){return se.svg||se.vml?new Li(s):null}se.vml&&Li.include(Gt),an.include({getRenderer:function(s){var m=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return m||(m=this._renderer=this._createRenderer()),this.hasLayer(m)||this.addLayer(m),m},_getPaneRenderer:function(s){if("overlayPane"===s||void 0===s)return!1;var m=this._paneRenderers[s];return void 0===m&&(m=this._createRenderer({pane:s}),this._paneRenderers[s]=m),m},_createRenderer:function(s){return this.options.preferCanvas&&Ne(s)||En(s)}});var wn=to.extend({initialize:function(s,m){to.prototype.initialize.call(this,this._boundsToLatLngs(s),m)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))},_boundsToLatLngs:function(s){return[(s=Jt(s)).getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});Li.create=ei,Li.pointsToPath=Qe,ho.geometryToLayer=io,ho.coordsToLatLng=ls,ho.coordsToLatLngs=jo,ho.latLngToCoords=Ao,ho.latLngsToCoords=br,ho.getFeature=vo,ho.asFeature=Vo,an.mergeOptions({boxZoom:!0});var Yi=gr.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){Fi(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){cn(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ji(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(s){if(!s.shiftKey||1!==s.which&&1!==s.button)return!1;this._clearDeferredResetState(),this._resetState(),ht(),Je(),this._startPoint=this._map.mouseEventToContainerPoint(s),Fi(document,{contextmenu:Cr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=gi("div","leaflet-zoom-box",this._container),Mi(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var m=new ti(this._point,this._startPoint),E=m.getSize();Ei(this._box,m.min),this._box.style.width=E.x+"px",this._box.style.height=E.y+"px"},_finish:function(){this._moved&&(ji(this._box),qi(this._container,"leaflet-crosshair")),ni(),At(),cn(document,{contextmenu:Cr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if((1===s.which||1===s.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(l(this._resetState,this),0);var m=new Qt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(m).fire("boxzoomend",{boxZoomBounds:m})}},_onKeyDown:function(s){27===s.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});an.addInitHook("addHandler","boxZoom",Yi),an.mergeOptions({doubleClickZoom:!0});var tr=gr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var m=this._map,E=m.getZoom(),Y=m.options.zoomDelta,ye=s.originalEvent.shiftKey?E-Y:E+Y;"center"===m.options.doubleClickZoom?m.setZoom(ye):m.setZoomAround(s.containerPoint,ye)}});an.addInitHook("addHandler","doubleClickZoom",tr),an.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Cn=gr.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new nr(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}Mi(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){qi(this._map._container,"leaflet-grab"),qi(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var m=Jt(this._map.options.maxBounds);this._offsetLimit=mi(this._map.latLngToContainerPoint(m.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(m.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var m=this._lastTime=+new Date,E=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(E),this._times.push(m),this._prunePositions(m)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),m=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=m.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,m){return s-(s-m)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var s=this._draggable._newPos.subtract(this._draggable._startPos),m=this._offsetLimit;s.x<m.min.x&&(s.x=this._viscousLimit(s.x,m.min.x)),s.y<m.min.y&&(s.y=this._viscousLimit(s.y,m.min.y)),s.x>m.max.x&&(s.x=this._viscousLimit(s.x,m.max.x)),s.y>m.max.y&&(s.y=this._viscousLimit(s.y,m.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,m=Math.round(s/2),E=this._initialWorldOffset,Y=this._draggable._newPos.x,ye=(Y-m+E)%s+m-E,Xe=(Y+m+E)%s-m-E,Tt=Math.abs(ye+E)<Math.abs(Xe+E)?ye:Xe;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Tt},_onDragEnd:function(s){var m=this._map,E=m.options,Y=!E.inertia||s.noInertia||this._times.length<2;if(m.fire("dragend",s),Y)m.fire("moveend");else{this._prunePositions(+new Date);var ye=this._lastPos.subtract(this._positions[0]),Tt=E.easeLinearity,Wt=ye.multiplyBy(Tt/((this._lastTime-this._times[0])/1e3)),Yt=Wt.distanceTo([0,0]),di=Math.min(E.inertiaMaxSpeed,Yt),Di=Wt.multiplyBy(di/Yt),$i=di/(E.inertiaDeceleration*Tt),un=Di.multiplyBy(-$i/2).round();un.x||un.y?(un=m._limitOffset(un,m.options.maxBounds),ne(function(){m.panBy(un,{duration:$i,easeLinearity:Tt,noMoveStart:!0,animate:!0})})):m.fire("moveend")}}});an.addInitHook("addHandler","dragging",Cn),an.mergeOptions({keyboard:!0,keyboardPanDelta:80});var In=gr.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(s){this._map=s,this._setPanDelta(s.options.keyboardPanDelta),this._setZoomDelta(s.options.zoomDelta)},addHooks:function(){var s=this._map._container;s.tabIndex<=0&&(s.tabIndex="0"),Fi(s,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),cn(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var s=document.body,m=document.documentElement,E=s.scrollTop||m.scrollTop,Y=s.scrollLeft||m.scrollLeft;this._map._container.focus(),window.scrollTo(Y,E)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(s){var Y,ye,m=this._panKeys={},E=this.keyCodes;for(Y=0,ye=E.left.length;Y<ye;Y++)m[E.left[Y]]=[-1*s,0];for(Y=0,ye=E.right.length;Y<ye;Y++)m[E.right[Y]]=[s,0];for(Y=0,ye=E.down.length;Y<ye;Y++)m[E.down[Y]]=[0,s];for(Y=0,ye=E.up.length;Y<ye;Y++)m[E.up[Y]]=[0,-1*s]},_setZoomDelta:function(s){var Y,ye,m=this._zoomKeys={},E=this.keyCodes;for(Y=0,ye=E.zoomIn.length;Y<ye;Y++)m[E.zoomIn[Y]]=s;for(Y=0,ye=E.zoomOut.length;Y<ye;Y++)m[E.zoomOut[Y]]=-s},_addHooks:function(){Fi(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){cn(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(s){if(!(s.altKey||s.ctrlKey||s.metaKey)){var Y,m=s.keyCode,E=this._map;if(m in this._panKeys){if(!E._panAnim||!E._panAnim._inProgress)if(Y=this._panKeys[m],s.shiftKey&&(Y=zt(Y).multiplyBy(3)),E.options.maxBounds&&(Y=E._limitOffset(zt(Y),E.options.maxBounds)),E.options.worldCopyJump){var ye=E.wrapLatLng(E.unproject(E.project(E.getCenter()).add(Y)));E.panTo(ye)}else E.panBy(Y)}else if(m in this._zoomKeys)E.setZoom(E.getZoom()+(s.shiftKey?3:1)*this._zoomKeys[m]);else{if(27!==m||!E._popup||!E._popup.options.closeOnEscapeKey)return;E.closePopup()}Cr(s)}}});an.addInitHook("addHandler","keyboard",In),an.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Or=gr.extend({addHooks:function(){Fi(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){cn(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(s){var m=$r(s),E=this._map.options.wheelDebounceTime;this._delta+=m,this._lastMousePos=this._map.mouseEventToContainerPoint(s),this._startTime||(this._startTime=+new Date);var Y=Math.max(E-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(l(this._performZoom,this),Y),Cr(s)},_performZoom:function(){var s=this._map,m=s.getZoom(),E=this._map.options.zoomSnap||0;s._stop();var ye=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/Math.LN2,Xe=E?Math.ceil(ye/E)*E:ye,Tt=s._limitZoom(m+(this._delta>0?Xe:-Xe))-m;this._delta=0,this._startTime=null,Tt&&("center"===s.options.scrollWheelZoom?s.setZoom(m+Tt):s.setZoomAround(this._lastMousePos,m+Tt))}});an.addInitHook("addHandler","scrollWheelZoom",Or);an.mergeOptions({tapHold:se.touchNative&&se.safari&&se.mobile,tapTolerance:15});var $o=gr.extend({addHooks:function(){Fi(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){cn(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),1===s.touches.length){var m=s.touches[0];this._startPos=this._newPos=new dt(m.clientX,m.clientY),this._holdTimeout=setTimeout(l(function(){this._cancel(),this._isTapValid()&&(Fi(document,"touchend",Kn),Fi(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",m))},this),600),Fi(document,"touchend touchcancel contextmenu",this._cancel,this),Fi(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){cn(document,"touchend",Kn),cn(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),cn(document,"touchend touchcancel contextmenu",this._cancel,this),cn(document,"touchmove",this._onMove,this)},_onMove:function(s){var m=s.touches[0];this._newPos=new dt(m.clientX,m.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,m){var E=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:m.screenX,screenY:m.screenY,clientX:m.clientX,clientY:m.clientY});E._simulated=!0,m.target.dispatchEvent(E)}});an.addInitHook("addHandler","tapHold",$o),an.mergeOptions({touchZoom:se.touch,bounceAtZoomLimits:!0});var jr=gr.extend({addHooks:function(){Mi(this._map._container,"leaflet-touch-zoom"),Fi(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){qi(this._map._container,"leaflet-touch-zoom"),cn(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var m=this._map;if(s.touches&&2===s.touches.length&&!m._animatingZoom&&!this._zooming){var E=m.mouseEventToContainerPoint(s.touches[0]),Y=m.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=m.getSize()._divideBy(2),this._startLatLng=m.containerPointToLatLng(this._centerPoint),"center"!==m.options.touchZoom&&(this._pinchStartLatLng=m.containerPointToLatLng(E.add(Y)._divideBy(2))),this._startDist=E.distanceTo(Y),this._startZoom=m.getZoom(),this._moved=!1,this._zooming=!0,m._stop(),Fi(document,"touchmove",this._onTouchMove,this),Fi(document,"touchend touchcancel",this._onTouchEnd,this),Kn(s)}},_onTouchMove:function(s){if(s.touches&&2===s.touches.length&&this._zooming){var m=this._map,E=m.mouseEventToContainerPoint(s.touches[0]),Y=m.mouseEventToContainerPoint(s.touches[1]),ye=E.distanceTo(Y)/this._startDist;if(this._zoom=m.getScaleZoom(ye,this._startZoom),!m.options.bounceAtZoomLimits&&(this._zoom<m.getMinZoom()&&ye<1||this._zoom>m.getMaxZoom()&&ye>1)&&(this._zoom=m._limitZoom(this._zoom)),"center"===m.options.touchZoom){if(this._center=this._startLatLng,1===ye)return}else{var Xe=E._add(Y)._divideBy(2)._subtract(this._centerPoint);if(1===ye&&0===Xe.x&&0===Xe.y)return;this._center=m.unproject(m.project(this._pinchStartLatLng,this._zoom).subtract(Xe),this._zoom)}this._moved||(m._moveStart(!0,!1),this._moved=!0),Ze(this._animRequest);var Tt=l(m._move,m,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=ne(Tt,this,!0),Kn(s)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,Ze(this._animRequest),cn(document,"touchmove",this._onTouchMove,this),cn(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});an.addInitHook("addHandler","touchZoom",jr),an.BoxZoom=Yi,an.DoubleClickZoom=tr,an.Drag=Cn,an.Keyboard=In,an.ScrollWheelZoom=Or,an.TapHold=$o,an.TouchZoom=jr,a.Bounds=ti,a.Browser=se,a.CRS=Fe,a.Canvas=oe,a.Circle=cr,a.CircleMarker=Qi,a.Class=nt,a.Control=er,a.DivIcon=gs,a.DivOverlay=An,a.DomEvent=Pr,a.DomUtil=Bo,a.Draggable=nr,a.Evented=ot,a.FeatureGroup=pt,a.GeoJSON=ho,a.GridLayer=cs,a.Handler=gr,a.Icon=ki,a.ImageOverlay=ws,a.LatLng=lt,a.LatLngBounds=Qt,a.Layer=de,a.LayerGroup=$e,a.LineUtil=Wi,a.Map=an,a.Marker=gn,a.Mixin=co,a.Path=Pi,a.Point=dt,a.PolyUtil=Uo,a.Polygon=to,a.Polyline=Zn,a.Popup=Yr,a.PosAnimation=Oo,a.Projection=pe,a.Rectangle=wn,a.Renderer=Se,a.SVG=Li,a.SVGOverlay=Is,a.TileLayer=So,a.Tooltip=Yo,a.Transformation=He,a.Util=Oe,a.VideoOverlay=Wo,a.bind=l,a.bounds=mi,a.canvas=Ne,a.circle=function _n(s,m,E){return new cr(s,m,E)},a.circleMarker=function sr(s,m){return new Qi(s,m)},a.control=hr,a.divIcon=function ra(s){return new gs(s)},a.extend=e,a.featureGroup=function(s,m){return new pt(s,m)},a.geoJSON=zo,a.geoJson=Es,a.gridLayer=function oa(s){return new cs(s)},a.icon=function Ai(s){return new ki(s)},a.imageOverlay=function(s,m,E){return new ws(s,m,E)},a.latLng=_t,a.latLngBounds=Jt,a.layerGroup=function(s,m){return new $e(s,m)},a.map=function Mo(s,m){return new an(s,m)},a.marker=function vr(s,m){return new gn(s,m)},a.point=zt,a.polygon=function Mr(s,m){return new to(s,m)},a.polyline=function Io(s,m){return new Zn(s,m)},a.popup=function(s,m){return new Yr(s,m)},a.rectangle=function yn(s,m){return new wn(s,m)},a.setOptions=f,a.stamp=d,a.svg=En,a.svgOverlay=function na(s,m,E){return new Is(s,m,E)},a.tileLayer=Ho,a.tooltip=function(s,m){return new Yo(s,m)},a.transformation=Te,a.version="1.9.4",a.videoOverlay=function is(s,m,E){return new Wo(s,m,E)};var mo=window.L;a.noConflict=function(){return window.L=mo,this},window.L=a}(P)},231:(G,P,a)=>{"use strict";a.d(P,{Z:()=>v,e:()=>l});var n=a(4650),e=a(6895),o=["iframe"],l=function(){function d(){this.onBeforePrint=new n.EventEmitter,this.onAfterPrint=new n.EventEmitter,this.onDocumentLoad=new n.EventEmitter,this.onPageChange=new n.EventEmitter,this.externalWindow=!1,this.showSpinner=!0,this.openFile=!0,this.download=!0,this.viewBookmark=!0,this.print=!0,this.fullScreen=!0,this.find=!0,this.useOnlyCssZoom=!1,this.errorOverride=!1,this.errorAppend=!0,this.diagnosticLogs=!0}return Object.defineProperty(d.prototype,"page",{get:function(){if(this.PDFViewerApplication)return this.PDFViewerApplication.page;this.diagnosticLogs&&console.warn("Document is not loaded yet!!!. Try to retrieve page# after full load.")},set:function(u){this._page=u,this.PDFViewerApplication?this.PDFViewerApplication.page=this._page:this.diagnosticLogs&&console.warn("Document is not loaded yet!!!. Try to set page# after full load. Ignore this warning if you are not setting page# using '.' notation. (E.g. pdfViewer.page = 5;)")},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"pdfSrc",{get:function(){return this._src},set:function(u){this._src=u},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"PDFViewerApplicationOptions",{get:function(){var u=null;return this.externalWindow?this.viewerTab&&(u=this.viewerTab.PDFViewerApplicationOptions):this.iframe.nativeElement.contentWindow&&(u=this.iframe.nativeElement.contentWindow.PDFViewerApplicationOptions),u},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"PDFViewerApplication",{get:function(){var u=null;return this.externalWindow?this.viewerTab&&(u=this.viewerTab.PDFViewerApplication):this.iframe.nativeElement.contentWindow&&(u=this.iframe.nativeElement.contentWindow.PDFViewerApplication),u},enumerable:!1,configurable:!0}),d.prototype.receiveMessage=function(u){if(u.data&&u.data.viewerId&&u.data.event){var C=u.data.event,x=u.data.param;this.viewerId==u.data.viewerId&&(this.onBeforePrint&&"beforePrint"==C?this.onBeforePrint.emit():this.onAfterPrint&&"afterPrint"==C?this.onAfterPrint.emit():this.onDocumentLoad&&"pagesLoaded"==C?this.onDocumentLoad.emit(x):this.onPageChange&&"pageChange"==C&&this.onPageChange.emit(x))}},d.prototype.ngOnInit=function(){window.addEventListener("message",this.receiveMessage.bind(this),!1),this.externalWindow||this.loadPdf()},d.prototype.refresh=function(){this.loadPdf()},d.prototype.loadPdf=function(){if(this._src){if(this.externalWindow&&(typeof this.viewerTab>"u"||this.viewerTab.closed)){if(this.viewerTab=window.open("","_blank",this.externalWindowOptions||""),null==this.viewerTab)return void(this.diagnosticLogs&&console.error("ng2-pdfjs-viewer: For 'externalWindow = true'. i.e opening in new tab to work, pop-ups should be enabled."));this.showSpinner&&this.viewerTab.document.write('\n          <style>\n          .loader {\n            position: fixed;\n            left: 40%;\n            top: 40%;\n            border: 16px solid #f3f3f3;\n            border-radius: 50%;\n            border-top: 16px solid #3498db;\n            width: 120px;\n            height: 120px;\n            animation: spin 2s linear infinite;\n          }\n          @keyframes spin {\n            0% {\n              transform: rotate(0deg);\n            }\n            100% {\n              transform: rotate(360deg);\n            }\n          }\n          </style>\n          <div class="loader"></div>\n        ')}var u,C;if(this._src instanceof Blob)u=encodeURIComponent(URL.createObjectURL(this._src));else if(this._src instanceof Uint8Array){var b=new Blob([this._src],{type:"application/pdf"});u=encodeURIComponent(URL.createObjectURL(b))}else u=this._src;C=this.viewerFolder?this.viewerFolder+"/web/viewer.html":"assets/pdfjs/web/viewer.html",C+="?file="+u,typeof this.viewerId<"u"&&(C+="&viewerId="+this.viewerId),typeof this.onBeforePrint<"u"&&(C+="&beforePrint=true"),typeof this.onAfterPrint<"u"&&(C+="&afterPrint=true"),typeof this.onDocumentLoad<"u"&&(C+="&pagesLoaded=true"),typeof this.onPageChange<"u"&&(C+="&pageChange=true"),this.downloadFileName&&(this.downloadFileName.endsWith(".pdf")||(this.downloadFileName+=".pdf"),C+="&fileName="+this.downloadFileName),typeof this.openFile<"u"&&(C+="&openFile="+this.openFile),typeof this.download<"u"&&(C+="&download="+this.download),this.startDownload&&(C+="&startDownload="+this.startDownload),typeof this.viewBookmark<"u"&&(C+="&viewBookmark="+this.viewBookmark),typeof this.print<"u"&&(C+="&print="+this.print),this.startPrint&&(C+="&startPrint="+this.startPrint),typeof this.fullScreen<"u"&&(C+="&fullScreen="+this.fullScreen),typeof this.find<"u"&&(C+="&find="+this.find),this.lastPage&&(C+="&lastpage="+this.lastPage),this.rotatecw&&(C+="&rotatecw="+this.rotatecw),this.rotateccw&&(C+="&rotateccw="+this.rotateccw),this.cursor&&(C+="&cursor="+this.cursor),this.scroll&&(C+="&scroll="+this.scroll),this.spread&&(C+="&spread="+this.spread),this.locale&&(C+="&locale="+this.locale),this.useOnlyCssZoom&&(C+="&useOnlyCssZoom="+this.useOnlyCssZoom),(this._page||this.zoom||this.nameddest||this.pagemode)&&(C+="#"),this._page&&(C+="&page="+this._page),this.zoom&&(C+="&zoom="+this.zoom),this.nameddest&&(C+="&nameddest="+this.nameddest),this.pagemode&&(C+="&pagemode="+this.pagemode),(this.errorOverride||this.errorAppend)&&(C+="&errorMessage="+this.errorMessage,this.errorOverride&&(C+="&errorOverride="+this.errorOverride),this.errorAppend&&(C+="&errorAppend="+this.errorAppend)),this.externalWindow?this.viewerTab.location.href=C:this.iframe.nativeElement.src=C}},d.propDecorators={iframe:[{type:n.ViewChild,args:["iframe",{static:!0}]}],viewerId:[{type:n.Input}],onBeforePrint:[{type:n.Output}],onAfterPrint:[{type:n.Output}],onDocumentLoad:[{type:n.Output}],onPageChange:[{type:n.Output}],viewerFolder:[{type:n.Input}],externalWindow:[{type:n.Input}],showSpinner:[{type:n.Input}],downloadFileName:[{type:n.Input}],openFile:[{type:n.Input}],download:[{type:n.Input}],startDownload:[{type:n.Input}],viewBookmark:[{type:n.Input}],print:[{type:n.Input}],startPrint:[{type:n.Input}],fullScreen:[{type:n.Input}],find:[{type:n.Input}],zoom:[{type:n.Input}],nameddest:[{type:n.Input}],pagemode:[{type:n.Input}],lastPage:[{type:n.Input}],rotatecw:[{type:n.Input}],rotateccw:[{type:n.Input}],cursor:[{type:n.Input}],scroll:[{type:n.Input}],spread:[{type:n.Input}],locale:[{type:n.Input}],useOnlyCssZoom:[{type:n.Input}],errorOverride:[{type:n.Input}],errorAppend:[{type:n.Input}],errorMessage:[{type:n.Input}],diagnosticLogs:[{type:n.Input}],externalWindowOptions:[{type:n.Input}],page:[{type:n.Input}],pdfSrc:[{type:n.Input}]},d.\u0275fac=function(b){return new(b||d)},d.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["ng2-pdfjs-viewer"]],viewQuery:function(b,C){var x;1&b&&n.\u0275\u0275viewQuery(o,7),2&b&&n.\u0275\u0275queryRefresh(x=n.\u0275\u0275loadQuery())&&(C.iframe=x.first)},inputs:{externalWindow:"externalWindow",showSpinner:"showSpinner",openFile:"openFile",download:"download",viewBookmark:"viewBookmark",print:"print",fullScreen:"fullScreen",find:"find",useOnlyCssZoom:"useOnlyCssZoom",errorOverride:"errorOverride",errorAppend:"errorAppend",diagnosticLogs:"diagnosticLogs",page:"page",pdfSrc:"pdfSrc",viewerId:"viewerId",viewerFolder:"viewerFolder",downloadFileName:"downloadFileName",startDownload:"startDownload",startPrint:"startPrint",zoom:"zoom",nameddest:"nameddest",pagemode:"pagemode",lastPage:"lastPage",rotatecw:"rotatecw",rotateccw:"rotateccw",cursor:"cursor",scroll:"scroll",spread:"spread",locale:"locale",errorMessage:"errorMessage",externalWindowOptions:"externalWindowOptions"},outputs:{onBeforePrint:"onBeforePrint",onAfterPrint:"onAfterPrint",onDocumentLoad:"onDocumentLoad",onPageChange:"onPageChange"},decls:2,vars:1,consts:[["title","ng2-pdfjs-viewer","width","100%","height","100%",3,"hidden"],["iframe",""]],template:function(b,C){1&b&&n.\u0275\u0275element(0,"iframe",0,1),2&b&&n.\u0275\u0275property("hidden",C.externalWindow||!C.externalWindow&&!C.pdfSrc)},encapsulation:2}),d}(),v=function(){function d(){}return d.forRoot=function(){return{ngModule:d}},d.\u0275fac=function(b){return new(b||d)},d.\u0275mod=n.\u0275\u0275defineNgModule({type:d}),d.\u0275inj=n.\u0275\u0275defineInjector({imports:[e.CommonModule]}),d}()},3189:(G,P,a)=>{"use strict";a.d(P,{Z:()=>e,h:()=>o});var n=a(4650);let e=(()=>{class l{transform(d,u){return u&&d?l.filter(d,u):d}static filter(d,u){const b=u.toLowerCase();function C(x,w){for(let g in x)if(null!==x[g]&&null!=x[g]&&("object"==typeof x[g]&&C(x[g],w)||x[g].toString().toLowerCase().includes(b)))return!0;return!1}return d.filter(function(x){return C(x,u)})}}return l.\u0275fac=function(d){return new(d||l)},l.\u0275pipe=n.\u0275\u0275definePipe({name:"filter",type:l,pure:!1}),l.\u0275prov=n.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac}),l})(),o=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275mod=n.\u0275\u0275defineNgModule({type:l}),l.\u0275inj=n.\u0275\u0275defineInjector({}),l})()},3493:function(G,P,a){"use strict";var n=a(4650),v=(a(5528),a(5371),a(6895),this&&this.__decorate||function(f,S,j,B){var q,Z=arguments.length,le=Z<3?S:null===B?B=Object.getOwnPropertyDescriptor(S,j):B;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)le=Reflect.decorate(f,S,j,B);else for(var X=f.length-1;X>=0;X--)(q=f[X])&&(le=(Z<3?q(le):Z>3?q(S,j,le):q(S,j))||le);return Z>3&&le&&Object.defineProperty(S,j,le),le}),d=this&&this.__metadata||function(f,S){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(f,S)};a(4650);var C=a(6895);a(5528),a(5371),function u(f){for(var S in f)P.hasOwnProperty(S)||(P[S]=f[S])}(a(5528));var g=function(){function f(){}return(f=v([d("design:paramtypes",[])],f)).\u0275fac=function(j){return new(j||f)},f.\u0275mod=n.\u0275\u0275defineNgModule({type:f}),f.\u0275inj=n.\u0275\u0275defineInjector({imports:[C.CommonModule]}),f}();P.OwlModule=g},5528:function(G,P,a){"use strict";var n=a(4650),e=a(6895),o=a(5371),l=["owl"],v=["*"],d=this&&this.__decorate||function(w,g,f,S){var Z,j=arguments.length,B=j<3?g:null===S?S=Object.getOwnPropertyDescriptor(g,f):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(w,g,f,S);else for(var le=w.length-1;le>=0;le--)(Z=w[le])&&(B=(j<3?Z(B):j>3?Z(g,f,B):Z(g,f))||B);return j>3&&B&&Object.defineProperty(g,f,B),B},u=this&&this.__metadata||function(w,g){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(w,g)},b=a(4650),C=a(5371),x=function(){function w(g){this.differs=g,this.carouselClasses="",this.options={}}return Object.defineProperty(w.prototype,"items",{set:function(g){this._items=g,g&&!this.differ&&(this.differ=this.differs.find(g).create(null))},enumerable:!0,configurable:!0}),w.prototype.ngDoCheck=function(){if(this.differ){var g=this.differ.diff(this._items);if(g){var f=!1,S=function(){f=!0};g.forEachAddedItem(S),g.forEachMovedItem(S),g.forEachRemovedItem(S),f&&this.reInit()}}},w.prototype.reInit=function(){var g=this;this.$owlChild.$owl&&this.$owlChild.$owl.css("display","none"),setTimeout(function(){if(g.$owlChild.destroyOwl(),g.$owlChild.$owl){var f=g._items&&g._items.length;f&&f<=g.$owlChild.currentSlideIndex&&(g.$owlChild.currentSlideIndex=f),g.$owlChild.$owl.css("display","block")}g.$owlChild.initOwl()},0)},w.prototype.refresh=function(){this.trigger("refresh.owl.carousel")},w.prototype.next=function(g){this.trigger("next.owl.carousel",g)},w.prototype.previous=function(g){this.trigger("prev.owl.carousel",g)},w.prototype.to=function(g){this.trigger("to.owl.carousel",g)},w.prototype.trigger=function(g,f){this.$owlChild.trigger(g,f)},d([b.ViewChild("owl"),u("design:type",C.OwlChild)],w.prototype,"$owlChild",void 0),d([b.Input(),u("design:type",Object)],w.prototype,"carouselClasses",void 0),d([b.Input(),u("design:type",Object)],w.prototype,"options",void 0),d([b.Input(),u("design:type",Array),u("design:paramtypes",[Array])],w.prototype,"items",null),(w=d([u("design:paramtypes",[b.IterableDiffers])],w)).\u0275fac=function(f){return new(f||w)(n.\u0275\u0275directiveInject(n.IterableDiffers))},w.\u0275cmp=n.\u0275\u0275defineComponent({type:w,selectors:[["owl-carousel"]],viewQuery:function(f,S){var j;1&f&&n.\u0275\u0275viewQuery(l,5),2&f&&n.\u0275\u0275queryRefresh(j=n.\u0275\u0275loadQuery())&&(S.$owlChild=j.first)},inputs:{carouselClasses:"carouselClasses",options:"options",items:"items"},ngContentSelectors:v,decls:3,vars:2,consts:[[3,"ngClass","options"],["owl",""]],template:function(f,S){1&f&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"owl-carousel-child",0,1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd()),2&f&&n.\u0275\u0275property("ngClass",S.carouselClasses)("options",S.options)},dependencies:[e.NgClass,o.OwlChild],encapsulation:2}),w}();P.OwlCarousel=x},5371:function(G,P,a){"use strict";var n=a(4650),e=["*"],o=this&&this.__decorate||function(u,b,C,x){var f,w=arguments.length,g=w<3?b:null===x?x=Object.getOwnPropertyDescriptor(b,C):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(u,b,C,x);else for(var S=u.length-1;S>=0;S--)(f=u[S])&&(g=(w<3?f(g):w>3?f(b,C,g):f(b,C))||g);return w>3&&g&&Object.defineProperty(b,C,g),g},l=this&&this.__metadata||function(u,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(u,b)},v=a(4650),d=function(){function u(b){this.el=b,this.owlClass=!0,this.options={},typeof $>"u"&&typeof jQuery<"u"&&($=jQuery)}return u.prototype.ngOnInit=function(){typeof window<"u"&&$&&"function"==typeof $.fn.owlCarousel&&(this.$owl=$(this.el.nativeElement))},u.prototype.ngAfterViewInit=function(){this.initOwl()},u.prototype.initOwl=function(){var b=this;if(this.$owl){var C={};Object.assign(C,this.options),this.currentSlideIndex&&(C.startPosition=this.currentSlideIndex),this.$owl.owlCarousel(C),this.$owl.on("changed.owl.carousel",function(x){b.currentSlideIndex=x.item.index})}},u.prototype.trigger=function(b,C){this.$owl&&this.$owl.trigger(b,C)},u.prototype.ngOnDestroy=function(){this.destroyOwl(),delete this.$owl},u.prototype.destroyOwl=function(){this.$owl&&this.$owl.trigger("destroy.owl.carousel").removeClass("owl-loaded owl-hidden").find(".owl-stage:empty, .owl-item:empty").remove()},o([v.HostBinding("class.owl-carousel"),l("design:type",Object)],u.prototype,"owlClass",void 0),o([v.Input(),l("design:type",Object)],u.prototype,"options",void 0),(u=o([l("design:paramtypes",[v.ElementRef])],u)).\u0275fac=function(C){return new(C||u)(n.\u0275\u0275directiveInject(n.ElementRef))},u.\u0275cmp=n.\u0275\u0275defineComponent({type:u,selectors:[["owl-carousel-child"]],hostVars:2,hostBindings:function(C,x){2&C&&n.\u0275\u0275classProp("owl-carousel",x.owlClass)},inputs:{options:"options"},ngContentSelectors:e,decls:1,vars:0,template:function(C,x){1&C&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0))},encapsulation:2}),u}();P.OwlChild=d},3257:(G,P)=>{P.encode=function(a){var n="";for(var e in a)a.hasOwnProperty(e)&&(n.length&&(n+="&"),n+=encodeURIComponent(e)+"="+encodeURIComponent(a[e]));return n},P.decode=function(a){for(var n={},e=a.split("&"),o=0,l=e.length;o<l;o++){var v=e[o].split("=");n[decodeURIComponent(v[0])]=decodeURIComponent(v[1])}return n}},1884:G=>{var P=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,a=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];G.exports=function(l){var v=l,d=l.indexOf("["),u=l.indexOf("]");-1!=d&&-1!=u&&(l=l.substring(0,d)+l.substring(d,u).replace(/:/g,";")+l.substring(u,l.length));for(var b=P.exec(l||""),C={},x=14;x--;)C[a[x]]=b[x]||"";return-1!=d&&-1!=u&&(C.source=v,C.host=C.host.substring(1,C.host.length-1).replace(/;/g,":"),C.authority=C.authority.replace("[","").replace("]","").replace(/;/g,":"),C.ipv6uri=!0),C.pathNames=function n(o,l){var d=l.replace(/\/{2,9}/g,"/").split("/");return("/"==l.substr(0,1)||0===l.length)&&d.splice(0,1),"/"==l.substr(l.length-1,1)&&d.splice(d.length-1,1),d}(0,C.path),C.queryKey=function e(o,l){var v={};return l.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(d,u,b){u&&(v[u]=b)}),v}(0,C.query),C}},591:(G,P,a)=>{"use strict";a.d(P,{X:()=>o});var n=a(8929),e=a(5279);class o extends n.xQ{constructor(v){super(),this._value=v}get value(){return this.getValue()}_subscribe(v){const d=super._subscribe(v);return d&&!d.closed&&v.next(this._value),d}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new e.N;return this._value}next(v){super.next(this._value=v)}}},1869:(G,P,a)=>{"use strict";a.d(P,{d:()=>e});var n=a(3489);class e extends n.L{constructor(l,v,d){super(),this.parent=l,this.outerValue=v,this.outerIndex=d,this.index=0}_next(l){this.parent.notifyNext(this.outerValue,l,this.outerIndex,this.index++,this)}_error(l){this.parent.notifyError(l,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(G,P,a)=>{"use strict";a.d(P,{P:()=>v});var n=a(8896),e=a(1086),o=a(1737);class v{constructor(u,b,C){this.kind=u,this.value=b,this.error=C,this.hasValue="N"===u}observe(u){switch(this.kind){case"N":return u.next&&u.next(this.value);case"E":return u.error&&u.error(this.error);case"C":return u.complete&&u.complete()}}do(u,b,C){switch(this.kind){case"N":return u&&u(this.value);case"E":return b&&b(this.error);case"C":return C&&C()}}accept(u,b,C){return u&&"function"==typeof u.next?this.observe(u):this.do(u,b,C)}toObservable(){switch(this.kind){case"N":return(0,e.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(u){return typeof u<"u"?new v("N",u):v.undefinedValueNotification}static createError(u){return new v("E",void 0,u)}static createComplete(){return v.completeNotification}}v.completeNotification=new v("C"),v.undefinedValueNotification=new v("N",void 0)},6498:(G,P,a)=>{"use strict";a.d(P,{y:()=>C});var n=a(3489),o=a(7668),l=a(3292),d=a(3821),u=a(4843),b=a(2830);let C=(()=>{class w{constructor(f){this._isScalar=!1,f&&(this._subscribe=f)}lift(f){const S=new w;return S.source=this,S.operator=f,S}subscribe(f,S,j){const{operator:B}=this,Z=function v(w,g,f){if(w){if(w instanceof n.L)return w;if(w[o.b])return w[o.b]()}return w||g||f?new n.L(w,g,f):new n.L(l.c)}(f,S,j);if(Z.add(B?B.call(Z,this.source):this.source||b.v.useDeprecatedSynchronousErrorHandling&&!Z.syncErrorThrowable?this._subscribe(Z):this._trySubscribe(Z)),b.v.useDeprecatedSynchronousErrorHandling&&Z.syncErrorThrowable&&(Z.syncErrorThrowable=!1,Z.syncErrorThrown))throw Z.syncErrorValue;return Z}_trySubscribe(f){try{return this._subscribe(f)}catch(S){b.v.useDeprecatedSynchronousErrorHandling&&(f.syncErrorThrown=!0,f.syncErrorValue=S),function e(w){for(;w;){const{closed:g,destination:f,isStopped:S}=w;if(g||S)return!1;w=f&&f instanceof n.L?f:null}return!0}(f)?f.error(S):console.warn(S)}}forEach(f,S){return new(S=x(S))((j,B)=>{let Z;Z=this.subscribe(le=>{try{f(le)}catch(q){B(q),Z&&Z.unsubscribe()}},B,j)})}_subscribe(f){const{source:S}=this;return S&&S.subscribe(f)}[d.L](){return this}pipe(...f){return 0===f.length?this:(0,u.U)(f)(this)}toPromise(f){return new(f=x(f))((S,j)=>{let B;this.subscribe(Z=>B=Z,Z=>j(Z),()=>S(B))})}}return w.create=g=>new w(g),w})();function x(w){if(w||(w=b.v.Promise||Promise),!w)throw new Error("no Promise impl found");return w}},3292:(G,P,a)=>{"use strict";a.d(P,{c:()=>o});var n=a(2830),e=a(2782);const o={closed:!0,next(l){},error(l){if(n.v.useDeprecatedSynchronousErrorHandling)throw l;(0,e.z)(l)},complete(){}}},826:(G,P,a)=>{"use strict";a.d(P,{L:()=>e});var n=a(3489);class e extends n.L{notifyNext(l,v,d,u,b){this.destination.next(v)}notifyError(l,v){this.destination.error(l)}notifyComplete(l){this.destination.complete()}}},8929:(G,P,a)=>{"use strict";a.d(P,{Yc:()=>u,xQ:()=>b});var n=a(6498),e=a(3489),o=a(2654),l=a(5279),v=a(5283),d=a(7668);class u extends e.L{constructor(w){super(w),this.destination=w}}let b=(()=>{class x extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[d.b](){return new u(this)}lift(g){const f=new C(this,this);return f.operator=g,f}next(g){if(this.closed)throw new l.N;if(!this.isStopped){const{observers:f}=this,S=f.length,j=f.slice();for(let B=0;B<S;B++)j[B].next(g)}}error(g){if(this.closed)throw new l.N;this.hasError=!0,this.thrownError=g,this.isStopped=!0;const{observers:f}=this,S=f.length,j=f.slice();for(let B=0;B<S;B++)j[B].error(g);this.observers.length=0}complete(){if(this.closed)throw new l.N;this.isStopped=!0;const{observers:g}=this,f=g.length,S=g.slice();for(let j=0;j<f;j++)S[j].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(g){if(this.closed)throw new l.N;return super._trySubscribe(g)}_subscribe(g){if(this.closed)throw new l.N;return this.hasError?(g.error(this.thrownError),o.w.EMPTY):this.isStopped?(g.complete(),o.w.EMPTY):(this.observers.push(g),new v.W(this,g))}asObservable(){const g=new n.y;return g.source=this,g}}return x.create=(w,g)=>new C(w,g),x})();class C extends b{constructor(w,g){super(),this.destination=w,this.source=g}next(w){const{destination:g}=this;g&&g.next&&g.next(w)}error(w){const{destination:g}=this;g&&g.error&&this.destination.error(w)}complete(){const{destination:w}=this;w&&w.complete&&this.destination.complete()}_subscribe(w){const{source:g}=this;return g?this.source.subscribe(w):o.w.EMPTY}}},5283:(G,P,a)=>{"use strict";a.d(P,{W:()=>e});var n=a(2654);class e extends n.w{constructor(l,v){super(),this.subject=l,this.subscriber=v,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const l=this.subject,v=l.observers;if(this.subject=null,!v||0===v.length||l.isStopped||l.closed)return;const d=v.indexOf(this.subscriber);-1!==d&&v.splice(d,1)}}},3489:(G,P,a)=>{"use strict";a.d(P,{L:()=>u});var n=a(7043),e=a(3292),o=a(2654),l=a(7668),v=a(2830),d=a(2782);class u extends o.w{constructor(x,w,g){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=e.c;break;case 1:if(!x){this.destination=e.c;break}if("object"==typeof x){x instanceof u?(this.syncErrorThrowable=x.syncErrorThrowable,this.destination=x,x.add(this)):(this.syncErrorThrowable=!0,this.destination=new b(this,x));break}default:this.syncErrorThrowable=!0,this.destination=new b(this,x,w,g)}}[l.b](){return this}static create(x,w,g){const f=new u(x,w,g);return f.syncErrorThrowable=!1,f}next(x){this.isStopped||this._next(x)}error(x){this.isStopped||(this.isStopped=!0,this._error(x))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(x){this.destination.next(x)}_error(x){this.destination.error(x),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:x}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=x,this}}class b extends u{constructor(x,w,g,f){super(),this._parentSubscriber=x;let S,j=this;(0,n.m)(w)?S=w:w&&(S=w.next,g=w.error,f=w.complete,w!==e.c&&(j=Object.create(w),(0,n.m)(j.unsubscribe)&&this.add(j.unsubscribe.bind(j)),j.unsubscribe=this.unsubscribe.bind(this))),this._context=j,this._next=S,this._error=g,this._complete=f}next(x){if(!this.isStopped&&this._next){const{_parentSubscriber:w}=this;v.v.useDeprecatedSynchronousErrorHandling&&w.syncErrorThrowable?this.__tryOrSetError(w,this._next,x)&&this.unsubscribe():this.__tryOrUnsub(this._next,x)}}error(x){if(!this.isStopped){const{_parentSubscriber:w}=this,{useDeprecatedSynchronousErrorHandling:g}=v.v;if(this._error)g&&w.syncErrorThrowable?(this.__tryOrSetError(w,this._error,x),this.unsubscribe()):(this.__tryOrUnsub(this._error,x),this.unsubscribe());else if(w.syncErrorThrowable)g?(w.syncErrorValue=x,w.syncErrorThrown=!0):(0,d.z)(x),this.unsubscribe();else{if(this.unsubscribe(),g)throw x;(0,d.z)(x)}}}complete(){if(!this.isStopped){const{_parentSubscriber:x}=this;if(this._complete){const w=()=>this._complete.call(this._context);v.v.useDeprecatedSynchronousErrorHandling&&x.syncErrorThrowable?(this.__tryOrSetError(x,w),this.unsubscribe()):(this.__tryOrUnsub(w),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(x,w){try{x.call(this._context,w)}catch(g){if(this.unsubscribe(),v.v.useDeprecatedSynchronousErrorHandling)throw g;(0,d.z)(g)}}__tryOrSetError(x,w,g){if(!v.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{w.call(this._context,g)}catch(f){return v.v.useDeprecatedSynchronousErrorHandling?(x.syncErrorValue=f,x.syncErrorThrown=!0,!0):((0,d.z)(f),!0)}return!1}_unsubscribe(){const{_parentSubscriber:x}=this;this._context=null,this._parentSubscriber=null,x.unsubscribe()}}},2654:(G,P,a)=>{"use strict";a.d(P,{w:()=>d});var n=a(6688),e=a(7830),o=a(7043);const v=(()=>{function b(C){return Error.call(this),this.message=C?`${C.length} errors occurred during unsubscription:\n${C.map((x,w)=>`${w+1}) ${x.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=C,this}return b.prototype=Object.create(Error.prototype),b})();class d{constructor(C){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,C&&(this._unsubscribe=C)}unsubscribe(){let C;if(this.closed)return;let{_parentOrParents:x,_unsubscribe:w,_subscriptions:g}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,x instanceof d)x.remove(this);else if(null!==x)for(let f=0;f<x.length;++f)x[f].remove(this);if((0,o.m)(w))try{w.call(this)}catch(f){C=f instanceof v?u(f.errors):[f]}if((0,n.k)(g)){let f=-1,S=g.length;for(;++f<S;){const j=g[f];if((0,e.K)(j))try{j.unsubscribe()}catch(B){C=C||[],B instanceof v?C=C.concat(u(B.errors)):C.push(B)}}}if(C)throw new v(C)}add(C){let x=C;if(!C)return d.EMPTY;switch(typeof C){case"function":x=new d(C);case"object":if(x===this||x.closed||"function"!=typeof x.unsubscribe)return x;if(this.closed)return x.unsubscribe(),x;if(!(x instanceof d)){const f=x;x=new d,x._subscriptions=[f]}break;default:throw new Error("unrecognized teardown "+C+" added to Subscription.")}let{_parentOrParents:w}=x;if(null===w)x._parentOrParents=this;else if(w instanceof d){if(w===this)return x;x._parentOrParents=[w,this]}else{if(-1!==w.indexOf(this))return x;w.push(this)}const g=this._subscriptions;return null===g?this._subscriptions=[x]:g.push(x),x}remove(C){const x=this._subscriptions;if(x){const w=x.indexOf(C);-1!==w&&x.splice(w,1)}}}var b;function u(b){return b.reduce((C,x)=>C.concat(x instanceof v?x.errors:x),[])}d.EMPTY=((b=new d).closed=!0,b)},2830:(G,P,a)=>{"use strict";a.d(P,{v:()=>e});let n=!1;const e={Promise:void 0,set useDeprecatedSynchronousErrorHandling(o){if(o){const l=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+l.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=o},get useDeprecatedSynchronousErrorHandling(){return n}}},1762:(G,P,a)=>{"use strict";a.d(P,{N:()=>d,c:()=>v});var n=a(8929),e=a(6498),o=a(2654),l=a(4327);class v extends e.y{constructor(w,g){super(),this.source=w,this.subjectFactory=g,this._refCount=0,this._isComplete=!1}_subscribe(w){return this.getSubject().subscribe(w)}getSubject(){const w=this._subject;return(!w||w.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let w=this._connection;return w||(this._isComplete=!1,w=this._connection=new o.w,w.add(this.source.subscribe(new u(this.getSubject(),this))),w.closed&&(this._connection=null,w=o.w.EMPTY)),w}refCount(){return(0,l.x)()(this)}}const d=(()=>{const x=v.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:x._subscribe},_isComplete:{value:x._isComplete,writable:!0},getSubject:{value:x.getSubject},connect:{value:x.connect},refCount:{value:x.refCount}}})();class u extends n.Yc{constructor(w,g){super(w),this.connectable=g}_error(w){this._unsubscribe(),super._error(w)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const w=this.connectable;if(w){this.connectable=null;const g=w._connection;w._refCount=0,w._subject=null,w._connection=null,g&&g.unsubscribe()}}}},6053:(G,P,a)=>{"use strict";a.d(P,{aj:()=>u});var n=a(2866),e=a(6688),o=a(826),l=a(9054),v=a(3009);const d={};function u(...x){let w=null,g=null;return(0,n.K)(x[x.length-1])&&(g=x.pop()),"function"==typeof x[x.length-1]&&(w=x.pop()),1===x.length&&(0,e.k)(x[0])&&(x=x[0]),(0,v.n)(x,g).lift(new b(w))}class b{constructor(w){this.resultSelector=w}call(w,g){return g.subscribe(new C(w,this.resultSelector))}}class C extends o.L{constructor(w,g){super(w),this.resultSelector=g,this.active=0,this.values=[],this.observables=[]}_next(w){this.values.push(d),this.observables.push(w)}_complete(){const w=this.observables,g=w.length;if(0===g)this.destination.complete();else{this.active=g,this.toRespond=g;for(let f=0;f<g;f++){const S=w[f];this.add((0,l.D)(this,S,S,f))}}}notifyComplete(w){0==(this.active-=1)&&this.destination.complete()}notifyNext(w,g,f,S,j){const B=this.values,le=this.toRespond?B[f]===d?--this.toRespond:this.toRespond:0;B[f]=g,0===le&&(this.resultSelector?this._tryResultSelector(B):this.destination.next(B.slice()))}_tryResultSelector(w){let g;try{g=this.resultSelector.apply(this,w)}catch(f){return void this.destination.error(f)}this.destination.next(g)}}},1221:(G,P,a)=>{"use strict";a.d(P,{z:()=>l});var n=a(1086),e=a(9146);function l(...v){return function o(){return(0,e.J)(1)}()((0,n.of)(...v))}},8514:(G,P,a)=>{"use strict";a.d(P,{P:()=>l});var n=a(6498),e=a(5254),o=a(8896);function l(v){return new n.y(d=>{let u;try{u=v()}catch(C){return void d.error(C)}return(u?(0,e.D)(u):(0,o.c)()).subscribe(d)})}},8896:(G,P,a)=>{"use strict";a.d(P,{E:()=>e,c:()=>o});var n=a(6498);const e=new n.y(v=>v.complete());function o(v){return v?function l(v){return new n.y(d=>v.schedule(()=>d.complete()))}(v):e}},567:(G,P,a)=>{"use strict";a.d(P,{D:()=>d});var n=a(6498),e=a(6688),o=a(4850),l=a(7830),v=a(5254);function d(...b){if(1===b.length){const C=b[0];if((0,e.k)(C))return u(C,null);if((0,l.K)(C)&&Object.getPrototypeOf(C)===Object.prototype){const x=Object.keys(C);return u(x.map(w=>C[w]),x)}}if("function"==typeof b[b.length-1]){const C=b.pop();return u(b=1===b.length&&(0,e.k)(b[0])?b[0]:b,null).pipe((0,o.U)(x=>C(...x)))}return u(b,null)}function u(b,C){return new n.y(x=>{const w=b.length;if(0===w)return void x.complete();const g=new Array(w);let f=0,S=0;for(let j=0;j<w;j++){const B=(0,v.D)(b[j]);let Z=!1;x.add(B.subscribe({next:le=>{Z||(Z=!0,S++),g[j]=le},error:le=>x.error(le),complete:()=>{f++,(f===w||!Z)&&(S===w&&x.next(C?C.reduce((le,q,X)=>(le[q]=g[X],le),{}):g),x.complete())}}))}})}},5254:(G,P,a)=>{"use strict";a.d(P,{D:()=>j});var n=a(6498),e=a(9249),o=a(2654),l=a(3821),u=a(6454),b=a(5430),w=a(8955),g=a(8515);function j(B,Z){return Z?function S(B,Z){if(null!=B){if(function x(B){return B&&"function"==typeof B[l.L]}(B))return function v(B,Z){return new n.y(le=>{const q=new o.w;return q.add(Z.schedule(()=>{const X=B[l.L]();q.add(X.subscribe({next(K){q.add(Z.schedule(()=>le.next(K)))},error(K){q.add(Z.schedule(()=>le.error(K)))},complete(){q.add(Z.schedule(()=>le.complete()))}}))})),q})}(B,Z);if((0,w.t)(B))return function d(B,Z){return new n.y(le=>{const q=new o.w;return q.add(Z.schedule(()=>B.then(X=>{q.add(Z.schedule(()=>{le.next(X),q.add(Z.schedule(()=>le.complete()))}))},X=>{q.add(Z.schedule(()=>le.error(X)))}))),q})}(B,Z);if((0,g.z)(B))return(0,u.r)(B,Z);if(function f(B){return B&&"function"==typeof B[b.hZ]}(B)||"string"==typeof B)return function C(B,Z){if(!B)throw new Error("Iterable cannot be null");return new n.y(le=>{const q=new o.w;let X;return q.add(()=>{X&&"function"==typeof X.return&&X.return()}),q.add(Z.schedule(()=>{X=B[b.hZ](),q.add(Z.schedule(function(){if(le.closed)return;let K,U;try{const me=X.next();K=me.value,U=me.done}catch(me){return void le.error(me)}U?le.complete():(le.next(K),this.schedule())}))})),q})}(B,Z)}throw new TypeError((null!==B&&typeof B||B)+" is not observable")}(B,Z):B instanceof n.y?B:new n.y((0,e.s)(B))}},3009:(G,P,a)=>{"use strict";a.d(P,{n:()=>l});var n=a(6498),e=a(3650),o=a(6454);function l(v,d){return d?(0,o.r)(v,d):new n.y((0,e.V)(v))}},3753:(G,P,a)=>{"use strict";a.d(P,{R:()=>d});var n=a(6498),e=a(6688),o=a(7043),l=a(4850);function d(w,g,f,S){return(0,o.m)(f)&&(S=f,f=void 0),S?d(w,g,f).pipe((0,l.U)(j=>(0,e.k)(j)?S(...j):S(j))):new n.y(j=>{u(w,g,function B(Z){j.next(arguments.length>1?Array.prototype.slice.call(arguments):Z)},j,f)})}function u(w,g,f,S,j){let B;if(function x(w){return w&&"function"==typeof w.addEventListener&&"function"==typeof w.removeEventListener}(w)){const Z=w;w.addEventListener(g,f,j),B=()=>Z.removeEventListener(g,f,j)}else if(function C(w){return w&&"function"==typeof w.on&&"function"==typeof w.off}(w)){const Z=w;w.on(g,f),B=()=>Z.off(g,f)}else if(function b(w){return w&&"function"==typeof w.addListener&&"function"==typeof w.removeListener}(w)){const Z=w;w.addListener(g,f),B=()=>Z.removeListener(g,f)}else{if(!w||!w.length)throw new TypeError("Invalid event target");for(let Z=0,le=w.length;Z<le;Z++)u(w[Z],g,f,S,j)}S.add(B)}},1715:(G,P,a)=>{"use strict";a.d(P,{F:()=>l});var n=a(6498),e=a(353),o=a(4241);function l(d=0,u=e.P){return(!(0,o.k)(d)||d<0)&&(d=0),(!u||"function"!=typeof u.schedule)&&(u=e.P),new n.y(b=>(b.add(u.schedule(v,d,{subscriber:b,counter:0,period:d})),b))}function v(d){const{subscriber:u,counter:b,period:C}=d;u.next(b),this.schedule({subscriber:u,counter:b+1,period:C},C)}},6787:(G,P,a)=>{"use strict";a.d(P,{T:()=>v});var n=a(6498),e=a(2866),o=a(9146),l=a(3009);function v(...d){let u=Number.POSITIVE_INFINITY,b=null,C=d[d.length-1];return(0,e.K)(C)?(b=d.pop(),d.length>1&&"number"==typeof d[d.length-1]&&(u=d.pop())):"number"==typeof C&&(u=d.pop()),null===b&&1===d.length&&d[0]instanceof n.y?d[0]:(0,o.J)(u)((0,l.n)(d,b))}},1086:(G,P,a)=>{"use strict";a.d(P,{of:()=>l});var n=a(2866),e=a(3009),o=a(6454);function l(...v){let d=v[v.length-1];return(0,n.K)(d)?(v.pop(),(0,o.r)(v,d)):(0,e.n)(v)}},1737:(G,P,a)=>{"use strict";a.d(P,{_:()=>e});var n=a(6498);function e(l,v){return new n.y(v?d=>v.schedule(o,0,{error:l,subscriber:d}):d=>d.error(l))}function o({error:l,subscriber:v}){v.error(l)}},6926:(G,P,a)=>{"use strict";a.d(P,{e:()=>g});var n=a(353),e=a(826),o=a(9054);class v{constructor(S){this.durationSelector=S}call(S,j){return j.subscribe(new d(S,this.durationSelector))}}class d extends e.L{constructor(S,j){super(S),this.durationSelector=j,this.hasValue=!1}_next(S){if(this.value=S,this.hasValue=!0,!this.throttled){let j;try{const{durationSelector:Z}=this;j=Z(S)}catch(Z){return this.destination.error(Z)}const B=(0,o.D)(this,j);!B||B.closed?this.clearThrottle():this.add(this.throttled=B)}}clearThrottle(){const{value:S,hasValue:j,throttled:B}=this;B&&(this.remove(B),this.throttled=null,B.unsubscribe()),j&&(this.value=null,this.hasValue=!1,this.destination.next(S))}notifyNext(S,j,B,Z){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var u=a(6498),b=a(4241),C=a(2866);function w(f){const{index:S,period:j,subscriber:B}=f;if(B.next(S),!B.closed){if(-1===j)return B.complete();f.index=S+1,this.schedule(f,j)}}function g(f,S=n.P){return function l(f){return function(j){return j.lift(new v(f))}}(()=>function x(f=0,S,j){let B=-1;return(0,b.k)(S)?B=Number(S)<1?1:Number(S):(0,C.K)(S)&&(j=S),(0,C.K)(j)||(j=n.P),new u.y(Z=>{const le=(0,b.k)(f)?f:+f-j.now();return j.schedule(w,le,{index:0,period:B,subscriber:Z})})}(f,S))}},7221:(G,P,a)=>{"use strict";a.d(P,{K:()=>l});var n=a(826),e=a(1869),o=a(9054);function l(u){return function(C){const x=new v(u),w=C.lift(x);return x.caught=w}}class v{constructor(b){this.selector=b}call(b,C){return C.subscribe(new d(b,this.selector,this.caught))}}class d extends n.L{constructor(b,C,x){super(b),this.selector=C,this.caught=x}error(b){if(!this.isStopped){let C;try{C=this.selector(b,this.caught)}catch(g){return void super.error(g)}this._unsubscribeAndRecycle();const x=new e.d(this,void 0,void 0);this.add(x);const w=(0,o.D)(this,C,void 0,void 0,x);w!==x&&this.add(w)}}}},1406:(G,P,a)=>{"use strict";a.d(P,{b:()=>e});var n=a(1709);function e(o,l){return(0,n.zg)(o,l,1)}},13:(G,P,a)=>{"use strict";a.d(P,{b:()=>o});var n=a(3489),e=a(353);function o(u,b=e.P){return C=>C.lift(new l(u,b))}class l{constructor(b,C){this.dueTime=b,this.scheduler=C}call(b,C){return C.subscribe(new v(b,this.dueTime,this.scheduler))}}class v extends n.L{constructor(b,C,x){super(b),this.dueTime=C,this.scheduler=x,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(b){this.clearDebounce(),this.lastValue=b,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(d,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:b}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(b)}}clearDebounce(){const b=this.debouncedSubscription;null!==b&&(this.remove(b),b.unsubscribe(),this.debouncedSubscription=null)}}function d(u){u.debouncedNext()}},5778:(G,P,a)=>{"use strict";a.d(P,{x:()=>e});var n=a(3489);function e(v,d){return u=>u.lift(new o(v,d))}class o{constructor(d,u){this.compare=d,this.keySelector=u}call(d,u){return u.subscribe(new l(d,this.compare,this.keySelector))}}class l extends n.L{constructor(d,u,b){super(d),this.keySelector=b,this.hasKey=!1,"function"==typeof u&&(this.compare=u)}compare(d,u){return d===u}_next(d){let u;try{const{keySelector:C}=this;u=C?C(d):d}catch(C){return this.destination.error(C)}let b=!1;if(this.hasKey)try{const{compare:C}=this;b=C(this.key,u)}catch(C){return this.destination.error(C)}else this.hasKey=!0;b||(this.key=u,this.destination.next(d))}}},2198:(G,P,a)=>{"use strict";a.d(P,{h:()=>e});var n=a(3489);function e(v,d){return function(b){return b.lift(new o(v,d))}}class o{constructor(d,u){this.predicate=d,this.thisArg=u}call(d,u){return u.subscribe(new l(d,this.predicate,this.thisArg))}}class l extends n.L{constructor(d,u,b){super(d),this.predicate=u,this.thisArg=b,this.count=0}_next(d){let u;try{u=this.predicate.call(this.thisArg,d,this.count++)}catch(b){return void this.destination.error(b)}u&&this.destination.next(d)}}},537:(G,P,a)=>{"use strict";a.d(P,{x:()=>o});var n=a(3489),e=a(2654);function o(d){return u=>u.lift(new l(d))}class l{constructor(u){this.callback=u}call(u,b){return b.subscribe(new v(u,this.callback))}}class v extends n.L{constructor(u,b){super(u),this.add(new e.w(b))}}},4850:(G,P,a)=>{"use strict";a.d(P,{U:()=>e});var n=a(3489);function e(v,d){return function(b){if("function"!=typeof v)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return b.lift(new o(v,d))}}class o{constructor(d,u){this.project=d,this.thisArg=u}call(d,u){return u.subscribe(new l(d,this.project,this.thisArg))}}class l extends n.L{constructor(d,u,b){super(d),this.project=u,this.count=0,this.thisArg=b||this}_next(d){let u;try{u=this.project.call(this.thisArg,d,this.count++)}catch(b){return void this.destination.error(b)}this.destination.next(u)}}},9146:(G,P,a)=>{"use strict";a.d(P,{J:()=>o});var n=a(1709),e=a(5379);function o(l=Number.POSITIVE_INFINITY){return(0,n.zg)(e.y,l)}},1709:(G,P,a)=>{"use strict";a.d(P,{zg:()=>d});var n=a(9054),e=a(826),o=a(1869),l=a(4850),v=a(5254);function d(C,x,w=Number.POSITIVE_INFINITY){return"function"==typeof x?g=>g.pipe(d((f,S)=>(0,v.D)(C(f,S)).pipe((0,l.U)((j,B)=>x(f,j,S,B))),w)):("number"==typeof x&&(w=x),g=>g.lift(new u(C,w)))}class u{constructor(x,w=Number.POSITIVE_INFINITY){this.project=x,this.concurrent=w}call(x,w){return w.subscribe(new b(x,this.project,this.concurrent))}}class b extends e.L{constructor(x,w,g=Number.POSITIVE_INFINITY){super(x),this.project=w,this.concurrent=g,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(x){this.active<this.concurrent?this._tryNext(x):this.buffer.push(x)}_tryNext(x){let w;const g=this.index++;try{w=this.project(x,g)}catch(f){return void this.destination.error(f)}this.active++,this._innerSub(w,x,g)}_innerSub(x,w,g){const f=new o.d(this,w,g),S=this.destination;S.add(f);const j=(0,n.D)(this,x,void 0,void 0,f);j!==f&&S.add(j)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(x,w,g,f,S){this.destination.next(w)}notifyComplete(x){const w=this.buffer;this.remove(x),this.active--,w.length>0?this._next(w.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},2536:(G,P,a)=>{"use strict";a.d(P,{O:()=>e});var n=a(1762);function e(l,v){return function(u){let b;if(b="function"==typeof l?l:function(){return l},"function"==typeof v)return u.lift(new o(b,v));const C=Object.create(u,n.N);return C.source=u,C.subjectFactory=b,C}}class o{constructor(v,d){this.subjectFactory=v,this.selector=d}call(v,d){const{selector:u}=this,b=this.subjectFactory(),C=u(b).subscribe(v);return C.add(d.subscribe(b)),C}}},4327:(G,P,a)=>{"use strict";a.d(P,{x:()=>e});var n=a(3489);function e(){return function(d){return d.lift(new o(d))}}class o{constructor(d){this.connectable=d}call(d,u){const{connectable:b}=this;b._refCount++;const C=new l(d,b),x=u.subscribe(C);return C.closed||(C.connection=b.connect()),x}}class l extends n.L{constructor(d,u){super(d),this.connectable=u}_unsubscribe(){const{connectable:d}=this;if(!d)return void(this.connection=null);this.connectable=null;const u=d._refCount;if(u<=0)return void(this.connection=null);if(d._refCount=u-1,u>1)return void(this.connection=null);const{connection:b}=this,C=d._connection;this.connection=null,C&&(!b||C===b)&&C.unsubscribe()}}},9973:(G,P,a)=>{"use strict";a.d(P,{X:()=>e});var n=a(3489);function e(v=-1){return d=>d.lift(new o(v,d))}class o{constructor(d,u){this.count=d,this.source=u}call(d,u){return u.subscribe(new l(d,this.count,this.source))}}class l extends n.L{constructor(d,u,b){super(d),this.count=u,this.source=b}error(d){if(!this.isStopped){const{source:u,count:b}=this;if(0===b)return super.error(d);b>-1&&(this.count=b-1),u.subscribe(this._unsubscribeAndRecycle())}}}},8117:(G,P,a)=>{"use strict";a.d(P,{B:()=>v});var n=a(2536),e=a(4327),o=a(8929);function l(){return new o.xQ}function v(){return d=>(0,e.x)()((0,n.O)(l)(d))}},1307:(G,P,a)=>{"use strict";a.d(P,{T:()=>e});var n=a(3489);function e(v){return d=>d.lift(new o(v))}class o{constructor(d){this.total=d}call(d,u){return u.subscribe(new l(d,this.total))}}class l extends n.L{constructor(d,u){super(d),this.total=u,this.count=0}_next(d){++this.count>this.total&&this.destination.next(d)}}},1059:(G,P,a)=>{"use strict";a.d(P,{O:()=>o});var n=a(1221),e=a(2866);function o(...l){const v=l[l.length-1];return(0,e.K)(v)?(l.pop(),d=>(0,n.z)(l,d,v)):d=>(0,n.z)(l,d)}},7545:(G,P,a)=>{"use strict";a.d(P,{w:()=>d});var n=a(826),e=a(1869),o=a(9054),l=a(4850),v=a(5254);function d(C,x){return"function"==typeof x?w=>w.pipe(d((g,f)=>(0,v.D)(C(g,f)).pipe((0,l.U)((S,j)=>x(g,S,f,j))))):w=>w.lift(new u(C))}class u{constructor(x){this.project=x}call(x,w){return w.subscribe(new b(x,this.project))}}class b extends n.L{constructor(x,w){super(x),this.project=w,this.index=0}_next(x){let w;const g=this.index++;try{w=this.project(x,g)}catch(f){return void this.destination.error(f)}this._innerSub(w,x,g)}_innerSub(x,w,g){const f=this.innerSubscription;f&&f.unsubscribe();const S=new e.d(this,w,g),j=this.destination;j.add(S),this.innerSubscription=(0,o.D)(this,x,void 0,void 0,S),this.innerSubscription!==S&&j.add(this.innerSubscription)}_complete(){const{innerSubscription:x}=this;(!x||x.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(x){this.destination.remove(x),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(x,w,g,f,S){this.destination.next(w)}}},2986:(G,P,a)=>{"use strict";a.d(P,{q:()=>l});var n=a(3489),e=a(4231),o=a(8896);function l(u){return b=>0===u?(0,o.c)():b.lift(new v(u))}class v{constructor(b){if(this.total=b,this.total<0)throw new e.W}call(b,C){return C.subscribe(new d(b,this.total))}}class d extends n.L{constructor(b,C){super(b),this.total=C,this.count=0}_next(b){const C=this.total,x=++this.count;x<=C&&(this.destination.next(b),x===C&&(this.destination.complete(),this.unsubscribe()))}}},7625:(G,P,a)=>{"use strict";a.d(P,{R:()=>o});var n=a(826),e=a(9054);function o(d){return u=>u.lift(new l(d))}class l{constructor(u){this.notifier=u}call(u,b){const C=new v(u),x=(0,e.D)(C,this.notifier);return x&&!C.seenValue?(C.add(x),b.subscribe(C)):C}}class v extends n.L{constructor(u){super(u),this.seenValue=!1}notifyNext(u,b,C,x,w){this.seenValue=!0,this.complete()}notifyComplete(){}}},4290:(G,P,a)=>{"use strict";a.d(P,{o:()=>e});var n=a(3489);function e(v,d=!1){return u=>u.lift(new o(v,d))}class o{constructor(d,u){this.predicate=d,this.inclusive=u}call(d,u){return u.subscribe(new l(d,this.predicate,this.inclusive))}}class l extends n.L{constructor(d,u,b){super(d),this.predicate=u,this.inclusive=b,this.index=0}_next(d){const u=this.destination;let b;try{b=this.predicate(d,this.index++)}catch(C){return void u.error(C)}this.nextOrComplete(d,b)}nextOrComplete(d,u){const b=this.destination;Boolean(u)?b.next(d):(this.inclusive&&b.next(d),b.complete())}}},2994:(G,P,a)=>{"use strict";a.d(P,{b:()=>l});var n=a(3489),e=a(7876),o=a(7043);function l(u,b,C){return function(w){return w.lift(new v(u,b,C))}}class v{constructor(b,C,x){this.nextOrObserver=b,this.error=C,this.complete=x}call(b,C){return C.subscribe(new d(b,this.nextOrObserver,this.error,this.complete))}}class d extends n.L{constructor(b,C,x,w){super(b),this._tapNext=e.Z,this._tapError=e.Z,this._tapComplete=e.Z,this._tapError=x||e.Z,this._tapComplete=w||e.Z,(0,o.m)(C)?(this._context=this,this._tapNext=C):C&&(this._context=C,this._tapNext=C.next||e.Z,this._tapError=C.error||e.Z,this._tapComplete=C.complete||e.Z)}_next(b){try{this._tapNext.call(this._context,b)}catch(C){return void this.destination.error(C)}this.destination.next(b)}_error(b){try{this._tapError.call(this._context,b)}catch(C){return void this.destination.error(C)}this.destination.error(b)}_complete(){try{this._tapComplete.call(this._context)}catch(b){return void this.destination.error(b)}return this.destination.complete()}}},6454:(G,P,a)=>{"use strict";a.d(P,{r:()=>o});var n=a(6498),e=a(2654);function o(l,v){return new n.y(d=>{const u=new e.w;let b=0;return u.add(v.schedule(function(){b!==l.length?(d.next(l[b++]),d.closed||u.add(this.schedule())):d.complete()})),u})}},6686:(G,P,a)=>{"use strict";a.d(P,{o:()=>o});var n=a(2654);class e extends n.w{constructor(v,d){super()}schedule(v,d=0){return this}}class o extends e{constructor(v,d){super(v,d),this.scheduler=v,this.work=d,this.pending=!1}schedule(v,d=0){if(this.closed)return this;this.state=v;const u=this.id,b=this.scheduler;return null!=u&&(this.id=this.recycleAsyncId(b,u,d)),this.pending=!0,this.delay=d,this.id=this.id||this.requestAsyncId(b,this.id,d),this}requestAsyncId(v,d,u=0){return setInterval(v.flush.bind(v,this),u)}recycleAsyncId(v,d,u=0){if(null!==u&&this.delay===u&&!1===this.pending)return d;clearInterval(d)}execute(v,d){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const u=this._execute(v,d);if(u)return u;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(v,d){let b,u=!1;try{this.work(v)}catch(C){u=!0,b=!!C&&C||new Error(C)}if(u)return this.unsubscribe(),b}_unsubscribe(){const v=this.id,d=this.scheduler,u=d.actions,b=u.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==b&&u.splice(b,1),null!=v&&(this.id=this.recycleAsyncId(d,v,null)),this.delay=null}}},2268:(G,P,a)=>{"use strict";a.d(P,{v:()=>e});let n=(()=>{class o{constructor(v,d=o.now){this.SchedulerAction=v,this.now=d}schedule(v,d=0,u){return new this.SchedulerAction(this,v).schedule(u,d)}}return o.now=()=>Date.now(),o})();class e extends n{constructor(l,v=n.now){super(l,()=>e.delegate&&e.delegate!==this?e.delegate.now():v()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(l,v=0,d){return e.delegate&&e.delegate!==this?e.delegate.schedule(l,v,d):super.schedule(l,v,d)}flush(l){const{actions:v}=this;if(this.active)return void v.push(l);let d;this.active=!0;do{if(d=l.execute(l.state,l.delay))break}while(l=v.shift());if(this.active=!1,d){for(;l=v.shift();)l.unsubscribe();throw d}}}},353:(G,P,a)=>{"use strict";a.d(P,{P:()=>o});var n=a(6686);const o=new(a(2268).v)(n.o)},5430:(G,P,a)=>{"use strict";a.d(P,{hZ:()=>e});const e=function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(G,P,a)=>{"use strict";a.d(P,{L:()=>n});const n="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(G,P,a)=>{"use strict";a.d(P,{b:()=>n});const n="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(G,P,a)=>{"use strict";a.d(P,{W:()=>e});const e=(()=>{function o(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return o.prototype=Object.create(Error.prototype),o})()},5279:(G,P,a)=>{"use strict";a.d(P,{N:()=>e});const e=(()=>{function o(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return o.prototype=Object.create(Error.prototype),o})()},2782:(G,P,a)=>{"use strict";function n(e){setTimeout(()=>{throw e},0)}a.d(P,{z:()=>n})},5379:(G,P,a)=>{"use strict";function n(e){return e}a.d(P,{y:()=>n})},6688:(G,P,a)=>{"use strict";a.d(P,{k:()=>n});const n=Array.isArray||(e=>e&&"number"==typeof e.length)},8515:(G,P,a)=>{"use strict";a.d(P,{z:()=>n});const n=e=>e&&"number"==typeof e.length&&"function"!=typeof e},7043:(G,P,a)=>{"use strict";function n(e){return"function"==typeof e}a.d(P,{m:()=>n})},4241:(G,P,a)=>{"use strict";a.d(P,{k:()=>e});var n=a(6688);function e(o){return!(0,n.k)(o)&&o-parseFloat(o)+1>=0}},7830:(G,P,a)=>{"use strict";function n(e){return null!==e&&"object"==typeof e}a.d(P,{K:()=>n})},8955:(G,P,a)=>{"use strict";function n(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}a.d(P,{t:()=>n})},2866:(G,P,a)=>{"use strict";function n(e){return e&&"function"==typeof e.schedule}a.d(P,{K:()=>n})},7876:(G,P,a)=>{"use strict";function n(){}a.d(P,{Z:()=>n})},4843:(G,P,a)=>{"use strict";a.d(P,{U:()=>o,z:()=>e});var n=a(5379);function e(...l){return o(l)}function o(l){return 0===l.length?n.y:1===l.length?l[0]:function(d){return l.reduce((u,b)=>b(u),d)}}},9249:(G,P,a)=>{"use strict";a.d(P,{s:()=>w});var n=a(3650),e=a(2782),l=a(5430),d=a(3821),b=a(8515),C=a(8955),x=a(7830);const w=g=>{if(g&&"function"==typeof g[d.L])return(g=>f=>{const S=g[d.L]();if("function"!=typeof S.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return S.subscribe(f)})(g);if((0,b.z)(g))return(0,n.V)(g);if((0,C.t)(g))return(g=>f=>(g.then(S=>{f.closed||(f.next(S),f.complete())},S=>f.error(S)).then(null,e.z),f))(g);if(g&&"function"==typeof g[l.hZ])return(g=>f=>{const S=g[l.hZ]();for(;;){const j=S.next();if(j.done){f.complete();break}if(f.next(j.value),f.closed)break}return"function"==typeof S.return&&f.add(()=>{S.return&&S.return()}),f})(g);{const S=`You provided ${(0,x.K)(g)?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(S)}}},3650:(G,P,a)=>{"use strict";a.d(P,{V:()=>n});const n=e=>o=>{for(let l=0,v=e.length;l<v&&!o.closed;l++)o.next(e[l]);o.complete()}},9054:(G,P,a)=>{"use strict";a.d(P,{D:()=>l});var n=a(1869),e=a(9249),o=a(6498);function l(v,d,u,b,C=new n.d(v,u,b)){if(!C.closed)return d instanceof o.y?d.subscribe(C):(0,e.s)(d)(C)}},3502:(G,P,a)=>{var n=a(3172),e=n.Buffer;function o(v,d){for(var u in v)d[u]=v[u]}function l(v,d,u){return e(v,d,u)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?G.exports=n:(o(n,P),P.Buffer=l),l.prototype=Object.create(e.prototype),o(e,l),l.from=function(v,d,u){if("number"==typeof v)throw new TypeError("Argument must not be a number");return e(v,d,u)},l.alloc=function(v,d,u){if("number"!=typeof v)throw new TypeError("Argument must be a number");var b=e(v);return void 0!==d?"string"==typeof u?b.fill(d,u):b.fill(d):b.fill(0),b},l.allocUnsafe=function(v){if("number"!=typeof v)throw new TypeError("Argument must be a number");return e(v)},l.allocUnsafeSlow=function(v){if("number"!=typeof v)throw new TypeError("Argument must be a number");return n.SlowBuffer(v)}},1503:(G,P,a)=>{!function(n){n.parser=function(H,W){return new o(H,W)},n.SAXParser=o,n.SAXStream=x,n.createStream=function C(H,W){return new x(H,W)},n.MAX_BUFFER_LENGTH=65536;var u,e=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function o(H,W){if(!(this instanceof o))return new o(H,W);var He=this;(function v(H){for(var W=0,He=e.length;W<He;W++)H[e[W]]=""})(He),He.q=He.c="",He.bufferCheckPosition=n.MAX_BUFFER_LENGTH,He.opt=W||{},He.opt.lowercase=He.opt.lowercase||He.opt.lowercasetags,He.looseCase=He.opt.lowercase?"toLowerCase":"toUpperCase",He.tags=[],He.closed=He.closedRoot=He.sawRoot=!1,He.tag=He.error=null,He.strict=!!H,He.noscript=!(!H&&!He.opt.noscript),He.state=ne.BEGIN,He.strictEntities=He.opt.strictEntities,He.ENTITIES=Object.create(He.strictEntities?n.XML_ENTITIES:n.ENTITIES),He.attribList=[],He.opt.xmlns&&(He.ns=Object.create(j)),He.trackPosition=!1!==He.opt.position,He.trackPosition&&(He.position=He.line=He.column=0),Oe(He,"onready")}n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(H){function W(){}return W.prototype=H,new W}),Object.keys||(Object.keys=function(H){var W=[];for(var He in H)H.hasOwnProperty(He)&&W.push(He);return W}),o.prototype={end:function(){dt(this)},write:function Ae(H){var W=this;if(this.error)throw this.error;if(W.closed)return ot(W,"Cannot write after close. Assign an onready handler.");if(null===H)return dt(W);"object"==typeof H&&(H=H.toString());for(var He=0,Te="";Te=Fe(H,He++),W.c=Te,Te;)switch(W.trackPosition&&(W.position++,"\n"===Te?(W.line++,W.column=0):W.column++),W.state){case ne.BEGIN:if(W.state=ne.BEGIN_WHITESPACE,"\ufeff"===Te)continue;_t(W,Te);continue;case ne.BEGIN_WHITESPACE:_t(W,Te);continue;case ne.TEXT:if(W.sawRoot&&!W.closedRoot){for(var Be=He-1;Te&&"<"!==Te&&"&"!==Te;)(Te=Fe(H,He++))&&W.trackPosition&&(W.position++,"\n"===Te?(W.line++,W.column=0):W.column++);W.textNode+=H.substring(Be,He-1)}"<"!==Te||W.sawRoot&&W.closedRoot&&!W.strict?(!X(Te)&&(!W.sawRoot||W.closedRoot)&&jt(W,"Text data outside of root node."),"&"===Te?W.state=ne.TEXT_ENTITY:W.textNode+=Te):(W.state=ne.OPEN_WAKA,W.startTagPosition=W.position);continue;case ne.SCRIPT:"<"===Te?W.state=ne.SCRIPT_ENDING:W.script+=Te;continue;case ne.SCRIPT_ENDING:"/"===Te?W.state=ne.CLOSE_TAG:(W.script+="<"+Te,W.state=ne.SCRIPT);continue;case ne.OPEN_WAKA:"!"===Te?(W.state=ne.SGML_DECL,W.sgmlDecl=""):X(Te)||(me(B,Te)?(W.state=ne.OPEN_TAG,W.tagName=Te):"/"===Te?(W.state=ne.CLOSE_TAG,W.tagName=""):"?"===Te?(W.state=ne.PROC_INST,W.procInstName=W.procInstBody=""):(jt(W,"Unencoded <"),W.startTagPosition+1<W.position&&(Te=new Array(W.position-W.startTagPosition).join(" ")+Te),W.textNode+="<"+Te,W.state=ne.TEXT));continue;case ne.SGML_DECL:(W.sgmlDecl+Te).toUpperCase()===w?(nt(W,"onopencdata"),W.state=ne.CDATA,W.sgmlDecl="",W.cdata=""):W.sgmlDecl+Te==="--"?(W.state=ne.COMMENT,W.comment="",W.sgmlDecl=""):(W.sgmlDecl+Te).toUpperCase()===g?(W.state=ne.DOCTYPE,(W.doctype||W.sawRoot)&&jt(W,"Inappropriately located doctype declaration"),W.doctype="",W.sgmlDecl=""):">"===Te?(nt(W,"onsgmldeclaration",W.sgmlDecl),W.sgmlDecl="",W.state=ne.TEXT):(K(Te)&&(W.state=ne.SGML_DECL_QUOTED),W.sgmlDecl+=Te);continue;case ne.SGML_DECL_QUOTED:Te===W.q&&(W.state=ne.SGML_DECL,W.q=""),W.sgmlDecl+=Te;continue;case ne.DOCTYPE:">"===Te?(W.state=ne.TEXT,nt(W,"ondoctype",W.doctype),W.doctype=!0):(W.doctype+=Te,"["===Te?W.state=ne.DOCTYPE_DTD:K(Te)&&(W.state=ne.DOCTYPE_QUOTED,W.q=Te));continue;case ne.DOCTYPE_QUOTED:W.doctype+=Te,Te===W.q&&(W.q="",W.state=ne.DOCTYPE);continue;case ne.DOCTYPE_DTD:W.doctype+=Te,"]"===Te?W.state=ne.DOCTYPE:K(Te)&&(W.state=ne.DOCTYPE_DTD_QUOTED,W.q=Te);continue;case ne.DOCTYPE_DTD_QUOTED:W.doctype+=Te,Te===W.q&&(W.state=ne.DOCTYPE_DTD,W.q="");continue;case ne.COMMENT:"-"===Te?W.state=ne.COMMENT_ENDING:W.comment+=Te;continue;case ne.COMMENT_ENDING:"-"===Te?(W.state=ne.COMMENT_ENDED,W.comment=ct(W.opt,W.comment),W.comment&&nt(W,"oncomment",W.comment),W.comment=""):(W.comment+="-"+Te,W.state=ne.COMMENT);continue;case ne.COMMENT_ENDED:">"!==Te?(jt(W,"Malformed comment"),W.comment+="--"+Te,W.state=ne.COMMENT):W.state=ne.TEXT;continue;case ne.CDATA:"]"===Te?W.state=ne.CDATA_ENDING:W.cdata+=Te;continue;case ne.CDATA_ENDING:"]"===Te?W.state=ne.CDATA_ENDING_2:(W.cdata+="]"+Te,W.state=ne.CDATA);continue;case ne.CDATA_ENDING_2:">"===Te?(W.cdata&&nt(W,"oncdata",W.cdata),nt(W,"onclosecdata"),W.cdata="",W.state=ne.TEXT):"]"===Te?W.cdata+="]":(W.cdata+="]]"+Te,W.state=ne.CDATA);continue;case ne.PROC_INST:"?"===Te?W.state=ne.PROC_INST_ENDING:X(Te)?W.state=ne.PROC_INST_BODY:W.procInstName+=Te;continue;case ne.PROC_INST_BODY:if(!W.procInstBody&&X(Te))continue;"?"===Te?W.state=ne.PROC_INST_ENDING:W.procInstBody+=Te;continue;case ne.PROC_INST_ENDING:">"===Te?(nt(W,"onprocessinginstruction",{name:W.procInstName,body:W.procInstBody}),W.procInstName=W.procInstBody="",W.state=ne.TEXT):(W.procInstBody+="?"+Te,W.state=ne.PROC_INST_BODY);continue;case ne.OPEN_TAG:me(Z,Te)?W.tagName+=Te:(zt(W),">"===Te?Qt(W):"/"===Te?W.state=ne.OPEN_TAG_SLASH:(X(Te)||jt(W,"Invalid character in tag name"),W.state=ne.ATTRIB));continue;case ne.OPEN_TAG_SLASH:">"===Te?(Qt(W,!0),Jt(W)):(jt(W,"Forward-slash in opening tag not followed by >"),W.state=ne.ATTRIB);continue;case ne.ATTRIB:if(X(Te))continue;">"===Te?Qt(W):"/"===Te?W.state=ne.OPEN_TAG_SLASH:me(B,Te)?(W.attribName=Te,W.attribValue="",W.state=ne.ATTRIB_NAME):jt(W,"Invalid attribute name");continue;case ne.ATTRIB_NAME:"="===Te?W.state=ne.ATTRIB_VALUE:">"===Te?(jt(W,"Attribute without value"),W.attribValue=W.attribName,mi(W),Qt(W)):X(Te)?W.state=ne.ATTRIB_NAME_SAW_WHITE:me(Z,Te)?W.attribName+=Te:jt(W,"Invalid attribute name");continue;case ne.ATTRIB_NAME_SAW_WHITE:if("="===Te)W.state=ne.ATTRIB_VALUE;else{if(X(Te))continue;jt(W,"Attribute without value"),W.tag.attributes[W.attribName]="",W.attribValue="",nt(W,"onattribute",{name:W.attribName,value:""}),W.attribName="",">"===Te?Qt(W):me(B,Te)?(W.attribName=Te,W.state=ne.ATTRIB_NAME):(jt(W,"Invalid attribute name"),W.state=ne.ATTRIB)}continue;case ne.ATTRIB_VALUE:if(X(Te))continue;K(Te)?(W.q=Te,W.state=ne.ATTRIB_VALUE_QUOTED):(jt(W,"Unquoted attribute value"),W.state=ne.ATTRIB_VALUE_UNQUOTED,W.attribValue=Te);continue;case ne.ATTRIB_VALUE_QUOTED:if(Te!==W.q){"&"===Te?W.state=ne.ATTRIB_VALUE_ENTITY_Q:W.attribValue+=Te;continue}mi(W),W.q="",W.state=ne.ATTRIB_VALUE_CLOSED;continue;case ne.ATTRIB_VALUE_CLOSED:X(Te)?W.state=ne.ATTRIB:">"===Te?Qt(W):"/"===Te?W.state=ne.OPEN_TAG_SLASH:me(B,Te)?(jt(W,"No whitespace between attributes"),W.attribName=Te,W.attribValue="",W.state=ne.ATTRIB_NAME):jt(W,"Invalid attribute name");continue;case ne.ATTRIB_VALUE_UNQUOTED:if(!U(Te)){"&"===Te?W.state=ne.ATTRIB_VALUE_ENTITY_U:W.attribValue+=Te;continue}mi(W),">"===Te?Qt(W):W.state=ne.ATTRIB;continue;case ne.CLOSE_TAG:if(W.tagName)">"===Te?Jt(W):me(Z,Te)?W.tagName+=Te:W.script?(W.script+="</"+W.tagName,W.tagName="",W.state=ne.SCRIPT):(X(Te)||jt(W,"Invalid tagname in closing tag"),W.state=ne.CLOSE_TAG_SAW_WHITE);else{if(X(Te))continue;xe(B,Te)?W.script?(W.script+="</"+Te,W.state=ne.SCRIPT):jt(W,"Invalid tagname in closing tag."):W.tagName=Te}continue;case ne.CLOSE_TAG_SAW_WHITE:if(X(Te))continue;">"===Te?Jt(W):jt(W,"Invalid characters in closing tag");continue;case ne.TEXT_ENTITY:case ne.ATTRIB_VALUE_ENTITY_Q:case ne.ATTRIB_VALUE_ENTITY_U:var Pe,Qe;switch(W.state){case ne.TEXT_ENTITY:Pe=ne.TEXT,Qe="textNode";break;case ne.ATTRIB_VALUE_ENTITY_Q:Pe=ne.ATTRIB_VALUE_QUOTED,Qe="attribValue";break;case ne.ATTRIB_VALUE_ENTITY_U:Pe=ne.ATTRIB_VALUE_UNQUOTED,Qe="attribValue"}if(";"===Te)if(W.opt.unparsedEntities){var ut=lt(W);W.entity="",W.state=Pe,W.write(ut)}else W[Qe]+=lt(W),W.entity="",W.state=Pe;else me(W.entity.length?q:le,Te)?W.entity+=Te:(jt(W,"Invalid character in entity name"),W[Qe]+="&"+W.entity+Te,W.entity="",W.state=Pe);continue;default:throw new Error(W,"Unknown state: "+W.state)}return W.position>=W.bufferCheckPosition&&function l(H){for(var W=Math.max(n.MAX_BUFFER_LENGTH,10),He=0,Te=0,Be=e.length;Te<Be;Te++){var mt=H[e[Te]].length;if(mt>W)switch(e[Te]){case"textNode":qe(H);break;case"cdata":nt(H,"oncdata",H.cdata),H.cdata="";break;case"script":nt(H,"onscript",H.script),H.script="";break;default:ot(H,"Max buffer length exceeded: "+e[Te])}He=Math.max(He,mt)}H.bufferCheckPosition=n.MAX_BUFFER_LENGTH-He+H.position}(W),W},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function d(H){qe(H),""!==H.cdata&&(nt(H,"oncdata",H.cdata),H.cdata=""),""!==H.script&&(nt(H,"onscript",H.script),H.script="")}(this)}};try{u=a(5398).Stream}catch{u=function(){}}u||(u=function(){});var b=n.EVENTS.filter(function(H){return"error"!==H&&"end"!==H});function x(H,W){if(!(this instanceof x))return new x(H,W);u.apply(this),this._parser=new o(H,W),this.writable=!0,this.readable=!0;var He=this;this._parser.onend=function(){He.emit("end")},this._parser.onerror=function(Te){He.emit("error",Te),He._parser.error=null},this._decoder=null,b.forEach(function(Te){Object.defineProperty(He,"on"+Te,{get:function(){return He._parser["on"+Te]},set:function(Be){if(!Be)return He.removeAllListeners(Te),He._parser["on"+Te]=Be,Be;He.on(Te,Be)},enumerable:!0,configurable:!1})})}(x.prototype=Object.create(u.prototype,{constructor:{value:x}})).write=function(H){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(H)){if(!this._decoder){var W=a(3054).s;this._decoder=new W("utf8")}H=this._decoder.write(H)}return this._parser.write(H.toString()),this.emit("data",H),!0},x.prototype.end=function(H){return H&&H.length&&this.write(H),this._parser.end(),!0},x.prototype.on=function(H,W){var He=this;return!He._parser["on"+H]&&-1!==b.indexOf(H)&&(He._parser["on"+H]=function(){var Te=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);Te.splice(0,0,H),He.emit.apply(He,Te)}),u.prototype.on.call(He,H,W)};var w="[CDATA[",g="DOCTYPE",f="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/2000/xmlns/",j={xml:f,xmlns:S},B=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Z=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,le=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,q=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function X(H){return" "===H||"\n"===H||"\r"===H||"\t"===H}function K(H){return'"'===H||"'"===H}function U(H){return">"===H||X(H)}function me(H,W){return H.test(W)}function xe(H,W){return!me(H,W)}var H,W,He,ne=0;for(var Ze in n.STATE={BEGIN:ne++,BEGIN_WHITESPACE:ne++,TEXT:ne++,TEXT_ENTITY:ne++,OPEN_WAKA:ne++,SGML_DECL:ne++,SGML_DECL_QUOTED:ne++,DOCTYPE:ne++,DOCTYPE_QUOTED:ne++,DOCTYPE_DTD:ne++,DOCTYPE_DTD_QUOTED:ne++,COMMENT_STARTING:ne++,COMMENT:ne++,COMMENT_ENDING:ne++,COMMENT_ENDED:ne++,CDATA:ne++,CDATA_ENDING:ne++,CDATA_ENDING_2:ne++,PROC_INST:ne++,PROC_INST_BODY:ne++,PROC_INST_ENDING:ne++,OPEN_TAG:ne++,OPEN_TAG_SLASH:ne++,ATTRIB:ne++,ATTRIB_NAME:ne++,ATTRIB_NAME_SAW_WHITE:ne++,ATTRIB_VALUE:ne++,ATTRIB_VALUE_QUOTED:ne++,ATTRIB_VALUE_CLOSED:ne++,ATTRIB_VALUE_UNQUOTED:ne++,ATTRIB_VALUE_ENTITY_Q:ne++,ATTRIB_VALUE_ENTITY_U:ne++,CLOSE_TAG:ne++,CLOSE_TAG_SAW_WHITE:ne++,SCRIPT:ne++,SCRIPT_ENDING:ne++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(n.ENTITIES).forEach(function(H){var W=n.ENTITIES[H],He="number"==typeof W?String.fromCharCode(W):W;n.ENTITIES[H]=He}),n.STATE)n.STATE[n.STATE[Ze]]=Ze;function Oe(H,W,He){H[W]&&H[W](He)}function nt(H,W,He){H.textNode&&qe(H),Oe(H,W,He)}function qe(H){H.textNode=ct(H.opt,H.textNode),H.textNode&&Oe(H,"ontext",H.textNode),H.textNode=""}function ct(H,W){return H.trim&&(W=W.trim()),H.normalize&&(W=W.replace(/\s+/g," ")),W}function ot(H,W){return qe(H),H.trackPosition&&(W+="\nLine: "+H.line+"\nColumn: "+H.column+"\nChar: "+H.c),W=new Error(W),H.error=W,Oe(H,"onerror",W),H}function dt(H){return H.sawRoot&&!H.closedRoot&&jt(H,"Unclosed root tag"),H.state!==ne.BEGIN&&H.state!==ne.BEGIN_WHITESPACE&&H.state!==ne.TEXT&&ot(H,"Unexpected end"),qe(H),H.c="",H.closed=!0,Oe(H,"onend"),o.call(H,H.strict,H.opt),H}function jt(H,W){if("object"!=typeof H||!(H instanceof o))throw new Error("bad call to strictFail");H.strict&&ot(H,W)}function zt(H){H.strict||(H.tagName=H.tagName[H.looseCase]());var W=H.tags[H.tags.length-1]||H,He=H.tag={name:H.tagName,attributes:{}};H.opt.xmlns&&(He.ns=W.ns),H.attribList.length=0,nt(H,"onopentagstart",He)}function ti(H,W){var Te=H.indexOf(":")<0?["",H]:H.split(":"),Be=Te[0],mt=Te[1];return W&&"xmlns"===H&&(Be="xmlns",mt=""),{prefix:Be,local:mt}}function mi(H){if(H.strict||(H.attribName=H.attribName[H.looseCase]()),-1!==H.attribList.indexOf(H.attribName)||H.tag.attributes.hasOwnProperty(H.attribName))H.attribName=H.attribValue="";else{if(H.opt.xmlns){var W=ti(H.attribName,!0),Te=W.local;if("xmlns"===W.prefix)if("xml"===Te&&H.attribValue!==f)jt(H,"xml: prefix must be bound to "+f+"\nActual: "+H.attribValue);else if("xmlns"===Te&&H.attribValue!==S)jt(H,"xmlns: prefix must be bound to "+S+"\nActual: "+H.attribValue);else{var Be=H.tag,mt=H.tags[H.tags.length-1]||H;Be.ns===mt.ns&&(Be.ns=Object.create(mt.ns)),Be.ns[Te]=H.attribValue}H.attribList.push([H.attribName,H.attribValue])}else H.tag.attributes[H.attribName]=H.attribValue,nt(H,"onattribute",{name:H.attribName,value:H.attribValue});H.attribName=H.attribValue=""}}function Qt(H,W){if(H.opt.xmlns){var He=H.tag,Te=ti(H.tagName);He.prefix=Te.prefix,He.local=Te.local,He.uri=He.ns[Te.prefix]||"",He.prefix&&!He.uri&&(jt(H,"Unbound namespace prefix: "+JSON.stringify(H.tagName)),He.uri=Te.prefix),He.ns&&(H.tags[H.tags.length-1]||H).ns!==He.ns&&Object.keys(He.ns).forEach(function(ge){nt(H,"onopennamespace",{prefix:ge,uri:He.ns[ge]})});for(var mt=0,Pe=H.attribList.length;mt<Pe;mt++){var Qe=H.attribList[mt],ut=Qe[0],te=Qe[1],k=ti(ut,!0),R=k.prefix,et=""===R?"":He.ns[R]||"",Ue={name:ut,value:te,prefix:R,local:k.local,uri:et};R&&"xmlns"!==R&&!et&&(jt(H,"Unbound namespace prefix: "+JSON.stringify(R)),Ue.uri=R),H.tag.attributes[ut]=Ue,nt(H,"onattribute",Ue)}H.attribList.length=0}H.tag.isSelfClosing=!!W,H.sawRoot=!0,H.tags.push(H.tag),nt(H,"onopentag",H.tag),W||(H.state=H.noscript||"script"!==H.tagName.toLowerCase()?ne.TEXT:ne.SCRIPT,H.tag=null,H.tagName=""),H.attribName=H.attribValue="",H.attribList.length=0}function Jt(H){if(!H.tagName)return jt(H,"Weird empty close tag."),H.textNode+="</>",void(H.state=ne.TEXT);if(H.script){if("script"!==H.tagName)return H.script+="</"+H.tagName+">",H.tagName="",void(H.state=ne.SCRIPT);nt(H,"onscript",H.script),H.script=""}var W=H.tags.length,He=H.tagName;H.strict||(He=He[H.looseCase]());for(var Te=He;W--&&H.tags[W].name!==Te;)jt(H,"Unexpected close tag");if(W<0)return jt(H,"Unmatched closing tag: "+H.tagName),H.textNode+="</"+H.tagName+">",void(H.state=ne.TEXT);H.tagName=He;for(var mt=H.tags.length;mt-- >W;){var Pe=H.tag=H.tags.pop();H.tagName=H.tag.name,nt(H,"onclosetag",H.tagName);var Qe={};for(var ut in Pe.ns)Qe[ut]=Pe.ns[ut];H.opt.xmlns&&Pe.ns!==(H.tags[H.tags.length-1]||H).ns&&Object.keys(Pe.ns).forEach(function(k){nt(H,"onclosenamespace",{prefix:k,uri:Pe.ns[k]})})}0===W&&(H.closedRoot=!0),H.tagName=H.attribValue=H.attribName="",H.attribList.length=0,H.state=ne.TEXT}function lt(H){var Te,W=H.entity,He=W.toLowerCase(),Be="";return H.ENTITIES[W]?H.ENTITIES[W]:H.ENTITIES[He]?H.ENTITIES[He]:("#"===(W=He).charAt(0)&&("x"===W.charAt(1)?(W=W.slice(2),Be=(Te=parseInt(W,16)).toString(16)):(W=W.slice(1),Be=(Te=parseInt(W,10)).toString(10))),W=W.replace(/^0+/,""),isNaN(Te)||Be.toLowerCase()!==W?(jt(H,"Invalid character entity"),"&"+H.entity+";"):String.fromCodePoint(Te))}function _t(H,W){"<"===W?(H.state=ne.OPEN_WAKA,H.startTagPosition=H.position):X(W)||(jt(H,"Non-whitespace before first tag."),H.textNode=W,H.state=ne.TEXT)}function Fe(H,W){var He="";return W<H.length&&(He=H.charAt(W)),He}ne=n.STATE,String.fromCodePoint||(H=String.fromCharCode,W=Math.floor,He=function(){var Be=[],Qe=-1,ut=arguments.length;if(!ut)return"";for(var te="";++Qe<ut;){var k=Number(arguments[Qe]);if(!isFinite(k)||k<0||k>1114111||W(k)!==k)throw RangeError("Invalid code point: "+k);k<=65535?Be.push(k):Be.push(55296+((k-=65536)>>10),k%1024+56320),(Qe+1===ut||Be.length>16384)&&(te+=H.apply(null,Be),Be.length=0)}return te},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:He,configurable:!0,writable:!0}):String.fromCodePoint=He)}(P)},685:(G,P,a)=>{var n=a(1958),e=a(6113),o=a(2276),l=a(3039)("socket.io-client");G.exports=P=d;var v=P.managers={};function d(u,b){"object"==typeof u&&(b=u,u=void 0),b=b||{};var j,C=n(u),x=C.source,w=C.id;return b.forceNew||b["force new connection"]||!1===b.multiplex||v[w]&&C.path in v[w].nsps?(l("ignoring socket cache for %s",x),j=o(x,b)):(v[w]||(l("new io instance for %s",x),v[w]=o(x,b)),j=v[w]),C.query&&!b.query&&(b.query=C.query),j.socket(C.path,b)}P.protocol=e.protocol,P.connect=d,P.Manager=a(2276),P.Socket=a(5157)},2276:(G,P,a)=>{var n=a(7410),e=a(5157),o=a(1264),l=a(6113),v=a(1865),d=a(1213),u=a(3039)("socket.io-client:manager"),b=a(4068),C=a(2150),x=Object.prototype.hasOwnProperty;function w(g,f){if(!(this instanceof w))return new w(g,f);g&&"object"==typeof g&&(f=g,g=void 0),(f=f||{}).path=f.path||"/socket.io",this.nsps={},this.subs=[],this.opts=f,this.reconnection(!1!==f.reconnection),this.reconnectionAttempts(f.reconnectionAttempts||1/0),this.reconnectionDelay(f.reconnectionDelay||1e3),this.reconnectionDelayMax(f.reconnectionDelayMax||5e3),this.randomizationFactor(f.randomizationFactor||.5),this.backoff=new C({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==f.timeout?2e4:f.timeout),this.readyState="closed",this.uri=g,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var S=f.parser||l;this.encoder=new S.Encoder,this.decoder=new S.Decoder,this.autoConnect=!1!==f.autoConnect,this.autoConnect&&this.open()}G.exports=w,w.prototype.emitAll=function(){for(var g in this.emit.apply(this,arguments),this.nsps)x.call(this.nsps,g)&&this.nsps[g].emit.apply(this.nsps[g],arguments)},w.prototype.updateSocketIds=function(){for(var g in this.nsps)x.call(this.nsps,g)&&(this.nsps[g].id=this.generateId(g))},w.prototype.generateId=function(g){return("/"===g?"":g+"#")+this.engine.id},o(w.prototype),w.prototype.reconnection=function(g){return arguments.length?(this._reconnection=!!g,this):this._reconnection},w.prototype.reconnectionAttempts=function(g){return arguments.length?(this._reconnectionAttempts=g,this):this._reconnectionAttempts},w.prototype.reconnectionDelay=function(g){return arguments.length?(this._reconnectionDelay=g,this.backoff&&this.backoff.setMin(g),this):this._reconnectionDelay},w.prototype.randomizationFactor=function(g){return arguments.length?(this._randomizationFactor=g,this.backoff&&this.backoff.setJitter(g),this):this._randomizationFactor},w.prototype.reconnectionDelayMax=function(g){return arguments.length?(this._reconnectionDelayMax=g,this.backoff&&this.backoff.setMax(g),this):this._reconnectionDelayMax},w.prototype.timeout=function(g){return arguments.length?(this._timeout=g,this):this._timeout},w.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},w.prototype.open=w.prototype.connect=function(g,f){if(u("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;u("opening %s",this.uri),this.engine=n(this.uri,this.opts);var S=this.engine,j=this;this.readyState="opening",this.skipReconnect=!1;var B=v(S,"open",function(){j.onopen(),g&&g()}),Z=v(S,"error",function(X){if(u("connect_error"),j.cleanup(),j.readyState="closed",j.emitAll("connect_error",X),g){var K=new Error("Connection error");K.data=X,g(K)}else j.maybeReconnectOnOpen()});if(!1!==this._timeout){var le=this._timeout;u("connect attempt will timeout after %d",le),0===le&&B.destroy();var q=setTimeout(function(){u("connect attempt timed out after %d",le),B.destroy(),S.close(),S.emit("error","timeout"),j.emitAll("connect_timeout",le)},le);this.subs.push({destroy:function(){clearTimeout(q)}})}return this.subs.push(B),this.subs.push(Z),this},w.prototype.onopen=function(){u("open"),this.cleanup(),this.readyState="open",this.emit("open");var g=this.engine;this.subs.push(v(g,"data",d(this,"ondata"))),this.subs.push(v(g,"ping",d(this,"onping"))),this.subs.push(v(g,"pong",d(this,"onpong"))),this.subs.push(v(g,"error",d(this,"onerror"))),this.subs.push(v(g,"close",d(this,"onclose"))),this.subs.push(v(this.decoder,"decoded",d(this,"ondecoded")))},w.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},w.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},w.prototype.ondata=function(g){this.decoder.add(g)},w.prototype.ondecoded=function(g){this.emit("packet",g)},w.prototype.onerror=function(g){u("error",g),this.emitAll("error",g)},w.prototype.socket=function(g,f){var S=this.nsps[g];if(!S){S=new e(this,g,f),this.nsps[g]=S;var j=this;S.on("connecting",B),S.on("connect",function(){S.id=j.generateId(g)}),this.autoConnect&&B()}function B(){~b(j.connecting,S)||j.connecting.push(S)}return S},w.prototype.destroy=function(g){var f=b(this.connecting,g);~f&&this.connecting.splice(f,1),!this.connecting.length&&this.close()},w.prototype.packet=function(g){u("writing packet %j",g);var f=this;g.query&&0===g.type&&(g.nsp+="?"+g.query),f.encoding?f.packetBuffer.push(g):(f.encoding=!0,this.encoder.encode(g,function(S){for(var j=0;j<S.length;j++)f.engine.write(S[j],g.options);f.encoding=!1,f.processPacketQueue()}))},w.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var g=this.packetBuffer.shift();this.packet(g)}},w.prototype.cleanup=function(){u("cleanup");for(var g=this.subs.length,f=0;f<g;f++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},w.prototype.close=w.prototype.disconnect=function(){u("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},w.prototype.onclose=function(g){u("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",g),this._reconnection&&!this.skipReconnect&&this.reconnect()},w.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var g=this;if(this.backoff.attempts>=this._reconnectionAttempts)u("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var f=this.backoff.duration();u("will wait %dms before reconnect attempt",f),this.reconnecting=!0;var S=setTimeout(function(){g.skipReconnect||(u("attempting reconnect"),g.emitAll("reconnect_attempt",g.backoff.attempts),g.emitAll("reconnecting",g.backoff.attempts),!g.skipReconnect&&g.open(function(j){j?(u("reconnect attempt error"),g.reconnecting=!1,g.reconnect(),g.emitAll("reconnect_error",j.data)):(u("reconnect success"),g.onreconnect())}))},f);this.subs.push({destroy:function(){clearTimeout(S)}})}},w.prototype.onreconnect=function(){var g=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",g)}},1865:G=>{G.exports=function P(a,n,e){return a.on(n,e),{destroy:function(){a.removeListener(n,e)}}}},5157:(G,P,a)=>{var n=a(6113),e=a(1264),o=a(1898),l=a(1865),v=a(1213),d=a(3039)("socket.io-client:socket"),u=a(3257),b=a(988);G.exports=w;var C={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},x=e.prototype.emit;function w(g,f,S){this.io=g,this.nsp=f,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},S&&S.query&&(this.query=S.query),this.io.autoConnect&&this.open()}e(w.prototype),w.prototype.subEvents=function(){if(!this.subs){var g=this.io;this.subs=[l(g,"open",v(this,"onopen")),l(g,"packet",v(this,"onpacket")),l(g,"close",v(this,"onclose"))]}},w.prototype.open=w.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},w.prototype.send=function(){var g=o(arguments);return g.unshift("message"),this.emit.apply(this,g),this},w.prototype.emit=function(g){if(C.hasOwnProperty(g))return x.apply(this,arguments),this;var f=o(arguments),S={type:(void 0!==this.flags.binary?this.flags.binary:b(f))?n.BINARY_EVENT:n.EVENT,data:f,options:{}};return S.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof f[f.length-1]&&(d("emitting packet with ack id %d",this.ids),this.acks[this.ids]=f.pop(),S.id=this.ids++),this.connected?this.packet(S):this.sendBuffer.push(S),this.flags={},this},w.prototype.packet=function(g){g.nsp=this.nsp,this.io.packet(g)},w.prototype.onopen=function(){if(d("transport is open - connecting"),"/"!==this.nsp)if(this.query){var g="object"==typeof this.query?u.encode(this.query):this.query;d("sending connect packet with query %s",g),this.packet({type:n.CONNECT,query:g})}else this.packet({type:n.CONNECT})},w.prototype.onclose=function(g){d("close (%s)",g),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",g)},w.prototype.onpacket=function(g){if(g.nsp===this.nsp||g.type===n.ERROR&&"/"===g.nsp)switch(g.type){case n.CONNECT:this.onconnect();break;case n.EVENT:case n.BINARY_EVENT:this.onevent(g);break;case n.ACK:case n.BINARY_ACK:this.onack(g);break;case n.DISCONNECT:this.ondisconnect();break;case n.ERROR:this.emit("error",g.data)}},w.prototype.onevent=function(g){var f=g.data||[];d("emitting event %j",f),null!=g.id&&(d("attaching ack callback to event"),f.push(this.ack(g.id))),this.connected?x.apply(this,f):this.receiveBuffer.push(f)},w.prototype.ack=function(g){var f=this,S=!1;return function(){if(!S){S=!0;var j=o(arguments);d("sending ack %j",j),f.packet({type:b(j)?n.BINARY_ACK:n.ACK,id:g,data:j})}}},w.prototype.onack=function(g){var f=this.acks[g.id];"function"==typeof f?(d("calling ack %s with %j",g.id,g.data),f.apply(this,g.data),delete this.acks[g.id]):d("bad ack %s",g.id)},w.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},w.prototype.emitBuffered=function(){var g;for(g=0;g<this.receiveBuffer.length;g++)x.apply(this,this.receiveBuffer[g]);for(this.receiveBuffer=[],g=0;g<this.sendBuffer.length;g++)this.packet(this.sendBuffer[g]);this.sendBuffer=[]},w.prototype.ondisconnect=function(){d("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},w.prototype.destroy=function(){if(this.subs){for(var g=0;g<this.subs.length;g++)this.subs[g].destroy();this.subs=null}this.io.destroy(this)},w.prototype.close=w.prototype.disconnect=function(){return this.connected&&(d("performing disconnect (%s)",this.nsp),this.packet({type:n.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},w.prototype.compress=function(g){return this.flags.compress=g,this},w.prototype.binary=function(g){return this.flags.binary=g,this}},1958:(G,P,a)=>{var n=a(1884),e=a(3039)("socket.io-client:url");G.exports=function o(l,v){var d=l;v=v||typeof location<"u"&&location,null==l&&(l=v.protocol+"//"+v.host),"string"==typeof l&&("/"===l.charAt(0)&&(l="/"===l.charAt(1)?v.protocol+l:v.host+l),/^(https?|wss?):\/\//.test(l)||(e("protocol-less url %s",l),l=typeof v<"u"?v.protocol+"//"+l:"https://"+l),e("parse %s",l),d=n(l)),d.port||(/^(http|ws)$/.test(d.protocol)?d.port="80":/^(http|ws)s$/.test(d.protocol)&&(d.port="443")),d.path=d.path||"/";var b=-1!==d.host.indexOf(":")?"["+d.host+"]":d.host;return d.id=d.protocol+"://"+b+":"+d.port,d.href=d.protocol+"://"+b+(v&&v.port===d.port?"":":"+d.port),d}},3039:(G,P,a)=>{function v(){var u;try{u=P.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}(P=G.exports=a(8596)).log=function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},P.formatArgs=function e(u){var b=this.useColors;if(u[0]=(b?"%c":"")+this.namespace+(b?" %c":" ")+u[0]+(b?"%c ":" ")+"+"+P.humanize(this.diff),b){var C="color: "+this.color;u.splice(1,0,C,"color: inherit");var x=0,w=0;u[0].replace(/%[a-zA-Z%]/g,function(g){"%%"!==g&&(x++,"%c"===g&&(w=x))}),u.splice(w,0,C)}},P.save=function l(u){try{null==u?P.storage.removeItem("debug"):P.storage.debug=u}catch{}},P.load=v,P.useColors=function n(){return!!(typeof window<"u"&&window.process&&"renderer"===window.process.type)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},P.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function d(){try{return window.localStorage}catch{}}(),P.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],P.formatters.j=function(u){try{return JSON.stringify(u)}catch(b){return"[UnexpectedJSONParseError]: "+b.message}},P.enable(v())},8596:(G,P,a)=>{function e(b){var C;function x(){if(x.enabled){var w=x,g=+new Date;w.diff=g-(C||g),w.prev=C,w.curr=g,C=g;for(var S=new Array(arguments.length),j=0;j<S.length;j++)S[j]=arguments[j];S[0]=P.coerce(S[0]),"string"!=typeof S[0]&&S.unshift("%O");var B=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,function(le,q){if("%%"===le)return le;B++;var X=P.formatters[q];return"function"==typeof X&&(le=X.call(w,S[B]),S.splice(B,1),B--),le}),P.formatArgs.call(w,S),(x.log||P.log||console.log.bind(console)).apply(w,S)}}return x.namespace=b,x.enabled=P.enabled(b),x.useColors=P.useColors(),x.color=function n(b){var x,C=0;for(x in b)C=(C<<5)-C+b.charCodeAt(x),C|=0;return P.colors[Math.abs(C)%P.colors.length]}(b),x.destroy=o,"function"==typeof P.init&&P.init(x),P.instances.push(x),x}function o(){var b=P.instances.indexOf(this);return-1!==b&&(P.instances.splice(b,1),!0)}(P=G.exports=e.debug=e.default=e).coerce=function u(b){return b instanceof Error?b.stack||b.message:b},P.disable=function v(){P.enable("")},P.enable=function l(b){P.save(b),P.names=[],P.skips=[];var C,x=("string"==typeof b?b:"").split(/[\s,]+/),w=x.length;for(C=0;C<w;C++)x[C]&&("-"===(b=x[C].replace(/\*/g,".*?"))[0]?P.skips.push(new RegExp("^"+b.substr(1)+"$")):P.names.push(new RegExp("^"+b+"$")));for(C=0;C<P.instances.length;C++){var g=P.instances[C];g.enabled=P.enabled(g.namespace)}},P.enabled=function d(b){if("*"===b[b.length-1])return!0;var C,x;for(C=0,x=P.skips.length;C<x;C++)if(P.skips[C].test(b))return!1;for(C=0,x=P.names.length;C<x;C++)if(P.names[C].test(b))return!0;return!1},P.humanize=a(8149),P.instances=[],P.names=[],P.skips=[],P.formatters={}},8149:G=>{var P=1e3,a=60*P,n=60*a,e=24*n;function u(b,C,x){if(!(b<C))return b<1.5*C?Math.floor(b/C)+" "+x:Math.ceil(b/C)+" "+x+"s"}G.exports=function(b,C){C=C||{};var x=typeof b;if("string"===x&&b.length>0)return function l(b){if(!((b=String(b)).length>100)){var C=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(b);if(C){var x=parseFloat(C[1]);switch((C[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*x;case"days":case"day":case"d":return x*e;case"hours":case"hour":case"hrs":case"hr":case"h":return x*n;case"minutes":case"minute":case"mins":case"min":case"m":return x*a;case"seconds":case"second":case"secs":case"sec":case"s":return x*P;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return x;default:return}}}}(b);if("number"===x&&!1===isNaN(b))return C.long?function d(b){return u(b,e,"day")||u(b,n,"hour")||u(b,a,"minute")||u(b,P,"second")||b+" ms"}(b):function v(b){return b>=e?Math.round(b/e)+"d":b>=n?Math.round(b/n)+"h":b>=a?Math.round(b/a)+"m":b>=P?Math.round(b/P)+"s":b+"ms"}(b);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(b))}},5053:(G,P,a)=>{var n=a(6425),e=a(9761),o=Object.prototype.toString,l="function"==typeof Blob||typeof Blob<"u"&&"[object BlobConstructor]"===o.call(Blob),v="function"==typeof File||typeof File<"u"&&"[object FileConstructor]"===o.call(File);function d(b,C){if(!b)return b;if(e(b)){var x={_placeholder:!0,num:C.length};return C.push(b),x}if(n(b)){for(var w=new Array(b.length),g=0;g<b.length;g++)w[g]=d(b[g],C);return w}if("object"==typeof b&&!(b instanceof Date)){for(var f in w={},b)w[f]=d(b[f],C);return w}return b}function u(b,C){if(!b)return b;if(b&&!0===b._placeholder){if("number"==typeof b.num&&b.num>=0&&b.num<C.length)return C[b.num];throw new Error("illegal attachments")}if(n(b))for(var w=0;w<b.length;w++)b[w]=u(b[w],C);else if("object"==typeof b)for(var g in b)b[g]=u(b[g],C);return b}P.deconstructPacket=function(b){var C=[],w=b;return w.data=d(b.data,C),w.attachments=C.length,{packet:w,buffers:C}},P.reconstructPacket=function(b,C){return b.data=u(b.data,C),b.attachments=void 0,b},P.removeBlobs=function(b,C){var w=0,g=b;(function x(f,S,j){if(!f)return f;if(l&&f instanceof Blob||v&&f instanceof File){w++;var B=new FileReader;B.onload=function(){j?j[S]=this.result:g=this.result,--w||C(g)},B.readAsArrayBuffer(f)}else if(n(f))for(var Z=0;Z<f.length;Z++)x(f[Z],Z,f);else if("object"==typeof f&&!e(f))for(var le in f)x(f[le],le,f)})(g),w||C(g)}},6113:(G,P,a)=>{var n=a(3604)("socket.io-parser"),e=a(1264),o=a(5053),l=a(6425),v=a(9761);function d(){}P.protocol=4,P.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],P.CONNECT=0,P.DISCONNECT=1,P.EVENT=2,P.ACK=3,P.ERROR=4,P.BINARY_EVENT=5,P.BINARY_ACK=6,P.Encoder=d,P.Decoder=w;var u=P.ERROR+'"encode error"';function b(B){var Z=""+B.type;if((P.BINARY_EVENT===B.type||P.BINARY_ACK===B.type)&&(Z+=B.attachments+"-"),B.nsp&&"/"!==B.nsp&&(Z+=B.nsp+","),null!=B.id&&(Z+=B.id),null!=B.data){var le=function C(B){try{return JSON.stringify(B)}catch{return!1}}(B.data);if(!1===le)return u;Z+=le}return n("encoded %j as %s",B,Z),Z}function w(){this.reconstructor=null}function S(B){this.reconPack=B,this.buffers=[]}function j(B){return{type:P.ERROR,data:"parser error: "+B}}d.prototype.encode=function(B,Z){n("encoding packet %j",B),P.BINARY_EVENT===B.type||P.BINARY_ACK===B.type?function x(B,Z){o.removeBlobs(B,function le(q){var X=o.deconstructPacket(q),K=b(X.packet),U=X.buffers;U.unshift(K),Z(U)})}(B,Z):Z([b(B)])},e(w.prototype),w.prototype.add=function(B){var Z;if("string"==typeof B){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");Z=function g(B){var Z=0,le={type:Number(B.charAt(0))};if(null==P.types[le.type])return j("unknown packet type "+le.type);if(P.BINARY_EVENT===le.type||P.BINARY_ACK===le.type){for(var q=Z+1;"-"!==B.charAt(++Z)&&Z!=B.length;);var X=B.substring(q,Z);if(X!=Number(X)||"-"!==B.charAt(Z))throw new Error("Illegal attachments");le.attachments=Number(X)}if("/"===B.charAt(Z+1)){for(q=Z+1;++Z&&(","!==(K=B.charAt(Z))&&Z!==B.length););le.nsp=B.substring(q,Z)}else le.nsp="/";var U=B.charAt(Z+1);if(""!==U&&Number(U)==U){for(q=Z+1;++Z;){var K;if(null==(K=B.charAt(Z))||Number(K)!=K){--Z;break}if(Z===B.length)break}le.id=Number(B.substring(q,Z+1))}if(B.charAt(++Z)){var me=function f(B){try{return JSON.parse(B)}catch{return!1}}(B.substr(Z));if(!1===me||le.type!==P.ERROR&&!l(me))return j("invalid payload");le.data=me}return n("decoded %s as %j",B,le),le}(B),P.BINARY_EVENT===Z.type||P.BINARY_ACK===Z.type?(this.reconstructor=new S(Z),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",Z)):this.emit("decoded",Z)}else{if(!v(B)&&!B.base64)throw new Error("Unknown type: "+B);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(Z=this.reconstructor.takeBinaryData(B))&&(this.reconstructor=null,this.emit("decoded",Z))}},w.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},S.prototype.takeBinaryData=function(B){if(this.buffers.push(B),this.buffers.length===this.reconPack.attachments){var Z=o.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),Z}return null},S.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},9761:G=>{G.exports=function e(o){return P&&Buffer.isBuffer(o)||a&&(o instanceof ArrayBuffer||n(o))};var P="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,a="function"==typeof ArrayBuffer,n=function(o){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(o):o.buffer instanceof ArrayBuffer}},3604:(G,P,a)=>{function v(){var u;try{u=P.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}(P=G.exports=a(7257)).log=function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},P.formatArgs=function e(u){var b=this.useColors;if(u[0]=(b?"%c":"")+this.namespace+(b?" %c":" ")+u[0]+(b?"%c ":" ")+"+"+P.humanize(this.diff),b){var C="color: "+this.color;u.splice(1,0,C,"color: inherit");var x=0,w=0;u[0].replace(/%[a-zA-Z%]/g,function(g){"%%"!==g&&(x++,"%c"===g&&(w=x))}),u.splice(w,0,C)}},P.save=function l(u){try{null==u?P.storage.removeItem("debug"):P.storage.debug=u}catch{}},P.load=v,P.useColors=function n(){return!!(typeof window<"u"&&window.process&&"renderer"===window.process.type)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},P.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function d(){try{return window.localStorage}catch{}}(),P.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],P.formatters.j=function(u){try{return JSON.stringify(u)}catch(b){return"[UnexpectedJSONParseError]: "+b.message}},P.enable(v())},7257:(G,P,a)=>{function e(b){var C;function x(){if(x.enabled){var w=x,g=+new Date;w.diff=g-(C||g),w.prev=C,w.curr=g,C=g;for(var S=new Array(arguments.length),j=0;j<S.length;j++)S[j]=arguments[j];S[0]=P.coerce(S[0]),"string"!=typeof S[0]&&S.unshift("%O");var B=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,function(le,q){if("%%"===le)return le;B++;var X=P.formatters[q];return"function"==typeof X&&(le=X.call(w,S[B]),S.splice(B,1),B--),le}),P.formatArgs.call(w,S),(x.log||P.log||console.log.bind(console)).apply(w,S)}}return x.namespace=b,x.enabled=P.enabled(b),x.useColors=P.useColors(),x.color=function n(b){var x,C=0;for(x in b)C=(C<<5)-C+b.charCodeAt(x),C|=0;return P.colors[Math.abs(C)%P.colors.length]}(b),x.destroy=o,"function"==typeof P.init&&P.init(x),P.instances.push(x),x}function o(){var b=P.instances.indexOf(this);return-1!==b&&(P.instances.splice(b,1),!0)}(P=G.exports=e.debug=e.default=e).coerce=function u(b){return b instanceof Error?b.stack||b.message:b},P.disable=function v(){P.enable("")},P.enable=function l(b){P.save(b),P.names=[],P.skips=[];var C,x=("string"==typeof b?b:"").split(/[\s,]+/),w=x.length;for(C=0;C<w;C++)x[C]&&("-"===(b=x[C].replace(/\*/g,".*?"))[0]?P.skips.push(new RegExp("^"+b.substr(1)+"$")):P.names.push(new RegExp("^"+b+"$")));for(C=0;C<P.instances.length;C++){var g=P.instances[C];g.enabled=P.enabled(g.namespace)}},P.enabled=function d(b){if("*"===b[b.length-1])return!0;var C,x;for(C=0,x=P.skips.length;C<x;C++)if(P.skips[C].test(b))return!1;for(C=0,x=P.names.length;C<x;C++)if(P.names[C].test(b))return!0;return!1},P.humanize=a(2156),P.instances=[],P.names=[],P.skips=[],P.formatters={}},2156:G=>{var P=1e3,a=60*P,n=60*a,e=24*n;function u(b,C,x){if(!(b<C))return b<1.5*C?Math.floor(b/C)+" "+x:Math.ceil(b/C)+" "+x+"s"}G.exports=function(b,C){C=C||{};var x=typeof b;if("string"===x&&b.length>0)return function l(b){if(!((b=String(b)).length>100)){var C=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(b);if(C){var x=parseFloat(C[1]);switch((C[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*x;case"days":case"day":case"d":return x*e;case"hours":case"hour":case"hrs":case"hr":case"h":return x*n;case"minutes":case"minute":case"mins":case"min":case"m":return x*a;case"seconds":case"second":case"secs":case"sec":case"s":return x*P;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return x;default:return}}}}(b);if("number"===x&&!1===isNaN(b))return C.long?function d(b){return u(b,e,"day")||u(b,n,"hour")||u(b,a,"minute")||u(b,P,"second")||b+" ms"}(b):function v(b){return b>=e?Math.round(b/e)+"d":b>=n?Math.round(b/n)+"h":b>=a?Math.round(b/a)+"m":b>=P?Math.round(b/P)+"s":b+"ms"}(b);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(b))}},5398:(G,P,a)=>{var n=a(6570);function e(){n.call(this)}e.prototype=new n,G.exports=e,e.Stream=e,e.prototype.pipe=function(o,l){var v=this;function d(f){o.writable&&!1===o.write(f)&&v.pause&&v.pause()}function u(){v.readable&&v.resume&&v.resume()}v.on("data",d),o.on("drain",u),!o._isStdio&&(!l||!1!==l.end)&&(v.on("end",C),v.on("close",x));var b=!1;function C(){b||(b=!0,o.end())}function x(){b||(b=!0,"function"==typeof o.destroy&&o.destroy())}function w(f){if(g(),!this.hasListeners("error"))throw f}function g(){v.off("data",d),o.off("drain",u),v.off("end",C),v.off("close",x),v.off("error",w),o.off("error",w),v.off("end",g),v.off("close",g),o.off("end",g),o.off("close",g)}return v.on("error",w),o.on("error",w),v.on("end",g),v.on("close",g),o.on("end",g),o.on("close",g),o.emit("pipe",v),o}},3054:(G,P,a)=>{"use strict";var n=a(3502).Buffer,e=n.isEncoding||function(le){switch((le=""+le)&&le.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function v(le){var q;switch(this.encoding=function l(le){var q=function o(le){if(!le)return"utf8";for(var q;;)switch(le){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return le;default:if(q)return;le=(""+le).toLowerCase(),q=!0}}(le);if("string"!=typeof q&&(n.isEncoding===e||!e(le)))throw new Error("Unknown encoding: "+le);return q||le}(le),this.encoding){case"utf16le":this.text=g,this.end=f,q=4;break;case"utf8":this.fillLast=C,q=4;break;case"base64":this.text=S,this.end=j,q=3;break;default:return this.write=B,void(this.end=Z)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(q)}function d(le){return le<=127?0:le>>5==6?2:le>>4==14?3:le>>3==30?4:le>>6==2?-1:-2}function C(le){var q=this.lastTotal-this.lastNeed,X=function b(le,q,X){if(128!=(192&q[0]))return le.lastNeed=0,"\ufffd";if(le.lastNeed>1&&q.length>1){if(128!=(192&q[1]))return le.lastNeed=1,"\ufffd";if(le.lastNeed>2&&q.length>2&&128!=(192&q[2]))return le.lastNeed=2,"\ufffd"}}(this,le);return void 0!==X?X:this.lastNeed<=le.length?(le.copy(this.lastChar,q,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(le.copy(this.lastChar,q,0,le.length),void(this.lastNeed-=le.length))}function g(le,q){if((le.length-q)%2==0){var X=le.toString("utf16le",q);if(X){var K=X.charCodeAt(X.length-1);if(K>=55296&&K<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=le[le.length-2],this.lastChar[1]=le[le.length-1],X.slice(0,-1)}return X}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=le[le.length-1],le.toString("utf16le",q,le.length-1)}function f(le){var q=le&&le.length?this.write(le):"";return this.lastNeed?q+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):q}function S(le,q){var X=(le.length-q)%3;return 0===X?le.toString("base64",q):(this.lastNeed=3-X,this.lastTotal=3,1===X?this.lastChar[0]=le[le.length-1]:(this.lastChar[0]=le[le.length-2],this.lastChar[1]=le[le.length-1]),le.toString("base64",q,le.length-X))}function j(le){var q=le&&le.length?this.write(le):"";return this.lastNeed?q+this.lastChar.toString("base64",0,3-this.lastNeed):q}function B(le){return le.toString(this.encoding)}function Z(le){return le&&le.length?this.write(le):""}P.s=v,v.prototype.write=function(le){if(0===le.length)return"";var q,X;if(this.lastNeed){if(void 0===(q=this.fillLast(le)))return"";X=this.lastNeed,this.lastNeed=0}else X=0;return X<le.length?q?q+this.text(le,X):this.text(le,X):q||""},v.prototype.end=function w(le){var q=le&&le.length?this.write(le):"";return this.lastNeed?q+"\ufffd":q},v.prototype.text=function x(le,q){var X=function u(le,q,X){var K=q.length-1;if(K<X)return 0;var U=d(q[K]);return U>=0?(U>0&&(le.lastNeed=U-1),U):--K<X||-2===U?0:(U=d(q[K]))>=0?(U>0&&(le.lastNeed=U-2),U):--K<X||-2===U?0:(U=d(q[K]))>=0?(U>0&&(2===U?U=0:le.lastNeed=U-3),U):0}(this,le,q);if(!this.lastNeed)return le.toString("utf8",q);this.lastTotal=X;var K=le.length-(X-this.lastNeed);return le.copy(this.lastChar,0,K),le.toString("utf8",q,K)},v.prototype.fillLast=function(le){if(this.lastNeed<=le.length)return le.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);le.copy(this.lastChar,this.lastTotal-this.lastNeed,0,le.length),this.lastNeed-=le.length}},5489:(G,P)=>{var n={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5};for(var e in n)"millisecond"===e?n.ms=n[e]:n[e.charAt(0)]=n[e],n[e+"s"]=n[e];function o(d){this.count=0;var u=function v(d){var u=d.match(l);return u&&n[u[2]]?u.slice(1):null}(d);u&&(this.time=Number(u[0])*n[u[1]],this.type=u[1])}o.prototype.do=function(d){this.time&&(this.interval=setInterval(function b(){u.count++,d.call(u)},this.time));var u=this;return this},o.prototype.stop=function(){return this.interval&&(clearInterval(this.interval),delete this.interval),this};var l=/^\s*(\d+(?:\.\d+)?)\s*([a-z]+)\s*$/},1898:G=>{G.exports=function P(a,n){for(var e=[],o=(n=n||0)||0;o<a.length;o++)e[o-n]=a[o];return e}},4922:function(G,P){(function(){"use strict";P.stripBOM=function(a){return"\ufeff"===a[0]?a.substring(1):a}}).call(this)},4032:function(G,P,a){(function(){"use strict";var n,e,o,l,v,d={}.hasOwnProperty;n=a(7904),e=a(7067).defaults,l=function(u){return"string"==typeof u&&(u.indexOf("&")>=0||u.indexOf(">")>=0||u.indexOf("<")>=0)},v=function(u){return"<![CDATA["+o(u)+"]]>"},o=function(u){return u.replace("]]>","]]]]><![CDATA[>")},P.Builder=function(){function u(b){var C,x;for(C in this.options={},x=e[.2])d.call(x,C)&&(this.options[C]=x[C]);for(C in b)d.call(b,C)&&(this.options[C]=b[C])}return u.prototype.buildObject=function(b){var C,x,w,g,f,S;return C=this.options.attrkey,x=this.options.charkey,1===Object.keys(b).length&&this.options.rootName===e[.2].rootName?b=b[f=Object.keys(b)[0]]:f=this.options.rootName,S=this,w=function(j,B){var Z,le,q,X,K;if("object"!=typeof B)S.options.cdata&&l(B)?j.raw(v(B)):j.txt(B);else if(Array.isArray(B)){for(X in B)if(d.call(B,X))for(K in le=B[X])q=le[K],j=w(j.ele(K),q).up()}else for(K in B)if(d.call(B,K))if(le=B[K],K===C){if("object"==typeof le)for(Z in le)j=j.att(Z,le[Z])}else if(K===x)j=S.options.cdata&&l(le)?j.raw(v(le)):j.txt(le);else if(Array.isArray(le))for(X in le)d.call(le,X)&&(j="string"==typeof(q=le[X])?S.options.cdata&&l(q)?j.ele(K).raw(v(q)).up():j.ele(K,q).up():w(j.ele(K),q).up());else"object"==typeof le?j=w(j.ele(K),le).up():"string"==typeof le&&S.options.cdata&&l(le)?j=j.ele(K).raw(v(le)).up():(null==le&&(le=""),j=j.ele(K,le.toString()).up());return j},g=n.create(f,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),w(g,b).end(this.options.renderOpts)},u}()}).call(this)},7067:function(G,P){(function(){P.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:"  ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},2238:function(G,P,a){(function(){"use strict";var n,e,o,l,v,d,u,b,C,x=function(f,S){return function(){return f.apply(S,arguments)}},g={}.hasOwnProperty;b=a(1503),l=a(9069),n=a(4922),u=a(3749),C=a(5489).setImmediate,e=a(7067).defaults,v=function(f){return"object"==typeof f&&null!=f&&0===Object.keys(f).length},d=function(f,S,j){var B,Z;for(B=0,Z=f.length;B<Z;B++)S=(0,f[B])(S,j);return S},o=function(f,S,j){var B;return(B=Object.create(null)).value=j,B.writable=!0,B.enumerable=!0,B.configurable=!0,Object.defineProperty(f,S,B)},P.Parser=function(f){function S(j){var B,Z;if(this.parseStringPromise=x(this.parseStringPromise,this),this.parseString=x(this.parseString,this),this.reset=x(this.reset,this),this.assignOrPush=x(this.assignOrPush,this),this.processAsync=x(this.processAsync,this),!(this instanceof P.Parser))return new P.Parser(j);for(B in this.options={},Z=e[.2])g.call(Z,B)&&(this.options[B]=Z[B]);for(B in j)g.call(j,B)&&(this.options[B]=j[B]);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(u.normalize)),this.reset()}return function(f,S){for(var j in S)g.call(S,j)&&(f[j]=S[j]);function B(){this.constructor=f}B.prototype=S.prototype,f.prototype=new B,f.__super__=S.prototype}(S,f),S.prototype.processAsync=function(){var j,B;try{return this.remaining.length<=this.options.chunkSize?(j=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(j),this.saxParser.close()):(j=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(j),C(this.processAsync))}catch(Z){if(B=Z,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(B)}},S.prototype.assignOrPush=function(j,B,Z){return B in j?(j[B]instanceof Array||o(j,B,[j[B]]),j[B].push(Z)):o(j,B,this.options.explicitArray?[Z]:Z)},S.prototype.reset=function(){var j,B,Z,le,q;return this.removeAllListeners(),this.saxParser=b.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(q=this,function(X){if(q.saxParser.resume(),!q.saxParser.errThrown)return q.saxParser.errThrown=!0,q.emit("error",X)}),this.saxParser.onend=function(q){return function(){if(!q.saxParser.ended)return q.saxParser.ended=!0,q.emit("end",q.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,le=[],j=this.options.attrkey,B=this.options.charkey,this.saxParser.onopentag=function(q){return function(X){var K,U,me,xe,ne;if((me={})[B]="",!q.options.ignoreAttrs)for(K in ne=X.attributes)g.call(ne,K)&&(!(j in me)&&!q.options.mergeAttrs&&(me[j]={}),U=q.options.attrValueProcessors?d(q.options.attrValueProcessors,X.attributes[K],K):X.attributes[K],xe=q.options.attrNameProcessors?d(q.options.attrNameProcessors,K):K,q.options.mergeAttrs?q.assignOrPush(me,xe,U):o(me[j],xe,U));return me["#name"]=q.options.tagNameProcessors?d(q.options.tagNameProcessors,X.name):X.name,q.options.xmlns&&(me[q.options.xmlnskey]={uri:X.uri,local:X.local}),le.push(me)}}(this),this.saxParser.onclosetag=function(q){return function(){var X,K,U,me,xe,ne,Ze,Oe,nt,qe;if(ne=le.pop(),xe=ne["#name"],(!q.options.explicitChildren||!q.options.preserveChildrenOrder)&&delete ne["#name"],!0===ne.cdata&&(X=ne.cdata,delete ne.cdata),nt=le[le.length-1],ne[B].match(/^\s*$/)&&!X?(K=ne[B],delete ne[B]):(q.options.trim&&(ne[B]=ne[B].trim()),q.options.normalize&&(ne[B]=ne[B].replace(/\s{2,}/g," ").trim()),ne[B]=q.options.valueProcessors?d(q.options.valueProcessors,ne[B],xe):ne[B],1===Object.keys(ne).length&&B in ne&&!q.EXPLICIT_CHARKEY&&(ne=ne[B])),v(ne)&&(ne="function"==typeof q.options.emptyTag?q.options.emptyTag():""!==q.options.emptyTag?q.options.emptyTag:K),null!=q.options.validator&&(qe="/"+function(){var ct,ot,dt;for(dt=[],ct=0,ot=le.length;ct<ot;ct++)dt.push((me=le[ct])["#name"]);return dt}().concat(xe).join("/"),function(){try{ne=q.options.validator(qe,nt&&nt[xe],ne)}catch(ot){return q.emit("error",ot)}}()),q.options.explicitChildren&&!q.options.mergeAttrs&&"object"==typeof ne)if(q.options.preserveChildrenOrder){if(nt){for(U in nt[q.options.childkey]=nt[q.options.childkey]||[],Ze={},ne)g.call(ne,U)&&o(Ze,U,ne[U]);nt[q.options.childkey].push(Ze),delete ne["#name"],1===Object.keys(ne).length&&B in ne&&!q.EXPLICIT_CHARKEY&&(ne=ne[B])}}else me={},q.options.attrkey in ne&&(me[q.options.attrkey]=ne[q.options.attrkey],delete ne[q.options.attrkey]),!q.options.charsAsChildren&&q.options.charkey in ne&&(me[q.options.charkey]=ne[q.options.charkey],delete ne[q.options.charkey]),Object.getOwnPropertyNames(ne).length>0&&(me[q.options.childkey]=ne),ne=me;return le.length>0?q.assignOrPush(nt,xe,ne):(q.options.explicitRoot&&(Oe=ne,o(ne={},xe,Oe)),q.resultObject=ne,q.saxParser.ended=!0,q.emit("end",q.resultObject))}}(this),Z=function(q){return function(X){var K,U;if(U=le[le.length-1])return U[B]+=X,q.options.explicitChildren&&q.options.preserveChildrenOrder&&q.options.charsAsChildren&&(q.options.includeWhiteChars||""!==X.replace(/\\n/g,"").trim())&&(U[q.options.childkey]=U[q.options.childkey]||[],(K={"#name":"__text__"})[B]=X,q.options.normalize&&(K[B]=K[B].replace(/\s{2,}/g," ").trim()),U[q.options.childkey].push(K)),U}}(this),this.saxParser.ontext=Z,this.saxParser.oncdata=function(X){var K;if(K=Z(X))return K.cdata=!0}},S.prototype.parseString=function(j,B){var Z;null!=B&&"function"==typeof B&&(this.on("end",function(le){return this.reset(),B(null,le)}),this.on("error",function(le){return this.reset(),B(le)}));try{return""===(j=j.toString()).trim()?(this.emit("end",null),!0):(j=n.stripBOM(j),this.options.async?(this.remaining=j,C(this.processAsync),this.saxParser):this.saxParser.write(j).close())}catch(le){if(Z=le,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",Z),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw Z}},S.prototype.parseStringPromise=function(j){return new Promise((B=this,function(Z,le){return B.parseString(j,function(q,X){return q?le(q):Z(X)})}));var B},S}(l),P.parseString=function(f,S,j){var B,Z;return null!=j?("function"==typeof j&&(B=j),"object"==typeof S&&(Z=S)):("function"==typeof S&&(B=S),Z={}),new P.Parser(Z).parseString(f,B)},P.parseStringPromise=function(f,S){var j;return"object"==typeof S&&(j=S),new P.Parser(j).parseStringPromise(f)}}).call(this)},3749:function(G,P){(function(){"use strict";var a;a=new RegExp(/(?!xmlns)^.*:/),P.normalize=function(n){return n.toLowerCase()},P.firstCharLowerCase=function(n){return n.charAt(0).toLowerCase()+n.slice(1)},P.stripPrefix=function(n){return n.replace(a,"")},P.parseNumbers=function(n){return isNaN(n)||(n=n%1==0?parseInt(n,10):parseFloat(n)),n},P.parseBooleans=function(n){return/^(?:true|false)$/i.test(n)&&(n="true"===n.toLowerCase()),n}}).call(this)},5452:function(G,P,a){(function(){"use strict";var n,e,o,l,d={}.hasOwnProperty;e=a(7067),n=a(4032),o=a(2238),l=a(3749),P.defaults=e.defaults,P.processors=l,P.ValidationError=function(u){function b(C){this.message=C}return function(u,b){for(var C in b)d.call(b,C)&&(u[C]=b[C]);function x(){this.constructor=u}x.prototype=b.prototype,u.prototype=new x,u.__super__=b.prototype}(b,Error),b}(),P.Builder=n.Builder,P.Parser=o.Parser,P.parseString=o.parseString,P.parseStringPromise=o.parseStringPromise}).call(this)},599:function(G){(function(){G.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},2269:function(G){(function(){G.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},3452:function(G){(function(){var P,a,n,e,o,l,v,d=[].slice,u={}.hasOwnProperty;P=function(){var b,C,x,w,g,f;if(f=arguments[0],g=2<=arguments.length?d.call(arguments,1):[],o(Object.assign))Object.assign.apply(null,arguments);else for(b=0,x=g.length;b<x;b++)if(null!=(w=g[b]))for(C in w)u.call(w,C)&&(f[C]=w[C]);return f},o=function(b){return!!b&&"[object Function]"===Object.prototype.toString.call(b)},l=function(b){var C;return!!b&&("function"==(C=typeof b)||"object"===C)},n=function(b){return o(Array.isArray)?Array.isArray(b):"[object Array]"===Object.prototype.toString.call(b)},e=function(b){var C;if(n(b))return!b.length;for(C in b)if(u.call(b,C))return!1;return!0},v=function(b){var C,x;return l(b)&&(x=Object.getPrototypeOf(b))&&(C=x.constructor)&&"function"==typeof C&&C instanceof C&&Function.prototype.toString.call(C)===Function.prototype.toString.call(Object)},a=function(b){return o(b.valueOf)?b.valueOf():b},G.exports.assign=P,G.exports.isFunction=o,G.exports.isObject=l,G.exports.isArray=n,G.exports.isEmpty=e,G.exports.isPlainObject=v,G.exports.getValue=a}).call(this)},6316:function(G){(function(){G.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},5968:function(G,P,a){(function(){var n;n=a(2269),a(8563),G.exports=function(){function l(v,d,u){if(this.parent=v,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==d)throw new Error("Missing attribute name. "+this.debugInfo(d));this.name=this.stringify.name(d),this.value=this.stringify.attValue(u),this.type=n.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(l.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(l.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(l.prototype,"textContent",{get:function(){return this.value},set:function(v){return this.value=v||""}}),Object.defineProperty(l.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(l.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(l.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(l.prototype,"specified",{get:function(){return!0}}),l.prototype.clone=function(){return Object.create(this)},l.prototype.toString=function(v){return this.options.writer.attribute(this,this.options.writer.filterOptions(v))},l.prototype.debugInfo=function(v){return null==(v=v||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+v+"}, parent: <"+this.parent.name+">"},l.prototype.isEqualNode=function(v){return!(v.namespaceURI!==this.namespaceURI||v.prefix!==this.prefix||v.localName!==this.localName||v.value!==this.value)},l}()}).call(this)},1361:function(G,P,a){(function(){var n,o,v={}.hasOwnProperty;n=a(2269),o=a(2182),G.exports=function(d){function u(b,C){if(u.__super__.constructor.call(this,b),null==C)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=n.CData,this.value=this.stringify.cdata(C)}return function(d,u){for(var b in u)v.call(u,b)&&(d[b]=u[b]);function C(){this.constructor=d}C.prototype=u.prototype,d.prototype=new C,d.__super__=u.prototype}(u,d),u.prototype.clone=function(){return Object.create(this)},u.prototype.toString=function(b){return this.options.writer.cdata(this,this.options.writer.filterOptions(b))},u}(o)}).call(this)},2182:function(G,P,a){(function(){var e,l={}.hasOwnProperty;e=a(8563),G.exports=function(v){function d(u){d.__super__.constructor.call(this,u),this.value=""}return function(v,d){for(var u in d)l.call(d,u)&&(v[u]=d[u]);function b(){this.constructor=v}b.prototype=d.prototype,v.prototype=new b,v.__super__=d.prototype}(d,v),Object.defineProperty(d.prototype,"data",{get:function(){return this.value},set:function(u){return this.value=u||""}}),Object.defineProperty(d.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(u){return this.value=u||""}}),d.prototype.clone=function(){return Object.create(this)},d.prototype.substringData=function(u,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.appendData=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.insertData=function(u,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.deleteData=function(u,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.replaceData=function(u,b,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.isEqualNode=function(u){return!(!d.__super__.isEqualNode.apply(this,arguments).isEqualNode(u)||u.data!==this.data)},d}(e)}).call(this)},2516:function(G,P,a){(function(){var n,e,v={}.hasOwnProperty;n=a(2269),e=a(2182),G.exports=function(d){function u(b,C){if(u.__super__.constructor.call(this,b),null==C)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=n.Comment,this.value=this.stringify.comment(C)}return function(d,u){for(var b in u)v.call(u,b)&&(d[b]=u[b]);function C(){this.constructor=d}C.prototype=u.prototype,d.prototype=new C,d.__super__=u.prototype}(u,d),u.prototype.clone=function(){return Object.create(this)},u.prototype.toString=function(b){return this.options.writer.comment(this,this.options.writer.filterOptions(b))},u}(e)}).call(this)},5806:function(G,P,a){(function(){var e,o;e=a(9276),o=a(3735),G.exports=function(){function l(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(l.prototype,"parameterNames",{get:function(){return new o(Object.keys(this.defaultParams))}}),l.prototype.getParameter=function(v){return this.params.hasOwnProperty(v)?this.params[v]:null},l.prototype.canSetParameter=function(v,d){return!0},l.prototype.setParameter=function(v,d){return null!=d?this.params[v]=d:delete this.params[v]},l}()}).call(this)},9276:function(G){(function(){G.exports=function(){function a(){}return a.prototype.handleError=function(n){throw new Error(n)},a}()}).call(this)},9906:function(G){(function(){G.exports=function(){function a(){}return a.prototype.hasFeature=function(n,e){return!0},a.prototype.createDocumentType=function(n,e,o){throw new Error("This DOM method is not implemented.")},a.prototype.createDocument=function(n,e,o){throw new Error("This DOM method is not implemented.")},a.prototype.createHTMLDocument=function(n){throw new Error("This DOM method is not implemented.")},a.prototype.getFeature=function(n,e){throw new Error("This DOM method is not implemented.")},a}()}).call(this)},3735:function(G){(function(){G.exports=function(){function a(n){this.arr=n||[]}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a.prototype.item=function(n){return this.arr[n]||null},a.prototype.contains=function(n){return-1!==this.arr.indexOf(n)},a}()}).call(this)},7274:function(G,P,a){(function(){var n,o,v={}.hasOwnProperty;o=a(8563),n=a(2269),G.exports=function(d){function u(b,C,x,w,g,f){if(u.__super__.constructor.call(this,b),null==C)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==x)throw new Error("Missing DTD attribute name. "+this.debugInfo(C));if(!w)throw new Error("Missing DTD attribute type. "+this.debugInfo(C));if(!g)throw new Error("Missing DTD attribute default. "+this.debugInfo(C));if(0!==g.indexOf("#")&&(g="#"+g),!g.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(C));if(f&&!g.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(C));this.elementName=this.stringify.name(C),this.type=n.AttributeDeclaration,this.attributeName=this.stringify.name(x),this.attributeType=this.stringify.dtdAttType(w),f&&(this.defaultValue=this.stringify.dtdAttDefault(f)),this.defaultValueType=g}return function(d,u){for(var b in u)v.call(u,b)&&(d[b]=u[b]);function C(){this.constructor=d}C.prototype=u.prototype,d.prototype=new C,d.__super__=u.prototype}(u,d),u.prototype.toString=function(b){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(b))},u}(o)}).call(this)},2068:function(G,P,a){(function(){var n,o,v={}.hasOwnProperty;o=a(8563),n=a(2269),G.exports=function(d){function u(b,C,x){if(u.__super__.constructor.call(this,b),null==C)throw new Error("Missing DTD element name. "+this.debugInfo());x||(x="(#PCDATA)"),Array.isArray(x)&&(x="("+x.join(",")+")"),this.name=this.stringify.name(C),this.type=n.ElementDeclaration,this.value=this.stringify.dtdElementValue(x)}return function(d,u){for(var b in u)v.call(u,b)&&(d[b]=u[b]);function C(){this.constructor=d}C.prototype=u.prototype,d.prototype=new C,d.__super__=u.prototype}(u,d),u.prototype.toString=function(b){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(b))},u}(o)}).call(this)},8349:function(G,P,a){(function(){var n,o,l,d={}.hasOwnProperty;l=a(3452).isObject,o=a(8563),n=a(2269),G.exports=function(u){function b(C,x,w,g){if(b.__super__.constructor.call(this,C),null==w)throw new Error("Missing DTD entity name. "+this.debugInfo(w));if(null==g)throw new Error("Missing DTD entity value. "+this.debugInfo(w));if(this.pe=!!x,this.name=this.stringify.name(w),this.type=n.EntityDeclaration,l(g)){if(!g.pubID&&!g.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(w));if(g.pubID&&!g.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(w));if(this.internal=!1,null!=g.pubID&&(this.pubID=this.stringify.dtdPubID(g.pubID)),null!=g.sysID&&(this.sysID=this.stringify.dtdSysID(g.sysID)),null!=g.nData&&(this.nData=this.stringify.dtdNData(g.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(w))}else this.value=this.stringify.dtdEntityValue(g),this.internal=!0}return function(u,b){for(var C in b)d.call(b,C)&&(u[C]=b[C]);function x(){this.constructor=u}x.prototype=b.prototype,u.prototype=new x,u.__super__=b.prototype}(b,u),Object.defineProperty(b.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(b.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(b.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(b.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(b.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(b.prototype,"xmlVersion",{get:function(){return null}}),b.prototype.toString=function(C){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(C))},b}(o)}).call(this)},3087:function(G,P,a){(function(){var n,o,v={}.hasOwnProperty;o=a(8563),n=a(2269),G.exports=function(d){function u(b,C,x){if(u.__super__.constructor.call(this,b),null==C)throw new Error("Missing DTD notation name. "+this.debugInfo(C));if(!x.pubID&&!x.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(C));this.name=this.stringify.name(C),this.type=n.NotationDeclaration,null!=x.pubID&&(this.pubID=this.stringify.dtdPubID(x.pubID)),null!=x.sysID&&(this.sysID=this.stringify.dtdSysID(x.sysID))}return function(d,u){for(var b in u)v.call(u,b)&&(d[b]=u[b]);function C(){this.constructor=d}C.prototype=u.prototype,d.prototype=new C,d.__super__=u.prototype}(u,d),Object.defineProperty(u.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(u.prototype,"systemId",{get:function(){return this.sysID}}),u.prototype.toString=function(b){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(b))},u}(o)}).call(this)},4789:function(G,P,a){(function(){var n,o,l,d={}.hasOwnProperty;l=a(3452).isObject,o=a(8563),n=a(2269),G.exports=function(u){function b(C,x,w,g){var f;b.__super__.constructor.call(this,C),l(x)&&(x=(f=x).version,w=f.encoding,g=f.standalone),x||(x="1.0"),this.type=n.Declaration,this.version=this.stringify.xmlVersion(x),null!=w&&(this.encoding=this.stringify.xmlEncoding(w)),null!=g&&(this.standalone=this.stringify.xmlStandalone(g))}return function(u,b){for(var C in b)d.call(b,C)&&(u[C]=b[C]);function x(){this.constructor=u}x.prototype=b.prototype,u.prototype=new x,u.__super__=b.prototype}(b,u),b.prototype.toString=function(C){return this.options.writer.declaration(this,this.options.writer.filterOptions(C))},b}(o)}).call(this)},9195:function(G,P,a){(function(){var n,e,o,l,v,u,b,C,w={}.hasOwnProperty;C=a(3452).isObject,b=a(8563),n=a(2269),e=a(7274),l=a(8349),o=a(2068),v=a(3087),u=a(5264),G.exports=function(g){function f(S,j,B){var Z,le,q,X,K,U;if(f.__super__.constructor.call(this,S),this.type=n.DocType,S.children)for(le=0,q=(X=S.children).length;le<q;le++)if((Z=X[le]).type===n.Element){this.name=Z.name;break}this.documentObject=S,C(j)&&(j=(K=j).pubID,B=K.sysID),null==B&&(B=(U=[j,B])[0],j=U[1]),null!=j&&(this.pubID=this.stringify.dtdPubID(j)),null!=B&&(this.sysID=this.stringify.dtdSysID(B))}return function(g,f){for(var S in f)w.call(f,S)&&(g[S]=f[S]);function j(){this.constructor=g}j.prototype=f.prototype,g.prototype=new j,g.__super__=f.prototype}(f,g),Object.defineProperty(f.prototype,"entities",{get:function(){var S,j,B,Z,le;for(Z={},j=0,B=(le=this.children).length;j<B;j++)(S=le[j]).type===n.EntityDeclaration&&!S.pe&&(Z[S.name]=S);return new u(Z)}}),Object.defineProperty(f.prototype,"notations",{get:function(){var S,j,B,Z,le;for(Z={},j=0,B=(le=this.children).length;j<B;j++)(S=le[j]).type===n.NotationDeclaration&&(Z[S.name]=S);return new u(Z)}}),Object.defineProperty(f.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(f.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(f.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),f.prototype.element=function(S,j){var B;return B=new o(this,S,j),this.children.push(B),this},f.prototype.attList=function(S,j,B,Z,le){var q;return q=new e(this,S,j,B,Z,le),this.children.push(q),this},f.prototype.entity=function(S,j){var B;return B=new l(this,!1,S,j),this.children.push(B),this},f.prototype.pEntity=function(S,j){var B;return B=new l(this,!0,S,j),this.children.push(B),this},f.prototype.notation=function(S,j){var B;return B=new v(this,S,j),this.children.push(B),this},f.prototype.toString=function(S){return this.options.writer.docType(this,this.options.writer.filterOptions(S))},f.prototype.ele=function(S,j){return this.element(S,j)},f.prototype.att=function(S,j,B,Z,le){return this.attList(S,j,B,Z,le)},f.prototype.ent=function(S,j){return this.entity(S,j)},f.prototype.pent=function(S,j){return this.pEntity(S,j)},f.prototype.not=function(S,j){return this.notation(S,j)},f.prototype.up=function(){return this.root()||this.documentObject},f.prototype.isEqualNode=function(S){return!(!f.__super__.isEqualNode.apply(this,arguments).isEqualNode(S)||S.name!==this.name||S.publicId!==this.publicId||S.systemId!==this.systemId)},f}(b)}).call(this)},519:function(G,P,a){(function(){var n,e,o,v,d,u,b,x={}.hasOwnProperty;b=a(3452).isPlainObject,o=a(9906),e=a(5806),v=a(8563),n=a(2269),u=a(5041),d=a(4354),G.exports=function(w){function g(f){g.__super__.constructor.call(this,null),this.name="#document",this.type=n.Document,this.documentURI=null,this.domConfig=new e,f||(f={}),f.writer||(f.writer=new d),this.options=f,this.stringify=new u(f)}return function(w,g){for(var f in g)x.call(g,f)&&(w[f]=g[f]);function S(){this.constructor=w}S.prototype=g.prototype,w.prototype=new S,w.__super__=g.prototype}(g,w),Object.defineProperty(g.prototype,"implementation",{value:new o}),Object.defineProperty(g.prototype,"doctype",{get:function(){var f,S,j,B;for(S=0,j=(B=this.children).length;S<j;S++)if((f=B[S]).type===n.DocType)return f;return null}}),Object.defineProperty(g.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(g.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(g.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(g.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===n.Declaration?this.children[0].encoding:null}}),Object.defineProperty(g.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===n.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(g.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===n.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(g.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(g.prototype,"origin",{get:function(){return null}}),Object.defineProperty(g.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(g.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(g.prototype,"contentType",{get:function(){return null}}),g.prototype.end=function(f){var S;return S={},f?b(f)&&(S=f,f=this.options.writer):f=this.options.writer,f.document(this,f.filterOptions(S))},g.prototype.toString=function(f){return this.options.writer.document(this,this.options.writer.filterOptions(f))},g.prototype.createElement=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createTextNode=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createComment=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createCDATASection=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createProcessingInstruction=function(f,S){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createAttribute=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createEntityReference=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagName=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.importNode=function(f,S){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createElementNS=function(f,S){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createAttributeNS=function(f,S){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagNameNS=function(f,S){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementById=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.adoptNode=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.renameNode=function(f,S,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByClassName=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createEvent=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createNodeIterator=function(f,S,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createTreeWalker=function(f,S,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},g}(v)}).call(this)},1105:function(G,P,a){(function(){var n,e,o,l,v,d,u,b,C,x,w,g,S,j,B,Z,le,q,X,K,U,me,xe,ne={}.hasOwnProperty;xe=a(3452),U=xe.isObject,K=xe.isFunction,me=xe.isPlainObject,X=xe.getValue,n=a(2269),g=a(519),S=a(3352),l=a(1361),v=a(2516),B=a(9942),q=a(474),j=a(4666),x=a(4789),w=a(9195),d=a(7274),b=a(8349),u=a(2068),C=a(3087),o=a(5968),le=a(5041),Z=a(4354),e=a(6316),G.exports=function(){function Ze(Oe,nt,qe){var ct;this.name="?xml",this.type=n.Document,Oe||(Oe={}),ct={},Oe.writer?me(Oe.writer)&&(ct=Oe.writer,Oe.writer=new Z):Oe.writer=new Z,this.options=Oe,this.writer=Oe.writer,this.writerOptions=this.writer.filterOptions(ct),this.stringify=new le(Oe),this.onDataCallback=nt||function(){},this.onEndCallback=qe||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ze.prototype.createChildNode=function(Oe){var qe,ct,ot,dt,jt,zt,ti;switch(Oe.type){case n.CData:this.cdata(Oe.value);break;case n.Comment:this.comment(Oe.value);break;case n.Element:for(qe in ct={},zt=Oe.attribs)ne.call(zt,qe)&&(ct[qe]=zt[qe].value);this.node(Oe.name,ct);break;case n.Dummy:this.dummy();break;case n.Raw:this.raw(Oe.value);break;case n.Text:this.text(Oe.value);break;case n.ProcessingInstruction:this.instruction(Oe.target,Oe.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Oe.constructor.name)}for(dt=0,jt=(ti=Oe.children).length;dt<jt;dt++)this.createChildNode(ot=ti[dt]),ot.type===n.Element&&this.up();return this},Ze.prototype.dummy=function(){return this},Ze.prototype.node=function(Oe,nt,qe){var ct;if(null==Oe)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(Oe));return this.openCurrent(),Oe=X(Oe),null==nt&&(nt={}),nt=X(nt),U(nt)||(qe=(ct=[nt,qe])[0],nt=ct[1]),this.currentNode=new S(this,Oe,nt),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=qe&&this.text(qe),this},Ze.prototype.element=function(Oe,nt,qe){var ct,ot,dt,jt,zt,ti;if(this.currentNode&&this.currentNode.type===n.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Oe)||U(Oe)||K(Oe))for(jt=this.options.noValidation,this.options.noValidation=!0,(ti=new g(this.options).element("TEMP_ROOT")).element(Oe),this.options.noValidation=jt,ot=0,dt=(zt=ti.children).length;ot<dt;ot++)this.createChildNode(ct=zt[ot]),ct.type===n.Element&&this.up();else this.node(Oe,nt,qe);return this},Ze.prototype.attribute=function(Oe,nt){var qe;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Oe));if(null!=Oe&&(Oe=X(Oe)),U(Oe))for(qe in Oe)ne.call(Oe,qe)&&this.attribute(qe,Oe[qe]);else K(nt)&&(nt=nt.apply()),this.options.keepNullAttributes&&null==nt?this.currentNode.attribs[Oe]=new o(this,Oe,""):null!=nt&&(this.currentNode.attribs[Oe]=new o(this,Oe,nt));return this},Ze.prototype.text=function(Oe){var nt;return this.openCurrent(),nt=new q(this,Oe),this.onData(this.writer.text(nt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ze.prototype.cdata=function(Oe){var nt;return this.openCurrent(),nt=new l(this,Oe),this.onData(this.writer.cdata(nt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ze.prototype.comment=function(Oe){var nt;return this.openCurrent(),nt=new v(this,Oe),this.onData(this.writer.comment(nt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ze.prototype.raw=function(Oe){var nt;return this.openCurrent(),nt=new B(this,Oe),this.onData(this.writer.raw(nt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ze.prototype.instruction=function(Oe,nt){var qe,ct,dt,jt;if(this.openCurrent(),null!=Oe&&(Oe=X(Oe)),null!=nt&&(nt=X(nt)),Array.isArray(Oe))for(qe=0,dt=Oe.length;qe<dt;qe++)this.instruction(ct=Oe[qe]);else if(U(Oe))for(ct in Oe)ne.call(Oe,ct)&&this.instruction(ct,Oe[ct]);else K(nt)&&(nt=nt.apply()),jt=new j(this,Oe,nt),this.onData(this.writer.processingInstruction(jt,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Ze.prototype.declaration=function(Oe,nt,qe){var ct;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ct=new x(this,Oe,nt,qe),this.onData(this.writer.declaration(ct,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ze.prototype.doctype=function(Oe,nt,qe){if(this.openCurrent(),null==Oe)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new w(this,nt,qe),this.currentNode.rootNodeName=Oe,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ze.prototype.dtdElement=function(Oe,nt){var qe;return this.openCurrent(),qe=new u(this,Oe,nt),this.onData(this.writer.dtdElement(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ze.prototype.attList=function(Oe,nt,qe,ct,ot){var dt;return this.openCurrent(),dt=new d(this,Oe,nt,qe,ct,ot),this.onData(this.writer.dtdAttList(dt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ze.prototype.entity=function(Oe,nt){var qe;return this.openCurrent(),qe=new b(this,!1,Oe,nt),this.onData(this.writer.dtdEntity(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ze.prototype.pEntity=function(Oe,nt){var qe;return this.openCurrent(),qe=new b(this,!0,Oe,nt),this.onData(this.writer.dtdEntity(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ze.prototype.notation=function(Oe,nt){var qe;return this.openCurrent(),qe=new C(this,Oe,nt),this.onData(this.writer.dtdNotation(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ze.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Ze.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ze.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ze.prototype.openNode=function(Oe){var qe,ct,ot;if(!Oe.isOpen){if(!this.root&&0===this.currentLevel&&Oe.type===n.Element&&(this.root=Oe),qe="",Oe.type===n.Element){for(ct in this.writerOptions.state=e.OpenTag,qe=this.writer.indent(Oe,this.writerOptions,this.currentLevel)+"<"+Oe.name,ot=Oe.attribs)ne.call(ot,ct)&&(qe+=this.writer.attribute(ot[ct],this.writerOptions,this.currentLevel));qe+=(Oe.children?">":"/>")+this.writer.endline(Oe,this.writerOptions,this.currentLevel),this.writerOptions.state=e.InsideTag}else this.writerOptions.state=e.OpenTag,qe=this.writer.indent(Oe,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Oe.rootNodeName,Oe.pubID&&Oe.sysID?qe+=' PUBLIC "'+Oe.pubID+'" "'+Oe.sysID+'"':Oe.sysID&&(qe+=' SYSTEM "'+Oe.sysID+'"'),Oe.children?(qe+=" [",this.writerOptions.state=e.InsideTag):(this.writerOptions.state=e.CloseTag,qe+=">"),qe+=this.writer.endline(Oe,this.writerOptions,this.currentLevel);return this.onData(qe,this.currentLevel),Oe.isOpen=!0}},Ze.prototype.closeNode=function(Oe){var nt;if(!Oe.isClosed)return"",this.writerOptions.state=e.CloseTag,nt=Oe.type===n.Element?this.writer.indent(Oe,this.writerOptions,this.currentLevel)+"</"+Oe.name+">"+this.writer.endline(Oe,this.writerOptions,this.currentLevel):this.writer.indent(Oe,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Oe,this.writerOptions,this.currentLevel),this.writerOptions.state=e.None,this.onData(nt,this.currentLevel),Oe.isClosed=!0},Ze.prototype.onData=function(Oe,nt){return this.documentStarted=!0,this.onDataCallback(Oe,nt+1)},Ze.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ze.prototype.debugInfo=function(Oe){return null==Oe?"":"node: <"+Oe+">"},Ze.prototype.ele=function(){return this.element.apply(this,arguments)},Ze.prototype.nod=function(Oe,nt,qe){return this.node(Oe,nt,qe)},Ze.prototype.txt=function(Oe){return this.text(Oe)},Ze.prototype.dat=function(Oe){return this.cdata(Oe)},Ze.prototype.com=function(Oe){return this.comment(Oe)},Ze.prototype.ins=function(Oe,nt){return this.instruction(Oe,nt)},Ze.prototype.dec=function(Oe,nt,qe){return this.declaration(Oe,nt,qe)},Ze.prototype.dtd=function(Oe,nt,qe){return this.doctype(Oe,nt,qe)},Ze.prototype.e=function(Oe,nt,qe){return this.element(Oe,nt,qe)},Ze.prototype.n=function(Oe,nt,qe){return this.node(Oe,nt,qe)},Ze.prototype.t=function(Oe){return this.text(Oe)},Ze.prototype.d=function(Oe){return this.cdata(Oe)},Ze.prototype.c=function(Oe){return this.comment(Oe)},Ze.prototype.r=function(Oe){return this.raw(Oe)},Ze.prototype.i=function(Oe,nt){return this.instruction(Oe,nt)},Ze.prototype.att=function(){return this.currentNode&&this.currentNode.type===n.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ze.prototype.a=function(){return this.currentNode&&this.currentNode.type===n.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ze.prototype.ent=function(Oe,nt){return this.entity(Oe,nt)},Ze.prototype.pent=function(Oe,nt){return this.pEntity(Oe,nt)},Ze.prototype.not=function(Oe,nt){return this.notation(Oe,nt)},Ze}()}).call(this)},4173:function(G,P,a){(function(){var n,o,v={}.hasOwnProperty;o=a(8563),n=a(2269),G.exports=function(d){function u(b){u.__super__.constructor.call(this,b),this.type=n.Dummy}return function(d,u){for(var b in u)v.call(u,b)&&(d[b]=u[b]);function C(){this.constructor=d}C.prototype=u.prototype,d.prototype=new C,d.__super__=u.prototype}(u,d),u.prototype.clone=function(){return Object.create(this)},u.prototype.toString=function(b){return""},u}(o)}).call(this)},3352:function(G,P,a){(function(){var n,e,l,v,d,u,b,C,w={}.hasOwnProperty;C=a(3452),b=C.isObject,u=C.isFunction,d=C.getValue,v=a(8563),n=a(2269),e=a(5968),l=a(5264),G.exports=function(g){function f(S,j,B){var Z,le,q,X;if(f.__super__.constructor.call(this,S),null==j)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(j),this.type=n.Element,this.attribs={},this.schemaTypeInfo=null,null!=B&&this.attribute(B),S.type===n.Document&&(this.isRoot=!0,this.documentObject=S,S.rootObject=this,S.children))for(le=0,q=(X=S.children).length;le<q;le++)if((Z=X[le]).type===n.DocType){Z.name=this.name;break}}return function(g,f){for(var S in f)w.call(f,S)&&(g[S]=f[S]);function j(){this.constructor=g}j.prototype=f.prototype,g.prototype=new j,g.__super__=f.prototype}(f,g),Object.defineProperty(f.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(f.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(f.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(f.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(f.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(f.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(f.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(f.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new l(this.attribs)),this.attributeMap}}),f.prototype.clone=function(){var j,B,Z;for(j in(B=Object.create(this)).isRoot&&(B.documentObject=null),B.attribs={},Z=this.attribs)w.call(Z,j)&&(B.attribs[j]=Z[j].clone());return B.children=[],this.children.forEach(function(le){var q;return(q=le.clone()).parent=B,B.children.push(q)}),B},f.prototype.attribute=function(S,j){var B;if(null!=S&&(S=d(S)),b(S))for(B in S)w.call(S,B)&&this.attribute(B,S[B]);else u(j)&&(j=j.apply()),this.options.keepNullAttributes&&null==j?this.attribs[S]=new e(this,S,""):null!=j&&(this.attribs[S]=new e(this,S,j));return this},f.prototype.removeAttribute=function(S){var B,Z;if(null==S)throw new Error("Missing attribute name. "+this.debugInfo());if(S=d(S),Array.isArray(S))for(B=0,Z=S.length;B<Z;B++)delete this.attribs[S[B]];else delete this.attribs[S];return this},f.prototype.toString=function(S){return this.options.writer.element(this,this.options.writer.filterOptions(S))},f.prototype.att=function(S,j){return this.attribute(S,j)},f.prototype.a=function(S,j){return this.attribute(S,j)},f.prototype.getAttribute=function(S){return this.attribs.hasOwnProperty(S)?this.attribs[S].value:null},f.prototype.setAttribute=function(S,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getAttributeNode=function(S){return this.attribs.hasOwnProperty(S)?this.attribs[S]:null},f.prototype.setAttributeNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.removeAttributeNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getElementsByTagName=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getAttributeNS=function(S,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.setAttributeNS=function(S,j,B){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.removeAttributeNS=function(S,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getAttributeNodeNS=function(S,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.setAttributeNodeNS=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getElementsByTagNameNS=function(S,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.hasAttribute=function(S){return this.attribs.hasOwnProperty(S)},f.prototype.hasAttributeNS=function(S,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.setIdAttribute=function(S,j){return this.attribs.hasOwnProperty(S)?this.attribs[S].isId:j},f.prototype.setIdAttributeNS=function(S,j,B){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.setIdAttributeNode=function(S,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getElementsByTagName=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getElementsByTagNameNS=function(S,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getElementsByClassName=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.isEqualNode=function(S){var j,B,Z;if(!f.__super__.isEqualNode.apply(this,arguments).isEqualNode(S)||S.namespaceURI!==this.namespaceURI||S.prefix!==this.prefix||S.localName!==this.localName||S.attribs.length!==this.attribs.length)return!1;for(j=B=0,Z=this.attribs.length-1;0<=Z?B<=Z:B>=Z;j=0<=Z?++B:--B)if(!this.attribs[j].isEqualNode(S.attribs[j]))return!1;return!0},f}(v)}).call(this)},5264:function(G){(function(){G.exports=function(){function a(n){this.nodes=n}return Object.defineProperty(a.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.getNamedItem=function(n){return this.nodes[n]},a.prototype.setNamedItem=function(n){var e;return e=this.nodes[n.nodeName],this.nodes[n.nodeName]=n,e||null},a.prototype.removeNamedItem=function(n){var e;return e=this.nodes[n],delete this.nodes[n],e||null},a.prototype.item=function(n){return this.nodes[Object.keys(this.nodes)[n]]||null},a.prototype.getNamedItemNS=function(n,e){throw new Error("This DOM method is not implemented.")},a.prototype.setNamedItemNS=function(n){throw new Error("This DOM method is not implemented.")},a.prototype.removeNamedItemNS=function(n,e){throw new Error("This DOM method is not implemented.")},a}()}).call(this)},8563:function(G,P,a){(function(){var n,e,o,l,v,d,u,b,w,g,f,S,j,B,Z,le,q,X={}.hasOwnProperty;q=a(3452),le=q.isObject,Z=q.isFunction,B=q.isEmpty,j=q.getValue,b=null,o=null,l=null,v=null,d=null,f=null,S=null,g=null,u=null,e=null,w=null,n=null,G.exports=function(){function K(U){this.parent=U,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,b||(b=a(3352),o=a(1361),l=a(2516),v=a(4789),d=a(9195),f=a(9942),S=a(474),g=a(4666),u=a(4173),e=a(2269),w=a(5112),a(5264),n=a(599))}return Object.defineProperty(K.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(K.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(K.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(K.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(K.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new w(this.children)),this.childNodeList}}),Object.defineProperty(K.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(K.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(K.prototype,"previousSibling",{get:function(){var U;return U=this.parent.children.indexOf(this),this.parent.children[U-1]||null}}),Object.defineProperty(K.prototype,"nextSibling",{get:function(){var U;return U=this.parent.children.indexOf(this),this.parent.children[U+1]||null}}),Object.defineProperty(K.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(K.prototype,"textContent",{get:function(){var U,me,xe,ne,Ze;if(this.nodeType===e.Element||this.nodeType===e.DocumentFragment){for(Ze="",me=0,xe=(ne=this.children).length;me<xe;me++)(U=ne[me]).textContent&&(Ze+=U.textContent);return Ze}return null},set:function(U){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),K.prototype.setParent=function(U){var xe,ne,Ze,Oe;for(this.parent=U,U&&(this.options=U.options,this.stringify=U.stringify),Oe=[],xe=0,ne=(Ze=this.children).length;xe<ne;xe++)Oe.push(Ze[xe].setParent(this));return Oe},K.prototype.element=function(U,me,xe){var ne,Oe,nt,qe,ct,ot,dt,jt,zt,ti;if(ct=null,null===me&&null==xe&&(me=(jt=[{},null])[0],xe=jt[1]),null==me&&(me={}),me=j(me),le(me)||(xe=(zt=[me,xe])[0],me=zt[1]),null!=U&&(U=j(U)),Array.isArray(U))for(Oe=0,ot=U.length;Oe<ot;Oe++)ct=this.element(U[Oe]);else if(Z(U))ct=this.element(U.apply());else if(le(U)){for(qe in U)if(X.call(U,qe))if(Z(ti=U[qe])&&(ti=ti.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===qe.indexOf(this.stringify.convertAttKey))ct=this.attribute(qe.substr(this.stringify.convertAttKey.length),ti);else if(!this.options.separateArrayItems&&Array.isArray(ti)&&B(ti))ct=this.dummy();else if(le(ti)&&B(ti))ct=this.element(qe);else if(this.options.keepNullNodes||null!=ti)if(!this.options.separateArrayItems&&Array.isArray(ti))for(nt=0,dt=ti.length;nt<dt;nt++)(ne={})[qe]=ti[nt],ct=this.element(ne);else le(ti)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===qe.indexOf(this.stringify.convertTextKey)?ct=this.element(ti):(ct=this.element(qe)).element(ti):ct=this.element(qe,ti);else ct=this.dummy()}else ct=this.options.keepNullNodes||null!==xe?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===U.indexOf(this.stringify.convertTextKey)?this.text(xe):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===U.indexOf(this.stringify.convertCDataKey)?this.cdata(xe):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===U.indexOf(this.stringify.convertCommentKey)?this.comment(xe):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===U.indexOf(this.stringify.convertRawKey)?this.raw(xe):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===U.indexOf(this.stringify.convertPIKey)?this.instruction(U.substr(this.stringify.convertPIKey.length),xe):this.node(U,me,xe):this.dummy();if(null==ct)throw new Error("Could not create any elements with: "+U+". "+this.debugInfo());return ct},K.prototype.insertBefore=function(U,me,xe){var ne,Ze,Oe,nt,qe;if(U?.type)return nt=me,(Oe=U).setParent(this),nt?(Ze=children.indexOf(nt),qe=children.splice(Ze),children.push(Oe),Array.prototype.push.apply(children,qe)):children.push(Oe),Oe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(U));return Ze=this.parent.children.indexOf(this),qe=this.parent.children.splice(Ze),ne=this.parent.element(U,me,xe),Array.prototype.push.apply(this.parent.children,qe),ne},K.prototype.insertAfter=function(U,me,xe){var ne,Ze,Oe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(U));return Ze=this.parent.children.indexOf(this),Oe=this.parent.children.splice(Ze+1),ne=this.parent.element(U,me,xe),Array.prototype.push.apply(this.parent.children,Oe),ne},K.prototype.remove=function(){var U;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return U=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[U,U-U+1].concat([])),this.parent},K.prototype.node=function(U,me,xe){var ne,Ze;return null!=U&&(U=j(U)),me||(me={}),me=j(me),le(me)||(xe=(Ze=[me,xe])[0],me=Ze[1]),ne=new b(this,U,me),null!=xe&&ne.text(xe),this.children.push(ne),ne},K.prototype.text=function(U){var me;return le(U)&&this.element(U),me=new S(this,U),this.children.push(me),this},K.prototype.cdata=function(U){var me;return me=new o(this,U),this.children.push(me),this},K.prototype.comment=function(U){var me;return me=new l(this,U),this.children.push(me),this},K.prototype.commentBefore=function(U){var xe,ne;return xe=this.parent.children.indexOf(this),ne=this.parent.children.splice(xe),this.parent.comment(U),Array.prototype.push.apply(this.parent.children,ne),this},K.prototype.commentAfter=function(U){var xe,ne;return xe=this.parent.children.indexOf(this),ne=this.parent.children.splice(xe+1),this.parent.comment(U),Array.prototype.push.apply(this.parent.children,ne),this},K.prototype.raw=function(U){var me;return me=new f(this,U),this.children.push(me),this},K.prototype.dummy=function(){return new u(this)},K.prototype.instruction=function(U,me){var xe,Ze,Oe,nt;if(null!=U&&(U=j(U)),null!=me&&(me=j(me)),Array.isArray(U))for(Oe=0,nt=U.length;Oe<nt;Oe++)this.instruction(xe=U[Oe]);else if(le(U))for(xe in U)X.call(U,xe)&&this.instruction(xe,U[xe]);else Z(me)&&(me=me.apply()),Ze=new g(this,U,me),this.children.push(Ze);return this},K.prototype.instructionBefore=function(U,me){var ne,Ze;return ne=this.parent.children.indexOf(this),Ze=this.parent.children.splice(ne),this.parent.instruction(U,me),Array.prototype.push.apply(this.parent.children,Ze),this},K.prototype.instructionAfter=function(U,me){var ne,Ze;return ne=this.parent.children.indexOf(this),Ze=this.parent.children.splice(ne+1),this.parent.instruction(U,me),Array.prototype.push.apply(this.parent.children,Ze),this},K.prototype.declaration=function(U,me,xe){var ne,Ze;return ne=this.document(),Ze=new v(ne,U,me,xe),0===ne.children.length?ne.children.unshift(Ze):ne.children[0].type===e.Declaration?ne.children[0]=Ze:ne.children.unshift(Ze),ne.root()||ne},K.prototype.dtd=function(U,me){var ne,Ze,Oe,nt,qe,ct,ot,dt,jt;for(ne=this.document(),Ze=new d(ne,U,me),Oe=nt=0,ct=(dt=ne.children).length;nt<ct;Oe=++nt)if(dt[Oe].type===e.DocType)return ne.children[Oe]=Ze,Ze;for(Oe=qe=0,ot=(jt=ne.children).length;qe<ot;Oe=++qe)if(jt[Oe].isRoot)return ne.children.splice(Oe,0,Ze),Ze;return ne.children.push(Ze),Ze},K.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},K.prototype.root=function(){var U;for(U=this;U;){if(U.type===e.Document)return U.rootObject;if(U.isRoot)return U;U=U.parent}},K.prototype.document=function(){var U;for(U=this;U;){if(U.type===e.Document)return U;U=U.parent}},K.prototype.end=function(U){return this.document().end(U)},K.prototype.prev=function(){var U;if((U=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[U-1]},K.prototype.next=function(){var U;if(-1===(U=this.parent.children.indexOf(this))||U===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[U+1]},K.prototype.importDocument=function(U){var me;return(me=U.root().clone()).parent=this,me.isRoot=!1,this.children.push(me),this},K.prototype.debugInfo=function(U){var me,xe;return null!=(U=U||this.name)||null!=(me=this.parent)&&me.name?null==U?"parent: <"+this.parent.name+">":null!=(xe=this.parent)&&xe.name?"node: <"+U+">, parent: <"+this.parent.name+">":"node: <"+U+">":""},K.prototype.ele=function(U,me,xe){return this.element(U,me,xe)},K.prototype.nod=function(U,me,xe){return this.node(U,me,xe)},K.prototype.txt=function(U){return this.text(U)},K.prototype.dat=function(U){return this.cdata(U)},K.prototype.com=function(U){return this.comment(U)},K.prototype.ins=function(U,me){return this.instruction(U,me)},K.prototype.doc=function(){return this.document()},K.prototype.dec=function(U,me,xe){return this.declaration(U,me,xe)},K.prototype.e=function(U,me,xe){return this.element(U,me,xe)},K.prototype.n=function(U,me,xe){return this.node(U,me,xe)},K.prototype.t=function(U){return this.text(U)},K.prototype.d=function(U){return this.cdata(U)},K.prototype.c=function(U){return this.comment(U)},K.prototype.r=function(U){return this.raw(U)},K.prototype.i=function(U,me){return this.instruction(U,me)},K.prototype.u=function(){return this.up()},K.prototype.importXMLBuilder=function(U){return this.importDocument(U)},K.prototype.replaceChild=function(U,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.removeChild=function(U){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.appendChild=function(U){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.hasChildNodes=function(){return 0!==this.children.length},K.prototype.cloneNode=function(U){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.isSupported=function(U,me){return!0},K.prototype.hasAttributes=function(){return 0!==this.attribs.length},K.prototype.compareDocumentPosition=function(U){var xe;return this===U?0:this.document()!==U.document()?(xe=n.Disconnected|n.ImplementationSpecific,Math.random()<.5?xe|=n.Preceding:xe|=n.Following,xe):this.isAncestor(U)?n.Contains|n.Preceding:this.isDescendant(U)?n.Contains|n.Following:this.isPreceding(U)?n.Preceding:n.Following},K.prototype.isSameNode=function(U){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.lookupPrefix=function(U){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.isDefaultNamespace=function(U){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.lookupNamespaceURI=function(U){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.isEqualNode=function(U){var me,xe,ne;if(U.nodeType!==this.nodeType||U.children.length!==this.children.length)return!1;for(me=xe=0,ne=this.children.length-1;0<=ne?xe<=ne:xe>=ne;me=0<=ne?++xe:--xe)if(!this.children[me].isEqualNode(U.children[me]))return!1;return!0},K.prototype.getFeature=function(U,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.setUserData=function(U,me,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.getUserData=function(U){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.contains=function(U){return!!U&&(U===this||this.isDescendant(U))},K.prototype.isDescendant=function(U){var me,ne,Ze,Oe;for(ne=0,Ze=(Oe=this.children).length;ne<Ze;ne++)if(U===(me=Oe[ne])||me.isDescendant(U))return!0;return!1},K.prototype.isAncestor=function(U){return U.isDescendant(this)},K.prototype.isPreceding=function(U){var me,xe;return me=this.treePosition(U),xe=this.treePosition(this),-1!==me&&-1!==xe&&me<xe},K.prototype.isFollowing=function(U){var me,xe;return me=this.treePosition(U),xe=this.treePosition(this),-1!==me&&-1!==xe&&me>xe},K.prototype.treePosition=function(U){var me,xe;return xe=0,me=!1,this.foreachTreeNode(this.document(),function(ne){if(xe++,!me&&ne===U)return me=!0}),me?xe:-1},K.prototype.foreachTreeNode=function(U,me){var xe,ne,Ze,Oe,nt;for(U||(U=this.document()),ne=0,Ze=(Oe=U.children).length;ne<Ze;ne++){if(nt=me(xe=Oe[ne]))return nt;if(nt=this.foreachTreeNode(xe,me))return nt}},K}()}).call(this)},5112:function(G){(function(){G.exports=function(){function a(n){this.nodes=n}return Object.defineProperty(a.prototype,"length",{get:function(){return this.nodes.length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.item=function(n){return this.nodes[n]||null},a}()}).call(this)},4666:function(G,P,a){(function(){var n,e,v={}.hasOwnProperty;n=a(2269),e=a(2182),G.exports=function(d){function u(b,C,x){if(u.__super__.constructor.call(this,b),null==C)throw new Error("Missing instruction target. "+this.debugInfo());this.type=n.ProcessingInstruction,this.target=this.stringify.insTarget(C),this.name=this.target,x&&(this.value=this.stringify.insValue(x))}return function(d,u){for(var b in u)v.call(u,b)&&(d[b]=u[b]);function C(){this.constructor=d}C.prototype=u.prototype,d.prototype=new C,d.__super__=u.prototype}(u,d),u.prototype.clone=function(){return Object.create(this)},u.prototype.toString=function(b){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(b))},u.prototype.isEqualNode=function(b){return!(!u.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)||b.target!==this.target)},u}(e)}).call(this)},9942:function(G,P,a){(function(){var n,e,v={}.hasOwnProperty;n=a(2269),e=a(8563),G.exports=function(d){function u(b,C){if(u.__super__.constructor.call(this,b),null==C)throw new Error("Missing raw text. "+this.debugInfo());this.type=n.Raw,this.value=this.stringify.raw(C)}return function(d,u){for(var b in u)v.call(u,b)&&(d[b]=u[b]);function C(){this.constructor=d}C.prototype=u.prototype,d.prototype=new C,d.__super__=u.prototype}(u,d),u.prototype.clone=function(){return Object.create(this)},u.prototype.toString=function(b){return this.options.writer.raw(this,this.options.writer.filterOptions(b))},u}(e)}).call(this)},7647:function(G,P,a){(function(){var n,e,l,d={}.hasOwnProperty;n=a(2269),l=a(3576),e=a(6316),G.exports=function(u){function b(C,x){this.stream=C,b.__super__.constructor.call(this,x)}return function(u,b){for(var C in b)d.call(b,C)&&(u[C]=b[C]);function x(){this.constructor=u}x.prototype=b.prototype,u.prototype=new x,u.__super__=b.prototype}(b,u),b.prototype.endline=function(C,x,w){return C.isLastRootNode&&x.state===e.CloseTag?"":b.__super__.endline.call(this,C,x,w)},b.prototype.document=function(C,x){var g,f,S,j,B,Z,le,q;for(g=f=0,j=(Z=C.children).length;f<j;g=++f)Z[g].isLastRootNode=g===C.children.length-1;for(x=this.filterOptions(x),q=[],S=0,B=(le=C.children).length;S<B;S++)q.push(this.writeChildNode(le[S],x,0));return q},b.prototype.attribute=function(C,x,w){return this.stream.write(b.__super__.attribute.call(this,C,x,w))},b.prototype.cdata=function(C,x,w){return this.stream.write(b.__super__.cdata.call(this,C,x,w))},b.prototype.comment=function(C,x,w){return this.stream.write(b.__super__.comment.call(this,C,x,w))},b.prototype.declaration=function(C,x,w){return this.stream.write(b.__super__.declaration.call(this,C,x,w))},b.prototype.docType=function(C,x,w){var f,S,j;if(w||(w=0),this.openNode(C,x,w),x.state=e.OpenTag,this.stream.write(this.indent(C,x,w)),this.stream.write("<!DOCTYPE "+C.root().name),C.pubID&&C.sysID?this.stream.write(' PUBLIC "'+C.pubID+'" "'+C.sysID+'"'):C.sysID&&this.stream.write(' SYSTEM "'+C.sysID+'"'),C.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(C,x,w)),x.state=e.InsideTag,f=0,S=(j=C.children).length;f<S;f++)this.writeChildNode(j[f],x,w+1);x.state=e.CloseTag,this.stream.write("]")}return x.state=e.CloseTag,this.stream.write(x.spaceBeforeSlash+">"),this.stream.write(this.endline(C,x,w)),x.state=e.None,this.closeNode(C,x,w)},b.prototype.element=function(C,x,w){var S,j,B,Z,le,X,K;for(le in w||(w=0),this.openNode(C,x,w),x.state=e.OpenTag,this.stream.write(this.indent(C,x,w)+"<"+C.name),X=C.attribs)d.call(X,le)&&this.attribute(X[le],x,w);if(j=0===(S=C.children.length)?null:C.children[0],0===S||C.children.every(function(U){return(U.type===n.Text||U.type===n.Raw)&&""===U.value}))x.allowEmpty?(this.stream.write(">"),x.state=e.CloseTag,this.stream.write("</"+C.name+">")):(x.state=e.CloseTag,this.stream.write(x.spaceBeforeSlash+"/>"));else if(!x.pretty||1!==S||j.type!==n.Text&&j.type!==n.Raw||null==j.value){for(this.stream.write(">"+this.endline(C,x,w)),x.state=e.InsideTag,B=0,Z=(K=C.children).length;B<Z;B++)this.writeChildNode(K[B],x,w+1);x.state=e.CloseTag,this.stream.write(this.indent(C,x,w)+"</"+C.name+">")}else this.stream.write(">"),x.state=e.InsideTag,x.suppressPrettyCount++,this.writeChildNode(j,x,w+1),x.suppressPrettyCount--,x.state=e.CloseTag,this.stream.write("</"+C.name+">");return this.stream.write(this.endline(C,x,w)),x.state=e.None,this.closeNode(C,x,w)},b.prototype.processingInstruction=function(C,x,w){return this.stream.write(b.__super__.processingInstruction.call(this,C,x,w))},b.prototype.raw=function(C,x,w){return this.stream.write(b.__super__.raw.call(this,C,x,w))},b.prototype.text=function(C,x,w){return this.stream.write(b.__super__.text.call(this,C,x,w))},b.prototype.dtdAttList=function(C,x,w){return this.stream.write(b.__super__.dtdAttList.call(this,C,x,w))},b.prototype.dtdElement=function(C,x,w){return this.stream.write(b.__super__.dtdElement.call(this,C,x,w))},b.prototype.dtdEntity=function(C,x,w){return this.stream.write(b.__super__.dtdEntity.call(this,C,x,w))},b.prototype.dtdNotation=function(C,x,w){return this.stream.write(b.__super__.dtdNotation.call(this,C,x,w))},b}(l)}).call(this)},4354:function(G,P,a){(function(){var e,l={}.hasOwnProperty;e=a(3576),G.exports=function(v){function d(u){d.__super__.constructor.call(this,u)}return function(v,d){for(var u in d)l.call(d,u)&&(v[u]=d[u]);function b(){this.constructor=v}b.prototype=d.prototype,v.prototype=new b,v.__super__=d.prototype}(d,v),d.prototype.document=function(u,b){var x,w,g,f;for(b=this.filterOptions(b),g="",x=0,w=(f=u.children).length;x<w;x++)g+=this.writeChildNode(f[x],b,0);return b.pretty&&g.slice(-b.newline.length)===b.newline&&(g=g.slice(0,-b.newline.length)),g},d}(e)}).call(this)},5041:function(G){(function(){var a=function(e,o){return function(){return e.apply(o,arguments)}},n={}.hasOwnProperty;G.exports=function(){function e(o){var l,v;for(l in this.assertLegalName=a(this.assertLegalName,this),this.assertLegalChar=a(this.assertLegalChar,this),o||(o={}),this.options=o,this.options.version||(this.options.version="1.0"),v=o.stringify||{})n.call(v,l)&&(this[l]=v[l])}return e.prototype.name=function(o){return this.options.noValidation?o:this.assertLegalName(""+o||"")},e.prototype.text=function(o){return this.options.noValidation?o:this.assertLegalChar(this.textEscape(""+o||""))},e.prototype.cdata=function(o){return this.options.noValidation?o:(o=(o=""+o||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(o))},e.prototype.comment=function(o){if(this.options.noValidation)return o;if((o=""+o||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+o);return this.assertLegalChar(o)},e.prototype.raw=function(o){return this.options.noValidation?o:""+o||""},e.prototype.attValue=function(o){return this.options.noValidation?o:this.assertLegalChar(this.attEscape(o=""+o||""))},e.prototype.insTarget=function(o){return this.options.noValidation?o:this.assertLegalChar(""+o||"")},e.prototype.insValue=function(o){if(this.options.noValidation)return o;if((o=""+o||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+o);return this.assertLegalChar(o)},e.prototype.xmlVersion=function(o){if(this.options.noValidation)return o;if(!(o=""+o||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+o);return o},e.prototype.xmlEncoding=function(o){if(this.options.noValidation)return o;if(!(o=""+o||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+o);return this.assertLegalChar(o)},e.prototype.xmlStandalone=function(o){return this.options.noValidation?o:o?"yes":"no"},e.prototype.dtdPubID=function(o){return this.options.noValidation?o:this.assertLegalChar(""+o||"")},e.prototype.dtdSysID=function(o){return this.options.noValidation?o:this.assertLegalChar(""+o||"")},e.prototype.dtdElementValue=function(o){return this.options.noValidation?o:this.assertLegalChar(""+o||"")},e.prototype.dtdAttType=function(o){return this.options.noValidation?o:this.assertLegalChar(""+o||"")},e.prototype.dtdAttDefault=function(o){return this.options.noValidation?o:this.assertLegalChar(""+o||"")},e.prototype.dtdEntityValue=function(o){return this.options.noValidation?o:this.assertLegalChar(""+o||"")},e.prototype.dtdNData=function(o){return this.options.noValidation?o:this.assertLegalChar(""+o||"")},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.assertLegalChar=function(o){var v;if(this.options.noValidation)return o;if("1.0"===this.options.version){if(v=o.match(/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+o+" at index "+v.index)}else if("1.1"===this.options.version&&(v=o.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)))throw new Error("Invalid character in string: "+o+" at index "+v.index);return o},e.prototype.assertLegalName=function(o){if(this.options.noValidation)return o;if(this.assertLegalChar(o),!o.match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw new Error("Invalid character in name");return o},e.prototype.textEscape=function(o){return this.options.noValidation?o:o.replace(this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},e.prototype.attEscape=function(o){return this.options.noValidation?o:o.replace(this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},e}()}).call(this)},474:function(G,P,a){(function(){var n,e,v={}.hasOwnProperty;n=a(2269),e=a(2182),G.exports=function(d){function u(b,C){if(u.__super__.constructor.call(this,b),null==C)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=n.Text,this.value=this.stringify.text(C)}return function(d,u){for(var b in u)v.call(u,b)&&(d[b]=u[b]);function C(){this.constructor=d}C.prototype=u.prototype,d.prototype=new C,d.__super__=u.prototype}(u,d),Object.defineProperty(u.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(u.prototype,"wholeText",{get:function(){var b,C,x;for(x="",C=this.previousSibling;C;)x=C.data+x,C=C.previousSibling;for(x+=this.data,b=this.nextSibling;b;)x+=b.data,b=b.nextSibling;return x}}),u.prototype.clone=function(){return Object.create(this)},u.prototype.toString=function(b){return this.options.writer.text(this,this.options.writer.filterOptions(b))},u.prototype.splitText=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.replaceWholeText=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},u}(e)}).call(this)},3576:function(G,P,a){(function(){var n,e,Z,le={}.hasOwnProperty;Z=a(3452).assign,n=a(2269),a(4789),a(9195),a(1361),a(2516),a(3352),a(9942),a(474),a(4666),a(4173),a(7274),a(2068),a(8349),a(3087),e=a(6316),G.exports=function(){function q(X){var K,U,me;for(K in X||(X={}),this.options=X,U=X.writer||{})le.call(U,K)&&(me=U[K],this["_"+K]=this[K],this[K]=me)}return q.prototype.filterOptions=function(X){var K,U,me,xe,ne,Ze,Oe,nt;return X||(X={}),X=Z({},this.options,X),(K={writer:this}).pretty=X.pretty||!1,K.allowEmpty=X.allowEmpty||!1,K.indent=null!=(U=X.indent)?U:"  ",K.newline=null!=(me=X.newline)?me:"\n",K.offset=null!=(xe=X.offset)?xe:0,K.dontPrettyTextNodes=null!=(ne=null!=(Ze=X.dontPrettyTextNodes)?Ze:X.dontprettytextnodes)?ne:0,K.spaceBeforeSlash=null!=(Oe=null!=(nt=X.spaceBeforeSlash)?nt:X.spacebeforeslash)?Oe:"",!0===K.spaceBeforeSlash&&(K.spaceBeforeSlash=" "),K.suppressPrettyCount=0,K.user={},K.state=e.None,K},q.prototype.indent=function(X,K,U){var me;return!K.pretty||K.suppressPrettyCount?"":K.pretty&&(me=(U||0)+K.offset+1)>0?new Array(me).join(K.indent):""},q.prototype.endline=function(X,K,U){return!K.pretty||K.suppressPrettyCount?"":K.newline},q.prototype.attribute=function(X,K,U){var me;return this.openAttribute(X,K,U),me=" "+X.name+'="'+X.value+'"',this.closeAttribute(X,K,U),me},q.prototype.cdata=function(X,K,U){var me;return this.openNode(X,K,U),K.state=e.OpenTag,me=this.indent(X,K,U)+"<![CDATA[",K.state=e.InsideTag,me+=X.value,K.state=e.CloseTag,me+="]]>"+this.endline(X,K,U),K.state=e.None,this.closeNode(X,K,U),me},q.prototype.comment=function(X,K,U){var me;return this.openNode(X,K,U),K.state=e.OpenTag,me=this.indent(X,K,U)+"\x3c!-- ",K.state=e.InsideTag,me+=X.value,K.state=e.CloseTag,me+=" --\x3e"+this.endline(X,K,U),K.state=e.None,this.closeNode(X,K,U),me},q.prototype.declaration=function(X,K,U){var me;return this.openNode(X,K,U),K.state=e.OpenTag,me=this.indent(X,K,U)+"<?xml",K.state=e.InsideTag,me+=' version="'+X.version+'"',null!=X.encoding&&(me+=' encoding="'+X.encoding+'"'),null!=X.standalone&&(me+=' standalone="'+X.standalone+'"'),K.state=e.CloseTag,me+=K.spaceBeforeSlash+"?>",me+=this.endline(X,K,U),K.state=e.None,this.closeNode(X,K,U),me},q.prototype.docType=function(X,K,U){var xe,ne,Ze,Oe;if(U||(U=0),this.openNode(X,K,U),K.state=e.OpenTag,Ze=this.indent(X,K,U),Ze+="<!DOCTYPE "+X.root().name,X.pubID&&X.sysID?Ze+=' PUBLIC "'+X.pubID+'" "'+X.sysID+'"':X.sysID&&(Ze+=' SYSTEM "'+X.sysID+'"'),X.children.length>0){for(Ze+=" [",Ze+=this.endline(X,K,U),K.state=e.InsideTag,xe=0,ne=(Oe=X.children).length;xe<ne;xe++)Ze+=this.writeChildNode(Oe[xe],K,U+1);K.state=e.CloseTag,Ze+="]"}return K.state=e.CloseTag,Ze+=K.spaceBeforeSlash+">",Ze+=this.endline(X,K,U),K.state=e.None,this.closeNode(X,K,U),Ze},q.prototype.element=function(X,K,U){var xe,ne,Ze,Oe,nt,qe,ct,ot,dt,jt,zt,ti,mi;for(ot in U||(U=0),dt=!1,jt="",this.openNode(X,K,U),K.state=e.OpenTag,jt+=this.indent(X,K,U)+"<"+X.name,zt=X.attribs)le.call(zt,ot)&&(jt+=this.attribute(zt[ot],K,U));if(Ze=0===(ne=X.children.length)?null:X.children[0],0===ne||X.children.every(function(Qt){return(Qt.type===n.Text||Qt.type===n.Raw)&&""===Qt.value}))K.allowEmpty?(jt+=">",K.state=e.CloseTag,jt+="</"+X.name+">"+this.endline(X,K,U)):(K.state=e.CloseTag,jt+=K.spaceBeforeSlash+"/>"+this.endline(X,K,U));else if(!K.pretty||1!==ne||Ze.type!==n.Text&&Ze.type!==n.Raw||null==Ze.value){if(K.dontPrettyTextNodes)for(Oe=0,qe=(ti=X.children).length;Oe<qe;Oe++)if(((xe=ti[Oe]).type===n.Text||xe.type===n.Raw)&&null!=xe.value){K.suppressPrettyCount++,dt=!0;break}for(jt+=">"+this.endline(X,K,U),K.state=e.InsideTag,nt=0,ct=(mi=X.children).length;nt<ct;nt++)jt+=this.writeChildNode(xe=mi[nt],K,U+1);K.state=e.CloseTag,jt+=this.indent(X,K,U)+"</"+X.name+">",dt&&K.suppressPrettyCount--,jt+=this.endline(X,K,U),K.state=e.None}else jt+=">",K.state=e.InsideTag,K.suppressPrettyCount++,dt=!0,jt+=this.writeChildNode(Ze,K,U+1),K.suppressPrettyCount--,dt=!1,K.state=e.CloseTag,jt+="</"+X.name+">"+this.endline(X,K,U);return this.closeNode(X,K,U),jt},q.prototype.writeChildNode=function(X,K,U){switch(X.type){case n.CData:return this.cdata(X,K,U);case n.Comment:return this.comment(X,K,U);case n.Element:return this.element(X,K,U);case n.Raw:return this.raw(X,K,U);case n.Text:return this.text(X,K,U);case n.ProcessingInstruction:return this.processingInstruction(X,K,U);case n.Dummy:return"";case n.Declaration:return this.declaration(X,K,U);case n.DocType:return this.docType(X,K,U);case n.AttributeDeclaration:return this.dtdAttList(X,K,U);case n.ElementDeclaration:return this.dtdElement(X,K,U);case n.EntityDeclaration:return this.dtdEntity(X,K,U);case n.NotationDeclaration:return this.dtdNotation(X,K,U);default:throw new Error("Unknown XML node type: "+X.constructor.name)}},q.prototype.processingInstruction=function(X,K,U){var me;return this.openNode(X,K,U),K.state=e.OpenTag,me=this.indent(X,K,U)+"<?",K.state=e.InsideTag,me+=X.target,X.value&&(me+=" "+X.value),K.state=e.CloseTag,me+=K.spaceBeforeSlash+"?>",me+=this.endline(X,K,U),K.state=e.None,this.closeNode(X,K,U),me},q.prototype.raw=function(X,K,U){var me;return this.openNode(X,K,U),K.state=e.OpenTag,me=this.indent(X,K,U),K.state=e.InsideTag,me+=X.value,K.state=e.CloseTag,me+=this.endline(X,K,U),K.state=e.None,this.closeNode(X,K,U),me},q.prototype.text=function(X,K,U){var me;return this.openNode(X,K,U),K.state=e.OpenTag,me=this.indent(X,K,U),K.state=e.InsideTag,me+=X.value,K.state=e.CloseTag,me+=this.endline(X,K,U),K.state=e.None,this.closeNode(X,K,U),me},q.prototype.dtdAttList=function(X,K,U){var me;return this.openNode(X,K,U),K.state=e.OpenTag,me=this.indent(X,K,U)+"<!ATTLIST",K.state=e.InsideTag,me+=" "+X.elementName+" "+X.attributeName+" "+X.attributeType,"#DEFAULT"!==X.defaultValueType&&(me+=" "+X.defaultValueType),X.defaultValue&&(me+=' "'+X.defaultValue+'"'),K.state=e.CloseTag,me+=K.spaceBeforeSlash+">"+this.endline(X,K,U),K.state=e.None,this.closeNode(X,K,U),me},q.prototype.dtdElement=function(X,K,U){var me;return this.openNode(X,K,U),K.state=e.OpenTag,me=this.indent(X,K,U)+"<!ELEMENT",K.state=e.InsideTag,me+=" "+X.name+" "+X.value,K.state=e.CloseTag,me+=K.spaceBeforeSlash+">"+this.endline(X,K,U),K.state=e.None,this.closeNode(X,K,U),me},q.prototype.dtdEntity=function(X,K,U){var me;return this.openNode(X,K,U),K.state=e.OpenTag,me=this.indent(X,K,U)+"<!ENTITY",K.state=e.InsideTag,X.pe&&(me+=" %"),me+=" "+X.name,X.value?me+=' "'+X.value+'"':(X.pubID&&X.sysID?me+=' PUBLIC "'+X.pubID+'" "'+X.sysID+'"':X.sysID&&(me+=' SYSTEM "'+X.sysID+'"'),X.nData&&(me+=" NDATA "+X.nData)),K.state=e.CloseTag,me+=K.spaceBeforeSlash+">"+this.endline(X,K,U),K.state=e.None,this.closeNode(X,K,U),me},q.prototype.dtdNotation=function(X,K,U){var me;return this.openNode(X,K,U),K.state=e.OpenTag,me=this.indent(X,K,U)+"<!NOTATION",K.state=e.InsideTag,me+=" "+X.name,X.pubID&&X.sysID?me+=' PUBLIC "'+X.pubID+'" "'+X.sysID+'"':X.pubID?me+=' PUBLIC "'+X.pubID+'"':X.sysID&&(me+=' SYSTEM "'+X.sysID+'"'),K.state=e.CloseTag,me+=K.spaceBeforeSlash+">"+this.endline(X,K,U),K.state=e.None,this.closeNode(X,K,U),me},q.prototype.openNode=function(X,K,U){},q.prototype.closeNode=function(X,K,U){},q.prototype.openAttribute=function(X,K,U){},q.prototype.closeAttribute=function(X,K,U){},q}()}).call(this)},7904:function(G,P,a){(function(){var n,e,o,l,v,d,u,b,C,x;x=a(3452),b=x.assign,C=x.isFunction,o=a(9906),l=a(519),v=a(1105),u=a(4354),d=a(7647),n=a(2269),e=a(6316),G.exports.create=function(w,g,f,S){var j,B;if(null==w)throw new Error("Root element needs a name.");return S=b({},g,f,S),B=(j=new l(S)).element(w),S.headless||(j.declaration(S),(null!=S.pubID||null!=S.sysID)&&j.dtd(S)),B},G.exports.begin=function(w,g,f){var S;return C(w)&&(g=(S=[w,g])[0],f=S[1],w={}),g?new v(w,g,f):new l(w)},G.exports.stringWriter=function(w){return new u(w)},G.exports.streamWriter=function(w,g){return new d(w,g)},G.exports.implementation=new o,G.exports.nodeType=n,G.exports.writerState=e}).call(this)},1067:G=>{"use strict";var l,P="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a=64,n={},e=0,o=0;function v(b){var C="";do{C=P[b%a]+C,b=Math.floor(b/a)}while(b>0);return C}function u(){var b=v(+new Date);return b!==l?(e=0,l=b):b+"."+v(e++)}for(;o<a;o++)n[P[o]]=o;u.encode=v,u.decode=function d(b){var C=0;for(o=0;o<b.length;o++)C=C*a+n[b.charAt(o)];return C},G.exports=u},7020:()=>{},2544:(G,P,a)=>{"use strict";a.d(P,{tV:()=>ot,TI:()=>Ae,IL:()=>H,xE:()=>dt,RB:()=>jt});var n=a(5861),e=a(4650),o=a(591),l=a(8929),v=a(6686),u=a(2268);const C=new class b extends u.v{}(class d extends v.o{constructor(He,Te){super(He,Te),this.scheduler=He,this.work=Te}schedule(He,Te=0){return Te>0?super.schedule(He,Te):(this.delay=Te,this.state=He,this.scheduler.flush(this),this)}execute(He,Te){return Te>0||this.closed?super.execute(He,Te):this._execute(He,Te)}requestAsyncId(He,Te,Be=0){return null!==Be&&Be>0||null===Be&&this.delay>0?super.requestAsyncId(He,Te,Be):He.flush(this)}});var x=a(2654),w=a(3489),g=a(9312);class j extends w.L{constructor(He,Te,Be=0){super(He),this.scheduler=Te,this.delay=Be}static dispatch(He){const{notification:Te,destination:Be}=He;Te.observe(Be),this.unsubscribe()}scheduleMessage(He){this.destination.add(this.scheduler.schedule(j.dispatch,this.delay,new B(He,this.destination)))}_next(He){this.scheduleMessage(g.P.createNext(He))}_error(He){this.scheduleMessage(g.P.createError(He)),this.unsubscribe()}_complete(){this.scheduleMessage(g.P.createComplete()),this.unsubscribe()}}class B{constructor(He,Te){this.notification=He,this.destination=Te}}var Z=a(5279),le=a(5283);class q extends l.xQ{constructor(He=Number.POSITIVE_INFINITY,Te=Number.POSITIVE_INFINITY,Be){super(),this.scheduler=Be,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=He<1?1:He,this._windowTime=Te<1?1:Te,Te===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(He){const Te=this._events;Te.push(He),Te.length>this._bufferSize&&Te.shift(),super.next(He)}nextTimeWindow(He){this._events.push(new X(this._getNow(),He)),this._trimBufferThenGetEvents(),super.next(He)}_subscribe(He){const Te=this._infiniteTimeWindow,Be=Te?this._events:this._trimBufferThenGetEvents(),mt=this.scheduler,Pe=Be.length;let Qe;if(this.closed)throw new Z.N;if(this.isStopped||this.hasError?Qe=x.w.EMPTY:(this.observers.push(He),Qe=new le.W(this,He)),mt&&He.add(He=new j(He,mt)),Te)for(let ut=0;ut<Pe&&!He.closed;ut++)He.next(Be[ut]);else for(let ut=0;ut<Pe&&!He.closed;ut++)He.next(Be[ut].value);return this.hasError?He.error(this.thrownError):this.isStopped&&He.complete(),Qe}_getNow(){return(this.scheduler||C).now()}_trimBufferThenGetEvents(){const He=this._getNow(),Te=this._bufferSize,Be=this._windowTime,mt=this._events,Pe=mt.length;let Qe=0;for(;Qe<Pe&&!(He-mt[Qe].time<Be);)Qe++;return Pe>Te&&(Qe=Math.max(Qe,Pe-Te)),Qe>0&&mt.splice(0,Qe),mt}}class X{constructor(He,Te){this.time=He,this.value=Te}}class K extends l.xQ{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(He){return this.hasError?(He.error(this.thrownError),x.w.EMPTY):this.hasCompleted&&this.hasNext?(He.next(this.value),He.complete(),x.w.EMPTY):super._subscribe(He)}next(He){this.hasCompleted||(this.value=He,this.hasNext=!0)}error(He){this.hasCompleted||super.error(He)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}var U=a(6498),xe=a(1307),ne=a(2198),Ze=a(2986),Oe=a(6895);class nt{constructor(){}loadScript(He,Te,Be,mt=null){if(typeof document<"u"&&!document.getElementById(He)){let Pe=document.createElement("script");Pe.async=!0,Pe.src=Te,Pe.onload=Be,mt||(mt=document.head),mt.appendChild(Pe)}}}class qe{}const ct={oneTapEnabled:!0};let ot=(()=>{class W extends nt{constructor(Te,Be){super(),this.clientId=Te,this.initOptions=Be,this.changeUser=new e.EventEmitter,this._socialUser=new o.X(null),this._accessToken=new o.X(null),this._receivedAccessToken=new e.EventEmitter,this.initOptions={...ct,...this.initOptions},this._socialUser.pipe((0,xe.T)(1)).subscribe(this.changeUser),this._accessToken.pipe((0,xe.T)(1)).subscribe(this._receivedAccessToken)}initialize(Te){return new Promise((Be,mt)=>{try{this.loadScript(W.PROVIDER_ID,"https://accounts.google.com/gsi/client",()=>{if(google.accounts.id.initialize({client_id:this.clientId,auto_select:Te,callback:({credential:Pe})=>{const Qe=this.createSocialUser(Pe);this._socialUser.next(Qe)},prompt_parent_id:this.initOptions?.prompt_parent_id,itp_support:this.initOptions.oneTapEnabled}),this.initOptions.oneTapEnabled&&this._socialUser.pipe((0,ne.h)(Pe=>null===Pe)).subscribe(()=>google.accounts.id.prompt(console.debug)),this.initOptions.scopes){const Pe=this.initOptions.scopes instanceof Array?this.initOptions.scopes.filter(Qe=>Qe).join(" "):this.initOptions.scopes;this._tokenClient=google.accounts.oauth2.initTokenClient({client_id:this.clientId,scope:Pe,prompt:this.initOptions.prompt,callback:Qe=>{Qe.error?this._accessToken.error({code:Qe.error,description:Qe.error_description,uri:Qe.error_uri}):this._accessToken.next(Qe.access_token)}})}Be()})}catch(Pe){mt(Pe)}})}getLoginStatus(){return new Promise((Te,Be)=>{this._socialUser.value?Te(this._socialUser.value):Be(`No user is currently logged in with ${W.PROVIDER_ID}`)})}refreshToken(){return new Promise((Te,Be)=>{google.accounts.id.revoke(this._socialUser.value.id,mt=>{mt.error?Be(mt.error):Te(this._socialUser.value)})})}getAccessToken(){return new Promise((Te,Be)=>{this._tokenClient?(this._tokenClient.requestAccessToken({hint:this._socialUser.value?.email}),this._receivedAccessToken.pipe((0,Ze.q)(1)).subscribe(Te)):Be(this._socialUser.value?"No token client was instantiated, you should specify some scopes.":"You should be logged-in first.")})}revokeAccessToken(){return new Promise((Te,Be)=>{this._tokenClient?this._accessToken.value?google.accounts.oauth2.revoke(this._accessToken.value,()=>{this._accessToken.next(null),Te()}):Be("No access token to revoke"):Be("No token client was instantiated, you should specify some scopes.")})}signIn(){return Promise.reject('You should not call this method directly for Google, use "<asl-google-signin-button>" wrapper or generate the button yourself with "google.accounts.id.renderButton()" (https://developers.google.com/identity/gsi/web/guides/display-button#javascript)')}signOut(){var Te=this;return(0,n.Z)(function*(){google.accounts.id.disableAutoSelect(),Te._socialUser.next(null)})()}createSocialUser(Te){const Be=new qe;Be.idToken=Te;const mt=this.decodeJwt(Te);return Be.id=mt.sub,Be.name=mt.name,Be.email=mt.email,Be.photoUrl=mt.picture,Be.firstName=mt.given_name,Be.lastName=mt.family_name,Be}decodeJwt(Te){const mt=Te.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),Pe=decodeURIComponent(window.atob(mt).split("").map(function(Qe){return"%"+("00"+Qe.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(Pe)}}return W.PROVIDER_ID="GOOGLE",W})(),dt=(()=>{class W{get authState(){return this._authState.asObservable()}get initState(){return this._initState.asObservable()}constructor(Te,Be,mt){this._ngZone=Be,this._injector=mt,this.providers=new Map,this.autoLogin=!1,this._user=null,this._authState=new q(1),this.initialized=!1,this._initState=new K,Te instanceof Promise?Te.then(Pe=>{this.initialize(Pe)}):this.initialize(Te)}initialize(Te){this.autoLogin=void 0!==Te.autoLogin&&Te.autoLogin;const{onError:Be=console.error}=Te;Te.providers.forEach(mt=>{this.providers.set(mt.id,"prototype"in mt.provider?this._injector.get(mt.provider):mt.provider)}),Promise.all(Array.from(this.providers.values()).map(mt=>mt.initialize(this.autoLogin))).then(()=>{if(this.autoLogin){const mt=[];let Pe=!1;this.providers.forEach((Qe,ut)=>{const te=Qe.getLoginStatus();mt.push(te),te.then(k=>{this.setUser(k,ut),Pe=!0}).catch(console.debug)}),Promise.all(mt).catch(()=>{Pe||(this._user=null,this._authState.next(null))})}this.providers.forEach((mt,Pe)=>{(function me(W){return!!W&&(W instanceof U.y||"function"==typeof W.lift&&"function"==typeof W.subscribe)})(mt.changeUser)&&mt.changeUser.subscribe(Qe=>{this._ngZone.run(()=>{this.setUser(Qe,Pe)})})})}).catch(mt=>{Be(mt)}).finally(()=>{this.initialized=!0,this._initState.next(this.initialized),this._initState.complete()})}getAccessToken(Te){var Be=this;return(0,n.Z)(function*(){const mt=Be.providers.get(Te);if(!Be.initialized)throw W.ERR_NOT_INITIALIZED;if(!mt)throw W.ERR_LOGIN_PROVIDER_NOT_FOUND;if(!(mt instanceof ot))throw W.ERR_NOT_SUPPORTED_FOR_ACCESS_TOKEN;return yield mt.getAccessToken()})()}refreshAuthToken(Te){return new Promise((Be,mt)=>{if(this.initialized){const Pe=this.providers.get(Te);Pe?"function"!=typeof Pe.refreshToken?mt(W.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN):Pe.refreshToken().then(Qe=>{this.setUser(Qe,Te),Be()}).catch(Qe=>{mt(Qe)}):mt(W.ERR_LOGIN_PROVIDER_NOT_FOUND)}else mt(W.ERR_NOT_INITIALIZED)})}refreshAccessToken(Te){return new Promise((Be,mt)=>{if(this.initialized)if(Te!==ot.PROVIDER_ID)mt(W.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN);else{const Pe=this.providers.get(Te);Pe instanceof ot?Pe.revokeAccessToken().then(Be).catch(mt):mt(W.ERR_LOGIN_PROVIDER_NOT_FOUND)}else mt(W.ERR_NOT_INITIALIZED)})}signIn(Te,Be){return new Promise((mt,Pe)=>{if(this.initialized){let Qe=this.providers.get(Te);Qe?Qe.signIn(Be).then(ut=>{this.setUser(ut,Te),mt(ut)}).catch(ut=>{Pe(ut)}):Pe(W.ERR_LOGIN_PROVIDER_NOT_FOUND)}else Pe(W.ERR_NOT_INITIALIZED)})}signOut(Te=!1){return new Promise((Be,mt)=>{if(this.initialized)if(this._user){let Qe=this.providers.get(this._user.provider);Qe?Qe.signOut(Te).then(()=>{Be(),this.setUser(null)}).catch(ut=>{mt(ut)}):mt(W.ERR_LOGIN_PROVIDER_NOT_FOUND)}else mt(W.ERR_NOT_LOGGED_IN);else mt(W.ERR_NOT_INITIALIZED)})}setUser(Te,Be){Te&&Be&&(Te.provider=Be),this._user=Te,this._authState.next(Te)}}return W.ERR_LOGIN_PROVIDER_NOT_FOUND="Login provider not found",W.ERR_NOT_LOGGED_IN="Not logged in",W.ERR_NOT_INITIALIZED="Login providers not ready yet. Are there errors on your console?",W.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN="Chosen login provider is not supported for refreshing a token",W.ERR_NOT_SUPPORTED_FOR_ACCESS_TOKEN="Chosen login provider is not supported for getting an access token",W.\u0275fac=function(Te){return new(Te||W)(e.\u0275\u0275inject("SocialAuthServiceConfig"),e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(e.Injector))},W.\u0275prov=e.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})(),jt=(()=>{class W{static initialize(Te){return{ngModule:W,providers:[dt,{provide:"SocialAuthServiceConfig",useValue:Te}]}}constructor(Te){if(Te)throw new Error("SocialLoginModule is already loaded. Import it in the AppModule only")}}return W.\u0275fac=function(Te){return new(Te||W)(e.\u0275\u0275inject(W,12))},W.\u0275mod=e.\u0275\u0275defineNgModule({type:W}),W.\u0275inj=e.\u0275\u0275defineInjector({providers:[dt],imports:[Oe.CommonModule]}),W})(),Ae=(()=>{class W{constructor(Te,Be){this.type="icon",this.size="medium",this.text="signin_with",this.shape="rectangular",this.theme="outline",this.logo_alignment="left",this.width="",this.locale="",Be.initState.pipe((0,Ze.q)(1)).subscribe(()=>{Promise.resolve(this.width).then(mt=>{mt>"400"||mt<"200"&&""!=mt?Promise.reject("Please note .. max-width 400 , min-width 200 (https://developers.google.com/identity/gsi/web/tools/configurator)"):google.accounts.id.renderButton(Te.nativeElement,{type:this.type,size:this.size,text:this.text,width:this.width,shape:this.shape,theme:this.theme,logo_alignment:this.logo_alignment,locale:this.locale})})})}}return W.\u0275fac=function(Te){return new(Te||W)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(dt))},W.\u0275dir=e.\u0275\u0275defineDirective({type:W,selectors:[["asl-google-signin-button"]],inputs:{type:"type",size:"size",text:"text",shape:"shape",theme:"theme",logo_alignment:"logo_alignment",width:"width",locale:"locale"}}),W})(),H=(()=>{class W{}return W.\u0275fac=function(Te){return new(Te||W)},W.\u0275mod=e.\u0275\u0275defineNgModule({type:W}),W.\u0275inj=e.\u0275\u0275defineInjector({}),W})()},7340:(G,P,a)=>{"use strict";a.d(P,{IO:()=>j,LC:()=>e,SB:()=>C,X$:()=>l,ZE:()=>q,ZN:()=>le,_j:()=>n,eR:()=>w,jt:()=>v,k1:()=>X,l3:()=>o,oB:()=>b,pV:()=>f,ru:()=>d,vP:()=>u});class n{}class e{}const o="*";function l(K,U){return{type:7,name:K,definitions:U,options:{}}}function v(K,U=null){return{type:4,styles:U,timings:K}}function d(K,U=null){return{type:3,steps:K,options:U}}function u(K,U=null){return{type:2,steps:K,options:U}}function b(K){return{type:6,styles:K,offset:null}}function C(K,U,me){return{type:0,name:K,styles:U,options:me}}function w(K,U,me=null){return{type:1,expr:K,animation:U,options:me}}function f(K=null){return{type:9,options:K}}function j(K,U,me=null){return{type:11,selector:K,animation:U,options:me}}function Z(K){Promise.resolve().then(K)}class le{constructor(U=0,me=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=U+me}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(U=>U()),this._onDoneFns=[])}onStart(U){this._originalOnStartFns.push(U),this._onStartFns.push(U)}onDone(U){this._originalOnDoneFns.push(U),this._onDoneFns.push(U)}onDestroy(U){this._onDestroyFns.push(U)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Z(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(U=>U()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(U=>U()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(U){this._position=this.totalTime?U*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(U){const me="start"==U?this._onStartFns:this._onDoneFns;me.forEach(xe=>xe()),me.length=0}}class q{constructor(U){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=U;let me=0,xe=0,ne=0;const Ze=this.players.length;0==Ze?Z(()=>this._onFinish()):this.players.forEach(Oe=>{Oe.onDone(()=>{++me==Ze&&this._onFinish()}),Oe.onDestroy(()=>{++xe==Ze&&this._onDestroy()}),Oe.onStart(()=>{++ne==Ze&&this._onStart()})}),this.totalTime=this.players.reduce((Oe,nt)=>Math.max(Oe,nt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(U=>U()),this._onDoneFns=[])}init(){this.players.forEach(U=>U.init())}onStart(U){this._onStartFns.push(U)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(U=>U()),this._onStartFns=[])}onDone(U){this._onDoneFns.push(U)}onDestroy(U){this._onDestroyFns.push(U)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(U=>U.play())}pause(){this.players.forEach(U=>U.pause())}restart(){this.players.forEach(U=>U.restart())}finish(){this._onFinish(),this.players.forEach(U=>U.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(U=>U.destroy()),this._onDestroyFns.forEach(U=>U()),this._onDestroyFns=[])}reset(){this.players.forEach(U=>U.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(U){const me=U*this.totalTime;this.players.forEach(xe=>{const ne=xe.totalTime?Math.min(1,me/xe.totalTime):1;xe.setPosition(ne)})}getPosition(){const U=this.players.reduce((me,xe)=>null===me||xe.totalTime>me.totalTime?xe:me,null);return null!=U?U.getPosition():0}beforeDestroy(){this.players.forEach(U=>{U.beforeDestroy&&U.beforeDestroy()})}triggerCallback(U){const me="start"==U?this._onStartFns:this._onDoneFns;me.forEach(xe=>xe()),me.length=0}}const X="!"},2687:(G,P,a)=>{"use strict";a.d(P,{Em:()=>jt,Kd:()=>Rt,X6:()=>et,ic:()=>ti,qV:()=>Pe,qm:()=>pi,rt:()=>Bi,s1:()=>dt,tE:()=>vt,yG:()=>Ue});var n=a(6895),e=a(4650),o=a(3353),l=a(8929),v=a(2654),d=a(591),u=a(1086),b=a(9521),C=a(2994),x=a(13),w=a(2198),g=a(4850),f=a(2986),S=a(1307),j=a(5778),B=a(7625),Z=a(1281),le=a(9643),q=a(2289);class ot{constructor(ue){this._items=ue,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new l.xQ,this._typeaheadSubscription=v.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=re=>re.disabled,this._pressedLetters=[],this.tabOut=new l.xQ,this.change=new l.xQ,ue instanceof e.QueryList&&(this._itemChangesSubscription=ue.changes.subscribe(re=>{if(this._activeItem){const Re=re.toArray().indexOf(this._activeItem);Re>-1&&Re!==this._activeItemIndex&&(this._activeItemIndex=Re)}}))}skipPredicate(ue){return this._skipPredicateFn=ue,this}withWrap(ue=!0){return this._wrap=ue,this}withVerticalOrientation(ue=!0){return this._vertical=ue,this}withHorizontalOrientation(ue){return this._horizontal=ue,this}withAllowedModifierKeys(ue){return this._allowedModifierKeys=ue,this}withTypeAhead(ue=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,C.b)(re=>this._pressedLetters.push(re)),(0,x.b)(ue),(0,w.h)(()=>this._pressedLetters.length>0),(0,g.U)(()=>this._pressedLetters.join(""))).subscribe(re=>{const Ee=this._getItemsArray();for(let Re=1;Re<Ee.length+1;Re++){const We=(this._activeItemIndex+Re)%Ee.length,xt=Ee[We];if(!this._skipPredicateFn(xt)&&0===xt.getLabel().toUpperCase().trim().indexOf(re)){this.setActiveItem(We);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(ue=!0){return this._homeAndEnd=ue,this}withPageUpDown(ue=!0,re=10){return this._pageUpAndDown={enabled:ue,delta:re},this}setActiveItem(ue){const re=this._activeItem;this.updateActiveItem(ue),this._activeItem!==re&&this.change.next(this._activeItemIndex)}onKeydown(ue){const re=ue.keyCode,Re=["altKey","ctrlKey","metaKey","shiftKey"].every(We=>!ue[We]||this._allowedModifierKeys.indexOf(We)>-1);switch(re){case b.Mf:return void this.tabOut.next();case b.JH:if(this._vertical&&Re){this.setNextItemActive();break}return;case b.LH:if(this._vertical&&Re){this.setPreviousItemActive();break}return;case b.SV:if(this._horizontal&&Re){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case b.oh:if(this._horizontal&&Re){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case b.Sd:if(this._homeAndEnd&&Re){this.setFirstItemActive();break}return;case b.uR:if(this._homeAndEnd&&Re){this.setLastItemActive();break}return;case b.Ku:if(this._pageUpAndDown.enabled&&Re){const We=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(We>0?We:0,1);break}return;case b.VM:if(this._pageUpAndDown.enabled&&Re){const We=this._activeItemIndex+this._pageUpAndDown.delta,xt=this._getItemsArray().length;this._setActiveItemByIndex(We<xt?We:xt-1,-1);break}return;default:return void((Re||(0,b.Vb)(ue,"shiftKey"))&&(ue.key&&1===ue.key.length?this._letterKeyStream.next(ue.key.toLocaleUpperCase()):(re>=b.A&&re<=b.Z||re>=b.xE&&re<=b.aO)&&this._letterKeyStream.next(String.fromCharCode(re))))}this._pressedLetters=[],ue.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(ue){const re=this._getItemsArray(),Ee="number"==typeof ue?ue:re.indexOf(ue);this._activeItem=re[Ee]??null,this._activeItemIndex=Ee}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(ue){this._wrap?this._setActiveInWrapMode(ue):this._setActiveInDefaultMode(ue)}_setActiveInWrapMode(ue){const re=this._getItemsArray();for(let Ee=1;Ee<=re.length;Ee++){const Re=(this._activeItemIndex+ue*Ee+re.length)%re.length;if(!this._skipPredicateFn(re[Re]))return void this.setActiveItem(Re)}}_setActiveInDefaultMode(ue){this._setActiveItemByIndex(this._activeItemIndex+ue,ue)}_setActiveItemByIndex(ue,re){const Ee=this._getItemsArray();if(Ee[ue]){for(;this._skipPredicateFn(Ee[ue]);)if(!Ee[ue+=re])return;this.setActiveItem(ue)}}_getItemsArray(){return this._items instanceof e.QueryList?this._items.toArray():this._items}}class dt extends ot{setActiveItem(ue){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(ue),this.activeItem&&this.activeItem.setActiveStyles()}}class jt extends ot{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(ue){return this._origin=ue,this}setActiveItem(ue){super.setActiveItem(ue),this.activeItem&&this.activeItem.focus(this._origin)}}let ti=(()=>{class ze{constructor(re){this._platform=re}isDisabled(re){return re.hasAttribute("disabled")}isVisible(re){return function Qt(ze){return!!(ze.offsetWidth||ze.offsetHeight||"function"==typeof ze.getClientRects&&ze.getClientRects().length)}(re)&&"visible"===getComputedStyle(re).visibility}isTabbable(re){if(!this._platform.isBrowser)return!1;const Ee=function mi(ze){try{return ze.frameElement}catch{return null}}(function Be(ze){return ze.ownerDocument&&ze.ownerDocument.defaultView||window}(re));if(Ee&&(-1===W(Ee)||!this.isVisible(Ee)))return!1;let Re=re.nodeName.toLowerCase(),We=W(re);return re.hasAttribute("contenteditable")?-1!==We:!("iframe"===Re||"object"===Re||this._platform.WEBKIT&&this._platform.IOS&&!function He(ze){let ue=ze.nodeName.toLowerCase(),re="input"===ue&&ze.type;return"text"===re||"password"===re||"select"===ue||"textarea"===ue}(re))&&("audio"===Re?!!re.hasAttribute("controls")&&-1!==We:"video"===Re?-1!==We&&(null!==We||this._platform.FIREFOX||re.hasAttribute("controls")):re.tabIndex>=0)}isFocusable(re,Ee){return function Te(ze){return!function lt(ze){return function Fe(ze){return"input"==ze.nodeName.toLowerCase()}(ze)&&"hidden"==ze.type}(ze)&&(function Jt(ze){let ue=ze.nodeName.toLowerCase();return"input"===ue||"select"===ue||"button"===ue||"textarea"===ue}(ze)||function _t(ze){return function Ae(ze){return"a"==ze.nodeName.toLowerCase()}(ze)&&ze.hasAttribute("href")}(ze)||ze.hasAttribute("contenteditable")||H(ze))}(re)&&!this.isDisabled(re)&&(Ee?.ignoreVisibility||this.isVisible(re))}}return ze.\u0275fac=function(re){return new(re||ze)(e.\u0275\u0275inject(o.t4))},ze.\u0275prov=e.\u0275\u0275defineInjectable({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();function H(ze){if(!ze.hasAttribute("tabindex")||void 0===ze.tabIndex)return!1;let ue=ze.getAttribute("tabindex");return!(!ue||isNaN(parseInt(ue,10)))}function W(ze){if(!H(ze))return null;const ue=parseInt(ze.getAttribute("tabindex")||"",10);return isNaN(ue)?-1:ue}class mt{get enabled(){return this._enabled}set enabled(ue){this._enabled=ue,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ue,this._startAnchor),this._toggleAnchorTabIndex(ue,this._endAnchor))}constructor(ue,re,Ee,Re,We=!1){this._element=ue,this._checker=re,this._ngZone=Ee,this._document=Re,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,We||this.attachAnchors()}destroy(){const ue=this._startAnchor,re=this._endAnchor;ue&&(ue.removeEventListener("focus",this.startAnchorListener),ue.remove()),re&&(re.removeEventListener("focus",this.endAnchorListener),re.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(ue){return new Promise(re=>{this._executeOnStable(()=>re(this.focusInitialElement(ue)))})}focusFirstTabbableElementWhenReady(ue){return new Promise(re=>{this._executeOnStable(()=>re(this.focusFirstTabbableElement(ue)))})}focusLastTabbableElementWhenReady(ue){return new Promise(re=>{this._executeOnStable(()=>re(this.focusLastTabbableElement(ue)))})}_getRegionBoundary(ue){const re=this._element.querySelectorAll(`[cdk-focus-region-${ue}], [cdkFocusRegion${ue}], [cdk-focus-${ue}]`);return"start"==ue?re.length?re[0]:this._getFirstTabbableElement(this._element):re.length?re[re.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ue){const re=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(re){if(!this._checker.isFocusable(re)){const Ee=this._getFirstTabbableElement(re);return Ee?.focus(ue),!!Ee}return re.focus(ue),!0}return this.focusFirstTabbableElement(ue)}focusFirstTabbableElement(ue){const re=this._getRegionBoundary("start");return re&&re.focus(ue),!!re}focusLastTabbableElement(ue){const re=this._getRegionBoundary("end");return re&&re.focus(ue),!!re}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ue){if(this._checker.isFocusable(ue)&&this._checker.isTabbable(ue))return ue;const re=ue.children;for(let Ee=0;Ee<re.length;Ee++){const Re=re[Ee].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(re[Ee]):null;if(Re)return Re}return null}_getLastTabbableElement(ue){if(this._checker.isFocusable(ue)&&this._checker.isTabbable(ue))return ue;const re=ue.children;for(let Ee=re.length-1;Ee>=0;Ee--){const Re=re[Ee].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(re[Ee]):null;if(Re)return Re}return null}_createAnchor(){const ue=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ue),ue.classList.add("cdk-visually-hidden"),ue.classList.add("cdk-focus-trap-anchor"),ue.setAttribute("aria-hidden","true"),ue}_toggleAnchorTabIndex(ue,re){ue?re.setAttribute("tabindex","0"):re.removeAttribute("tabindex")}toggleAnchors(ue){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ue,this._startAnchor),this._toggleAnchorTabIndex(ue,this._endAnchor))}_executeOnStable(ue){this._ngZone.isStable?ue():this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(ue)}}let Pe=(()=>{class ze{constructor(re,Ee,Re){this._checker=re,this._ngZone=Ee,this._document=Re}create(re,Ee=!1){return new mt(re,this._checker,this._ngZone,this._document,Ee)}}return ze.\u0275fac=function(re){return new(re||ze)(e.\u0275\u0275inject(ti),e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(n.DOCUMENT))},ze.\u0275prov=e.\u0275\u0275defineInjectable({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();function et(ze){return 0===ze.buttons||0===ze.offsetX&&0===ze.offsetY}function Ue(ze){const ue=ze.touches&&ze.touches[0]||ze.changedTouches&&ze.changedTouches[0];return!(!ue||-1!==ue.identifier||null!=ue.radiusX&&1!==ue.radiusX||null!=ue.radiusY&&1!==ue.radiusY)}const ge=new e.InjectionToken("cdk-input-modality-detector-options"),ke={ignoreKeys:[b.zL,b.jx,b.b2,b.MW,b.JU]},Pt=(0,o.i$)({passive:!0,capture:!0});let Bt=(()=>{class ze{get mostRecentModality(){return this._modality.value}constructor(re,Ee,Re,We){this._platform=re,this._mostRecentTarget=null,this._modality=new d.X(null),this._lastTouchMs=0,this._onKeydown=xt=>{this._options?.ignoreKeys?.some(Ht=>Ht===xt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,o.sA)(xt))},this._onMousedown=xt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(et(xt)?"keyboard":"mouse"),this._mostRecentTarget=(0,o.sA)(xt))},this._onTouchstart=xt=>{Ue(xt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,o.sA)(xt))},this._options={...ke,...We},this.modalityDetected=this._modality.pipe((0,S.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,j.x)()),re.isBrowser&&Ee.runOutsideAngular(()=>{Re.addEventListener("keydown",this._onKeydown,Pt),Re.addEventListener("mousedown",this._onMousedown,Pt),Re.addEventListener("touchstart",this._onTouchstart,Pt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Pt),document.removeEventListener("mousedown",this._onMousedown,Pt),document.removeEventListener("touchstart",this._onTouchstart,Pt))}}return ze.\u0275fac=function(re){return new(re||ze)(e.\u0275\u0275inject(o.t4),e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(n.DOCUMENT),e.\u0275\u0275inject(ge,8))},ze.\u0275prov=e.\u0275\u0275defineInjectable({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const st=new e.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function Nt(){return null}}),at=new e.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Lt=0,Rt=(()=>{class ze{constructor(re,Ee,Re,We){this._ngZone=Ee,this._defaultOptions=We,this._document=Re,this._liveElement=re||this._createLiveElement()}announce(re,...Ee){const Re=this._defaultOptions;let We,xt;return 1===Ee.length&&"number"==typeof Ee[0]?xt=Ee[0]:[We,xt]=Ee,this.clear(),clearTimeout(this._previousTimeout),We||(We=Re&&Re.politeness?Re.politeness:"polite"),null==xt&&Re&&(xt=Re.duration),this._liveElement.setAttribute("aria-live",We),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Ht=>this._currentResolve=Ht)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=re,"number"==typeof xt&&(this._previousTimeout=setTimeout(()=>this.clear(),xt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const re="cdk-live-announcer-element",Ee=this._document.getElementsByClassName(re),Re=this._document.createElement("div");for(let We=0;We<Ee.length;We++)Ee[We].remove();return Re.classList.add(re),Re.classList.add("cdk-visually-hidden"),Re.setAttribute("aria-atomic","true"),Re.setAttribute("aria-live","polite"),Re.id="cdk-live-announcer-"+Lt++,this._document.body.appendChild(Re),Re}_exposeAnnouncerToModals(re){const Ee=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let Re=0;Re<Ee.length;Re++){const We=Ee[Re],xt=We.getAttribute("aria-owns");xt?-1===xt.indexOf(re)&&We.setAttribute("aria-owns",xt+" "+re):We.setAttribute("aria-owns",re)}}}return ze.\u0275fac=function(re){return new(re||ze)(e.\u0275\u0275inject(st,8),e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(n.DOCUMENT),e.\u0275\u0275inject(at,8))},ze.\u0275prov=e.\u0275\u0275defineInjectable({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const Xt=new e.InjectionToken("cdk-focus-monitor-default-options"),ui=(0,o.i$)({passive:!0,capture:!0});let vt=(()=>{class ze{constructor(re,Ee,Re,We,xt){this._ngZone=re,this._platform=Ee,this._inputModalityDetector=Re,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new l.xQ,this._rootNodeFocusAndBlurListener=Ht=>{for(let Mt=(0,o.sA)(Ht);Mt;Mt=Mt.parentElement)"focus"===Ht.type?this._onFocus(Ht,Mt):this._onBlur(Ht,Mt)},this._document=We,this._detectionMode=xt?.detectionMode||0}monitor(re,Ee=!1){const Re=(0,Z.fI)(re);if(!this._platform.isBrowser||1!==Re.nodeType)return(0,u.of)(null);const We=(0,o.kV)(Re)||this._getDocument(),xt=this._elementInfo.get(Re);if(xt)return Ee&&(xt.checkChildren=!0),xt.subject;const Ht={checkChildren:Ee,subject:new l.xQ,rootNode:We};return this._elementInfo.set(Re,Ht),this._registerGlobalListeners(Ht),Ht.subject}stopMonitoring(re){const Ee=(0,Z.fI)(re),Re=this._elementInfo.get(Ee);Re&&(Re.subject.complete(),this._setClasses(Ee),this._elementInfo.delete(Ee),this._removeGlobalListeners(Re))}focusVia(re,Ee,Re){const We=(0,Z.fI)(re);We===this._getDocument().activeElement?this._getClosestElementsInfo(We).forEach(([Ht,wt])=>this._originChanged(Ht,Ee,wt)):(this._setOrigin(Ee),"function"==typeof We.focus&&We.focus(Re))}ngOnDestroy(){this._elementInfo.forEach((re,Ee)=>this.stopMonitoring(Ee))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(re){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(re)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:re&&this._isLastInteractionFromInputLabel(re)?"mouse":"program"}_shouldBeAttributedToTouch(re){return 1===this._detectionMode||!!re?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(re,Ee){re.classList.toggle("cdk-focused",!!Ee),re.classList.toggle("cdk-touch-focused","touch"===Ee),re.classList.toggle("cdk-keyboard-focused","keyboard"===Ee),re.classList.toggle("cdk-mouse-focused","mouse"===Ee),re.classList.toggle("cdk-program-focused","program"===Ee)}_setOrigin(re,Ee=!1){this._ngZone.runOutsideAngular(()=>{this._origin=re,this._originFromTouchInteraction="touch"===re&&Ee,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(re,Ee){const Re=this._elementInfo.get(Ee),We=(0,o.sA)(re);!Re||!Re.checkChildren&&Ee!==We||this._originChanged(Ee,this._getFocusOrigin(We),Re)}_onBlur(re,Ee){const Re=this._elementInfo.get(Ee);!Re||Re.checkChildren&&re.relatedTarget instanceof Node&&Ee.contains(re.relatedTarget)||(this._setClasses(Ee),this._emitOrigin(Re,null))}_emitOrigin(re,Ee){re.subject.observers.length&&this._ngZone.run(()=>re.subject.next(Ee))}_registerGlobalListeners(re){if(!this._platform.isBrowser)return;const Ee=re.rootNode,Re=this._rootNodeFocusListenerCount.get(Ee)||0;Re||this._ngZone.runOutsideAngular(()=>{Ee.addEventListener("focus",this._rootNodeFocusAndBlurListener,ui),Ee.addEventListener("blur",this._rootNodeFocusAndBlurListener,ui)}),this._rootNodeFocusListenerCount.set(Ee,Re+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,B.R)(this._stopInputModalityDetector)).subscribe(We=>{this._setOrigin(We,!0)}))}_removeGlobalListeners(re){const Ee=re.rootNode;if(this._rootNodeFocusListenerCount.has(Ee)){const Re=this._rootNodeFocusListenerCount.get(Ee);Re>1?this._rootNodeFocusListenerCount.set(Ee,Re-1):(Ee.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ui),Ee.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ui),this._rootNodeFocusListenerCount.delete(Ee))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(re,Ee,Re){this._setClasses(re,Ee),this._emitOrigin(Re,Ee),this._lastFocusOrigin=Ee}_getClosestElementsInfo(re){const Ee=[];return this._elementInfo.forEach((Re,We)=>{(We===re||Re.checkChildren&&We.contains(re))&&Ee.push([We,Re])}),Ee}_isLastInteractionFromInputLabel(re){const{_mostRecentTarget:Ee,mostRecentModality:Re}=this._inputModalityDetector;if("mouse"!==Re||!Ee||Ee===re||"INPUT"!==re.nodeName&&"TEXTAREA"!==re.nodeName||re.disabled)return!1;const We=re.labels;if(We)for(let xt=0;xt<We.length;xt++)if(We[xt].contains(Ee))return!0;return!1}}return ze.\u0275fac=function(re){return new(re||ze)(e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(o.t4),e.\u0275\u0275inject(Bt),e.\u0275\u0275inject(n.DOCUMENT,8),e.\u0275\u0275inject(Xt,8))},ze.\u0275prov=e.\u0275\u0275defineInjectable({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const Zt="cdk-high-contrast-black-on-white",Ci="cdk-high-contrast-white-on-black",_i="cdk-high-contrast-active";let pi=(()=>{class ze{constructor(re,Ee){this._platform=re,this._document=Ee,this._breakpointSubscription=(0,e.inject)(q.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const re=this._document.createElement("div");re.style.backgroundColor="rgb(1,2,3)",re.style.position="absolute",this._document.body.appendChild(re);const Ee=this._document.defaultView||window,Re=Ee&&Ee.getComputedStyle?Ee.getComputedStyle(re):null,We=(Re&&Re.backgroundColor||"").replace(/ /g,"");switch(re.remove(),We){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const re=this._document.body.classList;re.remove(_i,Zt,Ci),this._hasCheckedHighContrastMode=!0;const Ee=this.getHighContrastMode();1===Ee?re.add(_i,Zt):2===Ee&&re.add(_i,Ci)}}}return ze.\u0275fac=function(re){return new(re||ze)(e.\u0275\u0275inject(o.t4),e.\u0275\u0275inject(n.DOCUMENT))},ze.\u0275prov=e.\u0275\u0275defineInjectable({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),Bi=(()=>{class ze{constructor(re){re._applyBodyHighContrastModeCssClasses()}}return ze.\u0275fac=function(re){return new(re||ze)(e.\u0275\u0275inject(pi))},ze.\u0275mod=e.\u0275\u0275defineNgModule({type:ze}),ze.\u0275inj=e.\u0275\u0275defineInjector({imports:[le.Q8]}),ze})()},445:(G,P,a)=>{"use strict";a.d(P,{Is:()=>u,vT:()=>C});var n=a(4650),e=a(6895);const o=new n.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function l(){return(0,n.inject)(e.DOCUMENT)}}),v=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let u=(()=>{class x{constructor(g){this.value="ltr",this.change=new n.EventEmitter,g&&(this.value=function d(x){const w=x?.toLowerCase()||"";return"auto"===w&&typeof navigator<"u"&&navigator?.language?v.test(navigator.language)?"rtl":"ltr":"rtl"===w?"rtl":"ltr"}((g.body?g.body.dir:null)||(g.documentElement?g.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return x.\u0275fac=function(g){return new(g||x)(n.\u0275\u0275inject(o,8))},x.\u0275prov=n.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),C=(()=>{class x{}return x.\u0275fac=function(g){return new(g||x)},x.\u0275mod=n.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=n.\u0275\u0275defineInjector({}),x})()},1281:(G,P,a)=>{"use strict";a.d(P,{Eq:()=>v,HM:()=>d,Ig:()=>e,fI:()=>u,su:()=>o});var n=a(4650);function e(C){return null!=C&&"false"!=`${C}`}function o(C,x=0){return function l(C){return!isNaN(parseFloat(C))&&!isNaN(Number(C))}(C)?Number(C):x}function v(C){return Array.isArray(C)?C:[C]}function d(C){return null==C?"":"string"==typeof C?C:`${C}px`}function u(C){return C instanceof n.ElementRef?C.nativeElement:C}},5017:(G,P,a)=>{"use strict";a.d(P,{A8:()=>x,Ov:()=>b});var n=a(8929),e=a(4650);class b{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(f=!1,S,j=!0,B){this._multiple=f,this._emitChanges=j,this.compareWith=B,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new n.xQ,S&&S.length&&(f?S.forEach(Z=>this._markSelected(Z)):this._markSelected(S[0]),this._selectedToEmit.length=0)}select(...f){this._verifyValueAssignment(f),f.forEach(j=>this._markSelected(j));const S=this._hasQueuedChanges();return this._emitChangeEvent(),S}deselect(...f){this._verifyValueAssignment(f),f.forEach(j=>this._unmarkSelected(j));const S=this._hasQueuedChanges();return this._emitChangeEvent(),S}setSelection(...f){this._verifyValueAssignment(f);const S=this.selected,j=new Set(f);f.forEach(Z=>this._markSelected(Z)),S.filter(Z=>!j.has(Z)).forEach(Z=>this._unmarkSelected(Z));const B=this._hasQueuedChanges();return this._emitChangeEvent(),B}toggle(f){return this.isSelected(f)?this.deselect(f):this.select(f)}clear(f=!0){this._unmarkAll();const S=this._hasQueuedChanges();return f&&this._emitChangeEvent(),S}isSelected(f){return this._selection.has(this._getConcreteValue(f))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(f){this._multiple&&this.selected&&this._selected.sort(f)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(f){f=this._getConcreteValue(f),this.isSelected(f)||(this._multiple||this._unmarkAll(),this.isSelected(f)||this._selection.add(f),this._emitChanges&&this._selectedToEmit.push(f))}_unmarkSelected(f){f=this._getConcreteValue(f),this.isSelected(f)&&(this._selection.delete(f),this._emitChanges&&this._deselectedToEmit.push(f))}_unmarkAll(){this.isEmpty()||this._selection.forEach(f=>this._unmarkSelected(f))}_verifyValueAssignment(f){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(f){if(this.compareWith){for(let S of this._selection)if(this.compareWith(f,S))return S;return f}return f}}let x=(()=>{class g{constructor(){this._listeners=[]}notify(S,j){for(let B of this._listeners)B(S,j)}listen(S){return this._listeners.push(S),()=>{this._listeners=this._listeners.filter(j=>S!==j)}}ngOnDestroy(){this._listeners=[]}}return g.\u0275fac=function(S){return new(S||g)},g.\u0275prov=e.\u0275\u0275defineInjectable({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},9521:(G,P,a)=>{"use strict";a.d(P,{A:()=>lt,JH:()=>X,JU:()=>d,K5:()=>v,Ku:()=>f,LH:()=>le,L_:()=>g,MW:()=>at,Mf:()=>o,SV:()=>q,Sd:()=>B,VM:()=>S,Vb:()=>qn,Z:()=>Nt,aO:()=>zt,b2:()=>pn,hY:()=>w,jx:()=>u,oh:()=>Z,uR:()=>j,xE:()=>ne,zL:()=>b});const o=9,v=13,d=16,u=17,b=18,w=27,g=32,f=33,S=34,j=35,B=36,Z=37,le=38,q=39,X=40,ne=48,zt=57,lt=65,Nt=90,at=91,pn=224;function qn(Mi,...qi){return qi.length?qi.some(Qn=>Mi[Qn]):Mi.altKey||Mi.shiftKey||Mi.ctrlKey||Mi.metaKey}},2289:(G,P,a)=>{"use strict";a.d(P,{Yg:()=>X,u3:()=>U});var n=a(4650),e=a(1281),o=a(8929),l=a(6053),v=a(1221),d=a(6498),u=a(2986),b=a(1307),C=a(13),x=a(4850),w=a(1059),g=a(7625),f=a(3353);const j=new Set;let B,Z=(()=>{class me{constructor(ne){this._platform=ne,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):q}matchMedia(ne){return(this._platform.WEBKIT||this._platform.BLINK)&&function le(me){if(!j.has(me))try{B||(B=document.createElement("style"),B.setAttribute("type","text/css"),document.head.appendChild(B)),B.sheet&&(B.sheet.insertRule(`@media ${me} {body{ }}`,0),j.add(me))}catch(xe){console.error(xe)}}(ne),this._matchMedia(ne)}}return me.\u0275fac=function(ne){return new(ne||me)(n.\u0275\u0275inject(f.t4))},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac,providedIn:"root"}),me})();function q(me){return{matches:"all"===me||""===me,media:me,addListener:()=>{},removeListener:()=>{}}}let X=(()=>{class me{constructor(ne,Ze){this._mediaMatcher=ne,this._zone=Ze,this._queries=new Map,this._destroySubject=new o.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ne){return K((0,e.Eq)(ne)).some(Oe=>this._registerQuery(Oe).mql.matches)}observe(ne){const Oe=K((0,e.Eq)(ne)).map(qe=>this._registerQuery(qe).observable);let nt=(0,l.aj)(Oe);return nt=(0,v.z)(nt.pipe((0,u.q)(1)),nt.pipe((0,b.T)(1),(0,C.b)(0))),nt.pipe((0,x.U)(qe=>{const ct={matches:!1,breakpoints:{}};return qe.forEach(({matches:ot,query:dt})=>{ct.matches=ct.matches||ot,ct.breakpoints[dt]=ot}),ct}))}_registerQuery(ne){if(this._queries.has(ne))return this._queries.get(ne);const Ze=this._mediaMatcher.matchMedia(ne),nt={observable:new d.y(qe=>{const ct=ot=>this._zone.run(()=>qe.next(ot));return Ze.addListener(ct),()=>{Ze.removeListener(ct)}}).pipe((0,w.O)(Ze),(0,x.U)(({matches:qe})=>({query:ne,matches:qe})),(0,g.R)(this._destroySubject)),mql:Ze};return this._queries.set(ne,nt),nt}}return me.\u0275fac=function(ne){return new(ne||me)(n.\u0275\u0275inject(Z),n.\u0275\u0275inject(n.NgZone))},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac,providedIn:"root"}),me})();function K(me){return me.map(xe=>xe.split(",")).reduce((xe,ne)=>xe.concat(ne)).map(xe=>xe.trim())}const U={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},9643:(G,P,a)=>{"use strict";a.d(P,{Q8:()=>C,wD:()=>b});var n=a(1281),e=a(4650),o=a(6498),l=a(8929),v=a(13);let d=(()=>{class x{create(g){return typeof MutationObserver>"u"?null:new MutationObserver(g)}}return x.\u0275fac=function(g){return new(g||x)},x.\u0275prov=e.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),u=(()=>{class x{constructor(g){this._mutationObserverFactory=g,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((g,f)=>this._cleanupObserver(f))}observe(g){const f=(0,n.fI)(g);return new o.y(S=>{const B=this._observeElement(f).subscribe(S);return()=>{B.unsubscribe(),this._unobserveElement(f)}})}_observeElement(g){if(this._observedElements.has(g))this._observedElements.get(g).count++;else{const f=new l.xQ,S=this._mutationObserverFactory.create(j=>f.next(j));S&&S.observe(g,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(g,{observer:S,stream:f,count:1})}return this._observedElements.get(g).stream}_unobserveElement(g){this._observedElements.has(g)&&(this._observedElements.get(g).count--,this._observedElements.get(g).count||this._cleanupObserver(g))}_cleanupObserver(g){if(this._observedElements.has(g)){const{observer:f,stream:S}=this._observedElements.get(g);f&&f.disconnect(),S.complete(),this._observedElements.delete(g)}}}return x.\u0275fac=function(g){return new(g||x)(e.\u0275\u0275inject(d))},x.\u0275prov=e.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),b=(()=>{class x{get disabled(){return this._disabled}set disabled(g){this._disabled=(0,n.Ig)(g),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(g){this._debounce=(0,n.su)(g),this._subscribe()}constructor(g,f,S){this._contentObserver=g,this._elementRef=f,this._ngZone=S,this.event=new e.EventEmitter,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const g=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?g.pipe((0,v.b)(this.debounce)):g).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return x.\u0275fac=function(g){return new(g||x)(e.\u0275\u0275directiveInject(u),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.NgZone))},x.\u0275dir=e.\u0275\u0275defineDirective({type:x,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),x})(),C=(()=>{class x{}return x.\u0275fac=function(g){return new(g||x)},x.\u0275mod=e.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=e.\u0275\u0275defineInjector({providers:[d]}),x})()},8184:(G,P,a)=>{"use strict";a.d(P,{Iu:()=>ti,U8:()=>be,X_:()=>ne,Xj:()=>zt,aV:()=>mt,pI:()=>te,xu:()=>ut});var n=a(3668),e=a(6895),o=a(4650),l=a(1281),v=a(3353),d=a(2198),u=a(2986),b=a(7625),C=a(4290),x=a(445),w=a(4080),g=a(8929),f=a(2654),S=a(6787),j=a(9521);const B=(0,v.Mq)();class Z{constructor(ge,ke){this._viewportRuler=ge,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ke}attach(){}enable(){if(this._canBeEnabled()){const ge=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ge.style.left||"",this._previousHTMLStyles.top=ge.style.top||"",ge.style.left=(0,l.HM)(-this._previousScrollPosition.left),ge.style.top=(0,l.HM)(-this._previousScrollPosition.top),ge.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ge=this._document.documentElement,gt=ge.style,Pt=this._document.body.style,Bt=gt.scrollBehavior||"",st=Pt.scrollBehavior||"";this._isEnabled=!1,gt.left=this._previousHTMLStyles.left,gt.top=this._previousHTMLStyles.top,ge.classList.remove("cdk-global-scrollblock"),B&&(gt.scrollBehavior=Pt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),B&&(gt.scrollBehavior=Bt,Pt.scrollBehavior=st)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ke=this._document.body,gt=this._viewportRuler.getViewportSize();return ke.scrollHeight>gt.height||ke.scrollWidth>gt.width}}class q{constructor(ge,ke,gt,Pt){this._scrollDispatcher=ge,this._ngZone=ke,this._viewportRuler=gt,this._config=Pt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ge){this._overlayRef=ge}enable(){if(this._scrollSubscription)return;const ge=this._scrollDispatcher.scrolled(0).pipe((0,d.h)(ke=>!ke||!this._overlayRef.overlayElement.contains(ke.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ge.subscribe(()=>{const ke=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ke-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ge.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class X{enable(){}disable(){}attach(){}}function K(Ue,ge){return ge.some(ke=>Ue.bottom<ke.top||Ue.top>ke.bottom||Ue.right<ke.left||Ue.left>ke.right)}function U(Ue,ge){return ge.some(ke=>Ue.top<ke.top||Ue.bottom>ke.bottom||Ue.left<ke.left||Ue.right>ke.right)}class me{constructor(ge,ke,gt,Pt){this._scrollDispatcher=ge,this._viewportRuler=ke,this._ngZone=gt,this._config=Pt,this._scrollSubscription=null}attach(ge){this._overlayRef=ge}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const ke=this._overlayRef.overlayElement.getBoundingClientRect(),{width:gt,height:Pt}=this._viewportRuler.getViewportSize();K(ke,[{width:gt,height:Pt,bottom:Pt,right:gt,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let xe=(()=>{class Ue{constructor(ke,gt,Pt,Bt){this._scrollDispatcher=ke,this._viewportRuler=gt,this._ngZone=Pt,this.noop=()=>new X,this.close=st=>new q(this._scrollDispatcher,this._ngZone,this._viewportRuler,st),this.block=()=>new Z(this._viewportRuler,this._document),this.reposition=st=>new me(this._scrollDispatcher,this._viewportRuler,this._ngZone,st),this._document=Bt}}return Ue.\u0275fac=function(ke){return new(ke||Ue)(o.\u0275\u0275inject(n.mF),o.\u0275\u0275inject(n.rL),o.\u0275\u0275inject(o.NgZone),o.\u0275\u0275inject(e.DOCUMENT))},Ue.\u0275prov=o.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})();class ne{constructor(ge){if(this.scrollStrategy=new X,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ge){const ke=Object.keys(ge);for(const gt of ke)void 0!==ge[gt]&&(this[gt]=ge[gt])}}}class nt{constructor(ge,ke){this.connectionPair=ge,this.scrollableViewProperties=ke}}let ot=(()=>{class Ue{constructor(ke){this._attachedOverlays=[],this._document=ke}ngOnDestroy(){this.detach()}add(ke){this.remove(ke),this._attachedOverlays.push(ke)}remove(ke){const gt=this._attachedOverlays.indexOf(ke);gt>-1&&this._attachedOverlays.splice(gt,1),0===this._attachedOverlays.length&&this.detach()}}return Ue.\u0275fac=function(ke){return new(ke||Ue)(o.\u0275\u0275inject(e.DOCUMENT))},Ue.\u0275prov=o.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})(),dt=(()=>{class Ue extends ot{constructor(ke,gt){super(ke),this._ngZone=gt,this._keydownListener=Pt=>{const Bt=this._attachedOverlays;for(let st=Bt.length-1;st>-1;st--)if(Bt[st]._keydownEvents.observers.length>0){const Nt=Bt[st]._keydownEvents;this._ngZone?this._ngZone.run(()=>Nt.next(Pt)):Nt.next(Pt);break}}}add(ke){super.add(ke),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Ue.\u0275fac=function(ke){return new(ke||Ue)(o.\u0275\u0275inject(e.DOCUMENT),o.\u0275\u0275inject(o.NgZone,8))},Ue.\u0275prov=o.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})(),jt=(()=>{class Ue extends ot{constructor(ke,gt,Pt){super(ke),this._platform=gt,this._ngZone=Pt,this._cursorStyleIsSet=!1,this._pointerDownListener=Bt=>{this._pointerDownEventTarget=(0,v.sA)(Bt)},this._clickListener=Bt=>{const st=(0,v.sA)(Bt),Nt="click"===Bt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:st;this._pointerDownEventTarget=null;const at=this._attachedOverlays.slice();for(let Lt=at.length-1;Lt>-1;Lt--){const Rt=at[Lt];if(Rt._outsidePointerEvents.observers.length<1||!Rt.hasAttached())continue;if(Rt.overlayElement.contains(st)||Rt.overlayElement.contains(Nt))break;const ai=Rt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ai.next(Bt)):ai.next(Bt)}}}add(ke){if(super.add(ke),!this._isAttached){const gt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(gt)):this._addEventListeners(gt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=gt.style.cursor,gt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ke=this._document.body;ke.removeEventListener("pointerdown",this._pointerDownListener,!0),ke.removeEventListener("click",this._clickListener,!0),ke.removeEventListener("auxclick",this._clickListener,!0),ke.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ke.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ke){ke.addEventListener("pointerdown",this._pointerDownListener,!0),ke.addEventListener("click",this._clickListener,!0),ke.addEventListener("auxclick",this._clickListener,!0),ke.addEventListener("contextmenu",this._clickListener,!0)}}return Ue.\u0275fac=function(ke){return new(ke||Ue)(o.\u0275\u0275inject(e.DOCUMENT),o.\u0275\u0275inject(v.t4),o.\u0275\u0275inject(o.NgZone,8))},Ue.\u0275prov=o.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})(),zt=(()=>{class Ue{constructor(ke,gt){this._platform=gt,this._document=ke}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ke="cdk-overlay-container";if(this._platform.isBrowser||(0,v.Oy)()){const Pt=this._document.querySelectorAll(`.${ke}[platform="server"], .${ke}[platform="test"]`);for(let Bt=0;Bt<Pt.length;Bt++)Pt[Bt].remove()}const gt=this._document.createElement("div");gt.classList.add(ke),(0,v.Oy)()?gt.setAttribute("platform","test"):this._platform.isBrowser||gt.setAttribute("platform","server"),this._document.body.appendChild(gt),this._containerElement=gt}}return Ue.\u0275fac=function(ke){return new(ke||Ue)(o.\u0275\u0275inject(e.DOCUMENT),o.\u0275\u0275inject(v.t4))},Ue.\u0275prov=o.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})();class ti{constructor(ge,ke,gt,Pt,Bt,st,Nt,at,Lt,Rt=!1){this._portalOutlet=ge,this._host=ke,this._pane=gt,this._config=Pt,this._ngZone=Bt,this._keyboardDispatcher=st,this._document=Nt,this._location=at,this._outsideClickDispatcher=Lt,this._animationsDisabled=Rt,this._backdropElement=null,this._backdropClick=new g.xQ,this._attachments=new g.xQ,this._detachments=new g.xQ,this._locationChanges=f.w.EMPTY,this._backdropClickHandler=ai=>this._backdropClick.next(ai),this._backdropTransitionendHandler=ai=>{this._disposeBackdrop(ai.target)},this._keydownEvents=new g.xQ,this._outsidePointerEvents=new g.xQ,Pt.scrollStrategy&&(this._scrollStrategy=Pt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Pt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ge){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ke=this._portalOutlet.attach(ge);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,u.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof ke?.onDestroy&&ke.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ke}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ge=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ge}dispose(){const ge=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,ge&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(ge){ge!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ge,this.hasAttached()&&(ge.attach(this),this.updatePosition()))}updateSize(ge){this._config={...this._config,...ge},this._updateElementSize()}setDirection(ge){this._config={...this._config,direction:ge},this._updateElementDirection()}addPanelClass(ge){this._pane&&this._toggleClasses(this._pane,ge,!0)}removePanelClass(ge){this._pane&&this._toggleClasses(this._pane,ge,!1)}getDirection(){const ge=this._config.direction;return ge?"string"==typeof ge?ge:ge.value:"ltr"}updateScrollStrategy(ge){ge!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ge,this.hasAttached()&&(ge.attach(this),ge.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ge=this._pane.style;ge.width=(0,l.HM)(this._config.width),ge.height=(0,l.HM)(this._config.height),ge.minWidth=(0,l.HM)(this._config.minWidth),ge.minHeight=(0,l.HM)(this._config.minHeight),ge.maxWidth=(0,l.HM)(this._config.maxWidth),ge.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(ge){this._pane.style.pointerEvents=ge?"":"none"}_attachBackdrop(){const ge="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(ge)})}):this._backdropElement.classList.add(ge)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ge=this._backdropElement;if(ge){if(this._animationsDisabled)return void this._disposeBackdrop(ge);ge.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ge.addEventListener("transitionend",this._backdropTransitionendHandler)}),ge.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ge)},500))}}_toggleClasses(ge,ke,gt){const Pt=(0,l.Eq)(ke||[]).filter(Bt=>!!Bt);Pt.length&&(gt?ge.classList.add(...Pt):ge.classList.remove(...Pt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ge=this._ngZone.onStable.pipe((0,b.R)((0,S.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),ge.unsubscribe())})})}_disposeScrollStrategy(){const ge=this._scrollStrategy;ge&&(ge.disable(),ge.detach&&ge.detach())}_disposeBackdrop(ge){ge&&(ge.removeEventListener("click",this._backdropClickHandler),ge.removeEventListener("transitionend",this._backdropTransitionendHandler),ge.remove(),this._backdropElement===ge&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const mi="cdk-overlay-connected-position-bounding-box",Qt=/([A-Za-z%]+)$/;class Jt{get positions(){return this._preferredPositions}constructor(ge,ke,gt,Pt,Bt){this._viewportRuler=ke,this._document=gt,this._platform=Pt,this._overlayContainer=Bt,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new g.xQ,this._resizeSubscription=f.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ge)}attach(ge){this._validatePositions(),ge.hostElement.classList.add(mi),this._overlayRef=ge,this._boundingBox=ge.hostElement,this._pane=ge.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ge=this._originRect,ke=this._overlayRect,gt=this._viewportRect,Pt=this._containerRect,Bt=[];let st;for(let Nt of this._preferredPositions){let at=this._getOriginPoint(ge,Pt,Nt),Lt=this._getOverlayPoint(at,ke,Nt),Rt=this._getOverlayFit(Lt,ke,gt,Nt);if(Rt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Nt,at);this._canFitWithFlexibleDimensions(Rt,Lt,gt)?Bt.push({position:Nt,origin:at,overlayRect:ke,boundingBoxRect:this._calculateBoundingBoxRect(at,Nt)}):(!st||st.overlayFit.visibleArea<Rt.visibleArea)&&(st={overlayFit:Rt,overlayPoint:Lt,originPoint:at,position:Nt,overlayRect:ke})}if(Bt.length){let Nt=null,at=-1;for(const Lt of Bt){const Rt=Lt.boundingBoxRect.width*Lt.boundingBoxRect.height*(Lt.position.weight||1);Rt>at&&(at=Rt,Nt=Lt)}return this._isPushed=!1,void this._applyPosition(Nt.position,Nt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(st.position,st.originPoint);this._applyPosition(st.position,st.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&lt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mi),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ge=this._lastPosition;if(ge){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ke=this._getOriginPoint(this._originRect,this._containerRect,ge);this._applyPosition(ge,ke)}else this.apply()}withScrollableContainers(ge){return this._scrollables=ge,this}withPositions(ge){return this._preferredPositions=ge,-1===ge.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ge){return this._viewportMargin=ge,this}withFlexibleDimensions(ge=!0){return this._hasFlexibleDimensions=ge,this}withGrowAfterOpen(ge=!0){return this._growAfterOpen=ge,this}withPush(ge=!0){return this._canPush=ge,this}withLockedPosition(ge=!0){return this._positionLocked=ge,this}setOrigin(ge){return this._origin=ge,this}withDefaultOffsetX(ge){return this._offsetX=ge,this}withDefaultOffsetY(ge){return this._offsetY=ge,this}withTransformOriginOn(ge){return this._transformOriginSelector=ge,this}_getOriginPoint(ge,ke,gt){let Pt,Bt;if("center"==gt.originX)Pt=ge.left+ge.width/2;else{const st=this._isRtl()?ge.right:ge.left,Nt=this._isRtl()?ge.left:ge.right;Pt="start"==gt.originX?st:Nt}return ke.left<0&&(Pt-=ke.left),Bt="center"==gt.originY?ge.top+ge.height/2:"top"==gt.originY?ge.top:ge.bottom,ke.top<0&&(Bt-=ke.top),{x:Pt,y:Bt}}_getOverlayPoint(ge,ke,gt){let Pt,Bt;return Pt="center"==gt.overlayX?-ke.width/2:"start"===gt.overlayX?this._isRtl()?-ke.width:0:this._isRtl()?0:-ke.width,Bt="center"==gt.overlayY?-ke.height/2:"top"==gt.overlayY?0:-ke.height,{x:ge.x+Pt,y:ge.y+Bt}}_getOverlayFit(ge,ke,gt,Pt){const Bt=Fe(ke);let{x:st,y:Nt}=ge,at=this._getOffset(Pt,"x"),Lt=this._getOffset(Pt,"y");at&&(st+=at),Lt&&(Nt+=Lt);let Xt=0-Nt,ui=Nt+Bt.height-gt.height,vt=this._subtractOverflows(Bt.width,0-st,st+Bt.width-gt.width),Ut=this._subtractOverflows(Bt.height,Xt,ui),Zt=vt*Ut;return{visibleArea:Zt,isCompletelyWithinViewport:Bt.width*Bt.height===Zt,fitsInViewportVertically:Ut===Bt.height,fitsInViewportHorizontally:vt==Bt.width}}_canFitWithFlexibleDimensions(ge,ke,gt){if(this._hasFlexibleDimensions){const Pt=gt.bottom-ke.y,Bt=gt.right-ke.x,st=_t(this._overlayRef.getConfig().minHeight),Nt=_t(this._overlayRef.getConfig().minWidth);return(ge.fitsInViewportVertically||null!=st&&st<=Pt)&&(ge.fitsInViewportHorizontally||null!=Nt&&Nt<=Bt)}return!1}_pushOverlayOnScreen(ge,ke,gt){if(this._previousPushAmount&&this._positionLocked)return{x:ge.x+this._previousPushAmount.x,y:ge.y+this._previousPushAmount.y};const Pt=Fe(ke),Bt=this._viewportRect,st=Math.max(ge.x+Pt.width-Bt.width,0),Nt=Math.max(ge.y+Pt.height-Bt.height,0),at=Math.max(Bt.top-gt.top-ge.y,0),Lt=Math.max(Bt.left-gt.left-ge.x,0);let Rt=0,ai=0;return Rt=Pt.width<=Bt.width?Lt||-st:ge.x<this._viewportMargin?Bt.left-gt.left-ge.x:0,ai=Pt.height<=Bt.height?at||-Nt:ge.y<this._viewportMargin?Bt.top-gt.top-ge.y:0,this._previousPushAmount={x:Rt,y:ai},{x:ge.x+Rt,y:ge.y+ai}}_applyPosition(ge,ke){if(this._setTransformOrigin(ge),this._setOverlayElementStyles(ke,ge),this._setBoundingBoxStyles(ke,ge),ge.panelClass&&this._addPanelClasses(ge.panelClass),this._lastPosition=ge,this._positionChanges.observers.length){const gt=this._getScrollVisibility(),Pt=new nt(ge,gt);this._positionChanges.next(Pt)}this._isInitialRender=!1}_setTransformOrigin(ge){if(!this._transformOriginSelector)return;const ke=this._boundingBox.querySelectorAll(this._transformOriginSelector);let gt,Pt=ge.overlayY;gt="center"===ge.overlayX?"center":this._isRtl()?"start"===ge.overlayX?"right":"left":"start"===ge.overlayX?"left":"right";for(let Bt=0;Bt<ke.length;Bt++)ke[Bt].style.transformOrigin=`${gt} ${Pt}`}_calculateBoundingBoxRect(ge,ke){const gt=this._viewportRect,Pt=this._isRtl();let Bt,st,Nt,Rt,ai,Xt;if("top"===ke.overlayY)st=ge.y,Bt=gt.height-st+this._viewportMargin;else if("bottom"===ke.overlayY)Nt=gt.height-ge.y+2*this._viewportMargin,Bt=gt.height-Nt+this._viewportMargin;else{const ui=Math.min(gt.bottom-ge.y+gt.top,ge.y),vt=this._lastBoundingBoxSize.height;Bt=2*ui,st=ge.y-ui,Bt>vt&&!this._isInitialRender&&!this._growAfterOpen&&(st=ge.y-vt/2)}if("end"===ke.overlayX&&!Pt||"start"===ke.overlayX&&Pt)Xt=gt.width-ge.x+this._viewportMargin,Rt=ge.x-this._viewportMargin;else if("start"===ke.overlayX&&!Pt||"end"===ke.overlayX&&Pt)ai=ge.x,Rt=gt.right-ge.x;else{const ui=Math.min(gt.right-ge.x+gt.left,ge.x),vt=this._lastBoundingBoxSize.width;Rt=2*ui,ai=ge.x-ui,Rt>vt&&!this._isInitialRender&&!this._growAfterOpen&&(ai=ge.x-vt/2)}return{top:st,left:ai,bottom:Nt,right:Xt,width:Rt,height:Bt}}_setBoundingBoxStyles(ge,ke){const gt=this._calculateBoundingBoxRect(ge,ke);!this._isInitialRender&&!this._growAfterOpen&&(gt.height=Math.min(gt.height,this._lastBoundingBoxSize.height),gt.width=Math.min(gt.width,this._lastBoundingBoxSize.width));const Pt={};if(this._hasExactPosition())Pt.top=Pt.left="0",Pt.bottom=Pt.right=Pt.maxHeight=Pt.maxWidth="",Pt.width=Pt.height="100%";else{const Bt=this._overlayRef.getConfig().maxHeight,st=this._overlayRef.getConfig().maxWidth;Pt.height=(0,l.HM)(gt.height),Pt.top=(0,l.HM)(gt.top),Pt.bottom=(0,l.HM)(gt.bottom),Pt.width=(0,l.HM)(gt.width),Pt.left=(0,l.HM)(gt.left),Pt.right=(0,l.HM)(gt.right),Pt.alignItems="center"===ke.overlayX?"center":"end"===ke.overlayX?"flex-end":"flex-start",Pt.justifyContent="center"===ke.overlayY?"center":"bottom"===ke.overlayY?"flex-end":"flex-start",Bt&&(Pt.maxHeight=(0,l.HM)(Bt)),st&&(Pt.maxWidth=(0,l.HM)(st))}this._lastBoundingBoxSize=gt,lt(this._boundingBox.style,Pt)}_resetBoundingBoxStyles(){lt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){lt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ge,ke){const gt={},Pt=this._hasExactPosition(),Bt=this._hasFlexibleDimensions,st=this._overlayRef.getConfig();if(Pt){const Rt=this._viewportRuler.getViewportScrollPosition();lt(gt,this._getExactOverlayY(ke,ge,Rt)),lt(gt,this._getExactOverlayX(ke,ge,Rt))}else gt.position="static";let Nt="",at=this._getOffset(ke,"x"),Lt=this._getOffset(ke,"y");at&&(Nt+=`translateX(${at}px) `),Lt&&(Nt+=`translateY(${Lt}px)`),gt.transform=Nt.trim(),st.maxHeight&&(Pt?gt.maxHeight=(0,l.HM)(st.maxHeight):Bt&&(gt.maxHeight="")),st.maxWidth&&(Pt?gt.maxWidth=(0,l.HM)(st.maxWidth):Bt&&(gt.maxWidth="")),lt(this._pane.style,gt)}_getExactOverlayY(ge,ke,gt){let Pt={top:"",bottom:""},Bt=this._getOverlayPoint(ke,this._overlayRect,ge);return this._isPushed&&(Bt=this._pushOverlayOnScreen(Bt,this._overlayRect,gt)),"bottom"===ge.overlayY?Pt.bottom=this._document.documentElement.clientHeight-(Bt.y+this._overlayRect.height)+"px":Pt.top=(0,l.HM)(Bt.y),Pt}_getExactOverlayX(ge,ke,gt){let st,Pt={left:"",right:""},Bt=this._getOverlayPoint(ke,this._overlayRect,ge);return this._isPushed&&(Bt=this._pushOverlayOnScreen(Bt,this._overlayRect,gt)),st=this._isRtl()?"end"===ge.overlayX?"left":"right":"end"===ge.overlayX?"right":"left","right"===st?Pt.right=this._document.documentElement.clientWidth-(Bt.x+this._overlayRect.width)+"px":Pt.left=(0,l.HM)(Bt.x),Pt}_getScrollVisibility(){const ge=this._getOriginRect(),ke=this._pane.getBoundingClientRect(),gt=this._scrollables.map(Pt=>Pt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:U(ge,gt),isOriginOutsideView:K(ge,gt),isOverlayClipped:U(ke,gt),isOverlayOutsideView:K(ke,gt)}}_subtractOverflows(ge,...ke){return ke.reduce((gt,Pt)=>gt-Math.max(Pt,0),ge)}_getNarrowedViewportRect(){const ge=this._document.documentElement.clientWidth,ke=this._document.documentElement.clientHeight,gt=this._viewportRuler.getViewportScrollPosition();return{top:gt.top+this._viewportMargin,left:gt.left+this._viewportMargin,right:gt.left+ge-this._viewportMargin,bottom:gt.top+ke-this._viewportMargin,width:ge-2*this._viewportMargin,height:ke-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ge,ke){return"x"===ke?null==ge.offsetX?this._offsetX:ge.offsetX:null==ge.offsetY?this._offsetY:ge.offsetY}_validatePositions(){}_addPanelClasses(ge){this._pane&&(0,l.Eq)(ge).forEach(ke=>{""!==ke&&-1===this._appliedPanelClasses.indexOf(ke)&&(this._appliedPanelClasses.push(ke),this._pane.classList.add(ke))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ge=>{this._pane.classList.remove(ge)}),this._appliedPanelClasses=[])}_getOriginRect(){const ge=this._origin;if(ge instanceof o.ElementRef)return ge.nativeElement.getBoundingClientRect();if(ge instanceof Element)return ge.getBoundingClientRect();const ke=ge.width||0,gt=ge.height||0;return{top:ge.y,bottom:ge.y+gt,left:ge.x,right:ge.x+ke,height:gt,width:ke}}}function lt(Ue,ge){for(let ke in ge)ge.hasOwnProperty(ke)&&(Ue[ke]=ge[ke]);return Ue}function _t(Ue){if("number"!=typeof Ue&&null!=Ue){const[ge,ke]=Ue.split(Qt);return ke&&"px"!==ke?null:parseFloat(ge)}return Ue||null}function Fe(Ue){return{top:Math.floor(Ue.top),right:Math.floor(Ue.right),bottom:Math.floor(Ue.bottom),left:Math.floor(Ue.left),width:Math.floor(Ue.width),height:Math.floor(Ue.height)}}const W="cdk-global-overlay-wrapper";class He{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ge){const ke=ge.getConfig();this._overlayRef=ge,this._width&&!ke.width&&ge.updateSize({width:this._width}),this._height&&!ke.height&&ge.updateSize({height:this._height}),ge.hostElement.classList.add(W),this._isDisposed=!1}top(ge=""){return this._bottomOffset="",this._topOffset=ge,this._alignItems="flex-start",this}left(ge=""){return this._xOffset=ge,this._xPosition="left",this}bottom(ge=""){return this._topOffset="",this._bottomOffset=ge,this._alignItems="flex-end",this}right(ge=""){return this._xOffset=ge,this._xPosition="right",this}start(ge=""){return this._xOffset=ge,this._xPosition="start",this}end(ge=""){return this._xOffset=ge,this._xPosition="end",this}width(ge=""){return this._overlayRef?this._overlayRef.updateSize({width:ge}):this._width=ge,this}height(ge=""){return this._overlayRef?this._overlayRef.updateSize({height:ge}):this._height=ge,this}centerHorizontally(ge=""){return this.left(ge),this._xPosition="center",this}centerVertically(ge=""){return this.top(ge),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ge=this._overlayRef.overlayElement.style,ke=this._overlayRef.hostElement.style,gt=this._overlayRef.getConfig(),{width:Pt,height:Bt,maxWidth:st,maxHeight:Nt}=gt,at=!("100%"!==Pt&&"100vw"!==Pt||st&&"100%"!==st&&"100vw"!==st),Lt=!("100%"!==Bt&&"100vh"!==Bt||Nt&&"100%"!==Nt&&"100vh"!==Nt),Rt=this._xPosition,ai=this._xOffset,Xt="rtl"===this._overlayRef.getConfig().direction;let ui="",vt="",Ut="";at?Ut="flex-start":"center"===Rt?(Ut="center",Xt?vt=ai:ui=ai):Xt?"left"===Rt||"end"===Rt?(Ut="flex-end",ui=ai):("right"===Rt||"start"===Rt)&&(Ut="flex-start",vt=ai):"left"===Rt||"start"===Rt?(Ut="flex-start",ui=ai):("right"===Rt||"end"===Rt)&&(Ut="flex-end",vt=ai),ge.position=this._cssPosition,ge.marginLeft=at?"0":ui,ge.marginTop=Lt?"0":this._topOffset,ge.marginBottom=this._bottomOffset,ge.marginRight=at?"0":vt,ke.justifyContent=Ut,ke.alignItems=Lt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ge=this._overlayRef.overlayElement.style,ke=this._overlayRef.hostElement,gt=ke.style;ke.classList.remove(W),gt.justifyContent=gt.alignItems=ge.marginTop=ge.marginBottom=ge.marginLeft=ge.marginRight=ge.position="",this._overlayRef=null,this._isDisposed=!0}}let Te=(()=>{class Ue{constructor(ke,gt,Pt,Bt){this._viewportRuler=ke,this._document=gt,this._platform=Pt,this._overlayContainer=Bt}global(){return new He}flexibleConnectedTo(ke){return new Jt(ke,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ue.\u0275fac=function(ke){return new(ke||Ue)(o.\u0275\u0275inject(n.rL),o.\u0275\u0275inject(e.DOCUMENT),o.\u0275\u0275inject(v.t4),o.\u0275\u0275inject(zt))},Ue.\u0275prov=o.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})(),Be=0,mt=(()=>{class Ue{constructor(ke,gt,Pt,Bt,st,Nt,at,Lt,Rt,ai,Xt,ui){this.scrollStrategies=ke,this._overlayContainer=gt,this._componentFactoryResolver=Pt,this._positionBuilder=Bt,this._keyboardDispatcher=st,this._injector=Nt,this._ngZone=at,this._document=Lt,this._directionality=Rt,this._location=ai,this._outsideClickDispatcher=Xt,this._animationsModuleType=ui}create(ke){const gt=this._createHostElement(),Pt=this._createPaneElement(gt),Bt=this._createPortalOutlet(Pt),st=new ne(ke);return st.direction=st.direction||this._directionality.value,new ti(Bt,gt,Pt,st,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(ke){const gt=this._document.createElement("div");return gt.id="cdk-overlay-"+Be++,gt.classList.add("cdk-overlay-pane"),ke.appendChild(gt),gt}_createHostElement(){const ke=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ke),ke}_createPortalOutlet(ke){return this._appRef||(this._appRef=this._injector.get(o.ApplicationRef)),new w.u0(ke,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ue.\u0275fac=function(ke){return new(ke||Ue)(o.\u0275\u0275inject(xe),o.\u0275\u0275inject(zt),o.\u0275\u0275inject(o.ComponentFactoryResolver),o.\u0275\u0275inject(Te),o.\u0275\u0275inject(dt),o.\u0275\u0275inject(o.Injector),o.\u0275\u0275inject(o.NgZone),o.\u0275\u0275inject(e.DOCUMENT),o.\u0275\u0275inject(x.Is),o.\u0275\u0275inject(e.Location),o.\u0275\u0275inject(jt),o.\u0275\u0275inject(o.ANIMATION_MODULE_TYPE,8))},Ue.\u0275prov=o.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})();const Pe=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Qe=new o.InjectionToken("cdk-connected-overlay-scroll-strategy");let ut=(()=>{class Ue{constructor(ke){this.elementRef=ke}}return Ue.\u0275fac=function(ke){return new(ke||Ue)(o.\u0275\u0275directiveInject(o.ElementRef))},Ue.\u0275dir=o.\u0275\u0275defineDirective({type:Ue,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),Ue})(),te=(()=>{class Ue{get offsetX(){return this._offsetX}set offsetX(ke){this._offsetX=ke,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ke){this._offsetY=ke,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ke){this._hasBackdrop=(0,l.Ig)(ke)}get lockPosition(){return this._lockPosition}set lockPosition(ke){this._lockPosition=(0,l.Ig)(ke)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ke){this._flexibleDimensions=(0,l.Ig)(ke)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ke){this._growAfterOpen=(0,l.Ig)(ke)}get push(){return this._push}set push(ke){this._push=(0,l.Ig)(ke)}constructor(ke,gt,Pt,Bt,st){this._overlay=ke,this._dir=st,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=f.w.EMPTY,this._attachSubscription=f.w.EMPTY,this._detachSubscription=f.w.EMPTY,this._positionSubscription=f.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new o.EventEmitter,this.positionChange=new o.EventEmitter,this.attach=new o.EventEmitter,this.detach=new o.EventEmitter,this.overlayKeydown=new o.EventEmitter,this.overlayOutsideClick=new o.EventEmitter,this._templatePortal=new w.UE(gt,Pt),this._scrollStrategyFactory=Bt,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(ke){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ke.origin&&this.open&&this._position.apply()),ke.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Pe);const ke=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ke.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ke.detachments().subscribe(()=>this.detach.emit()),ke.keydownEvents().subscribe(gt=>{this.overlayKeydown.next(gt),gt.keyCode===j.hY&&!this.disableClose&&!(0,j.Vb)(gt)&&(gt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(gt=>{this.overlayOutsideClick.next(gt)})}_buildConfig(){const ke=this._position=this.positionStrategy||this._createPositionStrategy(),gt=new ne({direction:this._dir,positionStrategy:ke,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(gt.width=this.width),(this.height||0===this.height)&&(gt.height=this.height),(this.minWidth||0===this.minWidth)&&(gt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(gt.minHeight=this.minHeight),this.backdropClass&&(gt.backdropClass=this.backdropClass),this.panelClass&&(gt.panelClass=this.panelClass),gt}_updatePositionStrategy(ke){const gt=this.positions.map(Pt=>({originX:Pt.originX,originY:Pt.originY,overlayX:Pt.overlayX,overlayY:Pt.overlayY,offsetX:Pt.offsetX||this.offsetX,offsetY:Pt.offsetY||this.offsetY,panelClass:Pt.panelClass||void 0}));return ke.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(gt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ke=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ke),ke}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ut?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(ke=>{this.backdropClick.emit(ke)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,C.o)(()=>this.positionChange.observers.length>0)).subscribe(ke=>{this.positionChange.emit(ke),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Ue.\u0275fac=function(ke){return new(ke||Ue)(o.\u0275\u0275directiveInject(mt),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(Qe),o.\u0275\u0275directiveInject(x.Is,8))},Ue.\u0275dir=o.\u0275\u0275defineDirective({type:Ue,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[o.\u0275\u0275NgOnChangesFeature]}),Ue})();const R={provide:Qe,deps:[mt],useFactory:function k(Ue){return()=>Ue.scrollStrategies.reposition()}};let be=(()=>{class Ue{}return Ue.\u0275fac=function(ke){return new(ke||Ue)},Ue.\u0275mod=o.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=o.\u0275\u0275defineInjector({providers:[mt,R],imports:[x.vT,w.eL,n.Cl,n.Cl]}),Ue})()},3353:(G,P,a)=>{"use strict";a.d(P,{Mq:()=>S,Oy:()=>K,_i:()=>j,ht:()=>q,i$:()=>w,kV:()=>le,qK:()=>b,sA:()=>X,t4:()=>l});var n=a(4650),e=a(6895);let o;try{o=typeof Intl<"u"&&Intl.v8BreakIterator}catch{o=!1}let d,l=(()=>{class U{constructor(xe){this._platformId=xe,this.isBrowser=this._platformId?(0,e.isPlatformBrowser)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!o)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return U.\u0275fac=function(xe){return new(xe||U)(n.\u0275\u0275inject(n.PLATFORM_ID))},U.\u0275prov=n.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();const u=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function b(){if(d)return d;if("object"!=typeof document||!document)return d=new Set(u),d;let U=document.createElement("input");return d=new Set(u.filter(me=>(U.setAttribute("type",me),U.type===me))),d}let C,g,f,B;function w(U){return function x(){if(null==C&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>C=!0}))}finally{C=C||!1}return C}()?U:!!U.capture}function S(){if(null==f){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return f=!1,f;if("scrollBehavior"in document.documentElement.style)f=!0;else{const U=Element.prototype.scrollTo;f=!!U&&!/\{\s*\[native code\]\s*\}/.test(U.toString())}}return f}function j(){if("object"!=typeof document||!document)return 0;if(null==g){const U=document.createElement("div"),me=U.style;U.dir="rtl",me.width="1px",me.overflow="auto",me.visibility="hidden",me.pointerEvents="none",me.position="absolute";const xe=document.createElement("div"),ne=xe.style;ne.width="2px",ne.height="1px",U.appendChild(xe),document.body.appendChild(U),g=0,0===U.scrollLeft&&(U.scrollLeft=1,g=0===U.scrollLeft?1:2),U.remove()}return g}function le(U){if(function Z(){if(null==B){const U=typeof document<"u"?document.head:null;B=!(!U||!U.createShadowRoot&&!U.attachShadow)}return B}()){const me=U.getRootNode?U.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&me instanceof ShadowRoot)return me}return null}function q(){let U=typeof document<"u"&&document?document.activeElement:null;for(;U&&U.shadowRoot;){const me=U.shadowRoot.activeElement;if(me===U)break;U=me}return U}function X(U){return U.composedPath?U.composedPath()[0]:U.target}function K(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(G,P,a)=>{"use strict";a.d(P,{C5:()=>x,Pl:()=>q,UE:()=>w,eL:()=>K,en:()=>f,u0:()=>j});var n=a(4650),e=a(6895);class C{attach(xe){return this._attachedHost=xe,xe.attach(this)}detach(){let xe=this._attachedHost;null!=xe&&(this._attachedHost=null,xe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(xe){this._attachedHost=xe}}class x extends C{constructor(xe,ne,Ze,Oe,nt){super(),this.component=xe,this.viewContainerRef=ne,this.injector=Ze,this.componentFactoryResolver=Oe,this.projectableNodes=nt}}class w extends C{constructor(xe,ne,Ze,Oe){super(),this.templateRef=xe,this.viewContainerRef=ne,this.context=Ze,this.injector=Oe}get origin(){return this.templateRef.elementRef}attach(xe,ne=this.context){return this.context=ne,super.attach(xe)}detach(){return this.context=void 0,super.detach()}}class g extends C{constructor(xe){super(),this.element=xe instanceof n.ElementRef?xe.nativeElement:xe}}class f{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(xe){return xe instanceof x?(this._attachedPortal=xe,this.attachComponentPortal(xe)):xe instanceof w?(this._attachedPortal=xe,this.attachTemplatePortal(xe)):this.attachDomPortal&&xe instanceof g?(this._attachedPortal=xe,this.attachDomPortal(xe)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(xe){this._disposeFn=xe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class j extends f{constructor(xe,ne,Ze,Oe,nt){super(),this.outletElement=xe,this._componentFactoryResolver=ne,this._appRef=Ze,this._defaultInjector=Oe,this.attachDomPortal=qe=>{const ct=qe.element,ot=this._document.createComment("dom-portal");ct.parentNode.insertBefore(ot,ct),this.outletElement.appendChild(ct),this._attachedPortal=qe,super.setDisposeFn(()=>{ot.parentNode&&ot.parentNode.replaceChild(ct,ot)})},this._document=nt}attachComponentPortal(xe){const Ze=(xe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(xe.component);let Oe;return xe.viewContainerRef?(Oe=xe.viewContainerRef.createComponent(Ze,xe.viewContainerRef.length,xe.injector||xe.viewContainerRef.injector,xe.projectableNodes||void 0),this.setDisposeFn(()=>Oe.destroy())):(Oe=Ze.create(xe.injector||this._defaultInjector||n.Injector.NULL),this._appRef.attachView(Oe.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Oe.hostView),Oe.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Oe)),this._attachedPortal=xe,Oe}attachTemplatePortal(xe){let ne=xe.viewContainerRef,Ze=ne.createEmbeddedView(xe.templateRef,xe.context,{injector:xe.injector});return Ze.rootNodes.forEach(Oe=>this.outletElement.appendChild(Oe)),Ze.detectChanges(),this.setDisposeFn(()=>{let Oe=ne.indexOf(Ze);-1!==Oe&&ne.remove(Oe)}),this._attachedPortal=xe,Ze}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(xe){return xe.hostView.rootNodes[0]}}let q=(()=>{class me extends f{constructor(ne,Ze,Oe){super(),this._componentFactoryResolver=ne,this._viewContainerRef=Ze,this._isInitialized=!1,this.attached=new n.EventEmitter,this.attachDomPortal=nt=>{const qe=nt.element,ct=this._document.createComment("dom-portal");nt.setAttachedHost(this),qe.parentNode.insertBefore(ct,qe),this._getRootNode().appendChild(qe),this._attachedPortal=nt,super.setDisposeFn(()=>{ct.parentNode&&ct.parentNode.replaceChild(qe,ct)})},this._document=Oe}get portal(){return this._attachedPortal}set portal(ne){this.hasAttached()&&!ne&&!this._isInitialized||(this.hasAttached()&&super.detach(),ne&&super.attach(ne),this._attachedPortal=ne||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(ne){ne.setAttachedHost(this);const Ze=null!=ne.viewContainerRef?ne.viewContainerRef:this._viewContainerRef,nt=(ne.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ne.component),qe=Ze.createComponent(nt,Ze.length,ne.injector||Ze.injector,ne.projectableNodes||void 0);return Ze!==this._viewContainerRef&&this._getRootNode().appendChild(qe.hostView.rootNodes[0]),super.setDisposeFn(()=>qe.destroy()),this._attachedPortal=ne,this._attachedRef=qe,this.attached.emit(qe),qe}attachTemplatePortal(ne){ne.setAttachedHost(this);const Ze=this._viewContainerRef.createEmbeddedView(ne.templateRef,ne.context,{injector:ne.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ne,this._attachedRef=Ze,this.attached.emit(Ze),Ze}_getRootNode(){const ne=this._viewContainerRef.element.nativeElement;return ne.nodeType===ne.ELEMENT_NODE?ne:ne.parentNode}}return me.\u0275fac=function(ne){return new(ne||me)(n.\u0275\u0275directiveInject(n.ComponentFactoryResolver),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(e.DOCUMENT))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.\u0275\u0275InheritDefinitionFeature]}),me})(),K=(()=>{class me{}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275mod=n.\u0275\u0275defineNgModule({type:me}),me.\u0275inj=n.\u0275\u0275defineInjector({}),me})()},3668:(G,P,a)=>{"use strict";a.d(P,{ZD:()=>Pe,mF:()=>mi,Cl:()=>Qe,rL:()=>lt});var n=a(1281),e=a(4650),o=a(8929),l=a(1086),v=a(6498),d=a(3753),u=a(6686),C=a(2268);const w=new class x extends C.v{flush(te){this.active=!0,this.scheduled=void 0;const{actions:k}=this;let R,be=-1,et=k.length;te=te||k.shift();do{if(R=te.execute(te.state,te.delay))break}while(++be<et&&(te=k.shift()));if(this.active=!1,R){for(;++be<et&&(te=k.shift());)te.unsubscribe();throw R}}}(class b extends u.o{constructor(te,k){super(te,k),this.scheduler=te,this.work=k}requestAsyncId(te,k,R=0){return null!==R&&R>0?super.requestAsyncId(te,k,R):(te.actions.push(this),te.scheduled||(te.scheduled=requestAnimationFrame(()=>te.flush(null))))}recycleAsyncId(te,k,R=0){if(null!==R&&R>0||null===R&&this.delay>0)return super.recycleAsyncId(te,k,R);0===te.actions.length&&(cancelAnimationFrame(k),te.scheduled=void 0)}});let g=1;const f=Promise.resolve(),S={};function j(ut){return ut in S&&(delete S[ut],!0)}const B={setImmediate(ut){const te=g++;return S[te]=!0,f.then(()=>j(te)&&ut()),te},clearImmediate(ut){j(ut)}},X=new class q extends C.v{flush(te){this.active=!0,this.scheduled=void 0;const{actions:k}=this;let R,be=-1,et=k.length;te=te||k.shift();do{if(R=te.execute(te.state,te.delay))break}while(++be<et&&(te=k.shift()));if(this.active=!1,R){for(;++be<et&&(te=k.shift());)te.unsubscribe();throw R}}}(class le extends u.o{constructor(te,k){super(te,k),this.scheduler=te,this.work=k}requestAsyncId(te,k,R=0){return null!==R&&R>0?super.requestAsyncId(te,k,R):(te.actions.push(this),te.scheduled||(te.scheduled=B.setImmediate(te.flush.bind(te,null))))}recycleAsyncId(te,k,R=0){if(null!==R&&R>0||null===R&&this.delay>0)return super.recycleAsyncId(te,k,R);0===te.actions.length&&(B.clearImmediate(k),te.scheduled=void 0)}});var K=a(2654),U=a(6926),me=a(2198),xe=a(7625),ne=a(1059),Ze=a(3353),Oe=a(6895),nt=a(445);const qe=["contentWrapper"],ct=["*"],ot=new e.InjectionToken("VIRTUAL_SCROLL_STRATEGY");let mi=(()=>{class ut{constructor(k,R,be){this._ngZone=k,this._platform=R,this._scrolled=new o.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=be}register(k){this.scrollContainers.has(k)||this.scrollContainers.set(k,k.elementScrolled().subscribe(()=>this._scrolled.next(k)))}deregister(k){const R=this.scrollContainers.get(k);R&&(R.unsubscribe(),this.scrollContainers.delete(k))}scrolled(k=20){return this._platform.isBrowser?new v.y(R=>{this._globalSubscription||this._addGlobalListener();const be=k>0?this._scrolled.pipe((0,U.e)(k)).subscribe(R):this._scrolled.subscribe(R);return this._scrolledCount++,()=>{be.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,l.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((k,R)=>this.deregister(R)),this._scrolled.complete()}ancestorScrolled(k,R){const be=this.getAncestorScrollContainers(k);return this.scrolled(R).pipe((0,me.h)(et=>!et||be.indexOf(et)>-1))}getAncestorScrollContainers(k){const R=[];return this.scrollContainers.forEach((be,et)=>{this._scrollableContainsElement(et,k)&&R.push(et)}),R}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(k,R){let be=(0,n.fI)(R),et=k.getElementRef().nativeElement;do{if(be==et)return!0}while(be=be.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const k=this._getWindow();return(0,d.R)(k.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ut.\u0275fac=function(k){return new(k||ut)(e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(Ze.t4),e.\u0275\u0275inject(Oe.DOCUMENT,8))},ut.\u0275prov=e.\u0275\u0275defineInjectable({token:ut,factory:ut.\u0275fac,providedIn:"root"}),ut})(),Qt=(()=>{class ut{constructor(k,R,be,et){this.elementRef=k,this.scrollDispatcher=R,this.ngZone=be,this.dir=et,this._destroyed=new o.xQ,this._elementScrolled=new v.y(Ue=>this.ngZone.runOutsideAngular(()=>(0,d.R)(this.elementRef.nativeElement,"scroll").pipe((0,xe.R)(this._destroyed)).subscribe(Ue)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(k){const R=this.elementRef.nativeElement,be=this.dir&&"rtl"==this.dir.value;null==k.left&&(k.left=be?k.end:k.start),null==k.right&&(k.right=be?k.start:k.end),null!=k.bottom&&(k.top=R.scrollHeight-R.clientHeight-k.bottom),be&&0!=(0,Ze._i)()?(null!=k.left&&(k.right=R.scrollWidth-R.clientWidth-k.left),2==(0,Ze._i)()?k.left=k.right:1==(0,Ze._i)()&&(k.left=k.right?-k.right:k.right)):null!=k.right&&(k.left=R.scrollWidth-R.clientWidth-k.right),this._applyScrollToOptions(k)}_applyScrollToOptions(k){const R=this.elementRef.nativeElement;(0,Ze.Mq)()?R.scrollTo(k):(null!=k.top&&(R.scrollTop=k.top),null!=k.left&&(R.scrollLeft=k.left))}measureScrollOffset(k){const R="left",et=this.elementRef.nativeElement;if("top"==k)return et.scrollTop;if("bottom"==k)return et.scrollHeight-et.clientHeight-et.scrollTop;const Ue=this.dir&&"rtl"==this.dir.value;return"start"==k?k=Ue?"right":R:"end"==k&&(k=Ue?R:"right"),Ue&&2==(0,Ze._i)()?k==R?et.scrollWidth-et.clientWidth-et.scrollLeft:et.scrollLeft:Ue&&1==(0,Ze._i)()?k==R?et.scrollLeft+et.scrollWidth-et.clientWidth:-et.scrollLeft:k==R?et.scrollLeft:et.scrollWidth-et.clientWidth-et.scrollLeft}}return ut.\u0275fac=function(k){return new(k||ut)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(mi),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(nt.Is,8))},ut.\u0275dir=e.\u0275\u0275defineDirective({type:ut,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),ut})(),lt=(()=>{class ut{constructor(k,R,be){this._platform=k,this._change=new o.xQ,this._changeListener=et=>{this._change.next(et)},this._document=be,R.runOutsideAngular(()=>{if(k.isBrowser){const et=this._getWindow();et.addEventListener("resize",this._changeListener),et.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const k=this._getWindow();k.removeEventListener("resize",this._changeListener),k.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const k={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),k}getViewportRect(){const k=this.getViewportScrollPosition(),{width:R,height:be}=this.getViewportSize();return{top:k.top,left:k.left,bottom:k.top+be,right:k.left+R,height:be,width:R}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const k=this._document,R=this._getWindow(),be=k.documentElement,et=be.getBoundingClientRect();return{top:-et.top||k.body.scrollTop||R.scrollY||be.scrollTop||0,left:-et.left||k.body.scrollLeft||R.scrollX||be.scrollLeft||0}}change(k=20){return k>0?this._change.pipe((0,U.e)(k)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const k=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:k.innerWidth,height:k.innerHeight}:{width:0,height:0}}}return ut.\u0275fac=function(k){return new(k||ut)(e.\u0275\u0275inject(Ze.t4),e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(Oe.DOCUMENT,8))},ut.\u0275prov=e.\u0275\u0275defineInjectable({token:ut,factory:ut.\u0275fac,providedIn:"root"}),ut})();const _t=new e.InjectionToken("VIRTUAL_SCROLLABLE");let Fe=(()=>{class ut extends Qt{constructor(k,R,be,et){super(k,R,be,et)}measureViewportSize(k){const R=this.elementRef.nativeElement;return"horizontal"===k?R.clientWidth:R.clientHeight}}return ut.\u0275fac=function(k){return new(k||ut)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(mi),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(nt.Is,8))},ut.\u0275dir=e.\u0275\u0275defineDirective({type:ut,features:[e.\u0275\u0275InheritDefinitionFeature]}),ut})();const H=typeof requestAnimationFrame<"u"?w:X;let W=(()=>{class ut extends Fe{get orientation(){return this._orientation}set orientation(k){this._orientation!==k&&(this._orientation=k,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(k){this._appendOnly=(0,n.Ig)(k)}constructor(k,R,be,et,Ue,ge,ke,gt){super(k,ge,be,Ue),this.elementRef=k,this._changeDetectorRef=R,this._scrollStrategy=et,this.scrollable=gt,this._platform=(0,e.inject)(Ze.t4),this._detachedSubject=new o.xQ,this._renderedRangeSubject=new o.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new v.y(Pt=>this._scrollStrategy.scrolledIndexChange.subscribe(Bt=>Promise.resolve().then(()=>this.ngZone.run(()=>Pt.next(Bt))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=K.w.EMPTY,this._viewportChanges=ke.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,ne.O)(null),(0,U.e)(0,H)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(k){this.ngZone.runOutsideAngular(()=>{this._forOf=k,this._forOf.dataStream.pipe((0,xe.R)(this._detachedSubject)).subscribe(R=>{const be=R.length;be!==this._dataLength&&(this._dataLength=be,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(k){return this.getElementRef().nativeElement.getBoundingClientRect()[k]}setTotalContentSize(k){this._totalContentSize!==k&&(this._totalContentSize=k,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(k){(function Ae(ut,te){return ut.start==te.start&&ut.end==te.end})(this._renderedRange,k)||(this.appendOnly&&(k={start:0,end:Math.max(this._renderedRange.end,k.end)}),this._renderedRangeSubject.next(this._renderedRange=k),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(k,R="to-start"){k=this.appendOnly&&"to-start"===R?0:k;const et="horizontal"==this.orientation,Ue=et?"X":"Y";let ke=`translate${Ue}(${Number((et&&this.dir&&"rtl"==this.dir.value?-1:1)*k)}px)`;this._renderedContentOffset=k,"to-end"===R&&(ke+=` translate${Ue}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=ke&&(this._renderedContentTransform=ke,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(k,R="auto"){const be={behavior:R};"horizontal"===this.orientation?be.start=k:be.top=k,this.scrollable.scrollTo(be)}scrollToIndex(k,R="auto"){this._scrollStrategy.scrollToIndex(k,R)}measureScrollOffset(k){let R;return R=this.scrollable==this?be=>super.measureScrollOffset(be):be=>this.scrollable.measureScrollOffset(be),Math.max(0,R(k??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(k){let R;const Ue="rtl"==this.dir?.value;R="start"==k?Ue?"right":"left":"end"==k?Ue?"left":"right":k||("horizontal"===this.orientation?"left":"top");const ge=this.scrollable.measureBoundingClientRectWithScrollOffset(R);return this.elementRef.nativeElement.getBoundingClientRect()[R]-ge}measureRenderedContentSize(){const k=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?k.offsetWidth:k.offsetHeight}measureRangeSize(k){return this._forOf?this._forOf.measureRangeSize(k,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(k){k&&this._runAfterChangeDetection.push(k),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const k=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const R of k)R()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return ut.\u0275fac=function(k){return new(k||ut)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(ot,8),e.\u0275\u0275directiveInject(nt.Is,8),e.\u0275\u0275directiveInject(mi),e.\u0275\u0275directiveInject(lt),e.\u0275\u0275directiveInject(_t,8))},ut.\u0275cmp=e.\u0275\u0275defineComponent({type:ut,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(k,R){if(1&k&&e.\u0275\u0275viewQuery(qe,7),2&k){let be;e.\u0275\u0275queryRefresh(be=e.\u0275\u0275loadQuery())&&(R._contentWrapper=be.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(k,R){2&k&&e.\u0275\u0275classProp("cdk-virtual-scroll-orientation-horizontal","horizontal"===R.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==R.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[e.\u0275\u0275ProvidersFeature([{provide:Qt,useFactory:(te,k)=>te||k,deps:[[new e.Optional,new e.Inject(_t)],ut]}]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275StandaloneFeature],ngContentSelectors:ct,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(k,R){1&k&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275projection(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"div",2)),2&k&&(e.\u0275\u0275advance(3),e.\u0275\u0275styleProp("width",R._totalContentWidth)("height",R._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),ut})(),Pe=(()=>{class ut{}return ut.\u0275fac=function(k){return new(k||ut)},ut.\u0275mod=e.\u0275\u0275defineNgModule({type:ut}),ut.\u0275inj=e.\u0275\u0275defineInjector({}),ut})(),Qe=(()=>{class ut{}return ut.\u0275fac=function(k){return new(k||ut)},ut.\u0275mod=e.\u0275\u0275defineNgModule({type:ut}),ut.\u0275inj=e.\u0275\u0275defineInjector({imports:[nt.vT,Pe,W,nt.vT,Pe]}),ut})()},9349:(G,P,a)=>{"use strict";a.d(P,{IC:()=>f,Ky:()=>S,Lq:()=>w});var n=a(3353),e=a(4650),o=a(1281),l=a(8896),v=a(8929),d=a(3753),u=a(6926),b=a(7625),C=a(6895);const x=(0,n.i$)({passive:!0});let w=(()=>{class j{constructor(Z,le){this._platform=Z,this._ngZone=le,this._monitoredElements=new Map}monitor(Z){if(!this._platform.isBrowser)return l.E;const le=(0,o.fI)(Z),q=this._monitoredElements.get(le);if(q)return q.subject;const X=new v.xQ,K="cdk-text-field-autofilled",U=me=>{"cdk-text-field-autofill-start"!==me.animationName||le.classList.contains(K)?"cdk-text-field-autofill-end"===me.animationName&&le.classList.contains(K)&&(le.classList.remove(K),this._ngZone.run(()=>X.next({target:me.target,isAutofilled:!1}))):(le.classList.add(K),this._ngZone.run(()=>X.next({target:me.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{le.addEventListener("animationstart",U,x),le.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(le,{subject:X,unlisten:()=>{le.removeEventListener("animationstart",U,x)}}),X}stopMonitoring(Z){const le=(0,o.fI)(Z),q=this._monitoredElements.get(le);q&&(q.unlisten(),q.subject.complete(),le.classList.remove("cdk-text-field-autofill-monitored"),le.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(le))}ngOnDestroy(){this._monitoredElements.forEach((Z,le)=>this.stopMonitoring(le))}}return j.\u0275fac=function(Z){return new(Z||j)(e.\u0275\u0275inject(n.t4),e.\u0275\u0275inject(e.NgZone))},j.\u0275prov=e.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),f=(()=>{class j{get minRows(){return this._minRows}set minRows(Z){this._minRows=(0,o.su)(Z),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(Z){this._maxRows=(0,o.su)(Z),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(Z){Z=(0,o.Ig)(Z),this._enabled!==Z&&((this._enabled=Z)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(Z){this._cachedPlaceholderHeight=void 0,Z?this._textareaElement.setAttribute("placeholder",Z):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(Z,le,q,X){this._elementRef=Z,this._platform=le,this._ngZone=q,this._destroyed=new v.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=K=>{this._hasFocus="focus"===K.type},this._document=X,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const Z=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;Z&&(this._textareaElement.style.minHeight=Z)}_setMaxHeight(){const Z=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;Z&&(this._textareaElement.style.maxHeight=Z)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const Z=this._getWindow();(0,d.R)(Z,"resize").pipe((0,u.e)(16),(0,b.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let Z=this._textareaElement.cloneNode(!1);Z.rows=1,Z.style.position="absolute",Z.style.visibility="hidden",Z.style.border="none",Z.style.padding="0",Z.style.height="",Z.style.minHeight="",Z.style.maxHeight="",Z.style.overflow="hidden",this._textareaElement.parentNode.appendChild(Z),this._cachedLineHeight=Z.clientHeight,Z.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const Z=this._textareaElement,le=Z.style.marginBottom||"",q=this._platform.FIREFOX,X=q&&this._hasFocus,K=q?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";X&&(Z.style.marginBottom=`${Z.clientHeight}px`),Z.classList.add(K);const U=Z.scrollHeight-4;return Z.classList.remove(K),X&&(Z.style.marginBottom=le),U}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const Z=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=Z}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(Z=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const le=this._elementRef.nativeElement,q=le.value;if(!Z&&this._minRows===this._previousMinRows&&q===this._previousValue)return;const X=this._measureScrollHeight(),K=Math.max(X,this._cachedPlaceholderHeight||0);le.style.height=`${K}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(le)):setTimeout(()=>this._scrollToCaretPosition(le))}),this._previousValue=q,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(Z){const{selectionStart:le,selectionEnd:q}=Z;!this._destroyed.isStopped&&this._hasFocus&&Z.setSelectionRange(le,q)}}return j.\u0275fac=function(Z){return new(Z||j)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(n.t4),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(C.DOCUMENT,8))},j.\u0275dir=e.\u0275\u0275defineDirective({type:j,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(Z,le){1&Z&&e.\u0275\u0275listener("input",function(){return le._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),j})(),S=(()=>{class j{}return j.\u0275fac=function(Z){return new(Z||j)},j.\u0275mod=e.\u0275\u0275defineNgModule({type:j}),j.\u0275inj=e.\u0275\u0275defineInjector({}),j})()},6895:(G,P,a)=>{"use strict";a.r(P),a.d(P,{APP_BASE_HREF:()=>Z,AsyncPipe:()=>Hn,BrowserPlatformLocation:()=>x,CommonModule:()=>Mo,CurrencyPipe:()=>$r,DATE_PIPE_DEFAULT_OPTIONS:()=>eo,DATE_PIPE_DEFAULT_TIMEZONE:()=>dr,DOCUMENT:()=>d,DatePipe:()=>$n,DecimalPipe:()=>Nr,FormStyle:()=>nt,FormatWidth:()=>ct,HashLocationStrategy:()=>q,I18nPluralPipe:()=>Dr,I18nSelectPipe:()=>Hr,IMAGE_CONFIG:()=>br,IMAGE_LOADER:()=>kt,JsonPipe:()=>Tr,KeyValuePipe:()=>Cr,LOCATION_INITIALIZED:()=>C,Location:()=>X,LocationStrategy:()=>B,LowerCasePipe:()=>Tn,NgClass:()=>gi,NgComponentOutlet:()=>ji,NgFor:()=>qn,NgForOf:()=>qn,NgForOfContext:()=>pn,NgIf:()=>Qn,NgIfContext:()=>Vi,NgLocaleLocalization:()=>fo,NgLocalization:()=>Rn,NgOptimizedImage:()=>vo,NgPlural:()=>ht,NgPluralCase:()=>ni,NgStyle:()=>he,NgSwitch:()=>On,NgSwitchCase:()=>Yn,NgSwitchDefault:()=>Ei,NgTemplateOutlet:()=>je,NumberFormatStyle:()=>Ze,NumberSymbol:()=>ot,PRECONNECT_CHECK_BLOCKLIST:()=>hi,PathLocationStrategy:()=>le,PercentPipe:()=>ur,PlatformLocation:()=>u,Plural:()=>Oe,SlicePipe:()=>Oo,TitleCasePipe:()=>Fi,TranslationWidth:()=>qe,UpperCasePipe:()=>bn,VERSION:()=>No,ViewportScroller:()=>Zr,WeekDay:()=>dt,XhrFactory:()=>nr,formatCurrency:()=>ir,formatDate:()=>at,formatNumber:()=>yr,formatPercent:()=>Fr,getCurrencySymbol:()=>et,getLocaleCurrencyCode:()=>Be,getLocaleCurrencyName:()=>Te,getLocaleCurrencySymbol:()=>He,getLocaleDateFormat:()=>_t,getLocaleDateTimeFormat:()=>Ae,getLocaleDayNames:()=>ti,getLocaleDayPeriods:()=>zt,getLocaleDirection:()=>k,getLocaleEraNames:()=>Qt,getLocaleExtraDayPeriodRules:()=>ut,getLocaleExtraDayPeriods:()=>te,getLocaleFirstDayOfWeek:()=>Jt,getLocaleId:()=>jt,getLocaleMonthNames:()=>mi,getLocaleNumberFormat:()=>W,getLocaleNumberSymbol:()=>H,getLocalePluralCase:()=>Pe,getLocaleTimeFormat:()=>Fe,getLocaleWeekEndRange:()=>lt,getNumberOfCurrencyDigits:()=>ge,isPlatformBrowser:()=>Eo,isPlatformServer:()=>lo,isPlatformWorkerApp:()=>xr,isPlatformWorkerUi:()=>wo,provideCloudflareLoader:()=>it,provideCloudinaryLoader:()=>si,provideImageKitLoader:()=>ve,provideImgixLoader:()=>de,registerLocaleData:()=>Si,\u0275DomAdapter:()=>v,\u0275NullViewportScroller:()=>Ur,\u0275PLATFORM_BROWSER_ID:()=>er,\u0275PLATFORM_SERVER_ID:()=>hr,\u0275PLATFORM_WORKER_APP_ID:()=>Gr,\u0275PLATFORM_WORKER_UI_ID:()=>go,\u0275getDOM:()=>o,\u0275parseCookieValue:()=>lr,\u0275setRootDomAdapter:()=>l});var n=a(4650);let e=null;function o(){return e}function l(ee){e||(e=ee)}class v{}const d=new n.InjectionToken("DocumentToken");let u=(()=>{class ee{historyGo(oe){throw new Error("Not implemented")}}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275prov=n.\u0275\u0275defineInjectable({token:ee,factory:function(){return function b(){return(0,n.\u0275\u0275inject)(x)}()},providedIn:"platform"}),ee})();const C=new n.InjectionToken("Location Initialized");let x=(()=>{class ee extends u{constructor(oe){super(),this._doc=oe,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(oe){const Ne=o().getGlobalEventTarget(this._doc,"window");return Ne.addEventListener("popstate",oe,!1),()=>Ne.removeEventListener("popstate",oe)}onHashChange(oe){const Ne=o().getGlobalEventTarget(this._doc,"window");return Ne.addEventListener("hashchange",oe,!1),()=>Ne.removeEventListener("hashchange",oe)}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(oe){this._location.pathname=oe}pushState(oe,Ne,bt){w()?this._history.pushState(oe,Ne,bt):this._location.hash=bt}replaceState(oe,Ne,bt){w()?this._history.replaceState(oe,Ne,bt):this._location.hash=bt}forward(){this._history.forward()}back(){this._history.back()}historyGo(oe=0){this._history.go(oe)}getState(){return this._history.state}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275inject(d))},ee.\u0275prov=n.\u0275\u0275defineInjectable({token:ee,factory:function(){return function g(){return new x((0,n.\u0275\u0275inject)(d))}()},providedIn:"platform"}),ee})();function w(){return!!window.history.pushState}function f(ee,Se){if(0==ee.length)return Se;if(0==Se.length)return ee;let oe=0;return ee.endsWith("/")&&oe++,Se.startsWith("/")&&oe++,2==oe?ee+Se.substring(1):1==oe?ee+Se:ee+"/"+Se}function S(ee){const Se=ee.match(/#|\?|$/),oe=Se&&Se.index||ee.length;return ee.slice(0,oe-("/"===ee[oe-1]?1:0))+ee.slice(oe)}function j(ee){return ee&&"?"!==ee[0]?"?"+ee:ee}let B=(()=>{class ee{historyGo(oe){throw new Error("Not implemented")}}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275prov=n.\u0275\u0275defineInjectable({token:ee,factory:function(){return(0,n.inject)(le)},providedIn:"root"}),ee})();const Z=new n.InjectionToken("appBaseHref");let le=(()=>{class ee extends B{constructor(oe,Ne){super(),this._platformLocation=oe,this._removeListenerFns=[],this._baseHref=Ne??this._platformLocation.getBaseHrefFromDOM()??(0,n.inject)(d).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(oe){this._removeListenerFns.push(this._platformLocation.onPopState(oe),this._platformLocation.onHashChange(oe))}getBaseHref(){return this._baseHref}prepareExternalUrl(oe){return f(this._baseHref,oe)}path(oe=!1){const Ne=this._platformLocation.pathname+j(this._platformLocation.search),bt=this._platformLocation.hash;return bt&&oe?`${Ne}${bt}`:Ne}pushState(oe,Ne,bt,Gt){const ei=this.prepareExternalUrl(bt+j(Gt));this._platformLocation.pushState(oe,Ne,ei)}replaceState(oe,Ne,bt,Gt){const ei=this.prepareExternalUrl(bt+j(Gt));this._platformLocation.replaceState(oe,Ne,ei)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(oe=0){this._platformLocation.historyGo?.(oe)}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275inject(u),n.\u0275\u0275inject(Z,8))},ee.\u0275prov=n.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),q=(()=>{class ee extends B{constructor(oe,Ne){super(),this._platformLocation=oe,this._baseHref="",this._removeListenerFns=[],null!=Ne&&(this._baseHref=Ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(oe){this._removeListenerFns.push(this._platformLocation.onPopState(oe),this._platformLocation.onHashChange(oe))}getBaseHref(){return this._baseHref}path(oe=!1){let Ne=this._platformLocation.hash;return null==Ne&&(Ne="#"),Ne.length>0?Ne.substring(1):Ne}prepareExternalUrl(oe){const Ne=f(this._baseHref,oe);return Ne.length>0?"#"+Ne:Ne}pushState(oe,Ne,bt,Gt){let ei=this.prepareExternalUrl(bt+j(Gt));0==ei.length&&(ei=this._platformLocation.pathname),this._platformLocation.pushState(oe,Ne,ei)}replaceState(oe,Ne,bt,Gt){let ei=this.prepareExternalUrl(bt+j(Gt));0==ei.length&&(ei=this._platformLocation.pathname),this._platformLocation.replaceState(oe,Ne,ei)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(oe=0){this._platformLocation.historyGo?.(oe)}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275inject(u),n.\u0275\u0275inject(Z,8))},ee.\u0275prov=n.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac}),ee})(),X=(()=>{class ee{constructor(oe){this._subject=new n.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=oe;const Ne=this._locationStrategy.getBaseHref();this._basePath=function xe(ee){if(new RegExp("^(https?:)?//").test(ee)){const[,oe]=ee.split(/\/\/[^\/]+/);return oe}return ee}(S(me(Ne))),this._locationStrategy.onPopState(bt=>{this._subject.emit({url:this.path(!0),pop:!0,state:bt.state,type:bt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(oe=!1){return this.normalize(this._locationStrategy.path(oe))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(oe,Ne=""){return this.path()==this.normalize(oe+j(Ne))}normalize(oe){return ee.stripTrailingSlash(function U(ee,Se){if(!ee||!Se.startsWith(ee))return Se;const oe=Se.substring(ee.length);return""===oe||["/",";","?","#"].includes(oe[0])?oe:Se}(this._basePath,me(oe)))}prepareExternalUrl(oe){return oe&&"/"!==oe[0]&&(oe="/"+oe),this._locationStrategy.prepareExternalUrl(oe)}go(oe,Ne="",bt=null){this._locationStrategy.pushState(bt,"",oe,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(oe+j(Ne)),bt)}replaceState(oe,Ne="",bt=null){this._locationStrategy.replaceState(bt,"",oe,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(oe+j(Ne)),bt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(oe=0){this._locationStrategy.historyGo?.(oe)}onUrlChange(oe){return this._urlChangeListeners.push(oe),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ne=>{this._notifyUrlChangeListeners(Ne.url,Ne.state)})),()=>{const Ne=this._urlChangeListeners.indexOf(oe);this._urlChangeListeners.splice(Ne,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(oe="",Ne){this._urlChangeListeners.forEach(bt=>bt(oe,Ne))}subscribe(oe,Ne,bt){return this._subject.subscribe({next:oe,error:Ne,complete:bt})}}return ee.normalizeQueryParams=j,ee.joinWithSlash=f,ee.stripTrailingSlash=S,ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275inject(B))},ee.\u0275prov=n.\u0275\u0275defineInjectable({token:ee,factory:function(){return function K(){return new X((0,n.\u0275\u0275inject)(B))}()},providedIn:"root"}),ee})();function me(ee){return ee.replace(/\/index.html$/,"")}const ne={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 Ze=(()=>((Ze=Ze||{})[Ze.Decimal=0]="Decimal",Ze[Ze.Percent=1]="Percent",Ze[Ze.Currency=2]="Currency",Ze[Ze.Scientific=3]="Scientific",Ze))(),Oe=(()=>((Oe=Oe||{})[Oe.Zero=0]="Zero",Oe[Oe.One=1]="One",Oe[Oe.Two=2]="Two",Oe[Oe.Few=3]="Few",Oe[Oe.Many=4]="Many",Oe[Oe.Other=5]="Other",Oe))(),nt=(()=>((nt=nt||{})[nt.Format=0]="Format",nt[nt.Standalone=1]="Standalone",nt))(),qe=(()=>((qe=qe||{})[qe.Narrow=0]="Narrow",qe[qe.Abbreviated=1]="Abbreviated",qe[qe.Wide=2]="Wide",qe[qe.Short=3]="Short",qe))(),ct=(()=>((ct=ct||{})[ct.Short=0]="Short",ct[ct.Medium=1]="Medium",ct[ct.Long=2]="Long",ct[ct.Full=3]="Full",ct))(),ot=(()=>((ot=ot||{})[ot.Decimal=0]="Decimal",ot[ot.Group=1]="Group",ot[ot.List=2]="List",ot[ot.PercentSign=3]="PercentSign",ot[ot.PlusSign=4]="PlusSign",ot[ot.MinusSign=5]="MinusSign",ot[ot.Exponential=6]="Exponential",ot[ot.SuperscriptingExponent=7]="SuperscriptingExponent",ot[ot.PerMille=8]="PerMille",ot[ot.Infinity=9]="Infinity",ot[ot.NaN=10]="NaN",ot[ot.TimeSeparator=11]="TimeSeparator",ot[ot.CurrencyDecimal=12]="CurrencyDecimal",ot[ot.CurrencyGroup=13]="CurrencyGroup",ot))(),dt=(()=>((dt=dt||{})[dt.Sunday=0]="Sunday",dt[dt.Monday=1]="Monday",dt[dt.Tuesday=2]="Tuesday",dt[dt.Wednesday=3]="Wednesday",dt[dt.Thursday=4]="Thursday",dt[dt.Friday=5]="Friday",dt[dt.Saturday=6]="Saturday",dt))();function jt(ee){return(0,n.\u0275findLocaleData)(ee)[n.\u0275LocaleDataIndex.LocaleId]}function zt(ee,Se,oe){const Ne=(0,n.\u0275findLocaleData)(ee),Gt=R([Ne[n.\u0275LocaleDataIndex.DayPeriodsFormat],Ne[n.\u0275LocaleDataIndex.DayPeriodsStandalone]],Se);return R(Gt,oe)}function ti(ee,Se,oe){const Ne=(0,n.\u0275findLocaleData)(ee),Gt=R([Ne[n.\u0275LocaleDataIndex.DaysFormat],Ne[n.\u0275LocaleDataIndex.DaysStandalone]],Se);return R(Gt,oe)}function mi(ee,Se,oe){const Ne=(0,n.\u0275findLocaleData)(ee),Gt=R([Ne[n.\u0275LocaleDataIndex.MonthsFormat],Ne[n.\u0275LocaleDataIndex.MonthsStandalone]],Se);return R(Gt,oe)}function Qt(ee,Se){return R((0,n.\u0275findLocaleData)(ee)[n.\u0275LocaleDataIndex.Eras],Se)}function Jt(ee){return(0,n.\u0275findLocaleData)(ee)[n.\u0275LocaleDataIndex.FirstDayOfWeek]}function lt(ee){return(0,n.\u0275findLocaleData)(ee)[n.\u0275LocaleDataIndex.WeekendRange]}function _t(ee,Se){return R((0,n.\u0275findLocaleData)(ee)[n.\u0275LocaleDataIndex.DateFormat],Se)}function Fe(ee,Se){return R((0,n.\u0275findLocaleData)(ee)[n.\u0275LocaleDataIndex.TimeFormat],Se)}function Ae(ee,Se){return R((0,n.\u0275findLocaleData)(ee)[n.\u0275LocaleDataIndex.DateTimeFormat],Se)}function H(ee,Se){const oe=(0,n.\u0275findLocaleData)(ee),Ne=oe[n.\u0275LocaleDataIndex.NumberSymbols][Se];if(typeof Ne>"u"){if(Se===ot.CurrencyDecimal)return oe[n.\u0275LocaleDataIndex.NumberSymbols][ot.Decimal];if(Se===ot.CurrencyGroup)return oe[n.\u0275LocaleDataIndex.NumberSymbols][ot.Group]}return Ne}function W(ee,Se){return(0,n.\u0275findLocaleData)(ee)[n.\u0275LocaleDataIndex.NumberFormats][Se]}function He(ee){return(0,n.\u0275findLocaleData)(ee)[n.\u0275LocaleDataIndex.CurrencySymbol]||null}function Te(ee){return(0,n.\u0275findLocaleData)(ee)[n.\u0275LocaleDataIndex.CurrencyName]||null}function Be(ee){return(0,n.\u0275getLocaleCurrencyCode)(ee)}const Pe=n.\u0275getLocalePluralCase;function Qe(ee){if(!ee[n.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${ee[n.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ut(ee){const Se=(0,n.\u0275findLocaleData)(ee);return Qe(Se),(Se[n.\u0275LocaleDataIndex.ExtraData][2]||[]).map(Ne=>"string"==typeof Ne?be(Ne):[be(Ne[0]),be(Ne[1])])}function te(ee,Se,oe){const Ne=(0,n.\u0275findLocaleData)(ee);Qe(Ne);const Gt=R([Ne[n.\u0275LocaleDataIndex.ExtraData][0],Ne[n.\u0275LocaleDataIndex.ExtraData][1]],Se)||[];return R(Gt,oe)||[]}function k(ee){return(0,n.\u0275findLocaleData)(ee)[n.\u0275LocaleDataIndex.Directionality]}function R(ee,Se){for(let oe=Se;oe>-1;oe--)if(typeof ee[oe]<"u")return ee[oe];throw new Error("Locale data API: locale data undefined")}function be(ee){const[Se,oe]=ee.split(":");return{hours:+Se,minutes:+oe}}function et(ee,Se,oe="en"){const Ne=function mt(ee){return(0,n.\u0275findLocaleData)(ee)[n.\u0275LocaleDataIndex.Currencies]}(oe)[ee]||ne[ee]||[],bt=Ne[1];return"narrow"===Se&&"string"==typeof bt?bt:Ne[0]||ee}const Ue=2;function ge(ee){let Se;const oe=ne[ee];return oe&&(Se=oe[2]),"number"==typeof Se?Se:Ue}const ke=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,gt={},Pt=/((?:[^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 Bt=(()=>((Bt=Bt||{})[Bt.Short=0]="Short",Bt[Bt.ShortGMT=1]="ShortGMT",Bt[Bt.Long=2]="Long",Bt[Bt.Extended=3]="Extended",Bt))(),st=(()=>((st=st||{})[st.FullYear=0]="FullYear",st[st.Month=1]="Month",st[st.Date=2]="Date",st[st.Hours=3]="Hours",st[st.Minutes=4]="Minutes",st[st.Seconds=5]="Seconds",st[st.FractionalSeconds=6]="FractionalSeconds",st[st.Day=7]="Day",st))(),Nt=(()=>((Nt=Nt||{})[Nt.DayPeriods=0]="DayPeriods",Nt[Nt.Days=1]="Days",Nt[Nt.Months=2]="Months",Nt[Nt.Eras=3]="Eras",Nt))();function at(ee,Se,oe,Ne){let bt=function Mt(ee){if(se(ee))return ee;if("number"==typeof ee&&!isNaN(ee))return new Date(ee);if("string"==typeof ee){if(ee=ee.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ee)){const[bt,Gt=1,ei=1]=ee.split("-").map(Li=>+Li);return Lt(bt,Gt-1,ei)}const oe=parseFloat(ee);if(!isNaN(ee-oe))return new Date(oe);let Ne;if(Ne=ee.match(ke))return function It(ee){const Se=new Date(0);let oe=0,Ne=0;const bt=ee[8]?Se.setUTCFullYear:Se.setFullYear,Gt=ee[8]?Se.setUTCHours:Se.setHours;ee[9]&&(oe=Number(ee[9]+ee[10]),Ne=Number(ee[9]+ee[11])),bt.call(Se,Number(ee[1]),Number(ee[2])-1,Number(ee[3]));const ei=Number(ee[4]||0)-oe,Li=Number(ee[5]||0)-Ne,En=Number(ee[6]||0),wn=Math.floor(1e3*parseFloat("0."+(ee[7]||0)));return Gt.call(Se,ei,Li,En,wn),Se}(Ne)}const Se=new Date(ee);if(!se(Se))throw new Error(`Unable to convert "${ee}" into a date`);return Se}(ee);Se=Rt(oe,Se)||Se;let Li,ei=[];for(;Se;){if(Li=Pt.exec(Se),!Li){ei.push(Se);break}{ei=ei.concat(Li.slice(1));const yn=ei.pop();if(!yn)break;Se=yn}}let En=bt.getTimezoneOffset();Ne&&(En=xt(Ne,En),bt=function wt(ee,Se,oe){const Ne=oe?-1:1,bt=ee.getTimezoneOffset();return function Ht(ee,Se){return(ee=new Date(ee.getTime())).setMinutes(ee.getMinutes()+Se),ee}(ee,Ne*(xt(Se,bt)-bt))}(bt,Ne,!0));let wn="";return ei.forEach(yn=>{const Yi=function We(ee){if(Re[ee])return Re[ee];let Se;switch(ee){case"G":case"GG":case"GGG":Se=Zt(Nt.Eras,qe.Abbreviated);break;case"GGGG":Se=Zt(Nt.Eras,qe.Wide);break;case"GGGGG":Se=Zt(Nt.Eras,qe.Narrow);break;case"y":Se=vt(st.FullYear,1,0,!1,!0);break;case"yy":Se=vt(st.FullYear,2,0,!0,!0);break;case"yyy":Se=vt(st.FullYear,3,0,!1,!0);break;case"yyyy":Se=vt(st.FullYear,4,0,!1,!0);break;case"Y":Se=Ee(1);break;case"YY":Se=Ee(2,!0);break;case"YYY":Se=Ee(3);break;case"YYYY":Se=Ee(4);break;case"M":case"L":Se=vt(st.Month,1,1);break;case"MM":case"LL":Se=vt(st.Month,2,1);break;case"MMM":Se=Zt(Nt.Months,qe.Abbreviated);break;case"MMMM":Se=Zt(Nt.Months,qe.Wide);break;case"MMMMM":Se=Zt(Nt.Months,qe.Narrow);break;case"LLL":Se=Zt(Nt.Months,qe.Abbreviated,nt.Standalone);break;case"LLLL":Se=Zt(Nt.Months,qe.Wide,nt.Standalone);break;case"LLLLL":Se=Zt(Nt.Months,qe.Narrow,nt.Standalone);break;case"w":Se=re(1);break;case"ww":Se=re(2);break;case"W":Se=re(1,!0);break;case"d":Se=vt(st.Date,1);break;case"dd":Se=vt(st.Date,2);break;case"c":case"cc":Se=vt(st.Day,1);break;case"ccc":Se=Zt(Nt.Days,qe.Abbreviated,nt.Standalone);break;case"cccc":Se=Zt(Nt.Days,qe.Wide,nt.Standalone);break;case"ccccc":Se=Zt(Nt.Days,qe.Narrow,nt.Standalone);break;case"cccccc":Se=Zt(Nt.Days,qe.Short,nt.Standalone);break;case"E":case"EE":case"EEE":Se=Zt(Nt.Days,qe.Abbreviated);break;case"EEEE":Se=Zt(Nt.Days,qe.Wide);break;case"EEEEE":Se=Zt(Nt.Days,qe.Narrow);break;case"EEEEEE":Se=Zt(Nt.Days,qe.Short);break;case"a":case"aa":case"aaa":Se=Zt(Nt.DayPeriods,qe.Abbreviated);break;case"aaaa":Se=Zt(Nt.DayPeriods,qe.Wide);break;case"aaaaa":Se=Zt(Nt.DayPeriods,qe.Narrow);break;case"b":case"bb":case"bbb":Se=Zt(Nt.DayPeriods,qe.Abbreviated,nt.Standalone,!0);break;case"bbbb":Se=Zt(Nt.DayPeriods,qe.Wide,nt.Standalone,!0);break;case"bbbbb":Se=Zt(Nt.DayPeriods,qe.Narrow,nt.Standalone,!0);break;case"B":case"BB":case"BBB":Se=Zt(Nt.DayPeriods,qe.Abbreviated,nt.Format,!0);break;case"BBBB":Se=Zt(Nt.DayPeriods,qe.Wide,nt.Format,!0);break;case"BBBBB":Se=Zt(Nt.DayPeriods,qe.Narrow,nt.Format,!0);break;case"h":Se=vt(st.Hours,1,-12);break;case"hh":Se=vt(st.Hours,2,-12);break;case"H":Se=vt(st.Hours,1);break;case"HH":Se=vt(st.Hours,2);break;case"m":Se=vt(st.Minutes,1);break;case"mm":Se=vt(st.Minutes,2);break;case"s":Se=vt(st.Seconds,1);break;case"ss":Se=vt(st.Seconds,2);break;case"S":Se=vt(st.FractionalSeconds,1);break;case"SS":Se=vt(st.FractionalSeconds,2);break;case"SSS":Se=vt(st.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Se=_i(Bt.Short);break;case"ZZZZZ":Se=_i(Bt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Se=_i(Bt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Se=_i(Bt.Long);break;default:return null}return Re[ee]=Se,Se}(yn);wn+=Yi?Yi(bt,oe,En):"''"===yn?"'":yn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),wn}function Lt(ee,Se,oe){const Ne=new Date(0);return Ne.setFullYear(ee,Se,oe),Ne.setHours(0,0,0),Ne}function Rt(ee,Se){const oe=jt(ee);if(gt[oe]=gt[oe]||{},gt[oe][Se])return gt[oe][Se];let Ne="";switch(Se){case"shortDate":Ne=_t(ee,ct.Short);break;case"mediumDate":Ne=_t(ee,ct.Medium);break;case"longDate":Ne=_t(ee,ct.Long);break;case"fullDate":Ne=_t(ee,ct.Full);break;case"shortTime":Ne=Fe(ee,ct.Short);break;case"mediumTime":Ne=Fe(ee,ct.Medium);break;case"longTime":Ne=Fe(ee,ct.Long);break;case"fullTime":Ne=Fe(ee,ct.Full);break;case"short":const bt=Rt(ee,"shortTime"),Gt=Rt(ee,"shortDate");Ne=ai(Ae(ee,ct.Short),[bt,Gt]);break;case"medium":const ei=Rt(ee,"mediumTime"),Li=Rt(ee,"mediumDate");Ne=ai(Ae(ee,ct.Medium),[ei,Li]);break;case"long":const En=Rt(ee,"longTime"),wn=Rt(ee,"longDate");Ne=ai(Ae(ee,ct.Long),[En,wn]);break;case"full":const yn=Rt(ee,"fullTime"),Yi=Rt(ee,"fullDate");Ne=ai(Ae(ee,ct.Full),[yn,Yi])}return Ne&&(gt[oe][Se]=Ne),Ne}function ai(ee,Se){return Se&&(ee=ee.replace(/\{([^}]+)}/g,function(oe,Ne){return null!=Se&&Ne in Se?Se[Ne]:oe})),ee}function Xt(ee,Se,oe="-",Ne,bt){let Gt="";(ee<0||bt&&ee<=0)&&(bt?ee=1-ee:(ee=-ee,Gt=oe));let ei=String(ee);for(;ei.length<Se;)ei="0"+ei;return Ne&&(ei=ei.slice(ei.length-Se)),Gt+ei}function vt(ee,Se,oe=0,Ne=!1,bt=!1){return function(Gt,ei){let Li=function Ut(ee,Se){switch(ee){case st.FullYear:return Se.getFullYear();case st.Month:return Se.getMonth();case st.Date:return Se.getDate();case st.Hours:return Se.getHours();case st.Minutes:return Se.getMinutes();case st.Seconds:return Se.getSeconds();case st.FractionalSeconds:return Se.getMilliseconds();case st.Day:return Se.getDay();default:throw new Error(`Unknown DateType value "${ee}".`)}}(ee,Gt);if((oe>0||Li>-oe)&&(Li+=oe),ee===st.Hours)0===Li&&-12===oe&&(Li=12);else if(ee===st.FractionalSeconds)return function ui(ee,Se){return Xt(ee,3).substring(0,Se)}(Li,Se);const En=H(ei,ot.MinusSign);return Xt(Li,Se,En,Ne,bt)}}function Zt(ee,Se,oe=nt.Format,Ne=!1){return function(bt,Gt){return function Ci(ee,Se,oe,Ne,bt,Gt){switch(oe){case Nt.Months:return mi(Se,bt,Ne)[ee.getMonth()];case Nt.Days:return ti(Se,bt,Ne)[ee.getDay()];case Nt.DayPeriods:const ei=ee.getHours(),Li=ee.getMinutes();if(Gt){const wn=ut(Se),yn=te(Se,bt,Ne),Yi=wn.findIndex(tr=>{if(Array.isArray(tr)){const[Cn,In]=tr,Or=ei>=Cn.hours&&Li>=Cn.minutes,Er=ei<In.hours||ei===In.hours&&Li<In.minutes;if(Cn.hours<In.hours){if(Or&&Er)return!0}else if(Or||Er)return!0}else if(tr.hours===ei&&tr.minutes===Li)return!0;return!1});if(-1!==Yi)return yn[Yi]}return zt(Se,bt,Ne)[ei<12?0:1];case Nt.Eras:return Qt(Se,Ne)[ee.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${oe}`)}}(bt,Gt,ee,Se,oe,Ne)}}function _i(ee){return function(Se,oe,Ne){const bt=-1*Ne,Gt=H(oe,ot.MinusSign),ei=bt>0?Math.floor(bt/60):Math.ceil(bt/60);switch(ee){case Bt.Short:return(bt>=0?"+":"")+Xt(ei,2,Gt)+Xt(Math.abs(bt%60),2,Gt);case Bt.ShortGMT:return"GMT"+(bt>=0?"+":"")+Xt(ei,1,Gt);case Bt.Long:return"GMT"+(bt>=0?"+":"")+Xt(ei,2,Gt)+":"+Xt(Math.abs(bt%60),2,Gt);case Bt.Extended:return 0===Ne?"Z":(bt>=0?"+":"")+Xt(ei,2,Gt)+":"+Xt(Math.abs(bt%60),2,Gt);default:throw new Error(`Unknown zone width "${ee}"`)}}}const pi=0,Bi=4;function ue(ee){return Lt(ee.getFullYear(),ee.getMonth(),ee.getDate()+(Bi-ee.getDay()))}function re(ee,Se=!1){return function(oe,Ne){let bt;if(Se){const Gt=new Date(oe.getFullYear(),oe.getMonth(),1).getDay()-1,ei=oe.getDate();bt=1+Math.floor((ei+Gt)/7)}else{const Gt=ue(oe),ei=function ze(ee){const Se=Lt(ee,pi,1).getDay();return Lt(ee,0,1+(Se<=Bi?Bi:Bi+7)-Se)}(Gt.getFullYear()),Li=Gt.getTime()-ei.getTime();bt=1+Math.round(Li/6048e5)}return Xt(bt,ee,H(Ne,ot.MinusSign))}}function Ee(ee,Se=!1){return function(oe,Ne){return Xt(ue(oe).getFullYear(),ee,H(Ne,ot.MinusSign),Se)}}const Re={};function xt(ee,Se){ee=ee.replace(/:/g,"");const oe=Date.parse("Jan 01, 1970 00:00:00 "+ee)/6e4;return isNaN(oe)?Se:oe}function se(ee){return ee instanceof Date&&!isNaN(ee.valueOf())}const we=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Le=22,Ie=".",Ot="0",Me=";",yt=",",St="#",ii="\xa4",Ki="%";function Pn(ee,Se,oe,Ne,bt,Gt,ei=!1){let Li="",En=!1;if(isFinite(ee)){let wn=function Xi(ee){let Ne,bt,Gt,ei,Li,Se=Math.abs(ee)+"",oe=0;for((bt=Se.indexOf(Ie))>-1&&(Se=Se.replace(Ie,"")),(Gt=Se.search(/e/i))>0?(bt<0&&(bt=Gt),bt+=+Se.slice(Gt+1),Se=Se.substring(0,Gt)):bt<0&&(bt=Se.length),Gt=0;Se.charAt(Gt)===Ot;Gt++);if(Gt===(Li=Se.length))Ne=[0],bt=1;else{for(Li--;Se.charAt(Li)===Ot;)Li--;for(bt-=Gt,Ne=[],ei=0;Gt<=Li;Gt++,ei++)Ne[ei]=Number(Se.charAt(Gt))}return bt>Le&&(Ne=Ne.splice(0,Le-1),oe=bt-1,bt=1),{digits:Ne,exponent:oe,integerLen:bt}}(ee);ei&&(wn=function ar(ee){if(0===ee.digits[0])return ee;const Se=ee.digits.length-ee.integerLen;return ee.exponent?ee.exponent+=2:(0===Se?ee.digits.push(0,0):1===Se&&ee.digits.push(0),ee.integerLen+=2),ee}(wn));let yn=Se.minInt,Yi=Se.minFrac,tr=Se.maxFrac;if(Gt){const jr=Gt.match(we);if(null===jr)throw new Error(`${Gt} is not a valid digit info`);const mo=jr[1],s=jr[3],m=jr[5];null!=mo&&(yn=Ln(mo)),null!=s&&(Yi=Ln(s)),null!=m?tr=Ln(m):null!=s&&Yi>tr&&(tr=Yi)}!function Mn(ee,Se,oe){if(Se>oe)throw new Error(`The minimum number of digits after fraction (${Se}) is higher than the maximum (${oe}).`);let Ne=ee.digits,bt=Ne.length-ee.integerLen;const Gt=Math.min(Math.max(Se,bt),oe);let ei=Gt+ee.integerLen,Li=Ne[ei];if(ei>0){Ne.splice(Math.max(ee.integerLen,ei));for(let Yi=ei;Yi<Ne.length;Yi++)Ne[Yi]=0}else{bt=Math.max(0,bt),ee.integerLen=1,Ne.length=Math.max(1,ei=Gt+1),Ne[0]=0;for(let Yi=1;Yi<ei;Yi++)Ne[Yi]=0}if(Li>=5)if(ei-1<0){for(let Yi=0;Yi>ei;Yi--)Ne.unshift(0),ee.integerLen++;Ne.unshift(1),ee.integerLen++}else Ne[ei-1]++;for(;bt<Math.max(0,Gt);bt++)Ne.push(0);let En=0!==Gt;const wn=Se+ee.integerLen,yn=Ne.reduceRight(function(Yi,tr,Cn,In){return In[Cn]=(tr+=Yi)<10?tr:tr-10,En&&(0===In[Cn]&&Cn>=wn?In.pop():En=!1),tr>=10?1:0},0);yn&&(Ne.unshift(yn),ee.integerLen++)}(wn,Yi,tr);let Cn=wn.digits,In=wn.integerLen;const Or=wn.exponent;let Er=[];for(En=Cn.every(jr=>!jr);In<yn;In++)Cn.unshift(0);for(;In<0;In++)Cn.unshift(0);In>0?Er=Cn.splice(In,Cn.length):(Er=Cn,Cn=[0]);const $o=[];for(Cn.length>=Se.lgSize&&$o.unshift(Cn.splice(-Se.lgSize,Cn.length).join(""));Cn.length>Se.gSize;)$o.unshift(Cn.splice(-Se.gSize,Cn.length).join(""));Cn.length&&$o.unshift(Cn.join("")),Li=$o.join(H(oe,Ne)),Er.length&&(Li+=H(oe,bt)+Er.join("")),Or&&(Li+=H(oe,ot.Exponential)+"+"+Or)}else Li=H(oe,ot.Infinity);return Li=ee<0&&!En?Se.negPre+Li+Se.negSuf:Se.posPre+Li+Se.posSuf,Li}function ir(ee,Se,oe,Ne,bt){const ei=fr(W(Se,Ze.Currency),H(Se,ot.MinusSign));return ei.minFrac=ge(Ne),ei.maxFrac=ei.minFrac,Pn(ee,ei,Se,ot.CurrencyGroup,ot.CurrencyDecimal,bt).replace(ii,oe).replace(ii,"").trim()}function Fr(ee,Se,oe){return Pn(ee,fr(W(Se,Ze.Percent),H(Se,ot.MinusSign)),Se,ot.Group,ot.Decimal,oe,!0).replace(new RegExp(Ki,"g"),H(Se,ot.PercentSign))}function yr(ee,Se,oe){return Pn(ee,fr(W(Se,Ze.Decimal),H(Se,ot.MinusSign)),Se,ot.Group,ot.Decimal,oe)}function fr(ee,Se="-"){const oe={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ne=ee.split(Me),bt=Ne[0],Gt=Ne[1],ei=-1!==bt.indexOf(Ie)?bt.split(Ie):[bt.substring(0,bt.lastIndexOf(Ot)+1),bt.substring(bt.lastIndexOf(Ot)+1)],Li=ei[0],En=ei[1]||"";oe.posPre=Li.substring(0,Li.indexOf(St));for(let yn=0;yn<En.length;yn++){const Yi=En.charAt(yn);Yi===Ot?oe.minFrac=oe.maxFrac=yn+1:Yi===St?oe.maxFrac=yn+1:oe.posSuf+=Yi}const wn=Li.split(yt);if(oe.gSize=wn[1]?wn[1].length:0,oe.lgSize=wn[2]||wn[1]?(wn[2]||wn[1]).length:0,Gt){const yn=bt.length-oe.posPre.length-oe.posSuf.length,Yi=Gt.indexOf(St);oe.negPre=Gt.substring(0,Yi).replace(/'/g,""),oe.negSuf=Gt.slice(Yi+yn).replace(/'/g,"")}else oe.negPre=Se+oe.posPre,oe.negSuf=oe.posSuf;return oe}function Ln(ee){const Se=parseInt(ee);if(isNaN(Se))throw new Error("Invalid integer literal when parsing "+ee);return Se}let Rn=(()=>{class ee{}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275prov=n.\u0275\u0275defineInjectable({token:ee,factory:function(oe){let Ne=null;return oe?Ne=new oe:(bt=n.\u0275\u0275inject(n.LOCALE_ID),Ne=new fo(bt)),Ne;var bt},providedIn:"root"}),ee})();function zn(ee,Se,oe,Ne){let bt=`=${ee}`;if(Se.indexOf(bt)>-1||(bt=oe.getPluralCategory(ee,Ne),Se.indexOf(bt)>-1))return bt;if(Se.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${ee}"`)}let fo=(()=>{class ee extends Rn{constructor(oe){super(),this.locale=oe}getPluralCategory(oe,Ne){switch(Pe(Ne||this.locale)(oe)){case Oe.Zero:return"zero";case Oe.One:return"one";case Oe.Two:return"two";case Oe.Few:return"few";case Oe.Many:return"many";default:return"other"}}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275inject(n.LOCALE_ID))},ee.\u0275prov=n.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac}),ee})();function Si(ee,Se,oe){return(0,n.\u0275registerLocaleData)(ee,Se,oe)}function lr(ee,Se){Se=encodeURIComponent(Se);for(const oe of ee.split(";")){const Ne=oe.indexOf("="),[bt,Gt]=-1==Ne?[oe,""]:[oe.slice(0,Ne),oe.slice(Ne+1)];if(bt.trim()===Se)return decodeURIComponent(Gt)}return null}const Fn=/\s+/,bi=[];let gi=(()=>{class ee{constructor(oe,Ne,bt,Gt){this._iterableDiffers=oe,this._keyValueDiffers=Ne,this._ngEl=bt,this._renderer=Gt,this.initialClasses=bi,this.stateMap=new Map}set klass(oe){this.initialClasses=null!=oe?oe.trim().split(Fn):bi}set ngClass(oe){this.rawClass="string"==typeof oe?oe.trim().split(Fn):oe}ngDoCheck(){for(const Ne of this.initialClasses)this._updateState(Ne,!0);const oe=this.rawClass;if(Array.isArray(oe)||oe instanceof Set)for(const Ne of oe)this._updateState(Ne,!0);else if(null!=oe)for(const Ne of Object.keys(oe))this._updateState(Ne,Boolean(oe[Ne]));this._applyStateDiff()}_updateState(oe,Ne){const bt=this.stateMap.get(oe);void 0!==bt?(bt.enabled!==Ne&&(bt.changed=!0,bt.enabled=Ne),bt.touched=!0):this.stateMap.set(oe,{enabled:Ne,changed:!0,touched:!0})}_applyStateDiff(){for(const oe of this.stateMap){const Ne=oe[0],bt=oe[1];bt.changed?(this._toggleClass(Ne,bt.enabled),bt.changed=!1):bt.touched||(bt.enabled&&this._toggleClass(Ne,!1),this.stateMap.delete(Ne)),bt.touched=!1}}_toggleClass(oe,Ne){(oe=oe.trim()).length>0&&oe.split(Fn).forEach(bt=>{Ne?this._renderer.addClass(this._ngEl.nativeElement,bt):this._renderer.removeClass(this._ngEl.nativeElement,bt)})}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2))},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),ee})(),ji=(()=>{class ee{constructor(oe){this._viewContainerRef=oe,this.ngComponentOutlet=null}ngOnChanges(oe){const{_viewContainerRef:Ne,ngComponentOutletNgModule:bt,ngComponentOutletNgModuleFactory:Gt}=this;if(Ne.clear(),this._componentRef=void 0,this.ngComponentOutlet){const ei=this.ngComponentOutletInjector||Ne.parentInjector;(oe.ngComponentOutletNgModule||oe.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=bt?(0,n.createNgModule)(bt,Dn(ei)):Gt?Gt.create(Dn(ei)):void 0),this._componentRef=Ne.createComponent(this.ngComponentOutlet,{index:Ne.length,injector:ei,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),ee})();function Dn(ee){return ee.get(n.NgModuleRef).injector}class pn{constructor(Se,oe,Ne,bt){this.$implicit=Se,this.ngForOf=oe,this.index=Ne,this.count=bt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let qn=(()=>{class ee{set ngForOf(oe){this._ngForOf=oe,this._ngForOfDirty=!0}set ngForTrackBy(oe){this._trackByFn=oe}get ngForTrackBy(){return this._trackByFn}constructor(oe,Ne,bt){this._viewContainer=oe,this._template=Ne,this._differs=bt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(oe){oe&&(this._template=oe)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const oe=this._ngForOf;!this._differ&&oe&&(this._differ=this._differs.find(oe).create(this.ngForTrackBy))}if(this._differ){const oe=this._differ.diff(this._ngForOf);oe&&this._applyChanges(oe)}}_applyChanges(oe){const Ne=this._viewContainer;oe.forEachOperation((bt,Gt,ei)=>{if(null==bt.previousIndex)Ne.createEmbeddedView(this._template,new pn(bt.item,this._ngForOf,-1,-1),null===ei?void 0:ei);else if(null==ei)Ne.remove(null===Gt?void 0:Gt);else if(null!==Gt){const Li=Ne.get(Gt);Ne.move(Li,ei),Mi(Li,bt)}});for(let bt=0,Gt=Ne.length;bt<Gt;bt++){const Li=Ne.get(bt).context;Li.index=bt,Li.count=Gt,Li.ngForOf=this._ngForOf}oe.forEachIdentityChange(bt=>{Mi(Ne.get(bt.currentIndex),bt)})}static ngTemplateContextGuard(oe,Ne){return!0}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),ee})();function Mi(ee,Se){ee.context.$implicit=Se.item}let Qn=(()=>{class ee{constructor(oe,Ne){this._viewContainer=oe,this._context=new Vi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ne}set ngIf(oe){this._context.$implicit=this._context.ngIf=oe,this._updateView()}set ngIfThen(oe){Bn("ngIfThen",oe),this._thenTemplateRef=oe,this._thenViewRef=null,this._updateView()}set ngIfElse(oe){Bn("ngIfElse",oe),this._elseTemplateRef=oe,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(oe,Ne){return!0}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef))},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),ee})();class Vi{constructor(){this.$implicit=null,this.ngIf=null}}function Bn(ee,Se){if(Se&&!Se.createEmbeddedView)throw new Error(`${ee} must be a TemplateRef, but received '${(0,n.\u0275stringify)(Se)}'.`)}class Br{constructor(Se,oe){this._viewContainerRef=Se,this._templateRef=oe,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Se){Se&&!this._created?this.create():!Se&&this._created&&this.destroy()}}let On=(()=>{class ee{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(oe){this._ngSwitch=oe,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(oe){this._defaultViews.push(oe)}_matchCase(oe){const Ne=oe==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ne}_updateDefaultCases(oe){if(this._defaultViews.length>0&&oe!==this._defaultUsed){this._defaultUsed=oe;for(const Ne of this._defaultViews)Ne.enforceState(oe)}}}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),ee})(),Yn=(()=>{class ee{constructor(oe,Ne,bt){this.ngSwitch=bt,bt._addCase(),this._view=new Br(oe,Ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(On,9))},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),ee})(),Ei=(()=>{class ee{constructor(oe,Ne,bt){bt._addDefault(new Br(oe,Ne))}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(On,9))},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","ngSwitchDefault",""]],standalone:!0}),ee})(),ht=(()=>{class ee{constructor(oe){this._localization=oe,this._caseViews={}}set ngPlural(oe){this._updateView(oe)}addCase(oe,Ne){this._caseViews[oe]=Ne}_updateView(oe){this._clearViews();const bt=zn(oe,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[bt])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(oe){oe&&(this._activeView=oe,this._activeView.create())}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(Rn))},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0}),ee})(),ni=(()=>{class ee{constructor(oe,Ne,bt,Gt){this.value=oe;const ei=!isNaN(Number(oe));Gt.addCase(ei?`=${oe}`:oe,new Br(bt,Ne))}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275injectAttribute("ngPluralCase"),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(ht,1))},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","ngPluralCase",""]],standalone:!0}),ee})(),he=(()=>{class ee{constructor(oe,Ne,bt){this._ngEl=oe,this._differs=Ne,this._renderer=bt,this._ngStyle=null,this._differ=null}set ngStyle(oe){this._ngStyle=oe,!this._differ&&oe&&(this._differ=this._differs.find(oe).create())}ngDoCheck(){if(this._differ){const oe=this._differ.diff(this._ngStyle);oe&&this._applyChanges(oe)}}_setStyle(oe,Ne){const[bt,Gt]=oe.split("."),ei=-1===bt.indexOf("-")?void 0:n.RendererStyleFlags2.DashCase;null!=Ne?this._renderer.setStyle(this._ngEl.nativeElement,bt,Gt?`${Ne}${Gt}`:Ne,ei):this._renderer.removeStyle(this._ngEl.nativeElement,bt,ei)}_applyChanges(oe){oe.forEachRemovedItem(Ne=>this._setStyle(Ne.key,null)),oe.forEachAddedItem(Ne=>this._setStyle(Ne.key,Ne.currentValue)),oe.forEachChangedItem(Ne=>this._setStyle(Ne.key,Ne.currentValue))}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.Renderer2))},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),ee})(),je=(()=>{class ee{constructor(oe){this._viewContainerRef=oe,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(oe){if(oe.ngTemplateOutlet||oe.ngTemplateOutletInjector){const Ne=this._viewContainerRef;if(this._viewRef&&Ne.remove(Ne.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:bt,ngTemplateOutletContext:Gt,ngTemplateOutletInjector:ei}=this;this._viewRef=Ne.createEmbeddedView(bt,Gt,ei?{injector:ei}:void 0)}else this._viewRef=null}else this._viewRef&&oe.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),ee})();function At(ee,Se){return new n.\u0275RuntimeError(2100,!1)}class li{createSubscription(Se,oe){return Se.subscribe({next:oe,error:Ne=>{throw Ne}})}dispose(Se){Se.unsubscribe()}}class zi{createSubscription(Se,oe){return Se.then(oe,Ne=>{throw Ne})}dispose(Se){}}const dn=new zi,en=new li;let Hn=(()=>{class ee{constructor(oe){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=oe}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(oe){return this._obj?oe!==this._obj?(this._dispose(),this.transform(oe)):this._latestValue:(oe&&this._subscribe(oe),this._latestValue)}_subscribe(oe){this._obj=oe,this._strategy=this._selectStrategy(oe),this._subscription=this._strategy.createSubscription(oe,Ne=>this._updateLatestValue(oe,Ne))}_selectStrategy(oe){if((0,n.\u0275isPromise)(oe))return dn;if((0,n.\u0275isSubscribable)(oe))return en;throw At()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(oe,Ne){oe===this._obj&&(this._latestValue=Ne,this._ref.markForCheck())}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef,16))},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"async",type:ee,pure:!1,standalone:!0}),ee})(),Tn=(()=>{class ee{transform(oe){if(null==oe)return null;if("string"!=typeof oe)throw At();return oe.toLowerCase()}}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"lowercase",type:ee,pure:!0,standalone:!0}),ee})();const Bo=/(?:[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 Fi=(()=>{class ee{transform(oe){if(null==oe)return null;if("string"!=typeof oe)throw At();return oe.replace(Bo,Ne=>Ne[0].toUpperCase()+Ne.slice(1).toLowerCase())}}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"titlecase",type:ee,pure:!0,standalone:!0}),ee})(),bn=(()=>{class ee{transform(oe){if(null==oe)return null;if("string"!=typeof oe)throw At();return oe.toUpperCase()}}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"uppercase",type:ee,pure:!0,standalone:!0}),ee})();const dr=new n.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE"),eo=new n.InjectionToken("DATE_PIPE_DEFAULT_OPTIONS");let $n=(()=>{class ee{constructor(oe,Ne,bt){this.locale=oe,this.defaultTimezone=Ne,this.defaultOptions=bt}transform(oe,Ne,bt,Gt){if(null==oe||""===oe||oe!=oe)return null;try{return at(oe,Ne??this.defaultOptions?.dateFormat??"mediumDate",Gt||this.locale,bt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(ei){throw At()}}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(dr,24),n.\u0275\u0275directiveInject(eo,24))},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"date",type:ee,pure:!0,standalone:!0}),ee})();const ao=/#/g;let Dr=(()=>{class ee{constructor(oe){this._localization=oe}transform(oe,Ne,bt){if(null==oe)return"";if("object"!=typeof Ne||null===Ne)throw At();return Ne[zn(oe,Object.keys(Ne),this._localization,bt)].replace(ao,oe.toString())}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(Rn,16))},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nPlural",type:ee,pure:!0,standalone:!0}),ee})(),Hr=(()=>{class ee{transform(oe,Ne){if(null==oe)return"";if("object"!=typeof Ne||"string"!=typeof oe)throw At();return Ne.hasOwnProperty(oe)?Ne[oe]:Ne.hasOwnProperty("other")?Ne.other:""}}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nSelect",type:ee,pure:!0,standalone:!0}),ee})(),Tr=(()=>{class ee{transform(oe){return JSON.stringify(oe,null,2)}}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"json",type:ee,pure:!1,standalone:!0}),ee})(),Cr=(()=>{class ee{constructor(oe){this.differs=oe,this.keyValues=[],this.compareFn=or}transform(oe,Ne=or){if(!oe||!(oe instanceof Map)&&"object"!=typeof oe)return null;this.differ||(this.differ=this.differs.find(oe).create());const bt=this.differ.diff(oe),Gt=Ne!==this.compareFn;return bt&&(this.keyValues=[],bt.forEachItem(ei=>{this.keyValues.push(function Kn(ee,Se){return{key:ee,value:Se}}(ei.key,ei.currentValue))})),(bt||Gt)&&(this.keyValues.sort(Ne),this.compareFn=Ne),this.keyValues}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.KeyValueDiffers,16))},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"keyvalue",type:ee,pure:!1,standalone:!0}),ee})();function or(ee,Se){const oe=ee.key,Ne=Se.key;if(oe===Ne)return 0;if(void 0===oe)return 1;if(void 0===Ne)return-1;if(null===oe)return 1;if(null===Ne)return-1;if("string"==typeof oe&&"string"==typeof Ne)return oe<Ne?-1:1;if("number"==typeof oe&&"number"==typeof Ne)return oe-Ne;if("boolean"==typeof oe&&"boolean"==typeof Ne)return oe<Ne?-1:1;const bt=String(oe),Gt=String(Ne);return bt==Gt?0:bt<Gt?-1:1}let Nr=(()=>{class ee{constructor(oe){this._locale=oe}transform(oe,Ne,bt){if(!Kr(oe))return null;bt=bt||this._locale;try{return yr(Pr(oe),bt,Ne)}catch(Gt){throw At()}}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"number",type:ee,pure:!0,standalone:!0}),ee})(),ur=(()=>{class ee{constructor(oe){this._locale=oe}transform(oe,Ne,bt){if(!Kr(oe))return null;bt=bt||this._locale;try{return Fr(Pr(oe),bt,Ne)}catch(Gt){throw At()}}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"percent",type:ee,pure:!0,standalone:!0}),ee})(),$r=(()=>{class ee{constructor(oe,Ne="USD"){this._locale=oe,this._defaultCurrencyCode=Ne}transform(oe,Ne=this._defaultCurrencyCode,bt="symbol",Gt,ei){if(!Kr(oe))return null;ei=ei||this._locale,"boolean"==typeof bt&&(bt=bt?"symbol":"code");let Li=Ne||this._defaultCurrencyCode;"code"!==bt&&(Li="symbol"===bt||"symbol-narrow"===bt?et(Li,"symbol"===bt?"wide":"narrow",ei):bt);try{return ir(Pr(oe),ei,Li,Ne,Gt)}catch(En){throw At()}}}return ee.\u0275fac=function(oe){return new(oe||ee)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(n.DEFAULT_CURRENCY_CODE,16))},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"currency",type:ee,pure:!0,standalone:!0}),ee})();function Kr(ee){return!(null==ee||""===ee||ee!=ee)}function Pr(ee){if("string"==typeof ee&&!isNaN(Number(ee)-parseFloat(ee)))return Number(ee);if("number"!=typeof ee)throw new Error(`${ee} is not a number`);return ee}let Oo=(()=>{class ee{transform(oe,Ne,bt){if(null==oe)return null;if(!this.supports(oe))throw At();return oe.slice(Ne,bt)}supports(oe){return"string"==typeof oe||Array.isArray(oe)}}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275pipe=n.\u0275\u0275definePipe({name:"slice",type:ee,pure:!1,standalone:!0}),ee})(),Mo=(()=>{class ee{}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275mod=n.\u0275\u0275defineNgModule({type:ee}),ee.\u0275inj=n.\u0275\u0275defineInjector({}),ee})();const er="browser",hr="server",Gr="browserWorkerApp",go="browserWorkerUi";function Eo(ee){return ee===er}function lo(ee){return ee===hr}function xr(ee){return ee===Gr}function wo(ee){return ee===go}const No=new n.Version("15.2.10");let Zr=(()=>{class ee{}return ee.\u0275prov=(0,n.\u0275\u0275defineInjectable)({token:ee,providedIn:"root",factory:()=>new Un((0,n.\u0275\u0275inject)(d),window)}),ee})();class Un{constructor(Se,oe){this.document=Se,this.window=oe,this.offset=()=>[0,0]}setOffset(Se){this.offset=Array.isArray(Se)?()=>Se:Se}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Se){this.supportsScrolling()&&this.window.scrollTo(Se[0],Se[1])}scrollToAnchor(Se){if(!this.supportsScrolling())return;const oe=function co(ee,Se){const oe=ee.getElementById(Se)||ee.getElementsByName(Se)[0];if(oe)return oe;if("function"==typeof ee.createTreeWalker&&ee.body&&(ee.body.createShadowRoot||ee.body.attachShadow)){const Ne=ee.createTreeWalker(ee.body,NodeFilter.SHOW_ELEMENT);let bt=Ne.currentNode;for(;bt;){const Gt=bt.shadowRoot;if(Gt){const ei=Gt.getElementById(Se)||Gt.querySelector(`[name="${Se}"]`);if(ei)return ei}bt=Ne.nextNode()}}return null}(this.document,Se);oe&&(this.scrollToElement(oe),oe.focus())}setHistoryScrollRestoration(Se){if(this.supportScrollRestoration()){const oe=this.window.history;oe&&oe.scrollRestoration&&(oe.scrollRestoration=Se)}}scrollToElement(Se){const oe=Se.getBoundingClientRect(),Ne=oe.left+this.window.pageXOffset,bt=oe.top+this.window.pageYOffset,Gt=this.offset();this.window.scrollTo(Ne-Gt[0],bt-Gt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Se=gr(this.window.history)||gr(Object.getPrototypeOf(this.window.history));return!(!Se||!Se.writable&&!Se.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function gr(ee){return Object.getOwnPropertyDescriptor(ee,"scrollRestoration")}class Ur{setOffset(Se){}getScrollPosition(){return[0,0]}scrollToPosition(Se){}scrollToAnchor(Se){}setHistoryScrollRestoration(Se){}}class nr{}function jn(ee){return ee.startsWith("/")?ee.slice(1):ee}const Ye=ee=>ee.src,kt=new n.InjectionToken("ImageLoader",{providedIn:"root",factory:()=>Ye});function D(ee,Se){return function(Ne){return function Uo(ee){if("string"!=typeof ee||""===ee.trim())return!1;try{return new URL(ee),!0}catch{return!1}}(Ne)||function ae(ee,Se){throw new n.\u0275RuntimeError(2959,!1)}(),Ne=function _o(ee){return ee.endsWith("/")?ee.slice(0,-1):ee}(Ne),[{provide:kt,useValue:ei=>(function Qr(ee){return/^https?:\/\//.test(ee)}(ei.src)&&function _e(ee,Se){throw new n.\u0275RuntimeError(2959,!1)}(),ee(Ne,{...ei,src:jn(ei.src)}))}]}}const it=D(Dt);function Dt(ee,Se){let oe="format=auto";return Se.width&&(oe+=`,width=${Se.width}`),`${ee}/cdn-cgi/image/${oe}/${Se.src}`}const si=D(fn);function fn(ee,Se){let oe="f_auto,q_auto";return Se.width&&(oe+=`,w_${Se.width}`),`${ee}/image/upload/${oe}/${Se.src}`}const ve=D(pe);function pe(ee,Se){const{src:oe,width:Ne}=Se;let bt;return bt=Ne?[ee,`tr:w-${Ne}`,oe]:[ee,oe],bt.join("/")}const de=D($e);function $e(ee,Se){const oe=new URL(`${ee}/${Se.src}`);return oe.searchParams.set("auto","format"),Se.width&&oe.searchParams.set("w",Se.width.toString()),oe.href}const hi=new n.InjectionToken("PRECONNECT_CHECK_BLOCKLIST"),Pi=new n.InjectionToken("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set});let Qi=(()=>{class ee{constructor(){this.preloadedImages=(0,n.inject)(Pi),this.document=(0,n.inject)(d)}createPreloadLinkTag(oe,Ne,bt,Gt){if(this.preloadedImages.has(Ne))return;this.preloadedImages.add(Ne);const ei=oe.createElement("link");oe.setAttribute(ei,"as","image"),oe.setAttribute(ei,"href",Ne),oe.setAttribute(ei,"rel","preload"),oe.setAttribute(ei,"fetchpriority","high"),Gt&&oe.setAttribute(ei,"imageSizes",Gt),bt&&oe.setAttribute(ei,"imageSrcset",bt),oe.appendChild(this.document.head,ei)}}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275prov=n.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();const cr=/^((\s*\d+w\s*(,|$)){1,})$/,to=[1,2],Ao={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]},br=new n.InjectionToken("ImageConfig",{providedIn:"root",factory:()=>Ao});let vo=(()=>{class ee{constructor(){this.imageLoader=(0,n.inject)(kt),this.config=function zo(ee){let Se={};return ee.breakpoints&&(Se.breakpoints=ee.breakpoints.sort((oe,Ne)=>oe-Ne)),Object.assign({},Ao,ee,Se)}((0,n.inject)(br)),this.renderer=(0,n.inject)(n.Renderer2),this.imgElement=(0,n.inject)(n.ElementRef).nativeElement,this.injector=(0,n.inject)(n.Injector),this.isServer=lo((0,n.inject)(n.PLATFORM_ID)),this.preloadLinkChecker=(0,n.inject)(Qi),this.lcpObserver=null,this._renderedSrc=null,this._priority=!1,this._disableOptimizedSrcset=!1,this._fill=!1}set width(oe){this._width=Vo(oe)}get width(){return this._width}set height(oe){this._height=Vo(oe)}get height(){return this._height}set priority(oe){this._priority=ko(oe)}get priority(){return this._priority}set disableOptimizedSrcset(oe){this._disableOptimizedSrcset=ko(oe)}get disableOptimizedSrcset(){return this._disableOptimizedSrcset}set fill(oe){this._fill=ko(oe)}get fill(){return this._fill}ngOnInit(){this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||(this.sizes="100vw"):(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");const oe=this.getRewrittenSrc();let Ne;this.setHostAttribute("src",oe),this.sizes&&this.setHostAttribute("sizes",this.sizes),this.ngSrcset?Ne=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(Ne=this.getAutomaticSrcset()),Ne&&this.setHostAttribute("srcset",Ne),this.isServer&&this.priority&&this.preloadLinkChecker.createPreloadLinkTag(this.renderer,oe,Ne,this.sizes)}ngOnChanges(oe){}callImageLoader(oe){let Ne=oe;return this.loaderParams&&(Ne.loaderParams=this.loaderParams),this.imageLoader(Ne)}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){return this._renderedSrc||(this._renderedSrc=this.callImageLoader({src:this.ngSrc})),this._renderedSrc}getRewrittenSrcset(){const oe=cr.test(this.ngSrcset);return this.ngSrcset.split(",").filter(bt=>""!==bt).map(bt=>{bt=bt.trim();const Gt=oe?parseFloat(bt):parseFloat(bt)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:Gt})} ${bt}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){const{breakpoints:oe}=this.config;let Ne=oe;return"100vw"===this.sizes?.trim()&&(Ne=oe.filter(Gt=>Gt>=640)),Ne.map(Gt=>`${this.callImageLoader({src:this.ngSrc,width:Gt})} ${Gt}w`).join(", ")}getFixedSrcset(){return to.map(Ne=>`${this.callImageLoader({src:this.ngSrc,width:this.width*Ne})} ${Ne}x`).join(", ")}shouldGenerateAutomaticSrcset(){return!this._disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Ye&&!(this.width>1920||this.height>1080)}ngOnDestroy(){}setHostAttribute(oe,Ne){this.renderer.setAttribute(this.imgElement,oe,Ne)}}return ee.\u0275fac=function(oe){return new(oe||ee)},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["img","ngSrc",""]],hostVars:8,hostBindings:function(oe,Ne){2&oe&&n.\u0275\u0275styleProp("position",Ne.fill?"absolute":null)("width",Ne.fill?"100%":null)("height",Ne.fill?"100%":null)("inset",Ne.fill?"0px":null)},inputs:{ngSrc:"ngSrc",ngSrcset:"ngSrcset",sizes:"sizes",width:"width",height:"height",loading:"loading",priority:"priority",loaderParams:"loaderParams",disableOptimizedSrcset:"disableOptimizedSrcset",fill:"fill",src:"src",srcset:"srcset"},standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),ee})();function Vo(ee){return"string"==typeof ee?parseInt(ee,10):ee}function ko(ee){return null!=ee&&"false"!=`${ee}`}},529:(G,P,a)=>{"use strict";a.d(P,{JF:()=>_i,LE:()=>le,TP:()=>Qt,UA:()=>ot,WM:()=>x,dt:()=>Oe,eN:()=>jt});var n=a(6895),e=a(4650),o=a(1086),l=a(6498),v=a(1406),d=a(2198),u=a(4850);class b{}class C{}class x{constructor(ue){this.normalizedNames=new Map,this.lazyUpdate=null,ue?this.lazyInit="string"==typeof ue?()=>{this.headers=new Map,ue.split("\n").forEach(re=>{const Ee=re.indexOf(":");if(Ee>0){const Re=re.slice(0,Ee),We=Re.toLowerCase(),xt=re.slice(Ee+1).trim();this.maybeSetNormalizedName(Re,We),this.headers.has(We)?this.headers.get(We).push(xt):this.headers.set(We,[xt])}})}:()=>{this.headers=new Map,Object.entries(ue).forEach(([re,Ee])=>{let Re;if(Re="string"==typeof Ee?[Ee]:"number"==typeof Ee?[Ee.toString()]:Ee.map(We=>We.toString()),Re.length>0){const We=re.toLowerCase();this.headers.set(We,Re),this.maybeSetNormalizedName(re,We)}})}:this.headers=new Map}has(ue){return this.init(),this.headers.has(ue.toLowerCase())}get(ue){this.init();const re=this.headers.get(ue.toLowerCase());return re&&re.length>0?re[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ue){return this.init(),this.headers.get(ue.toLowerCase())||null}append(ue,re){return this.clone({name:ue,value:re,op:"a"})}set(ue,re){return this.clone({name:ue,value:re,op:"s"})}delete(ue,re){return this.clone({name:ue,value:re,op:"d"})}maybeSetNormalizedName(ue,re){this.normalizedNames.has(re)||this.normalizedNames.set(re,ue)}init(){this.lazyInit&&(this.lazyInit instanceof x?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ue=>this.applyUpdate(ue)),this.lazyUpdate=null))}copyFrom(ue){ue.init(),Array.from(ue.headers.keys()).forEach(re=>{this.headers.set(re,ue.headers.get(re)),this.normalizedNames.set(re,ue.normalizedNames.get(re))})}clone(ue){const re=new x;return re.lazyInit=this.lazyInit&&this.lazyInit instanceof x?this.lazyInit:this,re.lazyUpdate=(this.lazyUpdate||[]).concat([ue]),re}applyUpdate(ue){const re=ue.name.toLowerCase();switch(ue.op){case"a":case"s":let Ee=ue.value;if("string"==typeof Ee&&(Ee=[Ee]),0===Ee.length)return;this.maybeSetNormalizedName(ue.name,re);const Re=("a"===ue.op?this.headers.get(re):void 0)||[];Re.push(...Ee),this.headers.set(re,Re);break;case"d":const We=ue.value;if(We){let xt=this.headers.get(re);if(!xt)return;xt=xt.filter(Ht=>-1===We.indexOf(Ht)),0===xt.length?(this.headers.delete(re),this.normalizedNames.delete(re)):this.headers.set(re,xt)}else this.headers.delete(re),this.normalizedNames.delete(re)}}forEach(ue){this.init(),Array.from(this.normalizedNames.keys()).forEach(re=>ue(this.normalizedNames.get(re),this.headers.get(re)))}}class g{encodeKey(ue){return B(ue)}encodeValue(ue){return B(ue)}decodeKey(ue){return decodeURIComponent(ue)}decodeValue(ue){return decodeURIComponent(ue)}}const S=/%(\d[a-f0-9])/gi,j={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function B(ze){return encodeURIComponent(ze).replace(S,(ue,re)=>j[re]??ue)}function Z(ze){return`${ze}`}class le{constructor(ue={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ue.encoder||new g,ue.fromString){if(ue.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function f(ze,ue){const re=new Map;return ze.length>0&&ze.replace(/^\?/,"").split("&").forEach(Re=>{const We=Re.indexOf("="),[xt,Ht]=-1==We?[ue.decodeKey(Re),""]:[ue.decodeKey(Re.slice(0,We)),ue.decodeValue(Re.slice(We+1))],wt=re.get(xt)||[];wt.push(Ht),re.set(xt,wt)}),re}(ue.fromString,this.encoder)}else ue.fromObject?(this.map=new Map,Object.keys(ue.fromObject).forEach(re=>{const Ee=ue.fromObject[re],Re=Array.isArray(Ee)?Ee.map(Z):[Z(Ee)];this.map.set(re,Re)})):this.map=null}has(ue){return this.init(),this.map.has(ue)}get(ue){this.init();const re=this.map.get(ue);return re?re[0]:null}getAll(ue){return this.init(),this.map.get(ue)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ue,re){return this.clone({param:ue,value:re,op:"a"})}appendAll(ue){const re=[];return Object.keys(ue).forEach(Ee=>{const Re=ue[Ee];Array.isArray(Re)?Re.forEach(We=>{re.push({param:Ee,value:We,op:"a"})}):re.push({param:Ee,value:Re,op:"a"})}),this.clone(re)}set(ue,re){return this.clone({param:ue,value:re,op:"s"})}delete(ue,re){return this.clone({param:ue,value:re,op:"d"})}toString(){return this.init(),this.keys().map(ue=>{const re=this.encoder.encodeKey(ue);return this.map.get(ue).map(Ee=>re+"="+this.encoder.encodeValue(Ee)).join("&")}).filter(ue=>""!==ue).join("&")}clone(ue){const re=new le({encoder:this.encoder});return re.cloneFrom=this.cloneFrom||this,re.updates=(this.updates||[]).concat(ue),re}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ue=>this.map.set(ue,this.cloneFrom.map.get(ue))),this.updates.forEach(ue=>{switch(ue.op){case"a":case"s":const re=("a"===ue.op?this.map.get(ue.param):void 0)||[];re.push(Z(ue.value)),this.map.set(ue.param,re);break;case"d":if(void 0===ue.value){this.map.delete(ue.param);break}{let Ee=this.map.get(ue.param)||[];const Re=Ee.indexOf(Z(ue.value));-1!==Re&&Ee.splice(Re,1),Ee.length>0?this.map.set(ue.param,Ee):this.map.delete(ue.param)}}}),this.cloneFrom=this.updates=null)}}class X{constructor(){this.map=new Map}set(ue,re){return this.map.set(ue,re),this}get(ue){return this.map.has(ue)||this.map.set(ue,ue.defaultValue()),this.map.get(ue)}delete(ue){return this.map.delete(ue),this}has(ue){return this.map.has(ue)}keys(){return this.map.keys()}}function U(ze){return typeof ArrayBuffer<"u"&&ze instanceof ArrayBuffer}function me(ze){return typeof Blob<"u"&&ze instanceof Blob}function xe(ze){return typeof FormData<"u"&&ze instanceof FormData}class Ze{constructor(ue,re,Ee,Re){let We;if(this.url=re,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ue.toUpperCase(),function K(ze){switch(ze){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Re?(this.body=void 0!==Ee?Ee:null,We=Re):We=Ee,We&&(this.reportProgress=!!We.reportProgress,this.withCredentials=!!We.withCredentials,We.responseType&&(this.responseType=We.responseType),We.headers&&(this.headers=We.headers),We.context&&(this.context=We.context),We.params&&(this.params=We.params)),this.headers||(this.headers=new x),this.context||(this.context=new X),this.params){const xt=this.params.toString();if(0===xt.length)this.urlWithParams=re;else{const Ht=re.indexOf("?");this.urlWithParams=re+(-1===Ht?"?":Ht<re.length-1?"&":"")+xt}}else this.params=new le,this.urlWithParams=re}serializeBody(){return null===this.body?null:U(this.body)||me(this.body)||xe(this.body)||function ne(ze){return typeof URLSearchParams<"u"&&ze instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof le?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||xe(this.body)?null:me(this.body)?this.body.type||null:U(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof le?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ue={}){const re=ue.method||this.method,Ee=ue.url||this.url,Re=ue.responseType||this.responseType,We=void 0!==ue.body?ue.body:this.body,xt=void 0!==ue.withCredentials?ue.withCredentials:this.withCredentials,Ht=void 0!==ue.reportProgress?ue.reportProgress:this.reportProgress;let wt=ue.headers||this.headers,Mt=ue.params||this.params;const It=ue.context??this.context;return void 0!==ue.setHeaders&&(wt=Object.keys(ue.setHeaders).reduce((se,we)=>se.set(we,ue.setHeaders[we]),wt)),ue.setParams&&(Mt=Object.keys(ue.setParams).reduce((se,we)=>se.set(we,ue.setParams[we]),Mt)),new Ze(re,Ee,We,{params:Mt,headers:wt,context:It,reportProgress:Ht,responseType:Re,withCredentials:xt})}}var Oe=(()=>((Oe=Oe||{})[Oe.Sent=0]="Sent",Oe[Oe.UploadProgress=1]="UploadProgress",Oe[Oe.ResponseHeader=2]="ResponseHeader",Oe[Oe.DownloadProgress=3]="DownloadProgress",Oe[Oe.Response=4]="Response",Oe[Oe.User=5]="User",Oe))();class nt{constructor(ue,re=200,Ee="OK"){this.headers=ue.headers||new x,this.status=void 0!==ue.status?ue.status:re,this.statusText=ue.statusText||Ee,this.url=ue.url||null,this.ok=this.status>=200&&this.status<300}}class qe extends nt{constructor(ue={}){super(ue),this.type=Oe.ResponseHeader}clone(ue={}){return new qe({headers:ue.headers||this.headers,status:void 0!==ue.status?ue.status:this.status,statusText:ue.statusText||this.statusText,url:ue.url||this.url||void 0})}}class ct extends nt{constructor(ue={}){super(ue),this.type=Oe.Response,this.body=void 0!==ue.body?ue.body:null}clone(ue={}){return new ct({body:void 0!==ue.body?ue.body:this.body,headers:ue.headers||this.headers,status:void 0!==ue.status?ue.status:this.status,statusText:ue.statusText||this.statusText,url:ue.url||this.url||void 0})}}class ot extends nt{constructor(ue){super(ue,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ue.url||"(unknown url)"}`:`Http failure response for ${ue.url||"(unknown url)"}: ${ue.status} ${ue.statusText}`,this.error=ue.error||null}}function dt(ze,ue){return{body:ue,headers:ze.headers,context:ze.context,observe:ze.observe,params:ze.params,reportProgress:ze.reportProgress,responseType:ze.responseType,withCredentials:ze.withCredentials}}let jt=(()=>{class ze{constructor(re){this.handler=re}request(re,Ee,Re={}){let We;if(re instanceof Ze)We=re;else{let wt,Mt;wt=Re.headers instanceof x?Re.headers:new x(Re.headers),Re.params&&(Mt=Re.params instanceof le?Re.params:new le({fromObject:Re.params})),We=new Ze(re,Ee,void 0!==Re.body?Re.body:null,{headers:wt,context:Re.context,params:Mt,reportProgress:Re.reportProgress,responseType:Re.responseType||"json",withCredentials:Re.withCredentials})}const xt=(0,o.of)(We).pipe((0,v.b)(wt=>this.handler.handle(wt)));if(re instanceof Ze||"events"===Re.observe)return xt;const Ht=xt.pipe((0,d.h)(wt=>wt instanceof ct));switch(Re.observe||"body"){case"body":switch(We.responseType){case"arraybuffer":return Ht.pipe((0,u.U)(wt=>{if(null!==wt.body&&!(wt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return wt.body}));case"blob":return Ht.pipe((0,u.U)(wt=>{if(null!==wt.body&&!(wt.body instanceof Blob))throw new Error("Response is not a Blob.");return wt.body}));case"text":return Ht.pipe((0,u.U)(wt=>{if(null!==wt.body&&"string"!=typeof wt.body)throw new Error("Response is not a string.");return wt.body}));default:return Ht.pipe((0,u.U)(wt=>wt.body))}case"response":return Ht;default:throw new Error(`Unreachable: unhandled observe type ${Re.observe}}`)}}delete(re,Ee={}){return this.request("DELETE",re,Ee)}get(re,Ee={}){return this.request("GET",re,Ee)}head(re,Ee={}){return this.request("HEAD",re,Ee)}jsonp(re,Ee){return this.request("JSONP",re,{params:(new le).append(Ee,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(re,Ee={}){return this.request("OPTIONS",re,Ee)}patch(re,Ee,Re={}){return this.request("PATCH",re,dt(Re,Ee))}post(re,Ee,Re={}){return this.request("POST",re,dt(Re,Ee))}put(re,Ee,Re={}){return this.request("PUT",re,dt(Re,Ee))}}return ze.\u0275fac=function(re){return new(re||ze)(e.\u0275\u0275inject(b))},ze.\u0275prov=e.\u0275\u0275defineInjectable({token:ze,factory:ze.\u0275fac}),ze})();function zt(ze,ue){return ue(ze)}function ti(ze,ue){return(re,Ee)=>ue.intercept(re,{handle:Re=>ze(Re,Ee)})}const Qt=new e.InjectionToken("HTTP_INTERCEPTORS"),Jt=new e.InjectionToken("HTTP_INTERCEPTOR_FNS");function lt(){let ze=null;return(ue,re)=>(null===ze&&(ze=((0,e.inject)(Qt,{optional:!0})??[]).reduceRight(ti,zt)),ze(ue,re))}let _t=(()=>{class ze extends b{constructor(re,Ee){super(),this.backend=re,this.injector=Ee,this.chain=null}handle(re){if(null===this.chain){const Ee=Array.from(new Set(this.injector.get(Jt)));this.chain=Ee.reduceRight((Re,We)=>function mi(ze,ue,re){return(Ee,Re)=>re.runInContext(()=>ue(Ee,We=>ze(We,Re)))}(Re,We,this.injector),zt)}return this.chain(re,Ee=>this.backend.handle(Ee))}}return ze.\u0275fac=function(re){return new(re||ze)(e.\u0275\u0275inject(C),e.\u0275\u0275inject(e.EnvironmentInjector))},ze.\u0275prov=e.\u0275\u0275defineInjectable({token:ze,factory:ze.\u0275fac}),ze})();const te=/^\)\]\}',?\n/;let R=(()=>{class ze{constructor(re){this.xhrFactory=re}handle(re){if("JSONP"===re.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new l.y(Ee=>{const Re=this.xhrFactory.build();if(Re.open(re.method,re.urlWithParams),re.withCredentials&&(Re.withCredentials=!0),re.headers.forEach((Le,Ie)=>Re.setRequestHeader(Le,Ie.join(","))),re.headers.has("Accept")||Re.setRequestHeader("Accept","application/json, text/plain, */*"),!re.headers.has("Content-Type")){const Le=re.detectContentTypeHeader();null!==Le&&Re.setRequestHeader("Content-Type",Le)}if(re.responseType){const Le=re.responseType.toLowerCase();Re.responseType="json"!==Le?Le:"text"}const We=re.serializeBody();let xt=null;const Ht=()=>{if(null!==xt)return xt;const Le=Re.statusText||"OK",Ie=new x(Re.getAllResponseHeaders()),Ot=function k(ze){return"responseURL"in ze&&ze.responseURL?ze.responseURL:/^X-Request-URL:/m.test(ze.getAllResponseHeaders())?ze.getResponseHeader("X-Request-URL"):null}(Re)||re.url;return xt=new qe({headers:Ie,status:Re.status,statusText:Le,url:Ot}),xt},wt=()=>{let{headers:Le,status:Ie,statusText:Ot,url:Me}=Ht(),yt=null;204!==Ie&&(yt=typeof Re.response>"u"?Re.responseText:Re.response),0===Ie&&(Ie=yt?200:0);let St=Ie>=200&&Ie<300;if("json"===re.responseType&&"string"==typeof yt){const ii=yt;yt=yt.replace(te,"");try{yt=""!==yt?JSON.parse(yt):null}catch(Ki){yt=ii,St&&(St=!1,yt={error:Ki,text:yt})}}St?(Ee.next(new ct({body:yt,headers:Le,status:Ie,statusText:Ot,url:Me||void 0})),Ee.complete()):Ee.error(new ot({error:yt,headers:Le,status:Ie,statusText:Ot,url:Me||void 0}))},Mt=Le=>{const{url:Ie}=Ht(),Ot=new ot({error:Le,status:Re.status||0,statusText:Re.statusText||"Unknown Error",url:Ie||void 0});Ee.error(Ot)};let It=!1;const se=Le=>{It||(Ee.next(Ht()),It=!0);let Ie={type:Oe.DownloadProgress,loaded:Le.loaded};Le.lengthComputable&&(Ie.total=Le.total),"text"===re.responseType&&Re.responseText&&(Ie.partialText=Re.responseText),Ee.next(Ie)},we=Le=>{let Ie={type:Oe.UploadProgress,loaded:Le.loaded};Le.lengthComputable&&(Ie.total=Le.total),Ee.next(Ie)};return Re.addEventListener("load",wt),Re.addEventListener("error",Mt),Re.addEventListener("timeout",Mt),Re.addEventListener("abort",Mt),re.reportProgress&&(Re.addEventListener("progress",se),null!==We&&Re.upload&&Re.upload.addEventListener("progress",we)),Re.send(We),Ee.next({type:Oe.Sent}),()=>{Re.removeEventListener("error",Mt),Re.removeEventListener("abort",Mt),Re.removeEventListener("load",wt),Re.removeEventListener("timeout",Mt),re.reportProgress&&(Re.removeEventListener("progress",se),null!==We&&Re.upload&&Re.upload.removeEventListener("progress",we)),Re.readyState!==Re.DONE&&Re.abort()}})}}return ze.\u0275fac=function(re){return new(re||ze)(e.\u0275\u0275inject(n.XhrFactory))},ze.\u0275prov=e.\u0275\u0275defineInjectable({token:ze,factory:ze.\u0275fac}),ze})();const be=new e.InjectionToken("XSRF_ENABLED"),Ue=new e.InjectionToken("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),ke=new e.InjectionToken("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class gt{}let Pt=(()=>{class ze{constructor(re,Ee,Re){this.doc=re,this.platform=Ee,this.cookieName=Re,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const re=this.doc.cookie||"";return re!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,n.\u0275parseCookieValue)(re,this.cookieName),this.lastCookieString=re),this.lastToken}}return ze.\u0275fac=function(re){return new(re||ze)(e.\u0275\u0275inject(n.DOCUMENT),e.\u0275\u0275inject(e.PLATFORM_ID),e.\u0275\u0275inject(Ue))},ze.\u0275prov=e.\u0275\u0275defineInjectable({token:ze,factory:ze.\u0275fac}),ze})();function Bt(ze,ue){const re=ze.url.toLowerCase();if(!(0,e.inject)(be)||"GET"===ze.method||"HEAD"===ze.method||re.startsWith("http://")||re.startsWith("https://"))return ue(ze);const Ee=(0,e.inject)(gt).getToken(),Re=(0,e.inject)(ke);return null!=Ee&&!ze.headers.has(Re)&&(ze=ze.clone({headers:ze.headers.set(Re,Ee)})),ue(ze)}var Nt=(()=>((Nt=Nt||{})[Nt.Interceptors=0]="Interceptors",Nt[Nt.LegacyInterceptors=1]="LegacyInterceptors",Nt[Nt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Nt[Nt.NoXsrfProtection=3]="NoXsrfProtection",Nt[Nt.JsonpSupport=4]="JsonpSupport",Nt[Nt.RequestsMadeViaParent=5]="RequestsMadeViaParent",Nt))();function at(ze,ue){return{\u0275kind:ze,\u0275providers:ue}}function Lt(...ze){const ue=[jt,R,_t,{provide:b,useExisting:_t},{provide:C,useExisting:R},{provide:Jt,useValue:Bt,multi:!0},{provide:be,useValue:!0},{provide:gt,useClass:Pt}];for(const re of ze)ue.push(...re.\u0275providers);return(0,e.makeEnvironmentProviders)(ue)}const ai=new e.InjectionToken("LEGACY_INTERCEPTOR_FN");let _i=(()=>{class ze{}return ze.\u0275fac=function(re){return new(re||ze)},ze.\u0275mod=e.\u0275\u0275defineNgModule({type:ze}),ze.\u0275inj=e.\u0275\u0275defineInjector({providers:[Lt(at(Nt.LegacyInterceptors,[{provide:ai,useFactory:lt},{provide:Jt,useExisting:ai,multi:!0}]))]}),ze})()},4650:(G,P,a)=>{"use strict";a.r(P),a.d(P,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>Fa,ANIMATION_MODULE_TYPE:()=>zC,APP_BOOTSTRAP_LISTENER:()=>S_,APP_ID:()=>m_,APP_INITIALIZER:()=>h_,ApplicationInitStatus:()=>ed,ApplicationModule:()=>Ox,ApplicationRef:()=>nd,Attribute:()=>la,COMPILER_OPTIONS:()=>__,CUSTOM_ELEMENTS_SCHEMA:()=>nc,ChangeDetectionStrategy:()=>Ht,ChangeDetectorRef:()=>V_,Compiler:()=>ZC,CompilerFactory:()=>QC,Component:()=>AC,ComponentFactory:()=>Ec,ComponentFactoryResolver:()=>Ol,ComponentRef:()=>Am,ContentChild:()=>Bs,ContentChildren:()=>ca,DEFAULT_CURRENCY_CODE:()=>$C,DebugElement:()=>Gl,DebugEventListener:()=>fx,DebugNode:()=>Bh,DefaultIterableDiffer:()=>G_,Directive:()=>u_,ENVIRONMENT_INITIALIZER:()=>Id,ElementRef:()=>Al,EmbeddedViewRef:()=>px,EnvironmentInjector:()=>Da,ErrorHandler:()=>kl,EventEmitter:()=>Ws,Host:()=>ps,HostBinding:()=>FC,HostListener:()=>BC,INJECTOR:()=>Sd,Inject:()=>Ti,InjectFlags:()=>be,Injectable:()=>ub,InjectionToken:()=>rr,Injector:()=>ga,Input:()=>LC,IterableDiffers:()=>zh,KeyValueDiffers:()=>Wh,LOCALE_ID:()=>td,MissingTranslationStrategy:()=>Hs,ModuleWithComponentFactories:()=>g_,NO_ERRORS_SCHEMA:()=>rc,NgModule:()=>NC,NgModuleFactory:()=>eg,NgModuleRef:()=>hl,NgProbeToken:()=>rx,NgZone:()=>xs,Optional:()=>Oi,Output:()=>RC,PACKAGE_ROOT_URL:()=>VC,PLATFORM_ID:()=>jC,PLATFORM_INITIALIZER:()=>f_,Pipe:()=>kC,PlatformRef:()=>Fh,Query:()=>hs,QueryList:()=>Qc,ReflectiveInjector:()=>Ya,ReflectiveKey:()=>ea,Renderer2:()=>jv,RendererFactory2:()=>Lm,RendererStyleFlags2:()=>Ps,ResolvedReflectiveFactory:()=>ip,Sanitizer:()=>Rm,SecurityContext:()=>oo,Self:()=>vn,SimpleChange:()=>wo,SkipSelf:()=>pr,TRANSLATIONS:()=>KC,TRANSLATIONS_FORMAT:()=>GC,TemplateRef:()=>$l,Testability:()=>nx,TestabilityRegistry:()=>w_,Type:()=>Ca,VERSION:()=>Bm,Version:()=>Fm,ViewChild:()=>Ba,ViewChildren:()=>gl,ViewContainerRef:()=>Xc,ViewEncapsulation:()=>wt,ViewRef:()=>W_,asNativeElements:()=>gx,assertPlatform:()=>k_,createComponent:()=>zx,createEnvironmentInjector:()=>hh,createNgModule:()=>tg,createNgModuleRef:()=>Ky,createPlatform:()=>P_,createPlatformFactory:()=>A_,defineInjectable:()=>W,destroyPlatform:()=>ax,enableProdMode:()=>dx,forwardRef:()=>w,getDebugNode:()=>pl,getModuleFactory:()=>ux,getNgModuleById:()=>hx,getPlatform:()=>id,importProvidersFrom:()=>wm,inject:()=>Bi,isDevMode:()=>cx,isStandalone:()=>Rn,makeEnvironmentProviders:()=>Sv,platformCore:()=>Px,reflectComponentType:()=>Wx,resolveForwardRef:()=>g,setTestabilityGetter:()=>I_,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Lh,\u0275APP_ID_RANDOM_PROVIDER:()=>UC,\u0275ComponentFactory:()=>Ec,\u0275Console:()=>WC,\u0275DEFAULT_LOCALE_ID:()=>Aa,\u0275INJECTOR_SCOPE:()=>Od,\u0275LContext:()=>Il,\u0275LifecycleHooksFeature:()=>Mp,\u0275LocaleDataIndex:()=>Ji,\u0275NG_COMP_DEF:()=>se,\u0275NG_DIR_DEF:()=>we,\u0275NG_ELEMENT_ID:()=>Me,\u0275NG_INJ_DEF:()=>te,\u0275NG_MOD_DEF:()=>Ie,\u0275NG_PIPE_DEF:()=>Le,\u0275NG_PROV_DEF:()=>ut,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>wc,\u0275NO_CHANGE:()=>hn,\u0275NgModuleFactory:()=>Zc,\u0275NoopNgZone:()=>x_,\u0275ReflectionCapabilities:()=>rt,\u0275Render3ComponentFactory:()=>el,\u0275Render3ComponentRef:()=>xp,\u0275Render3NgModuleRef:()=>uh,\u0275RuntimeError:()=>Z,\u0275TESTABILITY:()=>M_,\u0275TESTABILITY_GETTER:()=>E_,\u0275ViewRef:()=>qa,\u0275XSS_SECURITY_URL:()=>B,\u0275_sanitizeHtml:()=>gm,\u0275_sanitizeUrl:()=>yc,\u0275allowSanitizationBypassAndThrow:()=>Ka,\u0275bypassSanitizationTrustHtml:()=>hv,\u0275bypassSanitizationTrustResourceUrl:()=>gv,\u0275bypassSanitizationTrustScript:()=>pv,\u0275bypassSanitizationTrustStyle:()=>mv,\u0275bypassSanitizationTrustUrl:()=>fv,\u0275clearResolutionOfComponentResourcesQueue:()=>ql,\u0275coerceToBoolean:()=>Ax,\u0275compileComponent:()=>qg,\u0275compileDirective:()=>Dh,\u0275compileNgModule:()=>Gg,\u0275compileNgModuleDefs:()=>Zg,\u0275compileNgModuleFactory:()=>D_,\u0275compilePipe:()=>c_,\u0275convertToBitFlags:()=>ze,\u0275createInjector:()=>Bd,\u0275defaultIterableDiffers:()=>Dx,\u0275defaultKeyValueDiffers:()=>Tx,\u0275detectChanges:()=>Op,\u0275devModeEqual:()=>Pp,\u0275findLocaleData:()=>eh,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>$g,\u0275formatRuntimeError:()=>le,\u0275getDebugNode:()=>pl,\u0275getDebugNodeR2:()=>yx,\u0275getDirectives:()=>ag,\u0275getHostElement:()=>ph,\u0275getInjectableDef:()=>Te,\u0275getLContext:()=>z,\u0275getLocaleCurrencyCode:()=>Y0,\u0275getLocalePluralCase:()=>wf,\u0275getSanitizationBypassType:()=>cm,\u0275getUnknownElementStrictMode:()=>oc,\u0275getUnknownPropertyStrictMode:()=>cd,\u0275global:()=>Pt,\u0275injectChangeDetectorRef:()=>z_,\u0275internalCreateApplication:()=>sx,\u0275isBoundToModule:()=>T_,\u0275isEnvironmentProviders:()=>S,\u0275isInjectable:()=>Be,\u0275isNgModule:()=>xh,\u0275isObservable:()=>Bp,\u0275isPromise:()=>gu,\u0275isSubscribable:()=>Fp,\u0275makeDecorator:()=>Do,\u0275noSideEffects:()=>xt,\u0275patchComponentDefWithScope:()=>Ih,\u0275publishDefaultGlobalUtils:()=>XC,\u0275publishGlobalUtil:()=>Cs,\u0275registerLocaleData:()=>Q0,\u0275resetCompiledComponents:()=>yC,\u0275resetJitOptions:()=>_C,\u0275resolveComponentResources:()=>Ma,\u0275setAllowDuplicateNgModuleIdsForTest:()=>ld,\u0275setClassMetadata:()=>cg,\u0275setCurrentInjector:()=>Zt,\u0275setDocument:()=>sv,\u0275setLocaleId:()=>th,\u0275setUnknownElementStrictMode:()=>za,\u0275setUnknownPropertyStrictMode:()=>sc,\u0275store:()=>kp,\u0275stringify:()=>b,\u0275transitiveScopesFor:()=>ka,\u0275unregisterLocaleData:()=>X0,\u0275unwrapSafeValue:()=>Xs,\u0275\u0275CopyDefinitionFeature:()=>wp,\u0275\u0275FactoryTarget:()=>zr,\u0275\u0275HostDirectivesFeature:()=>Ip,\u0275\u0275InheritDefinitionFeature:()=>qd,\u0275\u0275NgOnChangesFeature:()=>No,\u0275\u0275ProvidersFeature:()=>qf,\u0275\u0275StandaloneFeature:()=>ig,\u0275\u0275advance:()=>Gm,\u0275\u0275attribute:()=>iu,\u0275\u0275attributeInterpolate1:()=>nu,\u0275\u0275attributeInterpolate2:()=>ru,\u0275\u0275attributeInterpolate3:()=>ou,\u0275\u0275attributeInterpolate4:()=>su,\u0275\u0275attributeInterpolate5:()=>au,\u0275\u0275attributeInterpolate6:()=>lu,\u0275\u0275attributeInterpolate7:()=>cu,\u0275\u0275attributeInterpolate8:()=>du,\u0275\u0275attributeInterpolateV:()=>uu,\u0275\u0275classMap:()=>Xp,\u0275\u0275classMapInterpolate1:()=>af,\u0275\u0275classMapInterpolate2:()=>lf,\u0275\u0275classMapInterpolate3:()=>cf,\u0275\u0275classMapInterpolate4:()=>df,\u0275\u0275classMapInterpolate5:()=>uf,\u0275\u0275classMapInterpolate6:()=>hf,\u0275\u0275classMapInterpolate7:()=>mf,\u0275\u0275classMapInterpolate8:()=>pf,\u0275\u0275classMapInterpolateV:()=>ff,\u0275\u0275classProp:()=>Au,\u0275\u0275contentQuery:()=>Ng,\u0275\u0275defineComponent:()=>St,\u0275\u0275defineDirective:()=>fr,\u0275\u0275defineInjectable:()=>H,\u0275\u0275defineInjector:()=>He,\u0275\u0275defineNgModule:()=>ir,\u0275\u0275definePipe:()=>ar,\u0275\u0275directiveInject:()=>Xa,\u0275\u0275disableBindings:()=>$e,\u0275\u0275element:()=>pu,\u0275\u0275elementContainer:()=>fu,\u0275\u0275elementContainerEnd:()=>Uc,\u0275\u0275elementContainerStart:()=>Nc,\u0275\u0275elementEnd:()=>Bc,\u0275\u0275elementStart:()=>Fc,\u0275\u0275enableBindings:()=>de,\u0275\u0275getCurrentView:()=>Rp,\u0275\u0275getInheritedFactory:()=>Ks,\u0275\u0275hostProperty:()=>Ju,\u0275\u0275i18n:()=>Zf,\u0275\u0275i18nApply:()=>Yf,\u0275\u0275i18nAttributes:()=>Qf,\u0275\u0275i18nEnd:()=>oh,\u0275\u0275i18nExp:()=>sh,\u0275\u0275i18nPostprocess:()=>Xf,\u0275\u0275i18nStart:()=>rh,\u0275\u0275inject:()=>_i,\u0275\u0275injectAttribute:()=>Gs,\u0275\u0275invalidFactory:()=>sp,\u0275\u0275invalidFactoryDep:()=>pi,\u0275\u0275listener:()=>_u,\u0275\u0275loadQuery:()=>Ug,\u0275\u0275namespaceHTML:()=>gs,\u0275\u0275namespaceMathML:()=>Ss,\u0275\u0275namespaceSVG:()=>Yo,\u0275\u0275nextContext:()=>Vp,\u0275\u0275ngDeclareClassMetadata:()=>Lx,\u0275\u0275ngDeclareComponent:()=>Rx,\u0275\u0275ngDeclareDirective:()=>kx,\u0275\u0275ngDeclareFactory:()=>Fx,\u0275\u0275ngDeclareInjectable:()=>Nx,\u0275\u0275ngDeclareInjector:()=>Ux,\u0275\u0275ngDeclareNgModule:()=>jx,\u0275\u0275ngDeclarePipe:()=>Vx,\u0275\u0275pipe:()=>wg,\u0275\u0275pipeBind1:()=>Ig,\u0275\u0275pipeBind2:()=>Sg,\u0275\u0275pipeBind3:()=>Dg,\u0275\u0275pipeBind4:()=>Tg,\u0275\u0275pipeBindV:()=>Pg,\u0275\u0275projection:()=>Wp,\u0275\u0275projectionDef:()=>zp,\u0275\u0275property:()=>hu,\u0275\u0275propertyInterpolate:()=>bu,\u0275\u0275propertyInterpolate1:()=>jc,\u0275\u0275propertyInterpolate2:()=>yu,\u0275\u0275propertyInterpolate3:()=>Cu,\u0275\u0275propertyInterpolate4:()=>xu,\u0275\u0275propertyInterpolate5:()=>Mu,\u0275\u0275propertyInterpolate6:()=>Eu,\u0275\u0275propertyInterpolate7:()=>wu,\u0275\u0275propertyInterpolate8:()=>Iu,\u0275\u0275propertyInterpolateV:()=>Su,\u0275\u0275pureFunction0:()=>dg,\u0275\u0275pureFunction1:()=>ug,\u0275\u0275pureFunction2:()=>hg,\u0275\u0275pureFunction3:()=>mg,\u0275\u0275pureFunction4:()=>pg,\u0275\u0275pureFunction5:()=>fg,\u0275\u0275pureFunction6:()=>gg,\u0275\u0275pureFunction7:()=>_g,\u0275\u0275pureFunction8:()=>vg,\u0275\u0275pureFunctionV:()=>bg,\u0275\u0275queryRefresh:()=>Fg,\u0275\u0275reference:()=>Lp,\u0275\u0275registerNgModuleType:()=>Cl,\u0275\u0275resetView:()=>ki,\u0275\u0275resolveBody:()=>jm,\u0275\u0275resolveDocument:()=>Um,\u0275\u0275resolveWindow:()=>Nm,\u0275\u0275restoreView:()=>qt,\u0275\u0275sanitizeHtml:()=>_m,\u0275\u0275sanitizeResourceUrl:()=>wd,\u0275\u0275sanitizeScript:()=>bm,\u0275\u0275sanitizeStyle:()=>vm,\u0275\u0275sanitizeUrl:()=>Ed,\u0275\u0275sanitizeUrlOrResourceUrl:()=>xm,\u0275\u0275setComponentScope:()=>ii,\u0275\u0275setNgModuleScope:()=>Fr,\u0275\u0275styleMap:()=>As,\u0275\u0275styleMapInterpolate1:()=>gf,\u0275\u0275styleMapInterpolate2:()=>_f,\u0275\u0275styleMapInterpolate3:()=>vf,\u0275\u0275styleMapInterpolate4:()=>bf,\u0275\u0275styleMapInterpolate5:()=>yf,\u0275\u0275styleMapInterpolate6:()=>Cf,\u0275\u0275styleMapInterpolate7:()=>xf,\u0275\u0275styleMapInterpolate8:()=>Mf,\u0275\u0275styleMapInterpolateV:()=>Ef,\u0275\u0275styleProp:()=>Ou,\u0275\u0275stylePropInterpolate1:()=>Wu,\u0275\u0275stylePropInterpolate2:()=>Hu,\u0275\u0275stylePropInterpolate3:()=>$u,\u0275\u0275stylePropInterpolate4:()=>Ku,\u0275\u0275stylePropInterpolate5:()=>Gu,\u0275\u0275stylePropInterpolate6:()=>Zu,\u0275\u0275stylePropInterpolate7:()=>Qu,\u0275\u0275stylePropInterpolate8:()=>Yu,\u0275\u0275stylePropInterpolateV:()=>Xu,\u0275\u0275syntheticHostListener:()=>vu,\u0275\u0275syntheticHostProperty:()=>qu,\u0275\u0275template:()=>Ap,\u0275\u0275templateRefExtractor:()=>Wg,\u0275\u0275text:()=>sf,\u0275\u0275textInterpolate:()=>Lu,\u0275\u0275textInterpolate1:()=>Wc,\u0275\u0275textInterpolate2:()=>Ru,\u0275\u0275textInterpolate3:()=>Fu,\u0275\u0275textInterpolate4:()=>Bu,\u0275\u0275textInterpolate5:()=>Nu,\u0275\u0275textInterpolate6:()=>Uu,\u0275\u0275textInterpolate7:()=>ju,\u0275\u0275textInterpolate8:()=>Vu,\u0275\u0275textInterpolateV:()=>zu,\u0275\u0275trustConstantHtml:()=>ym,\u0275\u0275trustConstantResourceUrl:()=>Cm,\u0275\u0275validateIframeAttribute:()=>rm,\u0275\u0275viewQuery:()=>Bg});var n=a(8929),e=a(2654),o=a(6498),l=a(6787),v=a(8117);function d(t){for(let i in t)if(t[i]===d)return i;throw Error("Could not find renamed property on target object.")}function u(t,i){for(const r in i)i.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=i[r])}function b(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(b).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const r=i.indexOf("\n");return-1===r?i:i.substring(0,r)}function C(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const x=d({__forward_ref__:d});function w(t){return t.__forward_ref__=w,t.toString=function(){return b(this())},t}function g(t){return f(t)?t():t}function f(t){return"function"==typeof t&&t.hasOwnProperty(x)&&t.__forward_ref__===w}function S(t){return t&&!!t.\u0275providers}const B="https://g.co/ng/security#xss";class Z extends Error{constructor(i,r){super(le(i,r)),this.code=i}}function le(t,i){return`NG0${Math.abs(t)}${i?": "+i.trim():""}`}function q(t){return"string"==typeof t?t:null==t?"":String(t)}function X(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():q(t)}function xe(t,i){throw new Z(-201,!1)}function lt(t,i,r,c){throw new Error(`ASSERTION ERROR: ${t}`+(null==c?"":` [Expected=> ${r} ${c} ${i} <=Actual]`))}function H(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const W=H;function He(t){return{providers:t.providers||[],imports:t.imports||[]}}function Te(t){return mt(t,ut)||mt(t,k)}function Be(t){return null!==Te(t)}function mt(t,i){return t.hasOwnProperty(i)?t[i]:null}function Qe(t){return t&&(t.hasOwnProperty(te)||t.hasOwnProperty(R))?t[te]:null}const ut=d({\u0275prov:d}),te=d({\u0275inj:d}),k=d({ngInjectableDef:d}),R=d({ngInjectorDef:d});var be=(()=>((be=be||{})[be.Default=0]="Default",be[be.Host=1]="Host",be[be.Self=2]="Self",be[be.SkipSelf=4]="SkipSelf",be[be.Optional=8]="Optional",be))();let et;function ge(t){const i=et;return et=t,i}function ke(t,i,r){const c=Te(t);return c&&"root"==c.providedIn?void 0===c.value?c.value=c.factory():c.value:r&be.Optional?null:void 0!==i?i:void xe(b(t))}const Pt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),at={},Lt="__NG_DI_FLAG__",Rt="ngTempTokenPath",ai="ngTokenPath",Xt=/\n/gm,ui="\u0275",vt="__source";let Ut;function Zt(t){const i=Ut;return Ut=t,i}function Ci(t,i=be.Default){if(void 0===Ut)throw new Z(-203,!1);return null===Ut?ke(t,void 0,i):Ut.get(t,i&be.Optional?null:void 0,i)}function _i(t,i=be.Default){return(function Ue(){return et}()||Ci)(g(t),i)}function pi(t){throw new Z(202,!1)}function Bi(t,i=be.Default){return _i(t,ze(i))}function ze(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ue(t){const i=[];for(let r=0;r<t.length;r++){const c=g(t[r]);if(Array.isArray(c)){if(0===c.length)throw new Z(900,!1);let p,_=be.Default;for(let O=0;O<c.length;O++){const Q=c[O],ce=Ee(Q);"number"==typeof ce?-1===ce?p=Q.token:_|=ce:p=Q}i.push(_i(p,_))}else i.push(_i(c))}return i}function re(t,i){return t[Lt]=i,t.prototype[Lt]=i,t}function Ee(t){return t[Lt]}function xt(t){return{toString:t}.toString()}var Ht=(()=>((Ht=Ht||{})[Ht.OnPush=0]="OnPush",Ht[Ht.Default=1]="Default",Ht))(),wt=(()=>{return(t=wt||(wt={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",wt;var t})();const Mt={},It=[],se=d({\u0275cmp:d}),we=d({\u0275dir:d}),Le=d({\u0275pipe:d}),Ie=d({\u0275mod:d}),Ot=d({\u0275fac:d}),Me=d({__NG_ELEMENT_ID__:d});let yt=0;function St(t){return xt(()=>{const i=fo(t),r={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ht.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||wt.Emulated,id:"c"+yt++,styles:t.styles||It,_:null,schemas:t.schemas||null,tView:null};Si(r);const c=t.dependencies;return r.directiveDefs=lr(c,!1),r.pipeDefs=lr(c,!0),r})}function ii(t,i,r){const c=t.\u0275cmp;c.directiveDefs=lr(i,!1),c.pipeDefs=lr(r,!0)}function Ki(t){return Xi(t)||Mn(t)}function Pn(t){return null!==t}function ir(t){return xt(()=>({type:t.type,bootstrap:t.bootstrap||It,declarations:t.declarations||It,imports:t.imports||It,exports:t.exports||It,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Fr(t,i){return xt(()=>{const r=zn(t,!0);r.declarations=i.declarations||It,r.imports=i.imports||It,r.exports=i.exports||It})}function yr(t,i){if(null==t)return Mt;const r={};for(const c in t)if(t.hasOwnProperty(c)){let p=t[c],_=p;Array.isArray(p)&&(_=p[1],p=p[0]),r[p]=c,i&&(i[p]=_)}return r}function fr(t){return xt(()=>{const i=fo(t);return Si(i),i})}function ar(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 Xi(t){return t[se]||null}function Mn(t){return t[we]||null}function Ln(t){return t[Le]||null}function Rn(t){const i=Xi(t)||Mn(t)||Ln(t);return null!==i&&i.standalone}function zn(t,i){const r=t[Ie]||null;if(!r&&!0===i)throw new Error(`Type ${b(t)} does not have '\u0275mod' property.`);return r}function fo(t){const i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||It,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:yr(t.inputs,i),outputs:yr(t.outputs)}}function Si(t){t.features?.forEach(i=>i(t))}function lr(t,i){if(!t)return null;const r=i?Ln:Ki;return()=>("function"==typeof t?t():t).map(c=>r(c)).filter(Pn)}const Fn=0,bi=1,gi=2,ji=3,Dn=4,Wn=5,pn=6,qn=7,Mi=8,qi=9,Qn=10,Vi=11,Bn=12,Br=13,On=14,Yn=15,Ei=16,Nn=17,ht=18,ni=19,he=20,je=21,Je=22,li=1,zi=2,dn=7,en=8,Hn=9,Tn=10;function Fi(t){return Array.isArray(t)&&"object"==typeof t[li]}function bn(t){return Array.isArray(t)&&!0===t[li]}function cn(t){return 0!=(4&t.flags)}function dr(t){return t.componentOffset>-1}function eo(t){return 1==(1&t.flags)}function $n(t){return!!t.template}function ao(t){return 0!=(256&t[gi])}function xr(t,i){return t.hasOwnProperty(Ot)?t[Ot]:null}class wo{constructor(i,r,c){this.previousValue=i,this.currentValue=r,this.firstChange=c}isFirstChange(){return this.firstChange}}function No(){return Zr}function Zr(t){return t.type.prototype.ngOnChanges&&(t.setInput=gr),Un}function Un(){const t=Ur(this),i=t?.current;if(i){const r=t.previous;if(r===Mt)t.previous=i;else for(let c in i)r[c]=i[c];t.current=null,this.ngOnChanges(i)}}function gr(t,i,r,c){const p=this.declaredInputs[r],_=Ur(t)||function nr(t,i){return t[co]=i}(t,{previous:Mt,current:null}),O=_.current||(_.current={}),Q=_.previous,ce=Q[p];O[p]=new wo(ce&&ce.currentValue,i,Q===Mt),t[c]=i}No.ngInherit=!0;const co="__ngSimpleChanges__";function Ur(t){return t[co]||null}let _r=null;const Qr=t=>{_r=t},Xn=function(t,i,r){_r?.(t,i,r)},Uo="svg",_o="math";function jn(t){for(;Array.isArray(t);)t=t[Fn];return t}function kt(t,i){return jn(i[t])}function D(t,i){return jn(i[t.index])}function _e(t,i){return t.data[i]}function it(t,i){return t[i]}function Dt(t,i){const r=i[t];return Fi(r)?r:r[Fn]}function xi(t){return 64==(64&t[gi])}function si(t,i){return null==i?null:t[i]}function fn(t){t[ht]=0}function Gn(t,i){t[Wn]+=i;let r=t,c=t[ji];for(;null!==c&&(1===i&&1===r[Wn]||-1===i&&0===r[Wn]);)c[Wn]+=i,r=c,c=c[ji]}const Wi={lFrame:ws(null),bindingsEnabled:!0};function N(){return Wi.bindingsEnabled}function de(){Wi.bindingsEnabled=!0}function $e(){Wi.bindingsEnabled=!1}function Ve(){return Wi.lFrame.lView}function pt(){return Wi.lFrame.tView}function qt(t){return Wi.lFrame.contextLView=t,t[Mi]}function ki(t){return Wi.lFrame.contextLView=null,t}function Ai(){let t=hi();for(;null!==t&&64===t.type;)t=t.parent;return t}function hi(){return Wi.lFrame.currentTNode}function Hi(){const t=Wi.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function gn(t,i){const r=Wi.lFrame;r.currentTNode=t,r.isParent=i}function vr(){return Wi.lFrame.isParent}function Pi(){Wi.lFrame.isParent=!1}function _n(){const t=Wi.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Zn(){return Wi.lFrame.bindingIndex}function Io(t){return Wi.lFrame.bindingIndex=t}function to(){return Wi.lFrame.bindingIndex++}function Mr(t){const i=Wi.lFrame,r=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,r}function io(t){Wi.lFrame.inI18n=t}function Ms(t,i){const r=Wi.lFrame;r.bindingIndex=r.bindingRootIndex=t,jo(i)}function jo(t){Wi.lFrame.currentDirectiveIndex=t}function Ao(t){const i=Wi.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}function br(){return Wi.lFrame.currentQueryIndex}function vo(t){Wi.lFrame.currentQueryIndex=t}function Vo(t){const i=t[bi];return 2===i.type?i.declTNode:1===i.type?t[pn]:null}function ko(t,i,r){if(r&be.SkipSelf){let p=i,_=t;for(;!(p=p.parent,null!==p||r&be.Host||(p=Vo(_),null===p||(_=_[Yn],10&p.type))););if(null===p)return!1;i=p,t=_}const c=Wi.lFrame=Es();return c.currentTNode=i,c.lView=t,!0}function zo(t){const i=Es(),r=t[bi];Wi.lFrame=i,i.currentTNode=r.firstChild,i.lView=t,i.tView=r,i.contextLView=t,i.bindingIndex=r.bindingStartIndex,i.inI18n=!1}function Es(){const t=Wi.lFrame,i=null===t?null:t.child;return null===i?ws(t):i}function ws(t){const i={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=i),i}function $s(){const t=Wi.lFrame;return Wi.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Wo=$s;function is(){const t=$s();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 An(){return Wi.lFrame.selectedIndex}function Yr(t){Wi.lFrame.selectedIndex=t}function Jn(){const t=Wi.lFrame;return _e(t.tView,t.selectedIndex)}function Yo(){Wi.lFrame.currentNamespace=Uo}function Ss(){Wi.lFrame.currentNamespace=_o}function gs(){!function ra(){Wi.lFrame.currentNamespace=null}()}function So(t,i){for(let r=i.directiveStart,c=i.directiveEnd;r<c;r++){const _=t.data[r].type.prototype,{ngAfterContentInit:O,ngAfterContentChecked:Q,ngAfterViewInit:ce,ngAfterViewChecked:De,ngOnDestroy:tt}=_;O&&(t.contentHooks??(t.contentHooks=[])).push(-r,O),Q&&((t.contentHooks??(t.contentHooks=[])).push(r,Q),(t.contentCheckHooks??(t.contentCheckHooks=[])).push(r,Q)),ce&&(t.viewHooks??(t.viewHooks=[])).push(-r,ce),De&&((t.viewHooks??(t.viewHooks=[])).push(r,De),(t.viewCheckHooks??(t.viewCheckHooks=[])).push(r,De)),null!=tt&&(t.destroyHooks??(t.destroyHooks=[])).push(r,tt)}}function Ho(t,i,r){Se(t,i,3,r)}function Xo(t,i,r,c){(3&t[gi])===r&&Se(t,i,r,c)}function ee(t,i){let r=t[gi];(3&r)===i&&(r&=2047,r+=1,t[gi]=r)}function Se(t,i,r,c){const _=c??-1,O=i.length-1;let Q=0;for(let ce=void 0!==c?65535&t[ht]:0;ce<O;ce++)if("number"==typeof i[ce+1]){if(Q=i[ce],null!=c&&Q>=c)break}else i[ce]<0&&(t[ht]+=65536),(Q<_||-1==_)&&(oe(t,r,i,ce),t[ht]=(4294901760&t[ht])+ce+2),ce++}function oe(t,i,r,c){const p=r[c]<0,_=r[c+1],Q=t[p?-r[c]:r[c]];if(p){if(t[gi]>>11<t[ht]>>16&&(3&t[gi])===i){t[gi]+=2048,Xn(4,Q,_);try{_.call(Q)}finally{Xn(5,Q,_)}}}else{Xn(4,Q,_);try{_.call(Q)}finally{Xn(5,Q,_)}}}const Ne=-1;class bt{constructor(i,r,c){this.factory=i,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=c}}function Cn(t,i,r){let c=0;for(;c<r.length;){const p=r[c];if("number"==typeof p){if(0!==p)break;c++;const _=r[c++],O=r[c++],Q=r[c++];t.setAttribute(i,O,Q,_)}else{const _=p,O=r[++c];Or(_)?t.setProperty(i,_,O):t.setAttribute(i,_,O),c++}}return c}function In(t){return 3===t||4===t||6===t}function Or(t){return 64===t.charCodeAt(0)}function Er(t,i){if(null!==i&&0!==i.length)if(null===t||0===t.length)t=i.slice();else{let r=-1;for(let c=0;c<i.length;c++){const p=i[c];"number"==typeof p?r=p:0===r||$o(t,r,p,null,-1===r||2===r?i[++c]:null)}}return t}function $o(t,i,r,c,p){let _=0,O=t.length;if(-1===i)O=-1;else for(;_<t.length;){const Q=t[_++];if("number"==typeof Q){if(Q===i){O=-1;break}if(Q>i){O=_-1;break}}}for(;_<t.length;){const Q=t[_];if("number"==typeof Q)break;if(Q===r){if(null===c)return void(null!==p&&(t[_+1]=p));if(c===t[_+1])return void(t[_+2]=p)}_++,null!==c&&_++,null!==p&&_++}-1!==O&&(t.splice(O,0,i),_=O+1),t.splice(_++,0,r),null!==c&&t.splice(_++,0,c),null!==p&&t.splice(_++,0,p)}function jr(t){return t!==Ne}function mo(t){return 32767&t}function m(t,i){let r=function s(t){return t>>16}(t),c=i;for(;r>0;)c=c[Yn],r--;return c}let E=!0;function Y(t){const i=E;return E=t,i}const Xe=255,Tt=5;let Wt=0;const Yt={};function Di(t,i){const r=un(t,i);if(-1!==r)return r;const c=i[bi];c.firstCreatePass&&(t.injectorIndex=i.length,$i(c.data,t),$i(i,null),$i(c.blueprint,null));const p=Vr(t,i),_=t.injectorIndex;if(jr(p)){const O=mo(p),Q=m(p,i),ce=Q[bi].data;for(let De=0;De<8;De++)i[_+De]=Q[O+De]|ce[O+De]}return i[_+8]=p,_}function $i(t,i){t.push(0,0,0,0,0,0,0,0,i)}function un(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function Vr(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let r=0,c=null,p=i;for(;null!==p;){if(c=aa(p),null===c)return Ne;if(r++,p=p[Yn],-1!==c.injectorIndex)return c.injectorIndex|r<<16}return Ne}function wr(t,i,r){!function di(t,i,r){let c;"string"==typeof r?c=r.charCodeAt(0)||0:r.hasOwnProperty(Me)&&(c=r[Me]),null==c&&(c=r[Me]=Wt++);const p=c&Xe;i.data[t+(p>>Tt)]|=1<<p}(t,i,r)}function Ar(t,i,r){if(r&be.Optional||void 0!==t)return t;xe()}function ds(t,i,r,c){if(r&be.Optional&&void 0===c&&(c=null),!(r&(be.Self|be.Host))){const p=t[qi],_=ge(void 0);try{return p?p.get(i,c,r&be.Optional):ke(i,c,r&be.Optional)}finally{ge(_)}}return Ar(c,0,r)}function Rs(t,i,r,c=be.Default,p){if(null!==t){if(1024&i[gi]){const O=function ya(t,i,r,c,p){let _=t,O=i;for(;null!==_&&null!==O&&1024&O[gi]&&!(256&O[gi]);){const Q=sa(_,O,r,c|be.Self,Yt);if(Q!==Yt)return Q;let ce=_.parent;if(!ce){const De=O[je];if(De){const tt=De.get(r,Yt,c);if(tt!==Yt)return tt}ce=aa(O),O=O[Yn]}_=ce}return p}(t,i,r,c,Yt);if(O!==Yt)return O}const _=sa(t,i,r,c,Yt);if(_!==Yt)return _}return ds(i,r,c,p)}function sa(t,i,r,c,p){const _=function Xr(t){if("string"==typeof t)return t.charCodeAt(0)||0;const i=t.hasOwnProperty(Me)?t[Me]:void 0;return"number"==typeof i?i>=0?i&Xe:ba:i}(r);if("function"==typeof _){if(!ko(i,t,c))return c&be.Host?Ar(p,0,c):ds(i,r,c,p);try{const O=_(c);if(null!=O||c&be.Optional)return O;xe()}finally{Wo()}}else if("number"==typeof _){let O=null,Q=un(t,i),ce=Ne,De=c&be.Host?i[Ei][pn]:null;for((-1===Q||c&be.SkipSelf)&&(ce=-1===Q?Vr(t,i):i[Q+8],ce!==Ne&&Ko(c,!1)?(O=i[bi],Q=mo(ce),i=m(ce,i)):Q=-1);-1!==Q;){const tt=i[bi];if(mr(_,Q,tt.data)){const Ct=Fs(Q,i,r,O,c,De);if(Ct!==Yt)return Ct}ce=i[Q+8],ce!==Ne&&Ko(c,i[bi].data[Q+8]===De)&&mr(_,Q,i)?(O=tt,Q=mo(ce),i=m(ce,i)):Q=-1}}return p}function Fs(t,i,r,c,p,_){const O=i[bi],Q=O.data[t+8],tt=ns(Q,O,r,null==c?dr(Q)&&E:c!=O&&0!=(3&Q.type),p&be.Host&&_===Q);return null!==tt?rs(i,O,tt,Q):Yt}function ns(t,i,r,c,p){const _=t.providerIndexes,O=i.data,Q=1048575&_,ce=t.directiveStart,tt=_>>20,Ft=p?Q+tt:t.directiveEnd;for(let Kt=c?Q:Q+tt;Kt<Ft;Kt++){const ci=O[Kt];if(Kt<ce&&r===ci||Kt>=ce&&ci.type===r)return Kt}if(p){const Kt=O[ce];if(Kt&&$n(Kt)&&Kt.type===r)return ce}return null}function rs(t,i,r,c){let p=t[r];const _=i.data;if(function Gt(t){return t instanceof bt}(p)){const O=p;O.resolving&&function K(t,i){const r=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new Z(-200,`Circular dependency in DI detected for ${t}${r}`)}(X(_[r]));const Q=Y(O.canSeeViewProviders);O.resolving=!0;const ce=O.injectImpl?ge(O.injectImpl):null;ko(t,c,be.Default);try{p=t[r]=O.factory(void 0,_,t,c),i.firstCreatePass&&r>=c.directiveStart&&function oa(t,i,r){const{ngOnChanges:c,ngOnInit:p,ngDoCheck:_}=i.type.prototype;if(c){const O=Zr(i);(r.preOrderHooks??(r.preOrderHooks=[])).push(t,O),(r.preOrderCheckHooks??(r.preOrderCheckHooks=[])).push(t,O)}p&&(r.preOrderHooks??(r.preOrderHooks=[])).push(0-t,p),_&&((r.preOrderHooks??(r.preOrderHooks=[])).push(t,_),(r.preOrderCheckHooks??(r.preOrderCheckHooks=[])).push(t,_))}(r,_[r],i)}finally{null!==ce&&ge(ce),Y(Q),O.resolving=!1,Wo()}}return p}function mr(t,i,r){return!!(r[i+(t>>Tt)]&1<<t)}function Ko(t,i){return!(t&be.Self||t&be.Host&&i)}class us{constructor(i,r){this._tNode=i,this._lView=r}get(i,r,c){return Rs(this._tNode,this._lView,i,ze(c),r)}}function ba(){return new us(Ai(),Ve())}function Ks(t){return xt(()=>{const i=t.prototype.constructor,r=i[Ot]||Ds(i),c=Object.prototype;let p=Object.getPrototypeOf(t.prototype).constructor;for(;p&&p!==c;){const _=p[Ot]||Ds(p);if(_&&_!==r)return _;p=Object.getPrototypeOf(p)}return _=>new _})}function Ds(t){return f(t)?()=>{const i=Ds(g(t));return i&&i()}:xr(t)}function aa(t){const i=t[bi],r=i.type;return 2===r?i.declTNode:1===r?t[pn]:null}function Gs(t){return function po(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const r=t.attrs;if(r){const c=r.length;let p=0;for(;p<c;){const _=r[p];if(In(_))break;if(0===_)p+=2;else if("number"==typeof _)for(p++;p<c&&"string"==typeof r[p];)p++;else{if(_===i)return r[p+1];p+=2}}}return null}(Ai(),t)}const Lo="__annotations__",kr="__parameters__",_s="__prop__metadata__";function Do(t,i,r,c,p){return xt(()=>{const _=Ra(i);function O(...Q){if(this instanceof O)return _.call(this,...Q),this;const ce=new O(...Q);return function(tt){return p&&p(tt,...Q),(tt.hasOwnProperty(Lo)?tt[Lo]:Object.defineProperty(tt,Lo,{value:[]})[Lo]).push(ce),c&&c(tt),tt}}return r&&(O.prototype=Object.create(r.prototype)),O.prototype.ngMetadataName=t,O.annotationCls=O,O})}function Ra(t){return function(...r){if(t){const c=t(...r);for(const p in c)this[p]=c[p]}}}function Ts(t,i,r){return xt(()=>{const c=Ra(i);function p(..._){if(this instanceof p)return c.apply(this,_),this;const O=new p(..._);return Q.annotation=O,Q;function Q(ce,De,tt){const Ct=ce.hasOwnProperty(kr)?ce[kr]:Object.defineProperty(ce,kr,{value:[]})[kr];for(;Ct.length<=tt;)Ct.push(null);return(Ct[tt]=Ct[tt]||[]).push(O),ce}}return r&&(p.prototype=Object.create(r.prototype)),p.prototype.ngMetadataName=t,p.annotationCls=p,p})}function bo(t,i,r,c){return xt(()=>{const p=Ra(i);function _(...O){if(this instanceof _)return p.apply(this,O),this;const Q=new _(...O);return function ce(De,tt){const Ct=De.constructor,Ft=Ct.hasOwnProperty(_s)?Ct[_s]:Object.defineProperty(Ct,_s,{value:{}})[_s];Ft[tt]=Ft.hasOwnProperty(tt)&&Ft[tt]||[],Ft[tt].unshift(Q),c&&c(De,tt,...O)}}return r&&(_.prototype=Object.create(r.prototype)),_.prototype.ngMetadataName=t,_.annotationCls=_,_})}const la=Ts("Attribute",t=>({attributeName:t,__NG_ELEMENT_ID__:()=>Gs(t)}));class rr{constructor(i,r){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=H({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Fa=new rr("AnalyzeForEntryComponents");class hs{}const ca=bo("ContentChildren",(t,i={})=>({selector:t,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0,...i}),hs),Bs=bo("ContentChild",(t,i={})=>({selector:t,first:!0,isViewQuery:!1,descendants:!0,...i}),hs),gl=bo("ViewChildren",(t,i={})=>({selector:t,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0,...i}),hs),Ba=bo("ViewChild",(t,i)=>({selector:t,first:!0,isViewQuery:!0,descendants:!0,...i}),hs);var zr=(()=>((zr=zr||{})[zr.Directive=0]="Directive",zr[zr.Component=1]="Component",zr[zr.Injectable=2]="Injectable",zr[zr.Pipe=3]="Pipe",zr[zr.NgModule=4]="NgModule",zr))();function no(t){const i=Pt.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Ca=Function;function da(t){return"function"==typeof t}function Ro(t){return t.flat(Number.POSITIVE_INFINITY)}function ms(t,i){t.forEach(r=>Array.isArray(r)?ms(r,i):i(r))}function _l(t,i,r){i>=t.length?t.push(r):t.splice(i,0,r)}function ua(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function Zs(t,i){const r=[];for(let c=0;c<t;c++)r.push(i);return r}function To(t,i,r){let c=Us(t,i);return c>=0?t[1|c]=r:(c=~c,function bl(t,i,r,c){let p=t.length;if(p==i)t.push(r,c);else if(1===p)t.push(c,t[0]),t[0]=r;else{for(p--,t.push(t[p-1],t[p]);p>i;)t[p]=t[p-2],p--;t[i]=r,t[i+1]=c}}(t,c,i,r)),c}function ha(t,i){const r=Us(t,i);if(r>=0)return t[1|r]}function Us(t,i){return function A(t,i,r){let c=0,p=t.length>>r;for(;p!==c;){const _=c+(p-c>>1),O=t[_<<r];if(i===O)return _<<r;O>i?p=_:c=_+1}return~(p<<r)}(t,i,1)}const V=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,T=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,ie=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Ce=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class rt{constructor(i){this._reflect=i||Pt.Reflect}factory(i){return(...r)=>new i(...r)}_zipTypesAndAnnotations(i,r){let c;c=Zs(typeof i>"u"?r.length:i.length);for(let p=0;p<c.length;p++)c[p]=typeof i>"u"?[]:i[p]&&i[p]!=Object?[i[p]]:[],r&&null!=r[p]&&(c[p]=c[p].concat(r[p]));return c}_ownParameters(i,r){if(function Ke(t){return V.test(t)||Ce.test(t)||T.test(t)&&!ie.test(t)}(i.toString()))return null;if(i.parameters&&i.parameters!==r.parameters)return i.parameters;const p=i.ctorParameters;if(p&&p!==r.ctorParameters){const Q="function"==typeof p?p():p,ce=Q.map(tt=>tt&&tt.type),De=Q.map(tt=>tt&&Vt(tt.decorators));return this._zipTypesAndAnnotations(ce,De)}const _=i.hasOwnProperty(kr)&&i[kr],O=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",i);return O||_?this._zipTypesAndAnnotations(O,_):Zs(i.length)}parameters(i){if(!da(i))return[];const r=ri(i);let c=this._ownParameters(i,r);return!c&&r!==Object&&(c=this.parameters(r)),c||[]}_ownAnnotations(i,r){if(i.annotations&&i.annotations!==r.annotations){let c=i.annotations;return"function"==typeof c&&c.annotations&&(c=c.annotations),c}return i.decorators&&i.decorators!==r.decorators?Vt(i.decorators):i.hasOwnProperty(Lo)?i[Lo]:null}annotations(i){if(!da(i))return[];const r=ri(i),c=this._ownAnnotations(i,r)||[];return(r!==Object?this.annotations(r):[]).concat(c)}_ownPropMetadata(i,r){if(i.propMetadata&&i.propMetadata!==r.propMetadata){let c=i.propMetadata;return"function"==typeof c&&c.propMetadata&&(c=c.propMetadata),c}if(i.propDecorators&&i.propDecorators!==r.propDecorators){const c=i.propDecorators,p={};return Object.keys(c).forEach(_=>{p[_]=Vt(c[_])}),p}return i.hasOwnProperty(_s)?i[_s]:null}propMetadata(i){if(!da(i))return{};const r=ri(i),c={};if(r!==Object){const _=this.propMetadata(r);Object.keys(_).forEach(O=>{c[O]=_[O]})}const p=this._ownPropMetadata(i,r);return p&&Object.keys(p).forEach(_=>{const O=[];c.hasOwnProperty(_)&&O.push(...c[_]),O.push(...p[_]),c[_]=O}),c}ownPropMetadata(i){return da(i)&&this._ownPropMetadata(i,ri(i))||{}}hasLifecycleHook(i,r){return i instanceof Ca&&r in i.prototype}}function Vt(t){return t?t.map(i=>new(0,i.type.annotationCls)(...i.args?i.args:[])):[]}function ri(t){const i=t.prototype?Object.getPrototypeOf(t.prototype):null;return(i?i.constructor:null)||Object}const Ti=re(Ts("Inject",t=>({token:t})),-1),Oi=re(Ts("Optional"),8),vn=re(Ts("Self"),2),pr=re(Ts("SkipSelf"),4),ps=re(Ts("Host"),1);let Go=null;function Jo(){return Go=Go||new rt}function Po(t){return ma(Jo().parameters(t))}function ma(t){return t.map(i=>function xa(t){const i={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(t)&&t.length>0)for(let r=0;r<t.length;r++){const c=t[r];if(void 0===c)continue;const p=Object.getPrototypeOf(c);if(c instanceof Oi||"Optional"===p.ngMetadataName)i.optional=!0;else if(c instanceof pr||"SkipSelf"===p.ngMetadataName)i.skipSelf=!0;else if(c instanceof vn||"Self"===p.ngMetadataName)i.self=!0;else if(c instanceof ps||"Host"===p.ngMetadataName)i.host=!0;else if(c instanceof Ti)i.token=c.token;else if(c instanceof la){if(void 0===c.attributeName)throw new Z(204,!1);i.attribute=c.attributeName}else i.token=c}else i.token=void 0===t||Array.isArray(t)&&0===t.length?null:t;return i}(i))}function Ma(t){const i=[],r=new Map;function c(p){let _=r.get(p);if(!_){const O=t(p);r.set(p,_=O.then(ec))}return _}return Qs.forEach((p,_)=>{const O=[];p.templateUrl&&O.push(c(p.templateUrl).then(Ct=>{p.template=Ct}));const Q=p.styleUrls,ce=p.styles||(p.styles=[]),De=p.styles.length;Q&&Q.forEach((Ct,Ft)=>{ce.push(""),O.push(c(Ct).then(Kt=>{ce[De+Ft]=Kt,Q.splice(Q.indexOf(Ct),1),0==Q.length&&(p.styleUrls=void 0)}))});const tt=Promise.all(O).then(()=>function Ua(t){pa.delete(t)}(_));i.push(tt)}),ql(),Promise.all(i).then(()=>{})}let Qs=new Map;const pa=new Set;function Jl(t){return!!(t.templateUrl&&!t.hasOwnProperty("template")||t.styleUrls&&t.styleUrls.length)}function ql(){const t=Qs;return Qs=new Map,t}function ec(t){return"string"==typeof t?t:t.text()}const ja=new Map;let tc=!0;function Cl(t,i){(function yl(t,i,r){if(i&&i!==r&&tc)throw new Error(`Duplicate module registered for ${t} - ${b(i)} vs ${b(i.name)}`)})(i,ja.get(i)||null,t),ja.set(i,t)}function ic(t){return ja.get(t)}function ld(t){tc=!t}const nc={name:"custom-elements"},rc={name:"no-errors-schema"};let Va=!1;function za(t){Va=t}function oc(){return Va}let xl=!1;function sc(t){xl=t}function cd(){return xl}var Ps=(()=>((Ps=Ps||{})[Ps.Important=1]="Important",Ps[Ps.DashCase=2]="DashCase",Ps))();const Gh=/^>|^->|<!--|-->|--!>|<!-$/g,Zh=/(<|>)/,ud="\u200b$1\u200b";const El=new Map;let hd=0;function dc(t){return El.get(t)||null}class Il{get lView(){return dc(this.lViewId)}constructor(i,r,c){this.lViewId=i,this.nodeIndex=r,this.native=c}}function z(t){let i=fe(t);if(i){if(Fi(i)){const r=i;let c,p,_;if(ft(t)){if(c=wi(r,t),-1==c)throw new Error("The provided component was not found in the application");p=t}else if(function Et(t){return t&&t.constructor&&t.constructor.\u0275dir}(t)){if(c=function sn(t,i){let r=t[bi].firstChild;for(;r;){const p=r.directiveEnd;for(let _=r.directiveStart;_<p;_++)if(t[_]===i)return r.index;r=vi(r)}return-1}(r,t),-1==c)throw new Error("The provided directive was not found in the application");_=on(c,r)}else if(c=$t(r,t),-1==c)return null;const O=jn(r[c]),Q=fe(O),ce=Q&&!Array.isArray(Q)?Q:I(r,c,O);if(p&&void 0===ce.component&&(ce.component=p,F(ce.component,ce)),_&&void 0===ce.directives){ce.directives=_;for(let De=0;De<_.length;De++)F(_[De],ce)}F(ce.native,ce),i=ce}}else{const r=t;let c=r;for(;c=c.parentNode;){const p=fe(c);if(p){const _=Array.isArray(p)?p:p.lView;if(!_)return null;const O=$t(_,r);if(O>=0){const Q=jn(_[O]),ce=I(_,O,Q);F(Q,ce),i=ce;break}}}}return i||null}function I(t,i,r){return new Il(t[he],i,r)}function h(t){let r,i=fe(t);if(Fi(i)){const c=i,p=wi(c,t);r=Dt(p,c);const _=I(c,p,r[Fn]);_.component=t,F(t,_),F(_.native,_)}else r=Dt(i.nodeIndex,i.lView);return r}const M="__ngContext__";function F(t,i){Fi(i)?(t[M]=i[he],function wl(t){El.set(t[he],t)}(i)):t[M]=i}function fe(t){const i=t[M];return"number"==typeof i?dc(i):i||null}function Ge(t){const i=fe(t);return i?Fi(i)?i:i.lView:null}function ft(t){return t&&t.constructor&&t.constructor.\u0275cmp}function $t(t,i){const r=t[bi];for(let c=Je;c<r.bindingStartIndex;c++)if(jn(t[c])===i)return c;return-1}function vi(t){if(t.child)return t.child;if(t.next)return t.next;for(;t.parent&&!t.parent.next;)t=t.parent;return t.parent&&t.parent.next}function wi(t,i){const r=t[bi].components;if(r)for(let c=0;c<r.length;c++){const p=r[c];if(Dt(p,t)[Mi]===i)return p}else if(Dt(Je,t)[Mi]===i)return Je;return-1}function on(t,i){const r=i[bi].data[t];if(0===r.directiveStart)return It;const c=[];for(let p=r.directiveStart;p<r.directiveEnd;p++){const _=i[p];ft(_)||c.push(_)}return c}let Sn;function Vn(t,i){return Sn(t,i)}function Ir(t){const i=t[ji];return bn(i)?i[ji]:i}function vs(t){return function Wr(t){let i=Fi(t)?t:Ge(t);for(;i&&!(256&i[gi]);)i=Ir(i);return i}(t)[Mi]}function xn(t){return Jr(t[Br])}function ln(t){return Jr(t[Dn])}function Jr(t){for(;null!==t&&!bn(t);)t=t[Dn];return t}function yo(t,i,r,c,p){if(null!=c){let _,O=!1;bn(c)?_=c:Fi(c)&&(O=!0,c=c[Fn]);const Q=jn(c);0===t&&null!==r?null==p?es(i,r,Q):qo(i,r,Q,p||null,!0):1===t&&null!==r?qo(i,r,Q,p||null,!0):2===t?gd(i,Q,O):3===t&&i.destroyNode(Q),null!=_&&function tv(t,i,r,c,p){const _=r[dn];_!==jn(r)&&yo(i,t,c,_,p);for(let Q=Tn;Q<r.length;Q++){const ce=r[Q];Dl(ce[bi],ce,t,i,c,_)}}(i,t,_,r,p)}}function Fo(t,i){return t.createText(i)}function fa(t,i,r){t.setValue(i,r)}function Ys(t,i){return t.createComment(function cc(t){return t.replace(Gh,i=>i.replace(Zh,ud))}(i))}function ss(t,i,r){return t.createElement(i,r)}function ro(t,i){const r=t[Hn],c=r.indexOf(i),p=i[ji];512&i[gi]&&(i[gi]&=-513,Gn(p,-1)),r.splice(c,1)}function as(t,i){if(t.length<=Tn)return;const r=Tn+i,c=t[r];if(c){const p=c[Nn];null!==p&&p!==t&&ro(p,c),i>0&&(t[r-1][Dn]=c[Dn]);const _=ua(t,Tn+i);!function uc(t,i){Dl(t,i,i[Vi],2,null,null),i[Fn]=null,i[pn]=null}(c[bi],c);const O=_[ni];null!==O&&O.detachView(_[bi]),c[ji]=null,c[Dn]=null,c[gi]&=-65}return c}function Zo(t,i){if(!(128&i[gi])){const r=i[Vi];r.destroyNode&&Dl(t,i,r,3,null,null),function Zi(t){let i=t[Br];if(!i)return bs(t[bi],t);for(;i;){let r=null;if(Fi(i))r=i[Br];else{const c=i[Tn];c&&(r=c)}if(!r){for(;i&&!i[Dn]&&i!==t;)Fi(i)&&bs(i[bi],i),i=i[ji];null===i&&(i=t),Fi(i)&&bs(i[bi],i),r=i&&i[Dn]}i=r}}(i)}}function bs(t,i){if(!(128&i[gi])){i[gi]&=-65,i[gi]|=128,function mc(t,i){let r;if(null!=t&&null!=(r=t.destroyHooks))for(let c=0;c<r.length;c+=2){const p=i[r[c]];if(!(p instanceof bt)){const _=r[c+1];if(Array.isArray(_))for(let O=0;O<_.length;O+=2){const Q=p[_[O]],ce=_[O+1];Xn(4,Q,ce);try{ce.call(Q)}finally{Xn(5,Q,ce)}}else{Xn(4,p,_);try{_.call(p)}finally{Xn(5,p,_)}}}}}(t,i),function Sr(t,i){const r=t.cleanup,c=i[qn];let p=-1;if(null!==r)for(let _=0;_<r.length-1;_+=2)if("string"==typeof r[_]){const O=r[_+3];O>=0?c[p=O]():c[p=-O].unsubscribe(),_+=2}else{const O=c[p=r[_+1]];r[_].call(O)}if(null!==c){for(let _=p+1;_<c.length;_++)(0,c[_])();i[qn]=null}}(t,i),1===i[bi].type&&i[Vi].destroy();const r=i[Nn];if(null!==r&&bn(i[ji])){r!==i[ji]&&ro(r,i);const c=i[ni];null!==c&&c.detachView(t)}!function Qh(t){El.delete(t[he])}(i)}}function pc(t,i,r){return Co(t,i.parent,r)}function Co(t,i,r){let c=i;for(;null!==c&&40&c.type;)c=(i=c).parent;if(null===c)return r[Fn];{const{componentOffset:p}=c;if(p>-1){const{encapsulation:_}=t.data[c.directiveStart+p];if(_===wt.None||_===wt.Emulated)return null}return D(c,r)}}function qo(t,i,r,c,p){t.insertBefore(i,r,c,p)}function es(t,i,r){t.appendChild(i,r)}function wa(t,i,r,c,p){null!==c?qo(t,i,r,c,p):es(t,i,r)}function fc(t,i){return t.parentNode(i)}function Yh(t,i,r){return Jh(t,i,r)}function Xh(t,i,r){return 40&t.type?D(t,r):null}let pd,vc,bd,bc,Jh=Xh;function qh(t,i){Jh=t,pd=i}function gc(t,i,r,c){const p=pc(t,c,i),_=i[Vi],Q=Yh(c.parent||i[pn],c,i);if(null!=p)if(Array.isArray(r))for(let ce=0;ce<r.length;ce++)wa(_,p,r[ce],Q,!1);else wa(_,p,r,Q,!1);void 0!==pd&&pd(_,c,i,r,p)}function _c(t,i){if(null!==i){const r=i.type;if(3&r)return D(i,t);if(4&r)return fd(-1,t[i.index]);if(8&r){const c=i.child;if(null!==c)return _c(t,c);{const p=t[i.index];return bn(p)?fd(-1,p):jn(p)}}if(32&r)return Vn(i,t)()||jn(t[i.index]);{const c=em(t,i);return null!==c?Array.isArray(c)?c[0]:_c(Ir(t[Ei]),c):_c(t,i.next)}}return null}function em(t,i){return null!==i?t[Ei][pn].projection[i.projection]:null}function fd(t,i){const r=Tn+t+1;if(r<i.length){const c=i[r],p=c[bi].firstChild;if(null!==p)return _c(c,p)}return i[dn]}function gd(t,i,r){const c=fc(t,i);c&&function Sl(t,i,r,c){t.removeChild(i,r,c)}(t,c,i,r)}function _d(t,i,r,c,p,_,O){for(;null!=r;){const Q=c[r.index],ce=r.type;if(O&&0===i&&(Q&&F(jn(Q),c),r.flags|=2),32!=(32&r.flags))if(8&ce)_d(t,i,r.child,c,p,_,!1),yo(i,t,p,Q,_);else if(32&ce){const De=Vn(r,c);let tt;for(;tt=De();)yo(i,t,p,tt,_);yo(i,t,p,Q,_)}else 16&ce?tm(t,i,c,r,p,_):yo(i,t,p,Q,_);r=O?r.projectionNext:r.next}}function Dl(t,i,r,c,p,_){_d(r,c,t.firstChild,i,p,_,!1)}function tm(t,i,r,c,p,_){const O=r[Ei],ce=O[pn].projection[c.projection];if(Array.isArray(ce))for(let De=0;De<ce.length;De++)yo(i,t,p,ce[De],_);else _d(t,i,ce,O[ji],p,_,!0)}function im(t,i,r){""===r?t.removeAttribute(i,"class"):t.setAttribute(i,"class",r)}function nm(t,i,r){const{mergedAttrs:c,classes:p,styles:_}=r;null!==c&&Cn(t,i,c),null!==p&&im(t,i,p),null!==_&&function nv(t,i,r){t.setAttribute(i,"style",r)}(t,i,_)}function vd(){if(void 0===vc&&(vc=null,Pt.trustedTypes))try{vc=Pt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return vc}function $a(t){return vd()?.createHTML(t)||t}function rm(t,i,r){const c=Ve(),p=Jn(),_=D(p,c);if(2===p.type&&"iframe"===i.toLowerCase()){const O=_;throw O.src="",O.srcdoc=$a(""),gd(c[Vi],O),new Z(-910,!1)}return t}function sv(t){bd=t}function om(){return void 0!==bd?bd:typeof document<"u"?document:void 0}function yd(){if(void 0===bc&&(bc=null,Pt.trustedTypes))try{bc=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return bc}function sm(t){return yd()?.createHTML(t)||t}function am(t){return yd()?.createScript(t)||t}function lm(t){return yd()?.createScriptURL(t)||t}class Ia{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${B})`}}class av extends Ia{getTypeName(){return"HTML"}}class lv extends Ia{getTypeName(){return"Style"}}class cv extends Ia{getTypeName(){return"Script"}}class dv extends Ia{getTypeName(){return"URL"}}class uv extends Ia{getTypeName(){return"ResourceURL"}}function Xs(t){return t instanceof Ia?t.changingThisBreaksApplicationSecurity:t}function Ka(t,i){const r=cm(t);if(null!=r&&r!==i){if("ResourceURL"===r&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${r} (see ${B})`)}return r===i}function cm(t){return t instanceof Ia&&t.getTypeName()||null}function hv(t){return new av(t)}function mv(t){return new lv(t)}function pv(t){return new cv(t)}function fv(t){return new dv(t)}function gv(t){return new uv(t)}function dm(t){const i=new vv(t);return function bv(){try{return!!(new window.DOMParser).parseFromString($a(""),"text/html")}catch{return!1}}()?new _v(i):i}class _v{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const r=(new window.DOMParser).parseFromString($a(i),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(i):(r.removeChild(r.firstChild),r)}catch{return null}}}class vv{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const r=this.inertDocument.createElement("template");return r.innerHTML=$a(i),r}}const yv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function yc(t){return(t=String(t)).match(yv)?t:"unsafe:"+t}function Js(t){const i={};for(const r of t.split(","))i[r]=!0;return i}function Tl(...t){const i={};for(const r of t)for(const c in r)r.hasOwnProperty(c)&&(i[c]=!0);return i}const um=Js("area,br,col,hr,img,wbr"),hm=Js("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mm=Js("rp,rt"),Cd=Tl(um,Tl(hm,Js("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")),Tl(mm,Js("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")),Tl(mm,hm)),xd=Js("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),pm=Tl(xd,Js("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Js("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")),Cv=Js("script,style,template");class xv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let r=i.firstChild,c=!0;for(;r;)if(r.nodeType===Node.ELEMENT_NODE?c=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,c&&r.firstChild)r=r.firstChild;else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let p=this.checkClobberedElement(r,r.nextSibling);if(p){r=p;break}r=this.checkClobberedElement(r,r.parentNode)}return this.buf.join("")}startElement(i){const r=i.nodeName.toLowerCase();if(!Cd.hasOwnProperty(r))return this.sanitizedSomething=!0,!Cv.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const c=i.attributes;for(let p=0;p<c.length;p++){const _=c.item(p),O=_.name,Q=O.toLowerCase();if(!pm.hasOwnProperty(Q)){this.sanitizedSomething=!0;continue}let ce=_.value;xd[Q]&&(ce=yc(ce)),this.buf.push(" ",O,'="',fm(ce),'"')}return this.buf.push(">"),!0}endElement(i){const r=i.nodeName.toLowerCase();Cd.hasOwnProperty(r)&&!um.hasOwnProperty(r)&&(this.buf.push("</"),this.buf.push(r),this.buf.push(">"))}chars(i){this.buf.push(fm(i))}checkClobberedElement(i,r){if(r&&(i.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return r}}const Mv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ev=/([^\#-~ |!])/g;function fm(t){return t.replace(/&/g,"&amp;").replace(Mv,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(Ev,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Cc;function gm(t,i){let r=null;try{Cc=Cc||dm(t);let c=i?String(i):"";r=Cc.getInertBodyElement(c);let p=5,_=c;do{if(0===p)throw new Error("Failed to sanitize html because the input is unstable");p--,c=_,_=r.innerHTML,r=Cc.getInertBodyElement(c)}while(c!==_);return $a((new xv).sanitizeChildren(Md(r)||r))}finally{if(r){const c=Md(r)||r;for(;c.firstChild;)c.removeChild(c.firstChild)}}}function Md(t){return"content"in t&&function wv(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var oo=(()=>((oo=oo||{})[oo.NONE=0]="NONE",oo[oo.HTML=1]="HTML",oo[oo.STYLE=2]="STYLE",oo[oo.SCRIPT=3]="SCRIPT",oo[oo.URL=4]="URL",oo[oo.RESOURCE_URL=5]="RESOURCE_URL",oo))();function _m(t){const i=Pl();return i?sm(i.sanitize(oo.HTML,t)||""):Ka(t,"HTML")?sm(Xs(t)):gm(om(),q(t))}function vm(t){const i=Pl();return i?i.sanitize(oo.STYLE,t)||"":Ka(t,"Style")?Xs(t):q(t)}function Ed(t){const i=Pl();return i?i.sanitize(oo.URL,t)||"":Ka(t,"URL")?Xs(t):yc(q(t))}function wd(t){const i=Pl();if(i)return lm(i.sanitize(oo.RESOURCE_URL,t)||"");if(Ka(t,"ResourceURL"))return lm(Xs(t));throw new Z(904,!1)}function bm(t){const i=Pl();if(i)return am(i.sanitize(oo.SCRIPT,t)||"");if(Ka(t,"Script"))return am(Xs(t));throw new Z(905,!1)}function ym(t){return $a(t[0])}function Cm(t){return function ov(t){return vd()?.createScriptURL(t)||t}(t[0])}function xm(t,i,r){return function Iv(t,i){return"src"===i&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===i&&("base"===t||"link"===t)?wd:Ed}(i,r)(t)}function Pl(){const t=Ve();return t&&t[Bn]}const Id=new rr("ENVIRONMENT_INITIALIZER"),Sd=new rr("INJECTOR",-1),Mm=new rr("INJECTOR_DEF_TYPES");class Em{get(i,r=at){if(r===at){const c=new Error(`NullInjectorError: No provider for ${b(i)}!`);throw c.name="NullInjectorError",c}return r}}function Sv(t){return{\u0275providers:t}}function wm(...t){return{\u0275providers:Im(0,t),\u0275fromNgModule:!0}}function Im(t,...i){const r=[],c=new Set;let p;return ms(i,_=>{const O=_;Dd(O,r,[],c)&&(p||(p=[]),p.push(O))}),void 0!==p&&Sm(p,r),r}function Sm(t,i){for(let r=0;r<t.length;r++){const{providers:p}=t[r];Td(p,_=>{i.push(_)})}}function Dd(t,i,r,c){if(!(t=g(t)))return!1;let p=null,_=Qe(t);const O=!_&&Xi(t);if(_||O){if(O&&!O.standalone)return!1;p=t}else{const ce=t.ngModule;if(_=Qe(ce),!_)return!1;p=ce}const Q=c.has(p);if(O){if(Q)return!1;if(c.add(p),O.dependencies){const ce="function"==typeof O.dependencies?O.dependencies():O.dependencies;for(const De of ce)Dd(De,i,r,c)}}else{if(!_)return!1;{if(null!=_.imports&&!Q){let De;c.add(p);try{ms(_.imports,tt=>{Dd(tt,i,r,c)&&(De||(De=[]),De.push(tt))})}finally{}void 0!==De&&Sm(De,i)}if(!Q){const De=xr(p)||(()=>new p);i.push({provide:p,useFactory:De,deps:It},{provide:Mm,useValue:p,multi:!0},{provide:Id,useValue:()=>_i(p),multi:!0})}const ce=_.providers;null==ce||Q||Td(ce,tt=>{i.push(tt)})}}return p!==t&&void 0!==t.providers}function Td(t,i){for(let r of t)S(r)&&(r=r.\u0275providers),Array.isArray(r)?Td(r,i):i(r)}const Dv=d({provide:String,useValue:d});function Pd(t){return null!==t&&"object"==typeof t&&Dv in t}function Sa(t){return"function"==typeof t}const Od=new rr("Set Injector scope."),xc={},Pv={};let Ad;function Mc(){return void 0===Ad&&(Ad=new Em),Ad}class Da{}class Pm extends Da{get destroyed(){return this._destroyed}constructor(i,r,c,p){super(),this.parent=r,this.source=c,this.scopes=p,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ld(i,O=>this.processProvider(O)),this.records.set(Sd,Ga(void 0,this)),p.has("environment")&&this.records.set(Da,Ga(void 0,this));const _=this.records.get(Od);null!=_&&"string"==typeof _.value&&this.scopes.add(_.value),this.injectorDefTypes=new Set(this.get(Mm.multi,It,be.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();for(const i of this._onDestroyHooks)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(i){this._onDestroyHooks.push(i)}runInContext(i){this.assertNotDestroyed();const r=Zt(this),c=ge(void 0);try{return i()}finally{Zt(r),ge(c)}}get(i,r=at,c=be.Default){this.assertNotDestroyed(),c=ze(c);const p=Zt(this),_=ge(void 0);try{if(!(c&be.SkipSelf)){let Q=this.records.get(i);if(void 0===Q){const ce=function Rv(t){return"function"==typeof t||"object"==typeof t&&t instanceof rr}(i)&&Te(i);Q=ce&&this.injectableDefInScope(ce)?Ga(kd(i),xc):null,this.records.set(i,Q)}if(null!=Q)return this.hydrate(i,Q)}return(c&be.Self?Mc():this.parent).get(i,r=c&be.Optional&&r===at?null:r)}catch(O){if("NullInjectorError"===O.name){if((O[Rt]=O[Rt]||[]).unshift(b(i)),p)throw O;return function Re(t,i,r,c){const p=t[Rt];throw i[vt]&&p.unshift(i[vt]),t.message=function We(t,i,r,c=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==ui?t.slice(2):t;let p=b(i);if(Array.isArray(i))p=i.map(b).join(" -> ");else if("object"==typeof i){let _=[];for(let O in i)if(i.hasOwnProperty(O)){let Q=i[O];_.push(O+":"+("string"==typeof Q?JSON.stringify(Q):b(Q)))}p=`{${_.join(", ")}}`}return`${r}${c?"("+c+")":""}[${p}]: ${t.replace(Xt,"\n  ")}`}("\n"+t.message,p,r,c),t[ai]=p,t[Rt]=null,t}(O,i,"R3InjectorError",this.source)}throw O}finally{ge(_),Zt(p)}}resolveInjectorInitializers(){const i=Zt(this),r=ge(void 0);try{const c=this.get(Id.multi,It,be.Self);for(const p of c)p()}finally{Zt(i),ge(r)}}toString(){const i=[],r=this.records;for(const c of r.keys())i.push(b(c));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Z(205,!1)}processProvider(i){let r=Sa(i=g(i))?i:g(i&&i.provide);const c=function Av(t){return Pd(t)?Ga(void 0,t.useValue):Ga(Om(t),xc)}(i);if(Sa(i)||!0!==i.multi)this.records.get(r);else{let p=this.records.get(r);p||(p=Ga(void 0,xc,!0),p.factory=()=>ue(p.multi),this.records.set(r,p)),r=i,p.multi.push(i)}this.records.set(r,c)}hydrate(i,r){return r.value===xc&&(r.value=Pv,r.value=r.factory()),"object"==typeof r.value&&r.value&&function Lv(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(i){if(!i.providedIn)return!1;const r=g(i.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}}function kd(t){const i=Te(t),r=null!==i?i.factory:xr(t);if(null!==r)return r;if(t instanceof rr)throw new Z(204,!1);if(t instanceof Function)return function Ov(t){const i=t.length;if(i>0)throw Zs(i,"?"),new Z(204,!1);const r=function Pe(t){return t&&(t[ut]||t[k])||null}(t);return null!==r?()=>r.factory(t):()=>new t}(t);throw new Z(204,!1)}function Om(t,i,r){let c;if(Sa(t)){const p=g(t);return xr(p)||kd(p)}if(Pd(t))c=()=>g(t.useValue);else if(function Tm(t){return!(!t||!t.useFactory)}(t))c=()=>t.useFactory(...ue(t.deps||[]));else if(function Dm(t){return!(!t||!t.useExisting)}(t))c=()=>_i(g(t.useExisting));else{const p=g(t&&(t.useClass||t.provide));if(!function kv(t){return!!t.deps}(t))return xr(p)||kd(p);c=()=>new p(...ue(t.deps))}return c}function Ga(t,i,r=!1){return{factory:t,value:i,multi:r?[]:void 0}}function Ld(t,i){for(const r of t)Array.isArray(r)?Ld(r,i):r&&S(r)?Ld(r.\u0275providers,i):i(r)}class Am{}class Ec{}class Bv{resolveComponentFactory(i){throw function Fv(t){const i=Error(`No component factory found for ${b(t)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=t,i}(i)}}let Ol=(()=>{class t{}return t.NULL=new Bv,t})();function Nv(){return Za(Ai(),Ve())}function Za(t,i){return new Al(D(t,i))}let Al=(()=>{class t{constructor(r){this.nativeElement=r}}return t.__NG_ELEMENT_ID__=Nv,t})();function Uv(t){return t instanceof Al?t.nativeElement:t}class Lm{}let jv=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Vv(){const t=Ve(),r=Dt(Ai().index,t);return(Fi(r)?r:t)[Vi]}(),t})(),Rm=(()=>{class t{}return t.\u0275prov=H({token:t,providedIn:"root",factory:()=>null}),t})();class Fm{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const Bm=new Fm("15.2.10"),wc={},Rd="ngOriginalError";function Fd(t){return t[Rd]}class kl{constructor(){this._console=console}handleError(i){const r=this._findOriginalError(i);this._console.error("ERROR",i),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(i){let r=i&&Fd(i);for(;r&&Fd(r);)r=Fd(r);return r||null}}function Nm(t){return t.ownerDocument.defaultView}function Um(t){return t.ownerDocument}function jm(t){return t.ownerDocument.body}function qs(t){return t instanceof Function?t():t}function zm(t,i,r){let c=t.length;for(;;){const p=t.indexOf(i,r);if(-1===p)return p;if(0===p||t.charCodeAt(p-1)<=32){const _=i.length;if(p+_===c||t.charCodeAt(p+_)<=32)return p}r=p+1}}const Wm="ng-template";function Qv(t,i,r){let c=0,p=!0;for(;c<t.length;){let _=t[c++];if("string"==typeof _&&p){const O=t[c++];if(r&&"class"===_&&-1!==zm(O.toLowerCase(),i,0))return!0}else{if(1===_){for(;c<t.length&&"string"==typeof(_=t[c++]);)if(_.toLowerCase()===i)return!0;return!1}"number"==typeof _&&(p=!1)}}return!1}function Hm(t){return 4===t.type&&t.value!==Wm}function Yv(t,i,r){return i===(4!==t.type||r?t.value:Wm)}function Xv(t,i,r){let c=4;const p=t.attrs||[],_=function eb(t){for(let i=0;i<t.length;i++)if(In(t[i]))return i;return t.length}(p);let O=!1;for(let Q=0;Q<i.length;Q++){const ce=i[Q];if("number"!=typeof ce){if(!O)if(4&c){if(c=2|1&c,""!==ce&&!Yv(t,ce,r)||""===ce&&1===i.length){if(Os(c))return!1;O=!0}}else{const De=8&c?ce:i[++Q];if(8&c&&null!==t.attrs){if(!Qv(t.attrs,De,r)){if(Os(c))return!1;O=!0}continue}const Ct=Jv(8&c?"class":ce,p,Hm(t),r);if(-1===Ct){if(Os(c))return!1;O=!0;continue}if(""!==De){let Ft;Ft=Ct>_?"":p[Ct+1].toLowerCase();const Kt=8&c?Ft:null;if(Kt&&-1!==zm(Kt,De,0)||2&c&&De!==Ft){if(Os(c))return!1;O=!0}}}}else{if(!O&&!Os(c)&&!Os(ce))return!1;if(O&&Os(ce))continue;O=!1,c=ce|1&c}}return Os(c)||O}function Os(t){return 0==(1&t)}function Jv(t,i,r,c){if(null===i)return-1;let p=0;if(c||!r){let _=!1;for(;p<i.length;){const O=i[p];if(O===t)return p;if(3===O||6===O)_=!0;else{if(1===O||2===O){let Q=i[++p];for(;"string"==typeof Q;)Q=i[++p];continue}if(4===O)break;if(0===O){p+=4;continue}}p+=_?1:2}return-1}return function tb(t,i){let r=t.indexOf(4);if(r>-1)for(r++;r<t.length;){const c=t[r];if("number"==typeof c)return-1;if(c===i)return r;r++}return-1}(i,t)}function $m(t,i,r=!1){for(let c=0;c<i.length;c++)if(Xv(t,i[c],r))return!0;return!1}function ib(t,i){e:for(let r=0;r<i.length;r++){const c=i[r];if(t.length===c.length){for(let p=0;p<t.length;p++)if(t[p]!==c[p])continue e;return!0}}return!1}function Km(t,i){return t?":not("+i.trim()+")":i}function nb(t){let i=t[0],r=1,c=2,p="",_=!1;for(;r<t.length;){let O=t[r];if("string"==typeof O)if(2&c){const Q=t[++r];p+="["+O+(Q.length>0?'="'+Q+'"':"")+"]"}else 8&c?p+="."+O:4&c&&(p+=" "+O);else""!==p&&!Os(O)&&(i+=Km(_,p),p=""),c=O,_=_||!Os(c);r++}return""!==p&&(i+=Km(_,p)),i}const hn={};function Gm(t){Zm(pt(),Ve(),An()+t,!1)}function Zm(t,i,r,c){if(!c)if(3==(3&i[gi])){const _=t.preOrderCheckHooks;null!==_&&Ho(i,_,r)}else{const _=t.preOrderHooks;null!==_&&Xo(i,_,0,r)}Yr(r)}const Qm={\u0275\u0275defineInjectable:H,\u0275\u0275defineInjector:He,\u0275\u0275inject:_i,\u0275\u0275invalidFactoryDep:pi,resolveForwardRef:g};const ab=d({provide:String,useValue:d});function Ym(t){return void 0!==t.useClass}function Xm(t){return void 0!==t.useFactory}const ub=Do("Injectable",void 0,void 0,void 0,(t,i)=>function sb(t,i){let r=null,c=null;t.hasOwnProperty(ut)||Object.defineProperty(t,ut,{get:()=>(null===r&&(r=no().compileInjectable(Qm,`ng:///${t.name}/\u0275prov.js`,function db(t,i){const r=i||{providedIn:null},c={name:t.name,type:t,typeArgumentCount:0,providedIn:r.providedIn};return(Ym(r)||Xm(r))&&void 0!==r.deps&&(c.deps=ma(r.deps)),Ym(r)?c.useClass=r.useClass:function lb(t){return ab in t}(r)?c.useValue=r.useValue:Xm(r)?c.useFactory=r.useFactory:function cb(t){return void 0!==t.useExisting}(r)&&(c.useExisting=r.useExisting),c}(t,i))),r)}),t.hasOwnProperty(Ot)||Object.defineProperty(t,Ot,{get:()=>{if(null===c){const p=no();c=p.compileFactory(Qm,`ng:///${t.name}/\u0275fac.js`,{name:t.name,type:t,typeArgumentCount:0,deps:Po(t),target:p.FactoryTarget.Injectable})}return c},configurable:!0})}(t,i));function Bd(t,i=null,r=null,c){const p=Jm(t,i,r,c);return p.resolveInjectorInitializers(),p}function Jm(t,i=null,r=null,c,p=new Set){const _=[r||It,wm(t)];return c=c||("object"==typeof t?void 0:b(t)),new Pm(_,i||Mc(),c||null,p)}let ga=(()=>{class t{static create(r,c){if(Array.isArray(r))return Bd({name:""},c,r,"");{const p=r.name??"";return Bd({name:p},r.parent,r.providers,p)}}}return t.THROW_IF_NOT_FOUND=at,t.NULL=new Em,t.\u0275prov=H({token:t,providedIn:"any",factory:()=>_i(Sd)}),t.__NG_ELEMENT_ID__=-1,t})();function Nd(t){return t.length>1?" ("+function hb(t){const i=[];for(let r=0;r<t.length;++r){if(i.indexOf(t[r])>-1)return i.push(t[r]),i;i.push(t[r])}return i}(t.slice().reverse()).map(c=>b(c.token)).join(" -> ")+")":""}function Ud(t,i,r,c){const p=[i],_=r(p),O=c?function zv(t,i){const r=`${t} caused by: ${i instanceof Error?i.message:i}`,c=Error(r);return c[Rd]=i,c}(_,c):Error(_);return O.addKey=mb,O.keys=p,O.injectors=[t],O.constructResolvingMessage=r,O[Rd]=c,O}function mb(t,i){this.injectors.push(t),this.keys.push(i),this.message=this.constructResolvingMessage(this.keys)}function qm(t,i){const r=[];for(let c=0,p=i.length;c<p;c++){const _=i[c];r.push(_&&0!=_.length?_.map(b).join(" "):"?")}return Error("Cannot resolve all parameters for '"+b(t)+"'("+r.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+b(t)+"' is decorated with Injectable.")}function bb(t,i){return Error(`Cannot mix multi providers and regular providers, got: ${t} ${i}`)}class ea{constructor(i,r){if(this.token=i,this.id=r,!i)throw new Z(208,!1);this.displayName=b(this.token)}static get(i){return ep.get(g(i))}static get numberOfKeys(){return ep.numberOfKeys}}class yb{constructor(){this._allKeys=new Map}get(i){if(i instanceof ea)return i;if(this._allKeys.has(i))return this._allKeys.get(i);const r=new ea(i,ea.numberOfKeys);return this._allKeys.set(i,r),r}get numberOfKeys(){return this._allKeys.size}}const ep=new yb;class Ic{constructor(i,r,c){this.key=i,this.optional=r,this.visibility=c}static fromKey(i){return new Ic(i,!1,null)}}const Cb=[];class tp{constructor(i,r,c){this.key=i,this.resolvedFactories=r,this.multiProvider=c,this.resolvedFactory=this.resolvedFactories[0]}}class ip{constructor(i,r){this.factory=i,this.dependencies=r}}function xb(t){let i,r;if(t.useClass){const c=g(t.useClass);i=Jo().factory(c),r=rp(c)}else t.useExisting?(i=c=>c,r=[Ic.fromKey(ea.get(t.useExisting))]):t.useFactory?(i=t.useFactory,r=function Ib(t,i){if(i){const r=i.map(c=>[c]);return i.map(c=>op(t,c,r))}return rp(t)}(t.useFactory,t.deps)):(i=()=>t.useValue,r=Cb);return new ip(i,r)}function Mb(t){return new tp(ea.get(t.provide),[xb(t)],t.multi||!1)}function Eb(t){const c=function wb(t,i){for(let r=0;r<t.length;r++){const c=t[r],p=i.get(c.key.id);if(p){if(c.multiProvider!==p.multiProvider)throw bb(p,c);if(c.multiProvider)for(let _=0;_<c.resolvedFactories.length;_++)p.resolvedFactories.push(c.resolvedFactories[_]);else i.set(c.key.id,c)}else{let _;_=c.multiProvider?new tp(c.key,c.resolvedFactories.slice(),c.multiProvider):c,i.set(c.key.id,_)}}return i}(np(t,[]).map(Mb),new Map);return Array.from(c.values())}function np(t,i){return t.forEach(r=>{if(r instanceof Ca)i.push({provide:r,useClass:r});else if(r&&"object"==typeof r&&void 0!==r.provide)i.push(r);else{if(!Array.isArray(r))throw function _b(t){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${t}`)}(r);np(r,i)}}),i}function rp(t){const i=Jo().parameters(t);if(!i)return[];if(i.some(r=>null==r))throw qm(t,i);return i.map(r=>op(t,r,i))}function op(t,i,r){let c=null,p=!1;if(!Array.isArray(i))return jd(i instanceof Ti?i.token:i,p,null);let _=null;for(let O=0;O<i.length;++O){const Q=i[O];Q instanceof Ca?c=Q:Q instanceof Ti?c=Q.token:Q instanceof Oi?p=!0:Q instanceof vn||Q instanceof pr?_=Q:Q instanceof rr&&(c=Q)}if(c=g(c),null!=c)return jd(c,p,_);throw qm(t,r)}function jd(t,i,r){return new Ic(ea.get(t),i,r)}const Ll={};class Ya{static resolve(i){return Eb(i)}static resolveAndCreate(i,r){const c=Ya.resolve(i);return Ya.fromResolvedProviders(c,r)}static fromResolvedProviders(i,r){return new Sb(i,r)}}let Sb=(()=>{class t{constructor(r,c){this._constructionCounter=0,this._providers=r,this.parent=c||null;const p=r.length;this.keyIds=[],this.objs=[];for(let _=0;_<p;_++)this.keyIds[_]=r[_].key.id,this.objs[_]=Ll}get(r,c=at){return this._getByKey(ea.get(r),null,c)}resolveAndCreateChild(r){const c=Ya.resolve(r);return this.createChildFromResolved(c)}createChildFromResolved(r){const c=new t(r);return c.parent=this,c}resolveAndInstantiate(r){return this.instantiateResolved(Ya.resolve([r])[0])}instantiateResolved(r){return this._instantiateProvider(r)}getProviderAtIndex(r){if(r<0||r>=this._providers.length)throw function vb(t){return Error(`Index ${t} is out-of-bounds.`)}(r);return this._providers[r]}_new(r){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function fb(t,i){return Ud(t,i,function(r){return`Cannot instantiate cyclic dependency!${Nd(r)}`})}(this,r.key);return this._instantiateProvider(r)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(r){if(r.multiProvider){const c=[];for(let p=0;p<r.resolvedFactories.length;++p)c[p]=this._instantiate(r,r.resolvedFactories[p]);return c}return this._instantiate(r,r.resolvedFactories[0])}_instantiate(r,c){const p=c.factory;let _,O;try{_=c.dependencies.map(Q=>this._getByReflectiveDependency(Q))}catch(Q){throw Q.addKey&&Q.addKey(this,r.key),Q}try{O=p(..._)}catch(Q){throw function gb(t,i,r,c){return Ud(t,c,function(p){const _=b(p[0].token);return`${i.message}: Error during instantiation of ${_}!${Nd(p)}.`},i)}(this,Q,0,r.key)}return O}_getByReflectiveDependency(r){return this._getByKey(r.key,r.visibility,r.optional?null:at)}_getByKey(r,c,p){return r===t.INJECTOR_KEY?this:c instanceof vn?this._getByKeySelf(r,p):this._getByKeyDefault(r,p,c)}_getObjByKeyId(r){for(let c=0;c<this.keyIds.length;c++)if(this.keyIds[c]===r)return this.objs[c]===Ll&&(this.objs[c]=this._new(this._providers[c])),this.objs[c];return Ll}_throwOrNull(r,c){if(c!==at)return c;throw function pb(t,i){return Ud(t,i,function(r){return`No provider for ${b(r[0].token)}!${Nd(r)}`})}(this,r)}_getByKeySelf(r,c){const p=this._getObjByKeyId(r.id);return p!==Ll?p:this._throwOrNull(r,c)}_getByKeyDefault(r,c,p){let _;for(_=p instanceof pr?this.parent:this;_ instanceof t;){const O=_,Q=O._getObjByKeyId(r.id);if(Q!==Ll)return Q;_=O.parent}return null!==_?_.get(r.token,c):this._throwOrNull(r,c)}get displayName(){return`ReflectiveInjector(providers: [${function Db(t,i){const r=[];for(let c=0;c<t._providers.length;++c)r[c]=i(t.getProviderAtIndex(c));return r}(this,c=>' "'+c.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return t.INJECTOR_KEY=ea.get(ga),t})();function Xa(t,i=be.Default){const r=Ve();return null===r?_i(t,i):Rs(Ai(),r,g(t),i)}function sp(){throw new Error("invalid")}function ap(t,i){const r=t.contentQueries;if(null!==r)for(let c=0;c<r.length;c+=2){const _=r[c+1];if(-1!==_){const O=t.data[_];vo(r[c]),O.contentQueries(2,i[_],_)}}}function Sc(t,i,r,c,p,_,O,Q,ce,De,tt){const Ct=i.blueprint.slice();return Ct[Fn]=p,Ct[gi]=76|c,(null!==tt||t&&1024&t[gi])&&(Ct[gi]|=1024),fn(Ct),Ct[ji]=Ct[Yn]=t,Ct[Mi]=r,Ct[Qn]=O||t&&t[Qn],Ct[Vi]=Q||t&&t[Vi],Ct[Bn]=ce||t&&t[Bn]||null,Ct[qi]=De||t&&t[qi]||null,Ct[pn]=_,Ct[he]=function md(){return hd++}(),Ct[je]=tt,Ct[Ei]=2==i.type?t[Ei]:Ct,Ct}function Ja(t,i,r,c,p){let _=t.data[i];if(null===_)_=Vd(t,i,r,c,p),function ho(){return Wi.lFrame.inI18n}()&&(_.flags|=32);else if(64&_.type){_.type=r,_.value=c,_.attrs=p;const O=Hi();_.injectorIndex=null===O?-1:O.injectorIndex}return gn(_,!0),_}function Vd(t,i,r,c,p){const _=hi(),O=vr(),ce=t.data[i]=function Lb(t,i,r,c,p,_){return{type:r,index:c,insertBeforeIndex:null,injectorIndex:i?i.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:p,attrs:_,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,O?_:_&&_.parent,r,i,c,p);return null===t.firstChild&&(t.firstChild=ce),null!==_&&(O?null==_.child&&null!==ce.parent&&(_.child=ce):null===_.next&&(_.next=ce,ce.prev=_)),ce}function Rl(t,i,r,c){if(0===r)return-1;const p=i.length;for(let _=0;_<r;_++)i.push(c),t.blueprint.push(c),t.data.push(null);return p}function zd(t,i,r){zo(i);try{const c=t.viewQuery;null!==c&&Xd(1,c,r);const p=t.template;null!==p&&lp(t,i,p,1,r),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&ap(t,i),t.staticViewQueries&&Xd(2,t.viewQuery,r);const _=t.components;null!==_&&function Ob(t,i){for(let r=0;r<i.length;r++)e0(t,i[r])}(i,_)}catch(c){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),c}finally{i[gi]&=-5,is()}}function Dc(t,i,r,c){const p=i[gi];if(128!=(128&p)){zo(i);try{fn(i),Io(t.bindingStartIndex),null!==r&&lp(t,i,r,2,c);const O=3==(3&p);if(O){const De=t.preOrderCheckHooks;null!==De&&Ho(i,De,null)}else{const De=t.preOrderHooks;null!==De&&Xo(i,De,0,null),ee(i,0)}if(function Jb(t){for(let i=xn(t);null!==i;i=ln(i)){if(!i[zi])continue;const r=i[Hn];for(let c=0;c<r.length;c++){const p=r[c];512&p[gi]||Gn(p[ji],1),p[gi]|=512}}}(i),function Xb(t){for(let i=xn(t);null!==i;i=ln(i))for(let r=Tn;r<i.length;r++){const c=i[r],p=c[bi];xi(c)&&Dc(p,c,p.template,c[Mi])}}(i),null!==t.contentQueries&&ap(t,i),O){const De=t.contentCheckHooks;null!==De&&Ho(i,De)}else{const De=t.contentHooks;null!==De&&Xo(i,De,1),ee(i,1)}!function Tb(t,i){const r=t.hostBindingOpCodes;if(null!==r)try{for(let c=0;c<r.length;c++){const p=r[c];if(p<0)Yr(~p);else{const _=p,O=r[++c],Q=r[++c];Ms(O,_),Q(2,i[_])}}}finally{Yr(-1)}}(t,i);const Q=t.components;null!==Q&&function Pb(t,i){for(let r=0;r<i.length;r++)qb(t,i[r])}(i,Q);const ce=t.viewQuery;if(null!==ce&&Xd(2,ce,c),O){const De=t.viewCheckHooks;null!==De&&Ho(i,De)}else{const De=t.viewHooks;null!==De&&Xo(i,De,2),ee(i,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i[gi]&=-41,512&i[gi]&&(i[gi]&=-513,Gn(i[ji],-1))}finally{is()}}}function lp(t,i,r,c,p){const _=An(),O=2&c;try{Yr(-1),O&&i.length>Je&&Zm(t,i,Je,!1),Xn(O?2:0,p),r(c,p)}finally{Yr(_),Xn(O?3:1,p)}}function Wd(t,i,r){if(cn(i)){const p=i.directiveEnd;for(let _=i.directiveStart;_<p;_++){const O=t.data[_];O.contentQueries&&O.contentQueries(1,r[_],_)}}}function Hd(t,i,r){N()&&(function Vb(t,i,r,c){const p=r.directiveStart,_=r.directiveEnd;dr(r)&&function Zb(t,i,r){const c=D(i,t),p=cp(r),_=t[Qn],O=Tc(t,Sc(t,p,null,r.onPush?32:16,c,i,_,_.createRenderer(c,r),null,null,null));t[i.index]=O}(i,r,t.data[p+r.componentOffset]),t.firstCreatePass||Di(r,i),F(c,i);const O=r.initialInputs;for(let Q=p;Q<_;Q++){const ce=t.data[Q],De=rs(i,t,Q,r);F(De,i),null!==O&&Qb(0,Q-p,De,ce,0,O),$n(ce)&&(Dt(r.index,i)[Mi]=rs(i,t,Q,r))}}(t,i,r,D(r,i)),64==(64&r.flags)&&pp(t,i,r))}function $d(t,i,r=D){const c=i.localNames;if(null!==c){let p=i.index+1;for(let _=0;_<c.length;_+=2){const O=c[_+1],Q=-1===O?r(i,t):t[O];t[p++]=Q}}}function cp(t){const i=t.tView;return null===i||i.incompleteFirstPass?t.tView=Kd(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):i}function Kd(t,i,r,c,p,_,O,Q,ce,De){const tt=Je+c,Ct=tt+p,Ft=function Ab(t,i){const r=[];for(let c=0;c<i;c++)r.push(c<t?null:hn);return r}(tt,Ct),Kt="function"==typeof De?De():De;return Ft[bi]={type:t,blueprint:Ft,template:r,queries:null,viewQuery:Q,declTNode:i,data:Ft.slice().fill(null,tt),bindingStartIndex:tt,expandoStartIndex:Ct,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 _?_():_,pipeRegistry:"function"==typeof O?O():O,firstChild:null,schemas:ce,consts:Kt,incompleteFirstPass:!1}}function dp(t,i,r,c){const p=gp(i);null===r?p.push(c):(p.push(r),t.firstCreatePass&&_p(t).push(c,p.length-1))}function up(t,i,r,c){for(let p in t)if(t.hasOwnProperty(p)){r=null===r?{}:r;const _=t[p];null===c?hp(r,i,p,_):c.hasOwnProperty(p)&&hp(r,i,c[p],_)}return r}function hp(t,i,r,c){t.hasOwnProperty(r)?t[r].push(i,c):t[r]=[i,c]}function fs(t,i,r,c,p,_,O,Q){const ce=D(i,r);let tt,De=i.inputs;!Q&&null!=De&&(tt=De[c])?(Jd(t,r,tt,c,p),dr(i)&&function Bb(t,i){const r=Dt(i,t);16&r[gi]||(r[gi]|=32)}(r,i.index)):3&i.type&&(c=function Fb(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(c),p=null!=O?O(p,i.value||"",c):p,_.setProperty(ce,c,p))}function Gd(t,i,r,c){if(N()){const p=null===c?null:{"":-1},_=function Wb(t,i){const r=t.directiveRegistry;let c=null,p=null;if(r)for(let _=0;_<r.length;_++){const O=r[_];if($m(i,O.selectors,!1))if(c||(c=[]),$n(O))if(null!==O.findHostDirectiveDefs){const Q=[];p=p||new Map,O.findHostDirectiveDefs(O,Q,p),c.unshift(...Q,O),Zd(t,i,Q.length)}else c.unshift(O),Zd(t,i,0);else p=p||new Map,O.findHostDirectiveDefs?.(O,c,p),c.push(O)}return null===c?null:[c,p]}(t,r);let O,Q;null===_?O=Q=null:[O,Q]=_,null!==O&&mp(t,i,r,O,p,Q),p&&function Hb(t,i,r){if(i){const c=t.localNames=[];for(let p=0;p<i.length;p+=2){const _=r[i[p+1]];if(null==_)throw new Z(-301,!1);c.push(i[p],_)}}}(r,c,p)}r.mergedAttrs=Er(r.mergedAttrs,r.attrs)}function mp(t,i,r,c,p,_){for(let De=0;De<c.length;De++)wr(Di(r,i),t,c[De].type);!function Kb(t,i,r){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+r,t.providerIndexes=i}(r,t.data.length,c.length);for(let De=0;De<c.length;De++){const tt=c[De];tt.providersResolver&&tt.providersResolver(tt)}let O=!1,Q=!1,ce=Rl(t,i,c.length,null);for(let De=0;De<c.length;De++){const tt=c[De];r.mergedAttrs=Er(r.mergedAttrs,tt.hostAttrs),Gb(t,r,i,ce,tt),$b(ce,tt,p),null!==tt.contentQueries&&(r.flags|=4),(null!==tt.hostBindings||null!==tt.hostAttrs||0!==tt.hostVars)&&(r.flags|=64);const Ct=tt.type.prototype;!O&&(Ct.ngOnChanges||Ct.ngOnInit||Ct.ngDoCheck)&&((t.preOrderHooks??(t.preOrderHooks=[])).push(r.index),O=!0),!Q&&(Ct.ngOnChanges||Ct.ngDoCheck)&&((t.preOrderCheckHooks??(t.preOrderCheckHooks=[])).push(r.index),Q=!0),ce++}!function Rb(t,i,r){const p=i.directiveEnd,_=t.data,O=i.attrs,Q=[];let ce=null,De=null;for(let tt=i.directiveStart;tt<p;tt++){const Ct=_[tt],Ft=r?r.get(Ct):null,ci=Ft?Ft.outputs:null;ce=up(Ct.inputs,tt,ce,Ft?Ft.inputs:null),De=up(Ct.outputs,tt,De,ci);const yi=null===ce||null===O||Hm(i)?null:Yb(ce,tt,O);Q.push(yi)}null!==ce&&(ce.hasOwnProperty("class")&&(i.flags|=8),ce.hasOwnProperty("style")&&(i.flags|=16)),i.initialInputs=Q,i.inputs=ce,i.outputs=De}(t,r,_)}function pp(t,i,r){const c=r.directiveStart,p=r.directiveEnd,_=r.index,O=function ls(){return Wi.lFrame.currentDirectiveIndex}();try{Yr(_);for(let Q=c;Q<p;Q++){const ce=t.data[Q],De=i[Q];jo(Q),(null!==ce.hostBindings||0!==ce.hostVars||null!==ce.hostAttrs)&&zb(ce,De)}}finally{Yr(-1),jo(O)}}function zb(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}function Zd(t,i,r){i.componentOffset=r,(t.components??(t.components=[])).push(i.index)}function $b(t,i,r){if(r){if(i.exportAs)for(let c=0;c<i.exportAs.length;c++)r[i.exportAs[c]]=t;$n(i)&&(r[""]=t)}}function Gb(t,i,r,c,p){t.data[c]=p;const _=p.factory||(p.factory=xr(p.type)),O=new bt(_,$n(p),Xa);t.blueprint[c]=O,r[c]=O,function Ub(t,i,r,c,p){const _=p.hostBindings;if(_){let O=t.hostBindingOpCodes;null===O&&(O=t.hostBindingOpCodes=[]);const Q=~i.index;(function jb(t){let i=t.length;for(;i>0;){const r=t[--i];if("number"==typeof r&&r<0)return r}return 0})(O)!=Q&&O.push(Q),O.push(r,c,_)}}(t,i,c,Rl(t,r,p.hostVars,hn),p)}function js(t,i,r,c,p,_){const O=D(t,i);Qd(i[Vi],O,_,t.value,r,c,p)}function Qd(t,i,r,c,p,_,O){if(null==_)t.removeAttribute(i,p,r);else{const Q=null==O?q(_):O(_,c||"",p);t.setAttribute(i,p,Q,r)}}function Qb(t,i,r,c,p,_){const O=_[i];if(null!==O){const Q=c.setInput;for(let ce=0;ce<O.length;){const De=O[ce++],tt=O[ce++],Ct=O[ce++];null!==Q?c.setInput(r,Ct,De,tt):r[tt]=Ct}}}function Yb(t,i,r){let c=null,p=0;for(;p<r.length;){const _=r[p];if(0!==_)if(5!==_){if("number"==typeof _)break;if(t.hasOwnProperty(_)){null===c&&(c=[]);const O=t[_];for(let Q=0;Q<O.length;Q+=2)if(O[Q]===i){c.push(_,O[Q+1],r[p+1]);break}}p+=2}else p+=2;else p+=4}return c}function fp(t,i,r,c){return[t,!0,!1,i,null,0,c,r,null,null]}function qb(t,i){const r=Dt(i,t);if(xi(r)){const c=r[bi];48&r[gi]?Dc(c,r,c.template,r[Mi]):r[Wn]>0&&Yd(r)}}function Yd(t){for(let c=xn(t);null!==c;c=ln(c))for(let p=Tn;p<c.length;p++){const _=c[p];if(xi(_))if(512&_[gi]){const O=_[bi];Dc(O,_,O.template,_[Mi])}else _[Wn]>0&&Yd(_)}const r=t[bi].components;if(null!==r)for(let c=0;c<r.length;c++){const p=Dt(r[c],t);xi(p)&&p[Wn]>0&&Yd(p)}}function e0(t,i){const r=Dt(i,t),c=r[bi];(function t0(t,i){for(let r=i.length;r<t.blueprint.length;r++)i.push(t.blueprint[r])})(c,r),zd(c,r,r[Mi])}function Tc(t,i){return t[Br]?t[On][Dn]=i:t[Br]=i,t[On]=i,i}function Pc(t){for(;t;){t[gi]|=32;const i=Ir(t);if(ao(t)&&!i)return t;t=i}return null}function Oc(t,i,r,c=!0){const p=i[Qn];p.begin&&p.begin();try{Dc(t,i,t.template,r)}catch(O){throw c&&bp(i,O),O}finally{p.end&&p.end()}}function Xd(t,i,r){vo(0),i(t,r)}function gp(t){return t[qn]||(t[qn]=[])}function _p(t){return t.cleanup||(t.cleanup=[])}function vp(t,i,r){return(null===t||$n(t))&&(r=function Ye(t){for(;Array.isArray(t);){if("object"==typeof t[li])return t;t=t[Fn]}return null}(r[i.index])),r[Vi]}function bp(t,i){const r=t[qi],c=r?r.get(kl,null):null;c&&c.handleError(i)}function Jd(t,i,r,c,p){for(let _=0;_<r.length;){const O=r[_++],Q=r[_++],ce=i[O],De=t.data[O];null!==De.setInput?De.setInput(ce,p,c,Q):ce[Q]=p}}function ta(t,i,r){const c=kt(i,t);fa(t[Vi],c,r)}function Ac(t,i,r){let c=r?t.styles:null,p=r?t.classes:null,_=0;if(null!==i)for(let O=0;O<i.length;O++){const Q=i[O];"number"==typeof Q?_=Q:1==_?p=C(p,Q):2==_&&(c=C(c,Q+": "+i[++O]+";"))}r?t.styles=c:t.stylesWithoutHost=c,r?t.classes=p:t.classesWithoutHost=p}function kc(t,i,r,c,p=!1){for(;null!==r;){const _=i[r.index];if(null!==_&&c.push(jn(_)),bn(_))for(let Q=Tn;Q<_.length;Q++){const ce=_[Q],De=ce[bi].firstChild;null!==De&&kc(ce[bi],ce,De,c)}const O=r.type;if(8&O)kc(t,i,r.child,c);else if(32&O){const Q=Vn(r,i);let ce;for(;ce=Q();)c.push(ce)}else if(16&O){const Q=em(i,r);if(Array.isArray(Q))c.push(...Q);else{const ce=Ir(i[Ei]);kc(ce[bi],ce,Q,c,!0)}}r=p?r.projectionNext:r.next}return c}class qa{get rootNodes(){const i=this._lView,r=i[bi];return kc(r,i,r.firstChild,[])}constructor(i,r){this._lView=i,this._cdRefInjectingView=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Mi]}set context(i){this._lView[Mi]=i}get destroyed(){return 128==(128&this._lView[gi])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const i=this._lView[ji];if(bn(i)){const r=i[en],c=r?r.indexOf(this):-1;c>-1&&(as(i,c),ua(r,c))}this._attachedToViewContainer=!1}Zo(this._lView[bi],this._lView)}onDestroy(i){dp(this._lView[bi],this._lView,null,i)}markForCheck(){Pc(this._cdRefInjectingView||this._lView)}detach(){this._lView[gi]&=-65}reattach(){this._lView[gi]|=64}detectChanges(){Oc(this._lView[bi],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Z(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Ui(t,i){Dl(t,i,i[Vi],2,null,null)}(this._lView[bi],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Z(902,!1);this._appRef=i}}class n0 extends qa{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Oc(i[bi],i,i[Mi],!1)}checkNoChanges(){}get context(){return null}}class yp extends Ol{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const r=Xi(i);return new el(r,this.ngModule)}}function Cp(t){const i=[];for(let r in t)t.hasOwnProperty(r)&&i.push({propName:t[r],templateName:r});return i}class o0{constructor(i,r){this.injector=i,this.parentInjector=r}get(i,r,c){c=ze(c);const p=this.injector.get(i,wc,c);return p!==wc||r===wc?p:this.parentInjector.get(i,r,c)}}class el extends Ec{get inputs(){return Cp(this.componentDef.inputs)}get outputs(){return Cp(this.componentDef.outputs)}constructor(i,r){super(),this.componentDef=i,this.ngModule=r,this.componentType=i.type,this.selector=function rb(t){return t.map(nb).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!r}create(i,r,c,p){let _=(p=p||this.ngModule)instanceof Da?p:p?.injector;_&&null!==this.componentDef.getStandaloneInjector&&(_=this.componentDef.getStandaloneInjector(_)||_);const O=_?new o0(i,_):i,Q=O.get(Lm,null);if(null===Q)throw new Z(407,!1);const ce=O.get(Rm,null),De=Q.createRenderer(null,this.componentDef),tt=this.componentDef.selectors[0][0]||"div",Ct=c?function kb(t,i,r){return t.selectRootElement(i,r===wt.ShadowDom)}(De,c,this.componentDef.encapsulation):ss(De,tt,function r0(t){const i=t.toLowerCase();return"svg"===i?Uo:"math"===i?_o:null}(tt)),Ft=this.componentDef.onPush?288:272,Kt=Kd(0,null,null,1,0,null,null,null,null,null),ci=Sc(null,Kt,null,Ft,null,null,Q,De,ce,O,null);let yi,Ri;zo(ci);try{const Ni=this.componentDef;let rn,fi=null;Ni.findHostDirectiveDefs?(rn=[],fi=new Map,Ni.findHostDirectiveDefs(Ni,rn,fi),rn.push(Ni)):rn=[Ni];const mn=function s0(t,i){const r=t[bi],c=Je;return t[c]=i,Ja(r,c,2,"#host",null)}(ci,Ct),Rr=function a0(t,i,r,c,p,_,O,Q){const ce=p[bi];!function l0(t,i,r,c){for(const p of t)i.mergedAttrs=Er(i.mergedAttrs,p.hostAttrs);null!==i.mergedAttrs&&(Ac(i,i.mergedAttrs,!0),null!==r&&nm(c,r,i))}(c,t,i,O);const De=_.createRenderer(i,r),tt=Sc(p,cp(r),null,r.onPush?32:16,p[t.index],t,_,De,Q||null,null,null);return ce.firstCreatePass&&Zd(ce,t,c.length-1),Tc(p,tt),p[t.index]=tt}(mn,Ct,Ni,rn,ci,Q,De);Ri=_e(Kt,Je),Ct&&function d0(t,i,r,c){if(c)Cn(t,r,["ng-version",Bm.full]);else{const{attrs:p,classes:_}=function ob(t){const i=[],r=[];let c=1,p=2;for(;c<t.length;){let _=t[c];if("string"==typeof _)2===p?""!==_&&i.push(_,t[++c]):8===p&&r.push(_);else{if(!Os(p))break;p=_}c++}return{attrs:i,classes:r}}(i.selectors[0]);p&&Cn(t,r,p),_&&_.length>0&&im(t,r,_.join(" "))}}(De,Ni,Ct,c),void 0!==r&&function u0(t,i,r){const c=t.projection=[];for(let p=0;p<i.length;p++){const _=r[p];c.push(null!=_?Array.from(_):null)}}(Ri,this.ngContentSelectors,r),yi=function c0(t,i,r,c,p,_){const O=Ai(),Q=p[bi],ce=D(O,p);mp(Q,p,O,r,null,c);for(let tt=0;tt<r.length;tt++)F(rs(p,Q,O.directiveStart+tt,O),p);pp(Q,p,O),ce&&F(ce,p);const De=rs(p,Q,O.directiveStart+O.componentOffset,O);if(t[Mi]=p[Mi]=De,null!==_)for(const tt of _)tt(De,i);return Wd(Q,O,t),De}(Rr,Ni,rn,fi,ci,[Mp]),zd(Kt,ci,null)}finally{is()}return new xp(this.componentType,yi,Za(Ri,ci),ci,Ri)}}class xp extends Am{constructor(i,r,c,p,_){super(),this.location=c,this._rootLView=p,this._tNode=_,this.instance=r,this.hostView=this.changeDetectorRef=new n0(p),this.componentType=i}setInput(i,r){const c=this._tNode.inputs;let p;if(null!==c&&(p=c[i])){const _=this._rootLView;Jd(_[bi],_,p,i,r),Pc(Dt(this._tNode.index,_))}}get injector(){return new us(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}function Mp(){const t=Ai();So(Ve()[bi],t)}function Ep(t){return Object.getPrototypeOf(t.prototype).constructor}function qd(t){let i=Ep(t.type),r=!0;const c=[t];for(;i;){let p;if($n(t))p=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new Z(903,!1);p=i.\u0275dir}if(p){if(r){c.push(p);const O=t;O.inputs=eu(t.inputs),O.declaredInputs=eu(t.declaredInputs),O.outputs=eu(t.outputs);const Q=p.hostBindings;Q&&f0(t,Q);const ce=p.viewQuery,De=p.contentQueries;if(ce&&m0(t,ce),De&&p0(t,De),u(t.inputs,p.inputs),u(t.declaredInputs,p.declaredInputs),u(t.outputs,p.outputs),$n(p)&&p.data.animation){const tt=t.data;tt.animation=(tt.animation||[]).concat(p.data.animation)}}const _=p.features;if(_)for(let O=0;O<_.length;O++){const Q=_[O];Q&&Q.ngInherit&&Q(t),Q===qd&&(r=!1)}}i=Object.getPrototypeOf(i)}!function h0(t){let i=0,r=null;for(let c=t.length-1;c>=0;c--){const p=t[c];p.hostVars=i+=p.hostVars,p.hostAttrs=Er(p.hostAttrs,r=Er(r,p.hostAttrs))}}(c)}function eu(t){return t===Mt?{}:t===It?[]:t}function m0(t,i){const r=t.viewQuery;t.viewQuery=r?(c,p)=>{i(c,p),r(c,p)}:i}function p0(t,i){const r=t.contentQueries;t.contentQueries=r?(c,p,_)=>{i(c,p,_),r(c,p,_)}:i}function f0(t,i){const r=t.hostBindings;t.hostBindings=r?(c,p)=>{i(c,p),r(c,p)}:i}const g0=["providersResolver"],_0=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function wp(t){let r,i=Ep(t.type);r=$n(t)?i.\u0275cmp:i.\u0275dir;const c=t;for(const p of g0)c[p]=r[p];if($n(r))for(const p of _0)c[p]=r[p]}function Ip(t){return i=>{i.findHostDirectiveDefs=Sp,i.hostDirectives=(Array.isArray(t)?t:t()).map(r=>"function"==typeof r?{directive:g(r),inputs:Mt,outputs:Mt}:{directive:g(r.directive),inputs:Dp(r.inputs),outputs:Dp(r.outputs)})}}function Sp(t,i,r){if(null!==t.hostDirectives)for(const c of t.hostDirectives){const p=Mn(c.directive);v0(p.declaredInputs,c.inputs),Sp(p,i,r),r.set(p,c),i.push(p)}}function Dp(t){if(void 0===t||0===t.length)return Mt;const i={};for(let r=0;r<t.length;r+=2)i[t[r]]=t[r+1];return i}function v0(t,i){for(const r in i)i.hasOwnProperty(r)&&(t[i[r]]=t[r])}function Lc(t){return!!tu(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function tu(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Pp(t,i){const r=Lc(t),c=Lc(i);return r&&c?function b0(t,i,r){const c=t[Symbol.iterator](),p=i[Symbol.iterator]();for(;;){const _=c.next(),O=p.next();if(_.done&&O.done)return!0;if(_.done||O.done||!r(_.value,O.value))return!1}}(t,i,Pp):!(r||!t||"object"!=typeof t&&"function"!=typeof t||c||!i||"object"!=typeof i&&"function"!=typeof i)||Object.is(t,i)}function Vs(t,i,r){return t[i]=r}function Fl(t,i){return t[i]}function Qo(t,i,r){return!Object.is(t[i],r)&&(t[i]=r,!0)}function Ta(t,i,r,c){const p=Qo(t,i,r);return Qo(t,i+1,c)||p}function Rc(t,i,r,c,p){const _=Ta(t,i,r,c);return Qo(t,i+2,p)||_}function ys(t,i,r,c,p,_){const O=Ta(t,i,r,c);return Ta(t,i+2,p,_)||O}function iu(t,i,r,c){const p=Ve();return Qo(p,to(),i)&&(pt(),js(Jn(),p,t,i,r,c)),iu}function tl(t,i){let r=!1,c=Zn();for(let _=1;_<i.length;_+=2)r=Qo(t,c++,i[_])||r;if(Io(c),!r)return hn;let p=i[0];for(let _=1;_<i.length;_+=2)p+=q(i[_])+i[_+1];return p}function il(t,i,r,c){return Qo(t,to(),r)?i+q(r)+c:hn}function nl(t,i,r,c,p,_){const Q=Ta(t,Zn(),r,p);return Mr(2),Q?i+q(r)+c+q(p)+_:hn}function rl(t,i,r,c,p,_,O,Q){const De=Rc(t,Zn(),r,p,O);return Mr(3),De?i+q(r)+c+q(p)+_+q(O)+Q:hn}function ol(t,i,r,c,p,_,O,Q,ce,De){const Ct=ys(t,Zn(),r,p,O,ce);return Mr(4),Ct?i+q(r)+c+q(p)+_+q(O)+Q+q(ce)+De:hn}function sl(t,i,r,c,p,_,O,Q,ce,De,tt,Ct){const Ft=Zn();let Kt=ys(t,Ft,r,p,O,ce);return Kt=Qo(t,Ft+4,tt)||Kt,Mr(5),Kt?i+q(r)+c+q(p)+_+q(O)+Q+q(ce)+De+q(tt)+Ct:hn}function al(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt){const ci=Zn();let yi=ys(t,ci,r,p,O,ce);return yi=Ta(t,ci+4,tt,Ft)||yi,Mr(6),yi?i+q(r)+c+q(p)+_+q(O)+Q+q(ce)+De+q(tt)+Ct+q(Ft)+Kt:hn}function ll(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi){const Ri=Zn();let Ni=ys(t,Ri,r,p,O,ce);return Ni=Rc(t,Ri+4,tt,Ft,ci)||Ni,Mr(7),Ni?i+q(r)+c+q(p)+_+q(O)+Q+q(ce)+De+q(tt)+Ct+q(Ft)+Kt+q(ci)+yi:hn}function cl(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri,Ni){const rn=Zn();let fi=ys(t,rn,r,p,O,ce);return fi=ys(t,rn+4,tt,Ft,ci,Ri)||fi,Mr(8),fi?i+q(r)+c+q(p)+_+q(O)+Q+q(ce)+De+q(tt)+Ct+q(Ft)+Kt+q(ci)+yi+q(Ri)+Ni:hn}function nu(t,i,r,c,p,_){const O=Ve(),Q=il(O,i,r,c);return Q!==hn&&js(Jn(),O,t,Q,p,_),nu}function ru(t,i,r,c,p,_,O,Q){const ce=Ve(),De=nl(ce,i,r,c,p,_);return De!==hn&&js(Jn(),ce,t,De,O,Q),ru}function ou(t,i,r,c,p,_,O,Q,ce,De){const tt=Ve(),Ct=rl(tt,i,r,c,p,_,O,Q);return Ct!==hn&&js(Jn(),tt,t,Ct,ce,De),ou}function su(t,i,r,c,p,_,O,Q,ce,De,tt,Ct){const Ft=Ve(),Kt=ol(Ft,i,r,c,p,_,O,Q,ce,De);return Kt!==hn&&js(Jn(),Ft,t,Kt,tt,Ct),su}function au(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt){const ci=Ve(),yi=sl(ci,i,r,c,p,_,O,Q,ce,De,tt,Ct);return yi!==hn&&js(Jn(),ci,t,yi,Ft,Kt),au}function lu(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi){const Ri=Ve(),Ni=al(Ri,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt);return Ni!==hn&&js(Jn(),Ri,t,Ni,ci,yi),lu}function cu(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri,Ni){const rn=Ve(),fi=ll(rn,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi);return fi!==hn&&js(Jn(),rn,t,fi,Ri,Ni),cu}function du(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri,Ni,rn,fi){const mn=Ve(),Rr=cl(mn,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri,Ni);return Rr!==hn&&js(Jn(),mn,t,Rr,rn,fi),du}function uu(t,i,r,c){const p=Ve(),_=tl(p,i);return _!==hn&&js(Jn(),p,t,_,r,c),uu}function Op(t){const i=h(t);Oc(i[bi],i,t)}function Ap(t,i,r,c,p,_,O,Q){const ce=Ve(),De=pt(),tt=t+Je,Ct=De.firstCreatePass?function C0(t,i,r,c,p,_,O,Q,ce){const De=i.consts,tt=Ja(i,t,4,O||null,si(De,Q));Gd(i,r,tt,si(De,ce)),So(i,tt);const Ct=tt.tView=Kd(2,tt,c,p,_,i.directiveRegistry,i.pipeRegistry,null,i.schemas,De);return null!==i.queries&&(i.queries.template(i,tt),Ct.queries=i.queries.embeddedTView(tt)),tt}(tt,De,ce,i,r,c,p,_,O):De.data[tt];gn(Ct,!1);const Ft=ce[Vi].createComment("");gc(De,ce,Ft,Ct),F(Ft,ce),Tc(ce,ce[tt]=fp(Ft,ce,Ft,Ct)),eo(Ct)&&Hd(De,ce,Ct),null!=O&&$d(ce,Ct,Q)}function kp(t,i,r,c){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),i[r]=c}function Lp(t){return it(function Qi(){return Wi.lFrame.contextLView}(),Je+t)}function hu(t,i,r){const c=Ve();return Qo(c,to(),i)&&fs(pt(),Jn(),c,t,i,c[Vi],r,!1),hu}function mu(t,i,r,c,p){const O=p?"class":"style";Jd(t,r,i.inputs[O],O,c)}function Fc(t,i,r,c){const p=Ve(),_=pt(),O=Je+t,Q=p[Vi],ce=_.firstCreatePass?function x0(t,i,r,c,p,_){const O=i.consts,ce=Ja(i,t,2,c,si(O,p));return Gd(i,r,ce,si(O,_)),null!==ce.attrs&&Ac(ce,ce.attrs,!1),null!==ce.mergedAttrs&&Ac(ce,ce.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,ce),ce}(O,_,p,i,r,c):_.data[O],De=p[O]=ss(Q,i,function cs(){return Wi.lFrame.currentNamespace}()),tt=eo(ce);return gn(ce,!0),nm(Q,De,ce),32!=(32&ce.flags)&&gc(_,p,De,ce),0===function pe(){return Wi.lFrame.elementDepthCount}()&&F(De,p),function y(){Wi.lFrame.elementDepthCount++}(),tt&&(Hd(_,p,ce),Wd(_,ce,p)),null!==c&&$d(p,ce),Fc}function Bc(){let t=Ai();vr()?Pi():(t=t.parent,gn(t,!1));const i=t;!function J(){Wi.lFrame.elementDepthCount--}();const r=pt();return r.firstCreatePass&&(So(r,t),cn(t)&&r.queries.elementEnd(t)),null!=i.classesWithoutHost&&function wn(t){return 0!=(8&t.flags)}(i)&&mu(r,i,Ve(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function yn(t){return 0!=(16&t.flags)}(i)&&mu(r,i,Ve(),i.stylesWithoutHost,!1),Bc}function pu(t,i,r,c){return Fc(t,i,r,c),Bc(),pu}function Nc(t,i,r){const c=Ve(),p=pt(),_=t+Je,O=p.firstCreatePass?function M0(t,i,r,c,p){const _=i.consts,O=si(_,c),Q=Ja(i,t,8,"ng-container",O);return null!==O&&Ac(Q,O,!0),Gd(i,r,Q,si(_,p)),null!==i.queries&&i.queries.elementStart(i,Q),Q}(_,p,c,i,r):p.data[_];gn(O,!0);const Q=c[_]=c[Vi].createComment("");return gc(p,c,Q,O),F(Q,c),eo(O)&&(Hd(p,c,O),Wd(p,O,c)),null!=r&&$d(c,O),Nc}function Uc(){let t=Ai();const i=pt();return vr()?Pi():(t=t.parent,gn(t,!1)),i.firstCreatePass&&(So(i,t),cn(t)&&i.queries.elementEnd(t)),Uc}function fu(t,i,r){return Nc(t,i,r),Uc(),fu}function Rp(){return Ve()}function gu(t){return!!t&&"function"==typeof t.then}function Fp(t){return!!t&&"function"==typeof t.subscribe}const Bp=Fp;function _u(t,i,r,c){const p=Ve(),_=pt(),O=Ai();return Np(_,p,p[Vi],O,t,i,c),_u}function vu(t,i){const r=Ai(),c=Ve(),p=pt();return Np(p,c,vp(Ao(p.data),r,c),r,t,i),vu}function Np(t,i,r,c,p,_,O){const Q=eo(c),De=t.firstCreatePass&&_p(t),tt=i[Mi],Ct=gp(i);let Ft=!0;if(3&c.type||O){const yi=D(c,i),Ri=O?O(yi):yi,Ni=Ct.length,rn=O?mn=>O(jn(mn[c.index])):c.index;let fi=null;if(!O&&Q&&(fi=function E0(t,i,r,c){const p=t.cleanup;if(null!=p)for(let _=0;_<p.length-1;_+=2){const O=p[_];if(O===r&&p[_+1]===c){const Q=i[qn],ce=p[_+2];return Q.length>ce?Q[ce]:null}"string"==typeof O&&(_+=2)}return null}(t,i,p,c.index)),null!==fi)(fi.__ngLastListenerFn__||fi).__ngNextListenerFn__=_,fi.__ngLastListenerFn__=_,Ft=!1;else{_=jp(c,i,tt,_,!1);const mn=r.listen(Ri,p,_);Ct.push(_,mn),De&&De.push(p,rn,Ni,Ni+1)}}else _=jp(c,i,tt,_,!1);const Kt=c.outputs;let ci;if(Ft&&null!==Kt&&(ci=Kt[p])){const yi=ci.length;if(yi)for(let Ri=0;Ri<yi;Ri+=2){const Rr=i[ci[Ri]][ci[Ri+1]].subscribe(_),so=Ct.length;Ct.push(_,Rr),De&&De.push(p,c.index,so,-(so+1))}}}function Up(t,i,r,c){try{return Xn(6,i,r),!1!==r(c)}catch(p){return bp(t,p),!1}finally{Xn(7,i,r)}}function jp(t,i,r,c,p){return function _(O){if(O===Function)return c;Pc(t.componentOffset>-1?Dt(t.index,i):i);let ce=Up(i,r,c,O),De=_.__ngNextListenerFn__;for(;De;)ce=Up(i,r,De,O)&&ce,De=De.__ngNextListenerFn__;return p&&!1===ce&&(O.preventDefault(),O.returnValue=!1),ce}}function Vp(t=1){return function Is(t){return(Wi.lFrame.contextLView=function na(t,i){for(;t>0;)i=i[Yn],t--;return i}(t,Wi.lFrame.contextLView))[Mi]}(t)}function w0(t,i){let r=null;const c=function qv(t){const i=t.attrs;if(null!=i){const r=i.indexOf(5);if(!(1&r))return i[r+1]}return null}(t);for(let p=0;p<i.length;p++){const _=i[p];if("*"!==_){if(null===c?$m(t,_,!0):ib(c,_))return p}else r=p}return r}function zp(t){const i=Ve()[Ei][pn];if(!i.projection){const c=i.projection=Zs(t?t.length:1,null),p=c.slice();let _=i.child;for(;null!==_;){const O=t?w0(_,t):0;null!==O&&(p[O]?p[O].projectionNext=_:c[O]=_,p[O]=_),_=_.next}}}function Wp(t,i=0,r){const c=Ve(),p=pt(),_=Ja(p,Je+t,16,null,r||null);null===_.projection&&(_.projection=i),Pi(),32!=(32&_.flags)&&function ev(t,i,r){tm(i[Vi],0,i,r,pc(t,r,i),Yh(r.parent||i[pn],r,i))}(p,c,_)}function bu(t,i,r){return jc(t,"",i,"",r),bu}function jc(t,i,r,c,p){const _=Ve(),O=il(_,i,r,c);return O!==hn&&fs(pt(),Jn(),_,t,O,_[Vi],p,!1),jc}function yu(t,i,r,c,p,_,O){const Q=Ve(),ce=nl(Q,i,r,c,p,_);return ce!==hn&&fs(pt(),Jn(),Q,t,ce,Q[Vi],O,!1),yu}function Cu(t,i,r,c,p,_,O,Q,ce){const De=Ve(),tt=rl(De,i,r,c,p,_,O,Q);return tt!==hn&&fs(pt(),Jn(),De,t,tt,De[Vi],ce,!1),Cu}function xu(t,i,r,c,p,_,O,Q,ce,De,tt){const Ct=Ve(),Ft=ol(Ct,i,r,c,p,_,O,Q,ce,De);return Ft!==hn&&fs(pt(),Jn(),Ct,t,Ft,Ct[Vi],tt,!1),xu}function Mu(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft){const Kt=Ve(),ci=sl(Kt,i,r,c,p,_,O,Q,ce,De,tt,Ct);return ci!==hn&&fs(pt(),Jn(),Kt,t,ci,Kt[Vi],Ft,!1),Mu}function Eu(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci){const yi=Ve(),Ri=al(yi,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt);return Ri!==hn&&fs(pt(),Jn(),yi,t,Ri,yi[Vi],ci,!1),Eu}function wu(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri){const Ni=Ve(),rn=ll(Ni,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi);return rn!==hn&&fs(pt(),Jn(),Ni,t,rn,Ni[Vi],Ri,!1),wu}function Iu(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri,Ni,rn){const fi=Ve(),mn=cl(fi,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri,Ni);return mn!==hn&&fs(pt(),Jn(),fi,t,mn,fi[Vi],rn,!1),Iu}function Su(t,i,r){const c=Ve(),p=tl(c,i);return p!==hn&&fs(pt(),Jn(),c,t,p,c[Vi],r,!1),Su}function Vc(t,i){return t<<17|i<<2}function _a(t){return t>>17&32767}function Du(t){return 2|t}function Pa(t){return(131068&t)>>2}function Tu(t,i){return-131069&t|i<<2}function Pu(t){return 1|t}function Hp(t,i,r,c,p){const _=t[r+1],O=null===i;let Q=c?_a(_):Pa(_),ce=!1;for(;0!==Q&&(!1===ce||O);){const tt=t[Q+1];O0(t[Q],i)&&(ce=!0,t[Q+1]=c?Pu(tt):Du(tt)),Q=c?_a(tt):Pa(tt)}ce&&(t[r+1]=c?Du(_):Pu(_))}function O0(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Us(t,i)>=0}const xo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function $p(t){return t.substring(xo.key,xo.keyEnd)}function A0(t){return t.substring(xo.value,xo.valueEnd)}function Kp(t,i){const r=xo.textEnd;return r===i?-1:(i=xo.keyEnd=function R0(t,i,r){for(;i<r&&t.charCodeAt(i)>32;)i++;return i}(t,xo.key=i,r),dl(t,i,r))}function Gp(t,i){const r=xo.textEnd;let c=xo.key=dl(t,i,r);return r===c?-1:(c=xo.keyEnd=function F0(t,i,r){let c;for(;i<r&&(45===(c=t.charCodeAt(i))||95===c||(-33&c)>=65&&(-33&c)<=90||c>=48&&c<=57);)i++;return i}(t,c,r),c=Qp(t,c,r),c=xo.value=dl(t,c,r),c=xo.valueEnd=function B0(t,i,r){let c=-1,p=-1,_=-1,O=i,Q=O;for(;O<r;){const ce=t.charCodeAt(O++);if(59===ce)return Q;34===ce||39===ce?Q=O=Yp(t,ce,O,r):i===O-4&&85===_&&82===p&&76===c&&40===ce?Q=O=Yp(t,41,O,r):ce>32&&(Q=O),_=p,p=c,c=-33&ce}return Q}(t,c,r),Qp(t,c,r))}function Zp(t){xo.key=0,xo.keyEnd=0,xo.value=0,xo.valueEnd=0,xo.textEnd=t.length}function dl(t,i,r){for(;i<r&&t.charCodeAt(i)<=32;)i++;return i}function Qp(t,i,r,c){return(i=dl(t,i,r))<r&&i++,i}function Yp(t,i,r,c){let p=-1,_=r;for(;_<c;){const O=t.charCodeAt(_++);if(O==i&&92!==p)return _;p=92==O&&92===p?0:O}throw new Error}function Ou(t,i,r){return ks(t,i,r,!1),Ou}function Au(t,i){return ks(t,i,null,!0),Au}function As(t){Ls(ef,N0,t,!1)}function N0(t,i){for(let r=function L0(t){return Zp(t),Gp(t,dl(t,0,xo.textEnd))}(i);r>=0;r=Gp(i,r))ef(t,$p(i),A0(i))}function Xp(t){Ls(H0,zs,t,!0)}function zs(t,i){for(let r=function k0(t){return Zp(t),Kp(t,dl(t,0,xo.textEnd))}(i);r>=0;r=Kp(i,r))To(t,$p(i),!0)}function ks(t,i,r,c){const p=Ve(),_=pt(),O=Mr(2);_.firstUpdatePass&&qp(_,t,O,c),i!==hn&&Qo(p,O,i)&&tf(_,_.data[An()],p,p[Vi],t,p[O+1]=function K0(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=b(Xs(t)))),t}(i,r),c,O)}function Ls(t,i,r,c){const p=pt(),_=Mr(2);p.firstUpdatePass&&qp(p,null,_,c);const O=Ve();if(r!==hn&&Qo(O,_,r)){const Q=p.data[An()];if(rf(Q,c)&&!Jp(p,_)){let ce=c?Q.classesWithoutHost:Q.stylesWithoutHost;null!==ce&&(r=C(ce,r||"")),mu(p,Q,O,r,c)}else!function $0(t,i,r,c,p,_,O,Q){p===hn&&(p=It);let ce=0,De=0,tt=0<p.length?p[0]:null,Ct=0<_.length?_[0]:null;for(;null!==tt||null!==Ct;){const Ft=ce<p.length?p[ce+1]:void 0,Kt=De<_.length?_[De+1]:void 0;let yi,ci=null;tt===Ct?(ce+=2,De+=2,Ft!==Kt&&(ci=Ct,yi=Kt)):null===Ct||null!==tt&&tt<Ct?(ce+=2,ci=tt):(De+=2,ci=Ct,yi=Kt),null!==ci&&tf(t,i,r,c,ci,yi,O,Q),tt=ce<p.length?p[ce]:null,Ct=De<_.length?_[De]:null}}(p,Q,O,O[Vi],O[_+1],O[_+1]=function W0(t,i,r){if(null==r||""===r)return It;const c=[],p=Xs(r);if(Array.isArray(p))for(let _=0;_<p.length;_++)t(c,p[_],!0);else if("object"==typeof p)for(const _ in p)p.hasOwnProperty(_)&&t(c,_,p[_]);else"string"==typeof p&&i(c,p);return c}(t,i,r),c,_)}}function Jp(t,i){return i>=t.expandoStartIndex}function qp(t,i,r,c){const p=t.data;if(null===p[r+1]){const _=p[An()],O=Jp(t,r);rf(_,c)&&null===i&&!O&&(i=!1),i=function U0(t,i,r,c){const p=Ao(t);let _=c?i.residualClasses:i.residualStyles;if(null===p)0===(c?i.classBindings:i.styleBindings)&&(r=Bl(r=ku(null,t,i,r,c),i.attrs,c),_=null);else{const O=i.directiveStylingLast;if(-1===O||t[O]!==p)if(r=ku(p,t,i,r,c),null===_){let ce=function j0(t,i,r){const c=r?i.classBindings:i.styleBindings;if(0!==Pa(c))return t[_a(c)]}(t,i,c);void 0!==ce&&Array.isArray(ce)&&(ce=ku(null,t,i,ce[1],c),ce=Bl(ce,i.attrs,c),function V0(t,i,r,c){t[_a(r?i.classBindings:i.styleBindings)]=c}(t,i,c,ce))}else _=function z0(t,i,r){let c;const p=i.directiveEnd;for(let _=1+i.directiveStylingLast;_<p;_++)c=Bl(c,t[_].hostAttrs,r);return Bl(c,i.attrs,r)}(t,i,c)}return void 0!==_&&(c?i.residualClasses=_:i.residualStyles=_),r}(p,_,i,c),function T0(t,i,r,c,p,_){let O=_?i.classBindings:i.styleBindings,Q=_a(O),ce=Pa(O);t[c]=r;let tt,De=!1;if(Array.isArray(r)?(tt=r[1],(null===tt||Us(r,tt)>0)&&(De=!0)):tt=r,p)if(0!==ce){const Ft=_a(t[Q+1]);t[c+1]=Vc(Ft,Q),0!==Ft&&(t[Ft+1]=Tu(t[Ft+1],c)),t[Q+1]=function S0(t,i){return 131071&t|i<<17}(t[Q+1],c)}else t[c+1]=Vc(Q,0),0!==Q&&(t[Q+1]=Tu(t[Q+1],c)),Q=c;else t[c+1]=Vc(ce,0),0===Q?Q=c:t[ce+1]=Tu(t[ce+1],c),ce=c;De&&(t[c+1]=Du(t[c+1])),Hp(t,tt,c,!0),Hp(t,tt,c,!1),function P0(t,i,r,c,p){const _=p?t.residualClasses:t.residualStyles;null!=_&&"string"==typeof i&&Us(_,i)>=0&&(r[c+1]=Pu(r[c+1]))}(i,tt,t,c,_),O=Vc(Q,ce),_?i.classBindings=O:i.styleBindings=O}(p,_,i,r,O,c)}}function ku(t,i,r,c,p){let _=null;const O=r.directiveEnd;let Q=r.directiveStylingLast;for(-1===Q?Q=r.directiveStart:Q++;Q<O&&(_=i[Q],c=Bl(c,_.hostAttrs,p),_!==t);)Q++;return null!==t&&(r.directiveStylingLast=Q),c}function Bl(t,i,r){const c=r?1:2;let p=-1;if(null!==i)for(let _=0;_<i.length;_++){const O=i[_];"number"==typeof O?p=O:p===c&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),To(t,O,!!r||i[++_]))}return void 0===t?null:t}function ef(t,i,r){To(t,i,Xs(r))}function H0(t,i,r){const c=String(i);""!==c&&!c.includes(" ")&&To(t,c,r)}function tf(t,i,r,c,p,_,O,Q){if(!(3&i.type))return;const ce=t.data,De=ce[Q+1],tt=function D0(t){return 1==(1&t)}(De)?nf(ce,i,r,p,Pa(De),O):void 0;zc(tt)||(zc(_)||function I0(t){return 2==(2&t)}(De)&&(_=nf(ce,null,r,p,Q,O)),function iv(t,i,r,c,p){if(i)p?t.addClass(r,c):t.removeClass(r,c);else{let _=-1===c.indexOf("-")?void 0:Ps.DashCase;null==p?t.removeStyle(r,c,_):("string"==typeof p&&p.endsWith("!important")&&(p=p.slice(0,-10),_|=Ps.Important),t.setStyle(r,c,p,_))}}(c,O,kt(An(),r),p,_))}function nf(t,i,r,c,p,_){const O=null===i;let Q;for(;p>0;){const ce=t[p],De=Array.isArray(ce),tt=De?ce[1]:ce,Ct=null===tt;let Ft=r[p+1];Ft===hn&&(Ft=Ct?It:void 0);let Kt=Ct?ha(Ft,c):tt===c?Ft:void 0;if(De&&!zc(Kt)&&(Kt=ha(ce,c)),zc(Kt)&&(Q=Kt,O))return Q;const ci=t[p+1];p=O?_a(ci):Pa(ci)}if(null!==i){let ce=_?i.residualClasses:i.residualStyles;null!=ce&&(Q=ha(ce,c))}return Q}function zc(t){return void 0!==t}function rf(t,i){return 0!=(t.flags&(i?8:16))}function sf(t,i=""){const r=Ve(),c=pt(),p=t+Je,_=c.firstCreatePass?Ja(c,p,1,i,null):c.data[p],O=r[p]=Fo(r[Vi],i);gc(c,r,O,_),gn(_,!1)}function Lu(t){return Wc("",t,""),Lu}function Wc(t,i,r){const c=Ve(),p=il(c,t,i,r);return p!==hn&&ta(c,An(),p),Wc}function Ru(t,i,r,c,p){const _=Ve(),O=nl(_,t,i,r,c,p);return O!==hn&&ta(_,An(),O),Ru}function Fu(t,i,r,c,p,_,O){const Q=Ve(),ce=rl(Q,t,i,r,c,p,_,O);return ce!==hn&&ta(Q,An(),ce),Fu}function Bu(t,i,r,c,p,_,O,Q,ce){const De=Ve(),tt=ol(De,t,i,r,c,p,_,O,Q,ce);return tt!==hn&&ta(De,An(),tt),Bu}function Nu(t,i,r,c,p,_,O,Q,ce,De,tt){const Ct=Ve(),Ft=sl(Ct,t,i,r,c,p,_,O,Q,ce,De,tt);return Ft!==hn&&ta(Ct,An(),Ft),Nu}function Uu(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft){const Kt=Ve(),ci=al(Kt,t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft);return ci!==hn&&ta(Kt,An(),ci),Uu}function ju(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci){const yi=Ve(),Ri=ll(yi,t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci);return Ri!==hn&&ta(yi,An(),Ri),ju}function Vu(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri){const Ni=Ve(),rn=cl(Ni,t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri);return rn!==hn&&ta(Ni,An(),rn),Vu}function zu(t){const i=Ve(),r=tl(i,t);return r!==hn&&ta(i,An(),r),zu}function af(t,i,r){Ls(To,zs,il(Ve(),t,i,r),!0)}function lf(t,i,r,c,p){Ls(To,zs,nl(Ve(),t,i,r,c,p),!0)}function cf(t,i,r,c,p,_,O){Ls(To,zs,rl(Ve(),t,i,r,c,p,_,O),!0)}function df(t,i,r,c,p,_,O,Q,ce){Ls(To,zs,ol(Ve(),t,i,r,c,p,_,O,Q,ce),!0)}function uf(t,i,r,c,p,_,O,Q,ce,De,tt){Ls(To,zs,sl(Ve(),t,i,r,c,p,_,O,Q,ce,De,tt),!0)}function hf(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft){Ls(To,zs,al(Ve(),t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft),!0)}function mf(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci){Ls(To,zs,ll(Ve(),t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci),!0)}function pf(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri){Ls(To,zs,cl(Ve(),t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri),!0)}function ff(t){Ls(To,zs,tl(Ve(),t),!0)}function gf(t,i,r){As(il(Ve(),t,i,r))}function _f(t,i,r,c,p){As(nl(Ve(),t,i,r,c,p))}function vf(t,i,r,c,p,_,O){As(rl(Ve(),t,i,r,c,p,_,O))}function bf(t,i,r,c,p,_,O,Q,ce){As(ol(Ve(),t,i,r,c,p,_,O,Q,ce))}function yf(t,i,r,c,p,_,O,Q,ce,De,tt){As(sl(Ve(),t,i,r,c,p,_,O,Q,ce,De,tt))}function Cf(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft){As(al(Ve(),t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft))}function xf(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci){As(ll(Ve(),t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci))}function Mf(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri){As(cl(Ve(),t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri))}function Ef(t){As(tl(Ve(),t))}function Wu(t,i,r,c,p){return ks(t,il(Ve(),i,r,c),p,!1),Wu}function Hu(t,i,r,c,p,_,O){return ks(t,nl(Ve(),i,r,c,p,_),O,!1),Hu}function $u(t,i,r,c,p,_,O,Q,ce){return ks(t,rl(Ve(),i,r,c,p,_,O,Q),ce,!1),$u}function Ku(t,i,r,c,p,_,O,Q,ce,De,tt){return ks(t,ol(Ve(),i,r,c,p,_,O,Q,ce,De),tt,!1),Ku}function Gu(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft){return ks(t,sl(Ve(),i,r,c,p,_,O,Q,ce,De,tt,Ct),Ft,!1),Gu}function Zu(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci){return ks(t,al(Ve(),i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt),ci,!1),Zu}function Qu(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri){return ks(t,ll(Ve(),i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi),Ri,!1),Qu}function Yu(t,i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri,Ni,rn){return ks(t,cl(Ve(),i,r,c,p,_,O,Q,ce,De,tt,Ct,Ft,Kt,ci,yi,Ri,Ni),rn,!1),Yu}function Xu(t,i,r){return ks(t,tl(Ve(),i),r,!1),Xu}function Ju(t,i,r){const c=Ve();return Qo(c,to(),i)&&fs(pt(),Jn(),c,t,i,c[Vi],r,!0),Ju}function qu(t,i,r){const c=Ve();if(Qo(c,to(),i)){const _=pt(),O=Jn();fs(_,O,c,t,i,vp(Ao(_.data),O,c),r,!0)}return qu}const Oa=void 0;var Z0=["en",[["a","p"],["AM","PM"],Oa],[["AM","PM"],Oa,Oa],[["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"]],Oa,[["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"]],Oa,[["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}",Oa,"{1} 'at' {0}",Oa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function G0(t){const r=Math.floor(Math.abs(t)),c=t.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===c?1:5}];let ul={};function Q0(t,i,r){"string"!=typeof i&&(r=i,i=t[Ji.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),ul[i]=t,r&&(ul[i][Ji.ExtraData]=r)}function eh(t){const i=function J0(t){return t.toLowerCase().replace(/_/g,"-")}(t);let r=If(i);if(r)return r;const c=i.split("-")[0];if(r=If(c),r)return r;if("en"===c)return Z0;throw new Z(701,!1)}function Y0(t){return eh(t)[Ji.CurrencyCode]||null}function wf(t){return eh(t)[Ji.PluralCase]}function If(t){return t in ul||(ul[t]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[t]),ul[t]}function X0(){ul={}}var Ji=(()=>((Ji=Ji||{})[Ji.LocaleId=0]="LocaleId",Ji[Ji.DayPeriodsFormat=1]="DayPeriodsFormat",Ji[Ji.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ji[Ji.DaysFormat=3]="DaysFormat",Ji[Ji.DaysStandalone=4]="DaysStandalone",Ji[Ji.MonthsFormat=5]="MonthsFormat",Ji[Ji.MonthsStandalone=6]="MonthsStandalone",Ji[Ji.Eras=7]="Eras",Ji[Ji.FirstDayOfWeek=8]="FirstDayOfWeek",Ji[Ji.WeekendRange=9]="WeekendRange",Ji[Ji.DateFormat=10]="DateFormat",Ji[Ji.TimeFormat=11]="TimeFormat",Ji[Ji.DateTimeFormat=12]="DateTimeFormat",Ji[Ji.NumberSymbols=13]="NumberSymbols",Ji[Ji.NumberFormats=14]="NumberFormats",Ji[Ji.CurrencyCode=15]="CurrencyCode",Ji[Ji.CurrencySymbol=16]="CurrencySymbol",Ji[Ji.CurrencyName=17]="CurrencyName",Ji[Ji.Currencies=18]="Currencies",Ji[Ji.Directionality=19]="Directionality",Ji[Ji.PluralCase=20]="PluralCase",Ji[Ji.ExtraData=21]="ExtraData",Ji))();const q0=["zero","one","two","few","many"],Aa="en-US",Hc={marker:"element"},$c={marker:"ICU"};var qr=(()=>((qr=qr||{})[qr.SHIFT=2]="SHIFT",qr[qr.APPEND_EAGERLY=1]="APPEND_EAGERLY",qr[qr.COMMENT=2]="COMMENT",qr))();let Sf=Aa;function th(t){(function Jt(t,i){null==t&&lt(i,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(Sf=t.toLowerCase().replace(/_/g,"-"))}function Df(t,i,r){const c=i.insertBeforeIndex,p=Array.isArray(c)?c[0]:c;return null===p?Xh(t,0,r):jn(r[p])}function Tf(t,i,r,c,p){const _=i.insertBeforeIndex;if(Array.isArray(_)){let O=c,Q=null;if(3&i.type||(Q=O,O=p),null!==O&&-1===i.componentOffset)for(let ce=1;ce<_.length;ce++)qo(t,O,r[_[ce]],Q,!1)}}function Pf(t,i){if(t.push(i),t.length>1)for(let r=t.length-2;r>=0;r--){const c=t[r];Of(c)||ny(c,i)&&null===ry(c)&&oy(c,i.index)}}function Of(t){return!(64&t.type)}function ny(t,i){return Of(i)||t.index>i.index}function ry(t){const i=t.insertBeforeIndex;return Array.isArray(i)?i[0]:i}function oy(t,i){const r=t.insertBeforeIndex;Array.isArray(r)?r[0]=i:(qh(Df,Tf),t.insertBeforeIndex=i)}function Nl(t,i){const r=t.data[i];return null===r||"string"==typeof r?null:r.hasOwnProperty("currentCaseLViewIndex")?r:r.value}function ly(t,i,r){const c=Vd(t,r,64,null,null);return Pf(i,c),c}function Kc(t,i){const r=i[t.currentCaseLViewIndex];return null===r?r:r<0?~r:r}function Af(t){return t>>>17}function kf(t){return(131070&t)>>>1}let Ul=0,jl=0;function Rf(t,i,r,c){const p=r[Vi];let O,_=null;for(let Q=0;Q<i.length;Q++){const ce=i[Q];if("string"==typeof ce){const De=i[++Q];null===r[De]&&(r[De]=Fo(p,ce))}else if("number"==typeof ce)switch(1&ce){case 0:const De=Af(ce);let tt,Ct;if(null===_&&(_=De,O=fc(p,c)),De===_?(tt=c,Ct=O):(tt=null,Ct=jn(r[De])),null!==Ct){const yi=kf(ce);qo(p,Ct,r[yi],tt,!1);const Ni=Nl(t,yi);if(null!==Ni&&"object"==typeof Ni){const rn=Kc(Ni,r);null!==rn&&Rf(t,Ni.create[rn],r,r[Ni.anchorIdx])}}break;case 1:const Kt=i[++Q],ci=i[++Q];Qd(p,kt(ce>>>1,r),null,null,Kt,ci,null)}else switch(ce){case $c:const De=i[++Q],tt=i[++Q];null===r[tt]&&F(r[tt]=Ys(p,De),r);break;case Hc:const Ct=i[++Q],Ft=i[++Q];null===r[Ft]&&F(r[Ft]=ss(p,Ct,null),r)}}}function Ff(t,i,r,c,p){for(let _=0;_<r.length;_++){const O=r[_],Q=r[++_];if(O&p){let ce="";for(let De=_+1;De<=_+Q;De++){const tt=r[De];if("string"==typeof tt)ce+=tt;else if("number"==typeof tt)if(tt<0)ce+=q(i[c-tt]);else{const Ct=tt>>>2;switch(3&tt){case 1:const Ft=r[++De],Kt=r[++De],ci=t.data[Ct];"string"==typeof ci?Qd(i[Vi],i[Ct],null,ci,Ft,ce,Kt):fs(t,ci,i,Ft,ce,i[Vi],Kt,!1);break;case 0:const yi=i[Ct];null!==yi&&fa(i[Vi],yi,ce);break;case 2:my(t,Nl(t,Ct),i,ce);break;case 3:Bf(t,Nl(t,Ct),c,i)}}}}else{const ce=r[_+1];if(ce>0&&3==(3&ce)){const tt=Nl(t,ce>>>2);i[tt.currentCaseLViewIndex]<0&&Bf(t,tt,c,i)}}_+=Q}}function Bf(t,i,r,c){let p=c[i.currentCaseLViewIndex];if(null!==p){let _=Ul;p<0&&(p=c[i.currentCaseLViewIndex]=~p,_=-1),Ff(t,c,i.update[p],r,_)}}function my(t,i,r,c){const p=function py(t,i){let r=t.cases.indexOf(i);if(-1===r)switch(t.type){case 1:{const c=function ey(t,i){const r=wf(i)(parseInt(t,10)),c=q0[r];return void 0!==c?c:"other"}(i,function iy(){return Sf}());r=t.cases.indexOf(c),-1===r&&"other"!==c&&(r=t.cases.indexOf("other"));break}case 0:r=t.cases.indexOf("other")}return-1===r?null:r}(i,c);if(Kc(i,r)!==p&&(Nf(t,i,r),r[i.currentCaseLViewIndex]=null===p?null:~p,null!==p)){const O=r[i.anchorIdx];O&&Rf(t,i.create[p],r,O)}}function Nf(t,i,r){let c=Kc(i,r);if(null!==c){const p=i.remove[c];for(let _=0;_<p.length;_++){const O=p[_];if(O>0){const Q=kt(O,r);null!==Q&&gd(r[Vi],Q)}else Nf(t,Nl(t,~O),r)}}}function fy(){const t=[];let r,c,i=-1;function _(Q,ce){i=0;const De=Kc(Q,ce);c=null!==De?Q.remove[De]:It}function O(){if(i<c.length){const Q=c[i++];return Q>0?r[Q]:(t.push(i,c),_(r[bi].data[~Q],r),O())}return 0===t.length?null:(c=t.pop(),i=t.pop(),O())}return function p(Q,ce){for(r=ce;t.length;)t.pop();return _(Q.value,ce),O}}const Gc=/\ufffd(\d+):?\d*\ufffd/gi,gy=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,_y=/\ufffd(\d+)\ufffd/,jf=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Vl="\ufffd",vy=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,by=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,yy=/\uE500/g;function Vf(t,i,r,c,p,_,O){const Q=Rl(t,c,1,null);let ce=Q<<qr.SHIFT,De=Hi();i===De&&(De=null),null===De&&(ce|=qr.APPEND_EAGERLY),O&&(ce|=qr.COMMENT,function Lr(t){void 0===Sn&&(Sn=t())}(fy)),p.push(ce,null===_?"":_);const tt=Vd(t,Q,O?32:1,null===_?"":_,null);Pf(r,tt);const Ct=tt.index;return gn(tt,!1),null!==De&&i!==De&&function ay(t,i){let r=t.insertBeforeIndex;null===r?(qh(Df,Tf),r=t.insertBeforeIndex=[null,i]):(function qe(t,i,r){t!=i&&lt(r,t,i,"==")}(Array.isArray(r),!0,"Expecting array here"),r.push(i))}(De,Ct),tt}function My(t,i,r,c,p,_,O){const Q=O.match(Gc),ce=Vf(t,i,r,_,c,Q?null:O,!1);Q&&zl(p,O,ce.index,null,0,null)}function zl(t,i,r,c,p,_){const O=t.length,Q=O+1;t.push(null,null);const ce=O+2,De=i.split(Gc);let tt=0;for(let Ct=0;Ct<De.length;Ct++){const Ft=De[Ct];if(1&Ct){const Kt=p+parseInt(Ft,10);t.push(-1-Kt),tt|=zf(Kt)}else""!==Ft&&t.push(Ft)}return t.push(r<<2|(c?1:0)),c&&t.push(c,_),t[O]=tt,t[Q]=t.length-ce,tt}function wy(t){let i=0;for(let r=0;r<t.length;r++){const c=t[r];"number"==typeof c&&c<0&&i++}return i}function zf(t){return 1<<Math.min(t,31)}function Wf(t){let i,_,r="",c=0,p=!1;for(;null!==(i=vy.exec(t));)p?i[0]===`${Vl}/*${_}${Vl}`&&(c=i.index,p=!1):(r+=t.substring(c,i.index+i[0].length),_=i[1],p=!0);return r+=t.slice(c),r}function Hf(t,i,r,c,p,_){let O=0;const Q={type:p.type,currentCaseLViewIndex:Rl(t,i,1,null),anchorIdx:_,cases:[],create:[],remove:[],update:[]};(function Oy(t,i,r){t.push(zf(i.mainBinding),2,-1-i.mainBinding,r<<2|2)})(r,p,_),function sy(t,i,r){const c=t.data[i];null===c?t.data[i]=r:c.value=r}(t,_,Q);const ce=p.values;for(let De=0;De<ce.length;De++){const tt=ce[De],Ct=[];for(let Ft=0;Ft<tt.length;Ft++){const Kt=tt[Ft];if("string"!=typeof Kt){const ci=Ct.push(Kt)-1;tt[Ft]=`\x3c!--\ufffd${ci}\ufffd--\x3e`}}O=Ty(t,Q,i,r,c,p.cases[De],tt.join(""),Ct)|O}O&&function Ay(t,i,r){t.push(i,1,r<<2|3)}(r,O,_)}function Dy(t){const i=[],r=[];let c=1,p=0;const _=ih(t=t.replace(jf,function(O,Q,ce){return c="select"===ce?0:1,p=parseInt(Q.slice(1),10),""}));for(let O=0;O<_.length;){let Q=_[O++].trim();1===c&&(Q=Q.replace(/\s*(?:=)?(\w+)\s*/,"$1")),Q.length&&i.push(Q);const ce=ih(_[O++]);i.length>r.length&&r.push(ce)}return{type:c,mainBinding:p,cases:i,values:r}}function ih(t){if(!t)return[];let i=0;const r=[],c=[],p=/[{}]/g;let _;for(p.lastIndex=0;_=p.exec(t);){const Q=_.index;if("}"==_[0]){if(r.pop(),0==r.length){const ce=t.substring(i,Q);jf.test(ce)?c.push(Dy(ce)):c.push(ce),i=Q+1}}else{if(0==r.length){const ce=t.substring(i,Q);c.push(ce),i=Q+1}r.push("{")}}const O=t.substring(i);return c.push(O),c}function Ty(t,i,r,c,p,_,O,Q){const ce=[],De=[],tt=[];i.cases.push(_),i.create.push(ce),i.remove.push(De),i.update.push(tt);const Ft=dm(om()).getInertBodyElement(O),Kt=Md(Ft)||Ft;return Kt?$f(t,i,r,c,ce,De,tt,Kt,p,Q,0):0}function $f(t,i,r,c,p,_,O,Q,ce,De,tt){let Ct=0,Ft=Q.firstChild;for(;Ft;){const Kt=Rl(t,r,1,null);switch(Ft.nodeType){case Node.ELEMENT_NODE:const ci=Ft,yi=ci.tagName.toLowerCase();if(Cd.hasOwnProperty(yi)){nh(p,Hc,yi,ce,Kt),t.data[Kt]=yi;const fi=ci.attributes;for(let mn=0;mn<fi.length;mn++){const Rr=fi.item(mn),so=Rr.name.toLowerCase();Rr.value.match(Gc)?pm.hasOwnProperty(so)&&zl(O,Rr.value,Kt,Rr.name,0,xd[so]?yc:null):ky(p,Kt,Rr)}Ct=$f(t,i,r,c,p,_,O,Ft,Kt,De,tt+1)|Ct,Kf(_,Kt,tt)}break;case Node.TEXT_NODE:const Ri=Ft.textContent||"",Ni=Ri.match(Gc);nh(p,null,Ni?"":Ri,ce,Kt),Kf(_,Kt,tt),Ni&&(Ct=zl(O,Ri,Kt,null,0,null)|Ct);break;case Node.COMMENT_NODE:const rn=_y.exec(Ft.textContent||"");if(rn){const mn=De[parseInt(rn[1],10)];nh(p,$c,"",ce,Kt),Hf(t,r,c,ce,mn,Kt),Py(_,Kt,tt)}}Ft=Ft.nextSibling}return Ct}function Kf(t,i,r){0===r&&t.push(i)}function Py(t,i,r){0===r&&(t.push(~i),t.push(i))}function nh(t,i,r,c,p){null!==i&&t.push(i),t.push(r,p,function cy(t,i,r){return t|i<<17|r<<1}(0,c,p))}function ky(t,i,r){t.push(i<<1|1,r.name,r.value)}const Gf=0,Ly=/\[(\ufffd.+?\ufffd?)\]/,Ry=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,Fy=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,By=/{([A-Z0-9_]+)}/g,Ny=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Uy=/\/\*/,jy=/\d+\:(\d+)/;function rh(t,i,r=-1){const c=pt(),p=Ve(),_=Je+t,O=si(c.consts,i),Q=Hi();c.firstCreatePass&&function xy(t,i,r,c,p,_){const O=Hi(),Q=[],ce=[],De=[[]];p=function Sy(t,i){if(function Iy(t){return-1===t}(i))return Wf(t);{const r=t.indexOf(`:${i}${Vl}`)+2+i.toString().length,c=t.search(new RegExp(`${Vl}\\/\\*\\d+:${i}${Vl}`));return Wf(t.substring(r,c))}}(p,_);const tt=function Cy(t){return t.replace(yy," ")}(p).split(by);for(let Ct=0;Ct<tt.length;Ct++){let Ft=tt[Ct];if(1&Ct){const Kt=47===Ft.charCodeAt(0),yi=(Ft.charCodeAt(Kt?1:0),Je+Number.parseInt(Ft.substring(Kt?2:1)));if(Kt)De.shift(),gn(Hi(),!1);else{const Ri=ly(t,De[0],yi);De.unshift([]),gn(Ri,!0)}}else{const Kt=ih(Ft);for(let ci=0;ci<Kt.length;ci++){let yi=Kt[ci];if(1&ci){const Ri=yi;if("object"!=typeof Ri)throw new Error(`Unable to parse ICU expression in "${p}" message.`);Hf(t,r,ce,i,Ri,Vf(t,O,De[0],r,Q,"",!0).index)}else""!==yi&&My(t,O,De[0],Q,ce,r,yi)}}}t.data[c]={create:Q,update:ce}}(c,null===Q?0:Q.index,p,_,O,r);const ce=c.data[_],tt=Co(c,Q===p[pn]?null:Q,p);(function hy(t,i,r,c){const p=t[Vi];for(let _=0;_<i.length;_++){const O=i[_++],Q=i[_],De=(O&qr.APPEND_EAGERLY)===qr.APPEND_EAGERLY,tt=O>>>qr.SHIFT;let Ct=t[tt];null===Ct&&(Ct=t[tt]=(O&qr.COMMENT)===qr.COMMENT?p.createComment(Q):Fo(p,Q)),De&&null!==r&&qo(p,r,Ct,c,!1)}})(p,ce.create,tt,Q&&8&Q.type?p[Q.index]:null),io(!0)}function oh(){io(!1)}function Zf(t,i,r){rh(t,i,r),oh()}function Qf(t,i){const r=pt(),c=si(r.consts,i);!function Ey(t,i,r){const p=Ai().index,_=[];if(t.firstCreatePass&&null===t.data[i]){for(let O=0;O<r.length;O+=2){const Q=r[O],ce=r[O+1];if(""!==ce){if(gy.test(ce))throw new Error(`ICU expressions are not supported in attributes. Message: "${ce}".`);zl(_,ce,p,Q,wy(_),null)}}t.data[i]=_}}(r,t+Je,c)}function sh(t){return function dy(t){t&&(Ul|=1<<Math.min(jl,31)),jl++}(Qo(Ve(),to(),t)),sh}function Yf(t){!function uy(t,i,r){if(jl>0){const c=t.data[r];Ff(t,i,Array.isArray(c)?c:c.update,Zn()-jl-1,Ul)}Ul=0,jl=0}(pt(),Ve(),t+Je)}function Xf(t,i={}){return function Vy(t,i={}){let r=t;if(Ly.test(t)){const c={},p=[Gf];r=r.replace(Ry,(_,O,Q)=>{const ce=O||Q,De=c[ce]||[];if(De.length||(ce.split("|").forEach(yi=>{const Ri=yi.match(jy),Ni=Ri?parseInt(Ri[1],10):Gf,rn=Uy.test(yi);De.push([Ni,rn,yi])}),c[ce]=De),!De.length)throw new Error(`i18n postprocess: unmatched placeholder - ${ce}`);const tt=p[p.length-1];let Ct=0;for(let yi=0;yi<De.length;yi++)if(De[yi][0]===tt){Ct=yi;break}const[Ft,Kt,ci]=De[Ct];return Kt?p.pop():tt!==Ft&&p.push(Ft),De.splice(Ct,1),ci})}return Object.keys(i).length&&(r=r.replace(Fy,(c,p,_,O,Q,ce)=>i.hasOwnProperty(_)?`${p}${i[_]}${ce}`:c),r=r.replace(By,(c,p)=>i.hasOwnProperty(p)?i[p]:c),r=r.replace(Ny,(c,p)=>{if(i.hasOwnProperty(p)){const _=i[p];if(!_.length)throw new Error(`i18n postprocess: unmatched ICU - ${c} with key: ${p}`);return _.shift()}return c})),r}(t,i)}function ah(t,i,r,c,p){if(t=g(t),Array.isArray(t))for(let _=0;_<t.length;_++)ah(t[_],i,r,c,p);else{const _=pt(),O=Ve();let Q=Sa(t)?t:g(t.provide),ce=Om(t);const De=Ai(),tt=1048575&De.providerIndexes,Ct=De.directiveStart,Ft=De.providerIndexes>>20;if(Sa(t)||!t.multi){const Kt=new bt(ce,p,Xa),ci=ch(Q,i,p?tt:tt+Ft,Ct);-1===ci?(wr(Di(De,O),_,Q),lh(_,t,i.length),i.push(Q),De.directiveStart++,De.directiveEnd++,p&&(De.providerIndexes+=1048576),r.push(Kt),O.push(Kt)):(r[ci]=Kt,O[ci]=Kt)}else{const Kt=ch(Q,i,tt+Ft,Ct),ci=ch(Q,i,tt,tt+Ft),Ri=ci>=0&&r[ci];if(p&&!Ri||!p&&!(Kt>=0&&r[Kt])){wr(Di(De,O),_,Q);const Ni=function $y(t,i,r,c,p){const _=new bt(t,r,Xa);return _.multi=[],_.index=i,_.componentProviders=0,Jf(_,p,c&&!r),_}(p?Hy:Wy,r.length,p,c,ce);!p&&Ri&&(r[ci].providerFactory=Ni),lh(_,t,i.length,0),i.push(Q),De.directiveStart++,De.directiveEnd++,p&&(De.providerIndexes+=1048576),r.push(Ni),O.push(Ni)}else lh(_,t,Kt>-1?Kt:ci,Jf(r[p?ci:Kt],ce,!p&&c));!p&&c&&Ri&&r[ci].componentProviders++}}}function lh(t,i,r,c){const p=Sa(i),_=function Tv(t){return!!t.useClass}(i);if(p||_){const ce=(_?g(i.useClass):i).prototype.ngOnDestroy;if(ce){const De=t.destroyHooks||(t.destroyHooks=[]);if(!p&&i.multi){const tt=De.indexOf(r);-1===tt?De.push(r,[c,ce]):De[tt+1].push(c,ce)}else De.push(r,ce)}}}function Jf(t,i,r){return r&&t.componentProviders++,t.multi.push(i)-1}function ch(t,i,r,c){for(let p=r;p<c;p++)if(i[p]===t)return p;return-1}function Wy(t,i,r,c){return dh(this.multi,[])}function Hy(t,i,r,c){const p=this.multi;let _;if(this.providerFactory){const O=this.providerFactory.componentProviders,Q=rs(r,r[bi],this.providerFactory.index,c);_=Q.slice(0,O),dh(p,_);for(let ce=O;ce<Q.length;ce++)_.push(Q[ce])}else _=[],dh(p,_);return _}function dh(t,i){for(let r=0;r<t.length;r++)i.push((0,t[r])());return i}function qf(t,i=[]){return r=>{r.providersResolver=(c,p)=>function zy(t,i,r){const c=pt();if(c.firstCreatePass){const p=$n(t);ah(r,c.data,c.blueprint,p,!0),ah(i,c.data,c.blueprint,p,!1)}}(c,p?p(t):t,i)}}class hl{}class eg{}function tg(t,i){return new uh(t,i??null)}const Ky=tg;class uh extends hl{constructor(i,r){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new yp(this);const c=zn(i);this._bootstrapComponents=qs(c.bootstrap),this._r3Injector=Jm(i,r,[{provide:hl,useValue:this},{provide:Ol,useValue:this.componentFactoryResolver}],b(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class Zc extends eg{constructor(i){super(),this.moduleType=i}create(i){return new uh(this.moduleType,i)}}class Gy extends hl{constructor(i,r,c){super(),this.componentFactoryResolver=new yp(this),this.instance=null;const p=new Pm([...i,{provide:hl,useValue:this},{provide:Ol,useValue:this.componentFactoryResolver}],r||Mc(),c,new Set(["environment"]));this.injector=p,p.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function hh(t,i,r=null){return new Gy(t,i,r).injector}let Zy=(()=>{class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r.id)){const c=Im(0,r.type),p=c.length>0?hh([c],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r.id,p)}return this.cachedInjectors.get(r.id)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=H({token:t,providedIn:"environment",factory:()=>new t(_i(Da))}),t})();function ig(t){t.getStandaloneInjector=i=>i.get(Zy).getOrCreateStandaloneInjector(t)}function mh(t){const i=z(t);if(null===i)return null;if(void 0===i.component){const r=i.lView;if(null===r)return null;i.component=function Gi(t,i){const r=i[bi].data[t],{directiveStart:c,componentOffset:p}=r;return p>-1?i[c+p]:null}(i.nodeIndex,r)}return i.component}function ng(t){!function eC(t){if(typeof Element<"u"&&!(t instanceof Element))throw new Error("Expecting instance of DOM Element")}(t);const i=z(t),r=i?i.lView:null;return null===r?null:r[Mi]}function rg(t){const i=z(t);let c,r=i?i.lView:null;if(null===r)return null;for(;2===r[bi].type&&(c=Ir(r));)r=c;return 256&r[gi]?null:r[Mi]}function og(t){const i=Ge(t);return null!==i?[vs(i)]:[]}function sg(t){const i=z(t),r=i?i.lView:null;return null===r?ga.NULL:new us(r[bi].data[i.nodeIndex],r)}function ag(t){if(t instanceof Text)return[];const i=z(t),r=i?i.lView:null;if(null===r)return[];const p=i.nodeIndex;return r[bi]?.data[p]?(void 0===i.directives&&(i.directives=on(p,r)),null===i.directives?[]:[...i.directives]):[]}function Yy(t){const{constructor:i}=t;if(!i)throw new Error("Unable to find the instance constructor");const r=Xi(i);if(r)return{inputs:r.inputs,outputs:r.outputs,encapsulation:r.encapsulation,changeDetection:r.onPush?Ht.OnPush:Ht.Default};const c=Mn(i);return c?{inputs:c.inputs,outputs:c.outputs}:null}function ph(t){return z(t).native}function lg(t){const i=z(t),r=null===i?null:i.lView;if(null===r)return[];const p=r[qn],_=r[bi].cleanup,O=[];if(_&&p)for(let Q=0;Q<_.length;){const ce=_[Q++],De=_[Q++];if("string"==typeof ce){const tt=ce,Ct=jn(r[De]),Ft=p[_[Q++]],Kt=_[Q++];t==Ct&&O.push({element:t,name:tt,callback:Ft,useCapture:"boolean"==typeof Kt&&Kt,type:"boolean"==typeof Kt||Kt>=0?"dom":"output"})}}return O.sort(Jy),O}function Jy(t,i){return t.name==i.name?0:t.name<i.name?-1:1}function qy(t){return void 0!==t.type&&void 0!==t.declaredInputs&&void 0!==t.findHostDirectiveDefs}function cg(t,i,r,c){return xt(()=>{const p=t;null!==i&&(p.hasOwnProperty("decorators")&&void 0!==p.decorators?p.decorators.push(...i):p.decorators=i),null!==r&&(p.ctorParameters=r),null!==c&&(p.propDecorators=p.hasOwnProperty("propDecorators")&&void 0!==p.propDecorators?{...p.propDecorators,...c}:c)})}function dg(t,i,r){const c=_n()+t,p=Ve();return p[c]===hn?Vs(p,c,r?i.call(r):i()):Fl(p,c)}function ug(t,i,r,c){return yg(Ve(),_n(),t,i,r,c)}function hg(t,i,r,c,p){return Cg(Ve(),_n(),t,i,r,c,p)}function mg(t,i,r,c,p,_){return xg(Ve(),_n(),t,i,r,c,p,_)}function pg(t,i,r,c,p,_,O){return Mg(Ve(),_n(),t,i,r,c,p,_,O)}function fg(t,i,r,c,p,_,O,Q){const ce=_n()+t,De=Ve(),tt=ys(De,ce,r,c,p,_);return Qo(De,ce+4,O)||tt?Vs(De,ce+5,Q?i.call(Q,r,c,p,_,O):i(r,c,p,_,O)):Fl(De,ce+5)}function gg(t,i,r,c,p,_,O,Q,ce){const De=_n()+t,tt=Ve(),Ct=ys(tt,De,r,c,p,_);return Ta(tt,De+4,O,Q)||Ct?Vs(tt,De+6,ce?i.call(ce,r,c,p,_,O,Q):i(r,c,p,_,O,Q)):Fl(tt,De+6)}function _g(t,i,r,c,p,_,O,Q,ce,De){const tt=_n()+t,Ct=Ve();let Ft=ys(Ct,tt,r,c,p,_);return Rc(Ct,tt+4,O,Q,ce)||Ft?Vs(Ct,tt+7,De?i.call(De,r,c,p,_,O,Q,ce):i(r,c,p,_,O,Q,ce)):Fl(Ct,tt+7)}function vg(t,i,r,c,p,_,O,Q,ce,De,tt){const Ct=_n()+t,Ft=Ve(),Kt=ys(Ft,Ct,r,c,p,_);return ys(Ft,Ct+4,O,Q,ce,De)||Kt?Vs(Ft,Ct+8,tt?i.call(tt,r,c,p,_,O,Q,ce,De):i(r,c,p,_,O,Q,ce,De)):Fl(Ft,Ct+8)}function bg(t,i,r,c){return Eg(Ve(),_n(),t,i,r,c)}function Wl(t,i){const r=t[i];return r===hn?void 0:r}function yg(t,i,r,c,p,_){const O=i+r;return Qo(t,O,p)?Vs(t,O+1,_?c.call(_,p):c(p)):Wl(t,O+1)}function Cg(t,i,r,c,p,_,O){const Q=i+r;return Ta(t,Q,p,_)?Vs(t,Q+2,O?c.call(O,p,_):c(p,_)):Wl(t,Q+2)}function xg(t,i,r,c,p,_,O,Q){const ce=i+r;return Rc(t,ce,p,_,O)?Vs(t,ce+3,Q?c.call(Q,p,_,O):c(p,_,O)):Wl(t,ce+3)}function Mg(t,i,r,c,p,_,O,Q,ce){const De=i+r;return ys(t,De,p,_,O,Q)?Vs(t,De+4,ce?c.call(ce,p,_,O,Q):c(p,_,O,Q)):Wl(t,De+4)}function Eg(t,i,r,c,p,_){let O=i+r,Q=!1;for(let ce=0;ce<p.length;ce++)Qo(t,O++,p[ce])&&(Q=!0);return Q?Vs(t,O,c.apply(_,p)):Wl(t,O)}function wg(t,i){const r=pt();let c;const p=t+Je;r.firstCreatePass?(c=function tC(t,i){if(i)for(let r=i.length-1;r>=0;r--){const c=i[r];if(t===c.name)return c}}(i,r.pipeRegistry),r.data[p]=c,c.onDestroy&&(r.destroyHooks??(r.destroyHooks=[])).push(p,c.onDestroy)):c=r.data[p];const _=c.factory||(c.factory=xr(c.type)),O=ge(Xa);try{const Q=Y(!1),ce=_();return Y(Q),kp(r,Ve(),p,ce),ce}finally{ge(O)}}function Ig(t,i,r){const c=t+Je,p=Ve(),_=it(p,c);return Hl(p,c)?yg(p,_n(),i,_.transform,r,_):_.transform(r)}function Sg(t,i,r,c){const p=t+Je,_=Ve(),O=it(_,p);return Hl(_,p)?Cg(_,_n(),i,O.transform,r,c,O):O.transform(r,c)}function Dg(t,i,r,c,p){const _=t+Je,O=Ve(),Q=it(O,_);return Hl(O,_)?xg(O,_n(),i,Q.transform,r,c,p,Q):Q.transform(r,c,p)}function Tg(t,i,r,c,p,_){const O=t+Je,Q=Ve(),ce=it(Q,O);return Hl(Q,O)?Mg(Q,_n(),i,ce.transform,r,c,p,_,ce):ce.transform(r,c,p,_)}function Pg(t,i,r){const c=t+Je,p=Ve(),_=it(p,c);return Hl(p,c)?Eg(p,_n(),i,_.transform,r,_):_.transform.apply(_,r)}function Hl(t,i){return t[bi].data[i].pure}function fh(t){return i=>{setTimeout(t,void 0,i)}}const Ws=class iC extends n.xQ{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,r,c){let p=i,_=r||(()=>null),O=c;if(i&&"object"==typeof i){const ce=i;p=ce.next?.bind(ce),_=ce.error?.bind(ce),O=ce.complete?.bind(ce)}this.__isAsync&&(_=fh(_),p&&(p=fh(p)),O&&(O=fh(O)));const Q=super.subscribe({next:p,error:_,complete:O});return i instanceof e.w&&i.add(Q),Q}};function nC(){return this._results[Symbol.iterator]()}class Qc{get changes(){return this._changes||(this._changes=new Ws)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const r=Qc.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=nC)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,r){return this._results.reduce(i,r)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,r){const c=this;c.dirty=!1;const p=Ro(i);(this._changesDetected=!function Ns(t,i,r){if(t.length!==i.length)return!1;for(let c=0;c<t.length;c++){let p=t[c],_=i[c];if(r&&(p=r(p),_=r(_)),_!==p)return!1}return!0}(c._results,p,r))&&(c._results=p,c.length=p.length,c.last=p[this.length-1],c.first=p[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let $l=(()=>{class t{}return t.__NG_ELEMENT_ID__=sC,t})();const rC=$l,oC=class extends rC{constructor(i,r,c){super(),this._declarationLView=i,this._declarationTContainer=r,this.elementRef=c}createEmbeddedView(i,r){const c=this._declarationTContainer.tView,p=Sc(this._declarationLView,c,i,16,null,c.declTNode,null,null,null,null,r||null);p[Nn]=this._declarationLView[this._declarationTContainer.index];const O=this._declarationLView[ni];return null!==O&&(p[ni]=O.createEmbeddedView(c)),zd(c,p,i),new qa(p)}};function sC(){return Yc(Ai(),Ve())}function Yc(t,i){return 4&t.type?new oC(i,t,Za(t,i)):null}let Xc=(()=>{class t{}return t.__NG_ELEMENT_ID__=aC,t})();function aC(){return kg(Ai(),Ve())}const lC=Xc,Og=class extends lC{constructor(i,r,c){super(),this._lContainer=i,this._hostTNode=r,this._hostLView=c}get element(){return Za(this._hostTNode,this._hostLView)}get injector(){return new us(this._hostTNode,this._hostLView)}get parentInjector(){const i=Vr(this._hostTNode,this._hostLView);if(jr(i)){const r=m(i,this._hostLView),c=mo(i);return new us(r[bi].data[c+8],r)}return new us(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const r=Ag(this._lContainer);return null!==r&&r[i]||null}get length(){return this._lContainer.length-Tn}createEmbeddedView(i,r,c){let p,_;"number"==typeof c?p=c:null!=c&&(p=c.index,_=c.injector);const O=i.createEmbeddedView(r||{},_);return this.insert(O,p),O}createComponent(i,r,c,p,_){const O=i&&!da(i);let Q;if(O)Q=r;else{const Ct=r||{};Q=Ct.index,c=Ct.injector,p=Ct.projectableNodes,_=Ct.environmentInjector||Ct.ngModuleRef}const ce=O?i:new el(Xi(i)),De=c||this.parentInjector;if(!_&&null==ce.ngModule){const Ft=(O?De:this.parentInjector).get(Da,null);Ft&&(_=Ft)}const tt=ce.create(De,p,void 0,_);return this.insert(tt.hostView,Q),tt}insert(i,r){const c=i._lView,p=c[bi];if(function Ii(t){return bn(t[ji])}(c)){const tt=this.indexOf(i);if(-1!==tt)this.detach(tt);else{const Ct=c[ji],Ft=new Og(Ct,Ct[pn],Ct[ji]);Ft.detach(Ft.indexOf(i))}}const _=this._adjustIndex(r),O=this._lContainer;!function nn(t,i,r,c){const p=Tn+c,_=r.length;c>0&&(r[p-1][Dn]=i),c<_-Tn?(i[Dn]=r[p],_l(r,Tn+c,i)):(r.push(i),i[Dn]=null),i[ji]=r;const O=i[Nn];null!==O&&r!==O&&function kn(t,i){const r=t[Hn];i[Ei]!==i[ji][ji][Ei]&&(t[zi]=!0),null===r?t[Hn]=[i]:r.push(i)}(O,i);const Q=i[ni];null!==Q&&Q.insertView(t),i[gi]|=64}(p,c,O,_);const Q=fd(_,O),ce=c[Vi],De=fc(ce,O[dn]);return null!==De&&function hc(t,i,r,c,p,_){c[Fn]=p,c[pn]=i,Dl(t,c,r,1,p,_)}(p,O[pn],ce,c,De,Q),i.attachToViewContainerRef(),_l(gh(O),_,i),i}move(i,r){return this.insert(i,r)}indexOf(i){const r=Ag(this._lContainer);return null!==r?r.indexOf(i):-1}remove(i){const r=this._adjustIndex(i,-1),c=as(this._lContainer,r);c&&(ua(gh(this._lContainer),r),Zo(c[bi],c))}detach(i){const r=this._adjustIndex(i,-1),c=as(this._lContainer,r);return c&&null!=ua(gh(this._lContainer),r)?new qa(c):null}_adjustIndex(i,r=0){return i??this.length+r}};function Ag(t){return t[en]}function gh(t){return t[en]||(t[en]=[])}function kg(t,i){let r;const c=i[t.index];if(bn(c))r=c;else{let p;if(8&t.type)p=jn(c);else{const _=i[Vi];p=_.createComment("");const O=D(t,i);qo(_,fc(_,O),p,function q_(t,i){return t.nextSibling(i)}(_,O),!1)}i[t.index]=r=fp(c,i,p,t),Tc(i,r)}return new Og(r,t,i)}class _h{constructor(i){this.queryList=i,this.matches=null}clone(){return new _h(this.queryList)}setDirty(){this.queryList.setDirty()}}class vh{constructor(i=[]){this.queries=i}createEmbeddedView(i){const r=i.queries;if(null!==r){const c=null!==i.contentQueries?i.contentQueries[0]:r.length,p=[];for(let _=0;_<c;_++){const O=r.getByIndex(_);p.push(this.queries[O.indexInDeclarationView].clone())}return new vh(p)}return null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let r=0;r<this.queries.length;r++)null!==zg(i,r).matches&&this.queries[r].setDirty()}}class Lg{constructor(i,r,c=null){this.predicate=i,this.flags=r,this.read=c}}class bh{constructor(i=[]){this.queries=i}elementStart(i,r){for(let c=0;c<this.queries.length;c++)this.queries[c].elementStart(i,r)}elementEnd(i){for(let r=0;r<this.queries.length;r++)this.queries[r].elementEnd(i)}embeddedTView(i){let r=null;for(let c=0;c<this.length;c++){const p=null!==r?r.length:0,_=this.getByIndex(c).embeddedTView(i,p);_&&(_.indexInDeclarationView=c,null!==r?r.push(_):r=[_])}return null!==r?new bh(r):null}template(i,r){for(let c=0;c<this.queries.length;c++)this.queries[c].template(i,r)}getByIndex(i){return this.queries[i]}get length(){return this.queries.length}track(i){this.queries.push(i)}}class yh{constructor(i,r=-1){this.metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=r}elementStart(i,r){this.isApplyingToNode(r)&&this.matchTNode(i,r)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,r){this.elementStart(i,r)}embeddedTView(i,r){return this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,r),new yh(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const r=this._declarationNodeIndex;let c=i.parent;for(;null!==c&&8&c.type&&c.index!==r;)c=c.parent;return r===(null!==c?c.index:-1)}return this._appliesToNextNode}matchTNode(i,r){const c=this.metadata.predicate;if(Array.isArray(c))for(let p=0;p<c.length;p++){const _=c[p];this.matchTNodeWithReadOption(i,r,cC(r,_)),this.matchTNodeWithReadOption(i,r,ns(r,i,_,!1,!1))}else c===$l?4&r.type&&this.matchTNodeWithReadOption(i,r,-1):this.matchTNodeWithReadOption(i,r,ns(r,i,c,!1,!1))}matchTNodeWithReadOption(i,r,c){if(null!==c){const p=this.metadata.read;if(null!==p)if(p===Al||p===Xc||p===$l&&4&r.type)this.addMatch(r.index,-2);else{const _=ns(r,i,p,!1,!1);null!==_&&this.addMatch(r.index,_)}else this.addMatch(r.index,c)}}addMatch(i,r){null===this.matches?this.matches=[i,r]:this.matches.push(i,r)}}function cC(t,i){const r=t.localNames;if(null!==r)for(let c=0;c<r.length;c+=2)if(r[c]===i)return r[c+1];return null}function uC(t,i,r,c){return-1===r?function dC(t,i){return 11&t.type?Za(t,i):4&t.type?Yc(t,i):null}(i,t):-2===r?function hC(t,i,r){return r===Al?Za(i,t):r===$l?Yc(i,t):r===Xc?kg(i,t):void 0}(t,i,c):rs(t,t[bi],r,i)}function Rg(t,i,r,c){const p=i[ni].queries[c];if(null===p.matches){const _=t.data,O=r.matches,Q=[];for(let ce=0;ce<O.length;ce+=2){const De=O[ce];Q.push(De<0?null:uC(i,_[De],O[ce+1],r.metadata.read))}p.matches=Q}return p.matches}function Ch(t,i,r,c){const p=t.queries.getByIndex(r),_=p.matches;if(null!==_){const O=Rg(t,i,p,r);for(let Q=0;Q<_.length;Q+=2){const ce=_[Q];if(ce>0)c.push(O[Q/2]);else{const De=_[Q+1],tt=i[-ce];for(let Ct=Tn;Ct<tt.length;Ct++){const Ft=tt[Ct];Ft[Nn]===Ft[ji]&&Ch(Ft[bi],Ft,De,c)}if(null!==tt[Hn]){const Ct=tt[Hn];for(let Ft=0;Ft<Ct.length;Ft++){const Kt=Ct[Ft];Ch(Kt[bi],Kt,De,c)}}}}}return c}function Fg(t){const i=Ve(),r=pt(),c=br();vo(c+1);const p=zg(r,c);if(t.dirty&&function oi(t){return 4==(4&t[gi])}(i)===(2==(2&p.metadata.flags))){if(null===p.matches)t.reset([]);else{const _=p.crossesNgTemplate?Ch(r,i,c,[]):Rg(r,i,p,c);t.reset(_,Uv),t.notifyOnChanges()}return!0}return!1}function Bg(t,i,r){const c=pt();c.firstCreatePass&&(Vg(c,new Lg(t,i,r),-1),2==(2&i)&&(c.staticViewQueries=!0)),jg(c,Ve(),i)}function Ng(t,i,r,c){const p=pt();if(p.firstCreatePass){const _=Ai();Vg(p,new Lg(i,r,c),_.index),function pC(t,i){const r=t.contentQueries||(t.contentQueries=[]);i!==(r.length?r[r.length-1]:-1)&&r.push(t.queries.length-1,i)}(p,t),2==(2&r)&&(p.staticContentQueries=!0)}jg(p,Ve(),r)}function Ug(){return function mC(t,i){return t[ni].queries[i].queryList}(Ve(),br())}function jg(t,i,r){const c=new Qc(4==(4&r));dp(t,i,c,c.destroy),null===i[ni]&&(i[ni]=new vh),i[ni].queries.push(new _h(c))}function Vg(t,i,r){null===t.queries&&(t.queries=new bh),t.queries.track(new yh(i,r))}function zg(t,i){return t.queries.getByIndex(i)}function Wg(t,i){return Yc(t,i)}const ts=(()=>({\u0275\u0275attribute:iu,\u0275\u0275attributeInterpolate1:nu,\u0275\u0275attributeInterpolate2:ru,\u0275\u0275attributeInterpolate3:ou,\u0275\u0275attributeInterpolate4:su,\u0275\u0275attributeInterpolate5:au,\u0275\u0275attributeInterpolate6:lu,\u0275\u0275attributeInterpolate7:cu,\u0275\u0275attributeInterpolate8:du,\u0275\u0275attributeInterpolateV:uu,\u0275\u0275defineComponent:St,\u0275\u0275defineDirective:fr,\u0275\u0275defineInjectable:H,\u0275\u0275defineInjector:He,\u0275\u0275defineNgModule:ir,\u0275\u0275definePipe:ar,\u0275\u0275directiveInject:Xa,\u0275\u0275getInheritedFactory:Ks,\u0275\u0275inject:_i,\u0275\u0275injectAttribute:Gs,\u0275\u0275invalidFactory:sp,\u0275\u0275invalidFactoryDep:pi,\u0275\u0275templateRefExtractor:Wg,\u0275\u0275resetView:ki,\u0275\u0275HostDirectivesFeature:Ip,\u0275\u0275NgOnChangesFeature:No,\u0275\u0275ProvidersFeature:qf,\u0275\u0275CopyDefinitionFeature:wp,\u0275\u0275InheritDefinitionFeature:qd,\u0275\u0275StandaloneFeature:ig,\u0275\u0275nextContext:Vp,\u0275\u0275namespaceHTML:gs,\u0275\u0275namespaceMathML:Ss,\u0275\u0275namespaceSVG:Yo,\u0275\u0275enableBindings:de,\u0275\u0275disableBindings:$e,\u0275\u0275elementStart:Fc,\u0275\u0275elementEnd:Bc,\u0275\u0275element:pu,\u0275\u0275elementContainerStart:Nc,\u0275\u0275elementContainerEnd:Uc,\u0275\u0275elementContainer:fu,\u0275\u0275pureFunction0:dg,\u0275\u0275pureFunction1:ug,\u0275\u0275pureFunction2:hg,\u0275\u0275pureFunction3:mg,\u0275\u0275pureFunction4:pg,\u0275\u0275pureFunction5:fg,\u0275\u0275pureFunction6:gg,\u0275\u0275pureFunction7:_g,\u0275\u0275pureFunction8:vg,\u0275\u0275pureFunctionV:bg,\u0275\u0275getCurrentView:Rp,\u0275\u0275restoreView:qt,\u0275\u0275listener:_u,\u0275\u0275projection:Wp,\u0275\u0275syntheticHostProperty:qu,\u0275\u0275syntheticHostListener:vu,\u0275\u0275pipeBind1:Ig,\u0275\u0275pipeBind2:Sg,\u0275\u0275pipeBind3:Dg,\u0275\u0275pipeBind4:Tg,\u0275\u0275pipeBindV:Pg,\u0275\u0275projectionDef:zp,\u0275\u0275hostProperty:Ju,\u0275\u0275property:hu,\u0275\u0275propertyInterpolate:bu,\u0275\u0275propertyInterpolate1:jc,\u0275\u0275propertyInterpolate2:yu,\u0275\u0275propertyInterpolate3:Cu,\u0275\u0275propertyInterpolate4:xu,\u0275\u0275propertyInterpolate5:Mu,\u0275\u0275propertyInterpolate6:Eu,\u0275\u0275propertyInterpolate7:wu,\u0275\u0275propertyInterpolate8:Iu,\u0275\u0275propertyInterpolateV:Su,\u0275\u0275pipe:wg,\u0275\u0275queryRefresh:Fg,\u0275\u0275viewQuery:Bg,\u0275\u0275loadQuery:Ug,\u0275\u0275contentQuery:Ng,\u0275\u0275reference:Lp,\u0275\u0275classMap:Xp,\u0275\u0275classMapInterpolate1:af,\u0275\u0275classMapInterpolate2:lf,\u0275\u0275classMapInterpolate3:cf,\u0275\u0275classMapInterpolate4:df,\u0275\u0275classMapInterpolate5:uf,\u0275\u0275classMapInterpolate6:hf,\u0275\u0275classMapInterpolate7:mf,\u0275\u0275classMapInterpolate8:pf,\u0275\u0275classMapInterpolateV:ff,\u0275\u0275styleMap:As,\u0275\u0275styleMapInterpolate1:gf,\u0275\u0275styleMapInterpolate2:_f,\u0275\u0275styleMapInterpolate3:vf,\u0275\u0275styleMapInterpolate4:bf,\u0275\u0275styleMapInterpolate5:yf,\u0275\u0275styleMapInterpolate6:Cf,\u0275\u0275styleMapInterpolate7:xf,\u0275\u0275styleMapInterpolate8:Mf,\u0275\u0275styleMapInterpolateV:Ef,\u0275\u0275styleProp:Ou,\u0275\u0275stylePropInterpolate1:Wu,\u0275\u0275stylePropInterpolate2:Hu,\u0275\u0275stylePropInterpolate3:$u,\u0275\u0275stylePropInterpolate4:Ku,\u0275\u0275stylePropInterpolate5:Gu,\u0275\u0275stylePropInterpolate6:Zu,\u0275\u0275stylePropInterpolate7:Qu,\u0275\u0275stylePropInterpolate8:Yu,\u0275\u0275stylePropInterpolateV:Xu,\u0275\u0275classProp:Au,\u0275\u0275advance:Gm,\u0275\u0275template:Ap,\u0275\u0275text:sf,\u0275\u0275textInterpolate:Lu,\u0275\u0275textInterpolate1:Wc,\u0275\u0275textInterpolate2:Ru,\u0275\u0275textInterpolate3:Fu,\u0275\u0275textInterpolate4:Bu,\u0275\u0275textInterpolate5:Nu,\u0275\u0275textInterpolate6:Uu,\u0275\u0275textInterpolate7:ju,\u0275\u0275textInterpolate8:Vu,\u0275\u0275textInterpolateV:zu,\u0275\u0275i18n:Zf,\u0275\u0275i18nAttributes:Qf,\u0275\u0275i18nExp:sh,\u0275\u0275i18nStart:rh,\u0275\u0275i18nEnd:oh,\u0275\u0275i18nApply:Yf,\u0275\u0275i18nPostprocess:Xf,\u0275\u0275resolveWindow:Nm,\u0275\u0275resolveDocument:Um,\u0275\u0275resolveBody:jm,\u0275\u0275setComponentScope:ii,\u0275\u0275setNgModuleScope:Fr,\u0275\u0275registerNgModuleType:Cl,\u0275\u0275sanitizeHtml:_m,\u0275\u0275sanitizeStyle:vm,\u0275\u0275sanitizeResourceUrl:wd,\u0275\u0275sanitizeScript:bm,\u0275\u0275sanitizeUrl:Ed,\u0275\u0275sanitizeUrlOrResourceUrl:xm,\u0275\u0275trustConstantHtml:ym,\u0275\u0275trustConstantResourceUrl:Cm,\u0275\u0275validateIframeAttribute:rm,forwardRef:w,resolveForwardRef:g}))();let ml=null;function _C(){ml=null}function xh(t){return!!zn(t)}const Kl=[];let Mh=!1;function $g(){if(!Mh){Mh=!0;try{for(let t=Kl.length-1;t>=0;t--){const{moduleType:i,ngModule:r}=Kl[t];r.declarations&&r.declarations.every(Kg)&&(Kl.splice(t,1),CC(i,r))}}finally{Mh=!1}}}function Kg(t){return Array.isArray(t)?t.every(Kg):!!g(t)}function Gg(t,i={}){Zg(t,i),void 0!==i.id&&Cl(t,i.id),function vC(t,i){Kl.push({moduleType:t,ngModule:i})}(t,i)}function Zg(t,i,r=!1){const c=Ro(i.declarations||It);let p=null;Object.defineProperty(t,Ie,{configurable:!0,get:()=>(null===p&&(p=no().compileNgModule(ts,`ng:///${t.name}/\u0275mod.js`,{type:t,bootstrap:Ro(i.bootstrap||It).map(g),declarations:c.map(g),imports:Ro(i.imports||It).map(g).map(Jg),exports:Ro(i.exports||It).map(g).map(Jg),schemas:i.schemas?Ro(i.schemas):null,id:i.id||null}),p.schemas||(p.schemas=[])),p)});let _=null;Object.defineProperty(t,Ot,{get:()=>{if(null===_){const Q=no();_=Q.compileFactory(ts,`ng:///${t.name}/\u0275fac.js`,{name:t.name,type:t,deps:Po(t),target:Q.FactoryTarget.NgModule,typeArgumentCount:0})}return _},configurable:!1});let O=null;Object.defineProperty(t,te,{get:()=>{if(null===O){const Q={name:t.name,type:t,providers:i.providers||It,imports:[(i.imports||It).map(g),(i.exports||It).map(g)]};O=no().compileInjector(ts,`ng:///${t.name}/\u0275inj.js`,Q)}return O},configurable:!1})}let Jc=new WeakMap,wh=new WeakMap;function yC(){Jc=new WeakMap,wh=new WeakMap,Kl.length=0}function CC(t,i){const r=Ro(i.declarations||It),c=ka(t);r.forEach(p=>{(p=g(p)).hasOwnProperty(se)?Ih(Xi(p),c):!p.hasOwnProperty(we)&&!p.hasOwnProperty(Le)&&(p.ngSelectorScope=t)})}function Ih(t,i){t.directiveDefs=()=>Array.from(i.compilation.directives).map(r=>r.hasOwnProperty(se)?Xi(r):Mn(r)).filter(r=>!!r),t.pipeDefs=()=>Array.from(i.compilation.pipes).map(r=>Ln(r)),t.schemas=i.schemas,t.tView=null}function ka(t){if(xh(t))return function xC(t){const i=zn(t,!0);if(null!==i.transitiveCompileScopes)return i.transitiveCompileScopes;const r={schemas:i.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return qs(i.imports).forEach(c=>{const p=ka(c);p.exported.directives.forEach(_=>r.compilation.directives.add(_)),p.exported.pipes.forEach(_=>r.compilation.pipes.add(_))}),qs(i.declarations).forEach(c=>{Ln(c)?r.compilation.pipes.add(c):r.compilation.directives.add(c)}),qs(i.exports).forEach(c=>{const p=c;if(xh(p)){const _=ka(p);_.exported.directives.forEach(O=>{r.compilation.directives.add(O),r.exported.directives.add(O)}),_.exported.pipes.forEach(O=>{r.compilation.pipes.add(O),r.exported.pipes.add(O)})}else Ln(p)?r.exported.pipes.add(p):r.exported.directives.add(p)}),i.transitiveCompileScopes=r,r}(t);if(Rn(t)){if(null!==(Xi(t)||Mn(t)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([t]),pipes:new Set}};if(null!==Ln(t))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([t])}}}throw new Error(`${t.name} does not have a module def (\u0275mod property)`)}function Jg(t){return function Hg(t){return void 0!==t.ngModule}(t)?t.ngModule:t}let Sh=0;function qg(t,i){let r=null;(function os(t,i){Jl(i)&&(Qs.set(t,i),pa.add(t))})(t,i),t_(t,i),Object.defineProperty(t,se,{get:()=>{if(null===r){const c=no();if(Jl(i)){const De=[`Component '${t.name}' is not resolved:`];throw i.templateUrl&&De.push(` - templateUrl: ${i.templateUrl}`),i.styleUrls&&i.styleUrls.length&&De.push(` - styleUrls: ${JSON.stringify(i.styleUrls)}`),De.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(De.join("\n"))}const p=function gC(){return ml}();let _=i.preserveWhitespaces;void 0===_&&(_=null!==p&&void 0!==p.preserveWhitespaces&&p.preserveWhitespaces);let O=i.encapsulation;void 0===O&&(O=null!==p&&void 0!==p.defaultEncapsulation?p.defaultEncapsulation:wt.Emulated);const Q=i.templateUrl||`ng:///${t.name}/template.html`,ce={...i_(t,i),typeSourceSpan:c.createParseSourceSpan("Component",t.name,Q),template:i.template||"",preserveWhitespaces:_,styles:i.styles||It,animations:i.animations,declarations:[],changeDetection:i.changeDetection,encapsulation:O,interpolation:i.interpolation,viewProviders:i.viewProviders||null};Sh++;try{if(ce.usesInheritance&&n_(t),r=c.compileComponent(ts,Q,ce),i.standalone){const De=Ro(i.imports||It),{directiveDefs:tt,pipeDefs:Ct}=function EC(t,i){let r=null,c=null;return{directiveDefs:()=>{if(null===r){r=[Xi(t)];const O=new Set;for(const Q of i){const ce=g(Q);if(!O.has(ce))if(O.add(ce),zn(ce)){const De=ka(ce);for(const tt of De.exported.directives){const Ct=Xi(tt)||Mn(tt);Ct&&!O.has(tt)&&(O.add(tt),r.push(Ct))}}else{const De=Xi(ce)||Mn(ce);De&&r.push(De)}}}return r},pipeDefs:()=>{if(null===c){c=[];const O=new Set;for(const Q of i){const ce=g(Q);if(!O.has(ce))if(O.add(ce),zn(ce)){const De=ka(ce);for(const tt of De.exported.pipes){const Ct=Ln(tt);Ct&&!O.has(tt)&&(O.add(tt),c.push(Ct))}}else{const De=Ln(ce);De&&c.push(De)}}}return c}}}(t,De);r.directiveDefs=tt,r.pipeDefs=Ct,r.dependencies=()=>De.map(g)}}finally{Sh--}if(0===Sh&&$g(),function wC(t){return void 0!==t.ngSelectorScope}(t)){const De=ka(t.ngSelectorScope);Ih(r,De)}if(i.schemas){if(!i.standalone)throw new Error(`The 'schemas' was specified for the ${X(t)} but is only valid on a component that is standalone.`);r.schemas=i.schemas}else i.standalone&&(r.schemas=[])}return r},configurable:!1})}function Dh(t,i){let r=null;t_(t,i||{}),Object.defineProperty(t,we,{get:()=>{if(null===r){const c=e_(t,i||{});r=no().compileDirective(ts,c.sourceMapUrl,c.metadata)}return r},configurable:!1})}function e_(t,i){const r=t&&t.name,c=`ng:///${r}/\u0275dir.js`,p=no(),_=i_(t,i);return _.typeSourceSpan=p.createParseSourceSpan("Directive",r,c),_.usesInheritance&&n_(t),{metadata:_,sourceMapUrl:c}}function t_(t,i){let r=null;Object.defineProperty(t,Ot,{get:()=>{if(null===r){const c=e_(t,i),p=no();r=p.compileFactory(ts,`ng:///${t.name}/\u0275fac.js`,{name:c.metadata.name,type:c.metadata.type,typeArgumentCount:0,deps:Po(t),target:p.FactoryTarget.Directive})}return r},configurable:!1})}function IC(t){return Object.getPrototypeOf(t.prototype)===Object.prototype}function i_(t,i){const r=Jo(),c=r.ownPropMetadata(t);return{name:t.name,type:t,selector:void 0!==i.selector?i.selector:null,host:i.host||Mt,propMetadata:c,inputs:i.inputs||It,outputs:i.outputs||It,queries:r_(t,c,o_),lifecycle:{usesOnChanges:r.hasLifecycleHook(t,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!IC(t),exportAs:TC(i.exportAs),providers:i.providers||null,viewQueries:r_(t,c,s_),isStandalone:!!i.standalone,hostDirectives:i.hostDirectives?.map(p=>"function"==typeof p?{directive:p}:p)||null}}function n_(t){const i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;)!Mn(r)&&!Xi(r)&&OC(r)&&Dh(r,null),r=Object.getPrototypeOf(r)}function SC(t){return"string"==typeof t?l_(t):g(t)}function DC(t,i){return{propertyName:t,predicate:SC(i.selector),descendants:i.descendants,first:i.first,read:i.read?i.read:null,static:!!i.static,emitDistinctChangesOnly:!!i.emitDistinctChangesOnly}}function r_(t,i,r){const c=[];for(const p in i)if(i.hasOwnProperty(p)){const _=i[p];_.forEach(O=>{if(r(O)){if(!O.selector)throw new Error(`Can't construct a query for the property "${p}" of "${X(t)}" since the query selector wasn't defined.`);if(_.some(a_))throw new Error("Cannot combine @Input decorators with query decorators");c.push(DC(p,O))}})}return c}function TC(t){return void 0===t?null:l_(t)}function o_(t){const i=t.ngMetadataName;return"ContentChild"===i||"ContentChildren"===i}function s_(t){const i=t.ngMetadataName;return"ViewChild"===i||"ViewChildren"===i}function a_(t){return"Input"===t.ngMetadataName}function l_(t){return t.split(",").map(i=>i.trim())}const PC=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function OC(t){const i=Jo();if(PC.some(c=>i.hasLifecycleHook(t,c)))return!0;const r=i.propMetadata(t);for(const c in r){const p=r[c];for(let _=0;_<p.length;_++){const O=p[_],Q=O.ngMetadataName;if(a_(O)||o_(O)||s_(O)||"Output"===Q||"HostBinding"===Q||"HostListener"===Q)return!0}}return!1}function c_(t,i){let r=null,c=null;Object.defineProperty(t,Ot,{get:()=>{if(null===c){const p=d_(t,i),_=no();c=_.compileFactory(ts,`ng:///${p.name}/\u0275fac.js`,{name:p.name,type:p.type,typeArgumentCount:0,deps:Po(t),target:_.FactoryTarget.Pipe})}return c},configurable:!1}),Object.defineProperty(t,Le,{get:()=>{if(null===r){const p=d_(t,i);r=no().compilePipe(ts,`ng:///${p.name}/\u0275pipe.js`,p)}return r},configurable:!1})}function d_(t,i){return{type:t,name:t.name,pipeName:i.name,pure:void 0===i.pure||i.pure,isStandalone:!!i.standalone}}const u_=Do("Directive",(t={})=>t,void 0,void 0,(t,i)=>Dh(t,i)),AC=Do("Component",(t={})=>({changeDetection:Ht.Default,...t}),u_,void 0,(t,i)=>qg(t,i)),kC=Do("Pipe",t=>({pure:!0,...t}),void 0,void 0,(t,i)=>c_(t,i)),LC=bo("Input",t=>({bindingPropertyName:t})),RC=bo("Output",t=>({bindingPropertyName:t})),FC=bo("HostBinding",t=>({hostPropertyName:t})),BC=bo("HostListener",(t,i)=>({eventName:t,args:i})),NC=Do("NgModule",t=>t,void 0,void 0,(t,i)=>Gg(t,i));function qc(...t){}const h_=new rr("Application Initializer");let ed=(()=>{class t{constructor(r){this.appInits=r,this.resolve=qc,this.reject=qc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((c,p)=>{this.resolve=c,this.reject=p})}runInitializers(){if(this.initialized)return;const r=[],c=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let p=0;p<this.appInits.length;p++){const _=this.appInits[p]();if(gu(_))r.push(_);else if(Bp(_)){const O=new Promise((Q,ce)=>{_.subscribe({complete:Q,error:ce})});r.push(O)}}Promise.all(r).then(()=>{c()}).catch(p=>{this.reject(p)}),0===r.length&&c(),this.initialized=!0}}return t.\u0275fac=function(r){return new(r||t)(_i(h_,8))},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const m_=new rr("AppId",{providedIn:"root",factory:p_});function p_(){return`${Th()}${Th()}${Th()}`}const UC={provide:m_,useFactory:p_,deps:[]};function Th(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const f_=new rr("Platform Initializer"),jC=new rr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),VC=new rr("Application Packages Root URL"),zC=new rr("AnimationModuleType");let WC=(()=>{class t{log(r){console.log(r)}warn(r){console.warn(r)}}return t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const td=new rr("LocaleId",{providedIn:"root",factory:()=>Bi(td,be.Optional|be.SkipSelf)||function HC(){return typeof $localize<"u"&&$localize.locale||Aa}()}),$C=new rr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),KC=new rr("Translations"),GC=new rr("TranslationsFormat");var Hs=(()=>((Hs=Hs||{})[Hs.Error=0]="Error",Hs[Hs.Warning=1]="Warning",Hs[Hs.Ignore=2]="Ignore",Hs))();class g_{constructor(i,r){this.ngModuleFactory=i,this.componentFactories=r}}let ZC=(()=>{class t{compileModuleSync(r){return new Zc(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const c=this.compileModuleSync(r),_=qs(zn(r).declarations).reduce((O,Q)=>{const ce=Xi(Q);return ce&&O.push(new el(ce)),O},[]);return new g_(c,_)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}}return t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const __=new rr("compilerOptions");class QC{}function YC(t){Pc(h(t)),og(t).forEach(i=>Op(i))}const v_="ng";let b_=!1;function XC(){b_||(b_=!0,Cs("\u0275setProfiler",Qr),Cs("getDirectiveMetadata",Yy),Cs("getComponent",mh),Cs("getContext",ng),Cs("getListeners",lg),Cs("getOwningComponent",rg),Cs("getHostElement",ph),Cs("getInjector",sg),Cs("getRootComponents",og),Cs("getDirectives",ag),Cs("applyChanges",YC))}function Cs(t,i){if((typeof COMPILED>"u"||!COMPILED)&&Pt){let c=Pt[v_];c||(c=Pt[v_]={}),c[t]=i}}const JC=(()=>Promise.resolve(0))();function Ph(t){typeof Zone>"u"?JC.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class xs{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:c=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ws(!1),this.onMicrotaskEmpty=new Ws(!1),this.onStable=new Ws(!1),this.onError=new Ws(!1),typeof Zone>"u")throw new Z(908,!1);Zone.assertZonePatched();const p=this;p._nesting=0,p._outer=p._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(p._inner=p._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(p._inner=p._inner.fork(Zone.longStackTraceZoneSpec)),p.shouldCoalesceEventChangeDetection=!c&&r,p.shouldCoalesceRunChangeDetection=c,p.lastRequestAnimationFrameId=-1,p.nativeRequestAnimationFrame=function qC(){let t=Pt.requestAnimationFrame,i=Pt.cancelAnimationFrame;if(typeof Zone<"u"&&t&&i){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const c=i[Zone.__symbol__("OriginalDelegate")];c&&(i=c)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function ix(t){const i=()=>{!function tx(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Pt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ah(t),t.isCheckStableRunning=!0,Oh(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ah(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,c,p,_,O,Q)=>{try{return y_(t),r.invokeTask(p,_,O,Q)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===_.type||t.shouldCoalesceRunChangeDetection)&&i(),C_(t)}},onInvoke:(r,c,p,_,O,Q,ce)=>{try{return y_(t),r.invoke(p,_,O,Q,ce)}finally{t.shouldCoalesceRunChangeDetection&&i(),C_(t)}},onHasTask:(r,c,p,_)=>{r.hasTask(p,_),c===p&&("microTask"==_.change?(t._hasPendingMicrotasks=_.microTask,Ah(t),Oh(t)):"macroTask"==_.change&&(t.hasPendingMacrotasks=_.macroTask))},onHandleError:(r,c,p,_)=>(r.handleError(p,_),t.runOutsideAngular(()=>t.onError.emit(_)),!1)})}(p)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!xs.isInAngularZone())throw new Z(909,!1)}static assertNotInAngularZone(){if(xs.isInAngularZone())throw new Z(909,!1)}run(i,r,c){return this._inner.run(i,r,c)}runTask(i,r,c,p){const _=this._inner,O=_.scheduleEventTask("NgZoneEvent: "+p,i,ex,qc,qc);try{return _.runTask(O,r,c)}finally{_.cancelTask(O)}}runGuarded(i,r,c){return this._inner.runGuarded(i,r,c)}runOutsideAngular(i){return this._outer.run(i)}}const ex={};function Oh(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 Ah(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function y_(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function C_(t){t._nesting--,Oh(t)}class x_{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ws,this.onMicrotaskEmpty=new Ws,this.onStable=new Ws,this.onError=new Ws}run(i,r,c){return i.apply(r,c)}runGuarded(i,r,c){return i.apply(r,c)}runOutsideAngular(i){return i()}runTask(i,r,c,p){return i.apply(r,c)}}const M_=new rr(""),E_=new rr("");let kh,nx=(()=>{class t{constructor(r,c,p){this._ngZone=r,this.registry=c,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,kh||(I_(p),p.addToWindow(c)),this._watchAngularEvents(),r.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:()=>{xs.assertNotInAngularZone(),Ph(()=>{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())Ph(()=>{for(;0!==this._callbacks.length;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(c=>!c.updateCb||!c.updateCb(r)||(clearTimeout(c.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,c,p){let _=-1;c&&c>0&&(_=setTimeout(()=>{this._callbacks=this._callbacks.filter(O=>O.timeoutId!==_),r(this._didWork,this.getPendingTasks())},c)),this._callbacks.push({doneCb:r,timeoutId:_,updateCb:p})}whenStable(r,c,p){if(p&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,c,p),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,c,p){return[]}}return t.\u0275fac=function(r){return new(r||t)(_i(xs),_i(w_),_i(E_))},t.\u0275prov=H({token:t,factory:t.\u0275fac}),t})(),w_=(()=>{class t{constructor(){this._applications=new Map}registerApplication(r,c){this._applications.set(r,c)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,c=!0){return kh?.findTestabilityInTree(this,r,c)??null}}return t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function I_(t){kh=t}const ia=!1;let va=null;const Lh=new rr("AllowMultipleToken"),Rh=new rr("PlatformDestroyListeners"),S_=new rr("appBootstrapListener");function D_(t,i,r){const c=new Zc(r);return Promise.resolve(c)}function T_(t){return t.isBoundToModule}class rx{constructor(i,r){this.name=i,this.token=r}}function P_(t){if(va&&!va.get(Lh,!1))throw new Z(400,!1);va=t;const i=t.get(Fh);return O_(t),i}function O_(t){const i=t.get(f_,null);i&&i.forEach(r=>r())}function sx(t){const{rootComponent:i,appProviders:r,platformProviders:c}=t;ia&&void 0!==i&&function Gv(t){if(function Zv(t){if(!Xi(t))throw new Z(906,`The ${X(t)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}(t),!Xi(t).standalone)throw new Z(907,`The ${X(t)} component is not marked as standalone, but Angular expects to have a standalone component here. Please make sure the ${X(t)} component has the \`standalone: true\` flag in the decorator.`)}(i);const p=function ox(t=[]){if(va)return va;const i=L_(t);return va=i,O_(i),i}(c),_=F_("zone.js",R_());return _.run(()=>{const Q=hh([{provide:xs,useValue:_},...r||[]],p,"Environment Injector"),ce=Q.get(kl,null);if(ia&&!ce)throw new Z(402,"No `ErrorHandler` found in the Dependency Injection tree.");let De;_.runOutsideAngular(()=>{De=_.onError.subscribe({next:Ft=>{ce.handleError(Ft)}})});const tt=()=>Q.destroy(),Ct=p.get(Rh);return Ct.add(tt),Q.onDestroy(()=>{De.unsubscribe(),Ct.delete(tt)}),B_(ce,_,()=>{const Ft=Q.get(ed);return Ft.runInitializers(),Ft.donePromise.then(()=>{th(Q.get(td,Aa)||Aa);const ci=Q.get(nd);return void 0!==i&&ci.bootstrap(i),ci})})})}function A_(t,i,r=[]){const c=`Platform: ${i}`,p=new rr(c);return(_=[])=>{let O=id();if(!O||O.injector.get(Lh,!1)){const Q=[...r,..._,{provide:p,useValue:!0}];t?t(Q):P_(L_(Q,c))}return k_()}}function k_(t){const i=id();if(!i)throw new Z(401,!1);return i}function L_(t=[],i){return ga.create({name:i,providers:[{provide:Od,useValue:"platform"},{provide:Rh,useValue:new Set([()=>va=null])},...t]})}function ax(){id()?.destroy()}function id(){return va?.get(Fh)??null}let Fh=(()=>{class t{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,c){const p=F_(c?.ngZone,R_(c)),_=[{provide:xs,useValue:p}];return p.run(()=>{const O=ga.create({providers:_,parent:this.injector,name:r.moduleType.name}),Q=r.create(O),ce=Q.injector.get(kl,null);if(!ce)throw new Z(402,!1);return p.runOutsideAngular(()=>{const De=p.onError.subscribe({next:tt=>{ce.handleError(tt)}});Q.onDestroy(()=>{rd(this._modules,Q),De.unsubscribe()})}),B_(ce,p,()=>{const De=Q.injector.get(ed);return De.runInitializers(),De.donePromise.then(()=>(th(Q.injector.get(td,Aa)||Aa),this._moduleDoBootstrap(Q),Q))})})}bootstrapModule(r,c=[]){const p=N_({},c);return D_(0,0,r).then(_=>this.bootstrapModuleFactory(_,p))}_moduleDoBootstrap(r){const c=r.injector.get(nd);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(p=>c.bootstrap(p));else{if(!r.instance.ngDoBootstrap)throw new Z(-403,!1);r.instance.ngDoBootstrap(c)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Z(404,!1);this._modules.slice().forEach(c=>c.destroy()),this._destroyListeners.forEach(c=>c());const r=this._injector.get(Rh,null);r&&(r.forEach(c=>c()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(r){return new(r||t)(_i(ga))},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function R_(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}function F_(t,i){let r;return r="noop"===t?new x_:("zone.js"===t?void 0:t)||new xs(i),r}function B_(t,i,r){try{const c=r();return gu(c)?c.catch(p=>{throw i.runOutsideAngular(()=>t.handleError(p)),p}):c}catch(c){throw i.runOutsideAngular(()=>t.handleError(c)),c}}function N_(t,i){return Array.isArray(i)?i.reduce(N_,t):{...t,...i}}let nd=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(r,c,p){this._zone=r,this._injector=c,this._exceptionHandler=p,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const _=new o.y(Q=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Q.next(this._stable),Q.complete()})}),O=new o.y(Q=>{let ce;this._zone.runOutsideAngular(()=>{ce=this._zone.onStable.subscribe(()=>{xs.assertNotInAngularZone(),Ph(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Q.next(!0))})})});const De=this._zone.onUnstable.subscribe(()=>{xs.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Q.next(!1)}))});return()=>{ce.unsubscribe(),De.unsubscribe()}});this.isStable=(0,l.T)(_,O.pipe((0,v.B)()))}bootstrap(r,c){ia&&this.warnIfDestroyed();const p=r instanceof Ec;if(!this._injector.get(ed).done){const Kt="Cannot bootstrap as there are still asynchronous initializers running."+(!p&&Rn(r)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new Z(405,ia&&Kt)}let O;O=p?r:this._injector.get(Ol).resolveComponentFactory(r),this.componentTypes.push(O.componentType);const Q=T_(O)?void 0:this._injector.get(hl),De=O.create(ga.NULL,[],c||O.selector,Q),tt=De.location.nativeElement,Ct=De.injector.get(M_,null);return Ct?.registerApplication(tt),De.onDestroy(()=>{this.detachView(De.hostView),rd(this.components,De),Ct?.unregisterApplication(tt)}),this._loadComponent(De),De}tick(){if(ia&&this.warnIfDestroyed(),this._runningTick)throw new Z(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(r))}finally{this._runningTick=!1}}attachView(r){ia&&this.warnIfDestroyed();const c=r;this._views.push(c),c.attachToAppRef(this)}detachView(r){ia&&this.warnIfDestroyed();const c=r;rd(this._views,c),c.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const c=this._injector.get(S_,[]);c.push(...this._bootstrapListeners),c.forEach(p=>p(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return ia&&this.warnIfDestroyed(),this._destroyListeners.push(r),()=>rd(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new Z(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){ia&&this._destroyed&&console.warn(le(406,"This instance of the `ApplicationRef` has already been destroyed."))}}return t.\u0275fac=function(r){return new(r||t)(_i(xs),_i(Da),_i(kl))},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function rd(t,i){const r=t.indexOf(i);r>-1&&t.splice(r,1)}function cx(){return!1}function dx(){}function ux(t){const i=ic(t);if(!i)throw j_(t);return new Zc(i)}function hx(t){const i=ic(t);if(!i)throw j_(t);return i}function j_(t){return new Error(`No module with ID ${t} loaded`)}let V_=(()=>{class t{}return t.__NG_ELEMENT_ID__=z_,t})();function z_(t){return function mx(t,i,r){if(dr(t)&&!r){const c=Dt(t.index,i);return new qa(c,c)}return 47&t.type?new qa(i[Ei],i):null}(Ai(),Ve(),16==(16&t))}class W_ extends V_{}class px extends W_{}class fx{constructor(i,r){this.name=i,this.callback=r}}function gx(t){return t.map(i=>i.nativeElement)}class Bh{constructor(i){this.nativeNode=i}get parent(){const i=this.nativeNode.parentNode;return i?new Gl(i):null}get injector(){return sg(this.nativeNode)}get componentInstance(){const i=this.nativeNode;return i&&(mh(i)||rg(i))}get context(){return mh(this.nativeNode)||ng(this.nativeNode)}get listeners(){return lg(this.nativeNode).filter(i=>"dom"===i.type)}get references(){return function Xy(t){const i=z(t);if(null===i)return{};if(void 0===i.localRefs){const r=i.lView;if(null===r)return{};i.localRefs=function tn(t,i){const r=t[bi].data[i];if(r&&r.localNames){const c={};let p=r.index+1;for(let _=0;_<r.localNames.length;_+=2)c[r.localNames[_]]=t[p],p++;return c}return null}(r,i.nodeIndex)}return i.localRefs||{}}(this.nativeNode)}get providerTokens(){return function Qy(t){const i=z(t),r=i?i.lView:null;if(null===r)return[];const c=r[bi],p=c.data[i.nodeIndex],_=[],Q=p.directiveEnd;for(let ce=1048575&p.providerIndexes;ce<Q;ce++){let De=c.data[ce];qy(De)&&(De=De.type),_.push(De)}return _}(this.nativeNode)}}class Gl extends Bh{constructor(i){super(i)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const i=z(this.nativeNode),r=i?i.lView:null;return null!==r?r[bi].data[i.nodeIndex].value:this.nativeNode.nodeName}get properties(){const i=z(this.nativeNode),r=i?i.lView:null;if(null===r)return{};const c=r[bi].data,p=c[i.nodeIndex],_={};return function _x(t,i){if(t){let r=Object.getPrototypeOf(t);const c=Node.prototype;for(;null!==r&&r!==c;){const p=Object.getOwnPropertyDescriptors(r);for(let _ in p)if(!_.startsWith("__")&&!_.startsWith("on")){const O=t[_];vx(O)&&(i[_]=O)}r=Object.getPrototypeOf(r)}}}(this.nativeElement,_),function bx(t,i,r,c){let p=i.propertyBindings;if(null!==p)for(let _=0;_<p.length;_++){const O=p[_],ce=c[O].split("\ufffd"),De=ce[0];if(ce.length>1){let tt=ce[1];for(let Ct=1;Ct<ce.length-1;Ct++)tt+=q(r[O+Ct-1])+ce[Ct+1];t[De]=tt}else t[De]=r[O]}}(_,p,r,c),_}get attributes(){const i={},r=this.nativeElement;if(!r)return i;const c=z(r),p=c?c.lView:null;if(null===p)return{};const _=p[bi].data[c.nodeIndex].attrs,O=[];if(_){let Q=0;for(;Q<_.length;){const ce=_[Q];if("string"!=typeof ce)break;i[ce]=_[Q+1],O.push(ce.toLowerCase()),Q+=2}}for(const Q of r.attributes)O.includes(Q.name)||(i[Q.name]=Q.value);return i}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const i={},c=this.nativeElement.className;return("string"!=typeof c?c.baseVal.split(" "):c.split(" ")).forEach(_=>i[_]=!0),i}get childNodes(){const i=this.nativeNode.childNodes,r=[];for(let c=0;c<i.length;c++)r.push(pl(i[c]));return r}get children(){const i=this.nativeElement;if(!i)return[];const r=i.children,c=[];for(let p=0;p<r.length;p++)c.push(pl(r[p]));return c}query(i){return this.queryAll(i)[0]||null}queryAll(i){const r=[];return H_(this,i,r,!0),r}queryAllNodes(i){const r=[];return H_(this,i,r,!1),r}triggerEventHandler(i,r){const c=this.nativeNode,p=[];this.listeners.forEach(_=>{if(_.name===i){const O=_.callback;O.call(c,r),p.push(O)}}),"function"==typeof c.eventListeners&&c.eventListeners(i).forEach(_=>{if(-1!==_.toString().indexOf("__ngUnwrap__")){const O=_("__ngUnwrap__");return-1===p.indexOf(O)&&O.call(c,r)}})}}function vx(t){return"string"==typeof t||"boolean"==typeof t||"number"==typeof t||null===t}function H_(t,i,r,c){const p=z(t.nativeNode),_=p?p.lView:null;null!==_?La(_[bi].data[p.nodeIndex],_,i,r,c,t.nativeNode):Uh(t.nativeNode,i,r,c)}function La(t,i,r,c,p,_){const O=function ae(t,i){const r=null===t?-1:t.index;return-1!==r?jn(i[r]):null}(t,i);if(11&t.type){if(Nh(O,r,c,p,_),dr(t)){const ce=Dt(t.index,i);ce&&ce[bi].firstChild&&La(ce[bi].firstChild,ce,r,c,p,_)}else t.child&&La(t.child,i,r,c,p,_),O&&Uh(O,r,c,p);const Q=i[t.index];bn(Q)&&$_(Q,r,c,p,_)}else if(4&t.type){const Q=i[t.index];Nh(Q[dn],r,c,p,_),$_(Q,r,c,p,_)}else if(16&t.type){const Q=i[Ei],De=Q[pn].projection[t.projection];if(Array.isArray(De))for(let tt of De)Nh(tt,r,c,p,_);else if(De){const tt=Q[ji];La(tt[bi].data[De.index],tt,r,c,p,_)}}else t.child&&La(t.child,i,r,c,p,_);if(_!==O){const Q=2&t.flags?t.projectionNext:t.next;Q&&La(Q,i,r,c,p,_)}}function $_(t,i,r,c,p){for(let _=Tn;_<t.length;_++){const O=t[_],Q=O[bi].firstChild;Q&&La(Q,O,i,r,c,p)}}function Nh(t,i,r,c,p){if(p!==t){const _=pl(t);if(!_)return;(c&&_ instanceof Gl&&i(_)&&-1===r.indexOf(_)||!c&&i(_)&&-1===r.indexOf(_))&&r.push(_)}}function Uh(t,i,r,c){const p=t.childNodes,_=p.length;for(let O=0;O<_;O++){const Q=p[O],ce=pl(Q);ce&&((c&&ce instanceof Gl&&i(ce)&&-1===r.indexOf(ce)||!c&&i(ce)&&-1===r.indexOf(ce))&&r.push(ce),Uh(Q,i,r,c))}}const Vh="__ng_debug__";function pl(t){return t instanceof Node?(t.hasOwnProperty(Vh)||(t[Vh]=t.nodeType==Node.ELEMENT_NODE?new Gl(t):new Bh(t)),t[Vh]):null}function yx(t){return null}class K_{constructor(){}supports(i){return Lc(i)}create(i){return new G_(i)}}const Cx=(t,i)=>i;class G_{constructor(i){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=i||Cx}forEachItem(i){let r;for(r=this._itHead;null!==r;r=r._next)i(r)}forEachOperation(i){let r=this._itHead,c=this._removalsHead,p=0,_=null;for(;r||c;){const O=!c||r&&r.currentIndex<Q_(c,p,_)?r:c,Q=Q_(O,p,_),ce=O.currentIndex;if(O===c)p--,c=c._nextRemoved;else if(r=r._next,null==O.previousIndex)p++;else{_||(_=[]);const De=Q-p,tt=ce-p;if(De!=tt){for(let Ft=0;Ft<De;Ft++){const Kt=Ft<_.length?_[Ft]:_[Ft]=0,ci=Kt+Ft;tt<=ci&&ci<De&&(_[Ft]=Kt+1)}_[O.previousIndex]=tt-De}}Q!==ce&&i(O,Q,ce)}}forEachPreviousItem(i){let r;for(r=this._previousItHead;null!==r;r=r._nextPrevious)i(r)}forEachAddedItem(i){let r;for(r=this._additionsHead;null!==r;r=r._nextAdded)i(r)}forEachMovedItem(i){let r;for(r=this._movesHead;null!==r;r=r._nextMoved)i(r)}forEachRemovedItem(i){let r;for(r=this._removalsHead;null!==r;r=r._nextRemoved)i(r)}forEachIdentityChange(i){let r;for(r=this._identityChangesHead;null!==r;r=r._nextIdentityChange)i(r)}diff(i){if(null==i&&(i=[]),!Lc(i))throw new Z(900,!1);return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let p,_,O,r=this._itHead,c=!1;if(Array.isArray(i)){this.length=i.length;for(let Q=0;Q<this.length;Q++)_=i[Q],O=this._trackByFn(Q,_),null!==r&&Object.is(r.trackById,O)?(c&&(r=this._verifyReinsertion(r,_,O,Q)),Object.is(r.item,_)||this._addIdentityChange(r,_)):(r=this._mismatch(r,_,O,Q),c=!0),r=r._next}else p=0,function y0(t,i){if(Array.isArray(t))for(let r=0;r<t.length;r++)i(t[r]);else{const r=t[Symbol.iterator]();let c;for(;!(c=r.next()).done;)i(c.value)}}(i,Q=>{O=this._trackByFn(p,Q),null!==r&&Object.is(r.trackById,O)?(c&&(r=this._verifyReinsertion(r,Q,O,p)),Object.is(r.item,Q)||this._addIdentityChange(r,Q)):(r=this._mismatch(r,Q,O,p),c=!0),r=r._next,p++}),this.length=p;return this._truncate(r),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,r,c,p){let _;return null===i?_=this._itTail:(_=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null))?(Object.is(i.item,r)||this._addIdentityChange(i,r),this._reinsertAfter(i,_,p)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(c,p))?(Object.is(i.item,r)||this._addIdentityChange(i,r),this._moveAfter(i,_,p)):i=this._addAfter(new xx(r,c),_,p),i}_verifyReinsertion(i,r,c,p){let _=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null);return null!==_?i=this._reinsertAfter(_,i._prev,p):i.currentIndex!=p&&(i.currentIndex=p,this._addToMoves(i,p)),i}_truncate(i){for(;null!==i;){const r=i._next;this._addToRemovals(this._unlink(i)),i=r}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(i,r,c){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const p=i._prevRemoved,_=i._nextRemoved;return null===p?this._removalsHead=_:p._nextRemoved=_,null===_?this._removalsTail=p:_._prevRemoved=p,this._insertAfter(i,r,c),this._addToMoves(i,c),i}_moveAfter(i,r,c){return this._unlink(i),this._insertAfter(i,r,c),this._addToMoves(i,c),i}_addAfter(i,r,c){return this._insertAfter(i,r,c),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,r,c){const p=null===r?this._itHead:r._next;return i._next=p,i._prev=r,null===p?this._itTail=i:p._prev=i,null===r?this._itHead=i:r._next=i,null===this._linkedRecords&&(this._linkedRecords=new Z_),this._linkedRecords.put(i),i.currentIndex=c,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const r=i._prev,c=i._next;return null===r?this._itHead=c:r._next=c,null===c?this._itTail=r:c._prev=r,i}_addToMoves(i,r){return i.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Z_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,r){return i.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class xx{constructor(i,r){this.item=i,this.trackById=r,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 Mx{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,r){let c;for(c=this._head;null!==c;c=c._nextDup)if((null===r||r<=c.currentIndex)&&Object.is(c.trackById,i))return c;return null}remove(i){const r=i._prevDup,c=i._nextDup;return null===r?this._head=c:r._nextDup=c,null===c?this._tail=r:c._prevDup=r,null===this._head}}class Z_{constructor(){this.map=new Map}put(i){const r=i.trackById;let c=this.map.get(r);c||(c=new Mx,this.map.set(r,c)),c.add(i)}get(i,r){const p=this.map.get(i);return p?p.get(i,r):null}remove(i){const r=i.trackById;return this.map.get(r).remove(i)&&this.map.delete(r),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Q_(t,i,r){const c=t.previousIndex;if(null===c)return c;let p=0;return r&&c<r.length&&(p=r[c]),c+i+p}class Y_{constructor(){}supports(i){return i instanceof Map||tu(i)}create(){return new Ex}}class Ex{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(i){let r;for(r=this._mapHead;null!==r;r=r._next)i(r)}forEachPreviousItem(i){let r;for(r=this._previousMapHead;null!==r;r=r._nextPrevious)i(r)}forEachChangedItem(i){let r;for(r=this._changesHead;null!==r;r=r._nextChanged)i(r)}forEachAddedItem(i){let r;for(r=this._additionsHead;null!==r;r=r._nextAdded)i(r)}forEachRemovedItem(i){let r;for(r=this._removalsHead;null!==r;r=r._nextRemoved)i(r)}diff(i){if(i){if(!(i instanceof Map||tu(i)))throw new Z(900,!1)}else i=new Map;return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let r=this._mapHead;if(this._appendAfter=null,this._forEach(i,(c,p)=>{if(r&&r.key===p)this._maybeAddToChanges(r,c),this._appendAfter=r,r=r._next;else{const _=this._getOrCreateRecordForKey(p,c);r=this._insertBeforeOrAppend(r,_)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let c=r;null!==c;c=c._nextRemoved)c===this._mapHead&&(this._mapHead=null),this._records.delete(c.key),c._nextRemoved=c._next,c.previousValue=c.currentValue,c.currentValue=null,c._prev=null,c._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,r){if(i){const c=i._prev;return r._next=i,r._prev=c,i._prev=r,c&&(c._next=r),i===this._mapHead&&(this._mapHead=r),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(i,r){if(this._records.has(i)){const p=this._records.get(i);this._maybeAddToChanges(p,r);const _=p._prev,O=p._next;return _&&(_._next=O),O&&(O._prev=_),p._next=null,p._prev=null,p}const c=new wx(i);return this._records.set(i,c),c.currentValue=r,this._addToAdditions(c),c}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,r){Object.is(r,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=r,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,r){i instanceof Map?i.forEach(r):Object.keys(i).forEach(c=>r(i[c],c))}}class wx{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function X_(){return new zh([new K_])}let zh=(()=>{class t{constructor(r){this.factories=r}static create(r,c){if(null!=c){const p=c.factories.slice();r=r.concat(p)}return new t(r)}static extend(r){return{provide:t,useFactory:c=>t.create(r,c||X_()),deps:[[t,new pr,new Oi]]}}find(r){const c=this.factories.find(p=>p.supports(r));if(null!=c)return c;throw new Z(901,!1)}}return t.\u0275prov=H({token:t,providedIn:"root",factory:X_}),t})();function J_(){return new Wh([new Y_])}let Wh=(()=>{class t{constructor(r){this.factories=r}static create(r,c){if(c){const p=c.factories.slice();r=r.concat(p)}return new t(r)}static extend(r){return{provide:t,useFactory:c=>t.create(r,c||J_()),deps:[[t,new pr,new Oi]]}}find(r){const c=this.factories.find(p=>p.supports(r));if(c)return c;throw new Z(901,!1)}}return t.\u0275prov=H({token:t,providedIn:"root",factory:J_}),t})();const Ix=[new Y_],Dx=new zh([new K_]),Tx=new Wh(Ix),Px=A_(null,"core",[]);let Ox=(()=>{class t{constructor(r){}}return t.\u0275fac=function(r){return new(r||t)(_i(nd))},t.\u0275mod=ir({type:t}),t.\u0275inj=He({}),t})();function Ax(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function kx(t){return no().compileDirectiveDeclaration(ts,`ng:///${t.type.name}/\u0275fac.js`,t)}function Lx(t){cg(t.type,t.decorators,t.ctorParameters??null,t.propDecorators??null)}function Rx(t){return no().compileComponentDeclaration(ts,`ng:///${t.type.name}/\u0275cmp.js`,t)}function Fx(t){return no(function Bx(t){switch(t){case zr.Directive:return"directive";case zr.Component:return"component";case zr.Injectable:return"injectable";case zr.Pipe:return"pipe";case zr.NgModule:return"NgModule"}}(t.target)).compileFactoryDeclaration(ts,`ng:///${t.type.name}/\u0275fac.js`,t)}function Nx(t){return no().compileInjectableDeclaration(ts,`ng:///${t.type.name}/\u0275prov.js`,t)}function Ux(t){return no().compileInjectorDeclaration(ts,`ng:///${t.type.name}/\u0275inj.js`,t)}function jx(t){return no().compileNgModuleDeclaration(ts,`ng:///${t.type.name}/\u0275mod.js`,t)}function Vx(t){return no().compilePipeDeclaration(ts,`ng:///${t.type.name}/\u0275pipe.js`,t)}function zx(t,i){const r=Xi(t),c=i.elementInjector||Mc();return new el(r).create(c,i.projectableNodes,i.hostElement,i.environmentInjector)}function Wx(t){const i=Xi(t);if(!i)return null;const r=new el(i);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return i.standalone}}}},4006:(G,P,a)=>{"use strict";a.d(P,{Cf:()=>le,EJ:()=>Kr,F:()=>pn,Fj:()=>S,JJ:()=>R,JL:()=>be,JU:()=>b,Kr:()=>Gr,On:()=>je,Q7:()=>co,QS:()=>fn,UX:()=>uo,Wl:()=>x,YN:()=>Pr,Zs:()=>Ur,_:()=>Tn,_Y:()=>Je,a5:()=>Qe,c5:()=>Ye,kI:()=>K,nD:()=>_o,on:()=>_r,sg:()=>$n,u:()=>or,u5:()=>Wi,wV:()=>li});var n=a(4650),e=a(6895),o=a(5254),l=a(567),v=a(4850);let d=(()=>{class ve{constructor(y,J){this._renderer=y,this._elementRef=J,this.onChange=N=>{},this.onTouched=()=>{}}setProperty(y,J){this._renderer.setProperty(this._elementRef.nativeElement,y,J)}registerOnTouched(y){this.onTouched=y}registerOnChange(y){this.onChange=y}setDisabledState(y){this.setProperty("disabled",y)}}return ve.\u0275fac=function(y){return new(y||ve)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve}),ve})(),u=(()=>{class ve extends d{}return ve.\u0275fac=function(){let pe;return function(J){return(pe||(pe=n.\u0275\u0275getInheritedFactory(ve)))(J||ve)}}(),ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,features:[n.\u0275\u0275InheritDefinitionFeature]}),ve})();const b=new n.InjectionToken("NgValueAccessor"),C={provide:b,useExisting:(0,n.forwardRef)(()=>x),multi:!0};let x=(()=>{class ve extends u{writeValue(y){this.setProperty("checked",y)}}return ve.\u0275fac=function(){let pe;return function(J){return(pe||(pe=n.\u0275\u0275getInheritedFactory(ve)))(J||ve)}}(),ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(y,J){1&y&&n.\u0275\u0275listener("change",function(de){return J.onChange(de.target.checked)})("blur",function(){return J.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([C]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();const w={provide:b,useExisting:(0,n.forwardRef)(()=>S),multi:!0},f=new n.InjectionToken("CompositionEventMode");let S=(()=>{class ve extends d{constructor(y,J,N){super(y,J),this._compositionMode=N,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function g(){const ve=(0,e.\u0275getDOM)()?(0,e.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(ve.toLowerCase())}())}writeValue(y){this.setProperty("value",y??"")}_handleInput(y){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(y)}_compositionStart(){this._composing=!0}_compositionEnd(y){this._composing=!1,this._compositionMode&&this.onChange(y)}}return ve.\u0275fac=function(y){return new(y||ve)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(f,8))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,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(y,J){1&y&&n.\u0275\u0275listener("input",function(de){return J._handleInput(de.target.value)})("blur",function(){return J.onTouched()})("compositionstart",function(){return J._compositionStart()})("compositionend",function(de){return J._compositionEnd(de.target.value)})},features:[n.\u0275\u0275ProvidersFeature([w]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();const j=!1;function B(ve){return null==ve||("string"==typeof ve||Array.isArray(ve))&&0===ve.length}function Z(ve){return null!=ve&&"number"==typeof ve.length}const le=new n.InjectionToken("NgValidators"),q=new n.InjectionToken("NgAsyncValidators"),X=/^(?=.{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 K{static min(pe){return function U(ve){return pe=>{if(B(pe.value)||B(ve))return null;const y=parseFloat(pe.value);return!isNaN(y)&&y<ve?{min:{min:ve,actual:pe.value}}:null}}(pe)}static max(pe){return function me(ve){return pe=>{if(B(pe.value)||B(ve))return null;const y=parseFloat(pe.value);return!isNaN(y)&&y>ve?{max:{max:ve,actual:pe.value}}:null}}(pe)}static required(pe){return xe(pe)}static requiredTrue(pe){return ne(pe)}static email(pe){return Ze(pe)}static minLength(pe){return function Oe(ve){return pe=>B(pe.value)||!Z(pe.value)?null:pe.value.length<ve?{minlength:{requiredLength:ve,actualLength:pe.value.length}}:null}(pe)}static maxLength(pe){return nt(pe)}static pattern(pe){return qe(pe)}static nullValidator(pe){return null}static compose(pe){return Qt(pe)}static composeAsync(pe){return lt(pe)}}function xe(ve){return B(ve.value)?{required:!0}:null}function ne(ve){return!0===ve.value?null:{required:!0}}function Ze(ve){return B(ve.value)||X.test(ve.value)?null:{email:!0}}function nt(ve){return pe=>Z(pe.value)&&pe.value.length>ve?{maxlength:{requiredLength:ve,actualLength:pe.value.length}}:null}function qe(ve){if(!ve)return ct;let pe,y;return"string"==typeof ve?(y="","^"!==ve.charAt(0)&&(y+="^"),y+=ve,"$"!==ve.charAt(ve.length-1)&&(y+="$"),pe=new RegExp(y)):(y=ve.toString(),pe=ve),J=>{if(B(J.value))return null;const N=J.value;return pe.test(N)?null:{pattern:{requiredPattern:y,actualValue:N}}}}function ct(ve){return null}function ot(ve){return null!=ve}function dt(ve){const pe=(0,n.\u0275isPromise)(ve)?(0,o.D)(ve):ve;if(j&&!(0,n.\u0275isObservable)(pe)){let y="Expected async validator to return Promise or Observable.";throw"object"==typeof ve&&(y+=" Are you using a synchronous validator where an async validator is expected?"),new n.\u0275RuntimeError(-1101,y)}return pe}function jt(ve){let pe={};return ve.forEach(y=>{pe=null!=y?{...pe,...y}:pe}),0===Object.keys(pe).length?null:pe}function zt(ve,pe){return pe.map(y=>y(ve))}function mi(ve){return ve.map(pe=>function ti(ve){return!ve.validate}(pe)?pe:y=>pe.validate(y))}function Qt(ve){if(!ve)return null;const pe=ve.filter(ot);return 0==pe.length?null:function(y){return jt(zt(y,pe))}}function Jt(ve){return null!=ve?Qt(mi(ve)):null}function lt(ve){if(!ve)return null;const pe=ve.filter(ot);return 0==pe.length?null:function(y){const J=zt(y,pe).map(dt);return(0,l.D)(J).pipe((0,v.U)(jt))}}function _t(ve){return null!=ve?lt(mi(ve)):null}function Fe(ve,pe){return null===ve?[pe]:Array.isArray(ve)?[...ve,pe]:[ve,pe]}function Ae(ve){return ve._rawValidators}function H(ve){return ve._rawAsyncValidators}function W(ve){return ve?Array.isArray(ve)?ve:[ve]:[]}function He(ve,pe){return Array.isArray(ve)?ve.includes(pe):ve===pe}function Te(ve,pe){const y=W(pe);return W(ve).forEach(N=>{He(y,N)||y.push(N)}),y}function Be(ve,pe){return W(pe).filter(y=>!He(ve,y))}class mt{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(pe){this._rawValidators=pe||[],this._composedValidatorFn=Jt(this._rawValidators)}_setAsyncValidators(pe){this._rawAsyncValidators=pe||[],this._composedAsyncValidatorFn=_t(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(pe){this._onDestroyCallbacks.push(pe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(pe=>pe()),this._onDestroyCallbacks=[]}reset(pe){this.control&&this.control.reset(pe)}hasError(pe,y){return!!this.control&&this.control.hasError(pe,y)}getError(pe,y){return this.control?this.control.getError(pe,y):null}}class Pe extends mt{get formDirective(){return null}get path(){return null}}class Qe extends mt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ut{constructor(pe){this._cd=pe}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let R=(()=>{class ve extends ut{constructor(y){super(y)}}return ve.\u0275fac=function(y){return new(y||ve)(n.\u0275\u0275directiveInject(Qe,2))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(y,J){2&y&&n.\u0275\u0275classProp("ng-untouched",J.isUntouched)("ng-touched",J.isTouched)("ng-pristine",J.isPristine)("ng-dirty",J.isDirty)("ng-valid",J.isValid)("ng-invalid",J.isInvalid)("ng-pending",J.isPending)},features:[n.\u0275\u0275InheritDefinitionFeature]}),ve})(),be=(()=>{class ve extends ut{constructor(y){super(y)}}return ve.\u0275fac=function(y){return new(y||ve)(n.\u0275\u0275directiveInject(Pe,10))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(y,J){2&y&&n.\u0275\u0275classProp("ng-untouched",J.isUntouched)("ng-touched",J.isTouched)("ng-pristine",J.isPristine)("ng-dirty",J.isDirty)("ng-valid",J.isValid)("ng-invalid",J.isInvalid)("ng-pending",J.isPending)("ng-submitted",J.isSubmitted)},features:[n.\u0275\u0275InheritDefinitionFeature]}),ve})();function Xt(ve,pe){return ve?`with name: '${pe}'`:`at index: ${pe}`}const Zt=!1,Ci="VALID",_i="INVALID",pi="PENDING",Bi="DISABLED";function ze(ve){return(Re(ve)?ve.validators:ve)||null}function re(ve,pe){return(Re(pe)?pe.asyncValidators:ve)||null}function Re(ve){return null!=ve&&!Array.isArray(ve)&&"object"==typeof ve}function We(ve,pe,y){const J=ve.controls;if(!(pe?Object.keys(J):J).length)throw new n.\u0275RuntimeError(1e3,Zt?function ui(ve){return`\n    There are no form controls registered with this ${ve?"group":"array"} yet. If you're using ngModel,\n    you may want to check next tick (e.g. use setTimeout).\n  `}(pe):"");if(!J[y])throw new n.\u0275RuntimeError(1001,Zt?function vt(ve,pe){return`Cannot find form control ${Xt(ve,pe)}`}(pe,y):"")}function xt(ve,pe,y){ve._forEachChild((J,N)=>{if(void 0===y[N])throw new n.\u0275RuntimeError(1002,Zt?function Ut(ve,pe){return`Must supply a value for form control ${Xt(ve,pe)}`}(pe,N):"")})}class Ht{constructor(pe,y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(pe),this._assignAsyncValidators(y)}get validator(){return this._composedValidatorFn}set validator(pe){this._rawValidators=this._composedValidatorFn=pe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(pe){this._rawAsyncValidators=this._composedAsyncValidatorFn=pe}get parent(){return this._parent}get valid(){return this.status===Ci}get invalid(){return this.status===_i}get pending(){return this.status==pi}get disabled(){return this.status===Bi}get enabled(){return this.status!==Bi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(pe){this._assignValidators(pe)}setAsyncValidators(pe){this._assignAsyncValidators(pe)}addValidators(pe){this.setValidators(Te(pe,this._rawValidators))}addAsyncValidators(pe){this.setAsyncValidators(Te(pe,this._rawAsyncValidators))}removeValidators(pe){this.setValidators(Be(pe,this._rawValidators))}removeAsyncValidators(pe){this.setAsyncValidators(Be(pe,this._rawAsyncValidators))}hasValidator(pe){return He(this._rawValidators,pe)}hasAsyncValidator(pe){return He(this._rawAsyncValidators,pe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(pe={}){this.touched=!0,this._parent&&!pe.onlySelf&&this._parent.markAsTouched(pe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(pe=>pe.markAllAsTouched())}markAsUntouched(pe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(y=>{y.markAsUntouched({onlySelf:!0})}),this._parent&&!pe.onlySelf&&this._parent._updateTouched(pe)}markAsDirty(pe={}){this.pristine=!1,this._parent&&!pe.onlySelf&&this._parent.markAsDirty(pe)}markAsPristine(pe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(y=>{y.markAsPristine({onlySelf:!0})}),this._parent&&!pe.onlySelf&&this._parent._updatePristine(pe)}markAsPending(pe={}){this.status=pi,!1!==pe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!pe.onlySelf&&this._parent.markAsPending(pe)}disable(pe={}){const y=this._parentMarkedDirty(pe.onlySelf);this.status=Bi,this.errors=null,this._forEachChild(J=>{J.disable({...pe,onlySelf:!0})}),this._updateValue(),!1!==pe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...pe,skipPristineCheck:y}),this._onDisabledChange.forEach(J=>J(!0))}enable(pe={}){const y=this._parentMarkedDirty(pe.onlySelf);this.status=Ci,this._forEachChild(J=>{J.enable({...pe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:pe.emitEvent}),this._updateAncestors({...pe,skipPristineCheck:y}),this._onDisabledChange.forEach(J=>J(!1))}_updateAncestors(pe){this._parent&&!pe.onlySelf&&(this._parent.updateValueAndValidity(pe),pe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(pe){this._parent=pe}getRawValue(){return this.value}updateValueAndValidity(pe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ci||this.status===pi)&&this._runAsyncValidator(pe.emitEvent)),!1!==pe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!pe.onlySelf&&this._parent.updateValueAndValidity(pe)}_updateTreeValidity(pe={emitEvent:!0}){this._forEachChild(y=>y._updateTreeValidity(pe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:pe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Bi:Ci}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(pe){if(this.asyncValidator){this.status=pi,this._hasOwnPendingAsyncValidator=!0;const y=dt(this.asyncValidator(this));this._asyncValidationSubscription=y.subscribe(J=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(J,{emitEvent:pe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(pe,y={}){this.errors=pe,this._updateControlsErrors(!1!==y.emitEvent)}get(pe){let y=pe;return null==y||(Array.isArray(y)||(y=y.split(".")),0===y.length)?null:y.reduce((J,N)=>J&&J._find(N),this)}getError(pe,y){const J=y?this.get(y):this;return J&&J.errors?J.errors[pe]:null}hasError(pe,y){return!!this.getError(pe,y)}get root(){let pe=this;for(;pe._parent;)pe=pe._parent;return pe}_updateControlsErrors(pe){this.status=this._calculateStatus(),pe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(pe)}_initObservables(){this.valueChanges=new n.EventEmitter,this.statusChanges=new n.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Bi:this.errors?_i:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(pi)?pi:this._anyControlsHaveStatus(_i)?_i:Ci}_anyControlsHaveStatus(pe){return this._anyControls(y=>y.status===pe)}_anyControlsDirty(){return this._anyControls(pe=>pe.dirty)}_anyControlsTouched(){return this._anyControls(pe=>pe.touched)}_updatePristine(pe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!pe.onlySelf&&this._parent._updatePristine(pe)}_updateTouched(pe={}){this.touched=this._anyControlsTouched(),this._parent&&!pe.onlySelf&&this._parent._updateTouched(pe)}_registerOnCollectionChange(pe){this._onCollectionChange=pe}_setUpdateStrategy(pe){Re(pe)&&null!=pe.updateOn&&(this._updateOn=pe.updateOn)}_parentMarkedDirty(pe){return!pe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(pe){return null}_assignValidators(pe){this._rawValidators=Array.isArray(pe)?pe.slice():pe,this._composedValidatorFn=function ue(ve){return Array.isArray(ve)?Jt(ve):ve||null}(this._rawValidators)}_assignAsyncValidators(pe){this._rawAsyncValidators=Array.isArray(pe)?pe.slice():pe,this._composedAsyncValidatorFn=function Ee(ve){return Array.isArray(ve)?_t(ve):ve||null}(this._rawAsyncValidators)}}class wt extends Ht{constructor(pe,y,J){super(ze(y),re(J,y)),this.controls=pe,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(pe,y){return this.controls[pe]?this.controls[pe]:(this.controls[pe]=y,y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange),y)}addControl(pe,y,J={}){this.registerControl(pe,y),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}removeControl(pe,y={}){this.controls[pe]&&this.controls[pe]._registerOnCollectionChange(()=>{}),delete this.controls[pe],this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}setControl(pe,y,J={}){this.controls[pe]&&this.controls[pe]._registerOnCollectionChange(()=>{}),delete this.controls[pe],y&&this.registerControl(pe,y),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}contains(pe){return this.controls.hasOwnProperty(pe)&&this.controls[pe].enabled}setValue(pe,y={}){xt(this,!0,pe),Object.keys(pe).forEach(J=>{We(this,!0,J),this.controls[J].setValue(pe[J],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(pe,y={}){null!=pe&&(Object.keys(pe).forEach(J=>{const N=this.controls[J];N&&N.patchValue(pe[J],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(pe={},y={}){this._forEachChild((J,N)=>{J.reset(pe[N],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(pe,y,J)=>(pe[J]=y.getRawValue(),pe))}_syncPendingControls(){let pe=this._reduceChildren(!1,(y,J)=>!!J._syncPendingControls()||y);return pe&&this.updateValueAndValidity({onlySelf:!0}),pe}_forEachChild(pe){Object.keys(this.controls).forEach(y=>{const J=this.controls[y];J&&pe(J,y)})}_setUpControls(){this._forEachChild(pe=>{pe.setParent(this),pe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(pe){for(const[y,J]of Object.entries(this.controls))if(this.contains(y)&&pe(J))return!0;return!1}_reduceValue(){return this._reduceChildren({},(y,J,N)=>((J.enabled||this.disabled)&&(y[N]=J.value),y))}_reduceChildren(pe,y){let J=pe;return this._forEachChild((N,de)=>{J=y(J,N,de)}),J}_allControlsDisabled(){for(const pe of Object.keys(this.controls))if(this.controls[pe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(pe){return this.controls.hasOwnProperty(pe)?this.controls[pe]:null}}class se extends wt{}const Le=new n.InjectionToken("CallSetDisabledState",{providedIn:"root",factory:()=>Ie}),Ie="always";function Ot(ve,pe){return[...pe.path,ve]}function Me(ve,pe,y=Ie){Ki(ve,pe),pe.valueAccessor.writeValue(ve.value),(ve.disabled||"always"===y)&&pe.valueAccessor.setDisabledState?.(ve.disabled),function ir(ve,pe){pe.valueAccessor.registerOnChange(y=>{ve._pendingValue=y,ve._pendingChange=!0,ve._pendingDirty=!0,"change"===ve.updateOn&&yr(ve,pe)})}(ve,pe),function fr(ve,pe){const y=(J,N)=>{pe.valueAccessor.writeValue(J),N&&pe.viewToModelUpdate(J)};ve.registerOnChange(y),pe._registerOnDestroy(()=>{ve._unregisterOnChange(y)})}(ve,pe),function Fr(ve,pe){pe.valueAccessor.registerOnTouched(()=>{ve._pendingTouched=!0,"blur"===ve.updateOn&&ve._pendingChange&&yr(ve,pe),"submit"!==ve.updateOn&&ve.markAsTouched()})}(ve,pe),function ii(ve,pe){if(pe.valueAccessor.setDisabledState){const y=J=>{pe.valueAccessor.setDisabledState(J)};ve.registerOnDisabledChange(y),pe._registerOnDestroy(()=>{ve._unregisterOnDisabledChange(y)})}}(ve,pe)}function yt(ve,pe,y=!0){const J=()=>{};pe.valueAccessor&&(pe.valueAccessor.registerOnChange(J),pe.valueAccessor.registerOnTouched(J)),Pn(ve,pe),ve&&(pe._invokeOnDestroyCallbacks(),ve._registerOnCollectionChange(()=>{}))}function St(ve,pe){ve.forEach(y=>{y.registerOnValidatorChange&&y.registerOnValidatorChange(pe)})}function Ki(ve,pe){const y=Ae(ve);null!==pe.validator?ve.setValidators(Fe(y,pe.validator)):"function"==typeof y&&ve.setValidators([y]);const J=H(ve);null!==pe.asyncValidator?ve.setAsyncValidators(Fe(J,pe.asyncValidator)):"function"==typeof J&&ve.setAsyncValidators([J]);const N=()=>ve.updateValueAndValidity();St(pe._rawValidators,N),St(pe._rawAsyncValidators,N)}function Pn(ve,pe){let y=!1;if(null!==ve){if(null!==pe.validator){const N=Ae(ve);if(Array.isArray(N)&&N.length>0){const de=N.filter($e=>$e!==pe.validator);de.length!==N.length&&(y=!0,ve.setValidators(de))}}if(null!==pe.asyncValidator){const N=H(ve);if(Array.isArray(N)&&N.length>0){const de=N.filter($e=>$e!==pe.asyncValidator);de.length!==N.length&&(y=!0,ve.setAsyncValidators(de))}}}const J=()=>{};return St(pe._rawValidators,J),St(pe._rawAsyncValidators,J),y}function yr(ve,pe){ve._pendingDirty&&ve.markAsDirty(),ve.setValue(ve._pendingValue,{emitModelToViewChange:!1}),pe.viewToModelUpdate(ve._pendingValue),ve._pendingChange=!1}function ar(ve,pe){Ki(ve,pe)}function Si(ve,pe){if(!ve.hasOwnProperty("model"))return!1;const y=ve.model;return!!y.isFirstChange()||!Object.is(pe,y.currentValue)}function Fn(ve,pe){ve._syncPendingControls(),pe.forEach(y=>{const J=y.control;"submit"===J.updateOn&&J._pendingChange&&(y.viewToModelUpdate(J._pendingValue),J._pendingChange=!1)})}function bi(ve,pe){if(!pe)return null;let y,J,N;return Array.isArray(pe),pe.forEach(de=>{de.constructor===S?y=de:function lr(ve){return Object.getPrototypeOf(ve.constructor)===u}(de)?J=de:N=de}),N||J||y||null}const Dn={provide:Pe,useExisting:(0,n.forwardRef)(()=>pn)},Wn=(()=>Promise.resolve())();let pn=(()=>{class ve extends Pe{constructor(y,J,N){super(),this.callSetDisabledState=N,this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.EventEmitter,this.form=new wt({},Jt(y),_t(J))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(y){Wn.then(()=>{const J=this._findContainer(y.path);y.control=J.registerControl(y.name,y.control),Me(y.control,y,this.callSetDisabledState),y.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(y)})}getControl(y){return this.form.get(y.path)}removeControl(y){Wn.then(()=>{const J=this._findContainer(y.path);J&&J.removeControl(y.name),this._directives.delete(y)})}addFormGroup(y){Wn.then(()=>{const J=this._findContainer(y.path),N=new wt({});ar(N,y),J.registerControl(y.name,N),N.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){Wn.then(()=>{const J=this._findContainer(y.path);J&&J.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,J){Wn.then(()=>{this.form.get(y.path).setValue(J)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,Fn(this.form,this._directives),this.ngSubmit.emit(y),"dialog"===y?.target?.method}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(y){return y.pop(),y.length?this.form.get(y):this.form}}return ve.\u0275fac=function(y){return new(y||ve)(n.\u0275\u0275directiveInject(le,10),n.\u0275\u0275directiveInject(q,10),n.\u0275\u0275directiveInject(Le,8))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(y,J){1&y&&n.\u0275\u0275listener("submit",function(de){return J.onSubmit(de)})("reset",function(){return J.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([Dn]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();function qn(ve,pe){const y=ve.indexOf(pe);y>-1&&ve.splice(y,1)}function Mi(ve){return"object"==typeof ve&&null!==ve&&2===Object.keys(ve).length&&"value"in ve&&"disabled"in ve}const qi=class extends Ht{constructor(pe=null,y,J){super(ze(y),re(J,y)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(pe),this._setUpdateStrategy(y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Re(y)&&(y.nonNullable||y.initialValueIsDefault)&&(this.defaultValue=Mi(pe)?pe.value:pe)}setValue(pe,y={}){this.value=this._pendingValue=pe,this._onChange.length&&!1!==y.emitModelToViewChange&&this._onChange.forEach(J=>J(this.value,!1!==y.emitViewToModelChange)),this.updateValueAndValidity(y)}patchValue(pe,y={}){this.setValue(pe,y)}reset(pe=this.defaultValue,y={}){this._applyFormState(pe),this.markAsPristine(y),this.markAsUntouched(y),this.setValue(this.value,y),this._pendingChange=!1}_updateValue(){}_anyControls(pe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(pe){this._onChange.push(pe)}_unregisterOnChange(pe){qn(this._onChange,pe)}registerOnDisabledChange(pe){this._onDisabledChange.push(pe)}_unregisterOnDisabledChange(pe){qn(this._onDisabledChange,pe)}_forEachChild(pe){}_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(pe){Mi(pe)?(this.value=this._pendingValue=pe.value,pe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=pe}},ni={provide:Qe,useExisting:(0,n.forwardRef)(()=>je)},he=(()=>Promise.resolve())();let je=(()=>{class ve extends Qe{constructor(y,J,N,de,$e,Ve){super(),this._changeDetectorRef=$e,this.callSetDisabledState=Ve,this.control=new qi,this._registered=!1,this.update=new n.EventEmitter,this._parent=y,this._setValidators(J),this._setAsyncValidators(N),this.valueAccessor=bi(0,de)}ngOnChanges(y){if(this._checkForErrors(),!this._registered||"name"in y){if(this._registered&&(this._checkName(),this.formDirective)){const J=y.name.previousValue;this.formDirective.removeControl({name:J,path:this._getPath(J)})}this._setUpControl()}"isDisabled"in y&&this._updateDisabled(y),Si(y,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(y){this.viewModel=y,this.update.emit(y)}_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(){Me(this.control,this,this.callSetDisabledState),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(y){he.then(()=>{this.control.setValue(y,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(y){const J=y.isDisabled.currentValue,N=0!==J&&(0,n.\u0275coerceToBoolean)(J);he.then(()=>{N&&!this.control.disabled?this.control.disable():!N&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(y){return this._parent?Ot(y,this._parent):[y]}}return ve.\u0275fac=function(y){return new(y||ve)(n.\u0275\u0275directiveInject(Pe,9),n.\u0275\u0275directiveInject(le,10),n.\u0275\u0275directiveInject(q,10),n.\u0275\u0275directiveInject(b,10),n.\u0275\u0275directiveInject(n.ChangeDetectorRef,8),n.\u0275\u0275directiveInject(Le,8))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.\u0275\u0275ProvidersFeature([ni]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),ve})(),Je=(()=>{class ve{}return ve.\u0275fac=function(y){return new(y||ve)},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ve})();const At={provide:b,useExisting:(0,n.forwardRef)(()=>li),multi:!0};let li=(()=>{class ve extends u{writeValue(y){this.setProperty("value",y??"")}registerOnChange(y){this.onChange=J=>{y(""==J?null:parseFloat(J))}}}return ve.\u0275fac=function(){let pe;return function(J){return(pe||(pe=n.\u0275\u0275getInheritedFactory(ve)))(J||ve)}}(),ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(y,J){1&y&&n.\u0275\u0275listener("input",function(de){return J.onChange(de.target.value)})("blur",function(){return J.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([At]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();const zi={provide:b,useExisting:(0,n.forwardRef)(()=>Tn),multi:!0};let en=(()=>{class ve{}return ve.\u0275fac=function(y){return new(y||ve)},ve.\u0275mod=n.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=n.\u0275\u0275defineInjector({}),ve})(),Hn=(()=>{class ve{constructor(){this._accessors=[]}add(y,J){this._accessors.push([y,J])}remove(y){for(let J=this._accessors.length-1;J>=0;--J)if(this._accessors[J][1]===y)return void this._accessors.splice(J,1)}select(y){this._accessors.forEach(J=>{this._isSameGroup(J,y)&&J[1]!==y&&J[1].fireUncheck(y.value)})}_isSameGroup(y,J){return!!y[0].control&&y[0]._parent===J._control._parent&&y[1].name===J.name}}return ve.\u0275fac=function(y){return new(y||ve)},ve.\u0275prov=n.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:en}),ve})(),Tn=(()=>{class ve extends u{constructor(y,J,N,de){super(y,J),this._registry=N,this._injector=de,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,n.inject)(Le,{optional:!0})??Ie}ngOnInit(){this._control=this._injector.get(Qe),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(y){this._state=y===this.value,this.setProperty("checked",this._state)}registerOnChange(y){this._fn=y,this.onChange=()=>{y(this.value),this._registry.select(this)}}setDisabledState(y){(this.setDisabledStateFired||y||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",y),this.setDisabledStateFired=!0}fireUncheck(y){this.writeValue(y)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return ve.\u0275fac=function(y){return new(y||ve)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Hn),n.\u0275\u0275directiveInject(n.Injector))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(y,J){1&y&&n.\u0275\u0275listener("change",function(){return J.onChange()})("blur",function(){return J.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.\u0275\u0275ProvidersFeature([zi]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();const bn=new n.InjectionToken("NgModelWithFormControlWarning"),eo={provide:Pe,useExisting:(0,n.forwardRef)(()=>$n)};let $n=(()=>{class ve extends Pe{constructor(y,J,N){super(),this.callSetDisabledState=N,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.EventEmitter,this._setValidators(y),this._setAsyncValidators(J)}ngOnChanges(y){this._checkFormPresent(),y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Pn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(y){const J=this.form.get(y.path);return Me(J,y,this.callSetDisabledState),J.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),J}getControl(y){return this.form.get(y.path)}removeControl(y){yt(y.control||null,y,!1),function gi(ve,pe){const y=ve.indexOf(pe);y>-1&&ve.splice(y,1)}(this.directives,y)}addFormGroup(y){this._setUpFormContainer(y)}removeFormGroup(y){this._cleanUpFormContainer(y)}getFormGroup(y){return this.form.get(y.path)}addFormArray(y){this._setUpFormContainer(y)}removeFormArray(y){this._cleanUpFormContainer(y)}getFormArray(y){return this.form.get(y.path)}updateModel(y,J){this.form.get(y.path).setValue(J)}onSubmit(y){return this.submitted=!0,Fn(this.form,this.directives),this.ngSubmit.emit(y),"dialog"===y?.target?.method}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_updateDomValue(){this.directives.forEach(y=>{const J=y.control,N=this.form.get(y.path);J!==N&&(yt(J||null,y),(ve=>ve instanceof qi)(N)&&(Me(N,y,this.callSetDisabledState),y.control=N))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const J=this.form.get(y.path);ar(J,y),J.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const J=this.form.get(y.path);J&&function Xi(ve,pe){return Pn(ve,pe)}(J,y)&&J.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ki(this.form,this),this._oldForm&&Pn(this._oldForm,this)}_checkFormPresent(){}}return ve.\u0275fac=function(y){return new(y||ve)(n.\u0275\u0275directiveInject(le,10),n.\u0275\u0275directiveInject(q,10),n.\u0275\u0275directiveInject(Le,8))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["","formGroup",""]],hostBindings:function(y,J){1&y&&n.\u0275\u0275listener("submit",function(de){return J.onSubmit(de)})("reset",function(){return J.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([eo]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),ve})();const Cr={provide:Qe,useExisting:(0,n.forwardRef)(()=>or)};let or=(()=>{class ve extends Qe{set isDisabled(y){}constructor(y,J,N,de,$e){super(),this._ngModelWarningConfig=$e,this._added=!1,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._parent=y,this._setValidators(J),this._setAsyncValidators(N),this.valueAccessor=bi(0,de)}ngOnChanges(y){this._added||this._setUpControl(),Si(y,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}get path(){return Ot(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 ve._ngModelWarningSentOnce=!1,ve.\u0275fac=function(y){return new(y||ve)(n.\u0275\u0275directiveInject(Pe,13),n.\u0275\u0275directiveInject(le,10),n.\u0275\u0275directiveInject(q,10),n.\u0275\u0275directiveInject(b,10),n.\u0275\u0275directiveInject(bn,8))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.\u0275\u0275ProvidersFeature([Cr]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),ve})();const Nr={provide:b,useExisting:(0,n.forwardRef)(()=>Kr),multi:!0};function ur(ve,pe){return null==ve?`${pe}`:(pe&&"object"==typeof pe&&(pe="Object"),`${ve}: ${pe}`.slice(0,50))}let Kr=(()=>{class ve extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(y){this._compareWith=y}writeValue(y){this.value=y;const N=ur(this._getOptionId(y),y);this.setProperty("value",N)}registerOnChange(y){this.onChange=J=>{this.value=this._getOptionValue(J),y(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(y){for(const J of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(J),y))return J;return null}_getOptionValue(y){const J=function $r(ve){return ve.split(":")[0]}(y);return this._optionMap.has(J)?this._optionMap.get(J):y}}return ve.\u0275fac=function(){let pe;return function(J){return(pe||(pe=n.\u0275\u0275getInheritedFactory(ve)))(J||ve)}}(),ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(y,J){1&y&&n.\u0275\u0275listener("change",function(de){return J.onChange(de.target.value)})("blur",function(){return J.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([Nr]),n.\u0275\u0275InheritDefinitionFeature]}),ve})(),Pr=(()=>{class ve{constructor(y,J,N){this._element=y,this._renderer=J,this._select=N,this._select&&(this.id=this._select._registerOption())}set ngValue(y){null!=this._select&&(this._select._optionMap.set(this.id,y),this._setElementValue(ur(this.id,y)),this._select.writeValue(this._select.value))}set value(y){this._setElementValue(y),this._select&&this._select.writeValue(this._select.value)}_setElementValue(y){this._renderer.setProperty(this._element.nativeElement,"value",y)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return ve.\u0275fac=function(y){return new(y||ve)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(Kr,9))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),ve})();const Oo={provide:b,useExisting:(0,n.forwardRef)(()=>hr),multi:!0};function an(ve,pe){return null==ve?`${pe}`:("string"==typeof pe&&(pe=`'${pe}'`),pe&&"object"==typeof pe&&(pe="Object"),`${ve}: ${pe}`.slice(0,50))}let hr=(()=>{class ve extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(y){this._compareWith=y}writeValue(y){let J;if(this.value=y,Array.isArray(y)){const N=y.map(de=>this._getOptionId(de));J=(de,$e)=>{de._setSelected(N.indexOf($e.toString())>-1)}}else J=(N,de)=>{N._setSelected(!1)};this._optionMap.forEach(J)}registerOnChange(y){this.onChange=J=>{const N=[],de=J.selectedOptions;if(void 0!==de){const $e=de;for(let Ve=0;Ve<$e.length;Ve++){const qt=this._getOptionValue($e[Ve].value);N.push(qt)}}else{const $e=J.options;for(let Ve=0;Ve<$e.length;Ve++){const pt=$e[Ve];if(pt.selected){const qt=this._getOptionValue(pt.value);N.push(qt)}}}this.value=N,y(N)}}_registerOption(y){const J=(this._idCounter++).toString();return this._optionMap.set(J,y),J}_getOptionId(y){for(const J of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(J)._value,y))return J;return null}_getOptionValue(y){const J=function Mo(ve){return ve.split(":")[0]}(y);return this._optionMap.has(J)?this._optionMap.get(J)._value:y}}return ve.\u0275fac=function(){let pe;return function(J){return(pe||(pe=n.\u0275\u0275getInheritedFactory(ve)))(J||ve)}}(),ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(y,J){1&y&&n.\u0275\u0275listener("change",function(de){return J.onChange(de.target)})("blur",function(){return J.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([Oo]),n.\u0275\u0275InheritDefinitionFeature]}),ve})(),Gr=(()=>{class ve{constructor(y,J,N){this._element=y,this._renderer=J,this._select=N,this._select&&(this.id=this._select._registerOption(this))}set ngValue(y){null!=this._select&&(this._value=y,this._setElementValue(an(this.id,y)),this._select.writeValue(this._select.value))}set value(y){this._select?(this._value=y,this._setElementValue(an(this.id,y)),this._select.writeValue(this._select.value)):this._setElementValue(y)}_setElementValue(y){this._renderer.setProperty(this._element.nativeElement,"value",y)}_setSelected(y){this._renderer.setProperty(this._element.nativeElement,"selected",y)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return ve.\u0275fac=function(y){return new(y||ve)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(hr,9))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),ve})();let lo=(()=>{class ve{constructor(){this._validator=ct}ngOnChanges(y){if(this.inputName in y){const J=this.normalizeInput(y[this.inputName].currentValue);this._enabled=this.enabled(J),this._validator=this._enabled?this.createValidator(J):ct,this._onChange&&this._onChange()}}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}enabled(y){return null!=y}}return ve.\u0275fac=function(y){return new(y||ve)},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,features:[n.\u0275\u0275NgOnChangesFeature]}),ve})();const Un={provide:le,useExisting:(0,n.forwardRef)(()=>co),multi:!0},gr={provide:le,useExisting:(0,n.forwardRef)(()=>Ur),multi:!0};let co=(()=>{class ve extends lo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.\u0275coerceToBoolean,this.createValidator=y=>xe}enabled(y){return y}}return ve.\u0275fac=function(){let pe;return function(J){return(pe||(pe=n.\u0275\u0275getInheritedFactory(ve)))(J||ve)}}(),ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(y,J){2&y&&n.\u0275\u0275attribute("required",J._enabled?"":null)},inputs:{required:"required"},features:[n.\u0275\u0275ProvidersFeature([Un]),n.\u0275\u0275InheritDefinitionFeature]}),ve})(),Ur=(()=>{class ve extends co{constructor(){super(...arguments),this.createValidator=y=>ne}}return ve.\u0275fac=function(){let pe;return function(J){return(pe||(pe=n.\u0275\u0275getInheritedFactory(ve)))(J||ve)}}(),ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(y,J){2&y&&n.\u0275\u0275attribute("required",J._enabled?"":null)},features:[n.\u0275\u0275ProvidersFeature([gr]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();const nr={provide:le,useExisting:(0,n.forwardRef)(()=>_r),multi:!0};let _r=(()=>{class ve extends lo{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=n.\u0275coerceToBoolean,this.createValidator=y=>Ze}enabled(y){return y}}return ve.\u0275fac=function(){let pe;return function(J){return(pe||(pe=n.\u0275\u0275getInheritedFactory(ve)))(J||ve)}}(),ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[n.\u0275\u0275ProvidersFeature([nr]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();const Uo={provide:le,useExisting:(0,n.forwardRef)(()=>_o),multi:!0};let _o=(()=>{class ve extends lo{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=y=>function go(ve){return"number"==typeof ve?ve:parseInt(ve,10)}(y),this.createValidator=y=>nt(y)}}return ve.\u0275fac=function(){let pe;return function(J){return(pe||(pe=n.\u0275\u0275getInheritedFactory(ve)))(J||ve)}}(),ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(y,J){2&y&&n.\u0275\u0275attribute("maxlength",J._enabled?J.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n.\u0275\u0275ProvidersFeature([Uo]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();const jn={provide:le,useExisting:(0,n.forwardRef)(()=>Ye),multi:!0};let Ye=(()=>{class ve extends lo{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=y=>y,this.createValidator=y=>qe(y)}}return ve.\u0275fac=function(){let pe;return function(J){return(pe||(pe=n.\u0275\u0275getInheritedFactory(ve)))(J||ve)}}(),ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(y,J){2&y&&n.\u0275\u0275attribute("pattern",J._enabled?J.pattern:null)},inputs:{pattern:"pattern"},features:[n.\u0275\u0275ProvidersFeature([jn]),n.\u0275\u0275InheritDefinitionFeature]}),ve})(),_e=(()=>{class ve{}return ve.\u0275fac=function(y){return new(y||ve)},ve.\u0275mod=n.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=n.\u0275\u0275defineInjector({imports:[en]}),ve})();class it extends Ht{constructor(pe,y,J){super(ze(y),re(J,y)),this.controls=pe,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(pe){return this.controls[this._adjustIndex(pe)]}push(pe,y={}){this.controls.push(pe),this._registerControl(pe),this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}insert(pe,y,J={}){this.controls.splice(pe,0,y),this._registerControl(y),this.updateValueAndValidity({emitEvent:J.emitEvent})}removeAt(pe,y={}){let J=this._adjustIndex(pe);J<0&&(J=0),this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),this.controls.splice(J,1),this.updateValueAndValidity({emitEvent:y.emitEvent})}setControl(pe,y,J={}){let N=this._adjustIndex(pe);N<0&&(N=0),this.controls[N]&&this.controls[N]._registerOnCollectionChange(()=>{}),this.controls.splice(N,1),y&&(this.controls.splice(N,0,y),this._registerControl(y)),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(pe,y={}){xt(this,!1,pe),pe.forEach((J,N)=>{We(this,!1,N),this.at(N).setValue(J,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(pe,y={}){null!=pe&&(pe.forEach((J,N)=>{this.at(N)&&this.at(N).patchValue(J,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(pe=[],y={}){this._forEachChild((J,N)=>{J.reset(pe[N],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(pe=>pe.getRawValue())}clear(pe={}){this.controls.length<1||(this._forEachChild(y=>y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:pe.emitEvent}))}_adjustIndex(pe){return pe<0?pe+this.length:pe}_syncPendingControls(){let pe=this.controls.reduce((y,J)=>!!J._syncPendingControls()||y,!1);return pe&&this.updateValueAndValidity({onlySelf:!0}),pe}_forEachChild(pe){this.controls.forEach((y,J)=>{pe(y,J)})}_updateValue(){this.value=this.controls.filter(pe=>pe.enabled||this.disabled).map(pe=>pe.value)}_anyControls(pe){return this.controls.some(y=>y.enabled&&pe(y))}_setUpControls(){this._forEachChild(pe=>this._registerControl(pe))}_allControlsDisabled(){for(const pe of this.controls)if(pe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(pe){pe.setParent(this),pe._registerOnCollectionChange(this._onCollectionChange)}_find(pe){return this.at(pe)??null}}function xi(ve){return!!ve&&(void 0!==ve.asyncValidators||void 0!==ve.validators||void 0!==ve.updateOn)}let Ii=(()=>{class ve{constructor(){this.useNonNullable=!1}get nonNullable(){const y=new ve;return y.useNonNullable=!0,y}group(y,J=null){const N=this._reduceControls(y);let de={};return xi(J)?de=J:null!==J&&(de.validators=J.validator,de.asyncValidators=J.asyncValidator),new wt(N,de)}record(y,J=null){const N=this._reduceControls(y);return new se(N,J)}control(y,J,N){let de={};return this.useNonNullable?(xi(J)?de=J:(de.validators=J,de.asyncValidators=N),new qi(y,{...de,nonNullable:!0})):new qi(y,J,N)}array(y,J,N){const de=y.map($e=>this._createControl($e));return new it(de,J,N)}_reduceControls(y){const J={};return Object.keys(y).forEach(N=>{J[N]=this._createControl(y[N])}),J}_createControl(y){return y instanceof qi||y instanceof Ht?y:Array.isArray(y)?this.control(y[0],y.length>1?y[1]:null,y.length>2?y[2]:null):this.control(y)}}return ve.\u0275fac=function(y){return new(y||ve)},ve.\u0275prov=n.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),fn=(()=>{class ve extends Ii{group(y,J=null){return super.group(y,J)}control(y,J,N){return super.control(y,J,N)}array(y,J,N){return super.array(y,J,N)}}return ve.\u0275fac=function(){let pe;return function(J){return(pe||(pe=n.\u0275\u0275getInheritedFactory(ve)))(J||ve)}}(),ve.\u0275prov=n.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),Wi=(()=>{class ve{static withConfig(y){return{ngModule:ve,providers:[{provide:Le,useValue:y.callSetDisabledState??Ie}]}}}return ve.\u0275fac=function(y){return new(y||ve)},ve.\u0275mod=n.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=n.\u0275\u0275defineInjector({imports:[_e]}),ve})(),uo=(()=>{class ve{static withConfig(y){return{ngModule:ve,providers:[{provide:bn,useValue:y.warnOnNgModelWithFormControl??"always"},{provide:Le,useValue:y.callSetDisabledState??Ie}]}}}return ve.\u0275fac=function(y){return new(y||ve)},ve.\u0275mod=n.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=n.\u0275\u0275defineInjector({imports:[_e]}),ve})()},3238:(G,P,a)=>{"use strict";a.d(P,{rD:()=>He,K7:()=>Xt,HF:()=>at,Y2:()=>gt,BQ:()=>xe,X2:()=>Te,uc:()=>Pe,nP:()=>st,us:()=>Nt,wG:()=>Pt,si:()=>Bt,IR:()=>ge,MP:()=>Zt,CB:()=>_i,jH:()=>pi,pj:()=>qe,Kr:()=>ct,Id:()=>nt,FD:()=>dt,sb:()=>ot,E0:()=>Be});var n=a(4650),e=a(2687),o=a(445),v=a(6895),d=a(3353),u=a(1281),b=a(8929),C=a(1059),x=a(9521);const f=["text"],me=new n.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function U(){return!0}});let xe=(()=>{class ze{constructor(re,Ee,Re){this._sanityChecks=Ee,this._document=Re,this._hasDoneGlobalChecks=!1,re._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(re){return!(0,d.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[re])}}return ze.\u0275fac=function(re){return new(re||ze)(n.\u0275\u0275inject(e.qm),n.\u0275\u0275inject(me,8),n.\u0275\u0275inject(v.DOCUMENT))},ze.\u0275mod=n.\u0275\u0275defineNgModule({type:ze}),ze.\u0275inj=n.\u0275\u0275defineInjector({imports:[o.vT,o.vT]}),ze})();function nt(ze){return class extends ze{get disabled(){return this._disabled}set disabled(ue){this._disabled=(0,u.Ig)(ue)}constructor(...ue){super(...ue),this._disabled=!1}}}function qe(ze,ue){return class extends ze{get color(){return this._color}set color(re){const Ee=re||this.defaultColor;Ee!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Ee&&this._elementRef.nativeElement.classList.add(`mat-${Ee}`),this._color=Ee)}constructor(...re){super(...re),this.defaultColor=ue,this.color=ue}}}function ct(ze){return class extends ze{get disableRipple(){return this._disableRipple}set disableRipple(ue){this._disableRipple=(0,u.Ig)(ue)}constructor(...ue){super(...ue),this._disableRipple=!1}}}function ot(ze,ue=0){return class extends ze{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(re){this._tabIndex=null!=re?(0,u.su)(re):this.defaultTabIndex}constructor(...re){super(...re),this._tabIndex=ue,this.defaultTabIndex=ue}}}function dt(ze){return class extends ze{updateErrorState(){const ue=this.errorState,We=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);We!==ue&&(this.errorState=We,this.stateChanges.next())}constructor(...ue){super(...ue),this.errorState=!1}}}let He=(()=>{class ze{isErrorState(re,Ee){return!!(re&&re.invalid&&(re.touched||Ee&&Ee.submitted))}}return ze.\u0275fac=function(re){return new(re||ze)},ze.\u0275prov=n.\u0275\u0275defineInjectable({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),Te=(()=>{class ze{}return ze.\u0275fac=function(re){return new(re||ze)},ze.\u0275dir=n.\u0275\u0275defineDirective({type:ze,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),ze})();function Be(ze,ue,re="mat"){ze.changes.pipe((0,C.O)(ze)).subscribe(({length:Ee})=>{mt(ue,`${re}-2-line`,!1),mt(ue,`${re}-3-line`,!1),mt(ue,`${re}-multi-line`,!1),2===Ee||3===Ee?mt(ue,`${re}-${Ee}-line`,!0):Ee>3&&mt(ue,`${re}-multi-line`,!0)})}function mt(ze,ue,re){ze.nativeElement.classList.toggle(ue,re)}let Pe=(()=>{class ze{}return ze.\u0275fac=function(re){return new(re||ze)},ze.\u0275mod=n.\u0275\u0275defineNgModule({type:ze}),ze.\u0275inj=n.\u0275\u0275defineInjector({imports:[xe,xe]}),ze})();class Qe{constructor(ue,re,Ee,Re=!1){this._renderer=ue,this.element=re,this.config=Ee,this._animationForciblyDisabledThroughCss=Re,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ut=(0,d.i$)({passive:!0,capture:!0});class te{constructor(){this._events=new Map,this._delegateEventHandler=ue=>{const re=(0,d.sA)(ue);re&&this._events.get(ue.type)?.forEach((Ee,Re)=>{(Re===re||Re.contains(re))&&Ee.forEach(We=>We.handleEvent(ue))})}}addHandler(ue,re,Ee,Re){const We=this._events.get(re);if(We){const xt=We.get(Ee);xt?xt.add(Re):We.set(Ee,new Set([Re]))}else this._events.set(re,new Map([[Ee,new Set([Re])]])),ue.runOutsideAngular(()=>{document.addEventListener(re,this._delegateEventHandler,ut)})}removeHandler(ue,re,Ee){const Re=this._events.get(ue);if(!Re)return;const We=Re.get(re);We&&(We.delete(Ee),0===We.size&&Re.delete(re),0===Re.size&&(this._events.delete(ue),document.removeEventListener(ue,this._delegateEventHandler,ut)))}}const k={enterDuration:225,exitDuration:150},be=(0,d.i$)({passive:!0,capture:!0}),et=["mousedown","touchstart"],Ue=["mouseup","mouseleave","touchend","touchcancel"];class ge{constructor(ue,re,Ee,Re){this._target=ue,this._ngZone=re,this._platform=Re,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Re.isBrowser&&(this._containerElement=(0,u.fI)(Ee))}fadeInRipple(ue,re,Ee={}){const Re=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),We={...k,...Ee.animation};Ee.centered&&(ue=Re.left+Re.width/2,re=Re.top+Re.height/2);const xt=Ee.radius||function ke(ze,ue,re){const Ee=Math.max(Math.abs(ze-re.left),Math.abs(ze-re.right)),Re=Math.max(Math.abs(ue-re.top),Math.abs(ue-re.bottom));return Math.sqrt(Ee*Ee+Re*Re)}(ue,re,Re),Ht=ue-Re.left,wt=re-Re.top,Mt=We.enterDuration,It=document.createElement("div");It.classList.add("mat-ripple-element"),It.style.left=Ht-xt+"px",It.style.top=wt-xt+"px",It.style.height=2*xt+"px",It.style.width=2*xt+"px",null!=Ee.color&&(It.style.backgroundColor=Ee.color),It.style.transitionDuration=`${Mt}ms`,this._containerElement.appendChild(It);const se=window.getComputedStyle(It),Le=se.transitionDuration,Ie="none"===se.transitionProperty||"0s"===Le||"0s, 0s"===Le||0===Re.width&&0===Re.height,Ot=new Qe(this,It,Ee,Ie);It.style.transform="scale3d(1, 1, 1)",Ot.state=0,Ee.persistent||(this._mostRecentTransientRipple=Ot);let Me=null;return!Ie&&(Mt||We.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const yt=()=>this._finishRippleTransition(Ot),St=()=>this._destroyRipple(Ot);It.addEventListener("transitionend",yt),It.addEventListener("transitioncancel",St),Me={onTransitionEnd:yt,onTransitionCancel:St}}),this._activeRipples.set(Ot,Me),(Ie||!Mt)&&this._finishRippleTransition(Ot),Ot}fadeOutRipple(ue){if(2===ue.state||3===ue.state)return;const re=ue.element,Ee={...k,...ue.config.animation};re.style.transitionDuration=`${Ee.exitDuration}ms`,re.style.opacity="0",ue.state=2,(ue._animationForciblyDisabledThroughCss||!Ee.exitDuration)&&this._finishRippleTransition(ue)}fadeOutAll(){this._getActiveRipples().forEach(ue=>ue.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(ue=>{ue.config.persistent||ue.fadeOut()})}setupTriggerEvents(ue){const re=(0,u.fI)(ue);!this._platform.isBrowser||!re||re===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=re,et.forEach(Ee=>{ge._eventManager.addHandler(this._ngZone,Ee,re,this)}))}handleEvent(ue){"mousedown"===ue.type?this._onMousedown(ue):"touchstart"===ue.type?this._onTouchStart(ue):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ue.forEach(re=>{this._triggerElement.addEventListener(re,this,be)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(ue){0===ue.state?this._startFadeOutTransition(ue):2===ue.state&&this._destroyRipple(ue)}_startFadeOutTransition(ue){const re=ue===this._mostRecentTransientRipple,{persistent:Ee}=ue.config;ue.state=1,!Ee&&(!re||!this._isPointerDown)&&ue.fadeOut()}_destroyRipple(ue){const re=this._activeRipples.get(ue)??null;this._activeRipples.delete(ue),this._activeRipples.size||(this._containerRect=null),ue===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),ue.state=3,null!==re&&(ue.element.removeEventListener("transitionend",re.onTransitionEnd),ue.element.removeEventListener("transitioncancel",re.onTransitionCancel)),ue.element.remove()}_onMousedown(ue){const re=(0,e.X6)(ue),Ee=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!re&&!Ee&&(this._isPointerDown=!0,this.fadeInRipple(ue.clientX,ue.clientY,this._target.rippleConfig))}_onTouchStart(ue){if(!this._target.rippleDisabled&&!(0,e.yG)(ue)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const re=ue.changedTouches;for(let Ee=0;Ee<re.length;Ee++)this.fadeInRipple(re[Ee].clientX,re[Ee].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(ue=>{!ue.config.persistent&&(1===ue.state||ue.config.terminateOnPointerUp&&0===ue.state)&&ue.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const ue=this._triggerElement;ue&&(et.forEach(re=>ge._eventManager.removeHandler(re,ue,this)),this._pointerUpEventsRegistered&&Ue.forEach(re=>ue.removeEventListener(re,this,be)))}}ge._eventManager=new te;const gt=new n.InjectionToken("mat-ripple-global-options");let Pt=(()=>{class ze{get disabled(){return this._disabled}set disabled(re){re&&this.fadeOutAllNonPersistent(),this._disabled=re,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(re){this._trigger=re,this._setupTriggerEventsIfEnabled()}constructor(re,Ee,Re,We,xt){this._elementRef=re,this._animationMode=xt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=We||{},this._rippleRenderer=new ge(this,Ee,re,Re)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(re,Ee=0,Re){return"number"==typeof re?this._rippleRenderer.fadeInRipple(re,Ee,{...this.rippleConfig,...Re}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...re})}}return ze.\u0275fac=function(re){return new(re||ze)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(d.t4),n.\u0275\u0275directiveInject(gt,8),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},ze.\u0275dir=n.\u0275\u0275defineDirective({type:ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(re,Ee){2&re&&n.\u0275\u0275classProp("mat-ripple-unbounded",Ee.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),ze})(),Bt=(()=>{class ze{}return ze.\u0275fac=function(re){return new(re||ze)},ze.\u0275mod=n.\u0275\u0275defineNgModule({type:ze}),ze.\u0275inj=n.\u0275\u0275defineInjector({imports:[xe,xe]}),ze})(),st=(()=>{class ze{constructor(re){this._animationMode=re,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return ze.\u0275fac=function(re){return new(re||ze)(n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},ze.\u0275cmp=n.\u0275\u0275defineComponent({type:ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(re,Ee){2&re&&n.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===Ee.state)("mat-pseudo-checkbox-checked","checked"===Ee.state)("mat-pseudo-checkbox-disabled",Ee.disabled)("mat-pseudo-checkbox-minimal","minimal"===Ee.appearance)("mat-pseudo-checkbox-full","full"===Ee.appearance)("_mat-animation-noopable","NoopAnimations"===Ee._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(re,Ee){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),ze})(),Nt=(()=>{class ze{}return ze.\u0275fac=function(re){return new(re||ze)},ze.\u0275mod=n.\u0275\u0275defineNgModule({type:ze}),ze.\u0275inj=n.\u0275\u0275defineInjector({imports:[xe]}),ze})();const at=new n.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),Xt=new n.InjectionToken("MatOptgroup");let vt=0;class Ut{constructor(ue,re=!1){this.source=ue,this.isUserInput=re}}let Zt=(()=>{class ze{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(re){this._disabled=(0,u.Ig)(re)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(re,Ee,Re,We){this._element=re,this._changeDetectorRef=Ee,this._parent=Re,this.group=We,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+vt++,this.onSelectionChange=new n.EventEmitter,this._stateChanges=new b.xQ}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(re,Ee){const Re=this._getHostElement();"function"==typeof Re.focus&&Re.focus(Ee)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(re){(re.keyCode===x.K5||re.keyCode===x.L_)&&!(0,x.Vb)(re)&&(this._selectViaInteraction(),re.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const re=this.viewValue;re!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=re)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(re=!1){this.onSelectionChange.emit(new Ut(this,re))}}return ze.\u0275fac=function(re){n.\u0275\u0275invalidFactory()},ze.\u0275dir=n.\u0275\u0275defineDirective({type:ze,viewQuery:function(re,Ee){if(1&re&&n.\u0275\u0275viewQuery(f,7),2&re){let Re;n.\u0275\u0275queryRefresh(Re=n.\u0275\u0275loadQuery())&&(Ee._text=Re.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ze})();function _i(ze,ue,re){if(re.length){let Ee=ue.toArray(),Re=re.toArray(),We=0;for(let xt=0;xt<ze+1;xt++)Ee[xt].group&&Ee[xt].group===Re[We]&&We++;return We}return 0}function pi(ze,ue,re,Ee){return ze<re?ze:ze+ue>re+Ee?Math.max(0,ze-Ee+ue):re}},8014:(G,P,a)=>{"use strict";a.d(P,{t:()=>l});var n=a(4650),e=a(3238);let l=(()=>{class v{}return v.\u0275fac=function(u){return new(u||v)},v.\u0275mod=n.\u0275\u0275defineNgModule({type:v}),v.\u0275inj=n.\u0275\u0275defineInjector({imports:[e.BQ,e.BQ]}),v})()},7084:(G,P,a)=>{"use strict";a.d(P,{pp:()=>He,To:()=>Te,ib:()=>Jt,yz:()=>Ae});var n=a(4650),e=a(5017),o=a(1281),l=a(8929),v=a(2654);let d=0;const u=new n.InjectionToken("CdkAccordion");let b=(()=>{class Be{constructor(){this._stateChanges=new l.xQ,this._openCloseAllActions=new l.xQ,this.id="cdk-accordion-"+d++,this._multi=!1}get multi(){return this._multi}set multi(Pe){this._multi=(0,o.Ig)(Pe)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Pe){this._stateChanges.next(Pe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Be.\u0275fac=function(Pe){return new(Pe||Be)},Be.\u0275dir=n.\u0275\u0275defineDirective({type:Be,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n.\u0275\u0275ProvidersFeature([{provide:u,useExisting:Be}]),n.\u0275\u0275NgOnChangesFeature]}),Be})(),C=0,x=(()=>{class Be{get expanded(){return this._expanded}set expanded(Pe){Pe=(0,o.Ig)(Pe),this._expanded!==Pe&&(this._expanded=Pe,this.expandedChange.emit(Pe),Pe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Pe){this._disabled=(0,o.Ig)(Pe)}constructor(Pe,Qe,ut){this.accordion=Pe,this._changeDetectorRef=Qe,this._expansionDispatcher=ut,this._openCloseAllSubscription=v.w.EMPTY,this.closed=new n.EventEmitter,this.opened=new n.EventEmitter,this.destroyed=new n.EventEmitter,this.expandedChange=new n.EventEmitter,this.id="cdk-accordion-child-"+C++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=ut.listen((te,k)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===k&&this.id!==te&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Pe=>{this.disabled||(this.expanded=Pe)})}}return Be.\u0275fac=function(Pe){return new(Pe||Be)(n.\u0275\u0275directiveInject(u,12),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(e.A8))},Be.\u0275dir=n.\u0275\u0275defineDirective({type:Be,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n.\u0275\u0275ProvidersFeature([{provide:u,useValue:void 0}])]}),Be})(),w=(()=>{class Be{}return Be.\u0275fac=function(Pe){return new(Pe||Be)},Be.\u0275mod=n.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=n.\u0275\u0275defineInjector({}),Be})();var g=a(4080),f=a(6895),S=a(3238),j=a(2687),B=a(5778),Z=a(1059),le=a(2198),q=a(2986),X=a(9521),K=a(8896),U=a(6787),me=a(7340);const xe=["body"];function ne(Be,mt){}const Ze=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Oe=["mat-expansion-panel-header","*","mat-action-row"];function nt(Be,mt){if(1&Be&&n.\u0275\u0275element(0,"span",2),2&Be){const Pe=n.\u0275\u0275nextContext();n.\u0275\u0275property("@indicatorRotate",Pe._getExpandedState())}}const qe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ct=["mat-panel-title","mat-panel-description","*"],ot=new n.InjectionToken("MAT_ACCORDION"),dt="225ms cubic-bezier(0.4,0.0,0.2,1)",jt={indicatorRotate:(0,me.X$)("indicatorRotate",[(0,me.SB)("collapsed, void",(0,me.oB)({transform:"rotate(0deg)"})),(0,me.SB)("expanded",(0,me.oB)({transform:"rotate(180deg)"})),(0,me.eR)("expanded <=> collapsed, void => collapsed",(0,me.jt)(dt))]),bodyExpansion:(0,me.X$)("bodyExpansion",[(0,me.SB)("collapsed, void",(0,me.oB)({height:"0px",visibility:"hidden"})),(0,me.SB)("expanded",(0,me.oB)({height:"*",visibility:"visible"})),(0,me.eR)("expanded <=> collapsed, void => collapsed",(0,me.jt)(dt))])},zt=new n.InjectionToken("MAT_EXPANSION_PANEL");let ti=(()=>{class Be{constructor(Pe,Qe){this._template=Pe,this._expansionPanel=Qe}}return Be.\u0275fac=function(Pe){return new(Pe||Be)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(zt,8))},Be.\u0275dir=n.\u0275\u0275defineDirective({type:Be,selectors:[["ng-template","matExpansionPanelContent",""]]}),Be})(),mi=0;const Qt=new n.InjectionToken("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Jt=(()=>{class Be extends x{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Pe){this._hideToggle=(0,o.Ig)(Pe)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Pe){this._togglePosition=Pe}constructor(Pe,Qe,ut,te,k,R,be){super(Pe,Qe,ut),this._viewContainerRef=te,this._animationMode=R,this._hideToggle=!1,this.afterExpand=new n.EventEmitter,this.afterCollapse=new n.EventEmitter,this._inputChanges=new l.xQ,this._headerId="mat-expansion-panel-header-"+mi++,this._bodyAnimationDone=new l.xQ,this.accordion=Pe,this._document=k,this._bodyAnimationDone.pipe((0,B.x)((et,Ue)=>et.fromState===Ue.fromState&&et.toState===Ue.toState)).subscribe(et=>{"void"!==et.fromState&&("expanded"===et.toState?this.afterExpand.emit():"collapsed"===et.toState&&this.afterCollapse.emit())}),be&&(this.hideToggle=be.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,Z.O)(null),(0,le.h)(()=>this.expanded&&!this._portal),(0,q.q)(1)).subscribe(()=>{this._portal=new g.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Pe){this._inputChanges.next(Pe)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Pe=this._document.activeElement,Qe=this._body.nativeElement;return Pe===Qe||Qe.contains(Pe)}return!1}}return Be.\u0275fac=function(Pe){return new(Pe||Be)(n.\u0275\u0275directiveInject(ot,12),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(e.A8),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(f.DOCUMENT),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(Qt,8))},Be.\u0275cmp=n.\u0275\u0275defineComponent({type:Be,selectors:[["mat-expansion-panel"]],contentQueries:function(Pe,Qe,ut){if(1&Pe&&n.\u0275\u0275contentQuery(ut,ti,5),2&Pe){let te;n.\u0275\u0275queryRefresh(te=n.\u0275\u0275loadQuery())&&(Qe._lazyContent=te.first)}},viewQuery:function(Pe,Qe){if(1&Pe&&n.\u0275\u0275viewQuery(xe,5),2&Pe){let ut;n.\u0275\u0275queryRefresh(ut=n.\u0275\u0275loadQuery())&&(Qe._body=ut.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Pe,Qe){2&Pe&&n.\u0275\u0275classProp("mat-expanded",Qe.expanded)("_mat-animation-noopable","NoopAnimations"===Qe._animationMode)("mat-expansion-panel-spacing",Qe._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n.\u0275\u0275ProvidersFeature([{provide:ot,useValue:void 0},{provide:zt,useExisting:Be}]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Oe,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Pe,Qe){1&Pe&&(n.\u0275\u0275projectionDef(Ze),n.\u0275\u0275projection(0),n.\u0275\u0275elementStart(1,"div",0,1),n.\u0275\u0275listener("@bodyExpansion.done",function(te){return Qe._bodyAnimationDone.next(te)}),n.\u0275\u0275elementStart(3,"div",2),n.\u0275\u0275projection(4,1),n.\u0275\u0275template(5,ne,0,0,"ng-template",3),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(6,2),n.\u0275\u0275elementEnd()),2&Pe&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("@bodyExpansion",Qe._getExpandedState())("id",Qe.id),n.\u0275\u0275attribute("aria-labelledby",Qe._headerId),n.\u0275\u0275advance(4),n.\u0275\u0275property("cdkPortalOutlet",Qe._portal))},dependencies:[g.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[jt.bodyExpansion]},changeDetection:0}),Be})();class _t{}const Fe=(0,S.sb)(_t);let Ae=(()=>{class Be extends Fe{constructor(Pe,Qe,ut,te,k,R,be){super(),this.panel=Pe,this._element=Qe,this._focusMonitor=ut,this._changeDetectorRef=te,this._animationMode=R,this._parentChangeSubscription=v.w.EMPTY;const et=Pe.accordion?Pe.accordion._stateChanges.pipe((0,le.h)(Ue=>!(!Ue.hideToggle&&!Ue.togglePosition))):K.E;this.tabIndex=parseInt(be||"")||0,this._parentChangeSubscription=(0,U.T)(Pe.opened,Pe.closed,et,Pe._inputChanges.pipe((0,le.h)(Ue=>!!(Ue.hideToggle||Ue.disabled||Ue.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Pe.closed.pipe((0,le.h)(()=>Pe._containsFocus())).subscribe(()=>ut.focusVia(Qe,"program")),k&&(this.expandedHeight=k.expandedHeight,this.collapsedHeight=k.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Pe=this._isExpanded();return Pe&&this.expandedHeight?this.expandedHeight:!Pe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Pe){switch(Pe.keyCode){case X.L_:case X.K5:(0,X.Vb)(Pe)||(Pe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Pe))}}focus(Pe,Qe){Pe?this._focusMonitor.focusVia(this._element,Pe,Qe):this._element.nativeElement.focus(Qe)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Pe=>{Pe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Be.\u0275fac=function(Pe){return new(Pe||Be)(n.\u0275\u0275directiveInject(Jt,1),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(j.tE),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(Qt,8),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275injectAttribute("tabindex"))},Be.\u0275cmp=n.\u0275\u0275defineComponent({type:Be,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Pe,Qe){1&Pe&&n.\u0275\u0275listener("click",function(){return Qe._toggle()})("keydown",function(te){return Qe._keydown(te)}),2&Pe&&(n.\u0275\u0275attribute("id",Qe.panel._headerId)("tabindex",Qe.tabIndex)("aria-controls",Qe._getPanelId())("aria-expanded",Qe._isExpanded())("aria-disabled",Qe.panel.disabled),n.\u0275\u0275styleProp("height",Qe._getHeaderHeight()),n.\u0275\u0275classProp("mat-expanded",Qe._isExpanded())("mat-expansion-toggle-indicator-after","after"===Qe._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Qe._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Qe._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ct,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Pe,Qe){1&Pe&&(n.\u0275\u0275projectionDef(qe),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275projection(2,1),n.\u0275\u0275projection(3,2),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(4,nt,1,1,"span",1)),2&Pe&&(n.\u0275\u0275classProp("mat-content-hide-toggle",!Qe._showToggle()),n.\u0275\u0275advance(4),n.\u0275\u0275property("ngIf",Qe._showToggle()))},dependencies:[f.NgIf],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[jt.indicatorRotate]},changeDetection:0}),Be})(),He=(()=>{class Be extends b{constructor(){super(...arguments),this._ownHeaders=new n.QueryList,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Pe){this._hideToggle=(0,o.Ig)(Pe)}ngAfterContentInit(){this._headers.changes.pipe((0,Z.O)(this._headers)).subscribe(Pe=>{this._ownHeaders.reset(Pe.filter(Qe=>Qe.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new j.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Pe){this._keyManager.onKeydown(Pe)}_handleHeaderFocus(Pe){this._keyManager.updateActiveItem(Pe)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return Be.\u0275fac=function(){let mt;return function(Qe){return(mt||(mt=n.\u0275\u0275getInheritedFactory(Be)))(Qe||Be)}}(),Be.\u0275dir=n.\u0275\u0275defineDirective({type:Be,selectors:[["mat-accordion"]],contentQueries:function(Pe,Qe,ut){if(1&Pe&&n.\u0275\u0275contentQuery(ut,Ae,5),2&Pe){let te;n.\u0275\u0275queryRefresh(te=n.\u0275\u0275loadQuery())&&(Qe._headers=te)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Pe,Qe){2&Pe&&n.\u0275\u0275classProp("mat-accordion-multi",Qe.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n.\u0275\u0275ProvidersFeature([{provide:ot,useExisting:Be}]),n.\u0275\u0275InheritDefinitionFeature]}),Be})(),Te=(()=>{class Be{}return Be.\u0275fac=function(Pe){return new(Pe||Be)},Be.\u0275mod=n.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=n.\u0275\u0275defineInjector({imports:[f.CommonModule,S.BQ,w,g.eL]}),Be})()},9549:(G,P,a)=>{"use strict";a.d(P,{Eo:()=>W,G_:()=>mt});var n=a(4650);a(7340);let W=(()=>{class Ue{}return Ue.\u0275fac=function(ke){return new(ke||Ue)},Ue.\u0275dir=n.\u0275\u0275defineDirective({type:Ue}),Ue})();const mt=new n.InjectionToken("MatFormField")},7392:(G,P,a)=>{"use strict";a.d(P,{Hw:()=>lt,Ps:()=>_t});var n=a(4650),e=a(3238),o=a(1281),l=a(6895),v=a(1086),d=a(1737),u=a(567),b=a(2654),C=a(2994),x=a(4850),w=a(7221),g=a(537),f=a(8117),S=a(2986),j=a(529),B=a(1481);const Z=["*"];let le;function X(Fe){return function q(){if(void 0===le&&(le=null,typeof window<"u")){const Fe=window;void 0!==Fe.trustedTypes&&(le=Fe.trustedTypes.createPolicy("angular#components",{createHTML:Ae=>Ae}))}return le}()?.createHTML(Fe)||Fe}function K(Fe){return Error(`Unable to find icon with the name "${Fe}"`)}function me(Fe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Fe}".`)}function xe(Fe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Fe}".`)}class ne{constructor(Ae,H,W){this.url=Ae,this.svgText=H,this.options=W}}let Ze=(()=>{class Fe{constructor(H,W,He,Te){this._httpClient=H,this._sanitizer=W,this._errorHandler=Te,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=He}addSvgIcon(H,W,He){return this.addSvgIconInNamespace("",H,W,He)}addSvgIconLiteral(H,W,He){return this.addSvgIconLiteralInNamespace("",H,W,He)}addSvgIconInNamespace(H,W,He,Te){return this._addSvgIconConfig(H,W,new ne(He,null,Te))}addSvgIconResolver(H){return this._resolvers.push(H),this}addSvgIconLiteralInNamespace(H,W,He,Te){const Be=this._sanitizer.sanitize(n.SecurityContext.HTML,He);if(!Be)throw xe(He);const mt=X(Be);return this._addSvgIconConfig(H,W,new ne("",mt,Te))}addSvgIconSet(H,W){return this.addSvgIconSetInNamespace("",H,W)}addSvgIconSetLiteral(H,W){return this.addSvgIconSetLiteralInNamespace("",H,W)}addSvgIconSetInNamespace(H,W,He){return this._addSvgIconSetConfig(H,new ne(W,null,He))}addSvgIconSetLiteralInNamespace(H,W,He){const Te=this._sanitizer.sanitize(n.SecurityContext.HTML,W);if(!Te)throw xe(W);const Be=X(Te);return this._addSvgIconSetConfig(H,new ne("",Be,He))}registerFontClassAlias(H,W=H){return this._fontCssClassesByAlias.set(H,W),this}classNameForFontAlias(H){return this._fontCssClassesByAlias.get(H)||H}setDefaultFontSetClass(...H){return this._defaultFontSetClass=H,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(H){const W=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,H);if(!W)throw me(H);const He=this._cachedIconsByUrl.get(W);return He?(0,v.of)(qe(He)):this._loadSvgIconFromConfig(new ne(H,null)).pipe((0,C.b)(Te=>this._cachedIconsByUrl.set(W,Te)),(0,x.U)(Te=>qe(Te)))}getNamedSvgIcon(H,W=""){const He=ct(W,H);let Te=this._svgIconConfigs.get(He);if(Te)return this._getSvgFromConfig(Te);if(Te=this._getIconConfigFromResolvers(W,H),Te)return this._svgIconConfigs.set(He,Te),this._getSvgFromConfig(Te);const Be=this._iconSetConfigs.get(W);return Be?this._getSvgFromIconSetConfigs(H,Be):(0,d._)(K(He))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(H){return H.svgText?(0,v.of)(qe(this._svgElementFromConfig(H))):this._loadSvgIconFromConfig(H).pipe((0,x.U)(W=>qe(W)))}_getSvgFromIconSetConfigs(H,W){const He=this._extractIconWithNameFromAnySet(H,W);if(He)return(0,v.of)(He);const Te=W.filter(Be=>!Be.svgText).map(Be=>this._loadSvgIconSetFromConfig(Be).pipe((0,w.K)(mt=>{const Qe=`Loading icon set URL: ${this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,Be.url)} failed: ${mt.message}`;return this._errorHandler.handleError(new Error(Qe)),(0,v.of)(null)})));return(0,u.D)(Te).pipe((0,x.U)(()=>{const Be=this._extractIconWithNameFromAnySet(H,W);if(!Be)throw K(H);return Be}))}_extractIconWithNameFromAnySet(H,W){for(let He=W.length-1;He>=0;He--){const Te=W[He];if(Te.svgText&&Te.svgText.toString().indexOf(H)>-1){const Be=this._svgElementFromConfig(Te),mt=this._extractSvgIconFromSet(Be,H,Te.options);if(mt)return mt}}return null}_loadSvgIconFromConfig(H){return this._fetchIcon(H).pipe((0,C.b)(W=>H.svgText=W),(0,x.U)(()=>this._svgElementFromConfig(H)))}_loadSvgIconSetFromConfig(H){return H.svgText?(0,v.of)(null):this._fetchIcon(H).pipe((0,C.b)(W=>H.svgText=W))}_extractSvgIconFromSet(H,W,He){const Te=H.querySelector(`[id="${W}"]`);if(!Te)return null;const Be=Te.cloneNode(!0);if(Be.removeAttribute("id"),"svg"===Be.nodeName.toLowerCase())return this._setSvgAttributes(Be,He);if("symbol"===Be.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Be),He);const mt=this._svgElementFromString(X("<svg></svg>"));return mt.appendChild(Be),this._setSvgAttributes(mt,He)}_svgElementFromString(H){const W=this._document.createElement("DIV");W.innerHTML=H;const He=W.querySelector("svg");if(!He)throw Error("<svg> tag not found");return He}_toSvgElement(H){const W=this._svgElementFromString(X("<svg></svg>")),He=H.attributes;for(let Te=0;Te<He.length;Te++){const{name:Be,value:mt}=He[Te];"id"!==Be&&W.setAttribute(Be,mt)}for(let Te=0;Te<H.childNodes.length;Te++)H.childNodes[Te].nodeType===this._document.ELEMENT_NODE&&W.appendChild(H.childNodes[Te].cloneNode(!0));return W}_setSvgAttributes(H,W){return H.setAttribute("fit",""),H.setAttribute("height","100%"),H.setAttribute("width","100%"),H.setAttribute("preserveAspectRatio","xMidYMid meet"),H.setAttribute("focusable","false"),W&&W.viewBox&&H.setAttribute("viewBox",W.viewBox),H}_fetchIcon(H){const{url:W,options:He}=H,Te=He?.withCredentials??!1;if(!this._httpClient)throw function U(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==W)throw Error(`Cannot fetch icon from URL "${W}".`);const Be=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,W);if(!Be)throw me(W);const mt=this._inProgressUrlFetches.get(Be);if(mt)return mt;const Pe=this._httpClient.get(Be,{responseType:"text",withCredentials:Te}).pipe((0,x.U)(Qe=>X(Qe)),(0,g.x)(()=>this._inProgressUrlFetches.delete(Be)),(0,f.B)());return this._inProgressUrlFetches.set(Be,Pe),Pe}_addSvgIconConfig(H,W,He){return this._svgIconConfigs.set(ct(H,W),He),this}_addSvgIconSetConfig(H,W){const He=this._iconSetConfigs.get(H);return He?He.push(W):this._iconSetConfigs.set(H,[W]),this}_svgElementFromConfig(H){if(!H.svgElement){const W=this._svgElementFromString(H.svgText);this._setSvgAttributes(W,H.options),H.svgElement=W}return H.svgElement}_getIconConfigFromResolvers(H,W){for(let He=0;He<this._resolvers.length;He++){const Te=this._resolvers[He](W,H);if(Te)return ot(Te)?new ne(Te.url,null,Te.options):new ne(Te,null)}}}return Fe.\u0275fac=function(H){return new(H||Fe)(n.\u0275\u0275inject(j.eN,8),n.\u0275\u0275inject(B.H7),n.\u0275\u0275inject(l.DOCUMENT,8),n.\u0275\u0275inject(n.ErrorHandler))},Fe.\u0275prov=n.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),Fe})();function qe(Fe){return Fe.cloneNode(!0)}function ct(Fe,Ae){return Fe+":"+Ae}function ot(Fe){return!(!Fe.url||!Fe.options)}const dt=(0,e.pj)(class{constructor(Fe){this._elementRef=Fe}}),jt=new n.InjectionToken("MAT_ICON_DEFAULT_OPTIONS"),zt=new n.InjectionToken("mat-icon-location",{providedIn:"root",factory:function ti(){const Fe=(0,n.inject)(l.DOCUMENT),Ae=Fe?Fe.location:null;return{getPathname:()=>Ae?Ae.pathname+Ae.search:""}}}),mi=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Qt=mi.map(Fe=>`[${Fe}]`).join(", "),Jt=/^url\(['"]?#(.*?)['"]?\)$/;let lt=(()=>{class Fe extends dt{get inline(){return this._inline}set inline(H){this._inline=(0,o.Ig)(H)}get svgIcon(){return this._svgIcon}set svgIcon(H){H!==this._svgIcon&&(H?this._updateSvgIcon(H):this._svgIcon&&this._clearSvgElement(),this._svgIcon=H)}get fontSet(){return this._fontSet}set fontSet(H){const W=this._cleanupFontValue(H);W!==this._fontSet&&(this._fontSet=W,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(H){const W=this._cleanupFontValue(H);W!==this._fontIcon&&(this._fontIcon=W,this._updateFontIconClasses())}constructor(H,W,He,Te,Be,mt){super(H),this._iconRegistry=W,this._location=Te,this._errorHandler=Be,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=b.w.EMPTY,mt&&(mt.color&&(this.color=this.defaultColor=mt.color),mt.fontSet&&(this.fontSet=mt.fontSet)),He||H.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(H){if(!H)return["",""];const W=H.split(":");switch(W.length){case 1:return["",W[0]];case 2:return W;default:throw Error(`Invalid icon name: "${H}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const H=this._elementsWithExternalReferences;if(H&&H.size){const W=this._location.getPathname();W!==this._previousPath&&(this._previousPath=W,this._prependPathToReferences(W))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(H){this._clearSvgElement();const W=this._location.getPathname();this._previousPath=W,this._cacheChildrenWithExternalReferences(H),this._prependPathToReferences(W),this._elementRef.nativeElement.appendChild(H)}_clearSvgElement(){const H=this._elementRef.nativeElement;let W=H.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();W--;){const He=H.childNodes[W];(1!==He.nodeType||"svg"===He.nodeName.toLowerCase())&&He.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const H=this._elementRef.nativeElement,W=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(He=>He.length>0);this._previousFontSetClass.forEach(He=>H.classList.remove(He)),W.forEach(He=>H.classList.add(He)),this._previousFontSetClass=W,this.fontIcon!==this._previousFontIconClass&&!W.includes("mat-ligature-font")&&(this._previousFontIconClass&&H.classList.remove(this._previousFontIconClass),this.fontIcon&&H.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(H){return"string"==typeof H?H.trim().split(" ")[0]:H}_prependPathToReferences(H){const W=this._elementsWithExternalReferences;W&&W.forEach((He,Te)=>{He.forEach(Be=>{Te.setAttribute(Be.name,`url('${H}#${Be.value}')`)})})}_cacheChildrenWithExternalReferences(H){const W=H.querySelectorAll(Qt),He=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Te=0;Te<W.length;Te++)mi.forEach(Be=>{const mt=W[Te],Pe=mt.getAttribute(Be),Qe=Pe?Pe.match(Jt):null;if(Qe){let ut=He.get(mt);ut||(ut=[],He.set(mt,ut)),ut.push({name:Be,value:Qe[1]})}})}_updateSvgIcon(H){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),H){const[W,He]=this._splitIconName(H);W&&(this._svgNamespace=W),He&&(this._svgName=He),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(He,W).pipe((0,S.q)(1)).subscribe(Te=>this._setSvgElement(Te),Te=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${W}:${He}! ${Te.message}`))})}}}return Fe.\u0275fac=function(H){return new(H||Fe)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Ze),n.\u0275\u0275injectAttribute("aria-hidden"),n.\u0275\u0275directiveInject(zt),n.\u0275\u0275directiveInject(n.ErrorHandler),n.\u0275\u0275directiveInject(jt,8))},Fe.\u0275cmp=n.\u0275\u0275defineComponent({type:Fe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(H,W){2&H&&(n.\u0275\u0275attribute("data-mat-icon-type",W._usingFontIcon()?"font":"svg")("data-mat-icon-name",W._svgName||W.fontIcon)("data-mat-icon-namespace",W._svgNamespace||W.fontSet)("fontIcon",W._usingFontIcon()?W.fontIcon:null),n.\u0275\u0275classProp("mat-icon-inline",W.inline)("mat-icon-no-color","primary"!==W.color&&"accent"!==W.color&&"warn"!==W.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Z,decls:1,vars:0,template:function(H,W){1&H&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),Fe})(),_t=(()=>{class Fe{}return Fe.\u0275fac=function(H){return new(H||Fe)},Fe.\u0275mod=n.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=n.\u0275\u0275defineInjector({imports:[e.BQ,e.BQ]}),Fe})()},9818:(G,P,a)=>{"use strict";a.d(P,{eB:()=>x,yu:()=>g});var n=a(4650),e=a(3238),o=a(2687);const l=["mat-button",""],v=["*"],b=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],C=(0,e.pj)((0,e.Id)((0,e.Kr)(class{constructor(f){this._elementRef=f}})));let x=(()=>{class f extends C{constructor(j,B,Z){super(j),this._focusMonitor=B,this._animationMode=Z,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const le of b)this._hasHostAttributes(le)&&this._getHostElement().classList.add(le);j.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(j,B){j?this._focusMonitor.focusVia(this._getHostElement(),j,B):this._getHostElement().focus(B)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...j){return j.some(B=>this._getHostElement().hasAttribute(B))}}return f.\u0275fac=function(j){return new(j||f)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(o.tE),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},f.\u0275cmp=n.\u0275\u0275defineComponent({type:f,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(j,B){if(1&j&&n.\u0275\u0275viewQuery(e.wG,5),2&j){let Z;n.\u0275\u0275queryRefresh(Z=n.\u0275\u0275loadQuery())&&(B.ripple=Z.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(j,B){2&j&&(n.\u0275\u0275attribute("disabled",B.disabled||null),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===B._animationMode)("mat-button-disabled",B.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:l,ngContentSelectors:v,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(j,B){1&j&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(2,"span",1)(3,"span",2)),2&j&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-button-ripple-round",B.isRoundButton||B.isIconButton),n.\u0275\u0275property("matRippleDisabled",B._isRippleDisabled())("matRippleCentered",B.isIconButton)("matRippleTrigger",B._getHostElement()))},dependencies:[e.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),f})(),g=(()=>{class f{}return f.\u0275fac=function(j){return new(j||f)},f.\u0275mod=n.\u0275\u0275defineNgModule({type:f}),f.\u0275inj=n.\u0275\u0275defineInjector({imports:[e.si,e.BQ,e.BQ]}),f})()},8377:(G,P,a)=>{"use strict";a.d(P,{Al:()=>Z,IF:()=>me,Qi:()=>C,S$:()=>X,_K:()=>w,k0:()=>S,mi:()=>x,u7:()=>K});var n=a(4650),e=a(3238);const o=["*",[["mat-card-footer"]]],l=["*","mat-card-footer"],v=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],d=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n      [mat-card-title], [mat-card-subtitle],\n      [matCardTitle], [matCardSubtitle]","*"];let C=(()=>{class xe{}return xe.\u0275fac=function(Ze){return new(Ze||xe)},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),xe})(),x=(()=>{class xe{}return xe.\u0275fac=function(Ze){return new(Ze||xe)},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),xe})(),w=(()=>{class xe{}return xe.\u0275fac=function(Ze){return new(Ze||xe)},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),xe})(),S=(()=>{class xe{}return xe.\u0275fac=function(Ze){return new(Ze||xe)},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),xe})(),Z=(()=>{class xe{}return xe.\u0275fac=function(Ze){return new(Ze||xe)},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),xe})(),X=(()=>{class xe{constructor(Ze){this._animationMode=Ze}}return xe.\u0275fac=function(Ze){return new(Ze||xe)(n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(Ze,Oe){2&Ze&&n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Oe._animationMode)},exportAs:["matCard"],ngContentSelectors:l,decls:2,vars:0,template:function(Ze,Oe){1&Ze&&(n.\u0275\u0275projectionDef(o),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),xe})(),K=(()=>{class xe{}return xe.\u0275fac=function(Ze){return new(Ze||xe)},xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:d,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(Ze,Oe){1&Ze&&(n.\u0275\u0275projectionDef(v),n.\u0275\u0275projection(0),n.\u0275\u0275elementStart(1,"div",0),n.\u0275\u0275projection(2,1),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0}),xe})(),me=(()=>{class xe{}return xe.\u0275fac=function(Ze){return new(Ze||xe)},xe.\u0275mod=n.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=n.\u0275\u0275defineInjector({imports:[e.BQ,e.BQ]}),xe})()},74:(G,P,a)=>{"use strict";a.d(P,{FC:()=>Oe,Zh:()=>nt});var n=a(2687),e=a(4650),o=a(4006),l=a(3238),v=a(1281);const d=["input"],u=["label"],C=new e.InjectionToken("mat-checkbox-default-options",{providedIn:"root",factory:x});function x(){return{color:"accent",clickAction:"check-indeterminate"}}let f=0;const S=x(),j=(0,l.sb)((0,l.pj)((0,l.Kr)((0,l.Id)(class{constructor(qe){this._elementRef=qe}}))));let B=(()=>{class qe extends j{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ot){this._required=(0,v.Ig)(ot)}constructor(ot,dt,jt,zt,ti,mi,Qt){super(dt),this._changeDetectorRef=jt,this._ngZone=zt,this._animationMode=mi,this._options=Qt,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new e.EventEmitter,this.indeterminateChange=new e.EventEmitter,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||S,this.color=this.defaultColor=this._options.color||S.color,this.tabIndex=parseInt(ti)||0,this.id=this._uniqueId=`${ot}${++f}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ot){const dt=(0,v.Ig)(ot);dt!=this.checked&&(this._checked=dt,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ot){const dt=(0,v.Ig)(ot);dt!==this.disabled&&(this._disabled=dt,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ot){const dt=ot!=this._indeterminate;this._indeterminate=(0,v.Ig)(ot),dt&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(ot){this.checked=!!ot}registerOnChange(ot){this._controlValueAccessorChangeFn=ot}registerOnTouched(ot){this._onTouched=ot}setDisabledState(ot){this.disabled=ot}_transitionCheckState(ot){let dt=this._currentCheckState,jt=this._getAnimationTargetElement();if(dt!==ot&&jt&&(this._currentAnimationClass&&jt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(dt,ot),this._currentCheckState=ot,this._currentAnimationClass.length>0)){jt.classList.add(this._currentAnimationClass);const zt=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{jt.classList.remove(zt)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const ot=this._options?.clickAction;this.disabled||"noop"===ot?!this.disabled&&"noop"===ot&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ot&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ot){ot.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ot,dt){if("NoopAnimations"===this._animationMode)return"";switch(ot){case 0:if(1===dt)return this._animationClasses.uncheckedToChecked;if(3==dt)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===dt?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===dt?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===dt?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ot){const dt=this._inputElement;dt&&(dt.nativeElement.indeterminate=ot)}}return qe.\u0275fac=function(ot){e.\u0275\u0275invalidFactory()},qe.\u0275dir=e.\u0275\u0275defineDirective({type:qe,viewQuery:function(ot,dt){if(1&ot&&(e.\u0275\u0275viewQuery(d,5),e.\u0275\u0275viewQuery(u,5),e.\u0275\u0275viewQuery(l.wG,5)),2&ot){let jt;e.\u0275\u0275queryRefresh(jt=e.\u0275\u0275loadQuery())&&(dt._inputElement=jt.first),e.\u0275\u0275queryRefresh(jt=e.\u0275\u0275loadQuery())&&(dt._labelElement=jt.first),e.\u0275\u0275queryRefresh(jt=e.\u0275\u0275loadQuery())&&(dt.ripple=jt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[e.\u0275\u0275InheritDefinitionFeature]}),qe})(),X=(()=>{class qe{}return qe.\u0275fac=function(ot){return new(ot||qe)},qe.\u0275mod=e.\u0275\u0275defineNgModule({type:qe}),qe.\u0275inj=e.\u0275\u0275defineInjector({}),qe})();var U=a(9643);const me=function(qe){return{enterDuration:qe}},xe=["*"];class ne{}const Ze={provide:o.JU,useExisting:(0,e.forwardRef)(()=>Oe),multi:!0};let Oe=(()=>{class qe extends B{constructor(ot,dt,jt,zt,ti,mi,Qt){super("mat-checkbox-",ot,dt,zt,ti,mi,Qt),this._focusMonitor=jt,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(ot){const dt=new ne;return dt.source=this,dt.checked=ot,dt}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ot=>{ot||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(ot){ot.stopPropagation(),super._handleInputClick()}focus(ot,dt){ot?this._focusMonitor.focusVia(this._inputElement,ot,dt):this._inputElement.nativeElement.focus(dt)}}return qe.\u0275fac=function(ot){return new(ot||qe)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(n.tE),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275injectAttribute("tabindex"),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8),e.\u0275\u0275directiveInject(C,8))},qe.\u0275cmp=e.\u0275\u0275defineComponent({type:qe,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(ot,dt){2&ot&&(e.\u0275\u0275hostProperty("id",dt.id),e.\u0275\u0275attribute("tabindex",null)("aria-label",null)("aria-labelledby",null),e.\u0275\u0275classProp("mat-checkbox-indeterminate",dt.indeterminate)("mat-checkbox-checked",dt.checked)("mat-checkbox-disabled",dt.disabled)("mat-checkbox-label-before","before"==dt.labelPosition)("_mat-animation-noopable","NoopAnimations"===dt._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[e.\u0275\u0275ProvidersFeature([Ze]),e.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:xe,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(ot,dt){if(1&ot&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"label",0,1)(2,"span",2)(3,"input",3,4),e.\u0275\u0275listener("change",function(zt){return dt._onInteractionEvent(zt)})("click",function(zt){return dt._onInputClick(zt)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"span",5),e.\u0275\u0275element(6,"span",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(7,"span",7),e.\u0275\u0275elementStart(8,"span",8),e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(9,"svg",9),e.\u0275\u0275element(10,"path",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275namespaceHTML(),e.\u0275\u0275element(11,"span",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"span",12,13),e.\u0275\u0275listener("cdkObserveContent",function(){return dt._onLabelTextChange()}),e.\u0275\u0275elementStart(14,"span",14),e.\u0275\u0275text(15,"\xa0"),e.\u0275\u0275elementEnd(),e.\u0275\u0275projection(16),e.\u0275\u0275elementEnd()()),2&ot){const jt=e.\u0275\u0275reference(1),zt=e.\u0275\u0275reference(13);e.\u0275\u0275attribute("for",dt.inputId),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("mat-checkbox-inner-container-no-side-margin",!zt.textContent||!zt.textContent.trim()),e.\u0275\u0275advance(1),e.\u0275\u0275property("id",dt.inputId)("required",dt.required)("checked",dt.checked)("disabled",dt.disabled)("tabIndex",dt.tabIndex),e.\u0275\u0275attribute("value",dt.value)("name",dt.name)("aria-label",dt.ariaLabel||null)("aria-labelledby",dt.ariaLabelledby)("aria-describedby",dt.ariaDescribedby),e.\u0275\u0275advance(2),e.\u0275\u0275property("matRippleTrigger",jt)("matRippleDisabled",dt._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",e.\u0275\u0275pureFunction1(18,me,"NoopAnimations"===dt._animationMode?0:150))}},dependencies:[l.wG,U.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),qe})(),nt=(()=>{class qe{}return qe.\u0275fac=function(ot){return new(ot||qe)},qe.\u0275mod=e.\u0275\u0275defineNgModule({type:qe}),qe.\u0275inj=e.\u0275\u0275defineInjector({imports:[l.si,l.BQ,U.Q8,X,l.BQ,X]}),qe})()},4363:(G,P,a)=>{"use strict";a.d(P,{CK:()=>x,Uc:()=>w});var n=a(4650),e=a(6895),o=a(3238);function d(g,f){if(1&g&&n.\u0275\u0275element(0,"mat-pseudo-checkbox",5),2&g){const S=n.\u0275\u0275nextContext();n.\u0275\u0275property("state",S.selected?"checked":"unchecked")("disabled",S.disabled)}}function u(g,f){if(1&g&&(n.\u0275\u0275elementStart(0,"span",6),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&g){const S=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("(",S.group.label,")")}}const b=["*"];let x=(()=>{class g extends o.MP{constructor(S,j,B,Z){super(S,j,B,Z)}}return g.\u0275fac=function(S){return new(S||g)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(o.HF,8),n.\u0275\u0275directiveInject(o.K7,8))},g.\u0275cmp=n.\u0275\u0275defineComponent({type:g,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(S,j){1&S&&n.\u0275\u0275listener("click",function(){return j._selectViaInteraction()})("keydown",function(Z){return j._handleKeydown(Z)}),2&S&&(n.\u0275\u0275hostProperty("id",j.id),n.\u0275\u0275attribute("tabindex",j._getTabIndex())("aria-selected",j.selected)("aria-disabled",j.disabled.toString()),n.\u0275\u0275classProp("mat-selected",j.selected)("mat-option-multiple",j.multiple)("mat-active",j.active)("mat-option-disabled",j.disabled))},exportAs:["matOption"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:b,decls:6,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(S,j){1&S&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,d,1,2,"mat-pseudo-checkbox",0),n.\u0275\u0275elementStart(1,"span",1,2),n.\u0275\u0275projection(3),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(4,u,2,1,"span",3),n.\u0275\u0275element(5,"div",4)),2&S&&(n.\u0275\u0275property("ngIf",j.multiple),n.\u0275\u0275advance(4),n.\u0275\u0275property("ngIf",j.group&&j.group._inert),n.\u0275\u0275advance(1),n.\u0275\u0275property("matRippleTrigger",j._getHostElement())("matRippleDisabled",j.disabled||j.disableRipple))},dependencies:[o.wG,e.NgIf,o.nP],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),g})(),w=(()=>{class g{}return g.\u0275fac=function(S){return new(S||g)},g.\u0275mod=n.\u0275\u0275defineNgModule({type:g}),g.\u0275inj=n.\u0275\u0275defineInjector({imports:[o.si,e.CommonModule,o.BQ,o.us]}),g})()},9095:(G,P,a)=>{"use strict";a.d(P,{eJ:()=>ai,on:()=>Zt,yj:()=>re,hV:()=>Rt});var n=a(2687),e=a(8184),o=a(3353),l=a(4080),v=a(6895),d=a(4650),u=a(9521),b=a(8929),C=a(8514),x=a(1086),w=a(445),g=a(1059);function f(Ee,Re){}class S{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let B=(()=>{class Ee extends l.en{constructor(We,xt,Ht,wt,Mt,It,se,we){super(),this._elementRef=We,this._focusTrapFactory=xt,this._config=wt,this._interactivityChecker=Mt,this._ngZone=It,this._overlayRef=se,this._focusMonitor=we,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Le=>{this._portalOutlet.hasAttached();const Ie=this._portalOutlet.attachDomPortal(Le);return this._contentAttached(),Ie},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Ht}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(We){this._portalOutlet.hasAttached();const xt=this._portalOutlet.attachComponentPortal(We);return this._contentAttached(),xt}attachTemplatePortal(We){this._portalOutlet.hasAttached();const xt=this._portalOutlet.attachTemplatePortal(We);return this._contentAttached(),xt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(We,xt){this._interactivityChecker.isFocusable(We)||(We.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ht=()=>{We.removeEventListener("blur",Ht),We.removeEventListener("mousedown",Ht),We.removeAttribute("tabindex")};We.addEventListener("blur",Ht),We.addEventListener("mousedown",Ht)})),We.focus(xt)}_focusByCssSelector(We,xt){let Ht=this._elementRef.nativeElement.querySelector(We);Ht&&this._forceFocus(Ht,xt)}_trapFocus(){const We=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||We.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(xt=>{xt||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const We=this._config.restoreFocus;let xt=null;if("string"==typeof We?xt=this._document.querySelector(We):"boolean"==typeof We?xt=We?this._elementFocusedBeforeDialogWasOpened:null:We&&(xt=We),this._config.restoreFocus&&xt&&"function"==typeof xt.focus){const Ht=(0,o.ht)(),wt=this._elementRef.nativeElement;(!Ht||Ht===this._document.body||Ht===wt||wt.contains(Ht))&&(this._focusMonitor?(this._focusMonitor.focusVia(xt,this._closeInteractionType),this._closeInteractionType=null):xt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const We=this._elementRef.nativeElement,xt=(0,o.ht)();return We===xt||We.contains(xt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,o.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return Ee.\u0275fac=function(We){return new(We||Ee)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(n.qV),d.\u0275\u0275directiveInject(v.DOCUMENT,8),d.\u0275\u0275directiveInject(S),d.\u0275\u0275directiveInject(n.ic),d.\u0275\u0275directiveInject(d.NgZone),d.\u0275\u0275directiveInject(e.Iu),d.\u0275\u0275directiveInject(n.tE))},Ee.\u0275cmp=d.\u0275\u0275defineComponent({type:Ee,selectors:[["cdk-dialog-container"]],viewQuery:function(We,xt){if(1&We&&d.\u0275\u0275viewQuery(l.Pl,7),2&We){let Ht;d.\u0275\u0275queryRefresh(Ht=d.\u0275\u0275loadQuery())&&(xt._portalOutlet=Ht.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(We,xt){2&We&&d.\u0275\u0275attribute("id",xt._config.id||null)("role",xt._config.role)("aria-modal",xt._config.ariaModal)("aria-labelledby",xt._config.ariaLabel?null:xt._ariaLabelledBy)("aria-label",xt._config.ariaLabel)("aria-describedby",xt._config.ariaDescribedBy||null)},features:[d.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(We,xt){1&We&&d.\u0275\u0275template(0,f,0,0,"ng-template",0)},dependencies:[l.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),Ee})();class Z{constructor(Re,We){this.overlayRef=Re,this.config=We,this.closed=new b.xQ,this.disableClose=We.disableClose,this.backdropClick=Re.backdropClick(),this.keydownEvents=Re.keydownEvents(),this.outsidePointerEvents=Re.outsidePointerEvents(),this.id=We.id,this.keydownEvents.subscribe(xt=>{xt.keyCode===u.hY&&!this.disableClose&&!(0,u.Vb)(xt)&&(xt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Re.detachments().subscribe(()=>{!1!==We.closeOnOverlayDetachments&&this.close()})}close(Re,We){if(this.containerInstance){const xt=this.closed;this.containerInstance._closeInteractionType=We?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),xt.next(Re),xt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Re="",We=""){return this.overlayRef.updateSize({width:Re,height:We}),this}addPanelClass(Re){return this.overlayRef.addPanelClass(Re),this}removePanelClass(Re){return this.overlayRef.removePanelClass(Re),this}}const le=new d.InjectionToken("DialogScrollStrategy"),q=new d.InjectionToken("DialogData"),X=new d.InjectionToken("DefaultDialogConfig"),U={provide:le,deps:[e.aV],useFactory:function K(Ee){return()=>Ee.scrollStrategies.block()}};let me=0,xe=(()=>{class Ee{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(We,xt,Ht,wt,Mt,It){this._overlay=We,this._injector=xt,this._defaultOptions=Ht,this._parentDialog=wt,this._overlayContainer=Mt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new b.xQ,this._afterOpenedAtThisLevel=new b.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,C.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,g.O)(void 0))),this._scrollStrategy=It}open(We,xt){(xt={...this._defaultOptions||new S,...xt}).id=xt.id||"cdk-dialog-"+me++,xt.id&&this.getDialogById(xt.id);const wt=this._getOverlayConfig(xt),Mt=this._overlay.create(wt),It=new Z(Mt,xt),se=this._attachContainer(Mt,It,xt);return It.containerInstance=se,this._attachDialogContent(We,It,se,xt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(It),It.closed.subscribe(()=>this._removeOpenDialog(It,!0)),this.afterOpened.next(It),It}closeAll(){ne(this.openDialogs,We=>We.close())}getDialogById(We){return this.openDialogs.find(xt=>xt.id===We)}ngOnDestroy(){ne(this._openDialogsAtThisLevel,We=>{!1===We.config.closeOnDestroy&&this._removeOpenDialog(We,!1)}),ne(this._openDialogsAtThisLevel,We=>We.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(We){const xt=new e.X_({positionStrategy:We.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:We.scrollStrategy||this._scrollStrategy(),panelClass:We.panelClass,hasBackdrop:We.hasBackdrop,direction:We.direction,minWidth:We.minWidth,minHeight:We.minHeight,maxWidth:We.maxWidth,maxHeight:We.maxHeight,width:We.width,height:We.height,disposeOnNavigation:We.closeOnNavigation});return We.backdropClass&&(xt.backdropClass=We.backdropClass),xt}_attachContainer(We,xt,Ht){const wt=Ht.injector||Ht.viewContainerRef?.injector,Mt=[{provide:S,useValue:Ht},{provide:Z,useValue:xt},{provide:e.Iu,useValue:We}];let It;Ht.container?"function"==typeof Ht.container?It=Ht.container:(It=Ht.container.type,Mt.push(...Ht.container.providers(Ht))):It=B;const se=new l.C5(It,Ht.viewContainerRef,d.Injector.create({parent:wt||this._injector,providers:Mt}),Ht.componentFactoryResolver);return We.attach(se).instance}_attachDialogContent(We,xt,Ht,wt){if(We instanceof d.TemplateRef){const Mt=this._createInjector(wt,xt,Ht,void 0);let It={$implicit:wt.data,dialogRef:xt};wt.templateContext&&(It={...It,..."function"==typeof wt.templateContext?wt.templateContext():wt.templateContext}),Ht.attachTemplatePortal(new l.UE(We,null,It,Mt))}else{const Mt=this._createInjector(wt,xt,Ht,this._injector),It=Ht.attachComponentPortal(new l.C5(We,wt.viewContainerRef,Mt,wt.componentFactoryResolver));xt.componentInstance=It.instance}}_createInjector(We,xt,Ht,wt){const Mt=We.injector||We.viewContainerRef?.injector,It=[{provide:q,useValue:We.data},{provide:Z,useValue:xt}];return We.providers&&("function"==typeof We.providers?It.push(...We.providers(xt,We,Ht)):It.push(...We.providers)),We.direction&&(!Mt||!Mt.get(w.Is,null,{optional:!0}))&&It.push({provide:w.Is,useValue:{value:We.direction,change:(0,x.of)()}}),d.Injector.create({parent:Mt||wt,providers:It})}_removeOpenDialog(We,xt){const Ht=this.openDialogs.indexOf(We);Ht>-1&&(this.openDialogs.splice(Ht,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((wt,Mt)=>{wt?Mt.setAttribute("aria-hidden",wt):Mt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),xt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const We=this._overlayContainer.getContainerElement();if(We.parentElement){const xt=We.parentElement.children;for(let Ht=xt.length-1;Ht>-1;Ht--){const wt=xt[Ht];wt!==We&&"SCRIPT"!==wt.nodeName&&"STYLE"!==wt.nodeName&&!wt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(wt,wt.getAttribute("aria-hidden")),wt.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const We=this._parentDialog;return We?We._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return Ee.\u0275fac=function(We){return new(We||Ee)(d.\u0275\u0275inject(e.aV),d.\u0275\u0275inject(d.Injector),d.\u0275\u0275inject(X,8),d.\u0275\u0275inject(Ee,12),d.\u0275\u0275inject(e.Xj),d.\u0275\u0275inject(le))},Ee.\u0275prov=d.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})();function ne(Ee,Re){let We=Ee.length;for(;We--;)Re(Ee[We])}let Ze=(()=>{class Ee{}return Ee.\u0275fac=function(We){return new(We||Ee)},Ee.\u0275mod=d.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=d.\u0275\u0275defineInjector({providers:[xe,U],imports:[e.U8,l.eL,n.rt,l.eL]}),Ee})();var Oe=a(3238),nt=a(6787),qe=a(2198),ct=a(2986),ot=a(7340);class jt{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}let lt=(()=>{class Ee extends B{constructor(We,xt,Ht,wt,Mt,It,se,we){super(We,xt,Ht,wt,Mt,It,se,we),this._animationStateChanged=new d.EventEmitter}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(We){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:We})}}return Ee.\u0275fac=function(We){return new(We||Ee)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(n.qV),d.\u0275\u0275directiveInject(v.DOCUMENT,8),d.\u0275\u0275directiveInject(jt),d.\u0275\u0275directiveInject(n.ic),d.\u0275\u0275directiveInject(d.NgZone),d.\u0275\u0275directiveInject(e.Iu),d.\u0275\u0275directiveInject(n.tE))},Ee.\u0275cmp=d.\u0275\u0275defineComponent({type:Ee,selectors:[["ng-component"]],features:[d.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(We,xt){},encapsulation:2}),Ee})();class H{constructor(Re,We,xt){this._ref=Re,this._containerInstance=xt,this._afterOpened=new b.xQ,this._beforeClosed=new b.xQ,this._state=0,this.disableClose=We.disableClose,this.id=Re.id,xt._animationStateChanged.pipe((0,qe.h)(Ht=>"opened"===Ht.state),(0,ct.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),xt._animationStateChanged.pipe((0,qe.h)(Ht=>"closed"===Ht.state),(0,ct.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Re.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,nt.T)(this.backdropClick(),this.keydownEvents().pipe((0,qe.h)(Ht=>Ht.keyCode===u.hY&&!this.disableClose&&!(0,u.Vb)(Ht)))).subscribe(Ht=>{this.disableClose||(Ht.preventDefault(),function W(Ee,Re,We){Ee._closeInteractionType=Re,Ee.close(We)}(this,"keydown"===Ht.type?"keyboard":"mouse"))})}close(Re){this._result=Re,this._containerInstance._animationStateChanged.pipe((0,qe.h)(We=>"closing"===We.state),(0,ct.q)(1)).subscribe(We=>{this._beforeClosed.next(Re),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),We.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Re){let We=this._ref.config.positionStrategy;return Re&&(Re.left||Re.right)?Re.left?We.left(Re.left):We.right(Re.right):We.centerHorizontally(),Re&&(Re.top||Re.bottom)?Re.top?We.top(Re.top):We.bottom(Re.bottom):We.centerVertically(),this._ref.updatePosition(),this}updateSize(Re="",We=""){return this._ref.updateSize(Re,We),this}addPanelClass(Re){return this._ref.addPanelClass(Re),this}removePanelClass(Re){return this._ref.removePanelClass(Re),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}let ut=0,te=(()=>{class Ee{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const We=this._parentDialog;return We?We._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(We,xt,Ht,wt,Mt,It,se,we,Le,Ie){this._overlay=We,this._defaultOptions=Ht,this._parentDialog=wt,this._dialogRefConstructor=se,this._dialogContainerType=we,this._dialogDataToken=Le,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new b.xQ,this._afterOpenedAtThisLevel=new b.xQ,this._idPrefix="mat-dialog-",this.dialogConfigClass=jt,this.afterAllClosed=(0,C.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,g.O)(void 0))),this._scrollStrategy=It,this._dialog=xt.get(xe)}open(We,xt){let Ht;(xt={...this._defaultOptions||new jt,...xt}).id=xt.id||`${this._idPrefix}${ut++}`,xt.scrollStrategy=xt.scrollStrategy||this._scrollStrategy();const wt=this._dialog.open(We,{...xt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:xt},{provide:S,useValue:xt}]},templateContext:()=>({dialogRef:Ht}),providers:(Mt,It,se)=>(Ht=new this._dialogRefConstructor(Mt,xt,se),Ht.updatePosition(xt?.position),[{provide:this._dialogContainerType,useValue:se},{provide:this._dialogDataToken,useValue:It.data},{provide:this._dialogRefConstructor,useValue:Ht}])});return Ht.componentInstance=wt.componentInstance,this.openDialogs.push(Ht),this.afterOpened.next(Ht),Ht.afterClosed().subscribe(()=>{const Mt=this.openDialogs.indexOf(Ht);Mt>-1&&(this.openDialogs.splice(Mt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Ht}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(We){return this.openDialogs.find(xt=>xt.id===We)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(We){let xt=We.length;for(;xt--;)We[xt].close()}}return Ee.\u0275fac=function(We){d.\u0275\u0275invalidFactory()},Ee.\u0275prov=d.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})();const Pt={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Bt={dialogContainer:(0,ot.X$)("dialogContainer",[(0,ot.SB)("void, exit",(0,ot.oB)({opacity:0,transform:"scale(0.7)"})),(0,ot.SB)("enter",(0,ot.oB)({transform:"none"})),(0,ot.eR)("* => enter",(0,ot.ru)([(0,ot.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,ot.oB)({transform:"none",opacity:1})),(0,ot.IO)("@*",(0,ot.pV)(),{optional:!0})]),Pt),(0,ot.eR)("* => void, * => exit",(0,ot.ru)([(0,ot.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ot.oB)({opacity:0})),(0,ot.IO)("@*",(0,ot.pV)(),{optional:!0})]),Pt)])};function st(Ee,Re){}const Nt_params_enterAnimationDuration="150ms",Nt_params_exitAnimationDuration="75ms";class at extends jt{constructor(){super(...arguments),this.enterAnimationDuration=Pt.params.enterAnimationDuration,this.exitAnimationDuration=Pt.params.exitAnimationDuration}}let Lt=(()=>{class Ee extends lt{_onAnimationDone({toState:We,totalTime:xt}){"enter"===We?this._openAnimationDone(xt):"exit"===We&&this._animationStateChanged.next({state:"closed",totalTime:xt})}_onAnimationStart({toState:We,totalTime:xt}){"enter"===We?this._animationStateChanged.next({state:"opening",totalTime:xt}):("exit"===We||"void"===We)&&this._animationStateChanged.next({state:"closing",totalTime:xt})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}constructor(We,xt,Ht,wt,Mt,It,se,we,Le){super(We,xt,Ht,wt,Mt,It,se,Le),this._changeDetectorRef=we,this._state="enter"}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Nt_params_enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Nt_params_exitAnimationDuration}}}}return Ee.\u0275fac=function(We){return new(We||Ee)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(n.qV),d.\u0275\u0275directiveInject(v.DOCUMENT,8),d.\u0275\u0275directiveInject(at),d.\u0275\u0275directiveInject(n.ic),d.\u0275\u0275directiveInject(d.NgZone),d.\u0275\u0275directiveInject(e.Iu),d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(n.tE))},Ee.\u0275cmp=d.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(We,xt){1&We&&d.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(wt){return xt._onAnimationStart(wt)})("@dialogContainer.done",function(wt){return xt._onAnimationDone(wt)}),2&We&&(d.\u0275\u0275hostProperty("id",xt._config.id),d.\u0275\u0275attribute("aria-modal",xt._config.ariaModal)("role",xt._config.role)("aria-labelledby",xt._config.ariaLabel?null:xt._ariaLabelledBy)("aria-label",xt._config.ariaLabel)("aria-describedby",xt._config.ariaDescribedBy||null),d.\u0275\u0275syntheticHostProperty("@dialogContainer",xt._getAnimationState()))},features:[d.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(We,xt){1&We&&d.\u0275\u0275template(0,st,0,0,"ng-template",0)},dependencies:[l.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Bt.dialogContainer]}}),Ee})();class Rt extends H{}const ai=new d.InjectionToken("MatDialogData"),Xt=new d.InjectionToken("mat-dialog-default-options"),ui=new d.InjectionToken("mat-dialog-scroll-strategy"),Ut={provide:ui,deps:[e.aV],useFactory:function vt(Ee){return()=>Ee.scrollStrategies.block()}};let Zt=(()=>{class Ee extends te{constructor(We,xt,Ht,wt,Mt,It,se,we){super(We,xt,wt,It,se,Mt,Rt,Lt,ai,we),this.dialogConfigClass=at}}return Ee.\u0275fac=function(We){return new(We||Ee)(d.\u0275\u0275inject(e.aV),d.\u0275\u0275inject(d.Injector),d.\u0275\u0275inject(v.Location,8),d.\u0275\u0275inject(Xt,8),d.\u0275\u0275inject(ui),d.\u0275\u0275inject(Ee,12),d.\u0275\u0275inject(e.Xj),d.\u0275\u0275inject(d.ANIMATION_MODULE_TYPE,8))},Ee.\u0275prov=d.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})(),re=(()=>{class Ee{}return Ee.\u0275fac=function(We){return new(We||Ee)},Ee.\u0275mod=d.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=d.\u0275\u0275defineInjector({providers:[Zt,Ut],imports:[Ze,e.U8,l.eL,Oe.BQ,Oe.BQ]}),Ee})()},8455:(G,P,a)=>{"use strict";a.d(P,{wp:()=>mi});var n=a(9643),e=a(6895),o=a(4650),l=a(3238);let mi=(()=>{class Qt{}return Qt.\u0275fac=function(lt){return new(lt||Qt)},Qt.\u0275mod=o.\u0275\u0275defineNgModule({type:Qt}),Qt.\u0275inj=o.\u0275\u0275defineInjector({imports:[e.CommonModule,l.BQ,n.Q8,l.BQ]}),Qt})()},2042:(G,P,a)=>{"use strict";a.d(P,{k0:()=>Z,x4:()=>le});var n=a(4650),e=a(1281),o=a(3353),l=a(9349),v=a(4006),d=a(3238),u=a(9549),b=a(8929);const x=new n.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"),w=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;const f=(0,d.FD)(class{constructor(q,X,K,U){this._defaultErrorStateMatcher=q,this._parentForm=X,this._parentFormGroup=K,this.ngControl=U,this.stateChanges=new b.xQ}});let S=(()=>{class q extends f{get disabled(){return this._disabled}set disabled(K){this._disabled=(0,e.Ig)(K),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(K){this._id=K||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(v.kI.required)??!1}set required(K){this._required=(0,e.Ig)(K)}get type(){return this._type}set type(K){this._type=K||"text",this._validateType(),!this._isTextarea&&(0,o.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(K){K!==this.value&&(this._inputValueAccessor.value=K,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(K){this._readonly=(0,e.Ig)(K)}constructor(K,U,me,xe,ne,Ze,Oe,nt,qe,ct){super(Ze,xe,ne,me),this._elementRef=K,this._platform=U,this._autofillMonitor=nt,this._formField=ct,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new b.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(jt=>(0,o.qK)().has(jt)),this._iOSKeyupListener=jt=>{const zt=jt.target;!zt.value&&0===zt.selectionStart&&0===zt.selectionEnd&&(zt.setSelectionRange(1,1),zt.setSelectionRange(0,0))};const ot=this._elementRef.nativeElement,dt=ot.nodeName.toLowerCase();this._inputValueAccessor=Oe||ot,this._previousNativeValue=this.value,this.id=this.id,U.IOS&&qe.runOutsideAngular(()=>{K.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===dt,this._isTextarea="textarea"===dt,this._isInFormField=!!ct,this._isNativeSelect&&(this.controlType=ot.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(K=>{this.autofilled=K.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(K){this._elementRef.nativeElement.focus(K)}_focusChanged(K){K!==this.focused&&(this.focused=K,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const K=this._elementRef.nativeElement.value;this._previousNativeValue!==K&&(this._previousNativeValue=K,this.stateChanges.next())}_dirtyCheckPlaceholder(){const K=this._getPlaceholder();if(K!==this._previousPlaceholder){const U=this._elementRef.nativeElement;this._previousPlaceholder=K,K?U.setAttribute("placeholder",K):U.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){w.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let K=this._elementRef.nativeElement.validity;return K&&K.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const K=this._elementRef.nativeElement,U=K.options[0];return this.focused||K.multiple||!this.empty||!!(K.selectedIndex>-1&&U&&U.label)}return this.focused||!this.empty}setDescribedByIds(K){K.length?this._elementRef.nativeElement.setAttribute("aria-describedby",K.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const K=this._elementRef.nativeElement;return this._isNativeSelect&&(K.multiple||K.size>1)}}return q.\u0275fac=function(K){return new(K||q)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(o.t4),n.\u0275\u0275directiveInject(v.a5,10),n.\u0275\u0275directiveInject(v.F,8),n.\u0275\u0275directiveInject(v.sg,8),n.\u0275\u0275directiveInject(d.rD),n.\u0275\u0275directiveInject(x,10),n.\u0275\u0275directiveInject(l.Lq),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(u.G_,8))},q.\u0275dir=n.\u0275\u0275defineDirective({type:q,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(K,U){1&K&&n.\u0275\u0275listener("focus",function(){return U._focusChanged(!0)})("blur",function(){return U._focusChanged(!1)})("input",function(){return U._onInput()}),2&K&&(n.\u0275\u0275hostProperty("id",U.id)("disabled",U.disabled)("required",U.required),n.\u0275\u0275attribute("name",U.name||null)("readonly",U.readonly&&!U._isNativeSelect||null)("aria-invalid",U.empty&&U.required?null:U.errorState)("aria-required",U.required)("id",U.id),n.\u0275\u0275classProp("mat-input-server",U._isServer)("mat-mdc-form-field-textarea-control",U._isInFormField&&U._isTextarea)("mat-mdc-form-field-input-control",U._isInFormField)("mdc-text-field__input",U._isInFormField)("mat-mdc-native-select-inline",U._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[n.\u0275\u0275ProvidersFeature([{provide:u.Eo,useExisting:q}]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),q})();var B=a(8455);let Z=(()=>{class q extends S{constructor(){super(...arguments),this._legacyFormField=(0,n.inject)(u.G_,{optional:!0})}_getPlaceholder(){const K=this._legacyFormField;return K&&"legacy"===K.appearance&&!K._hasLabel?.()?null:this.placeholder}}return q.\u0275fac=function(){let X;return function(U){return(X||(X=n.\u0275\u0275getInheritedFactory(q)))(U||q)}}(),q.\u0275dir=n.\u0275\u0275defineDirective({type:q,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:15,hostBindings:function(K,U){2&K&&(n.\u0275\u0275attribute("data-placeholder",U.placeholder),n.\u0275\u0275classProp("mat-input-server",U._isServer)("mat-mdc-input-element",!1)("mat-mdc-form-field-textarea-control",!1)("mat-mdc-form-field-input-control",!1)("mdc-text-field__input",!1)("mat-mdc-native-select-inline",!1)("mat-native-select-inline",U._isInlineSelect()))},exportAs:["matInput"],features:[n.\u0275\u0275ProvidersFeature([{provide:u.Eo,useExisting:q}]),n.\u0275\u0275InheritDefinitionFeature]}),q})(),le=(()=>{class q{}return q.\u0275fac=function(K){return new(K||q)},q.\u0275mod=n.\u0275\u0275defineNgModule({type:q}),q.\u0275inj=n.\u0275\u0275defineInjector({providers:[d.rD],imports:[l.Ky,B.wp,d.BQ,l.Ky,B.wp]}),q})()},9982:(G,P,a)=>{"use strict";a.d(P,{Zj:()=>_i,oh:()=>ue,gR:()=>wt});var n=a(6895),e=a(4650),o=a(3238),l=a(1281),b=(a(3353),a(2654),a(6787),a(8929)),S=(a(9643),a(2687),a(5017),a(9521),a(4006),a(7625));const Qe=new e.InjectionToken("MatList"),et=new e.InjectionToken("MatNavList");a(1059);var st=a(8014);const Nt=["*"],Lt=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Rt=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Ut=(0,o.Id)((0,o.Kr)(class{})),Zt=(0,o.Kr)(class{});let _i=(()=>{class Mt extends Ut{constructor(se){super(),this._elementRef=se,this._stateChanges=new b.xQ,"action-list"===this._getListType()&&(se.nativeElement.classList.add("mat-action-list"),se.nativeElement.setAttribute("role","group"))}_getListType(){const se=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===se?"list":"mat-action-list"===se?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Mt.\u0275fac=function(se){return new(se||Mt)(e.\u0275\u0275directiveInject(e.ElementRef))},Mt.\u0275cmp=e.\u0275\u0275defineComponent({type:Mt,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e.\u0275\u0275ProvidersFeature([{provide:Qe,useExisting:Mt}]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Nt,decls:1,vars:0,template:function(se,we){1&se&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275projection(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Mt})(),pi=(()=>{class Mt{}return Mt.\u0275fac=function(se){return new(se||Mt)},Mt.\u0275dir=e.\u0275\u0275defineDirective({type:Mt,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Mt})(),Bi=(()=>{class Mt{}return Mt.\u0275fac=function(se){return new(se||Mt)},Mt.\u0275dir=e.\u0275\u0275defineDirective({type:Mt,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Mt})(),ue=(()=>{class Mt extends Zt{constructor(se,we,Le,Ie){super(),this._element=se,this._isInteractiveList=!1,this._destroyed=new b.xQ,this._disabled=!1,this._isInteractiveList=!!(Le||Ie&&"action-list"===Ie._getListType()),this._list=Le||Ie;const Ot=this._getHostElement();"button"===Ot.nodeName.toLowerCase()&&!Ot.hasAttribute("type")&&Ot.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,S.R)(this._destroyed)).subscribe(()=>{we.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(se){this._disabled=(0,l.Ig)(se)}ngAfterContentInit(){(0,o.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return Mt.\u0275fac=function(se){return new(se||Mt)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(et,8),e.\u0275\u0275directiveInject(Qe,8))},Mt.\u0275cmp=e.\u0275\u0275defineComponent({type:Mt,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(se,we,Le){if(1&se&&(e.\u0275\u0275contentQuery(Le,pi,5),e.\u0275\u0275contentQuery(Le,Bi,5),e.\u0275\u0275contentQuery(Le,o.X2,5)),2&se){let Ie;e.\u0275\u0275queryRefresh(Ie=e.\u0275\u0275loadQuery())&&(we._avatar=Ie.first),e.\u0275\u0275queryRefresh(Ie=e.\u0275\u0275loadQuery())&&(we._icon=Ie.first),e.\u0275\u0275queryRefresh(Ie=e.\u0275\u0275loadQuery())&&(we._lines=Ie)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(se,we){2&se&&e.\u0275\u0275classProp("mat-list-item-disabled",we.disabled)("mat-list-item-with-avatar",we._avatar||we._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[e.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Rt,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(se,we){1&se&&(e.\u0275\u0275projectionDef(Lt),e.\u0275\u0275elementStart(0,"span",0),e.\u0275\u0275element(1,"span",1),e.\u0275\u0275projection(2),e.\u0275\u0275elementStart(3,"span",2),e.\u0275\u0275projection(4,1),e.\u0275\u0275elementEnd(),e.\u0275\u0275projection(5,2),e.\u0275\u0275elementEnd()),2&se&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("matRippleTrigger",we._getHostElement())("matRippleDisabled",we._isRippleDisabled()))},dependencies:[o.wG],encapsulation:2,changeDetection:0}),Mt})(),wt=(()=>{class Mt{}return Mt.\u0275fac=function(se){return new(se||Mt)},Mt.\u0275mod=e.\u0275\u0275defineNgModule({type:Mt}),Mt.\u0275inj=e.\u0275\u0275defineInjector({imports:[o.uc,o.si,o.BQ,o.us,n.CommonModule,o.uc,o.BQ,o.us,st.t]}),Mt})()},6255:(G,P,a)=>{"use strict";a.d(P,{jT:()=>Be});var n=a(4650),o=(a(7340),a(8184));a(3353);const ct={provide:new n.InjectionToken("mat-menu-scroll-strategy"),deps:[o.aV],useFactory:function qe(mt){return()=>mt.scrollStrategies.reposition()}};var mi=a(6895),Qt=a(3238),Jt=a(3668);let Be=(()=>{class mt{}return mt.\u0275fac=function(Qe){return new(Qe||mt)},mt.\u0275mod=n.\u0275\u0275defineNgModule({type:mt}),mt.\u0275inj=n.\u0275\u0275defineInjector({providers:[ct],imports:[mi.CommonModule,Qt.BQ,Qt.si,o.U8,Jt.ZD,Qt.BQ]}),mt})()},6289:(G,P,a)=>{"use strict";a.d(P,{x8:()=>Rt,uw:()=>ai});var n=a(8184),e=a(6895),o=a(4650),l=a(3238),v=a(4363),d=a(9549),u=a(8455),b=a(3668),C=a(2687),x=a(445),w=a(1281),g=a(5017),f=a(9521),S=a(4006),j=a(8929),B=a(8514),Z=a(6787),le=a(1059),q=a(7545),X=a(2986),K=a(2198),U=a(4850),me=a(5778),xe=a(7625),ne=a(7340);const Ze=["trigger"],Oe=["panel"];let lt=0;const _t=new o.InjectionToken("mat-select-scroll-strategy"),Ae=new o.InjectionToken("MAT_SELECT_CONFIG"),H={provide:_t,deps:[n.aV],useFactory:function Fe(Xt){return()=>Xt.scrollStrategies.reposition()}},W=new o.InjectionToken("MatSelectTrigger"),Te=(0,l.Kr)((0,l.sb)((0,l.Id)((0,l.FD)(class{constructor(Xt,ui,vt,Ut,Zt){this._elementRef=Xt,this._defaultErrorStateMatcher=ui,this._parentForm=vt,this._parentFormGroup=Ut,this.ngControl=Zt,this.stateChanges=new j.xQ}}))));let Be=(()=>{class Xt extends Te{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(vt){this._placeholder=vt,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(S.kI.required)??!1}set required(vt){this._required=(0,w.Ig)(vt),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(vt){this._multiple=(0,w.Ig)(vt)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(vt){this._disableOptionCentering=(0,w.Ig)(vt)}get compareWith(){return this._compareWith}set compareWith(vt){this._compareWith=vt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(vt){this._assignValue(vt)&&this._onChange(vt)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(vt){this._typeaheadDebounceInterval=(0,w.su)(vt)}get id(){return this._id}set id(vt){this._id=vt||this._uid,this.stateChanges.next()}constructor(vt,Ut,Zt,Ci,_i,pi,Bi,ze,ue,re,Ee,Re,We,xt){super(_i,Ci,Bi,ze,re),this._viewportRuler=vt,this._changeDetectorRef=Ut,this._ngZone=Zt,this._dir=pi,this._parentFormField=ue,this._liveAnnouncer=We,this._defaultOptions=xt,this._panelOpen=!1,this._compareWith=(Ht,wt)=>Ht===wt,this._uid="mat-select-"+lt++,this._triggerAriaLabelledBy=null,this._destroy=new j.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+lt++,this._panelDoneAnimatingStream=new j.xQ,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,B.P)(()=>{const Ht=this.options;return Ht?Ht.changes.pipe((0,le.O)(Ht),(0,q.w)(()=>(0,Z.T)(...Ht.map(wt=>wt.onSelectionChange)))):this._ngZone.onStable.pipe((0,X.q)(1),(0,q.w)(()=>this.optionSelectionChanges))}),this.openedChange=new o.EventEmitter,this._openedStream=this.openedChange.pipe((0,K.h)(Ht=>Ht),(0,U.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,K.h)(Ht=>!Ht),(0,U.U)(()=>{})),this.selectionChange=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this),null!=xt?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=xt.typeaheadDebounceInterval),this._scrollStrategyFactory=Re,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Ee)||0,this.id=this.id}ngOnInit(){this._selectionModel=new g.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,me.x)(),(0,xe.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,xe.R)(this._destroy)).subscribe(vt=>{vt.added.forEach(Ut=>Ut.select()),vt.removed.forEach(Ut=>Ut.deselect())}),this.options.changes.pipe((0,le.O)(null),(0,xe.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const vt=this._getTriggerAriaLabelledby(),Ut=this.ngControl;if(vt!==this._triggerAriaLabelledBy){const Zt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=vt,vt?Zt.setAttribute("aria-labelledby",vt):Zt.removeAttribute("aria-labelledby")}Ut&&(this._previousControl!==Ut.control&&(void 0!==this._previousControl&&null!==Ut.disabled&&Ut.disabled!==this.disabled&&(this.disabled=Ut.disabled),this._previousControl=Ut.control),this.updateErrorState())}ngOnChanges(vt){(vt.disabled||vt.userAriaDescribedBy)&&this.stateChanges.next(),vt.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(vt){this._assignValue(vt)}registerOnChange(vt){this._onChange=vt}registerOnTouched(vt){this._onTouched=vt}setDisabledState(vt){this.disabled=vt,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const vt=this._selectionModel.selected.map(Ut=>Ut.viewValue);return this._isRtl()&&vt.reverse(),vt.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(vt){this.disabled||(this.panelOpen?this._handleOpenKeydown(vt):this._handleClosedKeydown(vt))}_handleClosedKeydown(vt){const Ut=vt.keyCode,Zt=Ut===f.JH||Ut===f.LH||Ut===f.oh||Ut===f.SV,Ci=Ut===f.K5||Ut===f.L_,_i=this._keyManager;if(!_i.isTyping()&&Ci&&!(0,f.Vb)(vt)||(this.multiple||vt.altKey)&&Zt)vt.preventDefault(),this.open();else if(!this.multiple){const pi=this.selected;_i.onKeydown(vt);const Bi=this.selected;Bi&&pi!==Bi&&this._liveAnnouncer.announce(Bi.viewValue,1e4)}}_handleOpenKeydown(vt){const Ut=this._keyManager,Zt=vt.keyCode,Ci=Zt===f.JH||Zt===f.LH,_i=Ut.isTyping();if(Ci&&vt.altKey)vt.preventDefault(),this.close();else if(_i||Zt!==f.K5&&Zt!==f.L_||!Ut.activeItem||(0,f.Vb)(vt))if(!_i&&this._multiple&&Zt===f.A&&vt.ctrlKey){vt.preventDefault();const pi=this.options.some(Bi=>!Bi.disabled&&!Bi.selected);this.options.forEach(Bi=>{Bi.disabled||(pi?Bi.select():Bi.deselect())})}else{const pi=Ut.activeItemIndex;Ut.onKeydown(vt),this._multiple&&Ci&&vt.shiftKey&&Ut.activeItem&&Ut.activeItemIndex!==pi&&Ut.activeItem._selectViaInteraction()}else vt.preventDefault(),Ut.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,X.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(vt){if(this.options.forEach(Ut=>Ut.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&vt)Array.isArray(vt),vt.forEach(Ut=>this._selectOptionByValue(Ut)),this._sortValues();else{const Ut=this._selectOptionByValue(vt);Ut?this._keyManager.updateActiveItem(Ut):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(vt){const Ut=this.options.find(Zt=>{if(this._selectionModel.isSelected(Zt))return!1;try{return null!=Zt.value&&this._compareWith(Zt.value,vt)}catch{return!1}});return Ut&&this._selectionModel.select(Ut),Ut}_assignValue(vt){return!!(vt!==this._value||this._multiple&&Array.isArray(vt))&&(this.options&&this._setSelectionByValue(vt),this._value=vt,!0)}_initKeyManager(){this._keyManager=new C.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const vt=(0,Z.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,xe.R)(vt)).subscribe(Ut=>{this._onSelect(Ut.source,Ut.isUserInput),Ut.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Z.T)(...this.options.map(Ut=>Ut._stateChanges)).pipe((0,xe.R)(vt)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(vt,Ut){const Zt=this._selectionModel.isSelected(vt);null!=vt.value||this._multiple?(Zt!==vt.selected&&(vt.selected?this._selectionModel.select(vt):this._selectionModel.deselect(vt)),Ut&&this._keyManager.setActiveItem(vt),this.multiple&&(this._sortValues(),Ut&&this.focus())):(vt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(vt.value)),Zt!==this._selectionModel.isSelected(vt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const vt=this.options.toArray();this._selectionModel.sort((Ut,Zt)=>this.sortComparator?this.sortComparator(Ut,Zt,vt):vt.indexOf(Ut)-vt.indexOf(Zt)),this.stateChanges.next()}}_propagateChanges(vt){let Ut=null;Ut=this.multiple?this.selected.map(Zt=>Zt.value):this.selected?this.selected.value:vt,this._value=Ut,this.valueChange.emit(Ut),this._onChange(Ut),this.selectionChange.emit(this._getChangeEvent(Ut)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(vt){this._elementRef.nativeElement.focus(vt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const vt=this._parentFormField?.getLabelId();return this.ariaLabelledby?(vt?vt+" ":"")+this.ariaLabelledby:vt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const vt=this._parentFormField?.getLabelId();let Ut=(vt?vt+" ":"")+this._valueId;return this.ariaLabelledby&&(Ut+=" "+this.ariaLabelledby),Ut}_panelDoneAnimating(vt){this.openedChange.emit(vt)}setDescribedByIds(vt){vt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",vt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Xt.\u0275fac=function(vt){return new(vt||Xt)(o.\u0275\u0275directiveInject(b.rL),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(l.rD),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(x.Is,8),o.\u0275\u0275directiveInject(S.F,8),o.\u0275\u0275directiveInject(S.sg,8),o.\u0275\u0275directiveInject(d.G_,8),o.\u0275\u0275directiveInject(S.a5,10),o.\u0275\u0275injectAttribute("tabindex"),o.\u0275\u0275directiveInject(_t),o.\u0275\u0275directiveInject(C.Kd),o.\u0275\u0275directiveInject(Ae,8))},Xt.\u0275dir=o.\u0275\u0275defineDirective({type:Xt,viewQuery:function(vt,Ut){if(1&vt&&(o.\u0275\u0275viewQuery(Ze,5),o.\u0275\u0275viewQuery(Oe,5),o.\u0275\u0275viewQuery(n.pI,5)),2&vt){let Zt;o.\u0275\u0275queryRefresh(Zt=o.\u0275\u0275loadQuery())&&(Ut.trigger=Zt.first),o.\u0275\u0275queryRefresh(Zt=o.\u0275\u0275loadQuery())&&(Ut.panel=Zt.first),o.\u0275\u0275queryRefresh(Zt=o.\u0275\u0275loadQuery())&&(Ut._overlayDir=Zt.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),Xt})();function ut(Xt,ui){if(1&Xt&&(o.\u0275\u0275elementStart(0,"span",8),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Xt){const vt=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(vt.placeholder)}}function te(Xt,ui){if(1&Xt&&(o.\u0275\u0275elementStart(0,"span",12),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Xt){const vt=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(vt.triggerValue)}}function k(Xt,ui){1&Xt&&o.\u0275\u0275projection(0,0,["*ngSwitchCase","true"])}function R(Xt,ui){if(1&Xt&&(o.\u0275\u0275elementStart(0,"span",9),o.\u0275\u0275template(1,te,2,1,"span",10),o.\u0275\u0275template(2,k,1,0,"ng-content",11),o.\u0275\u0275elementEnd()),2&Xt){const vt=o.\u0275\u0275nextContext();o.\u0275\u0275property("ngSwitch",!!vt.customTrigger),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngSwitchCase",!0)}}function be(Xt,ui){if(1&Xt){const vt=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",13)(1,"div",14,15),o.\u0275\u0275listener("@transformPanel.done",function(Zt){o.\u0275\u0275restoreView(vt);const Ci=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Ci._panelDoneAnimatingStream.next(Zt.toState))})("keydown",function(Zt){o.\u0275\u0275restoreView(vt);const Ci=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Ci._handleKeydown(Zt))}),o.\u0275\u0275projection(3,1),o.\u0275\u0275elementEnd()()}if(2&Xt){const vt=o.\u0275\u0275nextContext();o.\u0275\u0275property("@transformPanelWrap",void 0),o.\u0275\u0275advance(1),o.\u0275\u0275classMapInterpolate1("mat-select-panel ",vt._getPanelTheme(),""),o.\u0275\u0275styleProp("transform-origin",vt._transformOrigin)("font-size",vt._triggerFontSize,"px"),o.\u0275\u0275property("ngClass",vt.panelClass)("@transformPanel",vt.multiple?"showing-multiple":"showing"),o.\u0275\u0275attribute("id",vt.id+"-panel")("aria-multiselectable",vt.multiple)("aria-label",vt.ariaLabel||null)("aria-labelledby",vt._getPanelAriaLabelledby())}}const et=[[["mat-select-trigger"]],"*"],Ue=["mat-select-trigger","*"],ge={transformPanelWrap:(0,ne.X$)("transformPanelWrap",[(0,ne.eR)("* => void",(0,ne.IO)("@transformPanel",[(0,ne.pV)()],{optional:!0}))]),transformPanel:(0,ne.X$)("transformPanel",[(0,ne.SB)("void",(0,ne.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ne.SB)("showing",(0,ne.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ne.SB)("showing-multiple",(0,ne.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ne.eR)("void => *",(0,ne.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ne.eR)("* => void",(0,ne.jt)("100ms 25ms linear",(0,ne.oB)({opacity:0})))])};class at{constructor(ui,vt){this.source=ui,this.value=vt}}let Rt=(()=>{class Xt extends Be{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(vt,Ut,Zt){const Ci=this._getItemHeight();return Math.min(Math.max(0,Ci*vt-Ut+Ci/2),Zt)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,xe.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,X.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(vt){const Ut=(0,l.CB)(vt,this.options,this.optionGroups),Zt=this._getItemHeight();this.panel.nativeElement.scrollTop=0===vt&&1===Ut?0:(0,l.jH)((vt+Ut)*Zt,Zt,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(vt){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(vt)}_getChangeEvent(vt){return new at(this,vt)}_getOverlayMinWidth(){return this._triggerRect?.width}_calculateOverlayOffsetX(){const vt=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),Ut=this._viewportRuler.getViewportSize(),Zt=this._isRtl(),Ci=this.multiple?56:32;let _i;if(this.multiple)_i=40;else if(this.disableOptionCentering)_i=16;else{let ze=this._selectionModel.selected[0]||this.options.first;_i=ze&&ze.group?32:16}Zt||(_i*=-1);const pi=0-(vt.left+_i-(Zt?Ci:0)),Bi=vt.right+_i-Ut.width+(Zt?0:Ci);pi>0?_i+=pi+8:Bi>0&&(_i-=Bi+8),this._overlayDir.offsetX=Math.round(_i),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(vt,Ut,Zt){const Ci=this._getItemHeight(),_i=(Ci-this._triggerRect.height)/2,pi=Math.floor(256/Ci);let Bi;return this.disableOptionCentering?0:(Bi=0===this._scrollTop?vt*Ci:this._scrollTop===Zt?(vt-(this._getItemCount()-pi))*Ci+(Ci-(this._getItemCount()*Ci-256)%Ci):Ut-Ci/2,Math.round(-1*Bi-_i))}_checkOverlayWithinViewport(vt){const Ut=this._getItemHeight(),Zt=this._viewportRuler.getViewportSize(),Ci=this._triggerRect.top-8,_i=Zt.height-this._triggerRect.bottom-8,pi=Math.abs(this._offsetY),ze=Math.min(this._getItemCount()*Ut,256)-pi-this._triggerRect.height;ze>_i?this._adjustPanelUp(ze,_i):pi>Ci?this._adjustPanelDown(pi,Ci,vt):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(vt,Ut){const Zt=Math.round(vt-Ut);this._scrollTop-=Zt,this._offsetY-=Zt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(vt,Ut,Zt){const Ci=Math.round(vt-Ut);if(this._scrollTop+=Ci,this._offsetY+=Ci,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Zt)return this._scrollTop=Zt,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const vt=this._getItemHeight(),Ut=this._getItemCount(),Zt=Math.min(Ut*vt,256),_i=Ut*vt-Zt;let pi;pi=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),pi+=(0,l.CB)(pi,this.options,this.optionGroups);const Bi=Zt/2;this._scrollTop=this._calculateOverlayScroll(pi,Bi,_i),this._offsetY=this._calculateOverlayOffsetY(pi,Bi,_i),this._checkOverlayWithinViewport(_i)}_getOriginBasedOnOption(){const vt=this._getItemHeight(),Ut=(vt-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-Ut+vt/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Xt.\u0275fac=function(){let ui;return function(Ut){return(ui||(ui=o.\u0275\u0275getInheritedFactory(Xt)))(Ut||Xt)}}(),Xt.\u0275cmp=o.\u0275\u0275defineComponent({type:Xt,selectors:[["mat-select"]],contentQueries:function(vt,Ut,Zt){if(1&vt&&(o.\u0275\u0275contentQuery(Zt,W,5),o.\u0275\u0275contentQuery(Zt,v.CK,5),o.\u0275\u0275contentQuery(Zt,l.K7,5)),2&vt){let Ci;o.\u0275\u0275queryRefresh(Ci=o.\u0275\u0275loadQuery())&&(Ut.customTrigger=Ci.first),o.\u0275\u0275queryRefresh(Ci=o.\u0275\u0275loadQuery())&&(Ut.options=Ci),o.\u0275\u0275queryRefresh(Ci=o.\u0275\u0275loadQuery())&&(Ut.optionGroups=Ci)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(vt,Ut){1&vt&&o.\u0275\u0275listener("keydown",function(Ci){return Ut._handleKeydown(Ci)})("focus",function(){return Ut._onFocus()})("blur",function(){return Ut._onBlur()}),2&vt&&(o.\u0275\u0275attribute("id",Ut.id)("tabindex",Ut.tabIndex)("aria-controls",Ut.panelOpen?Ut.id+"-panel":null)("aria-expanded",Ut.panelOpen)("aria-label",Ut.ariaLabel||null)("aria-required",Ut.required.toString())("aria-disabled",Ut.disabled.toString())("aria-invalid",Ut.errorState)("aria-activedescendant",Ut._getAriaActiveDescendant()),o.\u0275\u0275classProp("mat-select-disabled",Ut.disabled)("mat-select-invalid",Ut.errorState)("mat-select-required",Ut.required)("mat-select-empty",Ut.empty)("mat-select-multiple",Ut.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o.\u0275\u0275ProvidersFeature([{provide:d.Eo,useExisting:Xt},{provide:l.HF,useExisting:Xt}]),o.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Ue,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(vt,Ut){if(1&vt&&(o.\u0275\u0275projectionDef(et),o.\u0275\u0275elementStart(0,"div",0,1),o.\u0275\u0275listener("click",function(){return Ut.toggle()}),o.\u0275\u0275elementStart(3,"div",2),o.\u0275\u0275template(4,ut,2,1,"span",3),o.\u0275\u0275template(5,R,3,2,"span",4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"div",5),o.\u0275\u0275element(7,"div",6),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(8,be,4,14,"ng-template",7),o.\u0275\u0275listener("backdropClick",function(){return Ut.close()})("attach",function(){return Ut._onAttached()})("detach",function(){return Ut.close()})),2&vt){const Zt=o.\u0275\u0275reference(1);o.\u0275\u0275attribute("aria-owns",Ut.panelOpen?Ut.id+"-panel":null),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngSwitch",Ut.empty),o.\u0275\u0275attribute("id",Ut._valueId),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitchCase",!0),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitchCase",!1),o.\u0275\u0275advance(3),o.\u0275\u0275property("cdkConnectedOverlayPanelClass",Ut._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Ut._scrollStrategy)("cdkConnectedOverlayOrigin",Zt)("cdkConnectedOverlayOpen",Ut.panelOpen)("cdkConnectedOverlayPositions",Ut._positions)("cdkConnectedOverlayMinWidth",Ut._getOverlayMinWidth())("cdkConnectedOverlayOffsetY",Ut._offsetY)}},dependencies:[e.NgClass,e.NgSwitch,e.NgSwitchCase,e.NgSwitchDefault,n.pI,n.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[ge.transformPanelWrap,ge.transformPanel]},changeDetection:0}),Xt})(),ai=(()=>{class Xt{}return Xt.\u0275fac=function(vt){return new(vt||Xt)},Xt.\u0275mod=o.\u0275\u0275defineNgModule({type:Xt}),Xt.\u0275inj=o.\u0275\u0275defineInjector({providers:[H],imports:[e.CommonModule,n.U8,v.Uc,l.BQ,b.ZD,u.wp,v.Uc,l.BQ]}),Xt})()},5001:(G,P,a)=>{"use strict";a.d(P,{pl:()=>lt,y:()=>Jt});var n=a(8184),e=a(4080),o=a(6895),l=a(4650),v=a(3238),d=a(9818),u=a(8929),b=a(7340),C=a(3353),x=a(2986),w=a(7625),g=a(2687),f=a(2289);const Z=Math.pow(2,31)-1;class le{constructor(Fe,Ae){this._overlayRef=Ae,this._afterDismissed=new u.xQ,this._afterOpened=new u.xQ,this._onAction=new u.xQ,this._dismissedByAction=!1,this.containerInstance=Fe,Fe._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(Fe){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(Fe,Z))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const q=new l.InjectionToken("MatSnackBarData");class X{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const ne={snackBarState:(0,b.X$)("state",[(0,b.SB)("void, hidden",(0,b.oB)({transform:"scale(0.8)",opacity:0})),(0,b.SB)("visible",(0,b.oB)({transform:"scale(1)",opacity:1})),(0,b.eR)("* => visible",(0,b.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,b.eR)("* => void, * => hidden",(0,b.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,b.oB)({opacity:0})))])};let Ze=0,Oe=(()=>{class _t extends e.en{constructor(Ae,H,W,He,Te){super(),this._ngZone=Ae,this._elementRef=H,this._changeDetectorRef=W,this._platform=He,this.snackBarConfig=Te,this._document=(0,l.inject)(o.DOCUMENT),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new u.xQ,this._onExit=new u.xQ,this._onEnter=new u.xQ,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+Ze++,this.attachDomPortal=Be=>{this._assertNotAttached();const mt=this._portalOutlet.attachDomPortal(Be);return this._afterPortalAttached(),mt},this._live="assertive"!==Te.politeness||Te.announcementMessage?"off"===Te.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Ae){this._assertNotAttached();const H=this._portalOutlet.attachComponentPortal(Ae);return this._afterPortalAttached(),H}attachTemplatePortal(Ae){this._assertNotAttached();const H=this._portalOutlet.attachTemplatePortal(Ae);return this._afterPortalAttached(),H}onAnimationEnd(Ae){const{fromState:H,toState:W}=Ae;if(("void"===W&&"void"!==H||"hidden"===W)&&this._completeExit(),"visible"===W){const He=this._onEnter;this._ngZone.run(()=>{He.next(),He.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,x.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const Ae=this._elementRef.nativeElement,H=this.snackBarConfig.panelClass;H&&(Array.isArray(H)?H.forEach(W=>Ae.classList.add(W)):Ae.classList.add(H)),this._exposeToModals()}_exposeToModals(){const Ae=this._liveElementId,H=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let W=0;W<H.length;W++){const He=H[W],Te=He.getAttribute("aria-owns");this._trackedModals.add(He),Te?-1===Te.indexOf(Ae)&&He.setAttribute("aria-owns",Te+" "+Ae):He.setAttribute("aria-owns",Ae)}}_clearFromModals(){this._trackedModals.forEach(Ae=>{const H=Ae.getAttribute("aria-owns");if(H){const W=H.replace(this._liveElementId,"").trim();W.length>0?Ae.setAttribute("aria-owns",W):Ae.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Ae=this._elementRef.nativeElement.querySelector("[aria-hidden]"),H=this._elementRef.nativeElement.querySelector("[aria-live]");if(Ae&&H){let W=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Ae.contains(document.activeElement)&&(W=document.activeElement),Ae.removeAttribute("aria-hidden"),H.appendChild(Ae),W?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return _t.\u0275fac=function(Ae){return new(Ae||_t)(l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(C.t4),l.\u0275\u0275directiveInject(X))},_t.\u0275dir=l.\u0275\u0275defineDirective({type:_t,viewQuery:function(Ae,H){if(1&Ae&&l.\u0275\u0275viewQuery(e.Pl,7),2&Ae){let W;l.\u0275\u0275queryRefresh(W=l.\u0275\u0275loadQuery())&&(H._portalOutlet=W.first)}},features:[l.\u0275\u0275InheritDefinitionFeature]}),_t})();const ot=new l.InjectionToken("mat-snack-bar-default-options",{providedIn:"root",factory:function ct(){return new X}});let dt=(()=>{class _t{get _openedSnackBarRef(){const Ae=this._parentSnackBar;return Ae?Ae._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(Ae){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=Ae:this._snackBarRefAtThisLevel=Ae}constructor(Ae,H,W,He,Te,Be){this._overlay=Ae,this._live=H,this._injector=W,this._breakpointObserver=He,this._parentSnackBar=Te,this._defaultConfig=Be,this._snackBarRefAtThisLevel=null}openFromComponent(Ae,H){return this._attach(Ae,H)}openFromTemplate(Ae,H){return this._attach(Ae,H)}open(Ae,H="",W){const He={...this._defaultConfig,...W};return He.data={message:Ae,action:H},He.announcementMessage===Ae&&(He.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,He)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Ae,H){const He=l.Injector.create({parent:H&&H.viewContainerRef&&H.viewContainerRef.injector||this._injector,providers:[{provide:X,useValue:H}]}),Te=new e.C5(this.snackBarContainerComponent,H.viewContainerRef,He),Be=Ae.attach(Te);return Be.instance.snackBarConfig=H,Be.instance}_attach(Ae,H){const W={...new X,...this._defaultConfig,...H},He=this._createOverlay(W),Te=this._attachSnackBarContainer(He,W),Be=new le(Te,He);if(Ae instanceof l.TemplateRef){const mt=new e.UE(Ae,null,{$implicit:W.data,snackBarRef:Be});Be.instance=Te.attachTemplatePortal(mt)}else{const mt=this._createInjector(W,Be),Pe=new e.C5(Ae,void 0,mt),Qe=Te.attachComponentPortal(Pe);Be.instance=Qe.instance}return this._breakpointObserver.observe(f.u3.HandsetPortrait).pipe((0,w.R)(He.detachments())).subscribe(mt=>{He.overlayElement.classList.toggle(this.handsetCssClass,mt.matches)}),W.announcementMessage&&Te._onAnnounce.subscribe(()=>{this._live.announce(W.announcementMessage,W.politeness)}),this._animateSnackBar(Be,W),this._openedSnackBarRef=Be,this._openedSnackBarRef}_animateSnackBar(Ae,H){Ae.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Ae&&(this._openedSnackBarRef=null),H.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Ae.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Ae.containerInstance.enter(),H.duration&&H.duration>0&&Ae.afterOpened().subscribe(()=>Ae._dismissAfter(H.duration))}_createOverlay(Ae){const H=new n.X_;H.direction=Ae.direction;let W=this._overlay.position().global();const He="rtl"===Ae.direction,Te="left"===Ae.horizontalPosition||"start"===Ae.horizontalPosition&&!He||"end"===Ae.horizontalPosition&&He,Be=!Te&&"center"!==Ae.horizontalPosition;return Te?W.left("0"):Be?W.right("0"):W.centerHorizontally(),"top"===Ae.verticalPosition?W.top("0"):W.bottom("0"),H.positionStrategy=W,this._overlay.create(H)}_createInjector(Ae,H){return l.Injector.create({parent:Ae&&Ae.viewContainerRef&&Ae.viewContainerRef.injector||this._injector,providers:[{provide:le,useValue:H},{provide:q,useValue:Ae.data}]})}}return _t.\u0275fac=function(Ae){return new(Ae||_t)(l.\u0275\u0275inject(n.aV),l.\u0275\u0275inject(g.Kd),l.\u0275\u0275inject(l.Injector),l.\u0275\u0275inject(f.Yg),l.\u0275\u0275inject(_t,12),l.\u0275\u0275inject(ot))},_t.\u0275prov=l.\u0275\u0275defineInjectable({token:_t,factory:_t.\u0275fac}),_t})();function zt(_t,Fe){if(1&_t){const Ae=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"div",2)(1,"button",3),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(Ae);const W=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(W.action())}),l.\u0275\u0275text(2),l.\u0275\u0275elementEnd()()}if(2&_t){const Ae=l.\u0275\u0275nextContext();l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(Ae.data.action)}}function ti(_t,Fe){}let mi=(()=>{class _t{constructor(Ae,H){this.snackBarRef=Ae,this.data=H}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return _t.\u0275fac=function(Ae){return new(Ae||_t)(l.\u0275\u0275directiveInject(le),l.\u0275\u0275directiveInject(q))},_t.\u0275cmp=l.\u0275\u0275defineComponent({type:_t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(Ae,H){1&Ae&&(l.\u0275\u0275elementStart(0,"span",0),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(2,zt,3,1,"div",1)),2&Ae&&(l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(H.data.message),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",H.hasAction))},dependencies:[o.NgIf,d.eB],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),_t})(),Qt=(()=>{class _t extends Oe{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return _t.\u0275fac=function(){let Fe;return function(H){return(Fe||(Fe=l.\u0275\u0275getInheritedFactory(_t)))(H||_t)}}(),_t.\u0275cmp=l.\u0275\u0275defineComponent({type:_t,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Ae,H){1&Ae&&l.\u0275\u0275syntheticHostListener("@state.done",function(He){return H.onAnimationEnd(He)}),2&Ae&&l.\u0275\u0275syntheticHostProperty("@state",H._animationState)},features:[l.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Ae,H){1&Ae&&(l.\u0275\u0275elementStart(0,"div",0),l.\u0275\u0275template(1,ti,0,0,"ng-template",1),l.\u0275\u0275elementEnd(),l.\u0275\u0275element(2,"div")),2&Ae&&(l.\u0275\u0275advance(2),l.\u0275\u0275attribute("aria-live",H._live)("role",H._role)("id",H._liveElementId))},dependencies:[e.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[ne.snackBarState]}}),_t})(),Jt=(()=>{class _t{}return _t.\u0275fac=function(Ae){return new(Ae||_t)},_t.\u0275mod=l.\u0275\u0275defineNgModule({type:_t}),_t.\u0275inj=l.\u0275\u0275defineInjector({imports:[n.U8,e.eL,o.CommonModule,d.yu,v.BQ,v.BQ]}),_t})(),lt=(()=>{class _t extends dt{constructor(Ae,H,W,He,Te,Be){super(Ae,H,W,He,Te,Be),this.simpleSnackBarComponent=mi,this.snackBarContainerComponent=Qt,this.handsetCssClass="mat-snack-bar-handset"}}return _t.\u0275fac=function(Ae){return new(Ae||_t)(l.\u0275\u0275inject(n.aV),l.\u0275\u0275inject(g.Kd),l.\u0275\u0275inject(l.Injector),l.\u0275\u0275inject(f.Yg),l.\u0275\u0275inject(_t,12),l.\u0275\u0275inject(ot))},_t.\u0275prov=l.\u0275\u0275defineInjectable({token:_t,factory:_t.\u0275fac,providedIn:Jt}),_t})()},5754:(G,P,a)=>{"use strict";a.d(P,{Nn:()=>Jt});var n=a(2687),e=a(9643),o=a(4080),l=a(6895),v=a(4650),d=a(3238);let Jt=(()=>{class lt{}return lt.\u0275fac=function(Fe){return new(Fe||lt)},lt.\u0275mod=v.\u0275\u0275defineNgModule({type:lt}),lt.\u0275inj=v.\u0275\u0275defineInjector({imports:[l.CommonModule,d.BQ,o.eL,d.si,e.Q8,n.rt,d.BQ]}),lt})()},3683:(G,P,a)=>{"use strict";a.d(P,{g0:()=>C});var n=a(4650),e=a(3238);let C=(()=>{class x{}return x.\u0275fac=function(g){return new(g||x)},x.\u0275mod=n.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=n.\u0275\u0275defineInjector({imports:[e.BQ,e.BQ]}),x})()},1481:(G,P,a)=>{"use strict";a.d(P,{Dx:()=>Bt,H7:()=>Ht,b2:()=>Ue,q6:()=>k,se:()=>ot});var n=a(6895),e=a(4650);class o extends n.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class l extends o{static makeCurrent(){(0,n.\u0275setRootDomAdapter)(new l)}onAndCancel(we,Le,Ie){return we.addEventListener(Le,Ie,!1),()=>{we.removeEventListener(Le,Ie,!1)}}dispatchEvent(we,Le){we.dispatchEvent(Le)}remove(we){we.parentNode&&we.parentNode.removeChild(we)}createElement(we,Le){return(Le=Le||this.getDefaultDocument()).createElement(we)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(we){return we.nodeType===Node.ELEMENT_NODE}isShadowRoot(we){return we instanceof DocumentFragment}getGlobalEventTarget(we,Le){return"window"===Le?window:"document"===Le?we:"body"===Le?we.body:null}getBaseHref(we){const Le=function d(){return v=v||document.querySelector("base"),v?v.getAttribute("href"):null}();return null==Le?null:function b(se){u=u||document.createElement("a"),u.setAttribute("href",se);const we=u.pathname;return"/"===we.charAt(0)?we:`/${we}`}(Le)}resetBaseElement(){v=null}getUserAgent(){return window.navigator.userAgent}getCookie(we){return(0,n.\u0275parseCookieValue)(document.cookie,we)}}let u,v=null;const C=new e.InjectionToken("TRANSITION_ID"),w=[{provide:e.APP_INITIALIZER,useFactory:function x(se,we,Le){return()=>{Le.get(e.ApplicationInitStatus).donePromise.then(()=>{const Ie=(0,n.\u0275getDOM)(),Ot=we.querySelectorAll(`style[ng-transition="${se}"]`);for(let Me=0;Me<Ot.length;Me++)Ie.remove(Ot[Me])})}},deps:[C,n.DOCUMENT,e.Injector],multi:!0}];let f=(()=>{class se{build(){return new XMLHttpRequest}}return se.\u0275fac=function(Le){return new(Le||se)},se.\u0275prov=e.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac}),se})();const S=new e.InjectionToken("EventManagerPlugins");let j=(()=>{class se{constructor(Le,Ie){this._zone=Ie,this._eventNameToPlugin=new Map,Le.forEach(Ot=>{Ot.manager=this}),this._plugins=Le.slice().reverse()}addEventListener(Le,Ie,Ot){return this._findPluginFor(Ie).addEventListener(Le,Ie,Ot)}addGlobalEventListener(Le,Ie,Ot){return this._findPluginFor(Ie).addGlobalEventListener(Le,Ie,Ot)}getZone(){return this._zone}_findPluginFor(Le){const Ie=this._eventNameToPlugin.get(Le);if(Ie)return Ie;const Ot=this._plugins;for(let Me=0;Me<Ot.length;Me++){const yt=Ot[Me];if(yt.supports(Le))return this._eventNameToPlugin.set(Le,yt),yt}throw new Error(`No event manager plugin found for event ${Le}`)}}return se.\u0275fac=function(Le){return new(Le||se)(e.\u0275\u0275inject(S),e.\u0275\u0275inject(e.NgZone))},se.\u0275prov=e.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac}),se})();class B{constructor(we){this._doc=we}addGlobalEventListener(we,Le,Ie){const Ot=(0,n.\u0275getDOM)().getGlobalEventTarget(this._doc,we);if(!Ot)throw new Error(`Unsupported event target ${Ot} for event ${Le}`);return this.addEventListener(Ot,Le,Ie)}}let Z=(()=>{class se{constructor(){this.usageCount=new Map}addStyles(Le){for(const Ie of Le)1===this.changeUsageCount(Ie,1)&&this.onStyleAdded(Ie)}removeStyles(Le){for(const Ie of Le)0===this.changeUsageCount(Ie,-1)&&this.onStyleRemoved(Ie)}onStyleRemoved(Le){}onStyleAdded(Le){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(Le,Ie){const Ot=this.usageCount;let Me=Ot.get(Le)??0;return Me+=Ie,Me>0?Ot.set(Le,Me):Ot.delete(Le),Me}ngOnDestroy(){for(const Le of this.getAllStyles())this.onStyleRemoved(Le);this.usageCount.clear()}}return se.\u0275fac=function(Le){return new(Le||se)},se.\u0275prov=e.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac}),se})(),le=(()=>{class se extends Z{constructor(Le){super(),this.doc=Le,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(Le){for(const Ie of this.hostNodes)this.addStyleToHost(Ie,Le)}onStyleRemoved(Le){const Ie=this.styleRef;Ie.get(Le)?.forEach(Me=>Me.remove()),Ie.delete(Le)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(Le){this.hostNodes.add(Le);for(const Ie of this.getAllStyles())this.addStyleToHost(Le,Ie)}removeHost(Le){this.hostNodes.delete(Le)}addStyleToHost(Le,Ie){const Ot=this.doc.createElement("style");Ot.textContent=Ie,Le.appendChild(Ot);const Me=this.styleRef.get(Ie);Me?Me.push(Ot):this.styleRef.set(Ie,[Ot])}resetHostNodes(){const Le=this.hostNodes;Le.clear(),Le.add(this.doc.head)}}return se.\u0275fac=function(Le){return new(Le||se)(e.\u0275\u0275inject(n.DOCUMENT))},se.\u0275prov=e.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac}),se})();const q={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/"},X=/%COMP%/g,U="%COMP%",me=`_nghost-${U}`,xe=`_ngcontent-${U}`,Ze=new e.InjectionToken("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function qe(se,we){return we.flat(100).map(Le=>Le.replace(X,se))}function ct(se){return we=>{if("__ngUnwrap__"===we)return se;!1===se(we)&&(we.preventDefault(),we.returnValue=!1)}}let ot=(()=>{class se{constructor(Le,Ie,Ot,Me){this.eventManager=Le,this.sharedStylesHost=Ie,this.appId=Ot,this.removeStylesOnCompDestory=Me,this.rendererByCompId=new Map,this.defaultRenderer=new dt(Le)}createRenderer(Le,Ie){if(!Le||!Ie)return this.defaultRenderer;const Ot=this.getOrCreateRenderer(Le,Ie);return Ot instanceof Jt?Ot.applyToHost(Le):Ot instanceof Qt&&Ot.applyStyles(),Ot}getOrCreateRenderer(Le,Ie){const Ot=this.rendererByCompId;let Me=Ot.get(Ie.id);if(!Me){const yt=this.eventManager,St=this.sharedStylesHost,ii=this.removeStylesOnCompDestory;switch(Ie.encapsulation){case e.ViewEncapsulation.Emulated:Me=new Jt(yt,St,Ie,this.appId,ii);break;case e.ViewEncapsulation.ShadowDom:return new mi(yt,St,Le,Ie);default:Me=new Qt(yt,St,Ie,ii)}Me.onDestroy=()=>Ot.delete(Ie.id),Ot.set(Ie.id,Me)}return Me}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return se.\u0275fac=function(Le){return new(Le||se)(e.\u0275\u0275inject(j),e.\u0275\u0275inject(le),e.\u0275\u0275inject(e.APP_ID),e.\u0275\u0275inject(Ze))},se.\u0275prov=e.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac}),se})();class dt{constructor(we){this.eventManager=we,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(we,Le){return Le?document.createElementNS(q[Le]||Le,we):document.createElement(we)}createComment(we){return document.createComment(we)}createText(we){return document.createTextNode(we)}appendChild(we,Le){(ti(we)?we.content:we).appendChild(Le)}insertBefore(we,Le,Ie){we&&(ti(we)?we.content:we).insertBefore(Le,Ie)}removeChild(we,Le){we&&we.removeChild(Le)}selectRootElement(we,Le){let Ie="string"==typeof we?document.querySelector(we):we;if(!Ie)throw new Error(`The selector "${we}" did not match any elements`);return Le||(Ie.textContent=""),Ie}parentNode(we){return we.parentNode}nextSibling(we){return we.nextSibling}setAttribute(we,Le,Ie,Ot){if(Ot){Le=Ot+":"+Le;const Me=q[Ot];Me?we.setAttributeNS(Me,Le,Ie):we.setAttribute(Le,Ie)}else we.setAttribute(Le,Ie)}removeAttribute(we,Le,Ie){if(Ie){const Ot=q[Ie];Ot?we.removeAttributeNS(Ot,Le):we.removeAttribute(`${Ie}:${Le}`)}else we.removeAttribute(Le)}addClass(we,Le){we.classList.add(Le)}removeClass(we,Le){we.classList.remove(Le)}setStyle(we,Le,Ie,Ot){Ot&(e.RendererStyleFlags2.DashCase|e.RendererStyleFlags2.Important)?we.style.setProperty(Le,Ie,Ot&e.RendererStyleFlags2.Important?"important":""):we.style[Le]=Ie}removeStyle(we,Le,Ie){Ie&e.RendererStyleFlags2.DashCase?we.style.removeProperty(Le):we.style[Le]=""}setProperty(we,Le,Ie){we[Le]=Ie}setValue(we,Le){we.nodeValue=Le}listen(we,Le,Ie){return"string"==typeof we?this.eventManager.addGlobalEventListener(we,Le,ct(Ie)):this.eventManager.addEventListener(we,Le,ct(Ie))}}function ti(se){return"TEMPLATE"===se.tagName&&void 0!==se.content}class mi extends dt{constructor(we,Le,Ie,Ot){super(we),this.sharedStylesHost=Le,this.hostEl=Ie,this.shadowRoot=Ie.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Me=qe(Ot.id,Ot.styles);for(const yt of Me){const St=document.createElement("style");St.textContent=yt,this.shadowRoot.appendChild(St)}}nodeOrShadowRoot(we){return we===this.hostEl?this.shadowRoot:we}appendChild(we,Le){return super.appendChild(this.nodeOrShadowRoot(we),Le)}insertBefore(we,Le,Ie){return super.insertBefore(this.nodeOrShadowRoot(we),Le,Ie)}removeChild(we,Le){return super.removeChild(this.nodeOrShadowRoot(we),Le)}parentNode(we){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(we)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Qt extends dt{constructor(we,Le,Ie,Ot,Me=Ie.id){super(we),this.sharedStylesHost=Le,this.removeStylesOnCompDestory=Ot,this.rendererUsageCount=0,this.styles=qe(Me,Ie.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class Jt extends Qt{constructor(we,Le,Ie,Ot,Me){const yt=Ot+"-"+Ie.id;super(we,Le,Ie,Me,yt),this.contentAttr=function Oe(se){return xe.replace(X,se)}(yt),this.hostAttr=function nt(se){return me.replace(X,se)}(yt)}applyToHost(we){this.applyStyles(),this.setAttribute(we,this.hostAttr,"")}createElement(we,Le){const Ie=super.createElement(we,Le);return super.setAttribute(Ie,this.contentAttr,""),Ie}}let lt=(()=>{class se extends B{constructor(Le){super(Le)}supports(Le){return!0}addEventListener(Le,Ie,Ot){return Le.addEventListener(Ie,Ot,!1),()=>this.removeEventListener(Le,Ie,Ot)}removeEventListener(Le,Ie,Ot){return Le.removeEventListener(Ie,Ot)}}return se.\u0275fac=function(Le){return new(Le||se)(e.\u0275\u0275inject(n.DOCUMENT))},se.\u0275prov=e.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac}),se})();const _t=["alt","control","meta","shift"],Fe={"\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"},Ae={alt:se=>se.altKey,control:se=>se.ctrlKey,meta:se=>se.metaKey,shift:se=>se.shiftKey};let H=(()=>{class se extends B{constructor(Le){super(Le)}supports(Le){return null!=se.parseEventName(Le)}addEventListener(Le,Ie,Ot){const Me=se.parseEventName(Ie),yt=se.eventCallback(Me.fullKey,Ot,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.\u0275getDOM)().onAndCancel(Le,Me.domEventName,yt))}static parseEventName(Le){const Ie=Le.toLowerCase().split("."),Ot=Ie.shift();if(0===Ie.length||"keydown"!==Ot&&"keyup"!==Ot)return null;const Me=se._normalizeKey(Ie.pop());let yt="",St=Ie.indexOf("code");if(St>-1&&(Ie.splice(St,1),yt="code."),_t.forEach(Ki=>{const Pn=Ie.indexOf(Ki);Pn>-1&&(Ie.splice(Pn,1),yt+=Ki+".")}),yt+=Me,0!=Ie.length||0===Me.length)return null;const ii={};return ii.domEventName=Ot,ii.fullKey=yt,ii}static matchEventFullKeyCode(Le,Ie){let Ot=Fe[Le.key]||Le.key,Me="";return Ie.indexOf("code.")>-1&&(Ot=Le.code,Me="code."),!(null==Ot||!Ot)&&(Ot=Ot.toLowerCase()," "===Ot?Ot="space":"."===Ot&&(Ot="dot"),_t.forEach(yt=>{yt!==Ot&&(0,Ae[yt])(Le)&&(Me+=yt+".")}),Me+=Ot,Me===Ie)}static eventCallback(Le,Ie,Ot){return Me=>{se.matchEventFullKeyCode(Me,Le)&&Ot.runGuarded(()=>Ie(Me))}}static _normalizeKey(Le){return"esc"===Le?"escape":Le}}return se.\u0275fac=function(Le){return new(Le||se)(e.\u0275\u0275inject(n.DOCUMENT))},se.\u0275prov=e.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac}),se})();const k=(0,e.createPlatformFactory)(e.platformCore,"browser",[{provide:e.PLATFORM_ID,useValue:n.\u0275PLATFORM_BROWSER_ID},{provide:e.PLATFORM_INITIALIZER,useValue:function Pe(){l.makeCurrent()},multi:!0},{provide:n.DOCUMENT,useFactory:function ut(){return(0,e.\u0275setDocument)(document),document},deps:[]}]),R=new e.InjectionToken(""),be=[{provide:e.\u0275TESTABILITY_GETTER,useClass:class g{addToWindow(we){e.\u0275global.getAngularTestability=(Ie,Ot=!0)=>{const Me=we.findTestabilityInTree(Ie,Ot);if(null==Me)throw new Error("Could not find testability for element.");return Me},e.\u0275global.getAllAngularTestabilities=()=>we.getAllTestabilities(),e.\u0275global.getAllAngularRootElements=()=>we.getAllRootElements(),e.\u0275global.frameworkStabilizers||(e.\u0275global.frameworkStabilizers=[]),e.\u0275global.frameworkStabilizers.push(Ie=>{const Ot=e.\u0275global.getAllAngularTestabilities();let Me=Ot.length,yt=!1;const St=function(ii){yt=yt||ii,Me--,0==Me&&Ie(yt)};Ot.forEach(function(ii){ii.whenStable(St)})})}findTestabilityInTree(we,Le,Ie){return null==Le?null:we.getTestability(Le)??(Ie?(0,n.\u0275getDOM)().isShadowRoot(Le)?this.findTestabilityInTree(we,Le.host,!0):this.findTestabilityInTree(we,Le.parentElement,!0):null)}},deps:[]},{provide:e.\u0275TESTABILITY,useClass:e.Testability,deps:[e.NgZone,e.TestabilityRegistry,e.\u0275TESTABILITY_GETTER]},{provide:e.Testability,useClass:e.Testability,deps:[e.NgZone,e.TestabilityRegistry,e.\u0275TESTABILITY_GETTER]}],et=[{provide:e.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:e.ErrorHandler,useFactory:function Qe(){return new e.ErrorHandler},deps:[]},{provide:S,useClass:lt,multi:!0,deps:[n.DOCUMENT,e.NgZone,e.PLATFORM_ID]},{provide:S,useClass:H,multi:!0,deps:[n.DOCUMENT]},{provide:ot,useClass:ot,deps:[j,le,e.APP_ID,Ze]},{provide:e.RendererFactory2,useExisting:ot},{provide:Z,useExisting:le},{provide:le,useClass:le,deps:[n.DOCUMENT]},{provide:j,useClass:j,deps:[S,e.NgZone]},{provide:n.XhrFactory,useClass:f,deps:[]},[]];let Ue=(()=>{class se{constructor(Le){}static withServerTransition(Le){return{ngModule:se,providers:[{provide:e.APP_ID,useValue:Le.appId},{provide:C,useExisting:e.APP_ID},w]}}}return se.\u0275fac=function(Le){return new(Le||se)(e.\u0275\u0275inject(R,12))},se.\u0275mod=e.\u0275\u0275defineNgModule({type:se}),se.\u0275inj=e.\u0275\u0275defineInjector({providers:[...et,...be],imports:[n.CommonModule,e.ApplicationModule]}),se})(),Bt=(()=>{class se{constructor(Le){this._doc=Le}getTitle(){return this._doc.title}setTitle(Le){this._doc.title=Le||""}}return se.\u0275fac=function(Le){return new(Le||se)(e.\u0275\u0275inject(n.DOCUMENT))},se.\u0275prov=e.\u0275\u0275defineInjectable({token:se,factory:function(Le){let Ie=null;return Ie=Le?new Le:function Pt(){return new Bt((0,e.\u0275\u0275inject)(n.DOCUMENT))}(),Ie},providedIn:"root"}),se})();typeof window<"u"&&window;let Ht=(()=>{class se{}return se.\u0275fac=function(Le){return new(Le||se)},se.\u0275prov=e.\u0275\u0275defineInjectable({token:se,factory:function(Le){let Ie=null;return Ie=Le?new(Le||se):e.\u0275\u0275inject(Mt),Ie},providedIn:"root"}),se})(),Mt=(()=>{class se extends Ht{constructor(Le){super(),this._doc=Le}sanitize(Le,Ie){if(null==Ie)return null;switch(Le){case e.SecurityContext.NONE:return Ie;case e.SecurityContext.HTML:return(0,e.\u0275allowSanitizationBypassAndThrow)(Ie,"HTML")?(0,e.\u0275unwrapSafeValue)(Ie):(0,e.\u0275_sanitizeHtml)(this._doc,String(Ie)).toString();case e.SecurityContext.STYLE:return(0,e.\u0275allowSanitizationBypassAndThrow)(Ie,"Style")?(0,e.\u0275unwrapSafeValue)(Ie):Ie;case e.SecurityContext.SCRIPT:if((0,e.\u0275allowSanitizationBypassAndThrow)(Ie,"Script"))return(0,e.\u0275unwrapSafeValue)(Ie);throw new Error("unsafe value used in a script context");case e.SecurityContext.URL:return(0,e.\u0275allowSanitizationBypassAndThrow)(Ie,"URL")?(0,e.\u0275unwrapSafeValue)(Ie):(0,e.\u0275_sanitizeUrl)(String(Ie));case e.SecurityContext.RESOURCE_URL:if((0,e.\u0275allowSanitizationBypassAndThrow)(Ie,"ResourceURL"))return(0,e.\u0275unwrapSafeValue)(Ie);throw new Error(`unsafe value used in a resource URL context (see ${e.\u0275XSS_SECURITY_URL})`);default:throw new Error(`Unexpected SecurityContext ${Le} (see ${e.\u0275XSS_SECURITY_URL})`)}}bypassSecurityTrustHtml(Le){return(0,e.\u0275bypassSanitizationTrustHtml)(Le)}bypassSecurityTrustStyle(Le){return(0,e.\u0275bypassSanitizationTrustStyle)(Le)}bypassSecurityTrustScript(Le){return(0,e.\u0275bypassSanitizationTrustScript)(Le)}bypassSecurityTrustUrl(Le){return(0,e.\u0275bypassSanitizationTrustUrl)(Le)}bypassSecurityTrustResourceUrl(Le){return(0,e.\u0275bypassSanitizationTrustResourceUrl)(Le)}}return se.\u0275fac=function(Le){return new(Le||se)(e.\u0275\u0275inject(n.DOCUMENT))},se.\u0275prov=e.\u0275\u0275defineInjectable({token:se,factory:function(Le){let Ie=null;return Ie=Le?new Le:function wt(se){return new Mt(se.get(n.DOCUMENT))}(e.\u0275\u0275inject(e.Injector)),Ie},providedIn:"root"}),se})()},8729:(G,P,a)=>{"use strict";a.d(P,{gz:()=>Pr,wm:()=>Ds,F0:()=>Xr,rH:()=>Ko,Bz:()=>Zs,lC:()=>Xn});var n=a(4650),e=a(5254),o=a(1086),l=a(591);const d=(()=>{function A(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return A.prototype=Object.create(Error.prototype),A})();var u=a(6053),b=a(1221),C=a(8514),x=a(4843),w=a(1737),g=a(6498),f=a(8896),S=a(1762),j=a(8929),B=a(6895),Z=a(4850),le=a(7545),q=a(2986),X=a(1059),K=a(2198),U=a(1709),me=a(3489);function xe(A=null){return V=>V.lift(new ne(A))}class ne{constructor(V){this.defaultValue=V}call(V,T){return T.subscribe(new Ze(V,this.defaultValue))}}class Ze extends me.L{constructor(V,T){super(V),this.defaultValue=T,this.isEmpty=!0}_next(V){this.isEmpty=!1,this.destination.next(V)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Oe(A=ct){return V=>V.lift(new nt(A))}class nt{constructor(V){this.errorFactory=V}call(V,T){return T.subscribe(new qe(V,this.errorFactory))}}class qe extends me.L{constructor(V,T){super(V),this.errorFactory=T,this.hasValue=!1}_next(V){this.hasValue=!0,this.destination.next(V)}_complete(){if(this.hasValue)return this.destination.complete();{let V;try{V=this.errorFactory()}catch(T){V=T}this.destination.error(V)}}}function ct(){return new d}var ot=a(5379);function dt(A,V){const T=arguments.length>=2;return ie=>ie.pipe(A?(0,K.h)((Ce,Ke)=>A(Ce,Ke,ie)):ot.y,(0,q.q)(1),T?xe(V):Oe(()=>new d))}var jt=a(1406),zt=a(2994),ti=a(7221);function mi(A,V){let T=!1;return arguments.length>=2&&(T=!0),function(Ce){return Ce.lift(new Qt(A,V,T))}}class Qt{constructor(V,T,ie=!1){this.accumulator=V,this.seed=T,this.hasSeed=ie}call(V,T){return T.subscribe(new Jt(V,this.accumulator,this.seed,this.hasSeed))}}class Jt extends me.L{constructor(V,T,ie,Ce){super(V),this.accumulator=T,this._seed=ie,this.hasSeed=Ce,this.index=0}get seed(){return this._seed}set seed(V){this.hasSeed=!0,this._seed=V}_next(V){if(this.hasSeed)return this._tryNext(V);this.seed=V,this.destination.next(V)}_tryNext(V){const T=this.index++;let ie;try{ie=this.accumulator(this.seed,V,T)}catch(Ce){this.destination.error(Ce)}this.seed=ie,this.destination.next(ie)}}var lt=a(4231);function _t(A){return function(T){return 0===A?(0,f.c)():T.lift(new Fe(A))}}class Fe{constructor(V){if(this.total=V,this.total<0)throw new lt.W}call(V,T){return T.subscribe(new Ae(V,this.total))}}class Ae extends me.L{constructor(V,T){super(V),this.total=T,this.ring=new Array,this.count=0}_next(V){const T=this.ring,ie=this.total,Ce=this.count++;T.length<ie?T.push(V):T[Ce%ie]=V}_complete(){const V=this.destination;let T=this.count;if(T>0){const ie=this.count>=this.total?this.total:this.count,Ce=this.ring;for(let Ke=0;Ke<ie;Ke++){const rt=T++%ie;V.next(Ce[rt])}}V.complete()}}function H(A,V){const T=arguments.length>=2;return ie=>ie.pipe(A?(0,K.h)((Ce,Ke)=>A(Ce,Ke,ie)):ot.y,_t(1),T?xe(V):Oe(()=>new d))}var W=a(4290);class Te{constructor(V){this.value=V}call(V,T){return T.subscribe(new Be(V,this.value))}}class Be extends me.L{constructor(V,T){super(V),this.value=T}_next(V){this.destination.next(this.value)}}var mt=a(537),Pe=a(4327),Qe=a(9146),ut=a(1481);const te="primary",k=Symbol("RouteTitle");class R{constructor(V){this.params=V||{}}has(V){return Object.prototype.hasOwnProperty.call(this.params,V)}get(V){if(this.has(V)){const T=this.params[V];return Array.isArray(T)?T[0]:T}return null}getAll(V){if(this.has(V)){const T=this.params[V];return Array.isArray(T)?T:[T]}return[]}get keys(){return Object.keys(this.params)}}function be(A){return new R(A)}function et(A,V,T){const ie=T.path.split("/");if(ie.length>A.length||"full"===T.pathMatch&&(V.hasChildren()||ie.length<A.length))return null;const Ce={};for(let Ke=0;Ke<ie.length;Ke++){const rt=ie[Ke],Vt=A[Ke];if(rt.startsWith(":"))Ce[rt.substring(1)]=Vt;else if(rt!==Vt.path)return null}return{consumed:A.slice(0,ie.length),posParams:Ce}}function ge(A,V){const T=A?Object.keys(A):void 0,ie=V?Object.keys(V):void 0;if(!T||!ie||T.length!=ie.length)return!1;let Ce;for(let Ke=0;Ke<T.length;Ke++)if(Ce=T[Ke],!ke(A[Ce],V[Ce]))return!1;return!0}function ke(A,V){if(Array.isArray(A)&&Array.isArray(V)){if(A.length!==V.length)return!1;const T=[...A].sort(),ie=[...V].sort();return T.every((Ce,Ke)=>ie[Ke]===Ce)}return A===V}function gt(A){return Array.prototype.concat.apply([],A)}function Pt(A){return A.length>0?A[A.length-1]:null}function st(A,V){for(const T in A)A.hasOwnProperty(T)&&V(A[T],T)}function Nt(A){return(0,n.\u0275isObservable)(A)?A:(0,n.\u0275isPromise)(A)?(0,e.D)(Promise.resolve(A)):(0,o.of)(A)}const at=!1,Lt={exact:function ui(A,V,T){if(!ue(A.segments,V.segments)||!Ci(A.segments,V.segments,T)||A.numberOfChildren!==V.numberOfChildren)return!1;for(const ie in V.children)if(!A.children[ie]||!ui(A.children[ie],V.children[ie],T))return!1;return!0},subset:Ut},Rt={exact:function Xt(A,V){return ge(A,V)},subset:function vt(A,V){return Object.keys(V).length<=Object.keys(A).length&&Object.keys(V).every(T=>ke(A[T],V[T]))},ignored:()=>!0};function ai(A,V,T){return Lt[T.paths](A.root,V.root,T.matrixParams)&&Rt[T.queryParams](A.queryParams,V.queryParams)&&!("exact"===T.fragment&&A.fragment!==V.fragment)}function Ut(A,V,T){return Zt(A,V,V.segments,T)}function Zt(A,V,T,ie){if(A.segments.length>T.length){const Ce=A.segments.slice(0,T.length);return!(!ue(Ce,T)||V.hasChildren()||!Ci(Ce,T,ie))}if(A.segments.length===T.length){if(!ue(A.segments,T)||!Ci(A.segments,T,ie))return!1;for(const Ce in V.children)if(!A.children[Ce]||!Ut(A.children[Ce],V.children[Ce],ie))return!1;return!0}{const Ce=T.slice(0,A.segments.length),Ke=T.slice(A.segments.length);return!!(ue(A.segments,Ce)&&Ci(A.segments,Ce,ie)&&A.children[te])&&Zt(A.children[te],V,Ke,ie)}}function Ci(A,V,T){return V.every((ie,Ce)=>Rt[T](A[Ce].parameters,ie.parameters))}class _i{constructor(V=new pi([],{}),T={},ie=null){this.root=V,this.queryParams=T,this.fragment=ie}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=be(this.queryParams)),this._queryParamMap}toString(){return We.serialize(this)}}class pi{constructor(V,T){this.segments=V,this.children=T,this.parent=null,st(T,(ie,Ce)=>ie.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xt(this)}}class Bi{constructor(V,T){this.path=V,this.parameters=T}get parameterMap(){return this._parameterMap||(this._parameterMap=be(this.parameters)),this._parameterMap}toString(){return Ie(this)}}function ue(A,V){return A.length===V.length&&A.every((T,ie)=>T.path===V[ie].path)}let Ee=(()=>{class A{}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:function(){return new Re},providedIn:"root"}),A})();class Re{parse(V){const T=new Fr(V);return new _i(T.parseRootSegment(),T.parseQueryParams(),T.parseFragment())}serialize(V){const T=`/${Ht(V.root,!0)}`,ie=function Me(A){const V=Object.keys(A).map(T=>{const ie=A[T];return Array.isArray(ie)?ie.map(Ce=>`${Mt(T)}=${Mt(Ce)}`).join("&"):`${Mt(T)}=${Mt(ie)}`}).filter(T=>!!T);return V.length?`?${V.join("&")}`:""}(V.queryParams);return`${T}${ie}${"string"==typeof V.fragment?`#${function It(A){return encodeURI(A)}(V.fragment)}`:""}`}}const We=new Re;function xt(A){return A.segments.map(V=>Ie(V)).join("/")}function Ht(A,V){if(!A.hasChildren())return xt(A);if(V){const T=A.children[te]?Ht(A.children[te],!1):"",ie=[];return st(A.children,(Ce,Ke)=>{Ke!==te&&ie.push(`${Ke}:${Ht(Ce,!1)}`)}),ie.length>0?`${T}(${ie.join("//")})`:T}{const T=function re(A,V){let T=[];return st(A.children,(ie,Ce)=>{Ce===te&&(T=T.concat(V(ie,Ce)))}),st(A.children,(ie,Ce)=>{Ce!==te&&(T=T.concat(V(ie,Ce)))}),T}(A,(ie,Ce)=>Ce===te?[Ht(A.children[te],!1)]:[`${Ce}:${Ht(ie,!1)}`]);return 1===Object.keys(A.children).length&&null!=A.children[te]?`${xt(A)}/${T[0]}`:`${xt(A)}/(${T.join("//")})`}}function wt(A){return encodeURIComponent(A).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mt(A){return wt(A).replace(/%3B/gi,";")}function se(A){return wt(A).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function we(A){return decodeURIComponent(A)}function Le(A){return we(A.replace(/\+/g,"%20"))}function Ie(A){return`${se(A.path)}${function Ot(A){return Object.keys(A).map(V=>`;${se(V)}=${se(A[V])}`).join("")}(A.parameters)}`}const yt=/^[^\/()?;=#]+/;function St(A){const V=A.match(yt);return V?V[0]:""}const ii=/^[^=?&#]+/,Pn=/^[^&#]+/;class Fr{constructor(V){this.url=V,this.remaining=V}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pi([],{}):new pi([],this.parseChildren())}parseQueryParams(){const V={};if(this.consumeOptional("?"))do{this.parseQueryParam(V)}while(this.consumeOptional("&"));return V}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const V=[];for(this.peekStartsWith("(")||V.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),V.push(this.parseSegment());let T={};this.peekStartsWith("/(")&&(this.capture("/"),T=this.parseParens(!0));let ie={};return this.peekStartsWith("(")&&(ie=this.parseParens(!1)),(V.length>0||Object.keys(T).length>0)&&(ie[te]=new pi(V,T)),ie}parseSegment(){const V=St(this.remaining);if(""===V&&this.peekStartsWith(";"))throw new n.\u0275RuntimeError(4009,at);return this.capture(V),new Bi(we(V),this.parseMatrixParams())}parseMatrixParams(){const V={};for(;this.consumeOptional(";");)this.parseParam(V);return V}parseParam(V){const T=St(this.remaining);if(!T)return;this.capture(T);let ie="";if(this.consumeOptional("=")){const Ce=St(this.remaining);Ce&&(ie=Ce,this.capture(ie))}V[we(T)]=we(ie)}parseQueryParam(V){const T=function Ki(A){const V=A.match(ii);return V?V[0]:""}(this.remaining);if(!T)return;this.capture(T);let ie="";if(this.consumeOptional("=")){const rt=function ir(A){const V=A.match(Pn);return V?V[0]:""}(this.remaining);rt&&(ie=rt,this.capture(ie))}const Ce=Le(T),Ke=Le(ie);if(V.hasOwnProperty(Ce)){let rt=V[Ce];Array.isArray(rt)||(rt=[rt],V[Ce]=rt),rt.push(Ke)}else V[Ce]=Ke}parseParens(V){const T={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const ie=St(this.remaining),Ce=this.remaining[ie.length];if("/"!==Ce&&")"!==Ce&&";"!==Ce)throw new n.\u0275RuntimeError(4010,at);let Ke;ie.indexOf(":")>-1?(Ke=ie.slice(0,ie.indexOf(":")),this.capture(Ke),this.capture(":")):V&&(Ke=te);const rt=this.parseChildren();T[Ke]=1===Object.keys(rt).length?rt[te]:new pi([],rt),this.consumeOptional("//")}return T}peekStartsWith(V){return this.remaining.startsWith(V)}consumeOptional(V){return!!this.peekStartsWith(V)&&(this.remaining=this.remaining.substring(V.length),!0)}capture(V){if(!this.consumeOptional(V))throw new n.\u0275RuntimeError(4011,at)}}function yr(A){return A.segments.length>0?new pi([],{[te]:A}):A}function fr(A){const V={};for(const ie of Object.keys(A.children)){const Ke=fr(A.children[ie]);(Ke.segments.length>0||Ke.hasChildren())&&(V[ie]=Ke)}return function ar(A){if(1===A.numberOfChildren&&A.children[te]){const V=A.children[te];return new pi(A.segments.concat(V.segments),V.children)}return A}(new pi(A.segments,V))}function Xi(A){return A instanceof _i}const Mn=!1;function fo(A,V,T,ie,Ce){if(0===T.length)return Fn(V.root,V.root,V.root,ie,Ce);const Ke=function ji(A){if("string"==typeof A[0]&&1===A.length&&"/"===A[0])return new gi(!0,0,A);let V=0,T=!1;const ie=A.reduce((Ce,Ke,rt)=>{if("object"==typeof Ke&&null!=Ke){if(Ke.outlets){const Vt={};return st(Ke.outlets,(ri,Ti)=>{Vt[Ti]="string"==typeof ri?ri.split("/"):ri}),[...Ce,{outlets:Vt}]}if(Ke.segmentPath)return[...Ce,Ke.segmentPath]}return"string"!=typeof Ke?[...Ce,Ke]:0===rt?(Ke.split("/").forEach((Vt,ri)=>{0==ri&&"."===Vt||(0==ri&&""===Vt?T=!0:".."===Vt?V++:""!=Vt&&Ce.push(Vt))}),Ce):[...Ce,Ke]},[]);return new gi(T,V,ie)}(T);return Ke.toRoot()?Fn(V.root,V.root,new pi([],{}),ie,Ce):function rt(ri){const Ti=function pn(A,V,T,ie){if(A.isAbsolute)return new Dn(V.root,!0,0);if(-1===ie)return new Dn(T,T===V.root,0);return function qn(A,V,T){let ie=A,Ce=V,Ke=T;for(;Ke>Ce;){if(Ke-=Ce,ie=ie.parent,!ie)throw new n.\u0275RuntimeError(4005,Mn&&"Invalid number of '../'");Ce=ie.segments.length}return new Dn(ie,!1,Ce-Ke)}(T,ie+(Si(A.commands[0])?0:1),A.numberOfDoubleDots)}(Ke,V,A.snapshot?._urlSegment,ri),Oi=Ti.processChildren?Qn(Ti.segmentGroup,Ti.index,Ke.commands):qi(Ti.segmentGroup,Ti.index,Ke.commands);return Fn(V.root,Ti.segmentGroup,Oi,ie,Ce)}(A.snapshot?._lastPathIndex)}function Si(A){return"object"==typeof A&&null!=A&&!A.outlets&&!A.segmentPath}function lr(A){return"object"==typeof A&&null!=A&&A.outlets}function Fn(A,V,T,ie,Ce){let rt,Ke={};ie&&st(ie,(ri,Ti)=>{Ke[Ti]=Array.isArray(ri)?ri.map(Oi=>`${Oi}`):`${ri}`}),rt=A===V?T:bi(A,V,T);const Vt=yr(fr(rt));return new _i(Vt,Ke,Ce)}function bi(A,V,T){const ie={};return st(A.children,(Ce,Ke)=>{ie[Ke]=Ce===V?T:bi(Ce,V,T)}),new pi(A.segments,ie)}class gi{constructor(V,T,ie){if(this.isAbsolute=V,this.numberOfDoubleDots=T,this.commands=ie,V&&ie.length>0&&Si(ie[0]))throw new n.\u0275RuntimeError(4003,Mn&&"Root segment cannot have matrix parameters");const Ce=ie.find(lr);if(Ce&&Ce!==Pt(ie))throw new n.\u0275RuntimeError(4004,Mn&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Dn{constructor(V,T,ie){this.segmentGroup=V,this.processChildren=T,this.index=ie}}function qi(A,V,T){if(A||(A=new pi([],{})),0===A.segments.length&&A.hasChildren())return Qn(A,V,T);const ie=function Vi(A,V,T){let ie=0,Ce=V;const Ke={match:!1,pathIndex:0,commandIndex:0};for(;Ce<A.segments.length;){if(ie>=T.length)return Ke;const rt=A.segments[Ce],Vt=T[ie];if(lr(Vt))break;const ri=`${Vt}`,Ti=ie<T.length-1?T[ie+1]:null;if(Ce>0&&void 0===ri)break;if(ri&&Ti&&"object"==typeof Ti&&void 0===Ti.outlets){if(!Yn(ri,Ti,rt))return Ke;ie+=2}else{if(!Yn(ri,{},rt))return Ke;ie++}Ce++}return{match:!0,pathIndex:Ce,commandIndex:ie}}(A,V,T),Ce=T.slice(ie.commandIndex);if(ie.match&&ie.pathIndex<A.segments.length){const Ke=new pi(A.segments.slice(0,ie.pathIndex),{});return Ke.children[te]=new pi(A.segments.slice(ie.pathIndex),A.children),Qn(Ke,0,Ce)}return ie.match&&0===Ce.length?new pi(A.segments,{}):ie.match&&!A.hasChildren()?Bn(A,V,T):ie.match?Qn(A,0,Ce):Bn(A,V,T)}function Qn(A,V,T){if(0===T.length)return new pi(A.segments,{});{const ie=function Mi(A){return lr(A[0])?A[0].outlets:{[te]:A}}(T),Ce={};if(!ie[te]&&A.children[te]&&1===A.numberOfChildren&&0===A.children[te].segments.length){const Ke=Qn(A.children[te],V,T);return new pi(A.segments,Ke.children)}return st(ie,(Ke,rt)=>{"string"==typeof Ke&&(Ke=[Ke]),null!==Ke&&(Ce[rt]=qi(A.children[rt],V,Ke))}),st(A.children,(Ke,rt)=>{void 0===ie[rt]&&(Ce[rt]=Ke)}),new pi(A.segments,Ce)}}function Bn(A,V,T){const ie=A.segments.slice(0,V);let Ce=0;for(;Ce<T.length;){const Ke=T[Ce];if(lr(Ke)){const ri=Br(Ke.outlets);return new pi(ie,ri)}if(0===Ce&&Si(T[0])){ie.push(new Bi(A.segments[V].path,On(T[0]))),Ce++;continue}const rt=lr(Ke)?Ke.outlets[te]:`${Ke}`,Vt=Ce<T.length-1?T[Ce+1]:null;rt&&Vt&&Si(Vt)?(ie.push(new Bi(rt,On(Vt))),Ce+=2):(ie.push(new Bi(rt,{})),Ce++)}return new pi(ie,{})}function Br(A){const V={};return st(A,(T,ie)=>{"string"==typeof T&&(T=[T]),null!==T&&(V[ie]=Bn(new pi([],{}),0,T))}),V}function On(A){const V={};return st(A,(T,ie)=>V[ie]=`${T}`),V}function Yn(A,V,T){return A==T.path&&ge(V,T.parameters)}const Ei="imperative";class Nn{constructor(V,T){this.id=V,this.url=T}}class ht extends Nn{constructor(V,T,ie="imperative",Ce=null){super(V,T),this.type=0,this.navigationTrigger=ie,this.restoredState=Ce}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ni extends Nn{constructor(V,T,ie){super(V,T),this.urlAfterRedirects=ie,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class he extends Nn{constructor(V,T,ie,Ce){super(V,T),this.reason=ie,this.code=Ce,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class je extends Nn{constructor(V,T,ie,Ce){super(V,T),this.reason=ie,this.code=Ce,this.type=16}}class Je extends Nn{constructor(V,T,ie,Ce){super(V,T),this.error=ie,this.target=Ce,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class At extends Nn{constructor(V,T,ie,Ce){super(V,T),this.urlAfterRedirects=ie,this.state=Ce,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class li extends Nn{constructor(V,T,ie,Ce){super(V,T),this.urlAfterRedirects=ie,this.state=Ce,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zi extends Nn{constructor(V,T,ie,Ce,Ke){super(V,T),this.urlAfterRedirects=ie,this.state=Ce,this.shouldActivate=Ke,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class dn extends Nn{constructor(V,T,ie,Ce){super(V,T),this.urlAfterRedirects=ie,this.state=Ce,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class en extends Nn{constructor(V,T,ie,Ce){super(V,T),this.urlAfterRedirects=ie,this.state=Ce,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hn{constructor(V){this.route=V,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Tn{constructor(V){this.route=V,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Bo{constructor(V){this.snapshot=V,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fi{constructor(V){this.snapshot=V,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bn{constructor(V){this.snapshot=V,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cn{constructor(V){this.snapshot=V,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dr{constructor(V,T,ie){this.routerEvent=V,this.position=T,this.anchor=ie,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let ao=(()=>{class A{createUrlTree(T,ie,Ce,Ke,rt,Vt){return fo(T||ie.root,Ce,Ke,rt,Vt)}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac}),A})(),Hr=(()=>{class A{}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:function(V){return ao.\u0275fac(V)},providedIn:"root"}),A})();class Tr{constructor(V){this._root=V}get root(){return this._root.value}parent(V){const T=this.pathFromRoot(V);return T.length>1?T[T.length-2]:null}children(V){const T=Kn(V,this._root);return T?T.children.map(ie=>ie.value):[]}firstChild(V){const T=Kn(V,this._root);return T&&T.children.length>0?T.children[0].value:null}siblings(V){const T=Cr(V,this._root);return T.length<2?[]:T[T.length-2].children.map(Ce=>Ce.value).filter(Ce=>Ce!==V)}pathFromRoot(V){return Cr(V,this._root).map(T=>T.value)}}function Kn(A,V){if(A===V.value)return V;for(const T of V.children){const ie=Kn(A,T);if(ie)return ie}return null}function Cr(A,V){if(A===V.value)return[V];for(const T of V.children){const ie=Cr(A,T);if(ie.length)return ie.unshift(V),ie}return[]}class or{constructor(V,T){this.value=V,this.children=T}toString(){return`TreeNode(${this.value})`}}function Nr(A){const V={};return A&&A.children.forEach(T=>V[T.value.outlet]=T),V}class ur extends Tr{constructor(V,T){super(V),this.snapshot=T,hr(this,V)}toString(){return this.snapshot.toString()}}function $r(A,V){const T=function Kr(A,V){const rt=new Mo([],{},{},"",{},te,V,null,A.root,-1,{});return new er("",new or(rt,[]))}(A,V),ie=new l.X([new Bi("",{})]),Ce=new l.X({}),Ke=new l.X({}),rt=new l.X({}),Vt=new l.X(""),ri=new Pr(ie,Ce,rt,Vt,Ke,te,V,T.root);return ri.snapshot=T.root,new ur(new or(ri,[]),T)}class Pr{constructor(V,T,ie,Ce,Ke,rt,Vt,ri){this.url=V,this.params=T,this.queryParams=ie,this.fragment=Ce,this.data=Ke,this.outlet=rt,this.component=Vt,this.title=this.data?.pipe((0,Z.U)(Ti=>Ti[k]))??(0,o.of)(void 0),this._futureSnapshot=ri}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,Z.U)(V=>be(V)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Z.U)(V=>be(V)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Oo(A,V="emptyOnly"){const T=A.pathFromRoot;let ie=0;if("always"!==V)for(ie=T.length-1;ie>=1;){const Ce=T[ie],Ke=T[ie-1];if(Ce.routeConfig&&""===Ce.routeConfig.path)ie--;else{if(Ke.component)break;ie--}}return function an(A){return A.reduce((V,T)=>({params:{...V.params,...T.params},data:{...V.data,...T.data},resolve:{...T.data,...V.resolve,...T.routeConfig?.data,...T._resolvedData}}),{params:{},data:{},resolve:{}})}(T.slice(ie))}class Mo{get title(){return this.data?.[k]}constructor(V,T,ie,Ce,Ke,rt,Vt,ri,Ti,Oi,vn){this.url=V,this.params=T,this.queryParams=ie,this.fragment=Ce,this.data=Ke,this.outlet=rt,this.component=Vt,this.routeConfig=ri,this._urlSegment=Ti,this._lastPathIndex=Oi,this._resolve=vn}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=be(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=be(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(ie=>ie.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class er extends Tr{constructor(V,T){super(T),this.url=V,hr(this,T)}toString(){return Gr(this._root)}}function hr(A,V){V.value._routerState=A,V.children.forEach(T=>hr(A,T))}function Gr(A){const V=A.children.length>0?` { ${A.children.map(Gr).join(", ")} } `:"";return`${A.value}${V}`}function go(A){if(A.snapshot){const V=A.snapshot,T=A._futureSnapshot;A.snapshot=T,ge(V.queryParams,T.queryParams)||A.queryParams.next(T.queryParams),V.fragment!==T.fragment&&A.fragment.next(T.fragment),ge(V.params,T.params)||A.params.next(T.params),function Ue(A,V){if(A.length!==V.length)return!1;for(let T=0;T<A.length;++T)if(!ge(A[T],V[T]))return!1;return!0}(V.url,T.url)||A.url.next(T.url),ge(V.data,T.data)||A.data.next(T.data)}else A.snapshot=A._futureSnapshot,A.data.next(A._futureSnapshot.data)}function Eo(A,V){const T=ge(A.params,V.params)&&function ze(A,V){return ue(A,V)&&A.every((T,ie)=>ge(T.parameters,V[ie].parameters))}(A.url,V.url);return T&&!(!A.parent!=!V.parent)&&(!A.parent||Eo(A.parent,V.parent))}function xr(A,V,T){if(T&&A.shouldReuseRoute(V.value,T.value.snapshot)){const ie=T.value;ie._futureSnapshot=V.value;const Ce=function wo(A,V,T){return V.children.map(ie=>{for(const Ce of T.children)if(A.shouldReuseRoute(ie.value,Ce.value.snapshot))return xr(A,ie,Ce);return xr(A,ie)})}(A,V,T);return new or(ie,Ce)}{if(A.shouldAttach(V.value)){const Ke=A.retrieve(V.value);if(null!==Ke){const rt=Ke.route;return rt.value._futureSnapshot=V.value,rt.children=V.children.map(Vt=>xr(A,Vt)),rt}}const ie=function No(A){return new Pr(new l.X(A.url),new l.X(A.params),new l.X(A.queryParams),new l.X(A.fragment),new l.X(A.data),A.outlet,A.component,A)}(V.value),Ce=V.children.map(Ke=>xr(A,Ke));return new or(ie,Ce)}}const Zr="ngNavigationCancelingError";function Un(A,V){const{redirectTo:T,navigationBehaviorOptions:ie}=Xi(V)?{redirectTo:V,navigationBehaviorOptions:void 0}:V,Ce=gr(!1,0,V);return Ce.url=T,Ce.navigationBehaviorOptions=ie,Ce}function gr(A,V,T){const ie=new Error("NavigationCancelingError: "+(A||""));return ie[Zr]=!0,ie.cancellationCode=V,T&&(ie.url=T),ie}function co(A){return Ur(A)&&Xi(A.url)}function Ur(A){return A&&A[Zr]}class nr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new _r,this.attachRef=null}}let _r=(()=>{class A{constructor(){this.contexts=new Map}onChildOutletCreated(T,ie){const Ce=this.getOrCreateContext(T);Ce.outlet=ie,this.contexts.set(T,Ce)}onChildOutletDestroyed(T){const ie=this.getContext(T);ie&&(ie.outlet=null,ie.attachRef=null)}onOutletDeactivated(){const T=this.contexts;return this.contexts=new Map,T}onOutletReAttached(T){this.contexts=T}getOrCreateContext(T){let ie=this.getContext(T);return ie||(ie=new nr,this.contexts.set(T,ie)),ie}getContext(T){return this.contexts.get(T)||null}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const Qr=!1;let Xn=(()=>{class A{constructor(){this.activated=null,this._activatedRoute=null,this.name=te,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,this.attachEvents=new n.EventEmitter,this.detachEvents=new n.EventEmitter,this.parentContexts=(0,n.inject)(_r),this.location=(0,n.inject)(n.ViewContainerRef),this.changeDetector=(0,n.inject)(n.ChangeDetectorRef),this.environmentInjector=(0,n.inject)(n.EnvironmentInjector)}ngOnChanges(T){if(T.name){const{firstChange:ie,previousValue:Ce}=T.name;if(ie)return;this.isTrackedInParentContexts(Ce)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Ce)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(T){return this.parentContexts.getContext(T)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const T=this.parentContexts.getContext(this.name);T?.route&&(T.attachRef?this.attach(T.attachRef,T.route):this.activateWith(T.route,T.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.\u0275RuntimeError(4012,Qr);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.\u0275RuntimeError(4012,Qr);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.\u0275RuntimeError(4012,Qr);this.location.detach();const T=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(T.instance),T}attach(T,ie){this.activated=T,this._activatedRoute=ie,this.location.insert(T.hostView),this.attachEvents.emit(T.instance)}deactivate(){if(this.activated){const T=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(T)}}activateWith(T,ie){if(this.isActivated)throw new n.\u0275RuntimeError(4013,Qr);this._activatedRoute=T;const Ce=this.location,rt=T.snapshot.component,Vt=this.parentContexts.getOrCreateContext(this.name).children,ri=new Uo(T,Vt,Ce.injector);if(ie&&function _o(A){return!!A.resolveComponentFactory}(ie)){const Ti=ie.resolveComponentFactory(rt);this.activated=Ce.createComponent(Ti,Ce.length,ri)}else this.activated=Ce.createComponent(rt,{index:Ce.length,injector:ri,environmentInjector:ie??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275dir=n.\u0275\u0275defineDirective({type:A,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),A})();class Uo{constructor(V,T,ie){this.route=V,this.childContexts=T,this.parent=ie}get(V,T){return V===Pr?this.route:V===_r?this.childContexts:this.parent.get(V,T)}}let jn=(()=>{class A{}return A.\u0275fac=function(T){return new(T||A)},A.\u0275cmp=n.\u0275\u0275defineComponent({type:A,selectors:[["ng-component"]],standalone:!0,features:[n.\u0275\u0275StandaloneFeature],decls:1,vars:0,template:function(T,ie){1&T&&n.\u0275\u0275element(0,"router-outlet")},dependencies:[Xn],encapsulation:2}),A})();function Ye(A,V){return A.providers&&!A._injector&&(A._injector=(0,n.createEnvironmentInjector)(A.providers,V,`Route: ${A.path}`)),A._injector??V}function Ii(A){const V=A.children&&A.children.map(Ii),T=V?{...A,children:V}:{...A};return!T.component&&!T.loadComponent&&(V||T.loadChildren)&&T.outlet&&T.outlet!==te&&(T.component=jn),T}function si(A){return A.outlet||te}function fn(A,V){const T=A.filter(ie=>si(ie)===V);return T.push(...A.filter(ie=>si(ie)!==V)),T}function Gn(A){if(!A)return null;if(A.routeConfig?._injector)return A.routeConfig._injector;for(let V=A.parent;V;V=V.parent){const T=V.routeConfig;if(T?._loadedInjector)return T._loadedInjector;if(T?._injector)return T._injector}return null}class uo{constructor(V,T,ie,Ce){this.routeReuseStrategy=V,this.futureState=T,this.currState=ie,this.forwardEvent=Ce}activate(V){const T=this.futureState._root,ie=this.currState?this.currState._root:null;this.deactivateChildRoutes(T,ie,V),go(this.futureState.root),this.activateChildRoutes(T,ie,V)}deactivateChildRoutes(V,T,ie){const Ce=Nr(T);V.children.forEach(Ke=>{const rt=Ke.value.outlet;this.deactivateRoutes(Ke,Ce[rt],ie),delete Ce[rt]}),st(Ce,(Ke,rt)=>{this.deactivateRouteAndItsChildren(Ke,ie)})}deactivateRoutes(V,T,ie){const Ce=V.value,Ke=T?T.value:null;if(Ce===Ke)if(Ce.component){const rt=ie.getContext(Ce.outlet);rt&&this.deactivateChildRoutes(V,T,rt.children)}else this.deactivateChildRoutes(V,T,ie);else Ke&&this.deactivateRouteAndItsChildren(T,ie)}deactivateRouteAndItsChildren(V,T){V.value.component&&this.routeReuseStrategy.shouldDetach(V.value.snapshot)?this.detachAndStoreRouteSubtree(V,T):this.deactivateRouteAndOutlet(V,T)}detachAndStoreRouteSubtree(V,T){const ie=T.getContext(V.value.outlet),Ce=ie&&V.value.component?ie.children:T,Ke=Nr(V);for(const rt of Object.keys(Ke))this.deactivateRouteAndItsChildren(Ke[rt],Ce);if(ie&&ie.outlet){const rt=ie.outlet.detach(),Vt=ie.children.onOutletDeactivated();this.routeReuseStrategy.store(V.value.snapshot,{componentRef:rt,route:V,contexts:Vt})}}deactivateRouteAndOutlet(V,T){const ie=T.getContext(V.value.outlet),Ce=ie&&V.value.component?ie.children:T,Ke=Nr(V);for(const rt of Object.keys(Ke))this.deactivateRouteAndItsChildren(Ke[rt],Ce);ie&&(ie.outlet&&(ie.outlet.deactivate(),ie.children.onOutletDeactivated()),ie.attachRef=null,ie.resolver=null,ie.route=null)}activateChildRoutes(V,T,ie){const Ce=Nr(T);V.children.forEach(Ke=>{this.activateRoutes(Ke,Ce[Ke.value.outlet],ie),this.forwardEvent(new cn(Ke.value.snapshot))}),V.children.length&&this.forwardEvent(new Fi(V.value.snapshot))}activateRoutes(V,T,ie){const Ce=V.value,Ke=T?T.value:null;if(go(Ce),Ce===Ke)if(Ce.component){const rt=ie.getOrCreateContext(Ce.outlet);this.activateChildRoutes(V,T,rt.children)}else this.activateChildRoutes(V,T,ie);else if(Ce.component){const rt=ie.getOrCreateContext(Ce.outlet);if(this.routeReuseStrategy.shouldAttach(Ce.snapshot)){const Vt=this.routeReuseStrategy.retrieve(Ce.snapshot);this.routeReuseStrategy.store(Ce.snapshot,null),rt.children.onOutletReAttached(Vt.contexts),rt.attachRef=Vt.componentRef,rt.route=Vt.route.value,rt.outlet&&rt.outlet.attach(Vt.componentRef,Vt.route.value),go(Vt.route.value),this.activateChildRoutes(V,null,rt.children)}else{const Vt=Gn(Ce.snapshot),ri=Vt?.get(n.ComponentFactoryResolver)??null;rt.attachRef=null,rt.route=Ce,rt.resolver=ri,rt.injector=Vt,rt.outlet&&rt.outlet.activateWith(Ce,rt.injector),this.activateChildRoutes(V,null,rt.children)}}else this.activateChildRoutes(V,null,ie)}}class ve{constructor(V){this.path=V,this.route=this.path[this.path.length-1]}}class pe{constructor(V,T){this.component=V,this.route=T}}function y(A,V,T){const ie=A._root;return de(ie,V?V._root:null,T,[ie.value])}function N(A,V){const T=Symbol(),ie=V.get(A,T);return ie===T?"function"!=typeof A||(0,n.\u0275isInjectable)(A)?V.get(A):A:ie}function de(A,V,T,ie,Ce={canDeactivateChecks:[],canActivateChecks:[]}){const Ke=Nr(V);return A.children.forEach(rt=>{(function $e(A,V,T,ie,Ce={canDeactivateChecks:[],canActivateChecks:[]}){const Ke=A.value,rt=V?V.value:null,Vt=T?T.getContext(A.value.outlet):null;if(rt&&Ke.routeConfig===rt.routeConfig){const ri=function Ve(A,V,T){if("function"==typeof T)return T(A,V);switch(T){case"pathParamsChange":return!ue(A.url,V.url);case"pathParamsOrQueryParamsChange":return!ue(A.url,V.url)||!ge(A.queryParams,V.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Eo(A,V)||!ge(A.queryParams,V.queryParams);default:return!Eo(A,V)}}(rt,Ke,Ke.routeConfig.runGuardsAndResolvers);ri?Ce.canActivateChecks.push(new ve(ie)):(Ke.data=rt.data,Ke._resolvedData=rt._resolvedData),de(A,V,Ke.component?Vt?Vt.children:null:T,ie,Ce),ri&&Vt&&Vt.outlet&&Vt.outlet.isActivated&&Ce.canDeactivateChecks.push(new pe(Vt.outlet.component,rt))}else rt&&pt(V,Vt,Ce),Ce.canActivateChecks.push(new ve(ie)),de(A,null,Ke.component?Vt?Vt.children:null:T,ie,Ce)})(rt,Ke[rt.value.outlet],T,ie.concat([rt.value]),Ce),delete Ke[rt.value.outlet]}),st(Ke,(rt,Vt)=>pt(rt,T.getContext(Vt),Ce)),Ce}function pt(A,V,T){const ie=Nr(A),Ce=A.value;st(ie,(Ke,rt)=>{pt(Ke,Ce.component?V?V.children.getContext(rt):null:V,T)}),T.canDeactivateChecks.push(new pe(Ce.component&&V&&V.outlet&&V.outlet.isActivated?V.outlet.component:null,Ce))}function qt(A){return"function"==typeof A}function sr(A){return A instanceof d||"EmptyError"===A?.name}const cr=Symbol("INITIAL_VALUE");function _n(){return(0,le.w)(A=>(0,u.aj)(A.map(V=>V.pipe((0,q.q)(1),(0,X.O)(cr)))).pipe((0,Z.U)(V=>{for(const T of V)if(!0!==T){if(T===cr)return cr;if(!1===T||T instanceof _i)return T}return!0}),(0,K.h)(V=>V!==cr),(0,q.q)(1)))}function Ao(A){return(0,x.z)((0,zt.b)(V=>{if(Xi(V))throw Un(0,V)}),(0,Z.U)(V=>!0===V))}const vo={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Vo(A,V,T,ie,Ce){const Ke=ko(A,V,T);return Ke.matched?function br(A,V,T,ie){const Ce=V.canMatch;if(!Ce||0===Ce.length)return(0,o.of)(!0);const Ke=Ce.map(rt=>{const Vt=N(rt,A);return Nt(function vr(A){return A&&qt(A.canMatch)}(Vt)?Vt.canMatch(V,T):A.runInContext(()=>Vt(V,T)))});return(0,o.of)(Ke).pipe(_n(),Ao())}(ie=Ye(V,ie),V,T).pipe((0,Z.U)(rt=>!0===rt?Ke:{...vo})):(0,o.of)(Ke)}function ko(A,V,T){if(""===V.path)return"full"===V.pathMatch&&(A.hasChildren()||T.length>0)?{...vo}:{matched:!0,consumedSegments:[],remainingSegments:T,parameters:{},positionalParamSegments:{}};const Ce=(V.matcher||et)(T,A,V);if(!Ce)return{...vo};const Ke={};st(Ce.posParams,(Vt,ri)=>{Ke[ri]=Vt.path});const rt=Ce.consumed.length>0?{...Ke,...Ce.consumed[Ce.consumed.length-1].parameters}:Ke;return{matched:!0,consumedSegments:Ce.consumed,remainingSegments:T.slice(Ce.consumed.length),parameters:rt,positionalParamSegments:Ce.posParams??{}}}function zo(A,V,T,ie){if(T.length>0&&function $s(A,V,T){return T.some(ie=>is(A,V,ie)&&si(ie)!==te)}(A,T,ie)){const Ke=new pi(V,function ws(A,V,T,ie){const Ce={};Ce[te]=ie,ie._sourceSegment=A,ie._segmentIndexShift=V.length;for(const Ke of T)if(""===Ke.path&&si(Ke)!==te){const rt=new pi([],{});rt._sourceSegment=A,rt._segmentIndexShift=V.length,Ce[si(Ke)]=rt}return Ce}(A,V,ie,new pi(T,A.children)));return Ke._sourceSegment=A,Ke._segmentIndexShift=V.length,{segmentGroup:Ke,slicedSegments:[]}}if(0===T.length&&function Wo(A,V,T){return T.some(ie=>is(A,V,ie))}(A,T,ie)){const Ke=new pi(A.segments,function Es(A,V,T,ie,Ce){const Ke={};for(const rt of ie)if(is(A,T,rt)&&!Ce[si(rt)]){const Vt=new pi([],{});Vt._sourceSegment=A,Vt._segmentIndexShift=V.length,Ke[si(rt)]=Vt}return{...Ce,...Ke}}(A,V,T,ie,A.children));return Ke._sourceSegment=A,Ke._segmentIndexShift=V.length,{segmentGroup:Ke,slicedSegments:T}}const Ce=new pi(A.segments,A.children);return Ce._sourceSegment=A,Ce._segmentIndexShift=V.length,{segmentGroup:Ce,slicedSegments:T}}function is(A,V,T){return(!(A.hasChildren()||V.length>0)||"full"!==T.pathMatch)&&""===T.path}function Is(A,V,T,ie){return!!(si(A)===ie||ie!==te&&is(V,T,A))&&("**"===A.path||ko(V,A,T).matched)}function na(A,V,T){return 0===V.length&&!A.children[T]}const An=!1;class Yr{constructor(V){this.segmentGroup=V||null}}class Jn{constructor(V){this.urlTree=V}}function Yo(A){return(0,w._)(new Yr(A))}function Ss(A){return(0,w._)(new Jn(A))}class oa{constructor(V,T,ie,Ce,Ke){this.injector=V,this.configLoader=T,this.urlSerializer=ie,this.urlTree=Ce,this.config=Ke,this.allowRedirects=!0}apply(){const V=zo(this.urlTree.root,[],[],this.config).segmentGroup,T=new pi(V.segments,V.children);return this.expandSegmentGroup(this.injector,this.config,T,te).pipe((0,Z.U)(Ke=>this.createUrlTree(fr(Ke),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,ti.K)(Ke=>{if(Ke instanceof Jn)return this.allowRedirects=!1,this.match(Ke.urlTree);throw Ke instanceof Yr?this.noMatchError(Ke):Ke}))}match(V){return this.expandSegmentGroup(this.injector,this.config,V.root,te).pipe((0,Z.U)(Ce=>this.createUrlTree(fr(Ce),V.queryParams,V.fragment))).pipe((0,ti.K)(Ce=>{throw Ce instanceof Yr?this.noMatchError(Ce):Ce}))}noMatchError(V){return new n.\u0275RuntimeError(4002,An)}createUrlTree(V,T,ie){const Ce=yr(V);return new _i(Ce,T,ie)}expandSegmentGroup(V,T,ie,Ce){return 0===ie.segments.length&&ie.hasChildren()?this.expandChildren(V,T,ie).pipe((0,Z.U)(Ke=>new pi([],Ke))):this.expandSegment(V,ie,T,ie.segments,Ce,!0)}expandChildren(V,T,ie){const Ce=[];for(const Ke of Object.keys(ie.children))"primary"===Ke?Ce.unshift(Ke):Ce.push(Ke);return(0,e.D)(Ce).pipe((0,jt.b)(Ke=>{const rt=ie.children[Ke],Vt=fn(T,Ke);return this.expandSegmentGroup(V,Vt,rt,Ke).pipe((0,Z.U)(ri=>({segment:ri,outlet:Ke})))}),mi((Ke,rt)=>(Ke[rt.outlet]=rt.segment,Ke),{}),H())}expandSegment(V,T,ie,Ce,Ke,rt){return(0,e.D)(ie).pipe((0,jt.b)(Vt=>this.expandSegmentAgainstRoute(V,T,ie,Vt,Ce,Ke,rt).pipe((0,ti.K)(Ti=>{if(Ti instanceof Yr)return(0,o.of)(null);throw Ti}))),dt(Vt=>!!Vt),(0,ti.K)((Vt,ri)=>{if(sr(Vt))return na(T,Ce,Ke)?(0,o.of)(new pi([],{})):Yo(T);throw Vt}))}expandSegmentAgainstRoute(V,T,ie,Ce,Ke,rt,Vt){return Is(Ce,T,Ke,rt)?void 0===Ce.redirectTo?this.matchSegmentAgainstRoute(V,T,Ce,Ke,rt):Vt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(V,T,ie,Ce,Ke,rt):Yo(T):Yo(T)}expandSegmentAgainstRouteUsingRedirect(V,T,ie,Ce,Ke,rt){return"**"===Ce.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(V,ie,Ce,rt):this.expandRegularSegmentAgainstRouteUsingRedirect(V,T,ie,Ce,Ke,rt)}expandWildCardWithParamsAgainstRouteUsingRedirect(V,T,ie,Ce){const Ke=this.applyRedirectCommands([],ie.redirectTo,{});return ie.redirectTo.startsWith("/")?Ss(Ke):this.lineralizeSegments(ie,Ke).pipe((0,U.zg)(rt=>{const Vt=new pi(rt,{});return this.expandSegment(V,Vt,T,rt,Ce,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(V,T,ie,Ce,Ke,rt){const{matched:Vt,consumedSegments:ri,remainingSegments:Ti,positionalParamSegments:Oi}=ko(T,Ce,Ke);if(!Vt)return Yo(T);const vn=this.applyRedirectCommands(ri,Ce.redirectTo,Oi);return Ce.redirectTo.startsWith("/")?Ss(vn):this.lineralizeSegments(Ce,vn).pipe((0,U.zg)(pr=>this.expandSegment(V,T,ie,pr.concat(Ti),rt,!1)))}matchSegmentAgainstRoute(V,T,ie,Ce,Ke){return"**"===ie.path?(V=Ye(ie,V),ie.loadChildren?(ie._loadedRoutes?(0,o.of)({routes:ie._loadedRoutes,injector:ie._loadedInjector}):this.configLoader.loadChildren(V,ie)).pipe((0,Z.U)(Vt=>(ie._loadedRoutes=Vt.routes,ie._loadedInjector=Vt.injector,new pi(Ce,{})))):(0,o.of)(new pi(Ce,{}))):Vo(T,ie,Ce,V).pipe((0,le.w)(({matched:rt,consumedSegments:Vt,remainingSegments:ri})=>rt?this.getChildConfig(V=ie._injector??V,ie,Ce).pipe((0,U.zg)(Oi=>{const vn=Oi.injector??V,pr=Oi.routes,{segmentGroup:ps,slicedSegments:Go}=zo(T,Vt,ri,pr),Jo=new pi(ps.segments,ps.children);if(0===Go.length&&Jo.hasChildren())return this.expandChildren(vn,pr,Jo).pipe((0,Z.U)(Ma=>new pi(Vt,Ma)));if(0===pr.length&&0===Go.length)return(0,o.of)(new pi(Vt,{}));const Po=si(ie)===Ke;return this.expandSegment(vn,Jo,pr,Go,Po?te:Ke,!0).pipe((0,Z.U)(xa=>new pi(Vt.concat(xa.segments),xa.children)))})):Yo(T)))}getChildConfig(V,T,ie){return T.children?(0,o.of)({routes:T.children,injector:V}):T.loadChildren?void 0!==T._loadedRoutes?(0,o.of)({routes:T._loadedRoutes,injector:T._loadedInjector}):function jo(A,V,T,ie){const Ce=V.canLoad;if(void 0===Ce||0===Ce.length)return(0,o.of)(!0);const Ke=Ce.map(rt=>{const Vt=N(rt,A);return Nt(function Ai(A){return A&&qt(A.canLoad)}(Vt)?Vt.canLoad(V,T):A.runInContext(()=>Vt(V,T)))});return(0,o.of)(Ke).pipe(_n(),Ao())}(V,T,ie).pipe((0,U.zg)(Ce=>Ce?this.configLoader.loadChildren(V,T).pipe((0,zt.b)(Ke=>{T._loadedRoutes=Ke.routes,T._loadedInjector=Ke.injector})):function ra(A){return(0,w._)(gr(An,3))}())):(0,o.of)({routes:[],injector:V})}lineralizeSegments(V,T){let ie=[],Ce=T.root;for(;;){if(ie=ie.concat(Ce.segments),0===Ce.numberOfChildren)return(0,o.of)(ie);if(Ce.numberOfChildren>1||!Ce.children[te])return V.redirectTo,(0,w._)(new n.\u0275RuntimeError(4e3,An));Ce=Ce.children[te]}}applyRedirectCommands(V,T,ie){return this.applyRedirectCreateUrlTree(T,this.urlSerializer.parse(T),V,ie)}applyRedirectCreateUrlTree(V,T,ie,Ce){const Ke=this.createSegmentGroup(V,T.root,ie,Ce);return new _i(Ke,this.createQueryParams(T.queryParams,this.urlTree.queryParams),T.fragment)}createQueryParams(V,T){const ie={};return st(V,(Ce,Ke)=>{if("string"==typeof Ce&&Ce.startsWith(":")){const Vt=Ce.substring(1);ie[Ke]=T[Vt]}else ie[Ke]=Ce}),ie}createSegmentGroup(V,T,ie,Ce){const Ke=this.createSegments(V,T.segments,ie,Ce);let rt={};return st(T.children,(Vt,ri)=>{rt[ri]=this.createSegmentGroup(V,Vt,ie,Ce)}),new pi(Ke,rt)}createSegments(V,T,ie,Ce){return T.map(Ke=>Ke.path.startsWith(":")?this.findPosParam(V,Ke,Ce):this.findOrReturn(Ke,ie))}findPosParam(V,T,ie){const Ce=ie[T.path.substring(1)];if(!Ce)throw new n.\u0275RuntimeError(4001,An);return Ce}findOrReturn(V,T){let ie=0;for(const Ce of T){if(Ce.path===V.path)return T.splice(ie),Ce;ie++}return V}}class Xo{}class oe{constructor(V,T,ie,Ce,Ke,rt,Vt){this.injector=V,this.rootComponentType=T,this.config=ie,this.urlTree=Ce,this.url=Ke,this.paramsInheritanceStrategy=rt,this.urlSerializer=Vt}recognize(){const V=zo(this.urlTree.root,[],[],this.config.filter(T=>void 0===T.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,V,te).pipe((0,Z.U)(T=>{if(null===T)return null;const ie=new Mo([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},te,this.rootComponentType,null,this.urlTree.root,-1,{}),Ce=new or(ie,T),Ke=new er(this.url,Ce);return this.inheritParamsAndData(Ke._root),Ke}))}inheritParamsAndData(V){const T=V.value,ie=Oo(T,this.paramsInheritanceStrategy);T.params=Object.freeze(ie.params),T.data=Object.freeze(ie.data),V.children.forEach(Ce=>this.inheritParamsAndData(Ce))}processSegmentGroup(V,T,ie,Ce){return 0===ie.segments.length&&ie.hasChildren()?this.processChildren(V,T,ie):this.processSegment(V,T,ie,ie.segments,Ce)}processChildren(V,T,ie){return(0,e.D)(Object.keys(ie.children)).pipe((0,jt.b)(Ce=>{const Ke=ie.children[Ce],rt=fn(T,Ce);return this.processSegmentGroup(V,rt,Ke,Ce)}),mi((Ce,Ke)=>Ce&&Ke?(Ce.push(...Ke),Ce):null),(0,W.o)(Ce=>null!==Ce),xe(null),H(),(0,Z.U)(Ce=>{if(null===Ce)return null;const Ke=ei(Ce);return function Ne(A){A.sort((V,T)=>V.value.outlet===te?-1:T.value.outlet===te?1:V.value.outlet.localeCompare(T.value.outlet))}(Ke),Ke}))}processSegment(V,T,ie,Ce,Ke){return(0,e.D)(T).pipe((0,jt.b)(rt=>this.processSegmentAgainstRoute(rt._injector??V,rt,ie,Ce,Ke)),dt(rt=>!!rt),(0,ti.K)(rt=>{if(sr(rt))return na(ie,Ce,Ke)?(0,o.of)([]):(0,o.of)(null);throw rt}))}processSegmentAgainstRoute(V,T,ie,Ce,Ke){if(T.redirectTo||!Is(T,ie,Ce,Ke))return(0,o.of)(null);let rt;if("**"===T.path){const Vt=Ce.length>0?Pt(Ce).parameters:{},ri=wn(ie)+Ce.length,Ti=new Mo(Ce,Vt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Yi(T),si(T),T.component??T._loadedComponent??null,T,En(ie),ri,tr(T));rt=(0,o.of)({snapshot:Ti,consumedSegments:[],remainingSegments:[]})}else rt=Vo(ie,T,Ce,V).pipe((0,Z.U)(({matched:Vt,consumedSegments:ri,remainingSegments:Ti,parameters:Oi})=>{if(!Vt)return null;const vn=wn(ie)+ri.length;return{snapshot:new Mo(ri,Oi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Yi(T),si(T),T.component??T._loadedComponent??null,T,En(ie),vn,tr(T)),consumedSegments:ri,remainingSegments:Ti}}));return rt.pipe((0,le.w)(Vt=>{if(null===Vt)return(0,o.of)(null);const{snapshot:ri,consumedSegments:Ti,remainingSegments:Oi}=Vt;V=T._injector??V;const vn=T._loadedInjector??V,pr=function bt(A){return A.children?A.children:A.loadChildren?A._loadedRoutes:[]}(T),{segmentGroup:ps,slicedSegments:Go}=zo(ie,Ti,Oi,pr.filter(Po=>void 0===Po.redirectTo));if(0===Go.length&&ps.hasChildren())return this.processChildren(vn,pr,ps).pipe((0,Z.U)(Po=>null===Po?null:[new or(ri,Po)]));if(0===pr.length&&0===Go.length)return(0,o.of)([new or(ri,[])]);const Jo=si(T)===Ke;return this.processSegment(vn,pr,ps,Go,Jo?te:Ke).pipe((0,Z.U)(Po=>null===Po?null:[new or(ri,Po)]))}))}}function Gt(A){const V=A.value.routeConfig;return V&&""===V.path&&void 0===V.redirectTo}function ei(A){const V=[],T=new Set;for(const ie of A){if(!Gt(ie)){V.push(ie);continue}const Ce=V.find(Ke=>ie.value.routeConfig===Ke.value.routeConfig);void 0!==Ce?(Ce.children.push(...ie.children),T.add(Ce)):V.push(ie)}for(const ie of T){const Ce=ei(ie.children);V.push(new or(ie.value,Ce))}return V.filter(ie=>!T.has(ie))}function En(A){let V=A;for(;V._sourceSegment;)V=V._sourceSegment;return V}function wn(A){let V=A,T=V._segmentIndexShift??0;for(;V._sourceSegment;)V=V._sourceSegment,T+=V._segmentIndexShift??0;return T-1}function Yi(A){return A.data||{}}function tr(A){return A.resolve||{}}function mo(A){return"string"==typeof A.title||null===A.title}function s(A){return(0,le.w)(V=>{const T=A(V);return T?(0,e.D)(T).pipe((0,Z.U)(()=>V)):(0,o.of)(V)})}const E=new n.InjectionToken("ROUTES");let Y=(()=>{class A{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,n.inject)(n.Compiler)}loadComponent(T){if(this.componentLoaders.get(T))return this.componentLoaders.get(T);if(T._loadedComponent)return(0,o.of)(T._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(T);const ie=Nt(T.loadComponent()).pipe((0,Z.U)(Xe),(0,zt.b)(Ke=>{this.onLoadEndListener&&this.onLoadEndListener(T),T._loadedComponent=Ke}),(0,mt.x)(()=>{this.componentLoaders.delete(T)})),Ce=new S.c(ie,()=>new j.xQ).pipe((0,Pe.x)());return this.componentLoaders.set(T,Ce),Ce}loadChildren(T,ie){if(this.childrenLoaders.get(ie))return this.childrenLoaders.get(ie);if(ie._loadedRoutes)return(0,o.of)({routes:ie._loadedRoutes,injector:ie._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(ie);const Ke=this.loadModuleFactoryOrRoutes(ie.loadChildren).pipe((0,Z.U)(Vt=>{this.onLoadEndListener&&this.onLoadEndListener(ie);let ri,Ti,Oi=!1;Array.isArray(Vt)?Ti=Vt:(ri=Vt.create(T).injector,Ti=gt(ri.get(E,[],n.InjectFlags.Self|n.InjectFlags.Optional)));return{routes:Ti.map(Ii),injector:ri}}),(0,mt.x)(()=>{this.childrenLoaders.delete(ie)})),rt=new S.c(Ke,()=>new j.xQ).pipe((0,Pe.x)());return this.childrenLoaders.set(ie,rt),rt}loadModuleFactoryOrRoutes(T){return Nt(T()).pipe((0,Z.U)(Xe),(0,U.zg)(ie=>ie instanceof n.NgModuleFactory||Array.isArray(ie)?(0,o.of)(ie):(0,e.D)(this.compiler.compileModuleAsync(ie))))}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();function Xe(A){return function ye(A){return A&&"object"==typeof A&&"default"in A}(A)?A.default:A}let Wt=(()=>{class A{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new j.xQ,this.configLoader=(0,n.inject)(Y),this.environmentInjector=(0,n.inject)(n.EnvironmentInjector),this.urlSerializer=(0,n.inject)(Ee),this.rootContexts=(0,n.inject)(_r),this.navigationId=0,this.afterPreactivation=()=>(0,o.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Ce=>this.events.next(new Tn(Ce)),this.configLoader.onLoadStartListener=Ce=>this.events.next(new Hn(Ce))}complete(){this.transitions?.complete()}handleNavigationRequest(T){const ie=++this.navigationId;this.transitions?.next({...this.transitions.value,...T,id:ie})}setupNavigations(T){return this.transitions=new l.X({id:0,targetPageId:0,currentUrlTree:T.currentUrlTree,currentRawUrl:T.currentUrlTree,extractedUrl:T.urlHandlingStrategy.extract(T.currentUrlTree),urlAfterRedirects:T.urlHandlingStrategy.extract(T.currentUrlTree),rawUrl:T.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ei,restoredState:null,currentSnapshot:T.routerState.snapshot,targetSnapshot:null,currentRouterState:T.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,K.h)(ie=>0!==ie.id),(0,Z.U)(ie=>({...ie,extractedUrl:T.urlHandlingStrategy.extract(ie.rawUrl)})),(0,le.w)(ie=>{let Ce=!1,Ke=!1;return(0,o.of)(ie).pipe((0,zt.b)(rt=>{this.currentNavigation={id:rt.id,initialUrl:rt.rawUrl,extractedUrl:rt.extractedUrl,trigger:rt.source,extras:rt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,le.w)(rt=>{const Vt=T.browserUrlTree.toString(),ri=!T.navigated||rt.extractedUrl.toString()!==Vt||Vt!==T.currentUrlTree.toString();if(!ri&&"reload"!==(rt.extras.onSameUrlNavigation??T.onSameUrlNavigation)){const Oi="";return this.events.next(new je(rt.id,T.serializeUrl(ie.rawUrl),Oi,0)),T.rawUrlTree=rt.rawUrl,rt.resolve(null),f.E}if(T.urlHandlingStrategy.shouldProcessUrl(rt.rawUrl))return Yt(rt.source)&&(T.browserUrlTree=rt.extractedUrl),(0,o.of)(rt).pipe((0,le.w)(Oi=>{const vn=this.transitions?.getValue();return this.events.next(new ht(Oi.id,this.urlSerializer.serialize(Oi.extractedUrl),Oi.source,Oi.restoredState)),vn!==this.transitions?.getValue()?f.E:Promise.resolve(Oi)}),function So(A,V,T,ie){return(0,le.w)(Ce=>function cs(A,V,T,ie,Ce){return new oa(A,V,T,ie,Ce).apply()}(A,V,T,Ce.extractedUrl,ie).pipe((0,Z.U)(Ke=>({...Ce,urlAfterRedirects:Ke}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,T.config),(0,zt.b)(Oi=>{this.currentNavigation={...this.currentNavigation,finalUrl:Oi.urlAfterRedirects},ie.urlAfterRedirects=Oi.urlAfterRedirects}),function Cn(A,V,T,ie,Ce){return(0,U.zg)(Ke=>function Se(A,V,T,ie,Ce,Ke,rt="emptyOnly"){return new oe(A,V,T,ie,Ce,rt,Ke).recognize().pipe((0,le.w)(Vt=>null===Vt?function ee(A){return new g.y(V=>V.error(A))}(new Xo):(0,o.of)(Vt)))}(A,V,T,Ke.urlAfterRedirects,ie.serialize(Ke.urlAfterRedirects),ie,Ce).pipe((0,Z.U)(rt=>({...Ke,targetSnapshot:rt}))))}(this.environmentInjector,this.rootComponentType,T.config,this.urlSerializer,T.paramsInheritanceStrategy),(0,zt.b)(Oi=>{if(ie.targetSnapshot=Oi.targetSnapshot,"eager"===T.urlUpdateStrategy){if(!Oi.extras.skipLocationChange){const pr=T.urlHandlingStrategy.merge(Oi.urlAfterRedirects,Oi.rawUrl);T.setBrowserUrl(pr,Oi)}T.browserUrlTree=Oi.urlAfterRedirects}const vn=new At(Oi.id,this.urlSerializer.serialize(Oi.extractedUrl),this.urlSerializer.serialize(Oi.urlAfterRedirects),Oi.targetSnapshot);this.events.next(vn)}));if(ri&&T.urlHandlingStrategy.shouldProcessUrl(T.rawUrlTree)){const{id:Oi,extractedUrl:vn,source:pr,restoredState:ps,extras:Go}=rt,Jo=new ht(Oi,this.urlSerializer.serialize(vn),pr,ps);this.events.next(Jo);const Po=$r(vn,this.rootComponentType).snapshot;return ie={...rt,targetSnapshot:Po,urlAfterRedirects:vn,extras:{...Go,skipLocationChange:!1,replaceUrl:!1}},(0,o.of)(ie)}{const Oi="";return this.events.next(new je(rt.id,T.serializeUrl(ie.extractedUrl),Oi,1)),T.rawUrlTree=rt.rawUrl,rt.resolve(null),f.E}}),(0,zt.b)(rt=>{const Vt=new li(rt.id,this.urlSerializer.serialize(rt.extractedUrl),this.urlSerializer.serialize(rt.urlAfterRedirects),rt.targetSnapshot);this.events.next(Vt)}),(0,Z.U)(rt=>ie={...rt,guards:y(rt.targetSnapshot,rt.currentSnapshot,this.rootContexts)}),function Zn(A,V){return(0,U.zg)(T=>{const{targetSnapshot:ie,currentSnapshot:Ce,guards:{canActivateChecks:Ke,canDeactivateChecks:rt}}=T;return 0===rt.length&&0===Ke.length?(0,o.of)({...T,guardsResult:!0}):function Io(A,V,T,ie){return(0,e.D)(A).pipe((0,U.zg)(Ce=>function ls(A,V,T,ie,Ce){const Ke=V&&V.routeConfig?V.routeConfig.canDeactivate:null;if(!Ke||0===Ke.length)return(0,o.of)(!0);const rt=Ke.map(Vt=>{const ri=Gn(V)??Ce,Ti=N(Vt,ri);return Nt(function gn(A){return A&&qt(A.canDeactivate)}(Ti)?Ti.canDeactivate(A,V,T,ie):ri.runInContext(()=>Ti(A,V,T,ie))).pipe(dt())});return(0,o.of)(rt).pipe(_n())}(Ce.component,Ce.route,T,V,ie)),dt(Ce=>!0!==Ce,!0))}(rt,ie,Ce,A).pipe((0,U.zg)(Vt=>Vt&&function ki(A){return"boolean"==typeof A}(Vt)?function to(A,V,T,ie){return(0,e.D)(V).pipe((0,jt.b)(Ce=>(0,b.z)(function ho(A,V){return null!==A&&V&&V(new Bo(A)),(0,o.of)(!0)}(Ce.route.parent,ie),function Mr(A,V){return null!==A&&V&&V(new bn(A)),(0,o.of)(!0)}(Ce.route,ie),function Ms(A,V,T){const ie=V[V.length-1],Ke=V.slice(0,V.length-1).reverse().map(rt=>function J(A){const V=A.routeConfig?A.routeConfig.canActivateChild:null;return V&&0!==V.length?{node:A,guards:V}:null}(rt)).filter(rt=>null!==rt).map(rt=>(0,C.P)(()=>{const Vt=rt.guards.map(ri=>{const Ti=Gn(rt.node)??T,Oi=N(ri,Ti);return Nt(function Hi(A){return A&&qt(A.canActivateChild)}(Oi)?Oi.canActivateChild(ie,A):Ti.runInContext(()=>Oi(ie,A))).pipe(dt())});return(0,o.of)(Vt).pipe(_n())}));return(0,o.of)(Ke).pipe(_n())}(A,Ce.path,T),function io(A,V,T){const ie=V.routeConfig?V.routeConfig.canActivate:null;if(!ie||0===ie.length)return(0,o.of)(!0);const Ce=ie.map(Ke=>(0,C.P)(()=>{const rt=Gn(V)??T,Vt=N(Ke,rt);return Nt(function hi(A){return A&&qt(A.canActivate)}(Vt)?Vt.canActivate(V,A):rt.runInContext(()=>Vt(V,A))).pipe(dt())}));return(0,o.of)(Ce).pipe(_n())}(A,Ce.route,T))),dt(Ce=>!0!==Ce,!0))}(ie,Ke,A,V):(0,o.of)(Vt)),(0,Z.U)(Vt=>({...T,guardsResult:Vt})))})}(this.environmentInjector,rt=>this.events.next(rt)),(0,zt.b)(rt=>{if(ie.guardsResult=rt.guardsResult,Xi(rt.guardsResult))throw Un(0,rt.guardsResult);const Vt=new zi(rt.id,this.urlSerializer.serialize(rt.extractedUrl),this.urlSerializer.serialize(rt.urlAfterRedirects),rt.targetSnapshot,!!rt.guardsResult);this.events.next(Vt)}),(0,K.h)(rt=>!!rt.guardsResult||(T.restoreHistory(rt),this.cancelNavigationTransition(rt,"",3),!1)),s(rt=>{if(rt.guards.canActivateChecks.length)return(0,o.of)(rt).pipe((0,zt.b)(Vt=>{const ri=new dn(Vt.id,this.urlSerializer.serialize(Vt.extractedUrl),this.urlSerializer.serialize(Vt.urlAfterRedirects),Vt.targetSnapshot);this.events.next(ri)}),(0,le.w)(Vt=>{let ri=!1;return(0,o.of)(Vt).pipe(function In(A,V){return(0,U.zg)(T=>{const{targetSnapshot:ie,guards:{canActivateChecks:Ce}}=T;if(!Ce.length)return(0,o.of)(T);let Ke=0;return(0,e.D)(Ce).pipe((0,jt.b)(rt=>function Or(A,V,T,ie){const Ce=A.routeConfig,Ke=A._resolve;return void 0!==Ce?.title&&!mo(Ce)&&(Ke[k]=Ce.title),function Er(A,V,T,ie){const Ce=function $o(A){return[...Object.keys(A),...Object.getOwnPropertySymbols(A)]}(A);if(0===Ce.length)return(0,o.of)({});const Ke={};return(0,e.D)(Ce).pipe((0,U.zg)(rt=>function jr(A,V,T,ie){const Ce=Gn(V)??ie,Ke=N(A,Ce);return Nt(Ke.resolve?Ke.resolve(V,T):Ce.runInContext(()=>Ke(V,T)))}(A[rt],V,T,ie).pipe(dt(),(0,zt.b)(Vt=>{Ke[rt]=Vt}))),_t(1),function He(A){return V=>V.lift(new Te(A))}(Ke),(0,ti.K)(rt=>sr(rt)?f.E:(0,w._)(rt)))}(Ke,A,V,ie).pipe((0,Z.U)(rt=>(A._resolvedData=rt,A.data=Oo(A,T).resolve,Ce&&mo(Ce)&&(A.data[k]=Ce.title),null)))}(rt.route,ie,A,V)),(0,zt.b)(()=>Ke++),_t(1),(0,U.zg)(rt=>Ke===Ce.length?(0,o.of)(T):f.E))})}(T.paramsInheritanceStrategy,this.environmentInjector),(0,zt.b)({next:()=>ri=!0,complete:()=>{ri||(T.restoreHistory(Vt),this.cancelNavigationTransition(Vt,"",2))}}))}),(0,zt.b)(Vt=>{const ri=new en(Vt.id,this.urlSerializer.serialize(Vt.extractedUrl),this.urlSerializer.serialize(Vt.urlAfterRedirects),Vt.targetSnapshot);this.events.next(ri)}))}),s(rt=>{const Vt=ri=>{const Ti=[];ri.routeConfig?.loadComponent&&!ri.routeConfig._loadedComponent&&Ti.push(this.configLoader.loadComponent(ri.routeConfig).pipe((0,zt.b)(Oi=>{ri.component=Oi}),(0,Z.U)(()=>{})));for(const Oi of ri.children)Ti.push(...Vt(Oi));return Ti};return(0,u.aj)(Vt(rt.targetSnapshot.root)).pipe(xe(),(0,q.q)(1))}),s(()=>this.afterPreactivation()),(0,Z.U)(rt=>{const Vt=function lo(A,V,T){const ie=xr(A,V._root,T?T._root:void 0);return new ur(ie,V)}(T.routeReuseStrategy,rt.targetSnapshot,rt.currentRouterState);return ie={...rt,targetRouterState:Vt}}),(0,zt.b)(rt=>{T.currentUrlTree=rt.urlAfterRedirects,T.rawUrlTree=T.urlHandlingStrategy.merge(rt.urlAfterRedirects,rt.rawUrl),T.routerState=rt.targetRouterState,"deferred"===T.urlUpdateStrategy&&(rt.extras.skipLocationChange||T.setBrowserUrl(T.rawUrlTree,rt),T.browserUrlTree=rt.urlAfterRedirects)}),((A,V,T)=>(0,Z.U)(ie=>(new uo(V,ie.targetRouterState,ie.currentRouterState,T).activate(A),ie)))(this.rootContexts,T.routeReuseStrategy,rt=>this.events.next(rt)),(0,q.q)(1),(0,zt.b)({next:rt=>{Ce=!0,this.lastSuccessfulNavigation=this.currentNavigation,T.navigated=!0,this.events.next(new ni(rt.id,this.urlSerializer.serialize(rt.extractedUrl),this.urlSerializer.serialize(T.currentUrlTree))),T.titleStrategy?.updateTitle(rt.targetRouterState.snapshot),rt.resolve(!0)},complete:()=>{Ce=!0}}),(0,mt.x)(()=>{Ce||Ke||this.cancelNavigationTransition(ie,"",1),this.currentNavigation?.id===ie.id&&(this.currentNavigation=null)}),(0,ti.K)(rt=>{if(Ke=!0,Ur(rt)){co(rt)||(T.navigated=!0,T.restoreHistory(ie,!0));const Vt=new he(ie.id,this.urlSerializer.serialize(ie.extractedUrl),rt.message,rt.cancellationCode);if(this.events.next(Vt),co(rt)){const ri=T.urlHandlingStrategy.merge(rt.url,T.rawUrlTree),Ti={skipLocationChange:ie.extras.skipLocationChange,replaceUrl:"eager"===T.urlUpdateStrategy||Yt(ie.source)};T.scheduleNavigation(ri,Ei,null,Ti,{resolve:ie.resolve,reject:ie.reject,promise:ie.promise})}else ie.resolve(!1)}else{T.restoreHistory(ie,!0);const Vt=new Je(ie.id,this.urlSerializer.serialize(ie.extractedUrl),rt,ie.targetSnapshot??void 0);this.events.next(Vt);try{ie.resolve(T.errorHandler(rt))}catch(ri){ie.reject(ri)}}return f.E}))}))}cancelNavigationTransition(T,ie,Ce){const Ke=new he(T.id,this.urlSerializer.serialize(T.extractedUrl),ie,Ce);this.events.next(Ke),T.resolve(!1)}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();function Yt(A){return A!==Ei}let di=(()=>{class A{buildTitle(T){let ie,Ce=T.root;for(;void 0!==Ce;)ie=this.getResolvedTitleForRoute(Ce)??ie,Ce=Ce.children.find(Ke=>Ke.outlet===te);return ie}getResolvedTitleForRoute(T){return T.data[k]}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:function(){return(0,n.inject)(Di)},providedIn:"root"}),A})(),Di=(()=>{class A extends di{constructor(T){super(),this.title=T}updateTitle(T){const ie=this.buildTitle(T);void 0!==ie&&this.title.setTitle(ie)}}return A.\u0275fac=function(T){return new(T||A)(n.\u0275\u0275inject(ut.Dx))},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),$i=(()=>{class A{}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:function(){return(0,n.inject)(Vr)},providedIn:"root"}),A})();class un{shouldDetach(V){return!1}store(V,T){}shouldAttach(V){return!1}retrieve(V){return null}shouldReuseRoute(V,T){return V.routeConfig===T.routeConfig}}let Vr=(()=>{class A extends un{}return A.\u0275fac=function(){let V;return function(ie){return(V||(V=n.\u0275\u0275getInheritedFactory(A)))(ie||A)}}(),A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const po=new n.InjectionToken("",{providedIn:"root",factory:()=>({})});let Ar=(()=>{class A{}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:function(){return(0,n.inject)(ds)},providedIn:"root"}),A})(),ds=(()=>{class A{shouldProcessUrl(T){return!0}extract(T){return T}merge(T,ie){return T}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();function sa(A){throw A}function Fs(A,V,T){return V.parse("/")}const ns={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},rs={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Xr=(()=>{class A{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,n.inject)(n.\u0275Console),this.isNgZoneEnabled=!1,this.options=(0,n.inject)(po,{optional:!0})||{},this.errorHandler=this.options.errorHandler||sa,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Fs,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,n.inject)(Ar),this.routeReuseStrategy=(0,n.inject)($i),this.urlCreationStrategy=(0,n.inject)(Hr),this.titleStrategy=(0,n.inject)(di),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=gt((0,n.inject)(E,{optional:!0})??[]),this.navigationTransitions=(0,n.inject)(Wt),this.urlSerializer=(0,n.inject)(Ee),this.location=(0,n.inject)(B.Location),this.isNgZoneEnabled=(0,n.inject)(n.NgZone)instanceof n.NgZone&&n.NgZone.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new _i,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=$r(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(T=>{this.lastSuccessfulId=T.id,this.currentPageId=this.browserPageId??0},T=>{this.console.warn(`Unhandled Navigation Error: ${T}`)})}resetRootComponentType(T){this.routerState.root.component=T,this.navigationTransitions.rootComponentType=T}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const T=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ei,T)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(T=>{const ie="popstate"===T.type?"popstate":"hashchange";"popstate"===ie&&setTimeout(()=>{this.navigateToSyncWithBrowser(T.url,ie,T.state)},0)}))}navigateToSyncWithBrowser(T,ie,Ce){const Ke={replaceUrl:!0},rt=Ce?.navigationId?Ce:null;if(Ce){const ri={...Ce};delete ri.navigationId,delete ri.\u0275routerPageId,0!==Object.keys(ri).length&&(Ke.state=ri)}const Vt=this.parseUrl(T);this.scheduleNavigation(Vt,ie,rt,Ke)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(T){this.config=T.map(Ii),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(T,ie={}){const{relativeTo:Ce,queryParams:Ke,fragment:rt,queryParamsHandling:Vt,preserveFragment:ri}=ie,Ti=ri?this.currentUrlTree.fragment:rt;let Oi=null;switch(Vt){case"merge":Oi={...this.currentUrlTree.queryParams,...Ke};break;case"preserve":Oi=this.currentUrlTree.queryParams;break;default:Oi=Ke||null}return null!==Oi&&(Oi=this.removeEmptyProps(Oi)),this.urlCreationStrategy.createUrlTree(Ce,this.routerState,this.currentUrlTree,T,Oi,Ti??null)}navigateByUrl(T,ie={skipLocationChange:!1}){const Ce=Xi(T)?T:this.parseUrl(T),Ke=this.urlHandlingStrategy.merge(Ce,this.rawUrlTree);return this.scheduleNavigation(Ke,Ei,null,ie)}navigate(T,ie={skipLocationChange:!1}){return function mr(A){for(let V=0;V<A.length;V++){const T=A[V];if(null==T)throw new n.\u0275RuntimeError(4008,false)}}(T),this.navigateByUrl(this.createUrlTree(T,ie),ie)}serializeUrl(T){return this.urlSerializer.serialize(T)}parseUrl(T){let ie;try{ie=this.urlSerializer.parse(T)}catch(Ce){ie=this.malformedUriErrorHandler(Ce,this.urlSerializer,T)}return ie}isActive(T,ie){let Ce;if(Ce=!0===ie?{...ns}:!1===ie?{...rs}:ie,Xi(T))return ai(this.currentUrlTree,T,Ce);const Ke=this.parseUrl(T);return ai(this.currentUrlTree,Ke,Ce)}removeEmptyProps(T){return Object.keys(T).reduce((ie,Ce)=>{const Ke=T[Ce];return null!=Ke&&(ie[Ce]=Ke),ie},{})}scheduleNavigation(T,ie,Ce,Ke,rt){if(this.disposed)return Promise.resolve(!1);let Vt,ri,Ti,Oi;return rt?(Vt=rt.resolve,ri=rt.reject,Ti=rt.promise):Ti=new Promise((vn,pr)=>{Vt=vn,ri=pr}),Oi="computed"===this.canceledNavigationResolution?Ce&&Ce.\u0275routerPageId?Ce.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:Oi,source:ie,restoredState:Ce,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:T,extras:Ke,resolve:Vt,reject:ri,promise:Ti,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ti.catch(vn=>Promise.reject(vn))}setBrowserUrl(T,ie){const Ce=this.urlSerializer.serialize(T);if(this.location.isCurrentPathEqualTo(Ce)||ie.extras.replaceUrl){const rt={...ie.extras.state,...this.generateNgRouterState(ie.id,this.browserPageId)};this.location.replaceState(Ce,"",rt)}else{const Ke={...ie.extras.state,...this.generateNgRouterState(ie.id,ie.targetPageId)};this.location.go(Ce,"",Ke)}}restoreHistory(T,ie=!1){if("computed"===this.canceledNavigationResolution){const Ke=this.currentPageId-(this.browserPageId??this.currentPageId);0!==Ke?this.location.historyGo(Ke):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Ke&&(this.resetState(T),this.browserUrlTree=T.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(ie&&this.resetState(T),this.resetUrlToCurrentUrlTree())}resetState(T){this.routerState=T.currentRouterState,this.currentUrlTree=T.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,T.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(T,ie){return"computed"===this.canceledNavigationResolution?{navigationId:T,\u0275routerPageId:ie}:{navigationId:T}}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),Ko=(()=>{class A{constructor(T,ie,Ce,Ke,rt,Vt){this.router=T,this.route=ie,this.tabIndexAttribute=Ce,this.renderer=Ke,this.el=rt,this.locationStrategy=Vt,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new j.xQ;const ri=rt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===ri||"area"===ri,this.isAnchorElement?this.subscription=T.events.subscribe(Ti=>{Ti instanceof ni&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(T){this._preserveFragment=(0,n.\u0275coerceToBoolean)(T)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(T){this._skipLocationChange=(0,n.\u0275coerceToBoolean)(T)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(T){this._replaceUrl=(0,n.\u0275coerceToBoolean)(T)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(T){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",T)}ngOnChanges(T){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(T){null!=T?(this.commands=Array.isArray(T)?T:[T],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(T,ie,Ce,Ke,rt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==T||ie||Ce||Ke||rt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const T=null===this.href?null:(0,n.\u0275\u0275sanitizeUrlOrResourceUrl)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",T)}applyAttributeValue(T,ie){const Ce=this.renderer,Ke=this.el.nativeElement;null!==ie?Ce.setAttribute(Ke,T,ie):Ce.removeAttribute(Ke,T)}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 A.\u0275fac=function(T){return new(T||A)(n.\u0275\u0275directiveInject(Xr),n.\u0275\u0275directiveInject(Pr),n.\u0275\u0275injectAttribute("tabindex"),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(B.LocationStrategy))},A.\u0275dir=n.\u0275\u0275defineDirective({type:A,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(T,ie){1&T&&n.\u0275\u0275listener("click",function(Ke){return ie.onClick(Ke.button,Ke.ctrlKey,Ke.shiftKey,Ke.altKey,Ke.metaKey)}),2&T&&n.\u0275\u0275attribute("target",ie.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),A})();class Ks{}let Ds=(()=>{class A{preload(T,ie){return ie().pipe((0,ti.K)(()=>(0,o.of)(null)))}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),aa=(()=>{class A{constructor(T,ie,Ce,Ke,rt){this.router=T,this.injector=Ce,this.preloadingStrategy=Ke,this.loader=rt}setUpPreloading(){this.subscription=this.router.events.pipe((0,K.h)(T=>T instanceof ni),(0,jt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(T,ie){const Ce=[];for(const Ke of ie){Ke.providers&&!Ke._injector&&(Ke._injector=(0,n.createEnvironmentInjector)(Ke.providers,T,`Route: ${Ke.path}`));const rt=Ke._injector??T,Vt=Ke._loadedInjector??rt;(Ke.loadChildren&&!Ke._loadedRoutes&&void 0===Ke.canLoad||Ke.loadComponent&&!Ke._loadedComponent)&&Ce.push(this.preloadConfig(rt,Ke)),(Ke.children||Ke._loadedRoutes)&&Ce.push(this.processRoutes(Vt,Ke.children??Ke._loadedRoutes))}return(0,e.D)(Ce).pipe((0,Qe.J)())}preloadConfig(T,ie){return this.preloadingStrategy.preload(ie,()=>{let Ce;Ce=ie.loadChildren&&void 0===ie.canLoad?this.loader.loadChildren(T,ie):(0,o.of)(null);const Ke=Ce.pipe((0,U.zg)(rt=>null===rt?(0,o.of)(void 0):(ie._loadedRoutes=rt.routes,ie._loadedInjector=rt.injector,this.processRoutes(rt.injector??T,rt.routes))));if(ie.loadComponent&&!ie._loadedComponent){const rt=this.loader.loadComponent(ie);return(0,e.D)([Ke,rt]).pipe((0,Qe.J)())}return Ke})}}return A.\u0275fac=function(T){return new(T||A)(n.\u0275\u0275inject(Xr),n.\u0275\u0275inject(n.Compiler),n.\u0275\u0275inject(n.EnvironmentInjector),n.\u0275\u0275inject(Ks),n.\u0275\u0275inject(Y))},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const Gs=new n.InjectionToken("");let Lo=(()=>{class A{constructor(T,ie,Ce,Ke,rt={}){this.urlSerializer=T,this.transitions=ie,this.viewportScroller=Ce,this.zone=Ke,this.options=rt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},rt.scrollPositionRestoration=rt.scrollPositionRestoration||"disabled",rt.anchorScrolling=rt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(T=>{T instanceof ht?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=T.navigationTrigger,this.restoredId=T.restoredState?T.restoredState.navigationId:0):T instanceof ni&&(this.lastId=T.id,this.scheduleScrollEvent(T,this.urlSerializer.parse(T.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(T=>{T instanceof dr&&(T.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(T.position):T.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(T.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(T,ie){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new dr(T,"popstate"===this.lastSource?this.store[this.restoredId]:null,ie))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return A.\u0275fac=function(T){n.\u0275\u0275invalidFactory()},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac}),A})();var kr=(()=>((kr=kr||{})[kr.COMPLETE=0]="COMPLETE",kr[kr.FAILED=1]="FAILED",kr[kr.REDIRECTING=2]="REDIRECTING",kr))();const Do=!1;function bo(A,V){return{\u0275kind:A,\u0275providers:V}}const la=new n.InjectionToken("",{providedIn:"root",factory:()=>!1});function hs(){const A=(0,n.inject)(n.Injector);return V=>{const T=A.get(n.ApplicationRef);if(V!==T.components[0])return;const ie=A.get(Xr),Ce=A.get(ca);1===A.get(Bs)&&ie.initialNavigation(),A.get(Zl,null,n.InjectFlags.Optional)?.setUpPreloading(),A.get(Gs,null,n.InjectFlags.Optional)?.init(),ie.resetRootComponentType(T.componentTypes[0]),Ce.closed||(Ce.next(),Ce.complete(),Ce.unsubscribe())}}const ca=new n.InjectionToken(Do?"bootstrap done indicator":"",{factory:()=>new j.xQ}),Bs=new n.InjectionToken(Do?"initial navigation":"",{providedIn:"root",factory:()=>1});function zr(){let A=[];return A=Do?[{provide:n.ENVIRONMENT_INITIALIZER,multi:!0,useFactory:()=>{const V=(0,n.inject)(Xr);return()=>V.events.subscribe(T=>{console.group?.(`Router Event: ${T.constructor.name}`),console.log(function eo(A){if(!("type"in A))return`Unknown Router Event: ${A.constructor.name}`;switch(A.type){case 14:return`ActivationEnd(path: '${A.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${A.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${A.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${A.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${A.id}, url: '${A.url}', urlAfterRedirects: '${A.urlAfterRedirects}', state: ${A.state}, shouldActivate: ${A.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${A.id}, url: '${A.url}', urlAfterRedirects: '${A.urlAfterRedirects}', state: ${A.state})`;case 2:return`NavigationCancel(id: ${A.id}, url: '${A.url}')`;case 16:return`NavigationSkipped(id: ${A.id}, url: '${A.url}')`;case 1:return`NavigationEnd(id: ${A.id}, url: '${A.url}', urlAfterRedirects: '${A.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${A.id}, url: '${A.url}', error: ${A.error})`;case 0:return`NavigationStart(id: ${A.id}, url: '${A.url}')`;case 6:return`ResolveEnd(id: ${A.id}, url: '${A.url}', urlAfterRedirects: '${A.urlAfterRedirects}', state: ${A.state})`;case 5:return`ResolveStart(id: ${A.id}, url: '${A.url}', urlAfterRedirects: '${A.urlAfterRedirects}', state: ${A.state})`;case 10:return`RouteConfigLoadEnd(path: ${A.route.path})`;case 9:return`RouteConfigLoadStart(path: ${A.route.path})`;case 4:return`RoutesRecognized(id: ${A.id}, url: '${A.url}', urlAfterRedirects: '${A.urlAfterRedirects}', state: ${A.state})`;case 15:return`Scroll(anchor: '${A.anchor}', position: '${A.position?`${A.position[0]}, ${A.position[1]}`:null}')`}}(T)),console.log(T),console.groupEnd?.()})}}]:[],bo(1,A)}const Zl=new n.InjectionToken(Do?"router preloader":"");function Na(A){return bo(0,[{provide:Zl,useExisting:aa},{provide:Ks,useExisting:A}])}const Ns=!1,ms=new n.InjectionToken(Ns?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),_l=[B.Location,{provide:Ee,useClass:Re},Xr,_r,{provide:Pr,useFactory:function Ts(A){return A.routerState.root},deps:[Xr]},Y,Ns?{provide:la,useValue:!0}:[]];function ua(){return new n.NgProbeToken("Router",Xr)}let Zs=(()=>{class A{constructor(T){}static forRoot(T,ie){return{ngModule:A,providers:[_l,Ns&&ie?.enableTracing?zr().\u0275providers:[],{provide:E,multi:!0,useValue:T},{provide:ms,useFactory:Yl,deps:[[Xr,new n.Optional,new n.SkipSelf]]},{provide:po,useValue:ie||{}},ie?.useHash?{provide:B.LocationStrategy,useClass:B.HashLocationStrategy}:{provide:B.LocationStrategy,useClass:B.PathLocationStrategy},{provide:Gs,useFactory:()=>{const A=(0,n.inject)(B.ViewportScroller),V=(0,n.inject)(n.NgZone),T=(0,n.inject)(po),ie=(0,n.inject)(Wt),Ce=(0,n.inject)(Ee);return T.scrollOffset&&A.setOffset(T.scrollOffset),new Lo(Ce,ie,A,V,T)}},ie?.preloadingStrategy?Na(ie.preloadingStrategy).\u0275providers:[],{provide:n.NgProbeToken,multi:!0,useFactory:ua},ie?.initialNavigation?To(ie):[],[{provide:ha,useFactory:hs},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:ha}]]}}static forChild(T){return{ngModule:A,providers:[{provide:E,multi:!0,useValue:T}]}}}return A.\u0275fac=function(T){return new(T||A)(n.\u0275\u0275inject(ms,8))},A.\u0275mod=n.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=n.\u0275\u0275defineInjector({imports:[jn]}),A})();function Yl(A){if(Ns&&A)throw new n.\u0275RuntimeError(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function To(A){return["disabled"===A.initialNavigation?bo(3,[{provide:n.APP_INITIALIZER,multi:!0,useFactory:()=>{const V=(0,n.inject)(Xr);return()=>{V.setUpLocationChangeListener()}}},{provide:Bs,useValue:2}]).\u0275providers:[],"enabledBlocking"===A.initialNavigation?bo(2,[{provide:Bs,useValue:0},{provide:n.APP_INITIALIZER,multi:!0,deps:[n.Injector],useFactory:V=>{const T=V.get(B.LOCATION_INITIALIZED,Promise.resolve());return()=>T.then(()=>new Promise(ie=>{const Ce=V.get(Xr),Ke=V.get(ca);(function _s(A,V){A.events.pipe((0,K.h)(T=>T instanceof ni||T instanceof he||T instanceof Je||T instanceof je),(0,Z.U)(T=>T instanceof ni||T instanceof je?kr.COMPLETE:T instanceof he&&(0===T.code||1===T.code)?kr.REDIRECTING:kr.FAILED),(0,K.h)(T=>T!==kr.REDIRECTING),(0,q.q)(1)).subscribe(()=>{V()})})(Ce,()=>{ie(!0)}),V.get(Wt).afterPreactivation=()=>(ie(!0),Ke.closed?(0,o.of)(void 0):Ke),Ce.initialNavigation()}))}}]).\u0275providers:[]]}const ha=new n.InjectionToken(Ns?"Router Initializer":"")},7820:(G,P,a)=>{"use strict";a.d(P,{Wr:()=>_t,Mk:()=>dt});var n=a(6895),e=a(4650),o=a(8514),l=a(1737),v=a(3753),d=a(1086),u=a(1221),b=a(8929),C=a(6498),x=a(7876);const w=new C.y(x.Z);var f=a(6787),S=a(4850),j=a(2198),B=a(7545),Z=a(2536),q=a(2986),X=a(2994),K=a(353),me=a(3489),xe=a(9312);class Ze{constructor(Ae,H){this.delay=Ae,this.scheduler=H}call(Ae,H){return H.subscribe(new Oe(Ae,this.delay,this.scheduler))}}class Oe extends me.L{constructor(Ae,H,W){super(Ae),this.delay=H,this.scheduler=W,this.queue=[],this.active=!1,this.errored=!1}static dispatch(Ae){const H=Ae.source,W=H.queue,He=Ae.scheduler,Te=Ae.destination;for(;W.length>0&&W[0].time-He.now()<=0;)W.shift().notification.observe(Te);if(W.length>0){const Be=Math.max(0,W[0].time-He.now());this.schedule(Ae,Be)}else this.unsubscribe(),H.active=!1}_schedule(Ae){this.active=!0,this.destination.add(Ae.schedule(Oe.dispatch,this.delay,{source:this,destination:this.destination,scheduler:Ae}))}scheduleNotification(Ae){if(!0===this.errored)return;const H=this.scheduler,W=new nt(H.now()+this.delay,Ae);this.queue.push(W),!1===this.active&&this._schedule(H)}_next(Ae){this.scheduleNotification(xe.P.createNext(Ae))}_error(Ae){this.errored=!0,this.queue=[],this.destination.error(Ae),this.unsubscribe()}_complete(){this.scheduleNotification(xe.P.createComplete()),this.unsubscribe()}}class nt{constructor(Ae,H){this.time=Ae,this.notification=H}}const qe="Service workers are disabled or not supported by this browser";class ot{constructor(Ae){if(this.serviceWorker=Ae,Ae){const W=(0,v.R)(Ae,"controllerchange").pipe((0,S.U)(()=>Ae.controller)),He=(0,o.P)(()=>(0,d.of)(Ae.controller)),Te=(0,u.z)(He,W);this.worker=Te.pipe((0,j.h)(ut=>!!ut)),this.registration=this.worker.pipe((0,B.w)(()=>Ae.getRegistration()));const Qe=(0,v.R)(Ae,"message").pipe((0,S.U)(ut=>ut.data)).pipe((0,j.h)(ut=>ut&&ut.type)).pipe(function le(Fe){return Fe?(0,Z.O)(()=>new b.xQ,Fe):(0,Z.O)(new b.xQ)}());Qe.connect(),this.events=Qe}else this.worker=this.events=this.registration=function ct(Fe){return(0,o.P)(()=>(0,l._)(new Error(Fe)))}(qe)}postMessage(Ae,H){return this.worker.pipe((0,q.q)(1),(0,X.b)(W=>{W.postMessage({action:Ae,...H})})).toPromise().then(()=>{})}postMessageWithOperation(Ae,H,W){const He=this.waitForOperationCompleted(W),Te=this.postMessage(Ae,H);return Promise.all([Te,He]).then(([,Be])=>Be)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(Ae){let H;return H="string"==typeof Ae?W=>W.type===Ae:W=>Ae.includes(W.type),this.events.pipe((0,j.h)(H))}nextEventOfType(Ae){return this.eventsOfType(Ae).pipe((0,q.q)(1))}waitForOperationCompleted(Ae){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,j.h)(H=>H.nonce===Ae),(0,q.q)(1),(0,S.U)(H=>{if(void 0!==H.result)return H.result;throw new Error(H.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let dt=(()=>{class Fe{get isEnabled(){return this.sw.isEnabled}constructor(H){if(this.sw=H,this.pushManager=null,this.subscriptionChanges=new b.xQ,!H.isEnabled)return this.messages=w,this.notificationClicks=w,void(this.subscription=w);this.messages=this.sw.eventsOfType("PUSH").pipe((0,S.U)(He=>He.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,S.U)(He=>He.data)),this.pushManager=this.sw.registration.pipe((0,S.U)(He=>He.pushManager));const W=this.pushManager.pipe((0,B.w)(He=>He.getSubscription()));this.subscription=(0,f.T)(W,this.subscriptionChanges)}requestSubscription(H){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(qe));const W={userVisibleOnly:!0};let He=this.decodeBase64(H.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),Te=new Uint8Array(new ArrayBuffer(He.length));for(let Be=0;Be<He.length;Be++)Te[Be]=He.charCodeAt(Be);return W.applicationServerKey=Te,this.pushManager.pipe((0,B.w)(Be=>Be.subscribe(W)),(0,q.q)(1)).toPromise().then(Be=>(this.subscriptionChanges.next(Be),Be))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,q.q)(1),(0,B.w)(W=>{if(null===W)throw new Error("Not subscribed to push notifications.");return W.unsubscribe().then(He=>{if(!He)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(qe))}decodeBase64(H){return atob(H)}}return Fe.\u0275fac=function(H){return new(H||Fe)(e.\u0275\u0275inject(ot))},Fe.\u0275prov=e.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})(),jt=(()=>{class Fe{get isEnabled(){return this.sw.isEnabled}constructor(H){if(this.sw=H,!H.isEnabled)return this.versionUpdates=w,this.available=w,this.activated=w,void(this.unrecoverable=w);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,j.h)(W=>"VERSION_READY"===W.type),(0,S.U)(W=>({type:"UPDATE_AVAILABLE",current:W.currentVersion,available:W.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(qe));const H=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:H},H)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(qe));const H=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:H},H)}}return Fe.\u0275fac=function(H){return new(H||Fe)(e.\u0275\u0275inject(ot))},Fe.\u0275prov=e.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})();class zt{}const ti=new e.InjectionToken("NGSW_REGISTER_SCRIPT");function mi(Fe,Ae,H,W){return()=>{if(!(0,n.isPlatformBrowser)(W)||!("serviceWorker"in navigator)||!1===H.enabled)return;let He;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof H.registrationStrategy)He=H.registrationStrategy();else{const[Be,...mt]=(H.registrationStrategy||"registerWhenStable:30000").split(":");switch(Be){case"registerImmediately":He=(0,d.of)(null);break;case"registerWithDelay":He=Qt(+mt[0]||0);break;case"registerWhenStable":He=mt[0]?(0,f.T)(Jt(Fe),Qt(+mt[0])):Jt(Fe);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${H.registrationStrategy}`)}}Fe.get(e.NgZone).runOutsideAngular(()=>He.pipe((0,q.q)(1)).subscribe(()=>navigator.serviceWorker.register(Ae,{scope:H.scope}).catch(Be=>console.error("Service worker registration failed with:",Be))))}}function Qt(Fe){return(0,d.of)(null).pipe(function ne(Fe,Ae=K.P){const W=function U(Fe){return Fe instanceof Date&&!isNaN(+Fe)}(Fe)?+Fe-Ae.now():Math.abs(Fe);return He=>He.lift(new Ze(W,Ae))}(Fe))}function Jt(Fe){return Fe.get(e.ApplicationRef).isStable.pipe((0,j.h)(H=>H))}function lt(Fe,Ae){return new ot((0,n.isPlatformBrowser)(Ae)&&!1!==Fe.enabled?navigator.serviceWorker:void 0)}let _t=(()=>{class Fe{static register(H,W={}){return{ngModule:Fe,providers:[{provide:ti,useValue:H},{provide:zt,useValue:W},{provide:ot,useFactory:lt,deps:[zt,e.PLATFORM_ID]},{provide:e.APP_INITIALIZER,useFactory:mi,deps:[e.Injector,ti,zt,e.PLATFORM_ID],multi:!0}]}}}return Fe.\u0275fac=function(H){return new(H||Fe)},Fe.\u0275mod=e.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=e.\u0275\u0275defineInjector({providers:[dt,jt]}),Fe})()},3648:(G,P,a)=>{"use strict";a.d(P,{Rh:()=>zt,_W:()=>ct});var n=a(4650),e=a(7340),o=a(6895),l=a(8929),v=a(1481);const d=["toast-component",""];function u(lt,_t){if(1&lt){const Fe=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",5),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Fe);const H=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(H.remove())}),n.\u0275\u0275elementStart(1,"span",6),n.\u0275\u0275text(2,"\xd7"),n.\u0275\u0275elementEnd()()}}function b(lt,_t){if(1&lt&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275text(1),n.\u0275\u0275elementContainerEnd()),2&lt){const Fe=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("[",Fe.duplicatesCount+1,"]")}}function C(lt,_t){if(1&lt&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275text(1),n.\u0275\u0275template(2,b,2,1,"ng-container",4),n.\u0275\u0275elementEnd()),2&lt){const Fe=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Fe.options.titleClass),n.\u0275\u0275attribute("aria-label",Fe.title),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Fe.title," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Fe.duplicatesCount)}}function x(lt,_t){if(1&lt&&n.\u0275\u0275element(0,"div",7),2&lt){const Fe=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Fe.options.messageClass),n.\u0275\u0275property("innerHTML",Fe.message,n.\u0275\u0275sanitizeHtml)}}function w(lt,_t){if(1&lt&&(n.\u0275\u0275elementStart(0,"div",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&lt){const Fe=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Fe.options.messageClass),n.\u0275\u0275attribute("aria-label",Fe.message),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Fe.message," ")}}function g(lt,_t){if(1&lt&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275element(1,"div",9),n.\u0275\u0275elementEnd()),2&lt){const Fe=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("width",Fe.width+"%")}}class X{_attachedHost;component;viewContainerRef;injector;constructor(_t,Fe){this.component=_t,this.injector=Fe}attach(_t,Fe){return this._attachedHost=_t,_t.attach(this,Fe)}detach(){const _t=this._attachedHost;if(_t)return this._attachedHost=void 0,_t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(_t){this._attachedHost=_t}}class K{_attachedPortal;_disposeFn;attach(_t,Fe){return this._attachedPortal=_t,this.attachComponentPortal(_t,Fe)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(_t){this._disposeFn=_t}}class U{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new l.xQ;_activate=new l.xQ;_manualClose=new l.xQ;_resetTimeout=new l.xQ;_countDuplicate=new l.xQ;constructor(_t){this._overlayRef=_t}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(_t,Fe){_t&&this._resetTimeout.next(),Fe&&this._countDuplicate.next(++this.duplicatesCount)}}class me{toastId;config;message;title;toastType;toastRef;_onTap=new l.xQ;_onAction=new l.xQ;constructor(_t,Fe,Ae,H,W,He){this.toastId=_t,this.config=Fe,this.message=Ae,this.title=H,this.toastType=W,this.toastRef=He,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(_t){this._onAction.next(_t)}onAction(){return this._onAction.asObservable()}}const ne=new n.InjectionToken("ToastConfig");class Ze extends K{_hostDomElement;_componentFactoryResolver;_appRef;constructor(_t,Fe,Ae){super(),this._hostDomElement=_t,this._componentFactoryResolver=Fe,this._appRef=Ae}attachComponentPortal(_t,Fe){const Ae=this._componentFactoryResolver.resolveComponentFactory(_t.component);let H;return H=Ae.create(_t.injector),this._appRef.attachView(H.hostView),this.setDisposeFn(()=>{this._appRef.detachView(H.hostView),H.destroy()}),Fe?this._hostDomElement.insertBefore(this._getComponentRootNode(H),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(H)),H}_getComponentRootNode(_t){return _t.hostView.rootNodes[0]}}let Oe=(()=>{class lt{_document=(0,n.inject)(o.DOCUMENT);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Fe=this._document.createElement("div");Fe.classList.add("overlay-container"),Fe.setAttribute("aria-live","polite"),this._document.body.appendChild(Fe),this._containerElement=Fe}static \u0275fac=function(Ae){return new(Ae||lt)};static \u0275prov=n.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac,providedIn:"root"})}return lt})();class nt{_portalHost;constructor(_t){this._portalHost=_t}attach(_t,Fe=!0){return this._portalHost.attach(_t,Fe)}detach(){return this._portalHost.detach()}}let qe=(()=>{class lt{_overlayContainer=(0,n.inject)(Oe);_componentFactoryResolver=(0,n.inject)(n.ComponentFactoryResolver);_appRef=(0,n.inject)(n.ApplicationRef);_document=(0,n.inject)(o.DOCUMENT);_paneElements=new Map;create(Fe,Ae){return this._createOverlayRef(this.getPaneElement(Fe,Ae))}getPaneElement(Fe="",Ae){return this._paneElements.get(Ae)||this._paneElements.set(Ae,{}),this._paneElements.get(Ae)[Fe]||(this._paneElements.get(Ae)[Fe]=this._createPaneElement(Fe,Ae)),this._paneElements.get(Ae)[Fe]}_createPaneElement(Fe,Ae){const H=this._document.createElement("div");return H.id="toast-container",H.classList.add(Fe),H.classList.add("toast-container"),Ae?Ae.getContainerElement().appendChild(H):this._overlayContainer.getContainerElement().appendChild(H),H}_createPortalHost(Fe){return new Ze(Fe,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Fe){return new nt(this._createPortalHost(Fe))}static \u0275fac=function(Ae){return new(Ae||lt)};static \u0275prov=n.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac,providedIn:"root"})}return lt})(),ct=(()=>{class lt{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(Fe,Ae,H,W,He){this.overlay=Ae,this._injector=H,this.sanitizer=W,this.ngZone=He,this.toastrConfig={...Fe.default,...Fe.config},Fe.config.iconClasses&&(this.toastrConfig.iconClasses={...Fe.default.iconClasses,...Fe.config.iconClasses})}show(Fe,Ae,H={},W=""){return this._preBuildNotification(W,Fe,Ae,this.applyConfig(H))}success(Fe,Ae,H={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Fe,Ae,this.applyConfig(H))}error(Fe,Ae,H={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Fe,Ae,this.applyConfig(H))}info(Fe,Ae,H={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Fe,Ae,this.applyConfig(H))}warning(Fe,Ae,H={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Fe,Ae,this.applyConfig(H))}clear(Fe){for(const Ae of this.toasts)if(void 0!==Fe){if(Ae.toastId===Fe)return void Ae.toastRef.manualClose()}else Ae.toastRef.manualClose()}remove(Fe){const Ae=this._findToast(Fe);if(!Ae||(Ae.activeToast.toastRef.close(),this.toasts.splice(Ae.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const H=this.toasts[this.currentlyActive].toastRef;H.isInactive()||(this.currentlyActive=this.currentlyActive+1,H.activate())}return!0}findDuplicate(Fe="",Ae="",H,W){const{includeTitleDuplicates:He}=this.toastrConfig;for(const Te of this.toasts)if((!He||He&&Te.title===Fe)&&Te.message===Ae)return Te.toastRef.onDuplicate(H,W),Te;return null}applyConfig(Fe={}){return{...this.toastrConfig,...Fe}}_findToast(Fe){for(let Ae=0;Ae<this.toasts.length;Ae++)if(this.toasts[Ae].toastId===Fe)return{index:Ae,activeToast:this.toasts[Ae]};return null}_preBuildNotification(Fe,Ae,H,W){return W.onActivateTick?this.ngZone.run(()=>this._buildNotification(Fe,Ae,H,W)):this._buildNotification(Fe,Ae,H,W)}_buildNotification(Fe,Ae,H,W){if(!W.toastComponent)throw new Error("toastComponent required");const He=this.findDuplicate(H,Ae,this.toastrConfig.resetTimeoutOnDuplicate&&W.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&H||Ae)&&this.toastrConfig.preventDuplicates&&null!==He)return He;this.previousToastMessage=Ae;let Te=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Te=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Be=this.overlay.create(W.positionClass,this.overlayContainer);this.index=this.index+1;let mt=Ae;Ae&&W.enableHtml&&(mt=this.sanitizer.sanitize(n.SecurityContext.HTML,Ae));const Pe=new U(Be),Qe=new me(this.index,W,mt,H,Fe,Pe),te=n.Injector.create({providers:[{provide:me,useValue:Qe}],parent:this._injector}),k=new X(W.toastComponent,te),R=Be.attach(k,W.newestOnTop);Pe.componentInstance=R.instance;const be={toastId:this.index,title:H||"",message:Ae||"",toastRef:Pe,onShown:Pe.afterActivate(),onHidden:Pe.afterClosed(),onTap:Qe.onTap(),onAction:Qe.onAction(),portal:R};return Te||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{be.toastRef.activate()})),this.toasts.push(be),be}static \u0275fac=function(Ae){return new(Ae||lt)(n.\u0275\u0275inject(ne),n.\u0275\u0275inject(qe),n.\u0275\u0275inject(n.Injector),n.\u0275\u0275inject(v.H7),n.\u0275\u0275inject(n.NgZone))};static \u0275prov=n.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac,providedIn:"root"})}return lt})();const dt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class lt{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(Fe,Ae,H){this.toastrService=Fe,this.toastPackage=Ae,this.ngZone=H,this.message=Ae.message,this.title=Ae.title,this.options=Ae.config,this.originalTimeout=Ae.config.timeOut,this.toastClasses=`${Ae.toastType} ${Ae.config.toastClass}`,this.sub=Ae.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=Ae.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=Ae.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=Ae.toastRef.countDuplicate().subscribe(W=>{this.duplicatesCount=W}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const Fe=(new Date).getTime();this.width=(this.hideTime-Fe)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(Fe,Ae){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Fe),Ae)):this.timeout=setTimeout(()=>Fe(),Ae)}outsideInterval(Fe,Ae){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Fe),Ae)):this.intervalId=setInterval(()=>Fe(),Ae)}runInsideAngular(Fe){this.ngZone?this.ngZone.run(()=>Fe()):Fe()}static \u0275fac=function(Ae){return new(Ae||lt)(n.\u0275\u0275directiveInject(ct),n.\u0275\u0275directiveInject(me),n.\u0275\u0275directiveInject(n.NgZone))};static \u0275cmp=n.\u0275\u0275defineComponent({type:lt,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Ae,H){1&Ae&&n.\u0275\u0275listener("click",function(){return H.tapToast()})("mouseenter",function(){return H.stickAround()})("mouseleave",function(){return H.delayedHideToast()}),2&Ae&&(n.\u0275\u0275syntheticHostProperty("@flyInOut",H.state),n.\u0275\u0275classMap(H.toastClasses),n.\u0275\u0275styleProp("display",H.displayStyle))},standalone:!0,features:[n.\u0275\u0275StandaloneFeature],attrs:d,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(Ae,H){1&Ae&&(n.\u0275\u0275template(0,u,3,0,"button",0),n.\u0275\u0275template(1,C,3,5,"div",1),n.\u0275\u0275template(2,x,1,3,"div",2),n.\u0275\u0275template(3,w,2,4,"div",3),n.\u0275\u0275template(4,g,2,2,"div",4)),2&Ae&&(n.\u0275\u0275property("ngIf",H.options.closeButton),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",H.title),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",H.message&&H.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",H.message&&!H.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",H.options.progressBar))},dependencies:[o.NgIf],encapsulation:2,data:{animation:[(0,e.X$)("flyInOut",[(0,e.SB)("inactive",(0,e.oB)({opacity:0})),(0,e.SB)("active",(0,e.oB)({opacity:1})),(0,e.SB)("removed",(0,e.oB)({opacity:0})),(0,e.eR)("inactive => active",(0,e.jt)("{{ easeTime }}ms {{ easing }}")),(0,e.eR)("active => removed",(0,e.jt)("{{ easeTime }}ms {{ easing }}"))])]}})}return lt})()},jt=(lt={})=>(0,n.makeEnvironmentProviders)([{provide:ne,useValue:{default:dt,config:lt}}]);let zt=(()=>{class lt{static forRoot(Fe={}){return{ngModule:lt,providers:[jt(Fe)]}}static \u0275fac=function(Ae){return new(Ae||lt)};static \u0275mod=n.\u0275\u0275defineNgModule({type:lt});static \u0275inj=n.\u0275\u0275defineInjector({})}return lt})()},3472:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FF:()=>SubscriptionService,Im:()=>SimatoCommonsLibModule,Mw:()=>SubscriptionMessageStatus,P4:()=>SIMATO_COMMONS_CONFIG,Yg:()=>SUBSCRIPTION_MESSAGE_STATUSES,b8:()=>SubscriptionComponent,sH:()=>UnsubscriptionComponent,y5:()=>SUBSCRIPTION_STATUSES,yh:()=>SubscriptionStatus});var _home_projects_Build_templates_ArticleAppsBase_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4650),_angular_common_http__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(529),rxjs_operators__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2994),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9973),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4290),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(6498),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(1715),_abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(2544),_angular_router__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(8729),_angular_forms__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(4006),_angular_common__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6895),_angular_platform_browser__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1481);let SimatoCommonsLibService=(()=>{class G{constructor(){}test(){console.log("Call SimatoCommonsLibService test method!...working macho....")}}return G.\u0275fac=function(a){return new(a||G)},G.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac,providedIn:"root"}),G})();const SIMATO_COMMONS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken("Simato Commons config");let UtilsService=(()=>{class G{constructor(){this.defaultNumberOfTries=12,this.STATUS_SUBSCRIBED="SUBSCRIBED",this.STATUS_UNSUBSCRIBED="UNSUBSCRIBED",this.wrongPinMsg="The PIN you entered could not be verified. Please try again.",this.renewalIntervals=[],this.USER_AGENT_TEXT_MOBILE="from mobile app",this.isFromMobile=!1,this.isFromCMSAppView=!1,this.fromBrowser=!0}setIsFromBrowser(a){this.fromBrowser=a}isFromBrowser(){return this.fromBrowser}isCordovaApp(){return window.hasOwnProperty("cordova")}getLocalStorageItem(a){return localStorage.getItem(a)}setLocalStorageItem(a,n){return localStorage.setItem(a,n)}getLocalStorageUUID(){return this.getLocalStorageItem("UUID")}getLocalStorageMSISDN(a){return this.getLocalStorageItem(a+"msisdn")}getLocalStorageToken(){return this.getLocalStorageItem("token")}setLocalStorageToken(a){return localStorage.setItem("token",a)}getAPKVersion(a){let n=1;const e=a.indexOf(" APK_VERSION_END"),o=a.indexOf("APK_VERSION :");return o>0&&(n=-1===e?parseFloat(a.substring(o+13,o+16)):parseFloat(a.substring(o+13,e))),n}getRandomId(){return"WEB_"+this.getCurrentDateTimeFormatted()+"_"+Math.floor(1e9+9e9*Math.random())}getCurrentDateTimeFormatted(){const a=new Date;return a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate()+"_"+a.getHours()+":"+a.getMinutes()+":"+a.getSeconds()}getMobileOperatingSystem(){var a=navigator.userAgent||navigator.vendor;return/android/i.test(a)?"Android":/iPad|iPhone|iPod/.test(a)&&!window.MSStream?"iOS":"unknown"}isAndroid(){return"Android"==this.getMobileOperatingSystem()}isIos(){return"iOS"==this.getMobileOperatingSystem()}isMobitel(){if(this.appId&&localStorage.MOBITEL_OP_CODE.length>0){let a=this.getLocalStorageMSISDN(this.appId);return a&&a.length>0&&localStorage.MOBITEL_OP_CODE.includes(a.substring(0,4))}return!1}}return G.\u0275fac=function(a){return new(a||G)},G.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac,providedIn:"root"}),G})(),SimatoCommonsLibComponent=(()=>{class G{constructor(a,n){this.utilsService=a,this.appId=n.appId}ngOnInit(){this.utilsService.isFromMobile=window.navigator.userAgent.includes(this.utilsService.USER_AGENT_TEXT_MOBILE);const a="1"==localStorage.getItem(this.appId+"_isFromCMSAppView");this.utilsService.isFromCMSAppView=a,this.utilsService.setIsFromBrowser(!this.utilsService.isFromMobile&&!a)}}return G.\u0275fac=function(a){return new(a||G)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(UtilsService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(SIMATO_COMMONS_CONFIG))},G.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineComponent({type:G,selectors:[["lib-simato-commons-lib"]],decls:2,vars:0,template:function(a,n){1&a&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1," simato-commons-lib works! "),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())},encapsulation:2}),G})(),AppDataService=(()=>{class G{constructor(a,n,e){this.http=a,this.utilsService=e,this.appId="",this.userId="",this.SERVER_URL="",n?(this.appId=n.appId,this.userId=n.userId,this.SERVER_URL=n.uri):n={}}sendDeviceToken(a){return this.http.get(this.SERVER_URL+"/templates/postDeviceId?appId="+this.appId+"&"+a).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("sendDeviceToken",[])))}getPublishDetails(){const a={headers:new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.WM({"Content-Type":"application/json"}),params:(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.LE).append("appId",this.appId)};return this.http.get(this.SERVER_URL+"/edit/getPublishDetails",a).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("getPublishDetails",[])))}getRenewalIntervals(){const a={headers:new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.WM({"Content-Type":"application/json"})};return this.http.get(this.SERVER_URL+"/edit/getRenewals",a).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("getRenewalIntervals",[])))}getCountries(){const a={headers:new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.WM({"Content-Type":"application/json"})};return this.http.get(this.SERVER_URL+"/auth/getAllCountry",a).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("getCountries",[])))}getRenewalIntervalObjByIntervalCode(a){const n=this.utilsService.renewalIntervals;return n.length>0?n.filter(e=>e.code===a):[]}getRenewalIntervalNumberOfDaysByIntervalCode(a){const n=this.getRenewalIntervalObjByIntervalCode(a);return n.length>0?n[0].noOfDays:""}getCompatibleApkVersion(){const a={headers:new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.WM({"Content-Type":"application/json"})};return this.http.get(this.SERVER_URL+"/edit/getCompatibleApkVersion",a).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("getCompatibleApkVersion",[])))}getAppDetails(a){const n={headers:new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.WM({"Content-Type":"application/json"}),params:(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.LE).append("appId",this.appId).append("catId",a.catId?a.catId:null)};return this.http.get(this.SERVER_URL+"/edit/getAppDetails",n).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("getAppDetails",[])))}getLbsOtcCharges(){return this.http.get(this.SERVER_URL+"/app/getLbsOtcCharges?appId="+this.appId).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("getLbsOtcCharges",[])))}handleError(a="operation",n){return e=>(this.log(`${a} failed: ${e.message}`),(0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(n))}log(a){console.error(a)}}return G.\u0275fac=function(a){return new(a||G)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(SIMATO_COMMONS_CONFIG,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(UtilsService))},G.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();var smsRetriverInstance;let SMSRetrieverService=(()=>{class SMSRetrieverService{constructor(){console.log("SMSRetrieverService construction..."),smsRetriverInstance=this}getSuccessFunctionToBePost(){return function(P){console.log("SMSRetrieverService.result=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ smsRetriverInstance.successCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}getErrorFunctionToBePost(){return function(P){console.log("SMSRetrieverService.error=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ smsRetriverInstance.errorCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}startSMSRetriver(G,P){window.cordova.plugins.smsRetriever.startWatching(a=>{console.log("SMSRetrieverService: Received the sms as:",a),G(a)},a=>{console.log("SMSRetrieverService: Error occured when retrieving the code. error:",a),P(a)})}receiveMessageInIframe(evt){try{console.log("Exec receiveMessageInIframe method in SMS Retriever Service"+decodeURI(evt.data)),eval("("+decodeURI(evt.data)+")();")}catch(G){console.log("Error Exec receiveMessageInIframe method in SMS Retriever Service. Error: "+JSON.stringify(G,null,2))}finally{window.removeEventListener("message",smsRetriverInstance.receiveMessageInIframe,!1)}}addEventListnerReceiveMessageInIframe(){console.log("call smsRetriverInstance.addEventListnerReceiveMessageInIframe"),window.addEventListener("message",smsRetriverInstance.receiveMessageInIframe,!1)}parentPostMessage(G){console.log("call smsRetriverInstance.parentPostMessage"),window.parent.postMessage(smsRetriverInstance.serializeFunction(G),"*")}serializeFunction(G){return encodeURI(G.toString())}errorCallback(G){G||(G=null),this.errorCallbackFunc(G)}successCallback(G){G||(G=null),this.successCallbackFunc(G)}}return SMSRetrieverService.\u0275fac=function G(P){return new(P||SMSRetrieverService)},SMSRetrieverService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:SMSRetrieverService,factory:SMSRetrieverService.\u0275fac}),SMSRetrieverService})(),MessageService=(()=>{class G{constructor(){this.subject=new rxjs__WEBPACK_IMPORTED_MODULE_4__.xQ}sendMessage(a){this.subject.next(a)}clearMessage(){this.subject.next()}getMessage(){return this.subject.asObservable()}}return G.\u0275fac=function(a){return new(a||G)},G.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})(),SubscribedDataService=(()=>{class G{constructor(a,n,e,o){this.httpClient=a,this.utilsService=e,this.messageService=o,this.SERVER_URL=n.uri,this.MOBITEL_SERVER_URL=n.mobitelUri}getGoogleSubscribedData(a){return this.httpClient.post(this.SERVER_URL+"/google/is-active",a).pipe(n=>n||null)}postLog(a){try{this.httpClient.post(this.SERVER_URL+"/app/log",a).subscribe()}catch{}}getSubscribedData(a){return this.httpClient.post(this.getServerUrl()+"/ideabiz/isSubscribed",a).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(n=>{this.messageService.sendMessage({subscription:n})}),n=>n||(this.messageService.sendMessage({subscription:null}),null))}isPendingConcent(a){return this.httpClient.get(this.SERVER_URL+"/robi/ispendingconcent?robiaocTranId="+a).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("ispendingconcent",[])))}getSubscriptionStatus(a){return this.httpClient.post(this.getServerUrl()+"/ideabiz/getSubscriptionStatus",a).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(n=>{this.messageService.sendMessage({subscription:n})}),n=>n||(this.messageService.sendMessage({subscription:null}),n))}getAppStatus(a){return this.httpClient.post(this.SERVER_URL+"/templates/getAppStatus",a).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("getAppStatus",[])))}subscribePin(a){return this.httpClient.post(this.SERVER_URL+"/ideabiz/subscribePin",a)}msub(a){return this.httpClient.post(this.getServerUrl()+"/msub",a).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("msub",[])))}genieCardSave(a){return this.httpClient.post(this.getServerUrl()+"/ipg/genieCardSave",a,{}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.X)(3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("genieCardSave",[])))}submitPin(a){return this.httpClient.post(this.SERVER_URL+"/ideabiz/submitPin",a)}unsubscribe(a){return this.httpClient.post(this.SERVER_URL+"/ideabiz/unsubscribe",a).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("unsubscribe",[])))}getPINFromSMS(a,n,e){return a.substring(n,e)}handleError(a="operation",n){return e=>(this.log(`${a} failed: ${e.message}`),(0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(n))}log(a){console.error(a)}robiSub(a){return this.httpClient.post(this.SERVER_URL+"/robi/sub",a).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.K)(this.handleError("robisub",[])))}updateSubscriptionInfo(a){return this.httpClient.post(this.SERVER_URL+"/ideabiz/updateSubscriptionInfo",a)}getMsisdnFromHeaderEnrichmentApi(){return this.httpClient.get("http://dnfectch.appmaker.lk")}getServerUrl(){return this.utilsService.isMobitel()?this.MOBITEL_SERVER_URL:this.SERVER_URL}}return G.\u0275fac=function(a){return new(a||G)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(SIMATO_COMMONS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(UtilsService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(MessageService))},G.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})(),SubscriptionService=(()=>{class G{constructor(){this.subscriptionObserver=new rxjs__WEBPACK_IMPORTED_MODULE_4__.xQ}getSubscriptionMessage(){return this.subscriptionObserver.asObservable()}sendSubscriptionMessage(a){this.subscriptionObserver.next(a)}}return G.\u0275fac=function(a){return new(a||G)},G.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();class SubscriptionStatus{constructor(){this.status=SUBSCRIPTION_STATUSES.NONE,this.error=""}}var SUBSCRIPTION_STATUSES=(()=>{return(G=SUBSCRIPTION_STATUSES||(SUBSCRIPTION_STATUSES={})).FREE="FREE",G.SUBSCRIBED="SUBSCRIBED",G.NOT_SUBSCRIBED="NOT_SUBSCRIBED",G.ERROR="ERROR",G.NONE="NONE",G.OTC_VALID="OTC_VALID",SUBSCRIPTION_STATUSES;var G})();class SubscriptionMessageStatus{constructor(){this.status=SUBSCRIPTION_MESSAGE_STATUSES.NONE,this.data=new SubscriptionStatus}}var SUBSCRIPTION_MESSAGE_STATUSES=(()=>{return(G=SUBSCRIPTION_MESSAGE_STATUSES||(SUBSCRIPTION_MESSAGE_STATUSES={})).SUB_REQUEST="SUB_REQUEST",G.SUB_RESPONSE="SUB_RESPONSE",G.SUB_IN_PROGRESS="SUB_IN_PROGRESS",G.NONE="NONE",SUBSCRIPTION_MESSAGE_STATUSES;var G})();let GoogleInAppPurchaseService=(()=>{class G{constructor(a,n){this.httpClient=a,this.SERVER_URL=n.uri,window.CdvPurchase&&(store=window.CdvPurchase.store)}register(a){return new rxjs__WEBPACK_IMPORTED_MODULE_7__.y(n=>{store.register({id:a,type:store.PAID_SUBSCRIPTION,platform:window.CdvPurchase.Platform.GOOGLE_PLAY}),store.initialize([window.CdvPurchase.Platform.GOOGLE_PLAY]),n.next("done")})}refresh(){return new rxjs__WEBPACK_IMPORTED_MODULE_7__.y(a=>{store.update()})}error(){return new rxjs__WEBPACK_IMPORTED_MODULE_7__.y(a=>{store.error(n=>{console.log("ERROR "+n.code+": "+n.message),a.next({code:n.code,message:n.message})})})}get(a){return new rxjs__WEBPACK_IMPORTED_MODULE_7__.y(n=>{const e=store.get(a);n.next(e)})}order(a){return new rxjs__WEBPACK_IMPORTED_MODULE_7__.y(n=>{const e=a.getOffer();e&&(e.order(),n.next("Completed")),n.next("Failed!")})}whenApproved(){return new rxjs__WEBPACK_IMPORTED_MODULE_7__.y(a=>{store.when().approved(n=>{n.finish()})})}whenUpdated(){return new rxjs__WEBPACK_IMPORTED_MODULE_7__.y(a=>{store.when().receiptUpdated(n=>{a.next(n)})})}manageSubscriptions(){store.manageSubscriptions()}initInAppProduct(a){this.register(a).subscribe(n=>{}),this.error().subscribe(n=>{console.log("store error:",n),this.postLog({googleInAppPurchase:{location:"register",error:n}})}),this.whenApproved().subscribe(),this.whenUpdated().subscribe(n=>{n&&n.purchaseToken&&localStorage.setItem("purchase-token",n.purchaseToken)}),this.refresh().subscribe(n=>console.log("store refresh result:",n))}postLog(a){try{this.httpClient.post(this.SERVER_URL+"/app/log",a).subscribe()}catch{}}onGoogleInAppSubscribeClick(a){$("#googleInAppSubConfirmationSubComp").modal("hide"),null!==a&&this.get(a).subscribe(n=>{n.canPurchase&&n.getOffer()&&this.order(n).subscribe(o=>{})})}}return G.\u0275fac=function(a){return new(a||G)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(SIMATO_COMMONS_CONFIG))},G.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac,providedIn:"root"}),G})(),OneTimeChargingService=(()=>{class G{constructor(a,n){this.httpClient=a,this.SERVER_URL=n.uri}isOTCValid(a){return this.httpClient.post(this.SERVER_URL+"/app/isOTCValid",a).pipe(n=>n||null)}charge(a){return this.httpClient.post(this.SERVER_URL+"/app/charge",a)}chargeWithoutPin(a){return this.httpClient.post(this.SERVER_URL+"/app/chargeWithoutPin",a)}submitPin(a){return this.httpClient.post(this.SERVER_URL+"/app/submitPinOTC",a)}getServiceId(a){return this.httpClient.post(this.SERVER_URL+"/get/getServiceId",a)}}return G.\u0275fac=function(a){return new(a||G)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(SIMATO_COMMONS_CONFIG))},G.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac,providedIn:"root"}),G})(),SafeHtmlPipe=(()=>{class G{constructor(a){this.sanitized=a}transform(a){return this.sanitized.bypassSecurityTrustHtml(a)}}return G.\u0275fac=function(a){return new(a||G)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(_angular_platform_browser__WEBPACK_IMPORTED_MODULE_8__.H7,16))},G.\u0275pipe=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275definePipe({name:"safeHtml",type:G,pure:!0}),G.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();function SubscriptionComponent_div_7_div_3_div_1_div_1_p_2_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275pipe(2,"titlecase"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(2).$implicit,n=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(3);_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate3(" ",_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275pipeBind1(2,3,a.operator)," Rs.",a.amount,"+tax per ",n.getRenewalIntervalNumberOfDaysByIntervalCode(a.interval)," day(s)")}}function SubscriptionComponent_div_7_div_3_div_1_div_1_span_3_p_1_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275pipe(2,"titlecase"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=P.$implicit,n=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(3).$implicit,e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(3);_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate4(" ",_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275pipeBind1(2,4,n.operator),"(",a.label,") Rs.",a.amount,"+tax per ",e.getRenewalIntervalNumberOfDaysByIntervalCode(a.interval)," day(s)")}}function SubscriptionComponent_div_7_div_3_div_1_div_1_span_3_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(1,SubscriptionComponent_div_7_div_3_div_1_div_1_span_3_p_1_Template,3,6,"p",52),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(2).$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngForOf",a.prepaidPostpaidConfig)}}function SubscriptionComponent_div_7_div_3_div_1_div_1_p_4_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"p")(1,"span",53),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275pipe(3,"titlecase"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(4),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(2).$implicit,n=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(3);_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate2("",_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275pipeBind1(3,3,a.operator)," BDT ",a.amount.toFixed(2),""),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate1(" (+VAT+SD+SC) per ",n.getRenewalIntervalNumberOfDaysByIntervalCode(a.interval)," day(s)")}}function SubscriptionComponent_div_7_div_3_div_1_div_1_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div")(1,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(2,SubscriptionComponent_div_7_div_3_div_1_div_1_p_2_Template,3,5,"p",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(3,SubscriptionComponent_div_7_div_3_div_1_div_1_span_3_Template,2,1,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(4,SubscriptionComponent_div_7_div_3_div_1_div_1_p_4_Template,5,5,"p",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext().$implicit,n=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(3);_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!n.isRobiEnabled&&!a.prepaidPostpaidConfig),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!n.isRobiEnabled&&a.prepaidPostpaidConfig),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.isRobiEnabled)}}function SubscriptionComponent_div_7_div_3_div_1_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(1,SubscriptionComponent_div_7_div_3_div_1_div_1_Template,5,3,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=P.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",a.isEnabled&&"APPROVED"===a.status&&"GENIE"!==a.operator)}}function SubscriptionComponent_div_7_div_3_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(1,SubscriptionComponent_div_7_div_3_div_1_Template,2,1,"div",52),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(2);_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngForOf",a.appPublishDetails.operators)}}function SubscriptionComponent_div_7_p_6_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"\u0db8\u0dd9\u0db8 \u0dc3\u0dda\u0dc0\u0dcf\u0dc0 \u0dc3\u0daf\u0dc4\u0dcf \u0daf\u0dcf\u0dba\u0d9a \u0db8\u0dd4\u0daf\u0dbd \u0d94\u0db6\u0dda \u0da2\u0d82\u0d9c\u0db8 \u0daf\u0dd4\u0dbb\u0d9a\u0dad\u0db1 \u0d9c\u0dd2\u0dab\u0dd4\u0db8\u0dd9\u0db1\u0dca \u0d85\u0dba \u0d9a\u0dbb\u0db1\u0dd4 \u0dbd\u0dd0\u0db6\u0dda. \u0daf\u0dcf\u0dba\u0d9a \u0db8\u0dd4\u0daf\u0dbd\u0dca \u0dc3\u0dca\u0dc0\u0dba\u0d82\u0d9a\u0dca\u200d\u0dbb\u0dd3\u0dba\u0dc0 \u0db1\u0dd0\u0dc0\u0dad \u0d85\u0dbd\u0dd4\u0dad\u0dca \u0d9a\u0dd9\u0dbb\u0dd9\u0db1\u0dd4 \u0dbd\u0dd0\u0db6\u0dda."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}function SubscriptionComponent_div_7_p_7_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"\u0b87\u0ba8\u0bcd\u0ba4 \u0b9a\u0bc7\u0bb5\u0bc8 \u0b95\u0b9f\u0bcd\u0b9f\u0ba3\u0bae\u0bcd \u0b89\u0b99\u0bcd\u0b95\u0bb3\u0bcd \u0ba4\u0bca\u0bb2\u0bc8\u0baa\u0bc7\u0b9a\u0bbf \u0b95\u0ba3\u0b95\u0bcd\u0b95\u0bbf\u0bb2\u0bbf\u0bb0\u0bc1\u0ba8\u0bcd\u0ba4\u0bc1 \u0b85\u0bb1\u0bb5\u0bbf\u0b9f\u0baa\u0bcd\u0baa\u0b9f\u0bc1\u0bae\u0bcd. \u0b89\u0b99\u0bcd\u0b95\u0bb3\u0ba4\u0bc1 \u0b9a\u0bc7\u0bb5\u0bc8\u0baf\u0bbe\u0ba9\u0ba4\u0bc1 \u0ba4\u0bbe\u0ba9\u0bbe\u0b95\u0bb5\u0bc7 \u0bae\u0bc0\u0ba3\u0bcd\u0b9f\u0bc1\u0bae\u0bcd \u0bae\u0bc0\u0bb3\u0bcd \u0b9a\u0bc6\u0baf\u0b9f\u0bcd\u0baa\u0b9f\u0bc1\u0ba4\u0bcd\u0ba4\u0baa\u0bcd\u0baa\u0b9f\u0bc1\u0bae\u0bcd."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}function SubscriptionComponent_div_7_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div")(1,"h3",35),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(2,"Subscribe"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(3,SubscriptionComponent_div_7_div_3_Template,2,1,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(4,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(5,"The subscription amount will be charged to your mobile phone account and your subscription will be renewed automatically."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(6,SubscriptionComponent_div_7_p_6_Template,2,0,"p",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(7,SubscriptionComponent_div_7_p_7_Template,2,0,"p",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(3),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",a.appPublishDetails),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(3),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!a.isRobiEnabled),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!a.isRobiEnabled)}}function SubscriptionComponent_div_8_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div")(1,"div",28)(2,"div",29),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(3,"div",30),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(4,"div",31),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(5," Subscribing... "),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()())}function SubscriptionComponent_div_14_div_1_div_1_ng_container_1_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementContainerStart(0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(1,"p",56),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementContainerEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(2).$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate2("Card Payment Rs.",a.amount,"+tax per ",a.interval.replace("DAYS","day(s)"),"")}}function SubscriptionComponent_div_14_div_1_div_1_ng_template_2_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(2).$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate3("",a.operator," Rs.",a.amount,"+tax per ",a.interval.replace("DAYS","day(s)"),"")}}function SubscriptionComponent_div_14_div_1_div_1_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(1,SubscriptionComponent_div_14_div_1_div_1_ng_container_1_Template,3,2,"ng-container",54),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(2,SubscriptionComponent_div_14_div_1_div_1_ng_template_2_Template,2,3,"ng-template",null,55,_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275templateRefExtractor),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275reference(3),n=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext().$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.operator&&"genie"===n.operator.toLowerCase())("ngIfElse",a)}}function SubscriptionComponent_div_14_div_1_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(1,SubscriptionComponent_div_14_div_1_div_1_Template,4,2,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=P.$implicit,n=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(2);_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",a.isEnabled&&n.isGenieEnabledAndApproved(a))}}function SubscriptionComponent_div_14_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(1,SubscriptionComponent_div_14_div_1_Template,2,1,"div",52),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngForOf",a.appPublishDetails.operators)}}function SubscriptionComponent_button_15_Template(G,P){if(1&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275getCurrentView();_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"button",57),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275restoreView(a);const e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();return _angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275resetView(e.onSubscribeWithGenie())}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"Card Payment"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()}}function SubscriptionComponent_p_16_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(0,"p",58),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275pipe(1,"safeHtml")),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("hidden",!0)("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275pipeBind1(1,2,a.saveCardForm),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275sanitizeHtml)}}function SubscriptionComponent_h3_31_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"h3",35),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"Subscribe"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}function SubscriptionComponent_h3_32_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"h3",35),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"One Time Charge"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}function SubscriptionComponent_option_44_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"option",59),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=P.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275propertyInterpolate("value",a),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate1(" ",a," ")}}function SubscriptionComponent_div_46_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div",60)(1,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(2,"Note: Please access the internet through a Mobitel internet connection, if you are trying to subscribe to a Mobitel number."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(3,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(4,"\u0dc3\u0da7\u0dc4\u0db1: \u0d94\u0db6 \u0db8\u0ddc\u0db6\u0dd2\u0da7\u0dd9\u0dbd\u0dca \u0d85\u0d82\u0d9a\u0dba\u0d9a\u0da7 subscribe \u0dc0\u0dd3\u0db8\u0da7 \u0d8b\u0dad\u0dca\u0dc3\u0dcf\u0dc4 \u0d9a\u0dbb\u0db1\u0dca\u0db1\u0dda \u0db1\u0db8\u0dca \u0d9a\u0dbb\u0dd4\u0dab\u0dcf\u0d9a\u0dbb \u0db8\u0ddc\u0db6\u0dd2\u0da7\u0dd9\u0dbd\u0dca \u0d85\u0db1\u0dca\u0dad\u0dbb\u0dca\u0da2\u0dcf\u0dbd \u0dc3\u0db8\u0dca\u0db6\u0db1\u0dca\u0db0\u0dad\u0dcf\u0dc0\u0dba\u0d9a\u0dca \u0dc4\u0dbb\u0dc4\u0dcf \u0d85\u0db1\u0dca\u0dad\u0dbb\u0dca\u0da2\u0dcf\u0dbd\u0dba\u0da7 \u0db4\u0dd2\u0dc0\u0dd2\u0dc3\u0dd9\u0db1\u0dca\u0db1."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(5,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(6,"\u0b95\u0bc1\u0bb1\u0bbf\u0baa\u0bcd\u0baa\u0bc1: \u0ba8\u0bc0\u0b99\u0bcd\u0b95\u0bb3\u0bcd \u0bae\u0bca\u0baa\u0bbf\u0b9f\u0bc6\u0bb2\u0bcd \u0b8e\u0ba3\u0bcd\u0ba3\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0b95\u0bc1\u0bb4\u0bc1\u0b9a\u0bc7\u0bb0 \u0bae\u0bc1\u0baf\u0bb1\u0bcd\u0b9a\u0bbf\u0ba4\u0bcd\u0ba4\u0bbe\u0bb2\u0bcd, \u0ba4\u0baf\u0bb5\u0bc1\u0b9a\u0bc6\u0baf\u0bcd\u0ba4\u0bc1 \u0bae\u0bca\u0baa\u0bbf\u0b9f\u0bc6\u0bb2\u0bcd \u0b87\u0ba3\u0bc8\u0baf \u0b87\u0ba3\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0bae\u0bc2\u0bb2\u0bae\u0bcd \u0b87\u0ba3\u0bc8\u0baf\u0ba4\u0bcd\u0ba4\u0bc8 \u0b85\u0ba3\u0bc1\u0b95\u0bb5\u0bc1\u0bae\u0bcd."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()())}function SubscriptionComponent_h3_60_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"h3",35),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"Card Payment"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}function SubscriptionComponent_h3_61_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"h3",35),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"One Time Charge"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}function SubscriptionComponent_div_62_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div")(1,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(2,"Please sign into your Google Account to proceed"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(3,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(4,"\u0d89\u0daf\u0dd2\u0dbb\u0dd2\u0dba\u0da7 \u0dba\u0dcf\u0db8\u0da7 \u0d9a\u0dbb\u0dd4\u0dab\u0dcf\u0d9a\u0dbb \u0d94\u0db6\u0d9c\u0dda Google \u0d9c\u0dd2\u0dab\u0dd4\u0db8\u0da7 \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0dc0\u0db1\u0dca\u0db1"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(5,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(6,"\u0ba4\u0bca\u0b9f\u0bb0 \u0b89\u0b99\u0bcd\u0b95\u0bb3\u0bcd Google \u0b95\u0ba3\u0b95\u0bcd\u0b95\u0bbf\u0bb2\u0bcd \u0b89\u0bb3\u0bcd\u0ba8\u0bc1\u0bb4\u0bc8\u0baf\u0bb5\u0bc1\u0bae\u0bcd"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(7,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}function SubscriptionComponent_asl_google_signin_button_64_Template(G,P){if(1&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275getCurrentView();_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"asl-google-signin-button",61),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275restoreView(a);const e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();return _angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275resetView(e.loginWithGoogle())}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()}}function SubscriptionComponent_button_65_Template(G,P){if(1&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275getCurrentView();_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"button",62),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275restoreView(a);const e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();return _angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275resetView(e.proceedToPayment())}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"Complete Payment"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()}}function SubscriptionComponent_div_72_h3_4_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"h3",35),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"Subscribe"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}function SubscriptionComponent_div_72_h3_5_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"h3",35),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"One Time Charge"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}function SubscriptionComponent_div_72_Template(G,P){if(1&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275getCurrentView();_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div",63)(1,"button",4)(2,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(3,"\xd7"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(4,SubscriptionComponent_div_72_h3_4_Template,2,0,"h3",13),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(5,SubscriptionComponent_div_72_h3_5_Template,2,0,"h3",13),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(6,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(7,"Enter verification code."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(8,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(9,"SMS \u0d9a\u0ddd\u0da9\u0dca \u0d91\u0d9a \u0d87\u0dad\u0dd4\u0dbd\u0dad\u0dca \u0d9a\u0dbb\u0db1\u0dca\u0db1."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(10,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(11,"\u0b9a\u0bb0\u0bbf\u0baa\u0bbe\u0bb0\u0bcd\u0baa\u0bcd\u0baa\u0bc1\u0b95\u0bcd \u0b95\u0bc1\u0bb1\u0bbf\u0baf\u0bc0\u0b9f\u0bcd\u0b9f\u0bc8 \u0b89\u0bb3\u0bcd\u0bb3\u0bbf\u0b9f\u0bc1\u0b95."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(12,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(13,"p",64)(14,"input",65),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("ngModelChange",function(e){_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275restoreView(a);const o=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();return _angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275resetView(o.enteredPin=e)})("ngModelChange",function(){_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275restoreView(a);const e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();return _angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275resetView(e.onchangeEnteredPin())}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(15,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(16,"button",66),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275restoreView(a);const e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();return _angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275resetView(e.submitPin())}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(17,"Submit"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(18,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(19,"button",67),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275restoreView(a);const e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();return _angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275resetView(e.retry())}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(20,"Retry"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()}if(2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(4),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!a.isOTC),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",a.isOTC),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(9),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngModel",a.enteredPin),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("disabled",!a.enteredPin)}}function SubscriptionComponent_p_97_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"\u0d94\u0db6 \u0dc3\u0dcf\u0dbb\u0dca\u0dae\u0d9a\u0dc0 \u0dc3\u0dda\u0dc0\u0dba \u0dc3\u0db3\u0dc4\u0dcf \u0daf\u0dcf\u0dba\u0d9a \u0dc0\u0dd3 \u0d87\u0dad."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}function SubscriptionComponent_p_98_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"\u0b9a\u0bc7\u0bb5\u0bc8\u0baf\u0bbf\u0bb2\u0bcd \u0bb5\u0bc6\u0bb1\u0bcd\u0bb1\u0bbf\u0b95\u0bb0\u0bae\u0bbe\u0b95 \u0b95\u0bc1\u0bb4\u0bc1\u0b9a\u0bc7\u0bb0\u0bcd\u0ba8\u0bcd\u0ba4\u0bc1\u0bb3\u0bcd\u0bb3\u0bc0\u0bb0\u0bcd\u0b95\u0bb3\u0bcd."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}function SubscriptionComponent_div_136_Template(G,P){if(1&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275getCurrentView();_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div",68)(1,"button",4)(2,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(3,"\xd7"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(4,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(5,"img",69),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(6,"p",70),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(7,"\u0985\u09cd\u09af\u09be\u09aa\u09c7\u09b0 \u09a8\u09be\u09ae\u0983"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(8,"p",71),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(9),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(10,"p",70),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(11,"\u099a\u09be\u09b0\u09cd\u099c\u0983"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(12,"p",72)(13,"span",73),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(14),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(15,"span",74),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(16," (+\u09ad\u09cd\u09af\u09be\u099f+\u098f\u09b8\u09a1\u09bf+\u098f\u09b8\u09b8\u09bf)"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(17,"p",75),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(18,"Send \u09ac\u09be\u099f\u09a8 \u0995\u09cd\u09b2\u09bf\u0995 \u0995\u09b0\u09c7 \u09aa\u09cd\u09b0\u09be\u09aa\u09cd\u09a4 \u09ae\u09cd\u09af\u09be\u09b8\u09c7\u099c\u09c7 Y \u09b2\u09bf\u0996\u09c7 \u09b0\u09bf\u09aa\u09cd\u09b2\u09be\u0987 \xa0\u0995\u09b0\u09c1\u09a8\u0964"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(19,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(20,"button",76),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275restoreView(a);const e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();return _angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275resetView(e.populateRobiConcentYSMS())}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(21,"SEND"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()}if(2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(9),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate(a.appName),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(5),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate1("BDT",a.robiAppAmount,"")}}function SubscriptionComponent_div_137_Template(G,P){1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div",77)(1,"div",28)(2,"div",29),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(3,"div",30),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(4,"div",31),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(5," Processing... "),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()())}function SubscriptionComponent_div_148_div_1_div_1_ng_container_2_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementContainerStart(0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(1,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementContainerEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(2).$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate2("Card Payment Rs.",a.amount,"+tax per ",a.interval.replace("DAYS","day(s)"),"")}}function SubscriptionComponent_div_148_div_1_div_1_ng_template_3_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext(2).$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate3("",a.operator," Rs.",a.amount,"+tax per ",a.interval.replace("DAYS","day(s)"),"")}}function SubscriptionComponent_div_148_div_1_div_1_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div")(1,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(2,SubscriptionComponent_div_148_div_1_div_1_ng_container_2_Template,3,2,"ng-container",54),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(3,SubscriptionComponent_div_148_div_1_div_1_ng_template_3_Template,2,3,"ng-template",null,55,_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275templateRefExtractor),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275reference(4),n=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext().$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.operator&&"genie"===n.operator.toLowerCase())("ngIfElse",a)}}function SubscriptionComponent_div_148_div_1_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(1,SubscriptionComponent_div_148_div_1_div_1_Template,5,2,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=P.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",a.isEnabled&&"APPROVED"===a.status)}}function SubscriptionComponent_div_148_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(1,SubscriptionComponent_div_148_div_1_Template,2,1,"div",52),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngForOf",a.appPublishDetails.otcOperators)}}function SubscriptionComponent_div_149_div_1_div_1_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div")(1,"div")(2,"p",78),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(3),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext().$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(3),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate1(" Rs. ",a.amount," + tax ")}}function SubscriptionComponent_div_149_div_1_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(1,SubscriptionComponent_div_149_div_1_div_1_Template,4,1,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=P.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",a.isEnabled&&"APPROVED"===a.status)}}function SubscriptionComponent_div_149_Template(G,P){if(1&G&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(1,SubscriptionComponent_div_149_div_1_Template,2,1,"div",52),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()),2&G){const a=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275nextContext();_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngForOf",a.lbsOtcCharges.otcOperators)}}let homePageCmp$1,retryTimeout,SubscriptionComponent=(()=>{class G{constructor(a,n,e,o,l,v,d,u,b,C,x,w,g){this.subscriptionService=a,this.utilsService=n,this.activatedRouter=e,this.router=o,this.ngZone=l,this.subscribedDataService=v,this.smsRetriever=d,this.googleInAppPurchaseService=b,this.appDataService=C,this.otcService=x,this.socialAuthService=w,this.renderer=g,this.isLoggedIn=!1,this.isSubscribing=!1,this.enteredPin="",this.alive=!0,this.enteredMobileNumber="",this.renewalIntervals=[],this.isFromCMSAppView=!1,this.selectedCountryCode="94",this.isCordovaApp=!1,this.displayMessage="",this.isUnsubscribing=!1,this.numberOfTries=0,this.googleInAppSubProdId=null,this.isGoogleInAppPurchaseEnabled=!1,this.googleInAppSubMessage="",this.googleInAppSubPriceText="",this.isRobiEnabled=!1,this.robiaocTranId=null,this.appName="",this.robiAppAmount="",this.isRobiConcentPendingAPIPolling=!0,this.robiConcentYReplySMSCode="",this.clickId="",this.adPartner="",this.returnUrl="",this.prefillmsisdn=null,this.isOTC=!1,this.categoryOTC=null,this.isGenieEnable=!1,this.isValidForGeniePayment=!1,this.isGPayEnabledByTheAPKBuild="GooglePayEnabledByTheAPKBuild",this.showMobiNetWarn=!1,this.isLbsOtc=!1,this.lbsOtcCharges=null,this.serviceId="",this.appId=u.appId,this.utilsService.appId=this.appId,homePageCmp$1=this}ngOnInit(){var a=this;this.isCordovaApp=this.utilsService.isCordovaApp(),this.initOTP(),this.appDataService.getPublishDetails().subscribe(n=>{if(this.appPublishDetails=n,n){this.checkNumber(""),this.isFreeApp=n.isFreeApp,this.appName=n.title,this.isGenieEnable=n.isGenieEnable;const o=l=>l.preventDefault();n.disableCopying&&n.disableCopying?(this.renderer.addClass(document.body,"noselect"),document.addEventListener("contextmenu",o)):(this.renderer.removeClass(document.body,"noselect"),document.removeEventListener("contextmenu",o)),n.isRobiEnabled?(this.robiConcentYReplySMSCode=n.robiConcentYReplySMSCode,this.utilsService.defaultNumberOfTries=40,this.isRobiEnabled=!0,this.selectedCountryCode="880",this.robiAppAmount=n.operators.length>0&&"ROBI"==n.operators[0].operator?n.operators[0].amount.toFixed(2):""):(this.appPublishDetails.mobitelOpCodes&&(localStorage.MOBITEL_OP_CODE||localStorage.setItem("MOBITEL_OP_CODE",this.appPublishDetails.mobitelOpCodes)),"G_PAY_ENABLED"===this.isGPayEnabledByTheAPKBuild&&(n.googleInAppSubProdId&&(this.isGoogleInAppPurchaseEnabled=!0,this.googleInAppSubProdId=n.googleInAppSubProdId,this.googleInAppPurchaseService.initInAppProduct(this.googleInAppSubProdId)),n.googleInAppSubMessage&&(this.googleInAppSubMessage=n.googleInAppSubMessage),n.googleInAppSubPriceText&&(this.googleInAppSubPriceText=n.googleInAppSubPriceText)),this.processHeaderEnrichment()),this.activatedRouter.queryParams.subscribe(l=>{if(l.error)this.displayMessage=l.error,$(()=>{$("#showMessageSubComp").modal("show")});else if(l.mcgiven){const v=l.mcgiven;if(history.replaceState({navigationId:1},"",window.location.pathname),this.isSubscribing=!0,this.isRobiEnabled){history.replaceState({navigationId:1},"","/");const d=l.msisdn;this.robiaocTranId=l.tranid,this.enteredMobileNumber=d,this.robiCheckPendingConcent()}else{localStorage.setItem(this.appId+"msisdn",v);const d=v;this.enteredMobileNumber=d?d.substring(d.length-9):"",this.utilsService.isMobitel()&&this.subscribedDataService.getSubscriptionStatus({msisdn:d,appId:this.appId}).subscribe(C=>{C&&C.uid&&(localStorage.setItem("UUID",C.uid),this.showHideSubscribingModel(!0),$("#otpModelSubComp").modal("show"),this.subCheckPol())})}}else if(l.genieMessage){const v=l.genieMessage;history.replaceState({navigationId:1},"",window.location.pathname),this.displayMessage=v,$(()=>{$("#showMessageSubComp").modal("show")})}})}}),this.appDataService.getCountries().subscribe(n=>{const e=n.platformExtCountries.map(o=>{const l=o.countryCode;return l.substring(l.indexOf("+")+1)});this.countries=e}),this.appDataService.getRenewalIntervals().subscribe(n=>{this.utilsService.renewalIntervals=n,this.renewalIntervals=this.utilsService.renewalIntervals}),$("#registerModelSubComp").on("hide.bs.modal",()=>{this.alive=!1,this.isSubscribing=!1}),this.isSubscribing=!1,this.subscriptionService.getSubscriptionMessage().subscribe(n=>{if(n.message.status===SUBSCRIPTION_MESSAGE_STATUSES.SUB_REQUEST){const e=localStorage.getItem(this.appId+"prefill_msisdn"),o=localStorage.getItem(this.appId+"clickId"),l=localStorage.getItem(this.appId+"adPartner"),v=localStorage.getItem(this.appId+"returnUrl");this.clickId=o&&o.length>0?o:"",this.adPartner=l&&l.length>0?l:"",this.returnUrl=v&&v.length>0?v:"",e&&e.length>=9&&(this.prefillmsisdn=e.substr(-9)),this.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView"),n.message.data.data&&"OTC"===n.message.data.data.categoryType?(this.categoryOTC=n.message.data.data,this.isLbsOtc=!!(this.categoryOTC&&this.categoryOTC.categoryId&&this.categoryOTC.categoryId.startsWith("lbs_")),this.isOTC=!0):(this.categoryOTC=null,this.isOTC=!1,this.isLbsOtc=!1),this.subscribe()}}),$("#enterMSISDNSubComp").on("hidden.bs.modal",function(n){homePageCmp$1.showMobiNetWarn=!1}),this.appDataService.getLbsOtcCharges().subscribe(n=>{this.lbsOtcCharges=n}),this.socialAuthService.authState.subscribe(n=>{let e;if(this.socialUser=n,this.isLoggedIn=null!=n,localStorage.setItem(this.appId+"email",n.email),console.log(this.socialUser),this.utilsService.isCordovaApp())e=encodeURIComponent("cordovaApp");else{const l=window.location.protocol+"//"+window.location.host+window.location.pathname;e=encodeURIComponent(l)}const o={appId:this.appId,uuId:this.utilsService.getLocalStorageUUID(),email:this.socialUser.email,name:this.socialUser.name,hostUrl:e};this.socialUser&&this.subscribedDataService.genieCardSave(o).subscribe(function(){var l=(0,_home_projects_Build_templates_ArticleAppsBase_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_9__.Z)(function*(v){try{"ALREADY_SUBSCRIBED"===JSON.parse(v).message?$("#genieSubscriptionModel").modal("hide"):v.isError&&"ALREADY_SUBSCRIBED"!==v.message&&a.showPopupMessage(v.message)}catch(d){console.log("Error:",d)}});return function(v){return l.apply(this,arguments)}}(),l=>{console.log("Error:",l)})})}loginWithGoogle(){this.socialAuthService.signIn(_abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_10__.tV.PROVIDER_ID,{oneTapEnabled:!1})}logOut(){this.socialAuthService.signOut()}onCancel(){this.isSubscribing=!1,this.alive=!1}processHeaderEnrichment(){this.subscribedDataService.getMsisdnFromHeaderEnrichmentApi().subscribe(a=>{if(a.msisdn){const n={appId:this.appId,uuId:this.utilsService.getLocalStorageUUID(),msisdn:a.msisdn};this.subscribedDataService.updateSubscriptionInfo(n).subscribe(e=>{e.isSubscribedUser&&e.msisdn&&localStorage.setItem(this.appId+"msisdn",e.msisdn)},e=>console.log(e))}},a=>console.log(a))}onSubscribe(){this.enteredMobileNumber=null!=this.prefillmsisdn?this.prefillmsisdn:"",this.initOTP(),$("#otcModelSubComp").modal("hide"),$("#registerModelSubComp").modal("hide"),this.isRobiEnabled?this.robiSub():($("#enterMSISDNSubComp").modal("show"),$("#otpRetryButtonSubComp").hide())}onSubscribeWithGenie(){this.enteredMobileNumber=null!==this.prefillmsisdn?this.prefillmsisdn:"",this.initOTP(),$("#otcModelSubComp").modal("hide"),$("#registerModelSubComp").modal("hide"),this.genieSub()}isGenieEnabledAndApproved(a){return this.isValidForGeniePayment=!1,"APPROVED"===a.status&&"GENIE"===a.operator&&this.isGenieEnable&&(this.isValidForGeniePayment=!0),this.isValidForGeniePayment}initOTP(){this.enteredPin=""}getRenewalIntervalNumberOfDaysByIntervalCode(a){return this.appDataService.getRenewalIntervalNumberOfDaysByIntervalCode(a)}submitMobileNumber(){return localStorage.removeItem(this.appId+"msisdn"),this.isOTC&&!this.isLbsOtc?this.otcCharge():this.isOTC&&this.isLbsOtc?this.otcChargeWithOutPin():(this.appPublishDetails.mobitelOpCodes&&this.appPublishDetails.mobitelOpCodes.includes(this.getMSISDN().substring(0,4))&&this.appPublishDetails.operators&&this.appPublishDetails.operators.some(n=>"MOBITEL"===n.operator&&"APPROVED"===n.status)?this.mobitelSub():this.subPin(),void(this.showMobiNetWarn=!1))}getMSISDN(){return this.selectedCountryCode+""+this.enteredMobileNumber}mobitelSub(){let a;if(localStorage.setItem(this.appId+"msisdn",this.getMSISDN()),this.utilsService.isCordovaApp())a=encodeURIComponent("cordovaApp");else{const e=window.location.protocol+"//"+window.location.host+window.location.pathname;a=encodeURIComponent(e)}const n={appId:this.appId,uuId:this.utilsService.getLocalStorageUUID(),msisdn:this.getMSISDN(),hostUrl:a};this.subscribedDataService.msub(n).subscribe(e=>{$("#enterMSISDNSubComp").modal("hide"),e.isError&&"ALREADY_SUBSCRIBED"===e.message?$(()=>{$("#subscribedModel").modal("show")}):e.isError&&"ALREADY_SUBSCRIBED"!=e.message?this.showPopupMessage(e.message):this.isCordovaApp?this.loadConcentPageInAppMobitel(e.concent):this.loadConcentPage(e.concent)},e=>{console.log("Error:",e)})}loadConcentPageInAppMobitel(a){const n=cordova.InAppBrowser.open(a,"_blank","hidden=no,location=no,clearsessioncache=yes,clearcache=yes,hardwareback=no,hideurlbar=yes");n.addEventListener("message",e=>{"SUCCESS"===e.data.status?(this.isSubscribing=!0,$("#otpModelSubComp").modal("show"),this.showHideSubscribingModel(!0),this.subCheckPol(),n.close()):"ERROR"===e.data.status&&(n.close(),this.isSubscribing=!1,this.displayMessage=e.data.message,$(()=>{$("#showMessageSubComp").modal("show")}))})}loadConcentPageInApp(a){const n=cordova.InAppBrowser.open(a,"_blank","hidden=no,location=no,clearsessioncache=yes,clearcache=yes,hardwareback=no,hideurlbar=yes");n.addEventListener("message",e=>{"SUCCESS"===e.data.status?(this.robiaocTranId=e.data.tranid,n.close(),this.robiCheckPendingConcent()):"ERROR"===e.data.status&&(n.close(),this.isSubscribing=!1,this.displayMessage=e.data.message,$(()=>{$("#showMessageSubComp").modal("show")}))})}robiCheckPendingConcent(){let a=!0,n=1;this.isRobiConcentPendingAPIPolling=!0,$("#robiSMSNotificationModel").modal("show"),(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.F)(5e3).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.o)(()=>a)).subscribe(()=>{if(n===this.utilsService.defaultNumberOfTries)return a=!1,void this.timeoutConcentPopup();n++,this.subscribedDataService.isPendingConcent(this.robiaocTranId).subscribe(e=>{e.isPendingConcent&&(this.ngZone.run(()=>{this.isRobiConcentPendingAPIPolling=!1}),a=!1)})})}timeoutConcentPopup(){this.displayMessage="We are unable to subscribe you to the service at this time.",$("#robiSMSNotificationModel").modal("hide"),$("#showMessageSubComp").modal("show")}populateRobiConcentYSMS(){$("#robiSMSNotificationModel").modal("hide"),this.utilsService.isAndroid()?window.location.href="sms:"+this.robiConcentYReplySMSCode+"?body=Y":this.utilsService.isIos()&&(window.location.href="sms:"+this.robiConcentYReplySMSCode+"&body=Y"),this.isCordovaApp&&(this.isSubscribing=!0),this.showHideSubscribingModel(!0),$("#otpModelSubComp").modal("show"),this.subCheckPol()}subCheckPol(){const a={appId:this.appId,uuId:this.utilsService.getLocalStorageUUID()};this.alive=!0,this.numberOfTries=1,this.isRobiEnabled&&this.robiaocTranId&&(a.tranid=this.robiaocTranId),(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.F)(5e3).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.o)(()=>this.alive)).subscribe(()=>{if(this.numberOfTries===this.utilsService.defaultNumberOfTries)return this.alive=!1,void this.timeoutSubscriptionPopup();this.numberOfTries++,this.subscribedDataService.getSubscribedData(a).subscribe(n=>{if(this.subscriptionStatus=n.subscriptionStatus,this.utilsService.subscriptionStatus=n.subscriptionStatus,n.isError){if(this.showHideSubscribingModel(!1),this.alive=!1,this.hideOTPModel(),this.ngZone.run(()=>{this.showPopupMessage(n.displayMessage)}),this.subscriptionStatus===this.utilsService.STATUS_SUBSCRIBED){const e=new SubscriptionMessageStatus;e.status=SUBSCRIPTION_MESSAGE_STATUSES.SUB_RESPONSE;const o=new SubscriptionStatus;o.status=SUBSCRIPTION_STATUSES.ERROR,o.data=n,e.data=o,this.subscriptionService.sendSubscriptionMessage({message:e}),localStorage.setItem(this.appId+"msisdn",this.getMSISDN())}}else if(this.subscriptionStatus===this.utilsService.STATUS_SUBSCRIBED){localStorage.setItem(this.appId+"msisdn",this.getMSISDN()),$(()=>{$("#isSubscribingSubComp").modal("hide")}),this.alive=!1,$(()=>{$("#subscribedModelSubComp").modal("show")}),$("#otpModelSubComp").modal("hide"),this.resetLocalStorage(),!this.isRobiEnabled&&window.hasOwnProperty("fbq")&&fbq("track","Subscribe",{subscription_sid:this.appId,value:0,currency:"LKR"});const e=new SubscriptionMessageStatus;e.status=SUBSCRIPTION_MESSAGE_STATUSES.SUB_RESPONSE;const o=new SubscriptionStatus;o.status=SUBSCRIPTION_STATUSES.SUBSCRIBED,o.data=n,e.data=o,this.subscriptionService.sendSubscriptionMessage({message:e})}})})}resetLocalStorage(){localStorage.setItem(this.appId+"clickId",""),localStorage.setItem(this.appId+"adPartner",""),localStorage.setItem(this.appId+"returnUrl",""),localStorage.setItem(this.appId+"prefill_msisdn","")}timeoutSubscriptionPopup(){this.displayMessage="The subscription process timed out. We are unable to subscribe you to the service at this time.",$(()=>{$("#otpModelSubComp").modal("hide"),$("#registerModelSubComp").modal("hide"),$("#showMessageSubComp").modal("show")})}loadConcentPage(a){window.location.href=a}subPin(){const a={appId:this.appId,uuId:this.utilsService.getLocalStorageUUID(),msisdn:this.getMSISDN(),clickId:this.clickId,adPartner:this.adPartner,returnUrl:this.returnUrl};$("#enterMSISDNSubComp").modal("hide"),this.showOTPModel(),this.subscribedDataService.subscribePin(a).subscribe(n=>{n.isError?(this.hideOTPModel(),this.showPopupMessage(n.message)):this.isCordovaApp&&n.data&&"TEST_LOGIN"!==n.data&&this.smsRetriever.startSMSRetriver(homePageCmp$1.smsRetrieverSuccessCallback,homePageCmp$1.smsRetrieverErrorCallback)},n=>{const e=n.error;e.isError&&(homePageCmp$1.hideOTPModel(),homePageCmp$1.showPopupMessage(e.message))})}otcCharge(){const a={appId:this.appId,uuId:this.utilsService.getLocalStorageUUID(),msisdn:this.getMSISDN(),categoryId:this.categoryOTC.categoryId,categoryName:this.categoryOTC.categoryName,clickId:this.clickId,adPartner:this.adPartner,returnUrl:this.returnUrl};$("#enterMSISDNSubComp").modal("hide"),this.showOTPModel(),this.otcService.charge(a).subscribe(n=>{n.isError&&(this.hideOTPModel(),this.showPopupMessage(n.message))},n=>{const e=n.error;e.isError&&(homePageCmp$1.hideOTPModel(),homePageCmp$1.showPopupMessage(e.message))})}otcChargeWithOutPin(){this.otcService.getServiceId(this.appId).subscribe(a=>{if(a.isError)this.showPopupMessage(a.message);else{this.serviceId=a[0].serviceID;const n={appId:this.appId,uuId:this.utilsService.getLocalStorageUUID(),msisdn:this.getMSISDN(),categoryId:this.categoryOTC.categoryId,categoryName:this.categoryOTC.categoryName,clickId:this.clickId,adPartner:this.adPartner,returnUrl:this.returnUrl,amount:this.lbsOtcCharges.otcOperators[0].amount,serviceId:this.serviceId};this.otcService.chargeWithoutPin(n).subscribe(e=>{if(e.isError)this.hideOTPModel(),$("#enterMSISDNSubComp").modal("hide"),this.showPopupMessage(e.message);else{$("#enterMSISDNSubComp").modal("hide"),this.showPopupMessage("Payment Successful");const o=new SubscriptionMessageStatus;o.status=SUBSCRIPTION_MESSAGE_STATUSES.SUB_RESPONSE;let l=new SubscriptionStatus;o.data=l,this.oneTimeCharging(o,l)}},e=>{const o=e.error;o.isError&&(homePageCmp$1.hideOTPModel(),homePageCmp$1.showPopupMessage(o.message))})}})}showHideSubscribingModel(a){homePageCmp$1.isSubscribing=a,$(()=>{a?($("#isSubscribingSubComp").show(),$("#otpPartSubComp").hide()):($("#isSubscribingSubComp").hide(),$("#otpPartSubComp").show())})}hideOTPModel(){$(()=>{$("#otpModelSubComp").modal("hide")})}showOTPModel(){this.initOTP(),$(()=>{$("#otpModelSubComp").modal("show"),homePageCmp$1.showHideSubscribingModel(!1)}),this.showRetryButton()}smsRetrieverSuccessCallback(a){const n=homePageCmp$1.subscription.getPINFromSMS(a.Message,homePageCmp$1.appPublishDetails.OTP_MESSAGE.pinStartIndex,homePageCmp$1.appPublishDetails.OTP_MESSAGE.pinEndIndex);homePageCmp$1.ngZone.run(()=>{n&&(homePageCmp$1.enteredPin=n)}),setTimeout(function(){homePageCmp$1.submitPin()},1e3)}smsRetrieverErrorCallback(a){console.log("smsRetrieverErrorCallback in homepage Component: "+JSON.stringify(a))}showRetryButton(){retryTimeout=setTimeout(function(){""===homePageCmp$1.enteredPin&&$("#otpRetryButtonSubComp").show()},5e3)}onchangeEnteredPin(){$("#enteredPin").keypress(function(a){$("#enteredPin").val().trim().length>=6&&a.preventDefault()})}retry(){this.hideOTPModel(),clearTimeout(retryTimeout),$("#otpRetryButtonSubComp").hide(),$("#enterMSISDNSubComp").modal("show")}submitPin(){if(this.isOTC)return this.submitPinOTC();const a=this.enteredPin;if(clearTimeout(retryTimeout),a){const n={appId:this.appId,uuId:this.utilsService.getLocalStorageUUID(),msisdn:this.getMSISDN(),appTitle:"",pin:a};this.showHideSubscribingModel(!0),this.subscribedDataService.submitPin(n).subscribe(e=>{!e.isError&&e.data?.isAlreadySubscribed?(this.utilsService.setLocalStorageItem("UUID",e.data.deviceUUID),this.showHideSubscribingModel(!1),this.hideOTPModel(),this.showPopupMessage(e.message),this.lbsOtcCharges&&this.utilsService.setLocalStorageItem("isAlreadySubscribedForLBS","true")):e.isError?(this.showHideSubscribingModel(!1),this.hideOTPModel(),this.showPopupMessage(e.message)):this.isCordovaApp&&"TEST_LOGIN"===e.data?(this.showHideSubscribingModel(!1),this.hideOTPModel(),localStorage.setItem(this.appId+"_isFromCMSAppView","1"),this.isFromCMSAppView=!0,this.subscribe()):this.subCheckPol()},e=>{this.showHideSubscribingModel(!1);const o=e.error;o.isError&&(this.hideOTPModel(),homePageCmp$1.displayMessage="Wrong PIN"===o.message||"Wrong Pin"===o.message?homePageCmp$1.utilsService.wrongPinMsg:o.message,$(()=>{$("#showMessageSubComp").modal("show")}),("Wrong PIN"===o.message||"Wrong Pin"===o.message)&&$("#showMessageSubComp").on("hidden.bs.modal",function(){$("#showMessageSubComp").off("hidden.bs.modal"),homePageCmp$1.showOTPModel()}))})}else console.log("<<<<< PIN is not valid >>>>>",a)}submitPinOTC(){const a=this.enteredPin;if(clearTimeout(retryTimeout),a){const n={appId:this.appId,uuId:this.utilsService.getLocalStorageUUID(),msisdn:this.getMSISDN(),categoryId:this.categoryOTC.categoryId,pin:a};this.showHideSubscribingModel(!0),this.otcService.submitPin(n).subscribe(e=>{if(this.showHideSubscribingModel(!1),this.hideOTPModel(),e.isError)homePageCmp$1.displayMessage=e.message,$(()=>{$("#showMessageSubComp").modal("show")}),e.isWrongPin&&$("#showMessageSubComp").on("hidden.bs.modal",function(){$("#showMessageSubComp").off("hidden.bs.modal"),homePageCmp$1.showOTPModel()});else{if(this.isCordovaApp&&"TEST_LOGIN"===e.data)return localStorage.setItem(this.appId+"_isFromCMSAppView","1"),this.isFromCMSAppView=!0,void this.subscribe();localStorage.setItem(this.getOTC_UID_Key(),e.data.msisdn),this.showPopupMessage(e.message);const o=new SubscriptionMessageStatus;o.status=SUBSCRIPTION_MESSAGE_STATUSES.SUB_RESPONSE;const l=new SubscriptionStatus;o.data=l,this.oneTimeCharging(o,l)}},e=>{this.showHideSubscribingModel(!1);const o=e.error;o.isError&&(this.hideOTPModel(),homePageCmp$1.displayMessage=o.message,$(()=>{$("#showMessageSubComp").modal("show")}),o.isWrongPin&&$("#showMessageSubComp").on("hidden.bs.modal",function(){$("#showMessageSubComp").off("hidden.bs.modal"),homePageCmp$1.showOTPModel()}))})}else console.log("<<<<< PIN is not valid >>>>>",a)}showPopupMessage(a){this.displayMessage=a,$(()=>{$("#showMessageSubComp").modal("show")})}close(){this.isUnsubscribing=!1,this.isSubscribing=!1}subscribe(){const a=new SubscriptionMessageStatus;a.status=SUBSCRIPTION_MESSAGE_STATUSES.SUB_RESPONSE;const n=new SubscriptionStatus;if(a.data=n,this.isSubscribing=!1,this.isFromCMSAppView||this.isFreeApp)n.data={subscriptionStatus:"SUBSCRIBED"},n.status=SUBSCRIPTION_STATUSES.SUBSCRIBED,this.subscriptionService.sendSubscriptionMessage({message:a});else{if(this.isGoogleInAppPurchaseEnabled)return this.googleInAppSub(a);if(this.isOTC)return this.oneTimeCharging(a,n);{const e=localStorage.getItem("UUID"),o={appId:this.appId,msisdn:localStorage.getItem(this.appId+"msisdn"),uuId:e};this.subscribedDataService.getSubscribedData(o).subscribe(l=>(n.data=l,this.subscriptionStatus=l.subscriptionStatus,this.utilsService.subscriptionStatus=l.subscriptionStatus,l.isError?(this.displayMessage=l.displayMessage,$(()=>{$("#showMessageSubComp").modal("show")}),n.status=SUBSCRIPTION_STATUSES.ERROR,n.error=l.displayMessage,this.subscriptionService.sendSubscriptionMessage({message:a})):this.subscriptionStatus===this.utilsService.STATUS_SUBSCRIBED?(l.isPaymentSuccess&&(this.displayMessage="Successfully renewed your service",$(()=>{$("#showMessageSubComp").modal("show")})),this.isSubscribing=!1,localStorage.setItem(this.appId+"msisdn",l.msisdn),n.status=SUBSCRIPTION_STATUSES.SUBSCRIBED,this.subscriptionService.sendSubscriptionMessage({message:a})):(a.status=SUBSCRIPTION_MESSAGE_STATUSES.SUB_IN_PROGRESS,n.status=SUBSCRIPTION_STATUSES.NONE,this.subscriptionService.sendSubscriptionMessage({message:a}),this.isSubscribing=!1,void(this.isRobiEnabled?this.robiSub():$("#registerModelSubComp").modal("show")))))}}}oneTimeCharging(a,n){const e=localStorage.getItem("UUID"),o={appId:this.appId,msisdn:this.getMSISDN(),uuId:e,categoryId:this.categoryOTC.categoryId};this.otcService.isOTCValid(o).subscribe(l=>(a.data=n,n.data=l,l.isError?(this.displayMessage=l.errorMessage,$(()=>{$("#showMessageSubComp").modal("show")}),n.status=SUBSCRIPTION_STATUSES.ERROR,n.error=l.errorMessage,this.subscriptionService.sendSubscriptionMessage({message:a})):l.isValid?(localStorage.setItem(this.getOTC_UID_Key(),l.msisdn),n.status=SUBSCRIPTION_STATUSES.OTC_VALID,this.subscriptionService.sendSubscriptionMessage({message:a})):(a.status=SUBSCRIPTION_MESSAGE_STATUSES.SUB_IN_PROGRESS,n.status=SUBSCRIPTION_STATUSES.NONE,this.subscriptionService.sendSubscriptionMessage({message:a}),void $("#otcModelSubComp").modal("show"))))}googleInAppSub(a){this.googleInAppPurchaseService.refresh().subscribe(n=>{}),null!==this.googleInAppSubProdId&&this.googleInAppPurchaseService.get(this.googleInAppSubProdId).subscribe(n=>{if(n.owned){const e=localStorage.getItem("UUID"),o={appId:this.appId,purchaseToken:localStorage.getItem("purchase-token"),uuId:e};this.subscribedDataService.getGoogleSubscribedData(o).subscribe(l=>{if(this.subscriptionStatus=l.subscriptionStatus,this.utilsService.subscriptionStatus=l.subscriptionStatus,a.data.data=l,this.subscriptionStatus===this.utilsService.STATUS_SUBSCRIBED)return this.isSubscribing=!1,a.status=SUBSCRIPTION_MESSAGE_STATUSES.SUB_RESPONSE,a.data.status=SUBSCRIPTION_STATUSES.SUBSCRIBED,this.subscriptionService.sendSubscriptionMessage({message:a});this.isSubscribing=!1,this.showGoogleSubscriptionConfirmation()})}else this.showGoogleSubscriptionConfirmation()})}showGoogleSubscriptionConfirmation(){$("#googleInAppSubConfirmationSubComp").modal("show")}onGoogleInAppSubscribeClick(){this.googleInAppPurchaseService.onGoogleInAppSubscribeClick(this.googleInAppSubProdId)}checkGoogleInAppSubscription(){const a=localStorage.getItem("purchase-token");a&&this.subscribedDataService.getGoogleSubscribedData({appId:this.appId,purchaseToken:a}).subscribe(e=>{this.subscriptionStatus=e.subscriptionStatus,this.utilsService.subscriptionStatus=e.subscriptionStatus;const o=new SubscriptionMessageStatus;o.status=SUBSCRIPTION_MESSAGE_STATUSES.SUB_RESPONSE;const l=new SubscriptionStatus;return o.data=l,l.data=e,l.status=this.subscriptionStatus===this.utilsService.STATUS_SUBSCRIBED?SUBSCRIPTION_STATUSES.SUBSCRIBED:SUBSCRIPTION_STATUSES.ERROR,this.subscriptionService.sendSubscriptionMessage({message:o})})}onCloseSubModel(){}robiSub(){let a;a=this.utilsService.isCordovaApp()?"cordovaApp":window.location.protocol+"//"+window.location.host+window.location.pathname;const n={appId:this.appId,uuId:this.utilsService.getLocalStorageUUID(),hostUrl:a};this.subscribedDataService.robiSub(n).subscribe(e=>{$("#enterMSISDNSubComp").modal("hide"),e.isError&&"ALREADY_SUBSCRIBED"===e.message?(localStorage.setItem(this.appId+"msisdn",e.msisdn),$(()=>{$("#subscribedModel").modal("show")})):e.isError?this.showPopupMessage(e.message):this.isCordovaApp?this.loadConcentPageInApp(e.concent):this.loadConcentPage(e.concent)},e=>{console.log("Error:",e)})}genieSub(){$("#genieSubscriptionModel").modal("show"),$("#otpRetryButtonSubComp").hide()}robiSubPWAApp(a){window.location.href=a}robiEnterOTP(){$("#enterMSISDNSubComp").modal("hide"),this.showOTPModel()}navigate(a,n){this.router.navigate([a]),this.closeNav()}closeNav(){document.getElementById("mySidenav").style.height="0",document.getElementById("mySidenav").style.width="0",document.getElementById("header").style.height="initial"}getOTC_UID_Key(){return this.appId+"_"+this.categoryOTC.categoryId+"_msisdn"}checkNumber(a){const n=this.selectedCountryCode+a;if(this.appPublishDetails.mobitelOpCodes&&this.appPublishDetails.mobitelOpCodes.length>0&&n.length>0)for(const e of this.appPublishDetails.mobitelOpCodes){if(new RegExp(`^${e}`,"g").test(n)){this.showMobiNetWarn=!0;break}this.showMobiNetWarn=!1}else this.showMobiNetWarn=!1}proceedToPayment(){var a=this;let n;if(this.utilsService.isCordovaApp())n=encodeURIComponent("cordovaApp");else{const o=window.location.protocol+"//"+window.location.host+window.location.pathname;n=encodeURIComponent(o)}const e={appId:this.appId,uuId:this.utilsService.getLocalStorageUUID(),email:this.socialUser.email,name:this.socialUser.name,hostUrl:n};this.subscribedDataService.genieCardSave(e).subscribe(function(){var o=(0,_home_projects_Build_templates_ArticleAppsBase_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_9__.Z)(function*(l){$("#genieSubscriptionModel").modal("hide"),l.isError&&"ALREADY_SUBSCRIBED"===l.message?$(()=>{$("#subscribedModel").modal("show")}):l.isError&&"ALREADY_SUBSCRIBED"!==l.message?a.showPopupMessage(l.message):window.location=l&&l.shortUrl?l.shortUrl:""});return function(l){return o.apply(this,arguments)}}(),o=>{console.log("Error:",o)})}waitForElment(a){return new Promise(n=>{if(document.getElementById(a))return n(document.getElementById(a));const e=new MutationObserver(o=>{document.getElementById(a)&&(n(document.getElementById(a)),e.disconnect())});e.observe(document.body,{childList:!0,subtree:!0})})}handleIPGPayWhenCordova(a){const n="data:text/html;base64,"+btoa(a);this.handleIPGPayWhenCordovaUrl(n)}handleIPGPayWhenCordovaUrl(a){const n=cordova.InAppBrowser.open(a,"_blank","hidden=no,location=no,clearsessioncache=yes,clearcache=yes");let e;n.addEventListener("loadstart",v=>{if(v.url.includes("/app/ipgResponse")){const d=v.url.split("/app/ipgResponse?")[1];d&&(e=JSON.parse(`{"${decodeURI(d).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"')}"}`)),n.close()}}),n.addEventListener("exit",v=>{this.router.navigate(["ipgPaymentResponse"],{queryParams:e})})}}return G.\u0275fac=function(a){return new(a||G)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(SubscriptionService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(UtilsService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(_angular_router__WEBPACK_IMPORTED_MODULE_13__.gz),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(_angular_router__WEBPACK_IMPORTED_MODULE_13__.F0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(SubscribedDataService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(SMSRetrieverService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(SIMATO_COMMONS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(GoogleInAppPurchaseService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(AppDataService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(OneTimeChargingService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(_abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_10__.xE),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2))},G.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineComponent({type:G,selectors:[["app-subscription"]],decls:160,vars:29,consts:[["id","registerModelSubComp","tabindex","-1","role","dialog","aria-labelledby","registerModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-body","text-center"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[4,"ngIf"],["type","button",1,"btn","sub-button-sub","btn-block","auto-btn-subscribenow",3,"disabled","click"],["type","button","data-dismiss","modal",1,"btn","sub-button-cancel","btn-block","auto-btn-cancel",3,"click"],["type","button","class","btn sub-button-genie btn-block auto-btn-cancel","data-dismiss","modal",3,"click",4,"ngIf"],[3,"hidden","innerHTML",4,"ngIf"],["data-dismiss","modal",2,"font-style","italic","text-decoration","underline",3,"click"],["data-backdrop","static","data-keyboard","false","id","enterMSISDNSubComp","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],["class","padding-bottom subscription-h3",4,"ngIf"],[1,"modal-enter-msisdn"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["type","number",1,"auto-txt-enter-mobile-number",3,"ngModel","ngModelChange"],["class","mobi-net-warn",4,"ngIf"],["type","button",1,"btn","sub-button-sub","btn-block","auto-btn-submit-mobile-number",3,"disabled","click"],["type","button","data-dismiss","modal",1,"btn","sub-button-cancel","btn-block","auto-btn-cancel-submit-mobile-number"],["data-backdrop","static","data-keyboard","false","id","genieSubscriptionModel","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],[1,"asl-google-signin-center"],["data-text","signup_with","data-shape","rectangular","type","standard","size","medium","data-theme","filled_blue","primary","",3,"click",4,"ngIf"],["type","button","class","btn\n        sub-button-sub btn-block auto-btn-submit-mobile-number",3,"click",4,"ngIf"],["data-backdrop","static","data-keyboard","false","id","otpModelSubComp","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],["id","otpPartSubComp","class","modal-body text-center",4,"ngIf"],["id","isSubscribingSubComp",2,"display","none"],[1,"wrapper"],[1,"loader-box"],[1,"loader"],[1,"loader-text"],["data-backdrop","static","data-keyboard","false","id","showMessageSubComp","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],["type","button","data-dismiss","modal",1,"btn","sub-button-sub","btn-block","auto-btn-msg-sub-model",3,"click"],["data-backdrop","static","data-keyboard","false","id","subscribedModelSubComp","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],[1,"padding-bottom","subscription-h3"],[1,"auto-text-sub-success"],["type","button","data-dismiss","modal",1,"btn","sub-button-sub","btn-block","auto-btn-sub-success"],["id","googleInAppSubConfirmationSubComp","tabindex","-1","role","dialog","aria-labelledby","registerModalLabel",1,"modal","fade"],[2,"color","#a0846e","font-weight","bold","margin-bottom","25px"],[2,"font-weight","bold","margin-bottom","12px"],[2,"margin-bottom","15px"],["type","button",1,"btn","sub-button-sub","btn-block",3,"click"],[2,"margin-bottom","10px"],["type","button","data-dismiss","modal",1,"btn","sub-button-cancel","btn-block"],["data-backdrop","static","data-keyboard","false","id","isGoogleSubscribingSubComp","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["data-backdrop","static","data-keyboard","false","id","robiSMSNotificationModel","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],["id","robiSMSNotificationModelText","class","modal-body text-center",4,"ngIf"],["id","isRobiConcentPendingProcessing",4,"ngIf"],["id","otcModelSubComp","tabindex","-1","role","dialog","aria-labelledby","registerModalLabel",1,"modal","fade"],["type","button",1,"btn","sub-button-sub","btn-block","auto-btn-subscribenow",3,"click"],[4,"ngFor","ngForOf"],[2,"font-weight","bold","font-size","medium"],[4,"ngIf","ngIfElse"],["otherOperator",""],[2,"padding","5px"],["type","button","data-dismiss","modal",1,"btn","sub-button-genie","btn-block","auto-btn-cancel",3,"click"],[3,"hidden","innerHTML"],[3,"value"],[1,"mobi-net-warn"],["data-text","signup_with","data-shape","rectangular","type","standard","size","medium","data-theme","filled_blue","primary","",3,"click"],["type","button",1,"btn","sub-button-sub","btn-block","auto-btn-submit-mobile-number",3,"click"],["id","otpPartSubComp",1,"modal-body","text-center"],[1,"modal-enter-otp-pin"],["type","number","id","enteredPin",1,"auto-txt-enter-pin",3,"ngModel","ngModelChange"],["type","button",1,"btn","sub-button-sub","btn-block","auto-btn-submit-pin",3,"disabled","click"],["type","button","id","otpRetryButtonSubComp",1,"btn","sub-button-cancel","btn-block","auto-btn-pin-submit-retry",2,"display","none",3,"click"],["id","robiSMSNotificationModelText",1,"modal-body","text-center"],["src","http://robi-prod.mife-aoc.com/assets/images/robi-logo.png",2,"vertical-align","middle","height","60px","width","260.938px","margin-bottom","0"],[2,"margin","0","text-align","left","font-size","12px","color","darkgray"],[2,"margin","0 0 25px","text-align","left","font-size","16px","font-weight","bold"],[2,"margin","0 0 25px","text-align","left"],[2,"font-size","16px","font-weight","bold"],[2,"font-size","12px","color","darkgray"],[2,"margin","0","font-size","15px","font-weight","bold"],["type","button",1,"btn","sub-button-sub","btn-block",2,"width","156px","display","inline-block",3,"click"],["id","isRobiConcentPendingProcessing"],[1,"otc-charges"]],template:function(a,n){1&a&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(6,"\xd7"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(7,SubscriptionComponent_div_7_Template,8,3,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(8,SubscriptionComponent_div_8_Template,6,0,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(9,"button",7),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){return n.onSubscribe()}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(10,"Subscribe Now"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(11,"button",8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){return n.onCancel()}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(12,"Cancel"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(13,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(14,SubscriptionComponent_div_14_Template,2,1,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(15,SubscriptionComponent_button_15_Template,2,0,"button",9),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(16,SubscriptionComponent_p_16_Template,2,4,"p",10),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(17,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(18,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(19,"a",11),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){return n.navigate("policies","Privacy Policy")}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(20,"Terms & Conditions"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(21," / "),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(22,"a",11),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){return n.navigate("policies","Privacy Policy")}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(23,"Privacy Policy"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(24,"div",12)(25,"div",1)(26,"div",2)(27,"div",3)(28,"button",4)(29,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(30,"\xd7"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(31,SubscriptionComponent_h3_31_Template,2,0,"h3",13),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(32,SubscriptionComponent_h3_32_Template,2,0,"h3",13),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(33,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(34,"Enter your mobile number."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(35,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(36,"\u0d94\u0db6\u0d9c\u0dda \u0da2\u0d82\u0d9c\u0db8 \u0daf\u0dd4\u0dbb\u0d9a\u0dae\u0db1 \u0d85\u0d82\u0d9a\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dad\u0dca \u0d9a\u0dbb\u0db1\u0dca\u0db1."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(37,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(38,"\u0b89\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b9f\u0bc8\u0baf \u0b95\u0bc8\u0baa\u0bc7\u0b9a\u0bbf \u0b8e\u0ba3\u0bcd\u0ba3\u0bc8 \u0b89\u0bb3\u0bcd\u0bb3\u0bbf\u0b9f\u0bb5\u0bc1\u0bae\u0bcd."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(39,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(40,"p",14)(41,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(42,"+"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(43,"select",15),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("ngModelChange",function(o){return n.selectedCountryCode=o}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(44,SubscriptionComponent_option_44_Template,2,2,"option",16),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(45,"input",17),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("ngModelChange",function(o){return n.enteredMobileNumber=o})("ngModelChange",function(){return n.checkNumber(n.enteredMobileNumber)}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(46,SubscriptionComponent_div_46_Template,7,0,"div",18),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(47,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(48,"button",19),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){return n.submitMobileNumber()}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(49,"Submit"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(50,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(51,"button",20),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(52,"Cancel"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(53,"div",21)(54,"div",1)(55,"div",2)(56,"div",3)(57,"button",4)(58,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(59,"\xd7"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(60,SubscriptionComponent_h3_60_Template,2,0,"h3",13),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(61,SubscriptionComponent_h3_61_Template,2,0,"h3",13),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(62,SubscriptionComponent_div_62_Template,8,0,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(63,"div",22),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(64,SubscriptionComponent_asl_google_signin_button_64_Template,1,0,"asl-google-signin-button",23),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(65,SubscriptionComponent_button_65_Template,2,0,"button",24),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(66,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(67,"button",20),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(68,"Cancel"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(69,"div",25)(70,"div",1)(71,"div",2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(72,SubscriptionComponent_div_72_Template,21,4,"div",26),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(73,"div",27)(74,"div",28)(75,"div",29),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(76,"div",30),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(77,"div",31),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(78," Subscribing... "),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(79,"div",32)(80,"div",1)(81,"div",2)(82,"div",3),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(83,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(84,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(85),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(86,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(87,"button",33),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){return n.close()}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(88,"Ok"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(89,"div",34)(90,"div",1)(91,"div",2)(92,"div",3)(93,"h3",35),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(94,"Thank you"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(95,"p",36),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(96,"You have successfully subscribed to the service."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(97,SubscriptionComponent_p_97_Template,2,0,"p",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(98,SubscriptionComponent_p_98_Template,2,0,"p",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(99,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(100,"button",37),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(101,"Ok"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(102,"div",38)(103,"div",1)(104,"div",2)(105,"div",3)(106,"div")(107,"h3",35),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(108,"Subscribe"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(109,"p",39),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(110),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(111,"p",40),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(112),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(113,"div",41)(114,"button",42),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){return n.onGoogleInAppSubscribeClick()}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(115,"Subscribe Now"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(116,"div",43)(117,"button",44),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(118,"Cancel"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(119,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(120,"You can unsubscribe from this service anytime."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(121,"div",45)(122,"div",1)(123,"div",2)(124,"button",46),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){return n.onCloseSubModel()}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(125,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(126,"\xd7"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(127,"div")(128,"div",28)(129,"div",29),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(130,"div",30),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(131,"div",31),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(132," Subscribing... "),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(133,"div",47)(134,"div",1)(135,"div",2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(136,SubscriptionComponent_div_136_Template,22,2,"div",48),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(137,SubscriptionComponent_div_137_Template,6,0,"div",49),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(138,"div",50)(139,"div",1)(140,"div",2)(141,"div",3)(142,"button",4)(143,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(144,"\xd7"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(145,"div")(146,"h3",35),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(147),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(148,SubscriptionComponent_div_148_Template,2,1,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275template(149,SubscriptionComponent_div_149_Template,2,1,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(150,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(151,"The above amount will be charged to your mobile phone."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(152,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(153,"\u0d89\u0dc4\u0dad \u0dc3\u0db3\u0dc4\u0db1\u0dca \u0db8\u0dd4\u0daf\u0dbd \u0d94\u0db6\u0dda \u0da2\u0d82\u0d9c\u0db8 \u0daf\u0dd4\u0dbb\u0d9a\u0dad\u0db1 \u0d9c\u0dd2\u0dab\u0dd4\u0db8\u0dd9\u0db1\u0dca \u0d85\u0dba \u0d9a\u0dbb\u0db1\u0dd4 \u0dbd\u0dd0\u0db6\u0dda."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(154,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(155,"\u0bae\u0bc7\u0bb2\u0bc7 \u0b89\u0bb3\u0bcd\u0bb3 \u0ba4\u0bca\u0b95\u0bc8 \u0b89\u0b99\u0bcd\u0b95\u0bb3\u0bcd \u0bae\u0bca\u0baa\u0bc8\u0bb2\u0bcd \u0b83\u0baa\u0bcb\u0ba9\u0bcd \u0b95\u0ba3\u0b95\u0bcd\u0b95\u0bbf\u0bb2\u0bbf\u0bb0\u0bc1\u0ba8\u0bcd\u0ba4\u0bc1 \u0bb5\u0b9a\u0bc2\u0bb2\u0bbf\u0b95\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0b9f\u0bc1\u0bae\u0bcd."),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(156,"button",51),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){return n.onSubscribe()}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(157,"Pay Now"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(158,"button",8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){return n.onCancel()}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(159,"Cancel"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()()()),2&a&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(7),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",0==n.isSubscribing),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",1==n.isSubscribing),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("disabled",1==n.isSubscribing),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(5),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.appPublishDetails),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.isValidForGeniePayment),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.saveCardForm),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(15),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!n.isOTC),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.isOTC),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(11),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngModel",n.selectedCountryCode),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngForOf",n.countries),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngModel",n.enteredMobileNumber),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.showMobiNetWarn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("disabled",!n.enteredMobileNumber||n.enteredMobileNumber>"999999999"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(12),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!n.isOTC),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.isOTC),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!n.isLoggedIn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!1===n.isLoggedIn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.isLoggedIn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(7),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!n.isRobiEnabled),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(13),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate(n.displayMessage),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(12),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!n.isRobiEnabled),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!n.isRobiEnabled),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(12),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate(n.googleInAppSubPriceText),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(2),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate(n.googleInAppSubMessage),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(24),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",!n.isRobiConcentPendingAPIPolling),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.isRobiConcentPendingAPIPolling),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(10),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate(n.isLbsOtc?"Location Service Charge":"Charges"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.appPublishDetails&&(!n.isLbsOtc||!n.lbsOtcCharges)),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(1),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275property("ngIf",n.isLbsOtc&&n.lbsOtcCharges&&n.lbsOtcCharges.otcOperators))},dependencies:[_angular_forms__WEBPACK_IMPORTED_MODULE_14__.YN,_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Kr,_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Fj,_angular_forms__WEBPACK_IMPORTED_MODULE_14__.wV,_angular_forms__WEBPACK_IMPORTED_MODULE_14__.EJ,_angular_forms__WEBPACK_IMPORTED_MODULE_14__.JJ,_angular_forms__WEBPACK_IMPORTED_MODULE_14__.On,_angular_common__WEBPACK_IMPORTED_MODULE_15__.NgForOf,_angular_common__WEBPACK_IMPORTED_MODULE_15__.NgIf,_abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_10__.TI,_angular_common__WEBPACK_IMPORTED_MODULE_15__.TitleCasePipe,SafeHtmlPipe],styles:['img[_ngcontent-%COMP%]{height:calc((100vh - 190px) / 3);object-fit:cover}div[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]:first-child{padding-top:58px}.name[_ngcontent-%COMP%]{padding:10px 5px 20px;text-transform:uppercase}div[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]:last-child{padding-bottom:45px}.modal[_ngcontent-%COMP%]{text-align:center;padding:0!important}.modal[_ngcontent-%COMP%]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-4px}.modal-dialog[_ngcontent-%COMP%]{display:inline-block;text-align:left;vertical-align:middle}@media (min-width: 768px){.modal-dialog[_ngcontent-%COMP%]{width:598px}}.sub-button-sub[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#2ba2fa,#0092fc,#0081fb,#006ff8,#0f5af2);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.sub-button-cancel[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#ff8c2b,#ff8328,#ff7a25,#ff7024,#ff6623);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.sub-button-genie[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#32b72b,#0a7505,#0a7505,#0a7505,#0a7505);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.header[_ngcontent-%COMP%]{position:fixed;top:0;width:100%;box-shadow:0 2px 20px 2px #0000001f;z-index:10}.wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:360px;width:100%;justify-content:center;align-items:center}.loader-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;content-alignment:center;align-items:center;background-color:#0f0f0f80;border-radius:5px;height:200px;width:250px;box-shadow:1px 1px 1px #2f4f4f}.loader[_ngcontent-%COMP%]{border:1px solid white;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;width:80px;height:80px;animation-name:_ngcontent-%COMP%_loading;animation-duration:.7s;animation-iteration-count:infinite;animation-timing-function:linear}.loader-text[_ngcontent-%COMP%]{margin-top:10px;padding-top:10px;color:#d3d3d3;font-family:Lato,sans-serif;font-size:18px;animation-name:_ngcontent-%COMP%_fading;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}.description-box[_ngcontent-%COMP%]{margin-top:10px;padding:10px 5px;font-family:Lato,sans-serif;font-size:18px;height:35px;line-height:35px;width:500px;background-color:#fff;text-align:center;border-radius:5px}.modal-enter-msisdn[_ngcontent-%COMP%]{font-size:28px}.modal-enter-msisdn[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px;height:40px;border-color:#000;border:1px solid;margin-left:5px}.modal-enter-msisdn[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:170px;padding:3px}.modal-enter-otp-pin[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:40px;border-color:#000;border:1px solid;width:130px;margin-left:10px;text-align:center;font-size:28px}@supports not (-webkit-overflow-scrolling: touch){.modal-enter-otp-pin[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:28px}}@keyframes _ngcontent-%COMP%_loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_fading{0%,to{opacity:.05}50%{opacity:.95}}.m-container-padding[_ngcontent-%COMP%]{padding:71px 16px 66px;margin-bottom:20px}.article-container[_ngcontent-%COMP%]{padding:5px 0;border-bottom:1px solid;border-color:inherit}.article-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-transform:uppercase}.img-loader[_ngcontent-%COMP%]{margin:40px;padding-bottom:60px;text-align:center}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.subscription-h3[_ngcontent-%COMP%]{font-size:24px!important;font-weight:700!important;margin-top:20px;margin-bottom:10px}.otc-charges[_ngcontent-%COMP%]{font-size:20px;color:#ff8c2b;font-weight:500}.modal-body[_ngcontent-%COMP%]   .asl-google-signin-button[_ngcontent-%COMP%]{text-align:center;margin:0 auto}.asl-google-signin-center[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:20px}.mobi-net-warn[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-evenly;align-items:flex-start;margin:1em 1em 0}.mobi-net-warn[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.9em!important;letter-spacing:.01em}']}),G})(),TestComponent=(()=>{class G{constructor(){}ngOnInit(){}}return G.\u0275fac=function(a){return new(a||G)},G.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineComponent({type:G,selectors:[["lib-test"]],decls:2,vars:0,template:function(a,n){1&a&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"test works chamil!"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}}),G})(),UnsubscriptionService=(()=>{class G{constructor(){this.unsubscriptionObserver=new rxjs__WEBPACK_IMPORTED_MODULE_4__.xQ}getUnSubscriptionMessage(){return this.unsubscriptionObserver.asObservable()}sendUnSubscriptionMessage(a){this.unsubscriptionObserver.next(a)}}return G.\u0275fac=function(a){return new(a||G)},G.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();class UnSubscriptionStatus{constructor(){this.status=UN_SUBSCRIPTION_STATUSES.NONE,this.error=""}}var UN_SUBSCRIPTION_STATUSES=(()=>{return(G=UN_SUBSCRIPTION_STATUSES||(UN_SUBSCRIPTION_STATUSES={})).UN_SUBSCRIBED="UNSUBSCRIBED",G.ERROR="ERROR",G.NONE="NONE",UN_SUBSCRIPTION_STATUSES;var G})();class UnSubscriptionMessageStatus{constructor(){this.status=UN_SUBSCRIPTION_MESSAGE_STATUSES.NONE,this.data=new UnSubscriptionStatus}}var UN_SUBSCRIPTION_MESSAGE_STATUSES=(()=>{return(G=UN_SUBSCRIPTION_MESSAGE_STATUSES||(UN_SUBSCRIPTION_MESSAGE_STATUSES={})).UNSUB_REQUEST="UNSUB_REQUEST",G.UNSUB_RESPONSE="UNSUB_RESPONSE",G.NONE="NONE",UN_SUBSCRIPTION_MESSAGE_STATUSES;var G})();let UnsubscriptionComponent=(()=>{class G{constructor(a,n,e,o){this.utilsService=a,this.unsubscriptionService=e,this.subscribedDataService=o,this.isFromCMSAppView=!1,this.alive=!0,this.isUnsubscribing=!1,this.displayMessage="",this.appId=n.appId}ngOnInit(){this.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView"),$("#myAccountModelUnsubComp").on("hide.bs.modal",()=>{this.alive=!1,this.isUnsubscribing=!1}),this.isUnsubscribing=!1,this.unsubscriptionService.getUnSubscriptionMessage().subscribe(a=>{a.message.status===UN_SUBSCRIPTION_MESSAGE_STATUSES.UNSUB_REQUEST&&this.unsubscribe()})}unsubscribe(){if(!this.isFromCMSAppView){$("#myAccountModelUnsubComp").modal("show");const a={appId:this.appId,msisdn:this.utilsService.getLocalStorageMSISDN(this.appId),uuId:this.utilsService.getLocalStorageUUID()};this.alive=!0,this.numberOfTries=1,this.subscribedDataService.unsubscribe(a).subscribe(o=>{console.log("Unsubscribe result:",o)}),(new UnSubscriptionMessageStatus).status=UN_SUBSCRIPTION_MESSAGE_STATUSES.UNSUB_RESPONSE;let e=new UnSubscriptionStatus;this.isUnsubscribing=!0,(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.F)(5e3).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.o)(()=>this.alive)).subscribe(()=>{if(this.numberOfTries===this.utilsService.defaultNumberOfTries)return this.alive=!1,this.timeoutUnubscriptionPopup(),e.status=UN_SUBSCRIPTION_STATUSES.ERROR,this.unsubscriptionService.sendUnSubscriptionMessage({message:e});this.numberOfTries++,this.subscribedDataService.getSubscribedData(a).subscribe(o=>{if(this.subscriptionStatus=o.subscriptionStatus,this.utilsService.subscriptionStatus=o.subscriptionStatus,this.subscriptionStatus===this.utilsService.STATUS_UNSUBSCRIBED)return this.isUnsubscribing=!1,localStorage.removeItem(this.appId+"msisdn"),this.alive=!1,$(()=>{this.unSubscribedSuccessPopup()}),e.status=UN_SUBSCRIPTION_STATUSES.UN_SUBSCRIBED,e.data=o,this.unsubscriptionService.sendUnSubscriptionMessage({message:e})})})}}timeoutUnubscriptionPopup(){this.displayMessage="The unsubscription process timed out, Please try again.",$(()=>{$("#myAccountModelUnsubComp").modal("toggle"),$("#showMessageUnsubComp").modal("show")})}unSubscribedSuccessPopup(){this.displayMessage="You got unsubscribed from the service",$(()=>{$("#myAccountModelUnsubComp").modal("toggle"),$("#showMessageUnsubComp").modal("show")})}close(){}}return G.\u0275fac=function(a){return new(a||G)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(UtilsService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(SIMATO_COMMONS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(UnsubscriptionService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(SubscribedDataService))},G.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineComponent({type:G,selectors:[["app-unsubscription"]],decls:23,vars:1,consts:[["data-backdrop","static","data-keyboard","false","id","myAccountModelUnsubComp","tabindex","-1","role","dialog","aria-labelledby","myAccountModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-body","text-center"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"wrapper"],[1,"loader-box"],[1,"loader"],[1,"loader-text"],["data-backdrop","static","data-keyboard","false","id","showMessageUnsubComp","tabindex","-1","role","dialog","aria-labelledby","appStatusModelLabel",1,"modal","fade"],["type","button","data-dismiss","modal",1,"btn","sub-button-sub","btn-block",3,"click"]],template:function(a,n){1&a&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(6,"\xd7"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(7,"div")(8,"div",6)(9,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(10,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(11,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(12," Un-Subscribing... "),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()()()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(13,"div",10)(14,"div",1)(15,"div",2)(16,"div",3),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(17,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(18,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(19),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275element(20,"br"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(21,"button",11),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275listener("click",function(){return n.close()}),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(22,"Ok"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd()()()()()),2&a&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275advance(19),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275textInterpolate(n.displayMessage))},styles:['.footer[_ngcontent-%COMP%]{position:fixed;bottom:0;height:60px;width:100%;box-shadow:0 -2px 20px 2px #0000001f;background-color:#fff}.footer[_ngcontent-%COMP%]   .btn-group[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around;height:100%}.footer[_ngcontent-%COMP%]   .btn-group[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:0;color:#989898}.footer[_ngcontent-%COMP%]   .btn-group[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:active{color:#000;background-color:transparent;box-shadow:none}.footer[_ngcontent-%COMP%]   button.btn.btn-default[_ngcontent-%COMP%]:active:after{content:"";width:55px;height:5px;background:black;position:absolute;left:-5px;bottom:-14px}.btn-default[_ngcontent-%COMP%]:hover{background-color:#fff}.modal[_ngcontent-%COMP%]{text-align:center;padding:0!important}.modal[_ngcontent-%COMP%]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-4px}.modal-dialog[_ngcontent-%COMP%]{display:inline-block;text-align:left;vertical-align:middle}.sub-button-sub[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#2ba2fa,#0092fc,#0081fb,#006ff8,#0f5af2);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.sub-button-cancel[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#ff8c2b,#ff8328,#ff7a25,#ff7024,#ff6623);border-width:0px!important;color:#fff!important;padding:10px;border-radius:20px;border-width:1px!important;letter-spacing:2px;border:solid;text-transform:uppercase}.header[_ngcontent-%COMP%]{position:fixed;top:0;width:100%;box-shadow:0 2px 20px 2px #0000001f;z-index:10}.wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:360px;width:100%;justify-content:center;align-items:center}.loader-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;content-alignment:center;align-items:center;background-color:#0f0f0f80;border-radius:5px;height:200px;width:250px;box-shadow:1px 1px 1px #2f4f4f}.loader[_ngcontent-%COMP%]{border:1px solid white;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;width:80px;height:80px;animation-name:_ngcontent-%COMP%_loading;animation-duration:.7s;animation-iteration-count:infinite;animation-timing-function:linear}.loader-text[_ngcontent-%COMP%]{margin-top:10px;padding-top:10px;color:#d3d3d3;font-family:Lato,sans-serif;font-size:18px;animation-name:_ngcontent-%COMP%_fading;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}.description-box[_ngcontent-%COMP%]{margin-top:10px;padding:10px 5px;font-family:Lato,sans-serif;font-size:18px;height:35px;line-height:35px;width:500px;background-color:#fff;text-align:center;border-radius:5px}@keyframes _ngcontent-%COMP%_loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_fading{0%,to{opacity:.05}50%{opacity:.95}}']}),G})();var firebaseInstance;let CordovaPluginFirebaseService=(()=>{class _CordovaPluginFirebaseService{constructor(){console.log("CordovaPluginFirebaseService construction..."),firebaseInstance=this}getSuccessFunctionToBePost(){return function(P){console.log("result=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ firebaseInstance.successCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}getErrorFunctionToBePost(){return function(P){console.log("error=> "+JSON.stringify(P,null,2)),P=P?JSON.stringify(P):"";var n=encodeURI(("function(){ firebaseInstance.errorCallback("+P+");}").toString());document.getElementById("appframe").contentWindow.postMessage(n,"*")}}executeFBFunction(G,P,a){console.log("executeFBFunction"),firebaseInstance.addEventListnerReceiveMessageInIframe(),this.successCallbackFunc=P,this.errorCallbackFunc=a;let n="function(){window.FirebasePlugin."+G+"("+firebaseInstance.getSuccessFunctionToBePost().toString()+", "+firebaseInstance.getErrorFunctionToBePost().toString()+");}";firebaseInstance.parentPostMessage(n)}getToken(G,P){console.log("Cordova getToken executing"),window.FirebasePlugin.getToken(function(a){G(a)},function(a){P(a)})}onTokenRefresh(G,P){console.log("Cordova onTokenRefresh executing"),window.FirebasePlugin.onTokenRefresh(function(a){G(a)},function(a){P(a)})}onNotificationOpen(G,P){console.log("onNotificationOpen"),this.executeFBFunction(_CordovaPluginFirebaseService.FB_FUNCTION_ON_NOTIFICATION_OPEN,G,P)}receiveMessageInIframe(evt){try{console.log("Exec receiveMessageInIframe method in firebase service "+decodeURI(evt.data)),eval("("+decodeURI(evt.data)+")();")}catch(G){console.log("Error Exec receiveMessageInIframe method in firebase service. Error: "+JSON.stringify(G,null,2))}}addEventListnerReceiveMessageInIframe(){console.log("call firebaseInstance.addEventListnerReceiveMessageInIframe"),window.addEventListener("message",firebaseInstance.receiveMessageInIframe,!1)}parentPostMessage(G){console.log("call firebaseInstance.parentPostMessage"),window.parent.postMessage(firebaseInstance.serializeFunction(G),"*")}serializeFunction(G){return encodeURI(G.toString())}errorCallback(G){G||(G=null),this.errorCallbackFunc(G)}successCallback(G){G||(G=null),this.successCallbackFunc(G)}}return _CordovaPluginFirebaseService.FB_FUNCTION_GET_TOKEN="getToken",_CordovaPluginFirebaseService.FB_FUNCTION_ON_TOKEN_REFRESH="onTokenRefresh",_CordovaPluginFirebaseService.FB_FUNCTION_ON_NOTIFICATION_OPEN="onNotificationOpen",_CordovaPluginFirebaseService.\u0275fac=function G(P){return new(P||_CordovaPluginFirebaseService)},_CordovaPluginFirebaseService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:_CordovaPluginFirebaseService,factory:_CordovaPluginFirebaseService.\u0275fac}),_CordovaPluginFirebaseService})();var homePageCmp;let PushMessagesComponent=(()=>{class G{constructor(a,n){this.appDataService=a,this.utilsService=n,this.localStorageUUIDString="UUID",homePageCmp=this}ngOnInit(){}ngAfterViewInit(){this.getDeviceUUID()}postDeviceToken(a){try{a+="&appversion="+homePageCmp.dataService.getAPKVersion(window.navigator.userAgent),homePageCmp.appDataService.sendDeviceToken(a).subscribe(n=>{console.log("Device token persisted successfully"),homePageCmp.callOnNotificationOpen()},n=>{console.log("Error while sending the device token to be persist.Error: "+n),homePageCmp.callOnNotificationOpen()})}catch(n){console.log("Exception in pushSuccessCallback: "+n)}}pushSuccessCallback(a){console.log("pushSuccessCallback Token: "+a),a&&null!==a?localStorage[G.PUSH_TOKEN_LOCAL_STORAGE_KEY]=a:localStorage.removeItem(G.PUSH_TOKEN_LOCAL_STORAGE_KEY),homePageCmp.push.onTokenRefresh(homePageCmp.pushTokenRefreshSuccessCallback,homePageCmp.pushTokenRefreshErrorCallback),homePageCmp.postDeviceToken("deviceId="+a+"&uuid="+homePageCmp.uuid)}pushErrorCallback(a){console.log("pushErrorCallback: "+a)}pushTokenRefreshSuccessCallback(a){console.log("pushTokenRefreshSuccessCallback: "+a),localStorage[G.PUSH_TOKEN_LOCAL_STORAGE_KEY]!==a&&homePageCmp.postDeviceToken("deviceId="+a+"&uuid="+homePageCmp.uuid+"&action=NEW_TOKEN")}pushTokenRefreshErrorCallback(a){console.log("pushTokenRefreshErrorCallback: "+a)}generatePushToken(){console.log("Call generatePushToken in homepage"),homePageCmp.push.getToken(homePageCmp.pushSuccessCallback,homePageCmp.pushErrorCallback)}onNotificationOpenSuccessCallback(a){if(homePageCmp.isFromPushMessage=!0,"ARTICLE_MESSAGE"!==a.type)if(a.tap&&a.categoryId&&a.articleId){const n=JSON.parse(a.category);homePageCmp.loadArticleOnReceivePushMessage(n,a.articleId)}else!a.tap&&a.body&&(homePageCmp.dataService.pushMessage=a.body,$(()=>{$("#appStatusModel").modal("hide"),$("#appPushNotificationModel").modal("show"),$("#appPushNotificationModel").off("hidden.bs.modal"),a.categoryId&&a.articleId&&$("#appPushNotificationModel").on("hidden.bs.modal",function(){const n=JSON.parse(a.category);homePageCmp.loadArticleOnReceivePushMessage(n,a.articleId)})}))}onNotificationOpenErrorCallback(a){console.log("onNotificationOpenErrorCallback=>"+a)}callOnNotificationOpen(){}deviceUUIDCallback(a){!localStorage.getItem(homePageCmp.localStorageUUIDString)&&a&&localStorage.setItem(homePageCmp.localStorageUUIDString,a),homePageCmp.subscription.getSubscriptionStatus({appId:homePageCmp.appId,uuId:a}).subscribe(o=>console.log("homepage.componenet.getSubscriptionStatus=> ",o)),homePageCmp.uuid=a,homePageCmp.generatePushToken()}getDeviceUUID(){}}return G.PUSH_TOKEN_LOCAL_STORAGE_KEY="pushtoken",G.\u0275fac=function(a){return new(a||G)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(AppDataService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275directiveInject(UtilsService))},G.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineComponent({type:G,selectors:[["lib-push-messages"]],decls:2,vars:0,template:function(a,n){1&a&&(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementStart(0,"p"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275text(1,"push-messages works!"),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275elementEnd())}}),G})(),SearchPipe=(()=>{class G{transform(a,n){return n&&a?G.filter(a,n):a}static filter(a,n){const e=n.toLowerCase();return a.filter(o=>{for(const l in o){if(null===o.name||null==o.name)return!1;if(o.name.toString().toLowerCase().includes(e))return!0}return!1})}}return G.\u0275fac=function(a){return new(a||G)},G.\u0275pipe=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275definePipe({name:"filter",type:G,pure:!1}),G.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();const googleLoginOptions={oneTapEnabled:!1,prompt_parent_id:""};let SimatoCommonsLibModule=(()=>{class G{}return G.\u0275fac=function(a){return new(a||G)},G.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineNgModule({type:G}),G.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjector({providers:[SubscriptionService,AppDataService,SMSRetrieverService,SubscribedDataService,MessageService,UnsubscriptionService,GoogleInAppPurchaseService,CordovaPluginFirebaseService,{provide:"SocialAuthServiceConfig",useValue:{autoLogin:!1,providers:[{id:_abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_10__.tV.PROVIDER_ID,provider:new _abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_10__.tV("1063391120492-bteuu2iflbaksai7su9rkp98gr65ev1d.apps.googleusercontent.com",googleLoginOptions)}],onError:P=>{console.error(P)}}}],imports:[_angular_forms__WEBPACK_IMPORTED_MODULE_14__.u5,_angular_common__WEBPACK_IMPORTED_MODULE_15__.CommonModule,_abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_10__.RB,_abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_10__.IL]}),G})()},5861:(G,P,a)=>{"use strict";function n(o,l,v,d,u,b,C){try{var x=o[b](C),w=x.value}catch(g){return void v(g)}x.done?l(w):Promise.resolve(w).then(d,u)}function e(o){return function(){var l=this,v=arguments;return new Promise(function(d,u){var b=o.apply(l,v);function C(w){n(b,d,u,C,x,"next",w)}function x(w){n(b,d,u,C,x,"throw",w)}C(void 0)})}}a.d(P,{Z:()=>e})},1411:G=>{"use strict";G.exports=JSON.parse('{"u2":"Asian Biryani Recipes","Jf":"631d56f8e75a8229ed1abaa3","xS":"5eeac96a4137796209a183c3","Xo":{"xY":"https://mapps.appmaker.lk"},"Bv":"Recipe","Qb":"https://chatbackend.appmaker.lk"}')}},G=>{G(G.s=7584)}]);