(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,Je,ct){Object.defineProperty(nt,Je,{configurable:!1,enumerable:!0,value:ct,writable:!1})}function u(nt,Je,ct){Object.defineProperty(nt,Je,{configurable:!1,enumerable:!1,value:ct,writable:!1})}class b{constructor(Je,ct){if("string"==typeof Je)try{Je=JSON.parse(Je)}catch{throw new Error(`Malformed response ${Je}. Could not be parsed to JSON`)}d(this,"config",ct),d(this,"headers",Je.headers||{}),d(this,"status",Je.statusCode||200)}}class C extends b{constructor(Je,ct){super(Je,ct),d(this,"error",Je.body||{})}}class x extends b{constructor(Je,ct){super(Je,ct),d(this,"data",Je.body||{})}}const w=new n.InjectionToken("socket.io instance"),g=new n.InjectionToken("NgxSails config"),f=Symbol("defaultHeaders"),I=Symbol("uri"),j=Symbol("cfg"),F=Symbol("errorsSbj"),Z=Symbol("sendRequest");class le{constructor(Je,ct,ot){ot||(ot={});const Vt={language:"javascript",platform:"browser",version:"1.1.12"},zt=Object.keys(Vt).reduce((ti,mi)=>(ti[`__sails_io_sdk_${mi}`]=Vt[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,F,new e.xQ),d(this,"requestErrors",this[F].asObservable()),d(this,"configuration",Object.freeze({headers:this[f],options:this[j],uri:this[I]}))}delete(Je,ct){return this[Z](Je,"delete",void 0,ct)}emit(Je,...ct){this.io.emit(Je,...ct)}emitAndWait(Je,...ct){return new o.y(ot=>{this.io.emit(Je,...ct,dt=>{ot.next(dt),ot.complete()})})}get(Je,ct){return this[Z](Je,"get",void 0,ct)}head(Je,ct){return this[Z](Je,"head",void 0,ct)}ngOnDestroy(){this[F].complete()}on(Je){return new o.y(ct=>{function ot(dt){ct.next(dt)}this.io.on(Je,ot),ct.add(()=>{this.io.off(Je,ot)})})}options(Je,ct){return this[Z](Je,"options",void 0,ct)}patch(Je,ct,ot){return this[Z](Je,"patch",ct,ot)}post(Je,ct,ot){return this[Z](Je,"post",ct,ot)}put(Je,ct,ot){return this[Z](Je,"put",ct,ot)}[Z](Je,ct,ot,dt={}){return function q(nt,Je,ct){const{method:ot}=nt;return nt.headers=function X(nt){if(nt){let Je;for(const ct of Object.keys(nt))Je=ct.toLowerCase(),Je!==ct&&(nt[Je]=nt[ct],delete nt[ct])}return nt}(nt.headers),new o.y(dt=>{let Vt=!1;Je.emit(ot,nt,zt=>{if(!Vt)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(()=>{Vt=!0})})}(K({data:K(ot),headers:K(Object.assign({},this[f],dt.headers||{})),method:ct,params:K(dt.params||dt.search||{}),url:Je}),this.io,this[F])}}function K(nt){if(nt)for(const Je of Object.keys(nt))void 0===nt[Je]&&delete nt[Je];return nt}le.\u0275fac=function(Je){return new(Je||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(N=>{"SUCCESS"===N.status&&(this.user=N.data[0],this.disableNameInput=!0,localStorage.setItem(this.appId+"ArticleUser",JSON.stringify(this.user)))})}static#e=this.\u0275fac=function(N){return new(N||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(N,me){if(1&N&&(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&N){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:#fbf6f6;position:absolute;border-bottom-right-radius:5px;border-top-right-radius:5px;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:#fbf6f6;position:absolute;border-bottom-right-radius:5px;border-top-right-radius:5px;font-weight:400;cursor:not-allowed;box-shadow:none!important;color:#fff}.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:#ffffff}.div-name[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;color:#000;font-weight:100}.div-comment[_ngcontent-%COMP%]{border-bottom-left-radius:5px;padding:2px;background:#ffffff}.div-comment[_ngcontent-%COMP%]   textarea#comment[_ngcontent-%COMP%]{resize:none;min-height:44px;width:100%;color:#000;font-weight:100;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,N=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1("","AU"===K.createdBy?N.comment.user.name:N.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(N){return new(N||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(N,me){1&N&&(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&N&&(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 I(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,I,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 F(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,F,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(N=>{if("SUCCESS"===N.status){const me=N.data;me.user=K.user,this.comments.push(me),this.addCommentComponent.afterCommentCreatedHandler()}})}static#e=this.\u0275fac=function(N){return new(N||q)(n.\u0275\u0275directiveInject(o.n))};static#t=this.\u0275cmp=n.\u0275\u0275defineComponent({type:q,selectors:[["article-commenting-section"]],viewQuery:function(N,me){if(1&N&&n.\u0275\u0275viewQuery(u,5),2&N){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(N,me){1&N&&(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&N&&(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:()=>Kn});var n=a(6895),e=a(8729),o=a(1411),l=a(4650),v=a(4064);let d=(()=>{class rt{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 St=JSON.parse(localStorage.getItem(`chatLogin-${this.appId}`));return this.commonChatService.setLoggedMemberId(St.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||rt)(l.\u0275\u0275inject(v.d),l.\u0275\u0275inject(e.F0))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();var u=a(529),b=a(9441),C=a(6026),x=a(1086),w=a(7221),g=a(9664),f=a(5158),I=a(9066);let j=(()=>{class rt{constructor(D,ae,_e,tt){this.sails=D,this.http=ae,this.authService=_e,this.dataService=tt,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 tt=new u.LE;return tt=tt.set("appId",D),tt=tt.set("cmsUserId",ae),this.http.get(_e,{params:tt}).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 tt=new u.LE;return tt=tt.set("appId",this.appId),tt=tt.set("cmsUserId",this.userId),tt=tt.set("imageName",ae),this.http.get(_e,{params:tt,responseType:"blob"})}getChatMemberName(D,ae){const _e=`${this.chatUrl}/api/getChatMemberName`;let tt=new u.LE;return tt=tt.set("chatMemberId",D),tt=tt.set("appId",ae),this.http.get(_e,{params:tt}).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||rt)(l.\u0275\u0275inject(g.qq),l.\u0275\u0275inject(u.eN),l.\u0275\u0275inject(f.e),l.\u0275\u0275inject(I.V))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();var F=a(5001),Z=a(2413);let le=(()=>{class rt{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,tt){let St=new u.LE;return St=St.set("appId",D),St=St.set("memberId",ae),St=St.set("cmsUserId",this.userId),St=St.set("skip",_e),tt&&(St=St.set("version",tt)),this.http.get(`${this.chatUrl}/api/getAllMemberNames`,{params:St})}static#e=this.\u0275fac=function(ae){return new(ae||rt)(l.\u0275\u0275inject(u.eN))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();var q=a(4006),X=a(9349),K=a(2042),N=a(8377),me=a(9818),xe=a(7392),ne=a(7084);const Qe=["chatMessageViewContainer"];function Oe(rt,kt){if(1&rt){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(rt,kt){if(1&rt){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 Je(rt,kt){if(1&rt){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&rt){const D=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(6),l.\u0275\u0275textInterpolate1(" ",D.isChatMemberBlocked?"UnBlock User":"Block User"," ")}}function ct(rt,kt){if(1&rt){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"textarea",31),l.\u0275\u0275listener("ngModelChange",function(_e){l.\u0275\u0275restoreView(D);const tt=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(tt.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&rt){const D=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("ngModel",D.reportText),l.\u0275\u0275advance(6),l.\u0275\u0275property("ngClass",D.checkSendActive())}}function ot(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"p",49),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&rt){const D=l.\u0275\u0275nextContext(2).$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",D.text,"")}}function dt(rt,kt){if(1&rt){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,tt=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(tt.openImage(_e.text))}),l.\u0275\u0275elementEnd()}if(2&rt){const D=l.\u0275\u0275nextContext(2).$implicit;l.\u0275\u0275property("src",D.text,l.\u0275\u0275sanitizeUrl)}}function Vt(rt,kt){if(1&rt){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&rt){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(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"p",54),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&rt){const D=l.\u0275\u0275nextContext(2).$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",D.text,"")}}function ti(rt,kt){if(1&rt){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,tt=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(tt.openImage(_e.text))}),l.\u0275\u0275elementEnd()}if(2&rt){const D=l.\u0275\u0275nextContext(2).$implicit;l.\u0275\u0275property("src",D.text,l.\u0275\u0275sanitizeUrl)}}function mi(rt,kt){if(1&rt){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&rt){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 Yt(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"div"),l.\u0275\u0275template(1,Vt,13,4,"div",36),l.\u0275\u0275template(2,mi,13,4,"div",37),l.\u0275\u0275elementEnd()),2&rt){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(rt,kt){if(1&rt){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"input",55),l.\u0275\u0275listener("change",function(_e){l.\u0275\u0275restoreView(D);const tt=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(tt.sendNewImage(_e))}),l.\u0275\u0275elementEnd()}}function lt(rt,kt){if(1&rt){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(rt,kt){if(1&rt){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,Je,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,Yt,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 tt=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(tt.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&rt){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(rt,kt){1&rt&&(l.\u0275\u0275elementStart(0,"span"),l.\u0275\u0275text(1,"You have been blocked from communicating with this user"),l.\u0275\u0275elementEnd())}let W=(()=>{class rt{constructor(D,ae,_e,tt,St,ri,xi,Si){this.titleService=D,this.commonService=ae,this.chatService=_e,this.dataService=tt,this.alertSnackBar=St,this.router=ri,this.cameraService=xi,this.profileService=Si,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 tt="";this.commonService.setLoggedMemberId(tt),this.commonService.setLikedByMemberId(tt),this.commonService.setConversationId(tt),this.commonService.setChattingMemberId(tt),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(St){St.getFile(ae.imageName,{create:!0},function(ri){ri.createWriter(function(xi){xi.write(_e.body),xi.onwriteend=function(){ri.toURL(),window.alert("Image has been saved in Download folder!")},xi.onerror=function(Si){window.alert("Unable to download"),console.error(Si)}},function(xi){console.log("Unable to download"),console.error(xi)})},function(ri){console.log("Unable to download"),console.error(ri)})},function(St){console.log("Unable to download"),console.error(St)})}):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 tt of _e)tt.isImage=-1!=tt.text.search(this.APP_FILE_SERVER_URL),this.messages.push(tt);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 tt of ae)if(tt.size<=this.sendImageSizeLimit){let St=tt;const ri=new FormData;ri.append("sendingImages",St,tt.name),this.chatService.sendChatImage(ri,this.appId,this.userId).subscribe(xi=>{this.postMessage(xi)})}else _e.push(tt.name);if(_e.length){let St=(this.sendImageSizeLimit/1e6).toFixed(1);this.showNotification(1==_e.length?`${_e} was not sent!\nPlease upload image file size less than ${St}MB.`:`${_e} were not sent!\nPlease upload image files size less than ${St}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(tt=>{tt.length?this.postMessage(this.APP_FILE_SERVER_URL+tt):this.showNotification("Server Error! Try again.")},tt=>{this.showNotification("Server Error! Try again.")})}else{let St=`Please upload image file size less than ${(this.sendImageSizeLimit/1e6).toFixed(1)}MB.`;this.showNotification(St)}},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||rt)(l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(j),l.\u0275\u0275directiveInject(I.V),l.\u0275\u0275directiveInject(F.pl),l.\u0275\u0275directiveInject(e.F0),l.\u0275\u0275directiveInject(Z.r),l.\u0275\u0275directiveInject(le))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:rt,selectors:[["app-chat"]],viewQuery:function(ae,_e){if(1&ae&&l.\u0275\u0275viewQuery(Qe,5),2&ae){let tt;l.\u0275\u0275queryRefresh(tt=l.\u0275\u0275loadQuery())&&(_e.chatMessageViewContainer=tt.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 tt=l.\u0275\u0275reference(3);l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!_e.isCurrentUserBlocked)("ngIfElse",tt)}},dependencies:[n.NgClass,n.NgForOf,n.NgIf,q.Fj,q.JJ,q.On,X.IC,K.k0,N.S$,N.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 rt})();var z=a(3472);let He=(()=>{class rt{constructor(D){this.http=D,this.chatUrl=o.Qb,this.httpOptions={headers:new u.WM({"Content-Type":"application/json"})}}getConversationMembers(D,ae,_e){let tt=`${this.chatUrl}/api/getConversationMembers`,St=new u.LE;return St=St.set("loggedMemberId",D),St=St.set("appId",ae),St=St.set("cmsUserId",_e),this.http.get(tt,{params:St}).pipe((0,w.K)(this.handleError(`Can not get Conversaitions related to member id : ${D}`)))}getConversationInfo(D,ae,_e){let tt=`${this.chatUrl}/api/getConversationInfo`,St=new u.LE;return St=St.set("appId",D),St=St.set("loggedMemberId",ae),St=St.set("chatMemberId",_e),this.http.get(tt,{params:St}).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||rt)(l.\u0275\u0275inject(u.eN))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();var Te=a(2684);let Be=(()=>{class rt{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 tt=new u.LE;return tt=tt.set("email",D),tt=tt.set("password",ae),this.http.get(_e,{params:tt}).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,tt){return this.http.post(`${this.chatUrl}/api/addProfileImage/${ae}/${_e}/${tt}`,D)}updateChatMember(D,ae,_e,tt){for(let Si of D)delete Si.createdAt,delete Si.fieldOptions,delete Si.fieldType,delete Si.isInterestedIn,delete Si.name,delete Si.order,delete Si.updatedAt,delete Si.isDefault;for(let Si of ae)delete Si.createdAt,delete Si.fieldOptions,delete Si.fieldType,delete Si.isInterestedIn,delete Si.name,delete Si.order,delete Si.updatedAt,delete Si.isDefault;return this.http.put(`${this.chatUrl}/api/updateChatMember`,{appId:_e,memberId:tt,memberInfo:{profArr:D,interestedFields:ae}},this.httpOptions).pipe((0,w.K)(this.handleError("updateChatMember")))}addMember(D,ae,_e,tt){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:tt}),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 tt=localStorage.getItem(this.appId+"msisdn");this.updateMember(_e.loggedUser,tt,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 tt={appId:D,loggedMemberId:_e,likedBy:ae};return this.http.put(`${this.chatUrl}/api/acceptRequest`,tt,this.httpOptions).pipe((0,w.K)(this.handleError(`Error Updating member : ${tt}`)))}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,tt,St){let ri=new u.LE;return ri=ri.set("appId",D),ri=ri.set("memberId",ae),ri=ri.set("cmsUserId",_e),ri=ri.set("skip",tt),St&&(ri=ri.set("version",St)),this.http.get(`${this.chatUrl}/api/getMyMatches`,{params:ri}).pipe((0,w.K)(this.handleError("Error get My Matches! ")))}getLikedMemberInfo(D,ae,_e){let tt=new u.LE;return tt=tt.set("appId",D),tt=tt.set("likedByMemberId",ae),tt=tt.set("cmsUserId",_e),this.http.get(`${this.chatUrl}/api/getLikedMemberInfo`,{params:tt}).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||rt)(l.\u0275\u0275inject(u.eN))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();var pt=a(9982),Pe=a(3189);function Xe(rt,kt){if(1&rt){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-action-list",6)(1,"button",7),l.\u0275\u0275listener("click",function(){const tt=l.\u0275\u0275restoreView(D).$implicit,St=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(St.acceptLikedMember(tt))}),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&rt){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 ht=(()=>{class rt{constructor(D,ae,_e,tt,St,ri,xi,Si,oi,bn,Gn){this.titleService=D,this.commonService=ae,this.router=_e,this.dataService=tt,this.conversationService=St,this.alertSnackBar=ri,this.location=xi,this.chatService=Si,this.subscriptionService=oi,this.messageService=bn,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(tt=>{tt.length&&(this.chatConnections=tt,this.commonService.unseenChatMemberIds&&this.chatConnections.forEach((St,ri)=>{this.commonService.unseenChatMemberIds[St.chatMemberId]&&(this.chatConnections[ri].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(tt=>{this.commonService.setChattingMemberId(this.chattingMemberId),"Faild"==tt?this.alertSnackBar.open("Something went wrong!","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition}):this.sub(tt)}))}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 St="";this.commonService.setLoggedMemberId(St),this.commonService.setLikedByMemberId(St),this.commonService.setConversationId(St),this.commonService.setChattingMemberId(St),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}sub(D){const ae=this.subscriptionService.getSubscriptionMessage().subscribe(tt=>{if(tt.message.status===z.Yg.SUB_RESPONSE&&"ERROR"!=tt.message.data.status){ae.unsubscribe();const ri=tt.message.data.data;!ri.isError&&"SUBSCRIBED"==ri.subscriptionStatus&&(this.appuserdataService.updateMemberIfNotExists(),this.messageService.sendMessage({subscription:ri}),this.conversationId=D,this.commonService.setConversationId(this.conversationId),this.router.navigate(["/chatTemplate/chat"]))}}),_e=new z.Mw;_e.status=z.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 tt="";this.commonService.setLoggedMemberId(tt),this.commonService.setLikedByMemberId(tt),this.commonService.setConversationId(tt),this.commonService.setChattingMemberId(tt),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 tt="";this.commonService.setLoggedMemberId(tt),this.commonService.setLikedByMemberId(tt),this.commonService.setConversationId(tt),this.commonService.setChattingMemberId(tt),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 tt="";this.commonService.setLoggedMemberId(tt),this.commonService.setLikedByMemberId(tt),this.commonService.setConversationId(tt),this.commonService.setChattingMemberId(tt),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 tt="";this.commonService.setLoggedMemberId(tt),this.commonService.setLikedByMemberId(tt),this.commonService.setConversationId(tt),this.commonService.setChattingMemberId(tt),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}static#e=this.\u0275fac=function(ae){return new(ae||rt)(l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(e.F0),l.\u0275\u0275directiveInject(I.V),l.\u0275\u0275directiveInject(He),l.\u0275\u0275directiveInject(F.pl),l.\u0275\u0275directiveInject(n.Location),l.\u0275\u0275directiveInject(j),l.\u0275\u0275directiveInject(z.FF),l.\u0275\u0275directiveInject(Te.e),l.\u0275\u0275directiveInject(Be))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:rt,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,Xe,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(St){return _e.searchConnection=St}),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,N.S$,N.Qi,pt.Zj,pt.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 rt})();var ee=a(74),k=a(6289),R=a(4363);function be(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"mat-option",9),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&rt){const D=kt.$implicit;l.\u0275\u0275property("value",D.code),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(D.text)}}const qe=function(){return{standalone:!0}};function Ue(rt,kt){if(1&rt){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-select",7),l.\u0275\u0275listener("ngModelChange",function(_e){l.\u0275\u0275restoreView(D);const tt=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(tt.field.fieldValue=_e)}),l.\u0275\u0275template(1,be,2,2,"mat-option",8),l.\u0275\u0275elementEnd()}if(2&rt){const D=l.\u0275\u0275nextContext();l.\u0275\u0275property("value",D.field.code)("ngModel",D.field.fieldValue)("ngModelOptions",l.\u0275\u0275pureFunction0(4,qe)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",D.field.fieldOptions)}}function fe(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"mat-option",9),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&rt){const D=kt.$implicit;l.\u0275\u0275property("value",D.code),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(D.text)}}function ke(rt,kt){if(1&rt){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-select",10),l.\u0275\u0275listener("ngModelChange",function(_e){l.\u0275\u0275restoreView(D);const tt=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(tt.field.fieldValue=_e)}),l.\u0275\u0275template(1,fe,2,2,"mat-option",8),l.\u0275\u0275elementEnd()}if(2&rt){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(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"div",11)(1,"span",12)(2,"i"),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()()()),2&rt){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1("*",D.errorMsg,"")}}let Tt=(()=>{class rt{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 St="intrested_"+this.field.code.toLowerCase().trim().replace(" ","_");this.formCtrlName=St}else{let tt=this.field.code.toLowerCase().trim().replace(" ","_");this.formCtrlName=tt}}static#e=this.\u0275fac=function(ae){return new(ae||rt)};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:rt,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 rt})();const Bt=function(){return{standalone:!0}};function st(rt,kt){if(1&rt){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"input",8),l.\u0275\u0275listener("ngModelChange",function(_e){l.\u0275\u0275restoreView(D);const tt=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(tt.field.fieldValue=_e)}),l.\u0275\u0275elementEnd()}if(2&rt){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(rt,kt){if(1&rt){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"input",9),l.\u0275\u0275listener("ngModelChange",function(_e){l.\u0275\u0275restoreView(D);const tt=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(tt.field.fieldValue=_e)}),l.\u0275\u0275elementEnd()}if(2&rt){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(rt,kt){if(1&rt){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(rt,kt){if(1&rt){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(rt,kt){if(1&rt&&(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&rt){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(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"div",12)(1,"span",13)(2,"i"),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()()()),2&rt){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1("*",D.errorMsg,"")}}function Xt(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"div",12)(1,"span",13)(2,"i"),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()()()),2&rt){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1("*",D.patternErrorMsg,"")}}function di(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"div",12)(1,"span",13)(2,"i"),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()()()),2&rt){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1("*",D.requiredMsg,"")}}let vt=(()=>{class rt{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 St="intrested_"+this.field.code.toLowerCase().trim().replace(" ","_");this.formCtrlName=St}else{let tt=this.field.code.toLowerCase().trim().replace(" ","_");this.formCtrlName=tt}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||rt)};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:rt,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,di,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 rt})();function Ut(rt,kt){if(1&rt){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 tt=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(tt.addImageToPwa(_e))}),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"span",17),l.\u0275\u0275text(6,"Upload Image"),l.\u0275\u0275elementEnd()()()()}if(2&rt){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("src",D.imageField.fieldValue,l.\u0275\u0275sanitizeUrl)}}function Qt(rt,kt){if(1&rt&&l.\u0275\u0275element(0,"img",14),2&rt){const D=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("src",D.imageField.fieldValue,l.\u0275\u0275sanitizeUrl)}}function Ci(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"div",21),l.\u0275\u0275element(1,"img",22),l.\u0275\u0275elementEnd()),2&rt){const D=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(1),l.\u0275\u0275property("src",D.imageField.fieldValue,l.\u0275\u0275sanitizeUrl)}}function _i(rt,kt){if(1&rt){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"div",13),l.\u0275\u0275template(1,Qt,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&rt){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(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"tr",26),l.\u0275\u0275element(1,"app-text",27),l.\u0275\u0275elementEnd()),2&rt){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(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"div",23)(1,"table",24),l.\u0275\u0275template(2,pi,2,3,"tr",25),l.\u0275\u0275elementEnd()()),2&rt){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",D.emailPassFields)}}function ze(rt,kt){if(1&rt&&l.\u0275\u0275element(0,"app-select",27),2&rt){const D=l.\u0275\u0275nextContext().$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("isInterested",!1)("parentForm",ae.parentForm)("field",D)}}function ue(rt,kt){if(1&rt&&l.\u0275\u0275element(0,"app-text",27),2&rt){const D=l.\u0275\u0275nextContext().$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("isInterested",!1)("parentForm",ae.parentForm)("field",D)}}function re(rt,kt){if(1&rt&&(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&rt){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(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"div",28)(1,"table",24),l.\u0275\u0275template(2,re,3,2,"tr",25),l.\u0275\u0275elementEnd()()),2&rt){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",D.fields)}}function Re(rt,kt){if(1&rt&&l.\u0275\u0275element(0,"app-select",27),2&rt){const D=l.\u0275\u0275nextContext().$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("isInterested",ae.isInterested)("parentForm",ae.parentForm)("field",D)}}function We(rt,kt){if(1&rt&&l.\u0275\u0275element(0,"app-text",27),2&rt){const D=l.\u0275\u0275nextContext().$implicit,ae=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("isInterested",ae.isInterested)("parentForm",ae.parentForm)("field",D)}}function xt(rt,kt){if(1&rt&&(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&rt){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 Wt(rt,kt){if(1&rt&&(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&rt){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(6),l.\u0275\u0275property("ngForOf",D.interestedFields)}}let wt=(()=>{class rt{constructor(D,ae,_e,tt,St,ri,xi,Si,oi,bn,Gn,Vi,co){this.titleService=D,this.commonService=ae,this.router=_e,this.profileService=tt,this.appUserDataService=St,this.dataService=ri,this.alertSnackBar=xi,this.fb=Si,this.authService=oi,this.cameraService=bn,this.ngZone=Gn,this.activatedRouter=Vi,this.subscriptionService=co,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 St=D.code.toLowerCase().trim().replace(" ","_");this.validateObj[St]="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 St=D.code.toLowerCase().trim().replace(" ","_");this.validateObj[St]="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 ri="intrested_"+D.code.toLowerCase().trim().replace(" ","_");"age"==D.code&&(this.validateObj[ri]=["",[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 St=`Please upload image file size less than ${(this.commonService.profImageSizeLimit/1e6).toFixed(1)}MB.`;this.showNotification(St)}},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 tt=`Please upload image file size less than ${(this.commonService.profImageSizeLimit/1e6).toFixed(1)}MB.`;this.showNotification(tt)}}saveMemberDetails(D,ae,_e,tt){if(tt)if(this.parentForm.invalid)this.showNotification("Please complete all fields to proceed");else{for(let St of D)"email"==St.code&&(St.fieldValue=St.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(tt=>{if(tt)this.isCordovaApp?this.updateCordovaAppMember(D,ae,_e):this.updatePwaMember(D,ae,_e);else{this.showNotification("You are blocked from using this app.");let ri="";this.commonService.setLoggedMemberId(ri),this.commonService.setLikedByMemberId(ri),this.commonService.setConversationId(ri),this.commonService.setChattingMemberId(ri),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(St=>{this.imageField.fieldValue=St,ae.push(this.imageField);for(let ri of D)ae.push(ri);this.updateMemberCall(ae,_e)},St=>{(St.status=400)?this.showNotification(St.body.split('"').join("")):this.showNotification("Server Error! Try again.")})):this.showNotification("Please add an Image!");else if(this.hasImg){let St=this.imageField.fieldValue.split("thirdNavi/")[1];this.imageField.fieldValue=St,ae.push(this.imageField);for(let ri of D)ae.push(ri);this.updateMemberCall(ae,_e)}else this.showNotification("Please add a profile image!")}updatePwaMember(D,ae,_e){if(this.imageField.addedEvent){let St=this.imageField.addedEvent;const ri=new FormData;ri.append("memberId",this.commonService.loggedMemberId),ri.append("email",D[0].fieldValue),ri.append("profileImage",St,St.name),delete this.imageField.addedEvent,this.appUserDataService.addProfileImage(ri,this.appId,this.userId,!1).subscribe(xi=>{if(xi.length){this.imageField.fieldValue=xi,ae.push(this.imageField);for(let Si of D)ae.push(Si);this.updateMemberCall(ae,_e)}else this.showNotification("Please Try Again!")},xi=>{xi&&xi.error&&this.showNotification(xi.error)})}else if(this.hasImg){let St=this.imageField.fieldValue.split("thirdNavi/")[1];this.imageField.fieldValue=St,ae.push(this.imageField);for(let ri of D)ae.push(ri);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(tt=>{this.addMemberCall(tt,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(tt=>{this.addMemberCall(tt,D,ae,_e)},tt=>{(tt.status=400)?this.showNotification(tt.body.split('"').join("")):this.showNotification("Server Error! Try again.")}))}addPwaMember(D,ae,_e){let tt=this.imageField.addedEvent;const St=new FormData;St.append("email",D[0].fieldValue),this.isEmptyImage||St.append("profileImage",tt,tt.name),this.isDisabledRegisterButton=!0,this.appUserDataService.addProfileImage(St,this.appId,this.userId,this.isEmptyImage).subscribe(ri=>{this.addMemberCall(ri,D,ae,_e)},ri=>{ri&&ri.error&&this.showNotification(ri.error),this.isDisabledRegisterButton=!1})}addMemberCall(D,ae,_e,tt){if(D.length){let St=tt.map(Si=>JSON.parse(JSON.stringify(Si))),ri=_e.map(Si=>JSON.parse(JSON.stringify(Si))),xi=JSON.parse(JSON.stringify(this.imageField));xi.fieldValue=D,ri.push(xi);for(let Si of ae)ri.push(Si);this.appUserDataService.addMember(ri,St,this.appId,this.checked).subscribe(Si=>{let oi=Si;this.setLocalStorage(!0),this.commonService.setLoggedMemberId(oi.id),oi.userToken&&this.authService.setToken(oi.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===z.Yg.SUB_RESPONSE&&"ERROR"!=_e.message.data.status){D.unsubscribe();const ri=_e.message.data.data;ri.isError||"SUBSCRIBED"!=ri.subscriptionStatus||(this.isFromLandingPage=!1,this.isDisabledRegisterButton=!1,window.top.postMessage({from:"pwa",redirectUrl:this.landingPageData.pwaUrl},"*"),this.landingPageData=null)}}),ae=new z.Mw;ae.status=z.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||rt)(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(I.V),l.\u0275\u0275directiveInject(F.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(z.FF))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:rt,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,Wt,7,1,"div",8),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(11,"section",9)(12,"mat-checkbox",10),l.\u0275\u0275listener("ngModelChange",function(St){return _e.checked=St}),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,N.S$,N.Qi,N.k0,me.eB,ee.FC,Tt,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 rt})();var Mt=a(9282),It=a(3238),se=a(1281),we=a(445);const Le=["*"];class bt{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 Pt(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 Pt{constructor(kt,D){this.row=kt,this.col=D}}const ii=new l.InjectionToken("MAT_GRID_LIST");let Ki=(()=>{class rt{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 rt.\u0275fac=function(D){return new(D||rt)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(ii,8))},rt.\u0275cmp=l.\u0275\u0275defineComponent({type:rt,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}),rt})();const vr=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class ur{constructor(){this._rows=0,this._rowspan=0}init(kt,D,ae,_e){this._gutterSize=Mi(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":Fn(`(${kt} + ${this._gutterSize}) * ${D}`)}getTileSize(kt,D){return`(${kt} * ${D}) + (${D-1} * ${this._gutterSize})`}setStyle(kt,D,ae){let _e=100/this._cols,tt=(this._cols-1)/this._cols;this.setColStyles(kt,ae,_e,tt),this.setRowStyles(kt,D,_e,tt)}setColStyles(kt,D,ae,_e){let tt=this.getBaseTileSize(ae,_e);kt._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(tt,D)),kt._setStyle("width",Fn(this.getTileSize(tt,kt.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(kt){return`${this._rowspan} * ${this.getTileSize(kt,1)}`}getComputedHeight(){return null}}class Yi extends ur{constructor(kt){super(),this.fixedRowHeight=kt}init(kt,D,ae,_e){super.init(kt,D,ae,_e),this.fixedRowHeight=Mi(this.fixedRowHeight),vr.test(this.fixedRowHeight)}setRowStyles(kt,D){kt._setStyle("top",this.getTilePosition(this.fixedRowHeight,D)),kt._setStyle("height",Fn(this.getTileSize(this.fixedRowHeight,kt.rowspan)))}getComputedHeight(){return["height",Fn(`${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 wn extends ur{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",Fn(this.getTileSize(this.baseTileHeight,kt.rowspan)))}getComputedHeight(){return["paddingBottom",Fn(`${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 Rn extends ur{setRowStyles(kt,D){let tt=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);kt._setStyle("top",this.getTilePosition(tt,D)),kt._setStyle("height",Fn(this.getTileSize(tt,kt.rowspan)))}reset(kt){kt._tiles&&kt._tiles.forEach(D=>{D._setStyle("top",null),D._setStyle("height",null)})}}function Fn(rt){return`calc(${rt})`}function Mi(rt){return rt.match(/([A-Za-z%]+)$/)?rt:`${rt}px`}let hr=(()=>{class rt{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 Rn:D&&D.indexOf(":")>-1?new wn(D):new Yi(D)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new bt);const D=this._tileCoordinator,ae=this._tiles.filter(tt=>!tt._gridList||tt._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((tt,St)=>{const ri=D.positions[St];this._tileStyler.setStyle(tt,ri.row,ri.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(D){D&&(this._element.nativeElement.style[D[0]]=D[1])}}return rt.\u0275fac=function(D){return new(D||rt)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(we.Is,8))},rt.\u0275cmp=l.\u0275\u0275defineComponent({type:rt,selectors:[["mat-grid-list"]],contentQueries:function(D,ae,_e){if(1&D&&l.\u0275\u0275contentQuery(_e,Ki,5),2&D){let tt;l.\u0275\u0275queryRefresh(tt=l.\u0275\u0275loadQuery())&&(ae._tiles=tt)}},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:rt}])],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}),rt})(),br=(()=>{class rt{}return rt.\u0275fac=function(D){return new(D||rt)},rt.\u0275mod=l.\u0275\u0275defineNgModule({type:rt}),rt.\u0275inj=l.\u0275\u0275defineInjector({imports:[It.uc,It.BQ,It.uc,It.BQ]}),rt})();function bi(rt,kt){if(1&rt){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-grid-tile")(1,"figure",10)(2,"div",11),l.\u0275\u0275listener("click",function(){const tt=l.\u0275\u0275restoreView(D).$implicit,St=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(St.matchMember(tt.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&rt){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(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"mat-grid-list",8),l.\u0275\u0275template(1,bi,10,3,"mat-grid-tile",9),l.\u0275\u0275elementEnd()),2&rt){const D=l.\u0275\u0275nextContext();l.\u0275\u0275property("gutterSize","10px"),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",D.yourMatchesArr)}}function ji(rt,kt){if(1&rt){const D=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-grid-tile")(1,"figure",10)(2,"div",11),l.\u0275\u0275listener("click",function(){const tt=l.\u0275\u0275restoreView(D).$implicit,St=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(St.matchMember(tt.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&rt){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 Sn(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"mat-grid-list",8),l.\u0275\u0275template(1,ji,10,3,"mat-grid-tile",9),l.\u0275\u0275elementEnd()),2&rt){const D=l.\u0275\u0275nextContext();l.\u0275\u0275property("gutterSize","10px"),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",D.allMembersArr)}}let Hn=(()=>{class rt{constructor(D,ae,_e,tt,St,ri,xi,Si,oi,bn,Gn,Vi){this.titleService=D,this.commonService=ae,this.dataService=_e,this.profileService=tt,this.appUserDataService=St,this.router=ri,this.alertSnackBar=xi,this.chatService=Si,this.subscriptionService=oi,this.messageService=bn,this.conversationService=Gn,this.appDataService=Vi,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===z.Yg.SUB_RESPONSE&&"ERROR"!=_e.message.data.status){D.unsubscribe();const St=_e.message.data.data;!St.isError&&"SUBSCRIBED"==St.subscriptionStatus&&this.appUserDataService.updateMemberIfNotExists(),this.messageService.sendMessage({subscription:_e.message.data.data}),this.getNotifications()}}),ae=new z.Mw;ae.status=z.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(St=>"SUSPENDED"===St.status),tt=D.operators.filter(St=>"DELETED"===St.status||"TERMINATED"===St.status);(_e.length>0||tt.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()):tt.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 tt="";this.commonService.setLoggedMemberId(tt),this.commonService.setLikedByMemberId(tt),this.commonService.setConversationId(tt),this.commonService.setChattingMemberId(tt),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 tt="";this.commonService.setLoggedMemberId(tt),this.commonService.setLikedByMemberId(tt),this.commonService.setConversationId(tt),this.commonService.setChattingMemberId(tt),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(tt=>{if(tt){let St=tt.acceptedRecord.likedTo;this.commonService.setChattingMemberId(St),this.conversationService.getConversationInfo(this.appId,this.loggedMemberId,St).subscribe(ri=>{if("Faild"==ri)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(oi=>{if(oi.message.status===z.Yg.SUB_RESPONSE){xi.unsubscribe();const bn=oi.message.data.data;bn.isError||"SUBSCRIBED"!=bn.subscriptionStatus?this.dataService.hideSpinner():(this.appUserDataService.updateMemberIfNotExists(),this.messageService.sendMessage({subscription:bn}),this.commonService.setConversationId(ri),this.dataService.hideSpinner(),this.router.navigate(["/chatTemplate/chat"]))}else this.dataService.hideSpinner()}),Si=new z.Mw;Si.status=z.Yg.SUB_REQUEST,this.subscriptionService.sendSubscriptionMessage({message:Si})}})}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 St="";this.commonService.setLoggedMemberId(St),this.commonService.setLikedByMemberId(St),this.commonService.setConversationId(St),this.commonService.setChattingMemberId(St),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}matchMember(D){const ae=this.subscriptionService.getSubscriptionMessage().subscribe(tt=>{if(tt.message.status!==z.Yg.SUB_RESPONSE||"ERROR"==tt.message.data.status)this.dataService.hideSpinner();else{ae.unsubscribe();const ri=tt.message.data.data;ri.isError||"SUBSCRIBED"!=ri.subscriptionStatus?this.dataService.hideSpinner():(this.appUserDataService.updateMemberIfNotExists(),this.messageService.sendMessage({subscription:tt.message.data.data}),this.memberMatchingContinue(D))}}),_e=new z.Mw;_e.status=z.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 tt="";this.commonService.setLoggedMemberId(tt),this.commonService.setLikedByMemberId(tt),this.commonService.setConversationId(tt),this.commonService.setChattingMemberId(tt),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 tt="";this.commonService.setLoggedMemberId(tt),this.commonService.setLikedByMemberId(tt),this.commonService.setConversationId(tt),this.commonService.setChattingMemberId(tt),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 tt="";this.commonService.setLoggedMemberId(tt),this.commonService.setLikedByMemberId(tt),this.commonService.setConversationId(tt),this.commonService.setChattingMemberId(tt),localStorage.removeItem("isUserLoggedIn"),this.router.navigate(["/chatTemplate/loginregistration"])}})}static#e=this.\u0275fac=function(ae){return new(ae||rt)(l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(I.V),l.\u0275\u0275directiveInject(le),l.\u0275\u0275directiveInject(Be),l.\u0275\u0275directiveInject(e.F0),l.\u0275\u0275directiveInject(F.pl),l.\u0275\u0275directiveInject(j),l.\u0275\u0275directiveInject(z.FF),l.\u0275\u0275directiveInject(Te.e),l.\u0275\u0275directiveInject(He),l.\u0275\u0275directiveInject(Mt.U))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:rt,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,Sn,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,N.S$,N.Qi,hr,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 rt})(),_n=(()=>{class rt{constructor(D,ae,_e,tt,St,ri,xi,Si,oi,bn){this.commonService=D,this.router=ae,this.dataService=_e,this.appuserdataService=tt,this.location=St,this.alertSnackBar=ri,this.chatService=xi,this.titleService=Si,this.subscriptionService=oi,this.messageService=bn,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(tt=>{tt&&(this.likedMember=tt)})}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===z.Yg.SUB_RESPONSE&&"ERROR"!=_e.message.data.status){D.unsubscribe();const St=_e.message.data.data;!St.isError&&"SUBSCRIBED"==St.subscriptionStatus&&(this.appuserdataService.updateMemberIfNotExists(),this.messageService.sendMessage({subscription:_e.message.data.data}),this.acceptRequestContinue())}}),ae=new z.Mw;ae.status=z.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||rt)(l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(e.F0),l.\u0275\u0275directiveInject(I.V),l.\u0275\u0275directiveInject(Be),l.\u0275\u0275directiveInject(n.Location),l.\u0275\u0275directiveInject(F.pl),l.\u0275\u0275directiveInject(j),l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(z.FF),l.\u0275\u0275directiveInject(Te.e))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:rt,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:[N.S$,N.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 rt})();function tr(rt,kt){if(1&rt&&(l.\u0275\u0275elementStart(0,"div",21)(1,"span",22)(2,"i"),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()()()),2&rt){const D=l.\u0275\u0275nextContext();l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1("*",D.errorMsg,"")}}let wi=(()=>{class rt{constructor(D,ae,_e,tt,St,ri,xi,Si){this.titleService=D,this.commonService=ae,this.router=_e,this.appUserDataService=tt,this.dataService=St,this.authService=ri,this.appDataService=xi,this.alertSnackBar=Si,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(bn=>{this.bannerUrl=bn}),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(tt=>{this.isValidUser=tt.status,this.isValidUser?(this.loggedMemberId=tt.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)),tt.userToken&&this.authService.setToken(tt.userToken),""!==tt.deviceUUID&&""!==tt.msisdn?localStorage.setItem("UUID",tt.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=tt.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||rt)(l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(e.F0),l.\u0275\u0275directiveInject(Be),l.\u0275\u0275directiveInject(I.V),l.\u0275\u0275directiveInject(f.e),l.\u0275\u0275directiveInject(Mt.U),l.\u0275\u0275directiveInject(F.pl))};static#t=this.\u0275cmp=l.\u0275\u0275defineComponent({type:rt,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(St){return _e.email=St}),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(St){return _e.password=St}),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,tr,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 tt=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",!tt.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,N.S$,N.Qi,N.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 rt})();var Ei,qi=a(3634),Zn=a(9792),zi=a(2037),Nn=a(9704),Rr=a(3048),Un=a(9209),Qn=a(7820);const mt=[{path:"",component:(()=>{class rt{static#e=this.PUSH_TOKEN_LOCAL_STORAGE_KEY="pushtoken";onScroll(){this.isInstallAvailable&&!this.ishidePopup&&$(".chat-pwa-install-modal").modal("show")}constructor(D,ae,_e,tt,St,ri,xi,Si,oi,bn,Gn,Vi,co,ve,pe,y,J,B){this.commonChatService=D,this.appUserDataService=ae,this.conversationService=_e,this.alertSnackBar=tt,this.dataService=St,this.categoryService=ri,this.device=xi,this.title=Si,this.push=oi,this.subscription=bn,this.appDataService=Gn,this.messageService=Vi,this.ngZone=co,this.preventScreenshot=ve,this.imageCacheService=pe,this.swPush=y,this.subscriptionService=J,this.router=B,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"),Ke=getComputedStyle(de).backgroundColor;if(Ke.includes("rgba")){let ft=`.snack-bar-bg { background-color: ${"rgb"+Ke.slice(4,Ke.lastIndexOf(","))+")"}}`,qt=document.createElement("style");qt.appendChild(document.createTextNode(ft)),document.getElementsByTagName("head")[0].appendChild(qt)}else{let Ve=`.snack-bar-bg { background-color: ${Ke}}`,ft=document.createElement("style");ft.appendChild(document.createTextNode(Ve)),document.getElementsByTagName("head")[0].appendChild(ft)}}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(tt=>"SUSPENDED"===tt.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:tt})=>{let St=tt.data;St.isnewMessageChatApp?this.openChatFromPushNotification(this.appId,St.fromMemberId,St.toMemberId):(this.dataService.pushMessage=tt.body,this.dataService.inAppNotificationInfo=tt.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(tt=>console.log(tt)),Ei.uuid=D,Ei.generatePushToken()}generatePushToken(){Ei.push.getToken(Ei.pushSuccessCallback,Ei.pushErrorCallback)}pushSuccessCallback(D){D&&null!==D?localStorage[rt.PUSH_TOKEN_LOCAL_STORAGE_KEY]=D:localStorage.removeItem(rt.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[rt.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(tt=>{if("Faild"==tt)this.alertSnackBar.open("Something went wrong!","Close",{duration:2e3,panelClass:["snack-bar-bg","main-content-font"],horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition});else{const St=this.subscriptionService.getSubscriptionMessage().subscribe(xi=>{if(xi.message.status===z.Yg.SUB_RESPONSE){St.unsubscribe();const Si=xi.message.data.data;!Si.isError&&"SUBSCRIBED"==Si.subscriptionStatus&&(this.appUserDataService.updateMemberIfNotExists(),this.messageService.sendMessage({subscription:""}),this.commonChatService.setConversationId(tt),this.router.navigate(["/chatTemplate/chat"]))}}),ri=new z.Mw;ri.status=z.Yg.SUB_REQUEST,this.subscriptionService.sendSubscriptionMessage({message:ri})}})}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||rt)(l.\u0275\u0275directiveInject(v.d),l.\u0275\u0275directiveInject(Be),l.\u0275\u0275directiveInject(He),l.\u0275\u0275directiveInject(F.pl),l.\u0275\u0275directiveInject(I.V),l.\u0275\u0275directiveInject(qi.G),l.\u0275\u0275directiveInject(Zn.G),l.\u0275\u0275directiveInject(C.y),l.\u0275\u0275directiveInject(zi.G),l.\u0275\u0275directiveInject(Nn.E),l.\u0275\u0275directiveInject(Mt.U),l.\u0275\u0275directiveInject(Te.e),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(Rr.W),l.\u0275\u0275directiveInject(Un.y),l.\u0275\u0275directiveInject(Qn.Mk),l.\u0275\u0275directiveInject(z.FF),l.\u0275\u0275directiveInject(e.F0))};static#i=this.\u0275cmp=l.\u0275\u0275defineComponent({type:rt,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 rt})(),children:[{path:"",redirectTo:"matchme",pathMatch:"full"},{path:"loginregistration",component:wi,canActivate:[d]},{path:"profile",component:wt,canActivate:[d]},{path:"matchme",component:Hn,canActivate:[d]},{path:"conversations",component:ht,canActivate:[d]},{path:"users",component:_n,canActivate:[d]},{path:"chat",component:W,canActivate:[d]},{path:"**",redirectTo:"crmHome"}]}];let ni=(()=>{class rt{static#e=this.\u0275fac=function(ae){return new(ae||rt)};static#t=this.\u0275mod=l.\u0275\u0275defineNgModule({type:rt});static#i=this.\u0275inj=l.\u0275\u0275defineInjector({imports:[e.Bz.forChild(mt),e.Bz]})}return rt})();var he=a(3668);let je=(()=>{class rt{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)((tt,St)=>{if(401===tt.status)return this.handleAuthError(),(0,x.of)(tt);throw tt}))}handleAuthError(){this.commonService.logOut()}static#e=this.\u0275fac=function(ae){return new(ae||rt)(l.\u0275\u0275inject(f.e),l.\u0275\u0275inject(v.d))};static#t=this.\u0275prov=l.\u0275\u0275defineInjectable({token:rt,factory:rt.\u0275fac})}return rt})();a(2687),a(9521),a(3353),a(2654);let zn=(()=>{class rt{}return rt.\u0275fac=function(D){return new(D||rt)},rt.\u0275mod=l.\u0275\u0275defineNgModule({type:rt}),rt.\u0275inj=l.\u0275\u0275defineInjector({imports:[n.CommonModule,It.BQ,It.BQ]}),rt})();var Sr=a(3683),sr=a(8455),Br=a(5754);a(7340);let to=(()=>{class rt{}return rt.\u0275fac=function(D){return new(D||rt)},rt.\u0275mod=l.\u0275\u0275defineNgModule({type:rt}),rt.\u0275inj=l.\u0275\u0275defineInjector({imports:[n.CommonModule,It.BQ,he.ZD,he.ZD,It.BQ]}),rt})();var Yn=a(9095),Bo=a(6255),mn=a(8014);let Kn=(()=>{class rt{static#e=this.\u0275fac=function(ae){return new(ae||rt)};static#t=this.\u0275mod=l.\u0275\u0275defineNgModule({type:rt});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,zn,Sr.g0,k.uw,K.x4,q.UX,sr.wp,N.IF,Br.Nn,br,to,pt.gR,me.yu,xe.Ps,he.Cl,ne.To,Yn.yj,F.y,Bo.jT,mn.t,ee.Zh]})}return rt})()},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,F,Z,le,q){this.http=j,this.sails=F,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,F){const q={loggedUser:j,isLoggedIn:F,expiry:(new Date).getTime()+432e5};localStorage.setItem(`chatLogin-${this.appId}`,JSON.stringify(q))}checkUserLoggedIn(){const F=localStorage.getItem(`chatLogin-${this.appId}`);if(!F)return!1;const Z=JSON.parse(F);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(F=>{F.initialRoute&&this.initialRoute.next(F.initialRoute)},F=>{console.log("err => ",F)})}getInitialRouteContinue(j){let F=new n.LE;return F=F.set("appId",j),this.http.get(`${this.commonServerUrl}/getInitialRoute`,{params:F}).pipe((0,l.K)(this.handleError(`Error on getting app settings:initialRoute. appId : ${j}`)))}getNotifications(j,F){const Z=`${this.chatUrl}/api/getNotifications`,le=this.authService.getToken();return this.sails.get(Z,{params:{appId:F,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,F){const Z=`${this.chatUrl}/api/matchMember`,le=this.authService.getToken();return this.sails.post(Z,{appId:this.appId,likedBy:F,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`,F=new n.LE;return F=F.set("loggedMemberId","unknownUser"==this.userId?"unknownMember":this.loggedMemberId),F=F.set("appId",this.appId),this.http.get(j,{params:F}).pipe((0,l.K)(this.handleError("Can not check user status.")))}checkRequestStatus(j,F){let Z=`${this.chatUrl}/api/checkRequestStatus`,le=new n.LE;return le=le.set("likedTo",F),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(F=>{F&&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 F=new n.LE;return F=F.set("chatUserId",j),this.sails.get(`${this.chatUrl}/getChatUserLoggedDeviceUUID`,{params:F}).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,F,Z){this.dataService.crmNoteTitle=j,this.dataService.crmNoteContent=F,this.dataService.crmLoginRouteEnabled=Z,window.focus(),$(()=>{$("#appStatusModel").modal("hide"),$("#chatWarnModal").modal("show"),$("#chatWarnModal").off("hidden.bs.modal")})}getImageUploadServerUrl(j,F){let Z=`${this.chatUrl}/api/getImageUploadServerUrl`,le=new n.LE;return le=le.set("appId",j),le=le.set("cmsUserId",F),this.http.get(Z,{params:le}).pipe((0,l.K)(this.handleError("Error in getting image uploading server url..")))}handleError(j="operation",F){return Z=>(console.error(Z),(0,o.of)(F))}logOut(){let F=localStorage.getItem(`chatLogin-${this.appId}`),Z=JSON.parse(F);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 F=`${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(F,{params:Z})}static#e=this.\u0275fac=function(F){return new(F||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,F)=>{g.RssData=F})}})()}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,I){1&f&&l.\u0275\u0275template(0,b,2,1,"ul",0),2&f&&l.\u0275\u0275property("ngIf",I.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,I){this.http=g,this.dataService=f,this.toastr=I,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 I=JSON.parse(f);return!!I.isLoggedIn&&((new Date).getTime()>I.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,I=new e.LE;I=I.set("appId",this.appId),I=I.set("crmUserId",this.crmUserID);const j=`${this.crmServerUrl}/checkCrmUserStatusAndAppStatus`;return g&&f?(0,n.of)(!0):this.http.get(j,{params:I}).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,I){this.dataService.crmNoteTitle=g,this.dataService.crmNoteContent=f,this.dataService.crmLoginRouteEnabled=I,this.showNotification()}showCrmError(g,f,I){this.dataService.crmNoteTitle=g,this.dataService.crmNoteContent=f,this.dataService.crmLoginRouteEnabled=I,this.showErrorMsg()}showToaster(g,f,I){let j={timeOut:5e3,positionClass:"toast-top-right",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"};I?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 I=>(console.error(I),(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:()=>jn});var n=a(6895),e=a(8729),o=a(4650),l=a(5114);let v=(()=>{class mt{constructor(he,je){this.commonInfoService=he,this.router=je}canActivate(he,je){let Ye=this.commonInfoService.checkUserLoggedIn();if(Ye)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),Ye}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||mt)(o.\u0275\u0275inject(l.E),o.\u0275\u0275inject(e.F0))};static#t=this.\u0275prov=o.\u0275\u0275defineInjectable({token:mt,factory:mt.\u0275fac,providedIn:"root"})}return mt})();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),I=a(9704),j=a(1086),F=a(529),Z=a(7221),le=a(8136);let q=(()=>{class mt{constructor(he){this.http=he,this.crmLoginUrl=`${le.L}/api`,this.appId=d.Jf,this.httpOptions={headers:new F.WM({"Content-Type":"application/json"})}}getCrmAppDetails(he,je){let Ye=new F.LE;return Ye=Ye.set("appId",he),Ye=Ye.set("cmsUserId",je),this.http.get(`${this.crmLoginUrl}/getCrmAppDetails`,{params:Ye}).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 Ye=>(console.error(Ye),(0,j.of)(je))}static#e=this.\u0275fac=function(je){return new(je||mt)(o.\u0275\u0275inject(F.eN))};static#t=this.\u0275prov=o.\u0275\u0275defineInjectable({token:mt,factory:mt.\u0275fac,providedIn:"root"})}return mt})();var N,X=a(3634),K=a(2037);let me=(()=>{class mt{static#e=this.PUSH_TOKEN_LOCAL_STORAGE_KEY="pushtoken";onScroll(){this.isInstallAvailable&&!this.ishidePopup&&$(".pwa-install-modal").modal("show")}constructor(he,je,Ye,At,ci,Wi,ln,en,$n,Dn,Ro,Ri,Cn,hn){this.commonInfoService=he,this.dataService=je,this.device=Ye,this.title=At,this.appDataService=ci,this.preventScreenshot=Wi,this.imageCacheService=ln,this.swPush=en,this.subscription=$n,this.loginPageService=Dn,this.categoryService=Ro,this.push=Ri,this.ngZone=Cn,this.router=hn,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),N=this,this.title.setLocation("crm_parent"),window.addEventListener("beforeinstallprompt",pr=>{this.promptEvent=pr,this.isInstallAvailable=!0}),window.addEventListener("appinstalled",()=>{this.isInstallAvailable=!1,this.hidePopup()}),this.dataService.initialImageCount=0,this.dataService.hideImageLoadingSpinner(),this.title.getLocation().subscribe(pr=>{this.ishidePopupPath=pr.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="+N.dataService.getAPKVersion(window.navigator.userAgent),N.categoryService.sendDeviceToken(he).subscribe(je=>{N.callOnNotificationOpen()},je=>{console.log("Error while sending the device token to be persist.Error: "+je),N.callOnNotificationOpen()})}catch(je){console.log("Exception in pushSuccessCallback: "+je)}}pushSuccessCallback(he){he&&null!==he?localStorage[mt.PUSH_TOKEN_LOCAL_STORAGE_KEY]=he:localStorage.removeItem(mt.PUSH_TOKEN_LOCAL_STORAGE_KEY),N.push.onTokenRefresh(N.pushTokenRefreshSuccessCallback,N.pushTokenRefreshErrorCallback),N.postDeviceToken("deviceId="+he+"&uuid="+N.uuid)}pushErrorCallback(he){console.log("pushErrorCallback: "+he)}pushTokenRefreshSuccessCallback(he){localStorage[mt.PUSH_TOKEN_LOCAL_STORAGE_KEY]!==he&&N.postDeviceToken("deviceId="+he+"&uuid="+N.uuid+"&action=NEW_TOKEN")}pushTokenRefreshErrorCallback(he){console.log("pushTokenRefreshErrorCallback: "+he)}generatePushToken(){N.push.getToken(N.pushSuccessCallback,N.pushErrorCallback)}onNotificationOpenSuccessCallback(he){N.isFromPushMessage=!0,!he.tap&&he.body&&(N.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()?N.push.onNotificationOpen(N.onNotificationOpenSuccessCallback,N.onNotificationOpenErrorCallback):window.FirebasePlugin.onMessageReceived(function(he){N.ngZone.run(()=>{N.onNotificationOpenSuccessCallback(he)})},function(he){N.onNotificationOpenErrorCallback(he)})}deviceUUIDCallback(he){!localStorage.getItem(N.localStorageUUIDString)&&he&&localStorage.setItem(N.localStorageUUIDString,he),N.subscription.getSubscriptionStatus({appId:N.appId,uuId:he}).subscribe(At=>{}),N.uuid=he,N.generatePushToken()}getDeviceUUID(){var he=localStorage.getItem(this.localStorageUUIDString);this.dataService.isFromBrowser()?(he||(he=this.dataService.getRandomId(),localStorage.setItem(N.localStorageUUIDString,he)),N.uuid=he):this.dataService.isIonicApp()?he?this.deviceUUIDCallback(he):this.device.getUUID(N.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||mt)(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(I.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:mt,selectors:[["app-crm-template"]],hostBindings:function(je,Ye){1&je&&o.\u0275\u0275listener("scroll",function(){return Ye.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,Ye){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 Ye.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 Ye.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 mt})();var xe=a(4006),ne=a(8377),Qe=a(2042),Oe=a(9818);let nt=(()=>{class mt{constructor(he,je,Ye,At,ci,Wi){this.titleService=he,this.loginPageService=je,this.commonInfoService=Ye,this.router=At,this.dataService=ci,this.location=Wi,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 Ye=this.commonInfoService.checkIsFromCmsView(),At=d.Bv;"unknownUser"!=this.userId?this.loginPageService.getCrmAppDetails(this.appId,this.userId).subscribe(ci=>{this.hasAppApproved=ci.hasAppApproved,this.initialData=ci.appdata,localStorage.setItem("appData",JSON.stringify(this.initialData)),this.appId=this.initialData.id,localStorage.setItem("appId",this.appId);let Wi=he.toLowerCase();this.hasAppApproved||Ye&&"Crm"==At||"CrmV2"==At?this.loginPageService.getCrmUser(Wi,je).subscribe(ln=>{this.crmUser=ln,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||mt)(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:mt,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,Ye){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(ci){return Ye.email=ci}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(12,"div",7)(13,"input",9),o.\u0275\u0275listener("ngModelChange",function(ci){return Ye.password=ci}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(14,"div")(15,"button",10),o.\u0275\u0275listener("click",function(){return Ye.loginInfo(Ye.email,Ye.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",Ye.logoUrl,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(7,5,Ye.initialData.appName)),o.\u0275\u0275advance(5),o.\u0275\u0275property("ngModel",Ye.email),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngModel",Ye.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,Qe.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 mt})();var Je=a(9095);let ct=(()=>{class mt{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 F.WM({"Content-Type":"application/json"})}}showCustomerInfo(he){const je=`${this.crmServerUrl}/getOneCustomer`;let Ye=(new F.LE).set("cstmrId",he).set("cmsUserId",this.cmsUserId);return this.http.get(je,{params:Ye}).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 Ye=(new F.LE).set("cstmrId",he).set("cmsUserId",this.cmsUserId).set("appIdForCrm",this.appId).set("crmUserId",this.crmUserId);return this.http.get(je,{params:Ye}).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}`,Ye=new FormData;Ye.append("file",he),Ye.append("fileName",he.name);const At=new F.WM({enctype:"multipart/form-data"});return this.http.post(je,Ye,{headers:At})}addNewFiles(he){const je=`${le.L}/edit/uploadFile/${this.appId}/${this.cmsUserId}`,Ye=new FormData;he.forEach((ci,Wi)=>{Ye.append("file",ci),Ye.append("fileName",ci.name)});const At=new F.WM({enctype:"multipart/form-data"});return this.http.post(je,Ye,{headers:At})}addNewCustomer(he,je,Ye){return this.http.post(`${this.crmServerUrl}/createNewCustomer/${je}`,{customerInfo:he,appId:Ye},this.httpOptions).pipe((0,Z.K)(this.handleError(`Error create new customer - Customer id : ${he}`)))}updateCustomer(he,je){for(let ci of he)delete ci.id,delete ci.isDeleted,delete ci.appFormFields;let Ye=he;return this.http.put(`${this.crmServerUrl}/updateCustomerData/${je}`,Ye,this.httpOptions).pipe((0,Z.K)(this.handleError(`Error Updating customer - Customer id : ${Ye}`)))}addNote(he,je,Ye){return this.http.post(`${this.crmServerUrl}/addNewNote`,{comment:he.comment,fileNames:he.uploadedFiles,appFormData:je,commentedBy:Ye,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 Ye=>(console.error(Ye),(0,j.of)(je))}static#e=this.\u0275fac=function(je){return new(je||mt)(o.\u0275\u0275inject(F.eN))};static#t=this.\u0275prov=o.\u0275\u0275defineInjectable({token:mt,factory:mt.\u0275fac,providedIn:"root"})}return mt})();function ot(mt,ni){if(1&mt){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",9),o.\u0275\u0275listener("click",function(){const At=o.\u0275\u0275restoreView(he).$implicit,ci=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(ci.downloadAllFiles(At))}),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()}if(2&mt){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(he.name)}}function dt(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,ot,2,1,"button",8),o.\u0275\u0275elementEnd()),2&mt){const he=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",he.fileNames)}}const Vt=".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 mt{constructor(he,je,Ye,At,ci,Wi,ln){this.titleService=he,this.dialog=je,this.customerInfoService=Ye,this.commonInfoService=At,this.location=ci,this.router=Wi,this.dataService=ln,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(Ye=>{Ye?(console.log(Ye,"trackedNote"),this.noteObj=Ye,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 Ye=new Blob([je],{type:je.type}),At=document.createElement("a");At.href=window.URL.createObjectURL(Ye),At.download=he.name,document.body.appendChild(At),At.click(),document.body.removeChild(At)},je=>{console.error("Download error:",je)})}saveFile(he,je){const Ye=window.URL.createObjectURL(he),At=document.createElement("a");At.href=Ye,At.download=je,document.body.appendChild(At),At.click(),window.URL.revokeObjectURL(Ye),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(Ye=>{Ye?(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||mt)(o.\u0275\u0275directiveInject(C.y),o.\u0275\u0275directiveInject(Je.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:mt,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,Ye){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 Ye.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,Ye.noteObj.createdAt,"yyyy/MM/dd")),o.\u0275\u0275advance(7),o.\u0275\u0275textInterpolate(Ye.noteObj.comment),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Ye.fileNamesLength>0))},dependencies:[n.NgForOf,n.NgIf,ne.S$,ne.Qi,Oe.eB,n.DatePipe],styles:[Vt]})}return mt})(),ti=(()=>{class mt{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||mt)(o.\u0275\u0275directiveInject(Je.hV),o.\u0275\u0275directiveInject(Je.eJ))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:mt,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,Ye){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 Ye.afterClosed(Ye.data.id)}),o.\u0275\u0275text(4," Yes "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"button",3),o.\u0275\u0275listener("click",function(){return Ye.onNoClick()}),o.\u0275\u0275text(6,"No"),o.\u0275\u0275elementEnd()())},styles:[Vt]})}return mt})();var mi=a(8249),Yt=a(9349);const Jt=["addnotetextarea"],lt=["notefileInput"],_t=["uploadBtn"];function Fe(mt,ni){1&mt&&(o.\u0275\u0275elementStart(0,"p",15),o.\u0275\u0275text(1,"No Files Selected"),o.\u0275\u0275elementEnd())}function Ae(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&mt){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(he)}}function W(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"p",16),o.\u0275\u0275template(1,Ae,2,1,"span",17),o.\u0275\u0275elementEnd()),2&mt){const he=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",he.fileNames)}}let z=(()=>{class mt{ngAfterViewInit(){this.noteTextArea.nativeElement.focus()}constructor(he,je,Ye,At,ci,Wi){this.dialog=he,this.titleService=je,this.customerInfoService=Ye,this.commonInfoService=At,this.router=ci,this.dataService=Wi,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(Ye=>{console.log("The dialog was closed result",Ye),this.confirmation=Ye,this.confirmation&&this.addNote(this.confirmation.note)})}addNote(he){let je={comment:he,uploadedFiles:this.uploadedFileUrls,signedUrls:this.signedUrls};this.commonInfoService.checkCrmUserStatusAndAppStatus().subscribe(Ye=>{Ye?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 Ye of this.selectedFiles){if(Ye.size>this.maxFileSize)return console.log(`File size: ${Ye.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: ${Ye.size} bytes`)}if(this.selectedFiles.length>0){const Ye=new FormData;this.selectedFiles.forEach((At,ci)=>{Ye.append(`file${ci}`,At)}),this.customerInfoService.addNewFiles(Ye).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,Ye){this.commonInfoService.showToaster(he,je,Ye)}goBack(){"v2"===this.templateVersion&&this.router.navigate(["crm/contactDetailsPage"])}static#e=this.\u0275fac=function(je){return new(je||mt)(o.\u0275\u0275directiveInject(Je.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:mt,selectors:[["app-add-note-page"]],viewQuery:function(je,Ye){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())&&(Ye.noteTextArea=At.first),o.\u0275\u0275queryRefresh(At=o.\u0275\u0275loadQuery())&&(Ye.notefileInput=At.first),o.\u0275\u0275queryRefresh(At=o.\u0275\u0275loadQuery())&&(Ye.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,Ye){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 Ye.addNote(Ye.note)}),o.\u0275\u0275text(8," DONE "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(9,"div",5)(10,"textarea",6,7),o.\u0275\u0275listener("ngModelChange",function(Wi){return Ye.note=Wi}),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 Wi=o.\u0275\u0275reference(18);return o.\u0275\u0275resetView(Wi.click())}),o.\u0275\u0275text(16,"Upload File"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(17,"input",11,12),o.\u0275\u0275listener("change",function(Wi){return Ye.onFilesSelected(Wi)}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(19,Fe,2,0,"p",13),o.\u0275\u0275template(20,W,2,1,"p",14),o.\u0275\u0275elementEnd()()()()()}2&je&&(o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind2(6,5,Ye.today,"yyyy/MM/dd")),o.\u0275\u0275advance(2),o.\u0275\u0275property("disabled",!Ye.note),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngModel",Ye.note),o.\u0275\u0275advance(9),o.\u0275\u0275property("ngIf",0==Ye.trackFileUpload),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",0!=Ye.trackFileUpload))},dependencies:[n.NgForOf,n.NgIf,xe.Fj,xe.JJ,xe.Q7,xe.nD,ne.S$,ne.Qi,Yt.IC,Qe.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 mt})();var He=a(2413);function Te(mt,ni){if(1&mt&&o.\u0275\u0275element(0,"img",8),2&mt){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("src",he.imageField.fieldValues.value,o.\u0275\u0275sanitizeUrl)}}function Be(mt,ni){1&mt&&o.\u0275\u0275element(0,"br")}function pt(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div",9),o.\u0275\u0275element(1,"img",10),o.\u0275\u0275elementEnd()),2&mt){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275property("src",he.imageField.fieldValues.value,o.\u0275\u0275sanitizeUrl)}}function Pe(mt,ni){if(1&mt){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",11)(1,"label")(2,"input",12),o.\u0275\u0275listener("change",function(Ye){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(At.addImageToPwa(Ye))}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"span",13),o.\u0275\u0275text(4,"Add Image"),o.\u0275\u0275elementEnd()()()}}function Xe(mt,ni){if(1&mt){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",14),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Ye=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(Ye.addImageToApk())}),o.\u0275\u0275elementStart(1,"span",15),o.\u0275\u0275text(2,"Add Image"),o.\u0275\u0275elementEnd()()}}function ht(mt,ni){if(1&mt&&(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,pt,2,1,"div",4),o.\u0275\u0275elementStart(4,"div",5),o.\u0275\u0275template(5,Pe,5,0,"button",6),o.\u0275\u0275template(6,Xe,3,0,"button",7),o.\u0275\u0275elementEnd()()),2&mt){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 ee(mt,ni){if(1&mt&&o.\u0275\u0275element(0,"img",8),2&mt){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("src",he.imageField.fieldValues.value,o.\u0275\u0275sanitizeUrl)}}function k(mt,ni){if(1&mt&&o.\u0275\u0275element(0,"img",17),2&mt){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("src",he.imageField.fieldValues.value,o.\u0275\u0275sanitizeUrl)}}function R(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,ee,1,1,"img",3),o.\u0275\u0275template(2,k,1,1,"img",16),o.\u0275\u0275elementEnd()),2&mt){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 mt{constructor(he,je,Ye,At,ci){this.dataService=he,this.commonInfoService=je,this.router=Ye,this.cameraService=At,this.ngZone=ci,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 Ye=je.split("thirdNavi/")[1];(!Ye||"undefined"==Ye||"null"==Ye)&&(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 Ye=new FileReader;Ye.readAsDataURL(he.target.files[0]),Ye.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||mt)(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:mt,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,Ye){1&je&&(o.\u0275\u0275template(0,ht,7,5,"div",0),o.\u0275\u0275template(1,R,3,2,"div",1)),2&je&&(o.\u0275\u0275property("ngIf",Ye.imageField&&!Ye.onlyShowImage),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Ye.imageField&&Ye.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 mt})();function qe(mt,ni){if(1&mt){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",2)(1,"input",3),o.\u0275\u0275listener("ngModelChange",function(Ye){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(At.inputField.fieldValues.value=Ye)}),o.\u0275\u0275elementEnd()()}if(2&mt){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(mt,ni){if(1&mt){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div")(1,"input",4),o.\u0275\u0275listener("ngModelChange",function(Ye){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(At.inputField.fieldValues.value=Ye)}),o.\u0275\u0275elementEnd()()}if(2&mt){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 fe=(()=>{class mt{constructor(){this.isRequiredField=!1}ngOnChanges(he){if(this.inputField&&this.inputField.appFormFields.isRequired){this.isRequiredField=this.inputField.appFormFields.isRequired;let ci=this.inputField.appFormFields.lable.toLowerCase().trim().replace(" ","_");this.formCtrlName=ci}}static#e=this.\u0275fac=function(je){return new(je||mt)};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:mt,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,Ye){1&je&&(o.\u0275\u0275template(0,qe,2,7,"div",0),o.\u0275\u0275template(1,Ue,2,5,"div",1)),2&je&&(o.\u0275\u0275property("ngIf",Ye.inputField&&Ye.isRequiredField),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Ye.inputField&&!Ye.isRequiredField))},dependencies:[n.NgIf,xe.Fj,xe.JJ,xe.JL,xe.Q7,xe.sg,xe.u,Qe.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 mt})();var ke=a(6289),gt=a(4363);function Tt(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"mat-option",5),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&mt){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(mt,ni){if(1&mt){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",2)(1,"mat-select",3),o.\u0275\u0275listener("ngModelChange",function(Ye){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(At.field.fieldValues.value=Ye)}),o.\u0275\u0275template(2,Tt,2,6,"mat-option",4),o.\u0275\u0275elementEnd()()}if(2&mt){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(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"mat-option",5),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&mt){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(mt,ni){if(1&mt){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div")(1,"mat-select",6),o.\u0275\u0275listener("ngModelChange",function(Ye){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(At.field.fieldValues.value=Ye)}),o.\u0275\u0275template(2,st,2,6,"mat-option",4),o.\u0275\u0275elementEnd()()}if(2&mt){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 mt{constructor(){this.isRequiredField=!1}ngOnChanges(he){if(this.field&&this.field.appFormFields.isRequired){this.isRequiredField=this.field.appFormFields.isRequired;let ci=this.field.appFormFields.lable.toLowerCase().trim().replace(" ","_");this.formCtrlName=ci}}static#e=this.\u0275fac=function(je){return new(je||mt)};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:mt,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,Ye){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",Ye.field&&Ye.isRequiredField),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Ye.field&&!Ye.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 mt})();function Lt(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"app-profile-image",7),o.\u0275\u0275elementEnd()),2&mt){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(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Lt,2,3,"div",3),o.\u0275\u0275elementEnd()),2&mt){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","Image"==he.appFormFields.feFormFieldType.type&&!he.appFormFields.isDeleted)}}function ai(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"app-input-text",9)(2,"br"),o.\u0275\u0275elementEnd()),2&mt){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(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"app-input-select",10)(2,"br"),o.\u0275\u0275elementEnd()),2&mt){const he=o.\u0275\u0275nextContext().$implicit,je=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(1),o.\u0275\u0275property("parentForm",je.parentForm)("field",he)}}function di(mt,ni){if(1&mt){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",11)(1,"button",12),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Ye=o.\u0275\u0275reference(6);return o.\u0275\u0275resetView(Ye.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(Ye){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext(5);return o.\u0275\u0275resetView(At.onFileSelected(Ye))}),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(7,"br"),o.\u0275\u0275elementEnd()}if(2&mt){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(mt,ni){if(1&mt&&(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,di,8,6,"div",8),o.\u0275\u0275elementEnd()),2&mt){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(mt,ni){if(1&mt){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 Ye=o.\u0275\u0275nextContext(3);return o.\u0275\u0275resetView(Ye.saveCustomerInfo(Ye.fieldList))}),o.\u0275\u0275text(6," DONE "),o.\u0275\u0275elementEnd()()()}if(2&mt){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 Qt(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Ut,7,5,"div",3),o.\u0275\u0275elementEnd()),2&mt){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",he.fieldList)}}function Ci(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"app-profile-image",7),o.\u0275\u0275elementEnd()),2&mt){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(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Ci,2,3,"div",3),o.\u0275\u0275elementEnd()),2&mt){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","Image"==he.appFormFields.feFormFieldType.type&&!he.appFormFields.isDeleted)}}function pi(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"app-input-text",9)(2,"br"),o.\u0275\u0275elementEnd()),2&mt){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(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"app-input-select",10)(2,"br"),o.\u0275\u0275elementEnd()),2&mt){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(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&mt){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(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&mt){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(mt,ni){if(1&mt){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",17)(1,"button",18),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Ye=o.\u0275\u0275reference(7);return o.\u0275\u0275resetView(Ye.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(Ye){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext(5);return o.\u0275\u0275resetView(At.onFileSelected(Ye))}),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(8,"br"),o.\u0275\u0275elementEnd()}if(2&mt){const he=o.\u0275\u0275reference(5),je=o.\u0275\u0275nextContext().$implicit,Ye=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",Ye.parentForm)("name",je.appFormFields.lable)("inputField",je)("value",je.fieldValues.value)}}function Ee(mt,ni){if(1&mt&&(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&mt){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(mt,ni){if(1&mt){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 Ye=o.\u0275\u0275nextContext(3);return o.\u0275\u0275resetView(Ye.saveCustomerInfo(Ye.fieldList))}),o.\u0275\u0275text(6," DONE "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(7,"br"),o.\u0275\u0275elementEnd()}if(2&mt){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(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Re,8,5,"div",3),o.\u0275\u0275elementEnd()),2&mt){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",he.fieldList)}}function xt(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"mat-card-content",2),o.\u0275\u0275template(1,Qt,2,1,"div",3),o.\u0275\u0275template(2,We,2,1,"div",3),o.\u0275\u0275elementEnd()),2&mt){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 Wt=(()=>{class mt{constructor(he,je,Ye,At,ci,Wi,ln,en,$n){this.dialog=he,this.titleService=je,this.customerInfoService=Ye,this.commonInfoService=At,this.router=ci,this.fb=Wi,this.dataService=ln,this.cameraService=en,this.location=$n,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(Ye=>{console.log("The dialog was closed result",Ye),this.confirmation=Ye,this.confirmation&&this.saveCustomerInfo(this.confirmation)})}getAppFormFields(he){this.customerInfoService.getAppFormFields(he).subscribe(je=>{let Ye=je.pop();this.isEdit=Ye.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 Ye=je.pop();this.isEdit=Ye.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 ci=je.value.replace(/^C:\\fakepath\\/,"");this.fileNameFromInput=ci}let Ye=he.target.name;this.inputNameOfBtn=Ye,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((ci,Wi)=>{At.append(`file${Wi}`,ci)}),this.customerInfoService.addNewFiles(At).subscribe(ci=>{let Wi=this.uploadedFileUrls.find($n=>$n.name===Ye),ln=this.signedUrls.find($n=>$n.name===Ye);Wi?(Wi.url=ci.fileUrl,ln.url=ci.signedUrl):(this.trackFileUpload=this.trackFileUpload+this.signedUrls.length,this.uploadedFileUrls.push({name:Ye,url:ci.fileUrl}),this.signedUrls.push({name:Ye,url:ci.signedUrl}));let en=this.getFileNameFromUrl(ci.fileUrl);this.trackFileUpload++,Ye?(en==this.fileNameFromInput&&this.isEdit&&(this.isEditEnabled=!0),this.uploadFileMessages[Ye]=en):this.uploadedFileUrls.forEach($n=>{$n.name===Ye&&(this.uploadFileMessages[Ye]=$n.url)})},ci=>{console.error("Error uploading files",ci)})}}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,Ye){this.commonInfoService.showToaster(he,je,Ye)}saveCustomerInfo(he){this.newDataArr=he;for(let je of this.newDataArr)if("File"==je.appFormFields.feFormFieldType.type)if(this.matchedFile=this.uploadedFileUrls.find(Ye=>Ye.name===je.appFormFields.lable),this.matchedFile){const Ye=this.signedUrls.find(At=>At.name===je.appFormFields.lable);je.fieldValues.value=Ye?{files:{unsignedUrl:this.matchedFile.url,signedUrl:Ye.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 Ye of this.newDataArr)if("Image"==Ye.appFormFields.feFormFieldType.type&&!Ye.appFormFields.isDeleted)if(this.imageInfo=Ye.addedEvent,this.imageInfo)this.isCordovaApp?this.addImageInApk(Ye):this.addImageInPwa(Ye);else{let At=Ye.fieldValues.value.split("thirdNavi/")[1];Ye.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(Ye=>{he.fieldValues.value=Ye,this.isEdit?this.updateCustomer(this.newDataArr):this.addNewCustomer(this.newDataArr)})}addImageInApk(he){this.cameraService.uploadImageInApk(he.fieldValues.value,this.appId,this.userId).subscribe(Ye=>{he.fieldValues.value=Ye,this.isEdit?this.updateCustomer(this.newDataArr):this.addNewCustomer(this.newDataArr)},Ye=>{console.log("Error : ",Ye),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||mt)(o.\u0275\u0275directiveInject(Je.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:mt,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,Ye){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",!Ye.isLoading))},dependencies:[n.NgClass,n.NgForOf,n.NgIf,xe._Y,xe.JL,xe.sg,ne.S$,ne.Qi,Oe.eB,be,fe,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 mt})();var wt=a(7392),Mt=a(9982);let It=(()=>{class mt{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||mt)};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:mt,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,Ye){1&je&&(o.\u0275\u0275elementStart(0,"input",0),o.\u0275\u0275listener("ngModelChange",function(ci){return Ye.search=ci})("ngModelChange",function(ci){return Ye.changeString(ci)}),o.\u0275\u0275elementEnd()),2&je&&o.\u0275\u0275property("ngModel",Ye.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 mt})();var se=a(3189);function we(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"mat-card-subtitle",20),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&mt){const he=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",he.value," ")}}function Le(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"a",21),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&mt){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 Se(mt,ni){if(1&mt&&(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&mt){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(mt,ni){if(1&mt){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",24),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Ye=o.\u0275\u0275nextContext().$implicit,At=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(At.showViewNotePage(Ye.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&mt){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(mt,ni){if(1&mt&&(o.\u0275\u0275elementStart(0,"mat-action-list",22),o.\u0275\u0275template(1,Ot,7,9,"button",23),o.\u0275\u0275elementEnd()),2&mt){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!he.isDeleted)}}function bt(mt,ni){if(1&mt){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 Ye=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Ye.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,Se,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(Ye){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(At.changeSearchingValue(Ye))}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(17,"div",13)(18,"button",14),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Ye=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Ye.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&mt){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 Pt=(()=>{class mt{constructor(he,je,Ye,At,ci,Wi){this.titleService=he,this.customerInfoService=je,this.commonInfoService=Ye,this.router=At,this.dataService=ci,this.location=Wi,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(Ye=>{this.customerInfo=Ye.appFormFieldData,this.customerNotes=Ye.crmUserNotes,this.customerFullName=Ye.fullName,this.customerProfImage=Ye.profileImage,this.isShowProfile=Ye.isShowProfile,this.onlyShowImage=!0,this.isLoading=this.isEmpty(Ye)}):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||mt)(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:mt,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,Ye){1&je&&o.\u0275\u0275template(0,bt,24,9,"mat-card",0),2&je&&o.\u0275\u0275property("ngIf",!Ye.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 mt})(),ii=(()=>{class mt{constructor(he){this.http=he,this.crmServerUrl=`${le.L}/api`,this.appId=d.Jf,this.cmsUserId=d.xS,this.httpOptions={headers:new F.WM({"Content-Type":"application/json"})}}loggedCrmUser(he,je){const Ye=`${this.crmServerUrl}/loggedCrmUser`;let At=(new F.LE).set("userId",he).set("appId",je).set("cmsUserId",this.cmsUserId);return this.http.get(Ye,{params:At}).pipe((0,Z.K)(this.handleError(`Error getCrmUser id : ${he}`)))}getCustomerList(he,je){const Ye=`${this.crmServerUrl}/getAllCustomerNames`;let At=(new F.LE).set("userId",he).set("appId",je);return this.http.get(Ye,{params:At}).pipe((0,Z.K)(this.handleError("Error getCustomer",[])))}handleError(he="operation",je){return Ye=>(console.error(Ye),(0,j.of)(je))}static#e=this.\u0275fac=function(je){return new(je||mt)(o.\u0275\u0275inject(F.eN))};static#t=this.\u0275prov=o.\u0275\u0275defineInjectable({token:mt,factory:mt.\u0275fac,providedIn:"root"})}return mt})();function Ki(mt,ni){if(1&mt){const he=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",15),o.\u0275\u0275listener("click",function(){const At=o.\u0275\u0275restoreView(he).$implicit,ci=o.\u0275\u0275nextContext(3);return o.\u0275\u0275resetView(ci.viewCustomerDetailsPage(At.appFormDataId))}),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()}if(2&mt){const he=ni.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",he.value," ")}}function On(mt,ni){if(1&mt&&(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&mt){const he=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(2),o.\u0275\u0275property("ngForOf",o.\u0275\u0275pipeBind2(3,1,he.crmCustomers,he.searchCustomer))}}function nr(mt,ni){if(1&mt){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(Ye){o.\u0275\u0275restoreView(he);const At=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(At.changeSearchingValue(Ye))}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(15,"div",10)(16,"button",11),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(he);const Ye=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Ye.viewAddCustomerPage())}),o.\u0275\u0275elementStart(17,"mat-icon",12),o.\u0275\u0275text(18,"add"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275template(19,On,4,4,"div",13),o.\u0275\u0275elementEnd()()}if(2&mt){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 vr=[{path:"",component:me,children:[{path:"",redirectTo:"crmHome",pathMatch:"full"},{path:"loginPage",component:nt,canActivate:[v]},{path:"crmHome",component:(()=>{class mt{constructor(he,je,Ye,At,ci){this.titleService=he,this.homePageService=je,this.commonInfoService=Ye,this.router=At,this.dataService=ci,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(Ye=>{this.crmUser=Ye,this.onlyShowImage=Ye.onlyShowImage,this.isLoading=this.isEmpty(Ye),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||mt)(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:mt,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,Ye){1&je&&o.\u0275\u0275template(0,nr,20,7,"mat-card",0),2&je&&o.\u0275\u0275property("ngIf",!Ye.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 mt})(),canActivate:[v]},{path:"contactPage",component:(()=>{class mt{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||mt)(o.\u0275\u0275directiveInject(q),o.\u0275\u0275directiveInject(l.E))};static#t=this.\u0275cmp=o.\u0275\u0275defineComponent({type:mt,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,Ye){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",Ye.logoUrl,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(7,6,Ye.crmAppName)),o.\u0275\u0275advance(3),o.\u0275\u0275propertyInterpolate1("href","mailto:",Ye.email,"",o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(Ye.email),o.\u0275\u0275advance(2),o.\u0275\u0275propertyInterpolate("href","tel:"+Ye.phoneNumber,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(Ye.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 mt})(),canActivate:[v]},{path:"contactDetailsPage",component:Pt,canActivate:[v]},{path:"addNotePage",component:z,canActivate:[v]},{path:"viewNotePage",component:zt,canActivate:[v]},{path:"customerAddEditPage",component:Wt,canActivate:[v]},{path:"**",redirectTo:"crmHome"}]}];let ur=(()=>{class mt{static#e=this.\u0275fac=function(je){return new(je||mt)};static#t=this.\u0275mod=o.\u0275\u0275defineNgModule({type:mt});static#i=this.\u0275inj=o.\u0275\u0275defineInjector({imports:[e.Bz.forChild(vr),e.Bz]})}return mt})();var Yi=a(3683),wn=a(1281),Rn=a(3353),Fn=a(3668),Mi=a(3238);const Bn=new o.InjectionToken("mat-progress-spinner-default-options",{providedIn:"root",factory:function bi(){return{diameter:gi}}}),gi=100;var tr=a(2654);function wi(mt,ni){if(1&mt&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275element(0,"circle",4)),2&mt){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(mt,ni){if(1&mt&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275element(0,"circle",4)),2&mt){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 Nn=(0,Mi.pj)(class{constructor(mt){this._elementRef=mt}},"primary");class Un extends Nn{get diameter(){return this._diameter}set diameter(ni){this._diameter=(0,wn.su)(ni),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(ni){this._strokeWidth=(0,wn.su)(ni)}get value(){return"determinate"===this.mode?this._value:0}set value(ni){this._value=Math.max(0,Math.min(100,(0,wn.su)(ni)))}constructor(ni,he,je,Ye,At,ci,Wi,ln){super(ni),this._document=je,this._diameter=100,this._value=0,this._resizeSubscription=tr.w.EMPTY,this.mode="determinate";const en=Un._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),en.has(je.head)||en.set(je.head,new Set([100])),this._noopAnimations="NoopAnimations"===Ye&&!!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&&Wi&&ci&&ln&&(this._resizeSubscription=Wi.change(150).subscribe(()=>{"indeterminate"===this.mode&&ln.run(()=>ci.markForCheck())}))}ngOnInit(){const ni=this._elementRef.nativeElement;this._styleRoot=(0,Rn.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=Un._diameters;let Ye=je.get(ni);if(!Ye||!Ye.has(he)){const At=this._document.createElement("style");At.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),At.textContent=this._getAnimationText(),ni.appendChild(At),Ye||(Ye=new Set,je.set(ni,Ye)),Ye.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(".","_")}}Un._diameters=new WeakMap,Un.\u0275fac=function(ni){return new(ni||Un)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(Rn.t4),o.\u0275\u0275directiveInject(n.DOCUMENT,8),o.\u0275\u0275directiveInject(o.ANIMATION_MODULE_TYPE,8),o.\u0275\u0275directiveInject(Bn),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(Fn.rL),o.\u0275\u0275directiveInject(o.NgZone))},Un.\u0275cmp=o.\u0275\u0275defineComponent({type:Un,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,wi,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 Qn=(()=>{class mt{}return mt.\u0275fac=function(he){return new(he||mt)},mt.\u0275mod=o.\u0275\u0275defineNgModule({type:mt}),mt.\u0275inj=o.\u0275\u0275defineInjector({imports:[Mi.BQ,n.CommonModule,Mi.BQ]}),mt})(),jn=(()=>{class mt{static#e=this.\u0275fac=function(je){return new(je||mt)};static#t=this.\u0275mod=o.\u0275\u0275defineNgModule({type:mt});static#i=this.\u0275inj=o.\u0275\u0275defineInjector({imports:[n.CommonModule,ur,xe.UX,ne.IF,Qe.x4,xe.u5,Oe.yu,F.JF,Yi.g0,wt.Ps,Mt.gR,se.h,Je.yj,ke.uw,Qn]})}return mt})()},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 Se{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 bt=`${this.server_Url}/getOneCustomer`;let Pt=(new b.LE).set("cstmrId",Me).set("cmsUserId",this.cmsUserId);return this.http.get(bt,{params:Pt}).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 bt=`${this.server_Url}/getCustomerFormFields`;let Pt=(new b.LE).set("cstmrId",Me).set("cmsUserId",this.cmsUserId);return this.http.get(bt,{params:Pt}).pipe((0,C.K)(this.handleError(`Error getFieldsInfo - Customer id : ${Me}`)))}addOrEditUser(Me){return this.http.post(`${this.server_Url}/addOrEditUser`,Me)}getLatestJobs(Me,bt){return this.http.get(`${this.server_Url}/getLatestJobs/${Me}/${bt}`)}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",bt){return Pt=>(console.error(Pt),(0,u.of)(bt))}static#e=this.\u0275fac=function(bt){return new(bt||Se)(d.\u0275\u0275inject(b.eN))};static#t=this.\u0275prov=d.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"})}return Se})();var g=a(1713),f=a(6026),I=a(2013),j=a(2684),F=a(9066),Z=a(8377),le=a(2042),q=a(9818);let X=(()=>{class Se{constructor(Me,bt,Pt,ii,Ki,On,nr){this.router=Me,this.customerInfoService=bt,this.profileService=Pt,this.titleService=ii,this.notificationService=Ki,this.messageService=On,this.dataService=nr,this.appId=v.Jf}ngOnInit(){this.titleService.changeTitle("My profile"),this.messageService.sendMessage({loadImageCount:this.dataService.initialImageCount})}loginInfo(Me,bt){this.customerInfoService.loginJobAppUser({email:Me,password:bt,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(bt){return new(bt||Se)(d.\u0275\u0275directiveInject(o.F0),d.\u0275\u0275directiveInject(w),d.\u0275\u0275directiveInject(g.H),d.\u0275\u0275directiveInject(f.y),d.\u0275\u0275directiveInject(I.g),d.\u0275\u0275directiveInject(j.e),d.\u0275\u0275directiveInject(F.V))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Se,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(bt,Pt){if(1&bt&&(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 Pt.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 Pt.password=Ki}),d.\u0275\u0275elementEnd()()()()(),d.\u0275\u0275elementStart(20,"button",11),d.\u0275\u0275listener("click",function(){return Pt.loginInfo(Pt.email,Pt.password)}),d.\u0275\u0275text(21," Login "),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(22,"button",12),d.\u0275\u0275listener("click",function(){return Pt.forgotPassword(Pt.email)}),d.\u0275\u0275text(23," Forgotten Password ? "),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(24,"button",13),d.\u0275\u0275listener("click",function(){return Pt.gotoRegPage()}),d.\u0275\u0275text(25," Create New Account "),d.\u0275\u0275elementEnd()()()()),2&bt){const ii=d.\u0275\u0275reference(6);d.\u0275\u0275advance(13),d.\u0275\u0275property("ngModel",Pt.email),d.\u0275\u0275advance(6),d.\u0275\u0275property("ngModel",Pt.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 Se})();var K=a(2413),N=a(74),me=a(6289),xe=a(4363);function ne(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"mat-option",6),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&Se){const Me=Ot.$implicit;d.\u0275\u0275property("value",Me.code),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate1(" ",Me.text," ")}}function Qe(Se,Ot){if(1&Se){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(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(ii.field.fieldValues.value=Pt)}),d.\u0275\u0275template(7,ne,2,2,"mat-option",5),d.\u0275\u0275elementEnd()()()()()}if(2&Se){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(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"mat-option",6),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&Se){const Me=Ot.$implicit;d.\u0275\u0275property("value",Me.code),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate1(" ",Me.text," ")}}function nt(Se,Ot){if(1&Se){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(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(ii.field.fieldValues.value=Pt)}),d.\u0275\u0275template(7,Oe,2,2,"mat-option",5),d.\u0275\u0275elementEnd()()()()()}if(2&Se){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 Je=(()=>{class Se{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(bt){return new(bt||Se)};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Se,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(bt,Pt){1&bt&&(d.\u0275\u0275template(0,Qe,8,6,"div",0),d.\u0275\u0275template(1,nt,8,3,"div",1)),2&bt&&(d.\u0275\u0275property("ngIf",Pt.field&&Pt.isRequiredField),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Pt.field&&!Pt.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 Se})();function ct(Se,Ot){if(1&Se){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",5),d.\u0275\u0275listener("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=Pt)})("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(Pt))}),d.\u0275\u0275elementEnd()()}if(2&Se){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function ot(Se,Ot){if(1&Se){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",6),d.\u0275\u0275listener("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=Pt)})("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(Pt))}),d.\u0275\u0275elementEnd()()}if(2&Se){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function dt(Se,Ot){if(1&Se){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",7),d.\u0275\u0275listener("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=Pt)})("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(Pt))}),d.\u0275\u0275elementEnd()()}if(2&Se){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function Vt(Se,Ot){if(1&Se){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",8),d.\u0275\u0275listener("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=Pt)})("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(Pt))}),d.\u0275\u0275elementEnd()()}if(2&Se){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function zt(Se,Ot){if(1&Se&&(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,Vt,2,2,"td",4),d.\u0275\u0275elementEnd()()()),2&Se){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(Se,Ot){if(1&Se){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",9),d.\u0275\u0275listener("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=Pt)})("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(Pt))}),d.\u0275\u0275elementEnd()()}if(2&Se){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function mi(Se,Ot){if(1&Se){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",10),d.\u0275\u0275listener("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=Pt)})("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(Pt))}),d.\u0275\u0275elementEnd()()}if(2&Se){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function Yt(Se,Ot){if(1&Se){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",11),d.\u0275\u0275listener("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=Pt)})("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.onChange(Pt))}),d.\u0275\u0275elementEnd()()}if(2&Se){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("ngModel",Me.inputField.fieldValues.value)("formControlName",Me.formCtrlName)}}function Jt(Se,Ot){if(1&Se&&(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,Yt,2,2,"td",4),d.\u0275\u0275elementEnd()()()),2&Se){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(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"div",12)(1,"span",13)(2,"i"),d.\u0275\u0275text(3),d.\u0275\u0275elementEnd()()()),2&Se){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate1("*",Me.errorMsg,"")}}function _t(Se,Ot){if(1&Se){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"td")(1,"input",14),d.\u0275\u0275listener("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(3);return d.\u0275\u0275resetView(ii.compairPassword(Pt))}),d.\u0275\u0275elementEnd()()}if(2&Se){const Me=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(1),d.\u0275\u0275property("formControlName",Me.formCtrlName)}}function Fe(Se,Ot){if(1&Se&&(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&Se){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(3),d.\u0275\u0275property("ngIf",Me.passwordCheck)}}function Ae(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"div",2)(1,"table"),d.\u0275\u0275template(2,Fe,4,1,"tr",4),d.\u0275\u0275elementEnd()()),2&Se){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275property("formGroup",Me.parentForm),d.\u0275\u0275advance(2),d.\u0275\u0275property("ngIf",Me.passwordCheck)}}function W(Se,Ot){1&Se&&(d.\u0275\u0275elementStart(0,"div",12)(1,"span",13)(2,"i"),d.\u0275\u0275text(3,"*confirm password does not match"),d.\u0275\u0275elementEnd()()())}let z=(()=>{class Se{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 bt=Me.length?this.inputField.fieldValues.value.slice(0,-1):"";this.inputField.fieldValues.value=bt,Me=bt}else this.validationError=!0,this.errorMsg="Enter valid postal code.";if(this.passwordCheck&&(this.password=Me),this.emailCheck){let Pt=/^(([^<>()[\]\\.,;:\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||!Pt}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,bt){this.profileService.sendDynamicFieldStatus({code:Me,value:bt})}static#e=this.\u0275fac=function(bt){return new(bt||Se)(d.\u0275\u0275directiveInject(g.H))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Se,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(bt,Pt){1&bt&&(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,W,4,0,"div",1)),2&bt&&(d.\u0275\u0275property("ngIf",Pt.inputField&&Pt.isRequiredField),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Pt.inputField&&!Pt.isRequiredField),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Pt.validationError&&(Pt.parentForm.get(Pt.formCtrlName).touched||Pt.parentForm.get(Pt.formCtrlName).dirty)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Pt.inputField&&Pt.passwordCheck),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Pt.validationErrorConfirmPassword&&(Pt.parentForm.get(Pt.formCtrlName).touched||Pt.parentForm.get(Pt.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 Se})();function He(Se,Ot){if(1&Se){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(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(ii.onText(Pt))})("ngModelChange",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(ii.inputField.fieldValues.value=Pt)}),d.\u0275\u0275elementEnd()()()()()}if(2&Se){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(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"div",5)(1,"span",6)(2,"i"),d.\u0275\u0275text(3),d.\u0275\u0275elementEnd()()()),2&Se){const Me=d.\u0275\u0275nextContext();d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate1("*",Me.errorMsg,"")}}let Be=(()=>{class Se{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(bt){return new(bt||Se)};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Se,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(bt,Pt){1&bt&&(d.\u0275\u0275template(0,He,7,4,"div",0),d.\u0275\u0275template(1,Te,4,1,"div",1)),2&bt&&(d.\u0275\u0275property("ngIf",Pt.inputField&&!Pt.isRequiredField),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Pt.validationError&&(Pt.parentForm.get(Pt.formCtrlName).touched||Pt.parentForm.get(Pt.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 Se})();function pt(Se,Ot){if(1&Se&&d.\u0275\u0275element(0,"img",10),2&Se){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275property("src",Me.imageField.fieldValues.value,d.\u0275\u0275sanitizeUrl)}}function Pe(Se,Ot){1&Se&&d.\u0275\u0275element(0,"br")}function Xe(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"div",11),d.\u0275\u0275element(1,"img",12),d.\u0275\u0275elementEnd()),2&Se){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275advance(1),d.\u0275\u0275property("src",Me.imageField.fieldValues.value,d.\u0275\u0275sanitizeUrl)}}function ht(Se,Ot){if(1&Se){const Me=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"div",2),d.\u0275\u0275template(1,pt,1,1,"img",3),d.\u0275\u0275template(2,Pe,1,0,"br",1),d.\u0275\u0275template(3,Xe,2,1,"div",4),d.\u0275\u0275elementStart(4,"div",5)(5,"button",6)(6,"label",7)(7,"input",8),d.\u0275\u0275listener("change",function(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(ii.addImageToPwa(Pt))}),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(8,"span",9),d.\u0275\u0275text(9,"UPLOAD IMAGE"),d.\u0275\u0275elementEnd()()()()()}if(2&Se){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 ee(Se,Ot){if(1&Se&&d.\u0275\u0275element(0,"img",10),2&Se){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275property("src",Me.imageField.fieldValues.value,d.\u0275\u0275sanitizeUrl)}}function k(Se,Ot){if(1&Se&&d.\u0275\u0275element(0,"img",14),2&Se){const Me=d.\u0275\u0275nextContext(2);d.\u0275\u0275property("src",Me.imageField.fieldValues.value,d.\u0275\u0275sanitizeUrl)}}function R(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275template(1,ee,1,1,"img",3),d.\u0275\u0275template(2,k,1,1,"img",13),d.\u0275\u0275elementEnd()),2&Se){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 Se{constructor(Me,bt,Pt,ii){this.dataService=Me,this.router=bt,this.cameraService=Pt,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 bt=this.imageField.fieldValues.value;this.imageField.addedEvent=!1,bt?""==bt&&(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 bt=new FileReader;bt.readAsDataURL(Me.target.files[0]),bt.onload=Pt=>{this.imageField.fieldValues.value=Pt.target.result,this.imageField.addedEvent=Me.target.files[0]}}}static#e=this.\u0275fac=function(bt){return new(bt||Se)(d.\u0275\u0275directiveInject(F.V),d.\u0275\u0275directiveInject(o.F0),d.\u0275\u0275directiveInject(K.r),d.\u0275\u0275directiveInject(d.NgZone))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Se,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(bt,Pt){1&bt&&(d.\u0275\u0275template(0,ht,10,3,"div",0),d.\u0275\u0275template(1,R,3,2,"div",1)),2&bt&&(d.\u0275\u0275property("ngIf",Pt.imageField&&!Pt.onlyShowImage),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",Pt.imageField&&Pt.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 Se})();function qe(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275element(1,"app-profile-image",13),d.\u0275\u0275elementEnd()),2&Se){const Me=d.\u0275\u0275nextContext().$implicit,bt=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(1),d.\u0275\u0275property("onlyShowImage",bt.onlyShowImage)("imageField",Me)("isCordovaApp",bt.isCordovaApp)}}function Ue(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275template(1,qe,2,3,"div",4),d.\u0275\u0275elementEnd()),2&Se){const Me=Ot.$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf","Image"==Me.appFormFields.feFormFieldType.type&&!Me.appFormFields.isDeleted)}}function fe(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275element(1,"app-input-text",14)(2,"br"),d.\u0275\u0275elementEnd()),2&Se){const Me=d.\u0275\u0275nextContext().$implicit,bt=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(1),d.\u0275\u0275property("parentForm",bt.parentForm)("inputField",Me)}}function ke(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275element(1,"app-input-textarea",14)(2,"br"),d.\u0275\u0275elementEnd()),2&Se){const Me=d.\u0275\u0275nextContext().$implicit,bt=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(1),d.\u0275\u0275property("parentForm",bt.parentForm)("inputField",Me)}}function gt(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275element(1,"app-input-select",15)(2,"br"),d.\u0275\u0275elementEnd()),2&Se){const Me=d.\u0275\u0275nextContext().$implicit,bt=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(1),d.\u0275\u0275property("parentForm",bt.parentForm)("field",Me)}}function Tt(Se,Ot){if(1&Se&&(d.\u0275\u0275elementStart(0,"div"),d.\u0275\u0275template(1,fe,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&Se){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(Se,Ot){if(1&Se){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,Tt,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(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.isTickAgreement=Pt)}),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(Pt){d.\u0275\u0275restoreView(Me);const ii=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ii.addCv(Pt))}),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 Pt=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(Pt.saveCustomerInfo(Pt.fieldList))}),d.\u0275\u0275text(14),d.\u0275\u0275elementEnd()()()}if(2&Se){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(Se,Ot){if(1&Se&&(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&Se){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 Se{constructor(Me,bt,Pt,ii,Ki,On,nr,Lr,wr,vr){this.router=Me,this.formBuilder=bt,this.profileService=Pt,this.customerInfoService=ii,this.titleService=Ki,this.dataService=On,this.fb=nr,this.cameraService=Lr,this.notificationService=wr,this.messageService=vr,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(ur=>this.saveDynamicFieldsStatus(ur)),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(bt=>{let Pt=bt.pop();this.isEdit=Pt.isEdit,this.onlyShowImage=!1,this.fieldList=bt;for(let ii of this.fieldList){let Lr=ii.appFormFields.lable.toLowerCase().trim().replace(" ","_");this.validateObj[Lr]=[""]}this.parentForm=this.fb.group(this.validateObj),bt.length&&(this.isLoading=!1)},bt=>{console.log("error in getProfile",bt),this.profileService.removeFormDataIdInLocalStorage(),this.notificationService.showNotification("Error occurred, Try again !!!")})}addCv(Me){if("application/pdf"==Me.target.files[0].type){const bt=Me.target.files[0];if(!bt)return this.file=null,this.fileName=null,void(this.fileType=null);bt.size/1e6>=5?this.notificationService.showNotification("PDF should be less than 5 MB"):(this.file=bt,this.fileName=bt.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 bt=Me.filter(ii=>"Image"==ii.appFormFields.feFormFieldType.type)[0];this.imageInfo=bt&&bt.appFormFields.isDeleted?bt.addedEvent:null,this.addOrEditProfileInPwa(Me,{isEdit:this.isEdit,JobAppUserappFormDataId:this.JobAppUserappFormDataId})}addOrEditProfileInPwa(Me,bt){const Pt=new FormData;Pt.append("isEdit",JSON.stringify(bt)),Pt.append("customerInfo",JSON.stringify(Me)),Pt.append("appId",this.appId),Pt.append("userId",this.userId),this.file||this.formDataId?(this.file&&(Pt.append("hasCvUpload","true"),Pt.append("cv",this.file,this.fileName)),this.customerInfoService.addOrEditUser(Pt).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 bt in this.DynamicFieldStatus)this.DynamicFieldStatus[bt]&&(this.isFieldComplete=!1)}static#e=this.\u0275fac=function(bt){return new(bt||Se)(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(F.V),d.\u0275\u0275directiveInject(e.QS),d.\u0275\u0275directiveInject(K.r),d.\u0275\u0275directiveInject(I.g),d.\u0275\u0275directiveInject(j.e))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Se,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(bt,Pt){1&bt&&(d.\u0275\u0275elementStart(0,"mat-card",0),d.\u0275\u0275template(1,st,5,2,"mat-card-content",1),d.\u0275\u0275elementEnd()),2&bt&&(d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",!Pt.isLoading))},dependencies:[e._Y,e.JJ,e.JL,e.On,e.sg,n.NgClass,n.NgForOf,n.NgIf,Z.S$,Z.Qi,N.FC,Je,z,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 Se})();var at=a(2687),Lt=a(1281),Rt=a(5017),ai=a(3238);const Xt=["button"],di=["*"],vt=new d.InjectionToken("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),Ut=new d.InjectionToken("MatButtonToggleGroup"),Qt={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 Se{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(bt=>bt.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,bt){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=bt&&bt.appearance?bt.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 bt=new _i(Me,this.value);this._controlValueAccessorChangeFn(bt.value),this.change.emit(bt)}_syncButtonToggle(Me,bt,Pt=!1,ii=!1){!this.multiple&&this.selected&&!Me.checked&&(this.selected.checked=!1),this._selectionModel?bt?this._selectionModel.select(Me):this._selectionModel.deselect(Me):ii=!0,ii?Promise.resolve().then(()=>this._updateModelValue(Me,Pt)):this._updateModelValue(Me,Pt)}_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(bt=>null!=Me.value&&bt===Me.value):Me.value===this._rawValue)}_setSelectionByValue(Me){this._rawValue=Me,this._buttonToggles&&(this.multiple&&Me?(Array.isArray(Me),this._clearSelection(),Me.forEach(bt=>this._selectValue(bt))):(this._clearSelection(),this._selectValue(Me)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(Me=>Me.checked=!1)}_selectValue(Me){const bt=this._buttonToggles.find(Pt=>null!=Pt.value&&Pt.value===Me);bt&&(bt.checked=!0,this._selectionModel.select(bt))}_updateModelValue(Me,bt){bt&&this._emitChangeEvent(Me),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(Me=>Me._markForCheck())}}return Se.\u0275fac=function(Me){return new(Me||Se)(d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(vt,8))},Se.\u0275dir=d.\u0275\u0275defineDirective({type:Se,selectors:[["mat-button-toggle-group"]],contentQueries:function(Me,bt,Pt){if(1&Me&&d.\u0275\u0275contentQuery(Pt,ze,5),2&Me){let ii;d.\u0275\u0275queryRefresh(ii=d.\u0275\u0275loadQuery())&&(bt._buttonToggles=ii)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(Me,bt){2&Me&&(d.\u0275\u0275attribute("aria-disabled",bt.disabled),d.\u0275\u0275classProp("mat-button-toggle-vertical",bt.vertical)("mat-button-toggle-group-appearance-standard","standard"===bt.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([Qt,{provide:Ut,useExisting:Se}])]}),Se})();const Bi=(0,ai.Kr)(class{});let ze=(()=>{class Se 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 bt=(0,Lt.Ig)(Me);bt!==this._checked&&(this._checked=bt,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,bt,Pt,ii,Ki,On){super(),this._changeDetectorRef=bt,this._elementRef=Pt,this._focusMonitor=ii,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new d.EventEmitter;const nr=Number(Ki);this.tabIndex=nr||0===nr?nr:null,this.buttonToggleGroup=Me,this.appearance=On&&On.appearance?On.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 Se.\u0275fac=function(Me){return new(Me||Se)(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))},Se.\u0275cmp=d.\u0275\u0275defineComponent({type:Se,selectors:[["mat-button-toggle"]],viewQuery:function(Me,bt){if(1&Me&&d.\u0275\u0275viewQuery(Xt,5),2&Me){let Pt;d.\u0275\u0275queryRefresh(Pt=d.\u0275\u0275loadQuery())&&(bt._buttonElement=Pt.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(Me,bt){1&Me&&d.\u0275\u0275listener("focus",function(){return bt.focus()}),2&Me&&(d.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("id",bt.id)("name",null),d.\u0275\u0275classProp("mat-button-toggle-standalone",!bt.buttonToggleGroup)("mat-button-toggle-checked",bt.checked)("mat-button-toggle-disabled",bt.disabled)("mat-button-toggle-appearance-standard","standard"===bt.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:di,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,bt){if(1&Me&&(d.\u0275\u0275projectionDef(),d.\u0275\u0275elementStart(0,"button",0,1),d.\u0275\u0275listener("click",function(){return bt._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 Pt=d.\u0275\u0275reference(1);d.\u0275\u0275property("id",bt.buttonId)("disabled",bt.disabled||null),d.\u0275\u0275attribute("tabindex",bt.disabled?-1:bt.tabIndex)("aria-pressed",bt.checked)("name",bt._getButtonName())("aria-label",bt.ariaLabel)("aria-labelledby",bt.ariaLabelledby),d.\u0275\u0275advance(5),d.\u0275\u0275property("matRippleTrigger",Pt)("matRippleDisabled",bt.disableRipple||bt.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}),Se})(),ue=(()=>{class Se{}return Se.\u0275fac=function(Me){return new(Me||Se)},Se.\u0275mod=d.\u0275\u0275defineNgModule({type:Se}),Se.\u0275inj=d.\u0275\u0275defineInjector({imports:[ai.BQ,ai.si,ai.BQ]}),Se})();function re(Se,Ot){if(1&Se){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&Se){const Me=Ot.$implicit,bt=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,bt.htmlToPlaintext(Me.vacancy.desc),0,110)+"...":bt.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 Se{constructor(Me,bt,Pt,ii,Ki){this.dataService=Me,this.router=bt,this.notificationService=Pt,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(bt=>{this.notificationService.showNotification(bt.msg),this.getSavedAndAppliedVacancies()},bt=>{console.log("erroor occurred ->",bt)})}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(bt){return new(bt||Se)(d.\u0275\u0275directiveInject(F.V),d.\u0275\u0275directiveInject(o.F0),d.\u0275\u0275directiveInject(I.g),d.\u0275\u0275directiveInject(g.H),d.\u0275\u0275directiveInject(j.e))};static#t=this.\u0275cmp=d.\u0275\u0275defineComponent({type:Se,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(bt,Pt){1&bt&&(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 Pt.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 Pt.changeVacancyType(!1)}),d.\u0275\u0275text(30,"Saved"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(31,"mat-button-toggle",12),d.\u0275\u0275listener("click",function(){return Pt.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&bt&&(d.\u0275\u0275advance(2),d.\u0275\u0275property("src",Pt.profileViewInfo.profileimage,d.\u0275\u0275sanitizeUrl),d.\u0275\u0275advance(5),d.\u0275\u0275textInterpolate(Pt.profileViewInfo.fname),d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(Pt.profileViewInfo.lname),d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(Pt.profileViewInfo.email),d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(Pt.profileViewInfo.mobile),d.\u0275\u0275advance(4),d.\u0275\u0275propertyInterpolate("href",Pt.profileViewInfo.cvUrl,d.\u0275\u0275sanitizeUrl),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(Pt.profileViewInfo.cv),d.\u0275\u0275advance(11),d.\u0275\u0275property("ngForOf",Pt.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 Se})()},{path:"form/:catName/:catId/:articleId",loadChildren:()=>Promise.resolve().then(a.bind(a,1663)).then(Se=>Se.FormEngineModule)},{path:"product/:catId/:articleId",component:l.F,data:{title:"Product Page"}}];let We=(()=>{class Se{static#e=this.\u0275fac=function(bt){return new(bt||Se)};static#t=this.\u0275mod=d.\u0275\u0275defineNgModule({type:Se});static#i=this.\u0275inj=d.\u0275\u0275defineInjector({imports:[o.Bz.forChild(Re),o.Bz]})}return Se})();var xt=a(231),Wt=a(7392),wt=a(9982),Mt=a(9095),It=a(5754),se=a(5001),we=a(3493);let Le=(()=>{class Se{static#e=this.\u0275fac=function(bt){return new(bt||Se)};static#t=this.\u0275mod=d.\u0275\u0275defineNgModule({type:Se});static#i=this.\u0275inj=d.\u0275\u0275defineInjector({imports:[e.u5,e.UX,n.CommonModule,We,xt.Z,Z.IF,le.x4,q.yu,Wt.Ps,wt.gR,Mt.yj,me.uw,N.Zh,It.Nn,se.y,ue,we.OwlModule]})}return Se})()},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:()=>br,hasStandardBrowserEnv:()=>Bn,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(B,de){this.http=B,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(Ke=>{this.msisdn=Ke}),this.commonService.getLoggedInUserId().subscribe(Ke=>{this.logedInUserId=Ke})}listenOnLocalStorage(){this.loggedUserLocalStorageCheck=setInterval(()=>{this.checkLocalStorage()},500)}checkLocalStorage(){let B=localStorage.getItem("loggedLocationUser");B&&"null"!=B&&(this.logedInUserId=B,clearInterval(this.loggedUserLocalStorageCheck),this.getAllAddedUsers().subscribe(de=>{this.commonService.setAddedUsers(de?.addedUsers)}))}registerUser(B){return this.http.post(`${C.L}/edit/registerUser`,B,this.httpOptions)}addUser(B){return this.http.put(`${C.L}/edit/addUser`,{appId:this.appId,loggedUserId:this.logedInUserId,addingUserName:B})}getAllAddedUsers(){let B=this.commonService.checkIsFromCmsView();return this.http.get(`${C.L}/edit/getAllAddedUsers/${this.logedInUserId}?appId=${this.appId}&isFromCmsView=${B?1:0}`)}removeAddedUser(B){return this.http.put(`${C.L}/edit/removeAddedUser/${B}`,{userId:this.logedInUserId})}getProfileData(){return this.http.get(`${C.L}/edit/profile/${this.logedInUserId}`)}updateProfileData(B){return this.http.put(`${C.L}/edit/profile/update/${this.logedInUserId}/${this.appId}`,B)}checkUsernameExists(B){return this.http.post(`${C.L}/edit/profile/checkUsername/${this.logedInUserId}/${this.appId}`,B)}locationDetails(B,de){return this.http.post(`${C.L}/edit/locationDetails/${this.logedInUserId}`,{addedUserName:B,addedUserId:de},this.httpOptions)}getUserLocationDetails(B,de){const Ke=`${C.L}/edit/getUserLocationDetails/${this.logedInUserId}`,Ve=(new o.LE).set("addedUserName",B).set("addedUserId",de);return this.http.get(Ke,{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 B=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(B).$implicit,ft=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(ft.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(B).$implicit,ft=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(ft.removeAddedUser(Ve.id))}),u.\u0275\u0275text(8,"Remove"),u.\u0275\u0275elementEnd()()()}if(2&y){const B=J.$implicit;u.\u0275\u0275advance(5),u.\u0275\u0275textInterpolate(B.userName)}}let f=(()=>{class y{constructor(B,de,Ke,Ve){this.router=B,this.commonService=de,this.userService=Ke,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(B=>{this.addedUsers=B})}getAllAddedUsers(){this.userService.getAllAddedUsers().subscribe(B=>{B&&this.commonService.setAddedUsers(B.addedUsers)},B=>{console.error("Error in getAllAddedUsers: ",B)})}removeAddedUser(B){this.userService.removeAddedUser(B).subscribe(de=>{de&&this.commonService.setAddedUsers(de.data)},de=>{console.error("Error removing user:",de)})}locationHistoryOfUser(B,de){this.router.navigate(["/location/history",{addedUserName:de,addedUserId:B}])}navigate(B){this.commonService.navigate(B)}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,Ke){1&de&&(u.\u0275\u0275elementStart(0,"div",0)(1,"button",1),u.\u0275\u0275listener("click",function(){return Ke.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 Ke.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",Ke.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 I=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 F(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"div",10),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&y){const B=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(B.errorMessage)}}function Z(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"div",11),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&y){const B=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(B.successMessage)}}let le=(()=>{class y{constructor(B,de,Ke,Ve,ft){this.router=B,this.userService=de,this.commonService=Ke,this.titleService=Ve,this.toastr=ft,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(B=>{!B?.isError&&B?.data?(this.addedUserName="",this.commonService.setAddedUsers(B.data),this.toastr.success(B.msg,"Success!",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"})):B?.isError&&B.msg&&""!==this.addedUserName&&this.toastr.error(B.msg,"Error!",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"})},B=>{console.error("Error while adding user:",B),B?.error?.msg?(this.errorMessage=B.error.msg,this.toastr.error(B.error.msg,"Error!",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"})):this.toastr.error(B.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(I._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,Ke){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(ft){return Ke.addedUserName=ft}),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(8,j,2,0,"div",6),u.\u0275\u0275template(9,F,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 Ke.addUser()}),u.\u0275\u0275text(13,"ADD"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(14,"button",9),u.\u0275\u0275listener("click",function(){return Ke.backToHome()}),u.\u0275\u0275text(15,"BACK"),u.\u0275\u0275elementEnd()()),2&de&&(u.\u0275\u0275advance(7),u.\u0275\u0275property("ngModel",Ke.addedUserName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ke.showUsernameError&&!Ke.addedUserName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ke.errorMessage&&!Ke.successMessage),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ke.successMessage&&!Ke.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 B=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(B.usernameExistsError)}}let K=(()=>{class y{constructor(B,de,Ke,Ve,ft){this.router=B,this.userService=de,this.commonService=Ke,this.titleService=Ve,this.toastr=ft,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(B){const de=B.target.value,Ke=de.replace(/[^0-9]/g,"");de!==Ke&&(B.target.value=Ke,this.userData.msisdn=Ke)}registerUser(){if(this.isSaveClicked=!0,this.userData.userName&&this.userData.msisdn){this.usernameExistsError="";const B={appId:this.appId,userName:this.userData.userName.trim(),msisdn:this.getFormattedMsisdn(this.userData.msisdn.toString().trim())};this.userService.registerUser(B).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(B){return B.length>=9?"94"+B.substring(B.length-9):"94"+B}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(I._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,Ke){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(ft){return Ke.userData.msisdn=ft})("input",function(ft){return Ke.validateInput(ft)}),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(ft){return Ke.userData.userName=ft}),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 Ke.registerUser()}),u.\u0275\u0275text(17,"SAVE"),u.\u0275\u0275elementEnd()()),2&de&&(u.\u0275\u0275advance(7),u.\u0275\u0275property("ngModel",Ke.userData.msisdn),u.\u0275\u0275advance(5),u.\u0275\u0275property("ngModel",Ke.userData.userName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",!Ke.userData.userName&&Ke.isSaveClicked),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ke.usernameExistsError),u.\u0275\u0275advance(2),u.\u0275\u0275property("disabled",!Ke.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 N(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 B=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(B.errorMessage)}}function xe(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"div",12),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&y){const B=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(B.successMessage)}}let ne=(()=>{class y{constructor(B,de,Ke,Ve,ft){this.router=B,this.userService=de,this.commonService=Ke,this.titleService=Ve,this.toastr=ft,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(B=>{B&&(this.userName=B.userName,this.msisdn=B.msisdn)},B=>{console.error("Failed to fetch profile data",B)})}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(I._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,Ke){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(ft){return Ke.userName=ft}),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(13,N,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 Ke.updateProfile()}),u.\u0275\u0275text(18,"UPDATE"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(19,"button",10),u.\u0275\u0275listener("click",function(){return Ke.backToHome()}),u.\u0275\u0275text(20,"BACK"),u.\u0275\u0275elementEnd()()),2&de&&(u.\u0275\u0275advance(7),u.\u0275\u0275property("value",Ke.msisdn),u.\u0275\u0275advance(5),u.\u0275\u0275property("ngModel",Ke.userName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ke.showUsernameError&&!Ke.userName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ke.errorMessage&&!Ke.successMessage),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ke.successMessage&&!Ke.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 Qe=a(5861);function Oe(y,J){if(1&y){const B=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275elementStart(1,"tr",8),u.\u0275\u0275listener("click",function(){const Ve=u.\u0275\u0275restoreView(B).$implicit,ft=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(ft.getLocationView(Ve.id,Ve.lat,Ve.lon,ft.addedUserName,ft.getLocationDate(Ve),ft.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 B=J.$implicit,de=u.\u0275\u0275nextContext();u.\u0275\u0275advance(4),u.\u0275\u0275textInterpolate1(" ",de.getLocationDate(B)," "),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate1(" ",de.getLocationTime(B)," ")}}let nt=(()=>{class y{constructor(B,de,Ke,Ve,ft,qt){this.router=B,this.userService=de,this.commonService=Ke,this.titleService=Ve,this.activeRoute=ft,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(B=>{this.addedUserName=B.get("addedUserName"),this.addedUserId=B.get("addedUserId")}),this.getUserLocationDetails(this.addedUserId)}goBack(){this.location.back()}locationDetails(B){var de=this;return(0,Qe.Z)(function*(){if(de.isClickedLocateBtn=!0,yield de.commonService.checkSubscriptionStatus())de.checkIsOtcValid(B);else{const Ve=de.commonService.getSubProgress().subscribe(ft=>{ft||(Ve.unsubscribe(),de.checkIsOtcValid(B))})}})()}checkIsOtcValid(B){var de=this;return(0,Qe.Z)(function*(){let Ke=yield de.commonService.fireOtcChargingRequest(B);console.log("isValid : ",Ke),Ke?de.getLocationDetailsAfterCheckingSubscription(B):de.isClickedLocateBtn=!1})()}getLocationDetailsAfterCheckingSubscription(B){this.isLocating||(this.isClickedLocateBtn=!0,this.isLocating=!0,this.userService.locationDetails(B,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 Ke=de.location;this.useLocationDetails.push(Ke),this.commonService.showToaster(de.msg,"Success!",!1);let Ve=this;Ve.getLocationView(Ke.id,Ke.lat,Ke.lon,Ve.addedUserName,Ve.getLocationDate(Ke),Ve.getLocationTime(Ke))}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(B){this.userService.getUserLocationDetails(this.addedUserName,B).subscribe(de=>{this.useLocationDetails=de,this.useLocationDetails=this.useLocationDetails.reverse()},de=>{console.error("Error retrieving location details:",de)})}getLocationDate(B){const de=new Date(B.locatedTime);return`${this.padZero(de.getDate())}/${this.padZero(de.getMonth()+1)}/${de.getFullYear()}`}getLocationTime(B){const de=new Date(B.locatedTime),Ke=de.getHours(),Ve=de.getMinutes(),ft=Ke>=12?"PM":"AM";return`${this.padZero(Ke%12||12)}:${this.padZero(Ve)} ${ft}`}padZero(B){return B.toString().padStart(2,"0")}getLocationView(B,de,Ke,Ve,ft,qt){this.router.navigate(["/location/location-map",{userLocationId:B,latitude:de,longitude:Ke,addedUserName:Ve,locationDate:ft,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,Ke){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 Ke.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 Ke.locationDetails(Ke.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(Ke.addedUserName),u.\u0275\u0275advance(2),u.\u0275\u0275property("disabled",Ke.isLocating||Ke.isClickedLocateBtn),u.\u0275\u0275advance(3),u.\u0275\u0275property("ngForOf",Ke.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 Je=a(8407);function ct(y,J){return function(){return y.apply(J,arguments)}}const{toString:ot}=Object.prototype,{getPrototypeOf:dt}=Object,Vt=(y=Object.create(null),J=>{const B=ot.call(J);return y[B]||(y[B]=B.slice(8,-1).toLowerCase())}),zt=y=>(y=y.toLowerCase(),J=>Vt(J)===y),ti=y=>J=>typeof J===y,{isArray:mi}=Array,Yt=ti("undefined");var y;const lt=zt("ArrayBuffer"),Fe=ti("string"),Ae=ti("function"),W=ti("number"),z=y=>null!==y&&"object"==typeof y,Te=y=>{if("object"!==Vt(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"),pt=zt("File"),Pe=zt("Blob"),Xe=zt("FileList"),k=zt("URLSearchParams");function be(y,J,{allOwnKeys:B=!1}={}){if(null===y||typeof y>"u")return;let de,Ke;if("object"!=typeof y&&(y=[y]),mi(y))for(de=0,Ke=y.length;de<Ke;de++)J.call(null,y[de],de,y);else{const Ve=B?Object.getOwnPropertyNames(y):Object.keys(y),ft=Ve.length;let qt;for(de=0;de<ft;de++)qt=Ve[de],J.call(null,y[qt],qt,y)}}function qe(y,J){J=J.toLowerCase();const B=Object.keys(y);let Ke,de=B.length;for(;de-- >0;)if(Ke=B[de],J===Ke.toLowerCase())return Ke;return null}const Ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fe=y=>!Yt(y)&&y!==Ue,Lt=(y=>J=>y&&J instanceof y)(typeof Uint8Array<"u"&&dt(Uint8Array)),Xt=zt("HTMLFormElement"),vt=(({hasOwnProperty:y})=>(J,B)=>y.call(J,B))(Object.prototype),Ut=zt("RegExp"),Qt=(y,J)=>{const B=Object.getOwnPropertyDescriptors(y),de={};be(B,(Ke,Ve)=>{let ft;!1!==(ft=J(Ke,Ve,y))&&(de[Ve]=ft||Ke)}),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&&!Yt(y)&&null!==y.constructor&&!Yt(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=Vt(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:W,isBoolean:y=>!0===y||!1===y,isObject:z,isPlainObject:Te,isUndefined:Yt,isDate:Be,isFile:pt,isBlob:Pe,isRegExp:Ut,isFunction:Ae,isStream:y=>z(y)&&Ae(y.pipe),isURLSearchParams:k,isTypedArray:Lt,isFileList:Xe,forEach:be,merge:function ke(){const{caseless:y}=fe(this)&&this||{},J={},B=(de,Ke)=>{const Ve=y&&qe(J,Ke)||Ke;J[Ve]=Te(J[Ve])&&Te(de)?ke(J[Ve],de):Te(de)?ke({},de):mi(de)?de.slice():de};for(let de=0,Ke=arguments.length;de<Ke;de++)arguments[de]&&be(arguments[de],B);return J},extend:(y,J,B,{allOwnKeys:de}={})=>(be(J,(Ke,Ve)=>{y[Ve]=B&&Ae(Ke)?ct(Ke,B):Ke},{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,B,de)=>{y.prototype=Object.create(J.prototype,de),y.prototype.constructor=y,Object.defineProperty(y,"super",{value:J.prototype}),B&&Object.assign(y.prototype,B)},toFlatObject:(y,J,B,de)=>{let Ke,Ve,ft;const qt={};if(J=J||{},null==y)return J;do{for(Ke=Object.getOwnPropertyNames(y),Ve=Ke.length;Ve-- >0;)ft=Ke[Ve],(!de||de(ft,y,J))&&!qt[ft]&&(J[ft]=y[ft],qt[ft]=!0);y=!1!==B&&dt(y)}while(y&&(!B||B(y,J))&&y!==Object.prototype);return J},kindOf:Vt,kindOfTest:zt,endsWith:(y,J,B)=>{y=String(y),(void 0===B||B>y.length)&&(B=y.length);const de=y.indexOf(J,B-=J.length);return-1!==de&&de===B},toArray:y=>{if(!y)return null;if(mi(y))return y;let J=y.length;if(!W(J))return null;const B=new Array(J);for(;J-- >0;)B[J]=y[J];return B},forEachEntry:(y,J)=>{const de=(y&&y[Symbol.iterator]).call(y);let Ke;for(;(Ke=de.next())&&!Ke.done;){const Ve=Ke.value;J.call(y,Ve[0],Ve[1])}},matchAll:(y,J)=>{let B;const de=[];for(;null!==(B=y.exec(J));)de.push(B);return de},isHTMLForm:Xt,hasOwnProperty:vt,hasOwnProp:vt,reduceDescriptors:Qt,freezeMethods:y=>{Qt(y,(J,B)=>{if(Ae(y)&&-1!==["arguments","caller","callee"].indexOf(B))return!1;if(Ae(y[B])){if(J.enumerable=!1,"writable"in J)return void(J.writable=!1);J.set||(J.set=()=>{throw Error("Can not rewrite read-only method '"+B+"'")})}})},toObjectSet:(y,J)=>{const B={},de=Ke=>{Ke.forEach(Ve=>{B[Ve]=!0})};return mi(y)?de(y):de(String(y).split(J)),B},toCamelCase:y=>y.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(B,de,Ke){return de.toUpperCase()+Ke}),noop:()=>{},toFiniteNumber:(y,J)=>(y=+y,Number.isFinite(y)?y:J),findKey:qe,global:Ue,isContextDefined:fe,ALPHABET:re,generateString:(y=16,J=re.ALPHA_DIGIT)=>{let B="";const{length:de}=J;for(;y--;)B+=J[Math.random()*de|0];return B},isSpecCompliantForm:function Re(y){return!!(y&&Ae(y.append)&&"FormData"===y[Symbol.toStringTag]&&y[Symbol.iterator])},toJSONObject:y=>{const J=new Array(10),B=(de,Ke)=>{if(z(de)){if(J.indexOf(de)>=0)return;if(!("toJSON"in de)){J[Ke]=de;const Ve=mi(de)?[]:{};return be(de,(ft,qt)=>{const Oi=B(ft,Ke+1);!Yt(Oi)&&(Ve[qt]=Oi)}),J[Ke]=void 0,Ve}}return de};return B(y,0)},isAsyncFn:xt,isThenable:y=>y&&(z(y)||Ae(y))&&Ae(y.then)&&Ae(y.catch)};function Mt(y,J,B,de,Ke){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),B&&(this.config=B),de&&(this.request=de),Ke&&(this.response=Ke)}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,B,de,Ke,Ve)=>{const ft=Object.create(It);return wt.toFlatObject(y,ft,function(Oi){return Oi!==Error.prototype},qt=>"isAxiosError"!==qt),Mt.call(ft,y.message,J,B,de,Ke),ft.cause=y,ft.name=y.name,Ve&&Object.assign(ft,Ve),ft};const we=Mt;function Se(y){return wt.isPlainObject(y)||wt.isArray(y)}function Ot(y){return wt.endsWith(y,"[]")?y.slice(0,-2):y}function Me(y,J,B){return y?y.concat(J).map(function(Ke,Ve){return Ke=Ot(Ke),!B&&Ve?"["+Ke+"]":Ke}).join(B?".":""):J}const Pt=wt.toFlatObject(wt,{},null,function(J){return/^is[A-Z]/.test(J)}),Ki=function ii(y,J,B){if(!wt.isObject(y))throw new TypeError("target must be an object");J=J||new FormData;const de=(B=wt.toFlatObject(B,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Qi,lr){return!wt.isUndefined(lr[Qi])})).metaTokens,Ke=B.visitor||ui,Ve=B.dots,ft=B.indexes,Oi=(B.Blob||typeof Blob<"u"&&Blob)&&wt.isSpecCompliantForm(J);if(!wt.isFunction(Ke))throw new TypeError("visitor must be a function");function Pi(Ti){if(null===Ti)return"";if(wt.isDate(Ti))return Ti.toISOString();if(!Oi&&wt.isBlob(Ti))throw new we("Blob is not supported. Use a Buffer instead.");return wt.isArrayBuffer(Ti)||wt.isTypedArray(Ti)?Oi&&"function"==typeof Blob?new Blob([Ti]):Buffer.from(Ti):Ti}function ui(Ti,Qi,lr){let _r=Ti;if(Ti&&!lr&&"object"==typeof Ti)if(wt.endsWith(Qi,"{}"))Qi=de?Qi:Qi.slice(0,-2),Ti=JSON.stringify(Ti);else if(wt.isArray(Ti)&&function bt(y){return wt.isArray(y)&&!y.some(Se)}(Ti)||(wt.isFileList(Ti)||wt.endsWith(Qi,"[]"))&&(_r=wt.toArray(Ti)))return Qi=Ot(Qi),_r.forEach(function(Wn,Eo){!wt.isUndefined(Wn)&&null!==Wn&&J.append(!0===ft?Me([Qi],Eo,Ve):null===ft?Qi:Qi+"[]",Pi(Wn))}),!1;return!!Se(Ti)||(J.append(Me(lr,Qi,Ve),Pi(Ti)),!1)}const Hi=[],vn=Object.assign(Pt,{defaultVisitor:ui,convertValue:Pi,isVisitable:Se});if(!wt.isObject(y))throw new TypeError("data must be an object");return function Cr(Ti,Qi){if(!wt.isUndefined(Ti)){if(-1!==Hi.indexOf(Ti))throw Error("Circular reference detected in "+Qi.join("."));Hi.push(Ti),wt.forEach(Ti,function(_r,yn){!0===(!(wt.isUndefined(_r)||null===_r)&&Ke.call(J,_r,wt.isString(yn)?yn.trim():yn,Qi,vn))&&Cr(_r,Qi?Qi.concat(yn):[yn])}),Hi.pop()}}(y),J};function On(y){const J={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(y).replace(/[!'()~]|%20|%00/g,function(de){return J[de]})}function nr(y,J){this._pairs=[],y&&Ki(y,this,J)}const Lr=nr.prototype;Lr.append=function(J,B){this._pairs.push([J,B])},Lr.toString=function(J){const B=J?function(de){return J.call(this,de,On)}:On;return this._pairs.map(function(Ke){return B(Ke[0])+"="+B(Ke[1])},"").join("&")};const wr=nr;function vr(y){return encodeURIComponent(y).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ur(y,J,B){if(!J)return y;const de=B&&B.encode||vr,Ke=B&&B.serialize;let Ve;if(Ve=Ke?Ke(J,B):wt.isURLSearchParams(J)?J.toString():new wr(J,B).toString(de),Ve){const ft=y.indexOf("#");-1!==ft&&(y=y.slice(0,ft)),y+=(-1===y.indexOf("?")?"?":"&")+Ve}return y}const wn=class Yi{constructor(){this.handlers=[]}use(J,B,de){return this.handlers.push({fulfilled:J,rejected:B,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)})}},Rn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hr={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:wr,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},br=typeof window<"u"&&typeof document<"u",Bn=(y=>br&&["ReactNative","NativeScript","NS"].indexOf(y)<0)(typeof navigator<"u"&&navigator.product),bi=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,gi={...n,...hr},tr=function _n(y){function J(B,de,Ke,Ve){let ft=B[Ve++];const qt=Number.isFinite(+ft),Oi=Ve>=B.length;return ft=!ft&&wt.isArray(Ke)?Ke.length:ft,Oi?(Ke[ft]=wt.hasOwnProp(Ke,ft)?[Ke[ft],de]:de,!qt):((!Ke[ft]||!wt.isObject(Ke[ft]))&&(Ke[ft]=[]),J(B,de,Ke[ft],Ve)&&wt.isArray(Ke[ft])&&(Ke[ft]=function Hn(y){const J={},B=Object.keys(y);let de;const Ke=B.length;let Ve;for(de=0;de<Ke;de++)Ve=B[de],J[Ve]=y[Ve];return J}(Ke[ft])),!qt)}if(wt.isFormData(y)&&wt.isFunction(y.entries)){const B={};return wt.forEachEntry(y,(de,Ke)=>{J(function Sn(y){return wt.matchAll(/\w+|\[(\w*)]/g,y).map(J=>"[]"===J[0]?"":J[1]||J[0])}(de),Ke,B,0)}),B}return null},qi={transitional:Rn,adapter:["xhr","http"],transformRequest:[function(J,B){const de=B.getContentType()||"",Ke=de.indexOf("application/json")>-1,Ve=wt.isObject(J);if(Ve&&wt.isHTMLForm(J)&&(J=new FormData(J)),wt.isFormData(J))return Ke&&Ke?JSON.stringify(tr(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 B.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(B,de,Ke,Ve){return gi.isNode&&wt.isBuffer(B)?(this.append(de,B.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 Oi=this.env&&this.env.FormData;return Ki(qt?{"files[]":J}:J,Oi&&new Oi,this.formSerializer)}}return Ve||Ke?(B.setContentType("application/json",!1),function wi(y,J,B){if(wt.isString(y))try{return(J||JSON.parse)(y),wt.trim(y)}catch(de){if("SyntaxError"!==de.name)throw de}return(B||JSON.stringify)(y)}(J)):J}],transformResponse:[function(J){const B=this.transitional||qi.transitional,de=B&&B.forcedJSONParsing,Ke="json"===this.responseType;if(J&&wt.isString(J)&&(de&&!this.responseType||Ke)){const ft=!(B&&B.silentJSONParsing)&&Ke;try{return JSON.parse(J)}catch(qt){if(ft)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 Zn=qi,zi=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"]),Rr=Symbol("internals");function Un(y){return y&&String(y).trim().toLowerCase()}function Qn(y){return!1===y||null==y?y:wt.isArray(y)?y.map(Qn):String(y)}function mt(y,J,B,de,Ke){if(wt.isFunction(de))return de.call(this,J,B);if(Ke&&(J=B),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,B,de){const Ke=this;function Ve(qt,Oi,Pi){const ui=Un(Oi);if(!ui)throw new Error("header name must be a non-empty string");const Hi=wt.findKey(Ke,ui);(!Hi||void 0===Ke[Hi]||!0===Pi||void 0===Pi&&!1!==Ke[Hi])&&(Ke[Hi||Oi]=Qn(qt))}const ft=(qt,Oi)=>wt.forEach(qt,(Pi,ui)=>Ve(Pi,ui,Oi));return wt.isPlainObject(J)||J instanceof this.constructor?ft(J,B):wt.isString(J)&&(J=J.trim())&&!(y=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(y.trim()))(J)?ft((y=>{const J={};let B,de,Ke;return y&&y.split("\n").forEach(function(ft){Ke=ft.indexOf(":"),B=ft.substring(0,Ke).trim().toLowerCase(),de=ft.substring(Ke+1).trim(),!(!B||J[B]&&zi[B])&&("set-cookie"===B?J[B]?J[B].push(de):J[B]=[de]:J[B]=J[B]?J[B]+", "+de:de)}),J})(J),B):null!=J&&Ve(B,J,de),this}get(J,B){if(J=Un(J)){const de=wt.findKey(this,J);if(de){const Ke=this[de];if(!B)return Ke;if(!0===B)return function Ei(y){const J=Object.create(null),B=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let de;for(;de=B.exec(y);)J[de[1]]=de[2];return J}(Ke);if(wt.isFunction(B))return B.call(this,Ke,de);if(wt.isRegExp(B))return B.exec(Ke);throw new TypeError("parser must be boolean|regexp|function")}}}has(J,B){if(J=Un(J)){const de=wt.findKey(this,J);return!(!de||void 0===this[de]||B&&!mt(0,this[de],de,B))}return!1}delete(J,B){const de=this;let Ke=!1;function Ve(ft){if(ft=Un(ft)){const qt=wt.findKey(de,ft);qt&&(!B||mt(0,de[qt],qt,B))&&(delete de[qt],Ke=!0)}}return wt.isArray(J)?J.forEach(Ve):Ve(J),Ke}clear(J){const B=Object.keys(this);let de=B.length,Ke=!1;for(;de--;){const Ve=B[de];(!J||mt(0,this[Ve],Ve,J,!0))&&(delete this[Ve],Ke=!0)}return Ke}normalize(J){const B=this,de={};return wt.forEach(this,(Ke,Ve)=>{const ft=wt.findKey(de,Ve);if(ft)return B[ft]=Qn(Ke),void delete B[Ve];const qt=J?function ni(y){return y.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(J,B,de)=>B.toUpperCase()+de)}(Ve):String(Ve).trim();qt!==Ve&&delete B[Ve],B[qt]=Qn(Ke),de[qt]=!0}),this}concat(...J){return this.constructor.concat(this,...J)}toJSON(J){const B=Object.create(null);return wt.forEach(this,(de,Ke)=>{null!=de&&!1!==de&&(B[Ke]=J&&wt.isArray(de)?de.join(", "):de)}),B}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([J,B])=>J+": "+B).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(J){return J instanceof this?J:new this(J)}static concat(J,...B){const de=new this(J);return B.forEach(Ke=>de.set(Ke)),de}static accessor(J){const de=(this[Rr]=this[Rr]={accessors:{}}).accessors,Ke=this.prototype;function Ve(ft){const qt=Un(ft);de[qt]||(function he(y,J){const B=wt.toCamelCase(" "+J);["get","set","has"].forEach(de=>{Object.defineProperty(y,de+B,{value:function(Ke,Ve,ft){return this[de].call(this,J,Ke,Ve,ft)},configurable:!0})})}(Ke,ft),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 B=J[0].toUpperCase()+J.slice(1);return{get:()=>y,set(de){this[B]=de}}}),wt.freezeMethods(je);const Ye=je;function At(y,J){const B=this||Zn,de=J||B,Ke=Ye.from(de.headers);let Ve=de.data;return wt.forEach(y,function(qt){Ve=qt.call(B,Ve,Ke.normalize(),J?J.status:void 0)}),Ke.normalize(),Ve}function ci(y){return!(!y||!y.__CANCEL__)}function Wi(y,J,B){we.call(this,y??"canceled",we.ERR_CANCELED,J,B),this.name="CanceledError"}wt.inherits(Wi,we,{__CANCEL__:!0});const ln=Wi,$n=gi.hasStandardBrowserEnv?{write:function(B,de,Ke,Ve,ft,qt){const Oi=[];Oi.push(B+"="+encodeURIComponent(de)),wt.isNumber(Ke)&&Oi.push("expires="+new Date(Ke).toGMTString()),wt.isString(Ve)&&Oi.push("path="+Ve),wt.isString(ft)&&Oi.push("domain="+ft),!0===qt&&Oi.push("secure"),document.cookie=Oi.join("; ")},read:function(B){const de=document.cookie.match(new RegExp("(^|;\\s*)("+B+")=([^;]*)"));return de?decodeURIComponent(de[3]):null},remove:function(B){this.write(B,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ri(y,J){return y&&!function Dn(y){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(y)}(J)?function Ro(y,J){return J?y.replace(/\/+$/,"")+"/"+J.replace(/^\/+/,""):y}(y,J):J}const Cn=gi.hasStandardBrowserEnv?function(){const J=/(msie|trident)/i.test(navigator.userAgent),B=document.createElement("a");let de;function Ke(Ve){let ft=Ve;return J&&(B.setAttribute("href",ft),ft=B.href),B.setAttribute("href",ft),{href:B.href,protocol:B.protocol?B.protocol.replace(/:$/,""):"",host:B.host,search:B.search?B.search.replace(/^\?/,""):"",hash:B.hash?B.hash.replace(/^#/,""):"",hostname:B.hostname,port:B.port,pathname:"/"===B.pathname.charAt(0)?B.pathname:"/"+B.pathname}}return de=Ke(window.location.href),function(ft){const qt=wt.isString(ft)?Ke(ft):ft;return qt.protocol===de.protocol&&qt.host===de.host}}():function(){return!0},Jr=function pr(y,J){y=y||10;const B=new Array(y),de=new Array(y);let ft,Ke=0,Ve=0;return J=void 0!==J?J:1e3,function(Oi){const Pi=Date.now(),ui=de[Ve];ft||(ft=Pi),B[Ke]=Oi,de[Ke]=Pi;let Hi=Ve,vn=0;for(;Hi!==Ke;)vn+=B[Hi++],Hi%=y;if(Ke=(Ke+1)%y,Ke===Ve&&(Ve=(Ve+1)%y),Pi-ft<J)return;const Cr=ui&&Pi-ui;return Cr?Math.round(1e3*vn/Cr):void 0}};function Vn(y,J){let B=0;const de=Jr(50,250);return Ke=>{const Ve=Ke.loaded,ft=Ke.lengthComputable?Ke.total:void 0,qt=Ve-B,Oi=de(qt);B=Ve;const ui={loaded:Ve,total:ft,progress:ft?Ve/ft:void 0,bytes:qt,rate:Oi||void 0,estimated:Oi&&ft&&Ve<=ft?(ft-Ve)/Oi:void 0,event:Ke};ui[J?"download":"upload"]=!0,y(ui)}}const $r={http:null,xhr:typeof XMLHttpRequest<"u"&&function(y){return new Promise(function(B,de){let Ke=y.data;const Ve=Ye.from(y.headers).normalize(),ft=y.responseType;let qt,Pi;function Oi(){y.cancelToken&&y.cancelToken.unsubscribe(qt),y.signal&&y.signal.removeEventListener("abort",qt)}if(wt.isFormData(Ke))if(gi.hasStandardBrowserEnv||gi.hasStandardBrowserWebWorkerEnv)Ve.setContentType(!1);else if(!1!==(Pi=Ve.getContentType())){const[Ti,...Qi]=Pi?Pi.split(";").map(lr=>lr.trim()).filter(Boolean):[];Ve.setContentType([Ti||"multipart/form-data",...Qi].join("; "))}let ui=new XMLHttpRequest;if(y.auth){const Ti=y.auth.username||"",Qi=y.auth.password?unescape(encodeURIComponent(y.auth.password)):"";Ve.set("Authorization","Basic "+btoa(Ti+":"+Qi))}const Hi=Ri(y.baseURL,y.url);function vn(){if(!ui)return;const Ti=Ye.from("getAllResponseHeaders"in ui&&ui.getAllResponseHeaders());(function en(y,J,B){const de=B.config.validateStatus;B.status&&de&&!de(B.status)?J(new we("Request failed with status code "+B.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(B.status/100)-4],B.config,B.request,B)):y(B)})(function(yn){B(yn),Oi()},function(yn){de(yn),Oi()},{data:ft&&"text"!==ft&&"json"!==ft?ui.response:ui.responseText,status:ui.status,statusText:ui.statusText,headers:Ti,config:y,request:ui}),ui=null}if(ui.open(y.method.toUpperCase(),ur(Hi,y.params,y.paramsSerializer),!0),ui.timeout=y.timeout,"onloadend"in ui?ui.onloadend=vn:ui.onreadystatechange=function(){!ui||4!==ui.readyState||0===ui.status&&(!ui.responseURL||0!==ui.responseURL.indexOf("file:"))||setTimeout(vn)},ui.onabort=function(){ui&&(de(new we("Request aborted",we.ECONNABORTED,y,ui)),ui=null)},ui.onerror=function(){de(new we("Network Error",we.ERR_NETWORK,y,ui)),ui=null},ui.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||Rn).clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,y,ui)),ui=null},gi.hasStandardBrowserEnv){const Ti=Cn(Hi)&&y.xsrfCookieName&&$n.read(y.xsrfCookieName);Ti&&Ve.set(y.xsrfHeaderName,Ti)}void 0===Ke&&Ve.setContentType(null),"setRequestHeader"in ui&&wt.forEach(Ve.toJSON(),function(Qi,lr){ui.setRequestHeader(lr,Qi)}),wt.isUndefined(y.withCredentials)||(ui.withCredentials=!!y.withCredentials),ft&&"json"!==ft&&(ui.responseType=y.responseType),"function"==typeof y.onDownloadProgress&&ui.addEventListener("progress",Vn(y.onDownloadProgress,!0)),"function"==typeof y.onUploadProgress&&ui.upload&&ui.upload.addEventListener("progress",Vn(y.onUploadProgress)),(y.cancelToken||y.signal)&&(qt=Ti=>{ui&&(de(!Ti||Ti.type?new ln(null,y,ui):Ti),ui.abort(),ui=null)},y.cancelToken&&y.cancelToken.subscribe(qt),y.signal&&(y.signal.aborted?qt():y.signal.addEventListener("abort",qt)));const Cr=function hn(y){const J=/^([-+\w]{1,25})(:?\/\/|:)/.exec(y);return J&&J[1]||""}(Hi);Cr&&-1===gi.protocols.indexOf(Cr)?de(new we("Unsupported protocol "+Cr+":",we.ERR_BAD_REQUEST,y)):ui.send(Ke||null)})}};wt.forEach($r,(y,J)=>{if(y){try{Object.defineProperty(y,"name",{value:J})}catch{}Object.defineProperty(y,"adapterName",{value:J})}});const Ir=y=>`- ${y}`,zn=y=>wt.isFunction(y)||null===y||!1===y,Sr={getAdapter:y=>{y=wt.isArray(y)?y:[y];const{length:J}=y;let B,de;const Ke={};for(let Ve=0;Ve<J;Ve++){let ft;if(B=y[Ve],de=B,!zn(B)&&(de=$r[(ft=String(B)).toLowerCase()],void 0===de))throw new we(`Unknown adapter '${ft}'`);if(de)break;Ke[ft||"#"+Ve]=de}if(!de){const Ve=Object.entries(Ke).map(([qt,Oi])=>`adapter ${qt} `+(!1===Oi?"is not supported by the environment":"is not available in the build"));let ft=J?Ve.length>1?"since :\n"+Ve.map(Ir).join("\n"):" "+Ir(Ve[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+ft,"ERR_NOT_SUPPORT")}return de},adapters:$r};function sr(y){if(y.cancelToken&&y.cancelToken.throwIfRequested(),y.signal&&y.signal.aborted)throw new ln(null,y)}function Br(y){return sr(y),y.headers=Ye.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),Sr.getAdapter(y.adapter||Zn.adapter)(y).then(function(de){return sr(y),de.data=At.call(y,y.transformResponse,de),de.headers=Ye.from(de.headers),de},function(de){return ci(de)||(sr(y),de&&de.response&&(de.response.data=At.call(y,y.transformResponse,de.response),de.response.headers=Ye.from(de.response.headers))),Promise.reject(de)})}const fr=y=>y instanceof Ye?y.toJSON():y;function qr(y,J){J=J||{};const B={};function de(Pi,ui,Hi){return wt.isPlainObject(Pi)&&wt.isPlainObject(ui)?wt.merge.call({caseless:Hi},Pi,ui):wt.isPlainObject(ui)?wt.merge({},ui):wt.isArray(ui)?ui.slice():ui}function Ke(Pi,ui,Hi){return wt.isUndefined(ui)?wt.isUndefined(Pi)?void 0:de(void 0,Pi,Hi):de(Pi,ui,Hi)}function Ve(Pi,ui){if(!wt.isUndefined(ui))return de(void 0,ui)}function ft(Pi,ui){return wt.isUndefined(ui)?wt.isUndefined(Pi)?void 0:de(void 0,Pi):de(void 0,ui)}function qt(Pi,ui,Hi){return Hi in J?de(Pi,ui):Hi in y?de(void 0,Pi):void 0}const Oi={url:Ve,method:Ve,data:Ve,baseURL:ft,transformRequest:ft,transformResponse:ft,paramsSerializer:ft,timeout:ft,timeoutMessage:ft,withCredentials:ft,adapter:ft,responseType:ft,xsrfCookieName:ft,xsrfHeaderName:ft,onUploadProgress:ft,onDownloadProgress:ft,decompress:ft,maxContentLength:ft,maxBodyLength:ft,beforeRedirect:ft,transport:ft,httpAgent:ft,httpsAgent:ft,cancelToken:ft,socketPath:ft,responseEncoding:ft,validateStatus:qt,headers:(Pi,ui)=>Ke(fr(Pi),fr(ui),!0)};return wt.forEach(Object.keys(Object.assign({},y,J)),function(ui){const Hi=Oi[ui]||Ke,vn=Hi(y[ui],J[ui],ui);wt.isUndefined(vn)&&Hi!==qt||(B[ui]=vn)}),B}const eo="1.6.1",Dr={};["object","boolean","number","function","string","symbol"].forEach((y,J)=>{Dr[y]=function(de){return typeof de===y||"a"+(J<1?"n ":" ")+y}});const Ao={};Dr.transitional=function(J,B,de){function Ke(Ve,ft){return"[Axios v"+eo+"] Transitional option '"+Ve+"'"+ft+(de?". "+de:"")}return(Ve,ft,qt)=>{if(!1===J)throw new we(Ke(ft," has been removed"+(B?" in "+B:"")),we.ERR_DEPRECATED);return B&&!Ao[ft]&&(Ao[ft]=!0,console.warn(Ke(ft," has been deprecated since v"+B+" and will be removed in the near future"))),!J||J(Ve,ft,qt)}};const Co={assertOptions:function an(y,J,B){if("object"!=typeof y)throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const de=Object.keys(y);let Ke=de.length;for(;Ke-- >0;){const Ve=de[Ke],ft=J[Ve];if(ft){const qt=y[Ve],Oi=void 0===qt||ft(qt,Ve,y);if(!0!==Oi)throw new we("option "+Ve+" must be "+Oi,we.ERR_BAD_OPTION_VALUE)}else if(!0!==B)throw new we("Unknown option "+Ve,we.ERR_BAD_OPTION)}},validators:Dr},ir=Co.validators;class gr{constructor(J){this.defaults=J,this.interceptors={request:new wn,response:new wn}}request(J,B){"string"==typeof J?(B=B||{}).url=J:B=J||{},B=qr(this.defaults,B);const{transitional:de,paramsSerializer:Ke,headers:Ve}=B;void 0!==de&&Co.assertOptions(de,{silentJSONParsing:ir.transitional(ir.boolean),forcedJSONParsing:ir.transitional(ir.boolean),clarifyTimeoutError:ir.transitional(ir.boolean)},!1),null!=Ke&&(wt.isFunction(Ke)?B.paramsSerializer={serialize:Ke}:Co.assertOptions(Ke,{encode:ir.function,serialize:ir.function},!0)),B.method=(B.method||this.defaults.method||"get").toLowerCase();let ft=Ve&&wt.merge(Ve.common,Ve[B.method]);Ve&&wt.forEach(["delete","get","head","post","put","patch","common"],Ti=>{delete Ve[Ti]}),B.headers=Ye.concat(ft,Ve);const qt=[];let Oi=!0;this.interceptors.request.forEach(function(Qi){"function"==typeof Qi.runWhen&&!1===Qi.runWhen(B)||(Oi=Oi&&Qi.synchronous,qt.unshift(Qi.fulfilled,Qi.rejected))});const Pi=[];this.interceptors.response.forEach(function(Qi){Pi.push(Qi.fulfilled,Qi.rejected)});let ui,vn,Hi=0;if(!Oi){const Ti=[Br.bind(this),void 0];for(Ti.unshift.apply(Ti,qt),Ti.push.apply(Ti,Pi),vn=Ti.length,ui=Promise.resolve(B);Hi<vn;)ui=ui.then(Ti[Hi++],Ti[Hi++]);return ui}vn=qt.length;let Cr=B;for(Hi=0;Hi<vn;){const Ti=qt[Hi++],Qi=qt[Hi++];try{Cr=Ti(Cr)}catch(lr){Qi.call(this,lr);break}}try{ui=Br.call(this,Cr)}catch(Ti){return Promise.reject(Ti)}for(Hi=0,vn=Pi.length;Hi<vn;)ui=ui.then(Pi[Hi++],Pi[Hi++]);return ui}getUri(J){return ur(Ri((J=qr(this.defaults,J)).baseURL,J.url),J.params,J.paramsSerializer)}}wt.forEach(["delete","get","head","options"],function(J){gr.prototype[J]=function(B,de){return this.request(qr(de||{},{method:J,url:B,data:(de||{}).data}))}}),wt.forEach(["post","put","patch"],function(J){function B(de){return function(Ve,ft,qt){return this.request(qr(qt||{},{method:J,headers:de?{"Content-Type":"multipart/form-data"}:{},url:Ve,data:ft}))}}gr.prototype[J]=B(),gr.prototype[J+"Form"]=B(!0)});const Kr=gr;class mo{constructor(J){if("function"!=typeof J)throw new TypeError("executor must be a function.");let B;this.promise=new Promise(function(Ve){B=Ve});const de=this;this.promise.then(Ke=>{if(!de._listeners)return;let Ve=de._listeners.length;for(;Ve-- >0;)de._listeners[Ve](Ke);de._listeners=null}),this.promise.then=Ke=>{let Ve;const ft=new Promise(qt=>{de.subscribe(qt),Ve=qt}).then(Ke);return ft.cancel=function(){de.unsubscribe(Ve)},ft},J(function(Ve,ft,qt){de.reason||(de.reason=new ln(Ve,ft,qt),B(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 B=this._listeners.indexOf(J);-1!==B&&this._listeners.splice(B,1)}static source(){let J;return{token:new mo(function(Ke){J=Ke}),cancel:J}}}const xo=mo,Mo={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(Mo).forEach(([y,J])=>{Mo[J]=y});const Fo=Mo,An=function Nr(y){const J=new Kr(y),B=ct(Kr.prototype.request,J);return wt.extend(B,Kr.prototype,J,{allOwnKeys:!0}),wt.extend(B,J,null,{allOwnKeys:!0}),B.create=function(Ke){return Nr(qr(y,Ke))},B}(Zn);An.Axios=Kr,An.CanceledError=ln,An.CancelToken=xo,An.isCancel=ci,An.VERSION=eo,An.toFormData=Ki,An.AxiosError=we,An.Cancel=An.CanceledError,An.all=function(J){return Promise.all(J)},An.spread=function ao(y){return function(B){return y.apply(null,B)}},An.isAxiosError=function Tr(y){return wt.isObject(y)&&!0===y.isAxiosError},An.mergeConfig=qr,An.AxiosHeaders=Ye,An.formToJSON=y=>tr(wt.isHTMLForm(y)?new FormData(y):y),An.getAdapter=Sr.getAdapter,An.HttpStatusCode=Fo,An.default=An;const ar=An;let lo=(()=>{class y{initMap(){this.map=Je.map("map",{center:this.centroid,zoom:12}),Je.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),Je.marker(this.centroid).addTo(this.map)}constructor(B,de,Ke,Ve){this.commonService=B,this.titleService=de,this.activeRoute=Ke,this.location=Ve,this.locationName="",this.titleService.changeTitle("HISTORY"),this.commonService.setNavigatedPath("/location/location_map")}ngOnInit(){this.activeRoute.paramMap.subscribe(B=>{this.userLocationId=B.get("userLocationId");const de=B.get("latitude"),Ke=B.get("longitude");this.addedUserName=B.get("addedUserName"),this.locationDate=B.get("locationDate"),this.locationTime=B.get("locationTime"),this.latitude=parseFloat(de),this.longitude=parseFloat(Ke),this.centroid=[this.latitude,this.longitude],this.initMap(),this.getLocationName(this.centroid[0],this.centroid[1])})}goBack(){this.location.back()}getLocationName(B,de){ar.get(`https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=${B}&lon=${de}`).then(Ve=>{if(Ve.data&&Ve.data.address){const{address:ft}=Ve.data,qt=[];ft.road&&qt.push(ft.road),ft.suburb&&qt.push(ft.suburb),ft.city&&qt.push(ft.city),ft.town&&qt.push(ft.town),ft.village&&qt.push(ft.village),ft.county&&qt.push(ft.county),ft.state&&qt.push(ft.state),ft.country&&qt.push(ft.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,Ke){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 Ke.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(Ke.addedUserName),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate(Ke.locationDate),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(Ke.locationTime),u.\u0275\u0275advance(6),u.\u0275\u0275textInterpolate(Ke.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})(),po=(()=>{class y{constructor(B,de,Ke,Ve){this.router=B,this.userService=de,this.commonService=Ke,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,Ke){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 oi,rr=a(3472),yr=a(9066),to=a(3634),Yn=a(9792),Bo=a(2037),mn=a(9704),Kn=a(9282),rt=a(2684),kt=a(3048),D=a(9209),ae=a(7820),_e=a(5550);function tt(y,J){if(1&y&&u.\u0275\u0275element(0,"img",21),2&y){const B=u.\u0275\u0275nextContext();u.\u0275\u0275propertyInterpolate("src",B.bannerImgUrl,u.\u0275\u0275sanitizeUrl)}}function St(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"p")(1,"span",22),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()()),2&y){const B=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(B.usernameExistsError)}}function ri(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 B=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(B.errorMessage)}}function Si(y,J){if(1&y&&(u.\u0275\u0275elementStart(0,"p")(1,"span",22),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()()),2&y){const B=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(B.successMessage)}}let bn=(()=>{class y{static#e=this.PUSH_TOKEN_LOCAL_STORAGE_KEY="pushtoken";constructor(B,de,Ke,Ve,ft,qt,Oi,Pi,ui,Hi,vn,Cr,Ti,Qi,lr,_r,yn,Wn,Eo,Ur){this.dataService=B,this.categoryService=de,this.device=Ke,this.title=Ve,this.push=ft,this.subscription=qt,this.appDataService=Oi,this.messageService=Pi,this.ngZone=ui,this.preventScreenshot=Hi,this.imageCacheService=vn,this.swPush=Cr,this.subscriptionService=Ti,this.router=Qi,this.commonService=lr,this.userService=_r,this.el=yn,this.renderer=Wn,this.articleService=Eo,this.toastr=Ur,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),oi=this,this.title.setLocation("home"),this.messageService.sendMessage({loadImageCount:-1}),this.dataService.initialImageCount=0,this.dataService.hideImageLoadingSpinner(),window.addEventListener("beforeinstallprompt",Xn=>{this.promptEvent=Xn,this.isInstallAvailable=!0}),window.addEventListener("appinstalled",()=>{this.isInstallAvailable=!1}),this.bannerImgUrl=this.commonService.getlocationBannerUrl(),this.bannerImgUrl||this.commonService.getLocationBanner().subscribe(Xn=>{this.bannerImgUrl=Xn&&null!=Xn&&Xn.length?Xn:"assets/images/banner.png",this.commonService.setlocationBannerUrl(this.bannerImgUrl)},Xn=>{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(B){if("loggedLocationUser"===B.key){let de=localStorage.getItem("loggedLocationUser");de&&"null"!=de&&(this.userService.logedInUserId=JSON.parse(de),this.userService.getAllAddedUsers().subscribe(Ke=>{this.commonService.setAddedUsers(Ke?.addedUsers)}))}else"isAlreadySubscribedForLBS"===B.key&&this.commonService.checkLocalStorage()}onScroll(){if(this.isInstallAvailable&&!this.ishidePopup){$(".location-pwa-install-modal").modal("show");const B=this.el.nativeElement.querySelector(".container-div");this.renderer.setStyle(B,"height","100vh")}}ngOnInit(){this.appDataService.getPublishDetails().subscribe(B=>{if(this.appPublishDetails=B,B){this.isFreeApp=B.isFreeApp;const de=B.operators.filter(Ke=>"SUSPENDED"===Ke.status||"TERMINATED"===Ke.status||"DELETED"===Ke.status);B&&"FREE"!==B.operators[0].operator&&de.length===B.operators.length&&(this.dataService.isFreeCategoryViewAvailable=!1,this.dataService.displayMessage=B.operators.filter(Ve=>"SUSPENDED"===Ve.status).length===B.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(B=>{this.newArticleNotificationCount=B}),this.dataService.isInMessageConversation.subscribe(B=>{this.isInMessageConversation=B}),this.appDataService.getRenewalIntervals().subscribe(B=>{this.dataService.renewalIntervals=B,this.renewalIntervals=this.dataService.renewalIntervals}),this.isFromCMSAppView="1"==localStorage.getItem(this.appId+"_isFromCMSAppView")}checkAddedNameValid(B){return!B||B.length>30}addUserName(){var B=this;return(0,Qe.Z)(function*(){console.log("Added Name: ",B.addedUserName),B.usernameExistsError="";let de=B.commonService.getMsisdnLocally();if(de){const Ke={appId:B.appId,userName:B.addedUserName.trim(),msisdn:B.getFormattedMsisdn(de.trim())};let Ve=yield B.commonService.checkRegistrationStatus();if(console.log("isRegisteredUser 2",Ve),Ve){const ft={userName:B.addedUserName.trim()};B.userService.updateProfileData(ft).subscribe(qt=>{$("#addUserNameModel").modal("hide"),B.commonService.openAddingTrackUserModel()},qt=>{console.error("Failed to update profile",qt)})}else B.userService.registerUser(Ke).subscribe(ft=>{B.commonService.setLoggedInUserId(ft?.user?.id?ft.user.id:null),$("#addUserNameModel").modal("hide"),B.commonService.openAddingTrackUserModel()},ft=>{console.error("Error: ",ft),B.usernameExistsError=ft.error})}else B.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 B={userName:this.addedUserName.trim()};this.userService.checkUsernameExists(B).subscribe(de=>{this.usernameExistsError=de?"Username already exists":null},de=>{console.error("Something went wrong:",de),this.usernameExistsError="Error checking username"})}addTrackUserName(){var B=this;return(0,Qe.Z)(function*(){B.addedTrackUserName?(B.showTrackUsernameError=!1,B.errorMessage="",B.successMessage="",B.userService.addUser(B.addedTrackUserName).subscribe(de=>{!de?.isError&&de?.data?(B.addedTrackUserName="",B.commonService.setAddedUsers(de.data),$("#addTrackUserNameModel").modal("hide"),B.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&&""!==B.addedTrackUserName&&(B.errorMessage=de.msg)},de=>{console.error("Error while adding user:",de),de?.error?.msg?B.errorMessage=de.error.msg:($("#addTrackUserNameModel").modal("hide"),B.toastr.error(de.error,"Error!",{timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"}))})):B.showTrackUsernameError=!0})()}navigate(B){this.commonService.navigate(B)}getFormattedMsisdn(B){return console.log("msisdn : ",B),B.length>=9?"94"+B.substring(B.length-9):"94"+B}checkSubAndReg(){var B=this;return(0,Qe.Z)(function*(){!B.commonService.getLoggedUserIdLocally()&&!B.isFromCMSAppView&&(B.commonService.navigate("initCheck"),B.commonService.listenOnLocalStorage(),B.userService.listenOnLocalStorage())})()}enableOrDisableScreenshots(B){B?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?oi.loadArticleOnReceivePushMessage(de.data.category,de.data.category.articleId):de.data.category&&de.data.category.categoryId&&de.data.category.name&&oi.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 B=this.el.nativeElement.querySelector(".container-div");this.renderer.setStyle(B,"height","100vh")}}getDeviceUUID(){var B=localStorage.getItem(this.localStorageUUIDString);this.dataService.isFromBrowser()?(B||(B=this.dataService.getRandomId(),localStorage.setItem(oi.localStorageUUIDString,B)),oi.uuid=B):this.dataService.isIonicApp()?B?this.deviceUUIDCallback(B):this.device.getUUID(oi.deviceUUIDCallback):document.addEventListener("deviceready",()=>{this.deviceUUIDCallback(B||device.uuid)},!1)}deviceUUIDCallback(B){!localStorage.getItem(oi.localStorageUUIDString)&&B&&localStorage.setItem(oi.localStorageUUIDString,B),oi.subscription.getSubscriptionStatus({appId:oi.appId,uuId:B}).subscribe(Ve=>console.log("lbsTempCmp.componenet.getSubscriptionStatus=> ",Ve)),oi.uuid=B,oi.generatePushToken()}generatePushToken(){console.log("Call generatePushToken in homepage"),oi.push.getToken(oi.pushSuccessCallback,oi.pushErrorCallback)}pushSuccessCallback(B){console.log("pushSuccessCallback Token: "+B),B&&null!==B?localStorage[y.PUSH_TOKEN_LOCAL_STORAGE_KEY]=B:localStorage.removeItem(y.PUSH_TOKEN_LOCAL_STORAGE_KEY),oi.push.onTokenRefresh(oi.pushTokenRefreshSuccessCallback,oi.pushTokenRefreshErrorCallback),oi.postDeviceToken("deviceId="+B+"&uuid="+oi.uuid)}pushErrorCallback(B){console.log("pushErrorCallback: "+B)}pushTokenRefreshSuccessCallback(B){console.log("pushTokenRefreshSuccessCallback: "+B),localStorage[y.PUSH_TOKEN_LOCAL_STORAGE_KEY]!==B&&oi.postDeviceToken("deviceId="+B+"&uuid="+oi.uuid+"&action=NEW_TOKEN")}pushTokenRefreshErrorCallback(B){console.log("pushTokenRefreshErrorCallback: "+B)}postDeviceToken(B){try{B+="&appversion="+oi.dataService.getAPKVersion(window.navigator.userAgent),oi.categoryService.sendDeviceToken(B).subscribe(de=>{console.log("Device token persisted successfully"),oi.callOnNotificationOpen()},de=>{console.log("Error while sending the device token to be persist.Error: "+de),oi.callOnNotificationOpen()})}catch(de){console.log("Exception in pushSuccessCallback: "+de)}}callOnNotificationOpen(){this.dataService.isIonicApp()?oi.push.onNotificationOpen(oi.onNotificationOpenSuccessCallback,oi.onNotificationOpenErrorCallback):window.FirebasePlugin.onMessageReceived(function(B){oi.ngZone.run(()=>{oi.onNotificationOpenSuccessCallback(B)})},function(B){oi.onNotificationOpenErrorCallback(B)})}onNotificationOpenSuccessCallback(B){B=this.configRecievedPushMessage(B),this.dataService.pushMessage=B.body,this.dataService.inAppNotificationInfo=B.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"===B.type)oi.onArticleMessageReceivedHandler(B);else if(!B.isInAppMsg&&B.tap&&B.categoryId&&B.articleId){const de=B.data.category;de.category=B.data.category,oi.loadArticleOnReceivePushMessage(de,B?.articleId)}else if(!B.isInAppMsg&&B.tap&&B.categoryId&&!B.articleId)oi.onCategoryClicked({data:{id:B?.categoryId,isFree:!!B?.isFreeCat,name:B?.categoryName,categoryType:B?.categoryType,categoryImageUrl:B?.categoryImageUrl?B?.categoryImageUrl:""}});else if(!B.tap&&B.body||B.isInAppMsg)if(B.categoryId&&B.articleId){const de=B.data.category;de.category=B.data.category,oi.loadArticleOnReceivePushMessage(de,B?.articleId)}else B.categoryId&&oi.onCategoryClicked({data:{id:B?.categoryId,isFree:!!B?.isFreeCat,name:B?.categoryName,categoryType:B?.categoryType,categoryImageUrl:B?.categoryImageUrl?B?.categoryImageUrl:""}})})})}configRecievedPushMessage(B){return B&&((B=this.turnIntoProperJsObject(B)).body?this.dataService.pushMessage=B.body:B.text&&(this.dataService.pushMessage=B.text,B.body=B.text?B.text:""),B.category&&(B.data={...B.data,category:JSON.parse(B.category)},B.data.category.categoryId=B.categoryId,B.data.category.articleId=B.articleId,delete B.category),B.popUpPushInfo&&(B.data={...B.data,popUpPushInfo:JSON.parse(B.popUpPushInfo)},this.dataService.inAppNotificationInfo="{}"!=B.popUpPushInfo?B.data.popUpPushInfo:null,delete B.popUpPushInfo)),console.log("LocationTemplateComponent: onNotificationOpenSuccessCallback: notification: ",B),B}turnIntoProperJsObject(B){for(let de in B)B.hasOwnProperty(de)&&("null"===B[de]?B[de]=null:"false"===B[de]?B[de]=!1:"true"===B[de]&&(B[de]=!0));return B}onNotificationOpenErrorCallback(B){console.log("onNotificationOpenErrorCallback=>"+B)}imageLoaded(B){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(B=>{B||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(B=>{"accepted"===B.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(B,de){this.isFreeApp||B?.category?.isFree||B?.isFree?this.loadArticle(B.id,de):this.navigateShop("shop",B.id,B.name,B.imageUrl,B.isFree,de)}loadArticle(B,de){this.router.navigate(["product","fromPushMessage",B,de])}navigateShop(B,de,Ke,Ve,ft,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(Oi=>{this.checkSubOnNavigateShop(B,Oi?.id,Oi?.name,Oi?.imageUrl,qt,Oi?.categoryType)},Oi=>{console.error(Oi)}))}checkSubOnNavigateShop(B,de,Ke,Ve,ft,qt){this.subMessageNavigateShop=this.subscriptionService.getSubscriptionMessage().subscribe(Pi=>{if(Pi.message.status===rr.Yg.SUB_RESPONSE&&"ERROR"!=Pi.message.data.status){this.subMessageNavigateShop.unsubscribe();const Hi=Pi.message.data.data;!Hi.isError&&("SUBSCRIBED"==Hi.subscriptionStatus||Hi.isValid)&&this.checkSubOnNavigateShopContinue(Pi.message.data.data,B,de,Ke,Ve,ft)}});const Oi=new rr.Mw;Oi.status=rr.Yg.SUB_REQUEST,Oi.data.data={categoryId:de,categoryName:Ke,categoryType:qt},this.subscriptionService.sendSubscriptionMessage({message:Oi})}checkSubOnNavigateShopContinue(B,de,Ke,Ve,ft,qt){this.subscriptionStatus=B.subscriptionStatus,this.dataService.subscriptionStatus=B.subscriptionStatus,this.subscriptionStatus===this.dataService.STATUS_SUBSCRIBED||B.isValid?(this.manageArticleUser(),this.dataService.catId=Ke,this.isFromPushMessage?(this.isFromPushMessage=!1,this.loadArticle(Ke,qt)):this.router.navigate(["/"+de,Ke,Ve,ft])):(this.isFromPushMessage=!1,this.dataService.subUserArticleData.id=Ke,this.dataService.subUserArticleData.name=Ve,this.dataService.subUserArticleData.image=ft,this.dataService.pushMessageAttachedArticleId=qt,this.isSubscribing=!1)}onCategoryClicked(B){if(this.dataService.isSuspendedApp)$("#appStatusModel").modal("show");else{this.manageArticleUser(),this.isSubscribing=!1;const de=B.data,Ke={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:Ke}):this.checkSubOnCategoryClicked({categoryID:de.id,categoryName:de.name,categoryType:de.categoryType},Ke)}}checkSubOnCategoryClicked(B,de){if(this.isCheckSubOnCategoryClickedLocked)return;this.isCheckSubOnCategoryClickedLocked=!0;const Ke=setTimeout(()=>this.isCheckSubOnCategoryClickedLocked=!1,2e3),Ve=this.subscriptionService.getSubscriptionMessage().subscribe(qt=>{let Oi="ERROR"==qt.message.data.status&&!0;if(qt.message.status!==rr.Yg.SUB_RESPONSE||Oi)qt.message.status===rr.Yg.SUB_RESPONSE&&Oi&&qt.message.data.data.subscriptionStatus==rr.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(Ke));else{Ve.unsubscribe();const Pi=qt.message.data.data;!Pi.isError&&("SUBSCRIBED"==Pi.subscriptionStatus||Pi.isValid)&&(this.checkSubOnCategoryClickedContinue(qt.message.data.data,de),this.isCheckSubOnCategoryClickedLocked=!1,clearTimeout(Ke))}}),ft=new rr.Mw;ft.status=rr.Yg.SUB_REQUEST,ft.data.data={categoryId:B.categoryID,categoryName:B.categoryName,categoryType:B.categoryType},this.subscriptionService.sendSubscriptionMessage({message:ft})}checkSubOnCategoryClickedContinue(B,de){B.isValid||(this.subscriptionStatus=B.subscriptionStatus,this.dataService.subscriptionStatus=B.subscriptionStatus,this.messageService.sendMessage({subscription:B})),this.isSubscribing=!1,this.manageArticleUser(),this.router.navigate([""],{queryParams:de})}manageArticleUser(){let B=localStorage.getItem(this.appId+"ArticleUser");const de=JSON.parse(B),Ke=localStorage.getItem(this.localStorageUUIDString),Ve=localStorage.getItem(this.appId+"msisdn");Ke&&this.articleService.getArticleUser({params:{id:de?de.id:null,appId:this.appId,deviceUUID:Ke,MSISDN:Ve||null}}).subscribe(qt=>{"SUCCESS"===qt.status&&localStorage.setItem(this.appId+"ArticleUser",JSON.stringify(qt.data))},qt=>{console.error(qt)})}onArticleMessageReceivedHandler(B){this.isInMessageConversation||(this.dataService.changeShowArticleNotification(!0),this.dataService.changeArticleNotificationsCount(this.newArticleNotificationCount+1),this.dataService.changeLatestArticleNotification(B))}static#t=this.\u0275fac=function(de){return new(de||y)(u.\u0275\u0275directiveInject(yr.V),u.\u0275\u0275directiveInject(to.G),u.\u0275\u0275directiveInject(Yn.G),u.\u0275\u0275directiveInject(w.y),u.\u0275\u0275directiveInject(Bo.G),u.\u0275\u0275directiveInject(mn.E),u.\u0275\u0275directiveInject(Kn.U),u.\u0275\u0275directiveInject(rt.e),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(kt.W),u.\u0275\u0275directiveInject(D.y),u.\u0275\u0275directiveInject(ae.Mk),u.\u0275\u0275directiveInject(rr.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(I._W))};static#i=this.\u0275cmp=u.\u0275\u0275defineComponent({type:y,selectors:[["app-location-template"]],hostBindings:function(de,Ke){1&de&&u.\u0275\u0275listener("storage",function(ft){return Ke.onLocalStorageChange(ft)},!1,u.\u0275\u0275resolveWindow)("scroll",function(){return Ke.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,Ke){1&de&&(u.\u0275\u0275elementStart(0,"div",0)(1,"div",1),u.\u0275\u0275template(2,tt,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 Ke.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 Ke.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(ft){return Ke.addedUserName=ft})("input",function(){return Ke.checkUsername()}),u.\u0275\u0275elementEnd()(),u.\u0275\u0275template(33,St,3,1,"p",16),u.\u0275\u0275element(34,"br"),u.\u0275\u0275elementStart(35,"button",17),u.\u0275\u0275listener("click",function(){return Ke.addUserName()}),u.\u0275\u0275text(36,"Save"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(37,"button",18),u.\u0275\u0275listener("click",function(){return Ke.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(ft){return Ke.addedTrackUserName=ft}),u.\u0275\u0275elementEnd()(),u.\u0275\u0275template(57,ri,3,0,"p",16),u.\u0275\u0275template(58,xi,3,1,"p",16),u.\u0275\u0275template(59,Si,3,1,"p",16),u.\u0275\u0275element(60,"br"),u.\u0275\u0275elementStart(61,"button",17),u.\u0275\u0275listener("click",function(){return Ke.addTrackUserName()}),u.\u0275\u0275text(62,"Add"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(63,"button",18),u.\u0275\u0275listener("click",function(){return Ke.navigate("/location/home")}),u.\u0275\u0275text(64,"Exit"),u.\u0275\u0275elementEnd()()()()()),2&de&&(u.\u0275\u0275advance(2),u.\u0275\u0275property("ngIf",!!Ke.bannerImgUrl),u.\u0275\u0275advance(30),u.\u0275\u0275property("ngModel",Ke.addedUserName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ke.usernameExistsError),u.\u0275\u0275advance(2),u.\u0275\u0275property("disabled",Ke.checkAddedNameValid(Ke.addedUserName)||null!=Ke.usernameExistsError),u.\u0275\u0275advance(21),u.\u0275\u0275property("ngModel",Ke.addedTrackUserName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ke.showTrackUsernameError&&!Ke.addedTrackUserName),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ke.errorMessage&&!Ke.successMessage),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Ke.successMessage&&!Ke.errorMessage),u.\u0275\u0275advance(2),u.\u0275\u0275property("disabled",Ke.checkAddedNameValid(Ke.addedTrackUserName)||0==Ke.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 B=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275elementStart(1,"tr",5),u.\u0275\u0275listener("click",function(){const Ve=u.\u0275\u0275restoreView(B).$implicit,ft=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(ft.getLocationView(Ve.id,Ve.lat,Ve.lon,Ve.userName,ft.getLocationDate(Ve),ft.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 B=J.$implicit,de=u.\u0275\u0275nextContext();u.\u0275\u0275advance(5),u.\u0275\u0275textInterpolate1(" ",B&&B.userName&&""!==B.userName?B.userName:"Inactive User"," "),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate1(" ",de.getLocationDate(B)," ")}}const co=[{path:"",component:bn,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(B,de,Ke,Ve){this.router=B,this.userService=de,this.commonService=Ke,this.titleService=Ve,this.locationHistory=[],this.titleService.changeTitle("HISTORY"),this.commonService.setNavigatedPath("/location/location_history")}ngOnInit(){this.getHistory()}getHistory(){this.userService.getAllHistory().subscribe(B=>{this.locationHistory=B&&B.length?B.reverse():[]},B=>{console.error("Error retrieving location history:",B)})}getLocationDate(B){const de=new Date(B.locatedTime);return`${this.padZero(de.getDate())}/${this.padZero(de.getMonth()+1)}/${de.getFullYear()}`}getLocationTime(B){const de=new Date(B.locatedTime),Ke=de.getHours(),Ve=de.getMinutes(),ft=Ke>=12?"PM":"AM";return`${this.padZero(Ke%12||12)}:${this.padZero(Ve)} ${ft}`}padZero(B){return B.toString().padStart(2,"0")}getLocationView(B,de,Ke,Ve,ft,qt){this.router.navigate(["/location/location-map",{userLocationId:B,latitude:de,longitude:Ke,addedUserName:Ve,locationDate:ft,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,Ke){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",Ke.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:lo},{path:"information",component:po},{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(co),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,I.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 I{constructor(F,Z,le,q,X,K,N){this.http=F,this.router=Z,this.subscriptionService=le,this.messageService=q,this.dataService=X,this.subscription=K,this.toastr=N,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 F=this;$("#subscribedModelSubComp").on("show.bs.modal",()=>{F.setSubscribedModelSubCompModalOpenStatus(!0)}).on("hidden.bs.modal",function(){F.setSubscribedModelSubCompModalOpenStatus(!1),F.setSubPopupOffStatus(!0)})}checkLocalStorage(){let F=localStorage.getItem("isAlreadySubscribedForLBS");F&&"null"!=F&&JSON.parse(F)&&(this.checkSubscriptionStatus(),clearInterval(this.subRegLocalStorageCheck),localStorage.removeItem("isAlreadySubscribedForLBS"))}updatePushMsgArray(F){this.recivedLbsPushMsgs=[F,...this.getLbsPushMsgsArray()],this.updateMessageCount(this.recivedLbsPushMsgs.length)}getLbsPushMsgsArray(){return this.recivedLbsPushMsgs}getLbsLatestPushMsg(){if(this.recivedLbsPushMsgs&&this.recivedLbsPushMsgs.length){const F=this.recivedLbsPushMsgs.shift();return this.updateMessageCount(this.recivedLbsPushMsgs.length),F}return this.updateMessageCount(0),null}updateMessageCount(F){this.lbsPushMsgCount$.next(F)}listenOnLbsPushMsgCount(){return this.lbsPushMsgCount}checkIsFromCmsView(){return!!this.dataService.isFromCMSAppView}setNavigatedPath(F){this.navigatedPath$.next(F)}getNavigatedPath(){return this.navigatedPath}setSubProgress(F){!1===F&&this.isLbsSubOtcChecking?(this.isLbsSubOtcChecking=!1,this.isSubscribing$.next(F)):this.isSubscribing$.next(F)}getSubProgress(){return this.isSubscribing}setMsisdn(F){localStorage.setItem(this.appId+"msisdn",F),this.msisdn$.next(F)}getMsisdn(){return this.msisdn}getMsisdnLocally(){let F=localStorage.getItem(this.appId+"msisdn");return F&&"null"!=F?F:null}setLoggedInUserId(F){localStorage.setItem(this.appId+"loggedLocationUser",F),this.logedInUserId$.next(F)}getlocationBannerUrl(){return this.locationBannerUrl}setlocationBannerUrl(F){this.locationBannerUrl=F}getLoggedInUserId(){return this.logedInUserId}getLoggedUserIdLocally(){let F=localStorage.getItem(this.appId+"loggedLocationUser");return F&&"null"!==F?F:null}setAddedUsers(F){this.addedUsers$.next(F)}getAddedUsers(){return this.addedUsers}setSubPopupOffStatus(F){this.subSucessPopupOff$.next(F)}getSubPopupOffStatus(){return this.subSucessPopupOff}setSubscribedModelSubCompModalOpenStatus(F){this.issubscribedModelSubCompModalOpen$.next(F)}getSubscribedModelSubCompModalOpenStatus(){return this.issubscribedModelSubCompModalOpen}getCurrentTimestamp(){return(new Date).getTime().toString()}updateLocalLbsOtcCatId(F){this.oneTimeLbsMockCatId=F}getLastStoredLbsOtcCatId(){return this.oneTimeLbsMockCatId}fireOtcChargingRequest(F){return this.isLbsSubOtcChecking=!0,new Promise(Z=>{let le=`${this.appId}_${this.getLastStoredLbsOtcCatId()}_msisdn`;localStorage.removeItem(le),this.updateLocalLbsOtcCatId("");let q=`lbs_${F}_${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 F=new v.Mw;F.status=v.Yg.SUB_REQUEST;const Z=new v.yh;Z.data={categoryId:this.oneTimeLbsMockCatId,categoryName:"",categoryType:"OTC"},F.data=Z,this.subscriptionService.sendSubscriptionMessage({message:F})}requestForSubscription(){this.setSubProgress(!0);const F=new v.Mw;F.status=v.Yg.SUB_REQUEST,this.subscriptionService.sendSubscriptionMessage({message:F})}checkSubscriptionStatus(){return this.isLbsSubOtcChecking=!0,new Promise(F=>{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?(F(!1),this.subscriptionStatus=le.message.data.data.subscriptionStatus,this.dataService.subscriptionStatus=le.message.data.data.subscriptionStatus,this.messageService.sendMessage({subscription:le.message.data.data})):F(!1);else{const X=le.message.data.data;console.log("checkSubscriptionStatus: messageData: ",X),X.isError||"SUBSCRIBED"!=X.subscriptionStatus&&!X.isValid?F(!1):(this.messageService.sendMessage({subscription:X}),this.setMsisdn(localStorage.getItem(this.appId+"msisdn")),this.setSubProgress(!1),Z.unsubscribe(),F(!0))}});this.requestForSubscription()})}openAddingUserNameModel(){const F=this,Z=this.getSubPopupOffStatus().subscribe(le=>{le?(Z&&Z.unsubscribe(),this.router.navigate(["/location/home"]),setTimeout(()=>{$("#addUserNameModel").modal("show"),F.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(F=>{this.getMsisdn().subscribe(le=>{le?this.checkUserRegistration(le).subscribe(q=>{q&&q.id?(this.setLoggedInUserId(q.id),F(!0)):(this.setLoggedInUserId(null),F(!1))},q=>{this.setLoggedInUserId(null),console.error("checkRegistrationStatus: Error: ",q),F(!1)}):F(!1)}).unsubscribe()})}checkRegThenNavigate(F,Z){var le=this;return(0,n.Z)(function*(){let q=yield le.checkRegistrationStatus();console.log("isRegisteredUser : ",!!q),q?"initCheck"===F?le.getAndSetAllAddedUsers():le.router.navigate([F]):Z?le.openAddingUserNameModel():le.router.navigate(["/location/user-registration"])})()}navigate(F){var Z=this;return(0,n.Z)(function*(){if("/location/my-profile"===F||"/location/add-user"===F||"initCheck"===F){let le=yield Z.checkSubscriptionStatus();if(console.log("isSubscribed : ",!!le),le)Z.checkRegThenNavigate(F,!1);else{const q=Z.getSubProgress().subscribe(X=>{console.log("isSubInProgress : ",X),X||(q.unsubscribe(),Z.checkRegThenNavigate(F,!0))})}}else Z.router.navigate([F])})()}checkUserRegistration(F){return this.http.get(`${l.L}/edit/checkUserRegistration/${F}/${this.appId}`)}getLocationBanner(){return this.http.get(`${l.L}/edit/getLocationBanner/${this.appId}/${this.userId}`)}getAllAddedUsers(F){return this.http.get(F)}getAndSetAllAddedUsers(){let F=this.checkIsFromCmsView();this.getLoggedInUserId().subscribe(le=>{le&&"null"!=le&&this.getAllAddedUsers(`${l.L}/edit/getAllAddedUsers/${le}?appId=${this.appId}&isFromCmsView=${F?1:0}`).subscribe(X=>{this.setAddedUsers(X.addedUsers)})}).unsubscribe()}showToaster(F,Z,le){let q={timeOut:5e3,positionClass:"toast-top-center",toastClass:"custom-toast",tapToDismiss:!0,extendedTimeOut:2e3,easing:"ease-in"};le?this.toastr.error(F,Z,q):this.toastr.success(F,Z,q)}hideOtcSuccessAndMsgModals(){let F=this;$("#showMessageSubComp").on("show.bs.modal",function(Z){F.isLbsSubOtcChecking&&(Z.preventDefault(),console.log("Blocked displaying the 'showMessageSubComp'"))})}static#e=this.\u0275fac=function(Z){return new(Z||I)(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:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},1663:(G,P,a)=>{"use strict";a.r(P),a.d(P,{FormEngineModule:()=>ht});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 ee{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,qe){const Ue=`${this.formServerUrl}/getFormInfo`;let fe=new u.LE;return fe=fe.set("msisdn",R),fe=fe.set("articleId",be),fe=fe.set("appId",qe),this.http.get(Ue,{params:fe}).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 qe=>(console.error(qe),(0,C.of)(be))}static#e=this.\u0275fac=function(be){return new(be||ee)(v.\u0275\u0275inject(u.eN))};static#t=this.\u0275prov=v.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})();var g=a(2684),f=a(7289);function I(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",11),v.\u0275\u0275listener("click",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext().$implicit,fe=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(fe.onCheckMcq(Ue,qe))}),v.\u0275\u0275elementEnd()}if(2&ee){const R=v.\u0275\u0275nextContext().$implicit,be=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("value",R.text)("formControlName",be.formCtrlName)}}function j(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",12),v.\u0275\u0275listener("click",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext().$implicit,fe=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(fe.onCheckMcq(Ue,qe))}),v.\u0275\u0275elementEnd()}if(2&ee){const R=v.\u0275\u0275nextContext().$implicit;v.\u0275\u0275property("value",R.text)}}function F(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",13),v.\u0275\u0275listener("click",function(){v.\u0275\u0275restoreView(R);const qe=v.\u0275\u0275nextContext().$implicit,Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onSelectMcq(qe))}),v.\u0275\u0275elementEnd()}if(2&ee){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(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",14),v.\u0275\u0275listener("click",function(){v.\u0275\u0275restoreView(R);const qe=v.\u0275\u0275nextContext().$implicit,Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onSelectMcq(qe))}),v.\u0275\u0275elementEnd()}if(2&ee){const R=v.\u0275\u0275nextContext().$implicit;v.\u0275\u0275property("value",R.text)}}function le(ee,k){if(1&ee&&(v.\u0275\u0275elementStart(0,"li",5),v.\u0275\u0275template(1,I,1,2,"input",6),v.\u0275\u0275template(2,j,1,1,"input",7),v.\u0275\u0275template(3,F,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&ee){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(ee,k){1&ee&&(v.\u0275\u0275elementStart(0,"div")(1,"span",15),v.\u0275\u0275text(2,"Please answer this question."),v.\u0275\u0275elementEnd()())}function X(ee,k){if(1&ee&&(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&ee){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 ee{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 qe=0;qe<this.responses.length;qe++)if(this.responses[qe].id==R.id){this.responses.splice(qe,1),qe--;break}}static#e=this.\u0275fac=function(be){return new(be||ee)};static#t=this.\u0275cmp=v.\u0275\u0275defineComponent({type:ee,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,qe){1&be&&v.\u0275\u0275template(0,X,4,3,"div",0),2&be&&v.\u0275\u0275property("ngIf",qe.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 ee})();function N(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"textarea",5),v.\u0275\u0275listener("ngModelChange",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.response=qe)})("keyup",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.textChange(qe))}),v.\u0275\u0275elementEnd()}if(2&ee){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.response)("formControlName",R.formCtrlName)}}function me(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"textarea",6),v.\u0275\u0275listener("ngModelChange",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.response=qe)})("keyup",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.textChange(qe))}),v.\u0275\u0275elementEnd()}if(2&ee){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.response)("formControlName",R.formCtrlName)}}function xe(ee,k){1&ee&&(v.\u0275\u0275elementStart(0,"div")(1,"span",7),v.\u0275\u0275text(2,"Please answer this question."),v.\u0275\u0275elementEnd()())}function ne(ee,k){1&ee&&(v.\u0275\u0275elementStart(0,"div")(1,"span",7),v.\u0275\u0275text(2,"Too lengthy"),v.\u0275\u0275elementEnd()())}function Qe(ee,k){if(1&ee&&(v.\u0275\u0275elementStart(0,"div",1),v.\u0275\u0275template(1,N,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&ee){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 ee{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||ee)};static#t=this.\u0275cmp=v.\u0275\u0275defineComponent({type:ee,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,qe){1&be&&v.\u0275\u0275template(0,Qe,5,5,"div",0),2&be&&v.\u0275\u0275property("ngIf",qe.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 ee})();function nt(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",9),v.\u0275\u0275listener("ngModelChange",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.dateInput=qe)})("change",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onTextChange(qe))}),v.\u0275\u0275elementEnd()}if(2&ee){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.dateInput)("formControlName",R.formCtrlName)}}function Je(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",10),v.\u0275\u0275listener("ngModelChange",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.dateInput=qe)})("change",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onTextChange(qe))}),v.\u0275\u0275elementEnd()}if(2&ee){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.dateInput)("formControlName",R.formCtrlName)}}function ct(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",11),v.\u0275\u0275listener("ngModelChange",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.timeInput=qe)})("change",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onTextChange(qe))}),v.\u0275\u0275elementEnd()}if(2&ee){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.timeInput)("formControlName",R.formCtrlName)}}function ot(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",12),v.\u0275\u0275listener("ngModelChange",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.timeInput=qe)})("change",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onTextChange(qe))}),v.\u0275\u0275elementEnd()}if(2&ee){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.timeInput)("formControlName",R.formCtrlName)}}function dt(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",13),v.\u0275\u0275listener("ngModelChange",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.dateTimeInput=qe)})("change",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onTextChange(qe))}),v.\u0275\u0275elementEnd()}if(2&ee){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.dateTimeInput)("formControlName",R.formCtrlName)}}function Vt(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"input",14),v.\u0275\u0275listener("ngModelChange",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.dateTimeInput=qe)})("change",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.onTextChange(qe))}),v.\u0275\u0275elementEnd()}if(2&ee){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("ngModel",R.dateTimeInput)("formControlName",R.formCtrlName)}}function zt(ee,k){1&ee&&(v.\u0275\u0275elementStart(0,"div")(1,"span",15),v.\u0275\u0275text(2,"Please answer this question."),v.\u0275\u0275elementEnd()())}function ti(ee,k){if(1&ee&&(v.\u0275\u0275elementStart(0,"div",1),v.\u0275\u0275template(1,nt,1,2,"input",2),v.\u0275\u0275template(2,Je,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,Vt,1,2,"input",7),v.\u0275\u0275template(7,zt,3,0,"div",8),v.\u0275\u0275elementEnd()),2&ee){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 ee{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||ee)};static#t=this.\u0275cmp=v.\u0275\u0275defineComponent({type:ee,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,qe){1&be&&v.\u0275\u0275template(0,ti,8,8,"div",0),2&be&&v.\u0275\u0275property("ngIf",qe.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 ee})();function Yt(ee,k){if(1&ee&&(v.\u0275\u0275elementStart(0,"div",2)(1,"span",3),v.\u0275\u0275text(2),v.\u0275\u0275elementEnd()()),2&ee){const R=v.\u0275\u0275nextContext();v.\u0275\u0275advance(2),v.\u0275\u0275textInterpolate(R.errorMessage)}}function Jt(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div")(1,"app-page-paginations",10),v.\u0275\u0275listener("btnClick",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.paginatorClick(qe))}),v.\u0275\u0275elementEnd()()}if(2&ee){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275property("catId",R.mainCategoryId)("articleId",R.articleId)("selectedValue",R.selectedValue)}}function lt(ee,k){if(1&ee&&(v.\u0275\u0275elementStart(0,"div",13),v.\u0275\u0275element(1,"app-input-textarea",14),v.\u0275\u0275elementEnd()),2&ee){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(ee,k){if(1&ee&&(v.\u0275\u0275elementStart(0,"div",13),v.\u0275\u0275element(1,"app-input-radio",15),v.\u0275\u0275elementEnd()),2&ee){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(ee,k){if(1&ee&&(v.\u0275\u0275elementStart(0,"div",13),v.\u0275\u0275element(1,"app-input-text",14),v.\u0275\u0275elementEnd()),2&ee){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(ee,k){if(1&ee&&(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&ee){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 W(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div",16)(1,"button",17),v.\u0275\u0275listener("click",function(){v.\u0275\u0275restoreView(R);const qe=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(qe.submitResponse())}),v.\u0275\u0275text(2,"SUBMIT"),v.\u0275\u0275elementEnd()()}if(2&ee){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 z(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div",16)(1,"button",18),v.\u0275\u0275listener("click",function(){v.\u0275\u0275restoreView(R);const qe=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(qe.submitResponse())}),v.\u0275\u0275text(2,"SUBMITTED"),v.\u0275\u0275elementEnd()()}if(2&ee){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275property("disabled",R.hasSubmitted)}}function He(ee,k){if(1&ee){const R=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div")(1,"app-page-paginations",10),v.\u0275\u0275listener("btnClick",function(qe){v.\u0275\u0275restoreView(R);const Ue=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(Ue.paginatorClick(qe))}),v.\u0275\u0275elementEnd()()}if(2&ee){const R=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275property("catId",R.mainCategoryId)("articleId",R.articleId)("selectedValue",R.selectedValue)}}function Te(ee,k){if(1&ee&&(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,W,3,2,"div",9),v.\u0275\u0275template(8,z,3,1,"div",9),v.\u0275\u0275elementEnd(),v.\u0275\u0275template(9,He,2,3,"div",5),v.\u0275\u0275elementEnd()),2&ee){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 pt=[{path:"",component:(()=>{class ee{constructor(R,be,qe,Ue,fe,ke,gt){this.titleService=R,this.formService=be,this.actRoute=qe,this.location=Ue,this.fb=fe,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 qe=this.formInfo.hasAvalabilityPeriod,Ue=this.formInfo.hasLimitedToOneResponse;this.fields=this.formInfo.appFormFields,this.formName=this.formInfo.formName,this.titleService.changeTitle(this.formName);for(let fe of this.fields)fe.isRequired?this.validateObj[fe.code]="Type"==fe.feFormFieldType.type?["",[e.kI.required,e.kI.minLength(1),e.kI.maxLength(500)]]:["",e.kI.required]:"Type"==fe.feFormFieldType.type&&(this.validateObj[fe.code]=["",[e.kI.minLength(1),e.kI.maxLength(500)]]);if(this.parentForm=this.fb.group(this.validateObj),this.isActive=!0,this.errorMessage="",Ue){if(qe){let fe=new Date;this.formStartDate=new Date(this.formInfo.startDate),this.formEndDate=new Date(this.formInfo.endDate),fe<this.formStartDate?(this.hasStarted=!1,this.errorMessage="Form Not Started Yet!",this.isActive=!1):fe>this.formEndDate&&(this.hasExpired=!0,this.errorMessage="Form has Expired",this.isActive=!1)}}else if(this.isActive=!0,this.errorMessage="",qe){let fe=new Date;this.formStartDate=new Date(this.formInfo.startDate),this.formEndDate=new Date(this.formInfo.endDate),fe<this.formStartDate?(this.hasStarted=!1,this.errorMessage="Form Not Started Yet!",this.isActive=!1):fe>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(qe=>{"success"==qe?(this.hasSubmitted=!0,this.errorMessage="Answers successfully submitted",this.isActive=!1):this.submitFailed=!0})}static#e=this.\u0275fac=function(be){return new(be||ee)(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:ee,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,qe){1&be&&(v.\u0275\u0275elementStart(0,"div"),v.\u0275\u0275template(1,Yt,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",""!=qe.errorMessage),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",!1===qe.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 ee})(),pathMatch:"full"}];let Pe=(()=>{class ee{static#e=this.\u0275fac=function(be){return new(be||ee)};static#t=this.\u0275mod=v.\u0275\u0275defineNgModule({type:ee});static#i=this.\u0275inj=v.\u0275\u0275defineInjector({imports:[o.Bz.forChild(pt),o.Bz]})}return ee})();var Xe=a(522);let ht=(()=>{class ee{static#e=this.\u0275fac=function(be){return new(be||ee)};static#t=this.\u0275mod=v.\u0275\u0275defineNgModule({type:ee});static#i=this.\u0275inj=v.\u0275\u0275defineInjector({imports:[n.CommonModule,e.UX,Pe,Xe.p]})}return ee})()},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,I,j,F,Z,le){this.activatedRouted=f,this.titleService=I,this.articleService=j,this.sailsClient=F,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((I,j)=>(!j.isSentByArticleUser&&!j.isRead&&I.push(j.id),I),[]);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 I=f;I.isScheduled||this.onNewMessageCreatedHandler(I),I.isScheduled&&this.onMessageUpdateHandler(I)})}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(I){return new(I||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(I,j){if(1&I&&e.\u0275\u0275viewQuery(C,5),2&I){let F;e.\u0275\u0275queryRefresh(F=e.\u0275\u0275loadQuery())&&(j.messagesContainer=F.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(I,j){1&I&&(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&I&&(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="BPJr6hpXQTa6LTI_jM-p9BibapbFRm77IctYS9CPIvNin5y28_wkFyR3hE9YdtvCjMb7objd2fQn-M7zT_gkpCk",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),I=a(3777),j=a(231),F=a(529),Z=a(1086);let le=(()=>{class Be{constructor(Pe,Xe){this.http=Pe,this.dataService=Xe,this.appId=n.Jf,this.userId=n.xS}getVoteData(Pe){const Xe={headers:new F.WM({"Content-Type":"application/json"})};return this.http.get(this.dataService.getServerURL()+`/vote/${Pe}/${this.userId}`,Xe)}vote(Pe){const Xe=localStorage.getItem("UUID"),ht=localStorage.getItem(this.appId+"msisdn");Pe={...Pe,userId:this.userId,appId:this.appId,deviceUUID:Xe||"",phone:ht||""},console.log("voteObj ",Pe);const ee={headers:new F.WM({"Content-Type":"application/json"})};return this.http.post(this.dataService.getServerURL()+"/vote/lotLogs",Pe,ee)}handleError(Pe="operation",Xe){return ht=>(0,Z.of)(Xe)}static#e=this.\u0275fac=function(Xe){return new(Xe||Be)(e.\u0275\u0275inject(F.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,pt){1&Be&&(e.\u0275\u0275elementStart(0,"h6"),e.\u0275\u0275text(1,"Vote Results"),e.\u0275\u0275elementEnd())}function X(Be,pt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"img",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Pe);const ht=e.\u0275\u0275nextContext().$implicit,ee=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ee.selectedVal=ht.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,pt){1&Be&&e.\u0275\u0275element(0,"div",12)}function N(Be,pt){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,pt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"label",13)(1,"input",14),e.\u0275\u0275listener("change",function(ht){e.\u0275\u0275restoreView(Pe);const ee=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(ee.selectedVals(ht))})("ngModelChange",function(ht){e.\u0275\u0275restoreView(Pe);const ee=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(ee.selectedVal=ht)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(2,"span",15),e.\u0275\u0275elementEnd()}if(2&Be){const Pe=e.\u0275\u0275nextContext().$implicit,Xe=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,me,Xe.isVoted&&Xe.selectedVal!=Pe.id)),e.\u0275\u0275advance(1),e.\u0275\u0275property("checked",Xe.selectedVal==Pe.id)("ngModel",Xe.selectedVal)("value",Pe.id)}}const ne=function(Be){return{"form-disbale":Be}};function Qe(Be,pt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",5)(1,"span",6),e.\u0275\u0275listener("click",function(){const ee=e.\u0275\u0275restoreView(Pe).$implicit,k=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(k.selectedVal=ee.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,N,2,1,"note",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,xe,3,6,"label",10),e.\u0275\u0275elementEnd()}if(2&Be){const Pe=pt.$implicit,Xe=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(8,ne,Xe.isVoted)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(10,me,Xe.isVoted&&Xe.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,Xe.isVoted&&Xe.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",Xe.isVoted),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","Active"==(null==Xe.voteData?null:Xe.voteData.status)&&!Xe.isVoted)}}function Oe(Be,pt){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 ht=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ht.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(Xe=>{localStorage.setItem(Xe.articleId+"vote",Xe.optionId),this.loadVotes()},Xe=>{this.isButtonEabled=!0,console.log("error ",Xe)})}static#e=this.\u0275fac=function(Xe){return new(Xe||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(Xe,ht){1&Xe&&(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,Qe,8,14,"div",3),e.\u0275\u0275template(6,Oe,3,4,"div",4),e.\u0275\u0275elementEnd()),2&Xe&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(null==ht.voteData?null:ht.voteData.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ht.isVoted),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==ht.voteData?null:ht.voteData.voteOptions),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","Active"==(null==ht.voteData?null:ht.voteData.status)&&!ht.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 Je=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(Xe){return new(Xe||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,pt){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 Vt(Be,pt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"img",20),e.\u0275\u0275listener("load",function(ht){e.\u0275\u0275restoreView(Pe);const ee=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(ee.imageLoaded(ht))}),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,pt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"img",20),e.\u0275\u0275listener("load",function(ht){e.\u0275\u0275restoreView(Pe);const ee=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(ee.imageLoaded(ht))}),e.\u0275\u0275elementEnd()}if(2&Be){const Pe=e.\u0275\u0275nextContext(2).$implicit,Xe=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",Xe.checkUrl(Pe.videoUrl,Pe.videoType))}}function ti(Be,pt){if(1&Be&&(e.\u0275\u0275template(0,Vt,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,pt){1&Be&&e.\u0275\u0275template(0,ti,2,2,"ng-template",18),2&Be&&e.\u0275\u0275property("ngIf",pt.$implicit)}const Yt=function(){return[]};function Jt(Be,pt){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,Yt)))}}function lt(Be,pt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"app-page-paginations",21),e.\u0275\u0275listener("btnClick",function(ht){e.\u0275\u0275restoreView(Pe);const ee=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ee.paginatorClick(ht))}),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,pt){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,pt){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,pt){if(1&Be){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"app-page-paginations",21),e.\u0275\u0275listener("btnClick",function(ht){e.\u0275\u0275restoreView(Pe);const ee=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ee.paginatorClick(ht))}),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 W(Be,pt){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 z(Be,pt){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,pt){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,Xe,ht,ee,k,R,be,qe,Ue,fe,ke){this.productService=Pe,this.sanitizer=Xe,this.dataService=ht,this.router=ee,this.route=k,this.location=R,this.title=be,this.messageService=qe,this.articleService=Ue,this.profileService=fe,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,Xe){Pe&&Xe&&(this.dataService.catId=Pe,this.productService.getArticleById(Xe).subscribe(ee=>{if(this.isVote=ee.isVote,ee){console.log(ee),this.isMessagingEnabled=ee.isMessagingEnabled,this.isCommentingEnbled=ee.isCommentingEnbled;var k=ee.isPdfUploadEnable||ee.isPdfUploadEnableDownloadDisabled||ee.isPdfUploadEnableDownloadEnabled;this.isRssFeedEnable=ee.isRssFeedEnable;var R=this.dataService.getLocalStorageMSISDN();if(this.articleName=ee.title,this.isApplyAndSave=ee.isApplyAndSave,this.isApplied=ee.isApplied,this.isSaved=ee.isSaved,!this.dataService.isFromCMSAppView&&this.articleName&&this.productService.createArticleViewDataInfo(R,this.articleName,ee.id).subscribe(be=>{this.results=be},be=>{console.log("Error on create record")}),k)if(this.title.changeTitle(this.articleName),this.pdfDownload=!!ee.isPdfUploadEnableDownloadEnabled,this.dataService.isCordovaApp()&&ee.isPdfUploadEnableDownloadEnabled){let be=this;PreviewAnyFile.preview(ee.pdfDataUrl,function(qe){be.location.back(),"SUCCESS"==qe?console.log("success"):console.log("error")},function(qe){be.location.back(),console.log("err",qe)})}else this.messageService.sendMessage({loadImageCount:this.dataService.initialImageCount}),this.pdfDataUrl=ee.pdfDataUrl;else{this.dataService.data=ee,this.title.changeTitle(this.articleName),this.Data=ee;const be=this.Data.tempImageArray;this.dataService.initialImageCount=be?be.length:0,this.initializeGallery(),this.isRssFeedEnable&&(this.rssFeedUrl=ee.rssFeedUrl)}}else console.log("Article not found for the catId: "+Pe+" articleId: "+Xe),this.Data.tempImageArray=0},ht=>{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(Xe=>{Xe&&$(".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 Xe="youtube";return Pe.match("vimeo")&&(Xe="vimeo"),Xe}getArrayData(Pe){for(const Xe of Pe)Xe.videoUrl&&Xe.videoUrl.match("vimeo")?Xe.videoType="vimeo":Xe.videoUrl&&(Xe.videoType="youtube");return Pe}checkUrl(Pe,Xe){let ht;if("youtube"===Xe){const k=Pe.slice(8).split(/\/|&|=/);ht=k.length>2?k[2]:k[1]}else"vimeo"===Xe&&(ht=Pe.substring(Pe.indexOf("video")+6));return ht}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(Xe=>{this.notificationService.showNotification(Xe.msg)},Xe=>{console.log("error --\x3e",Xe),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 Xe=0;for(let ht=0;ht<Pe.length;ht++){let ee="object"==typeof Pe[ht].imgUrl?Pe[ht].imgUrl.changingThisBreaksApplicationSecurity:Pe[ht].imgUrl;ee&&ee.includes("http")&&Xe++}0===Xe&&(this.hideImageLoadingSpinner=!0)}paginatorClick(Pe){if(Pe.loadedArticle&&this.articleId!=Pe.loadedArticle.id)if(Pe.loadedArticle.isForm){let Xe=Pe.loadedArticle;this.route.navigate(["form",Xe.title,this.catId,Xe.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(Xe){return new(Xe||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(Xe,ht){1&Xe&&(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,W,2,1,"div",3),e.\u0275\u0275template(8,z,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&Xe&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ht.pdfDataUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!ht.pdfDataUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ht.catId&&!ht.pdfDataUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ht.Data&&ht.isRssFeedEnable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ht.Data&&!ht.pdfDataUrl&&!ht.isRssFeedEnable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ht.catId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ht.isVote),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ht.isCommentingEnbled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ht.isMessagingEnabled))},dependencies:[u.NgClass,u.NgForOf,u.NgIf,f.o,I.c,j.e,nt,Je.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(di=>{Lt.download(Rt,Xt,function(vt){di(!0)},function(vt){console.log("download error source "+vt.source),console.log("download error target "+vt.target),console.log("download error code"+vt.code),di(!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),I=a(3777),j=a(7289),F=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 N(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,N,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 Qe=(()=>{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(di){return Rt.questionData.awn=di})("keyup",function(di){return Rt.chnage(di)}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(11,"div",6)(12,"button",7),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(ai);const di=o.\u0275\u0275reference(10);return o.\u0275\u0275resetView(Rt.submitClick(di.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 Je(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 Vt(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,Vt,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 Yt=(()=>{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,Je,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 W(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 z(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 pt(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 Xe(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 ht(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 ee(st,Nt){if(1&st&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Pe,1,3,"ng-template",19),o.\u0275\u0275template(2,Xe,1,3,"ng-template",19),o.\u0275\u0275template(3,ht,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 qe(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 fe=[{path:"",component:(()=>{class st{constructor(at,Lt,Rt,ai,Xt,di,vt,Ut){this.productService=at,this.router=Lt,this.route=Rt,this.title=ai,this.dataService=Xt,this.messageService=di,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(Qt=>{this.articleId=Qt.articleId,this.catId=Qt.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(di=>di.id==Xt.id)||this.overrolResult.push(Xt),this.txtAndMcqAnswers.some(di=>di.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(di=>di.id==Xt.id)||this.overrolResult.push(Xt),this.txtAndMcqAnswers.some(di=>di.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(di){Xt.location.back(),"SUCCESS"==di?console.log("success"):console.log("error")},function(di){Xt.location.back(),console.log("err",di)})}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,W,2,1,"div",2),o.\u0275\u0275template(3,z,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,pt,2,3,"div",2),o.\u0275\u0275template(8,ee,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,qe,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,I.c,j.n,F.v,Z.e,Qe,Yt,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(fe),e.Bz]})}return st})();var gt=a(5252),Tt=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,Tt.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(I=>I.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 I=>(this.log(`${g} failed: ${I.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 I=window.Ionic.WebView.convertFileSrc(f),j=u.sanitizer.bypassSecurityTrustUrl(I);window.resolveLocalFileSystemURL(f,F=>{u.fileInfo.displayUrl=j,u.fileInfo.nativeURL=F.nativeURL,u.fileInfo.fileName=F.name,u.readFile(F).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(I=>{u.fileInfo.fileSize=I.size,g(u.fileInfo)},I=>{console.log("Failed to read FileEntry!"),f(I)})})}uploadImageInApk(w,g,f){return new n.y(I=>{let j=w.nativeURL,F="";F="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(F),X=>{let K=JSON.parse(X.response);I.next(K)},X=>{console.log("upload error source "+X.source),console.log("upload error target "+X.target),I.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(I=>{this.isFileCached(f[C]).then(j=>{this.getCachedFileURL(j.path).then(F=>{f[C]=F.sourceUri,I(f)}).catch(()=>{I(f)})}).catch(()=>{this.cacheImageFile(f[C]).then(j=>{this.getCachedFileURL(j.path).then(F=>{f[C]=F.sourceUri,I(f)}).catch(()=>{I(f)})}).catch(()=>{I(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),I=`file:///storage/emulated/0/Download/myArticle${(new Date).getTime()}.pdf`;return new Promise(j=>{w.download(g,I,function(F){j(!0)},function(F){console.log("download error source "+F.source),console.log("download error target "+F.target),console.log("download error code"+F.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,I){this.httpClient=f,this.messageService=I,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)(I=>{this.messageService.sendMessage({subscription:I})}),I=>I||(this.messageService.sendMessage({subscription:null}),null))}getSubscriptionStatus(f){return this.httpClient.post(this.getServerUrl()+"/ideabiz/getSubscriptionStatus",f).pipe((0,o.b)(I=>{this.messageService.sendMessage({subscription:I})}),I=>I||(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,I,j){return f.substring(I,j)}getMsisdnFormApiCall(){var f=this;return(0,n.Z)(function*(){return yield f.httpClient.get("https://dnfectch.appmaker.lk").toPromise()})()}handleError(f="operation",I){return j=>(this.log(`${f} failed: ${j.message}`),(0,e.of)(I))}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(I=>I||null)}static#e=this.\u0275fac=function(I){return new(I||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(S=>{window.addEventListener("offline",h=>{S.next(!1)}),window.addEventListener("online",h=>{S.next(!0)})})}monitor(){return this.connectionMonitor}}x.\u0275fac=function(S){return new(S||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 I=(()=>{class H{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(M){return new(M||H)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,selectors:[["app-page-body"]],decls:1,vars:0,template:function(M,U){1&M&&e.\u0275\u0275element(0,"router-outlet")},dependencies:[d.lC]})}return H})();var j=a(3472),F=a(5861),Z=a(4290),le=a(1715),q=a(9704),X=a(6026),K=a(6678),N=a(928),me=a(9792),xe=a(2013),ne=a(7820),Qe=a(1086),Oe=a(7221),nt=a(8136);let Je=(()=>{class H{constructor(h){this.http=h,this.appId=v.Jf}getPushMessages(h,M){const U={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",U).pipe((0,Oe.K)(this.handleError("getPushMessages",[])))}handleError(h="operation",M){return U=>(this.log(`${h} failed: ${U.message}`),(0,Qe.of)(M))}log(h){console.error(h)}saveSwPushSubscription(h){const M=localStorage.getItem("UUID"),U={headers:new l.WM({"Content-Type":"application/json"})},ge={deviceUUID:M,appId:this.appId,pushSubscription:h};return this.http.post(nt.L+"/application/saveSWPushSubscription",ge,U).pipe((0,Oe.K)(this.handleError("savePushSbscription",ge)))}static#e=this.\u0275fac=function(M){return new(M||H)(e.\u0275\u0275inject(l.eN))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac,providedIn:"root"})}return H})();var ct=a(5114),ot=a(4064),dt=a(1713),Vt=a(8257);let zt=(()=>{class H{constructor(h,M){this.dataService=h,this.router=M,this.dataService.newNotificationCount.subscribe(U=>{this.newNotificationCount=U}),this.dataService.letestArticleNotification.subscribe(U=>{this.articleId=U.articleId,this.articleTitle=U.articleTitle})}ngOnInit(){}goToMessageCoversation(){this.router.navigate(["messaging",this.articleId,this.articleTitle])}static#e=this.\u0275fac=function(M){return new(M||H)(e.\u0275\u0275directiveInject(u.V),e.\u0275\u0275directiveInject(d.F0))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,selectors:[["article-message-notification"]],decls:2,vars:1,consts:[[1,"message",3,"click"]],template:function(M,U){1&M&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("click",function(){return U.goToMessageCoversation()}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&M&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("You have ",U.newNotificationCount," New Message"))},styles:[".message[_ngcontent-%COMP%]{width:250px;z-index:10;position:absolute;top:15px;text-align:center;background-color:#fff;color:#000;font-family:inherit;margin-left:calc((100% - 250px)/2);padding:5px 0;font-weight:500;font-size:12px}"]})}return H})();function ti(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",65),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const U=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(U.goBack())}),e.\u0275\u0275element(1,"i",66),e.\u0275\u0275elementEnd()}}const mi=function(H,S){return{"mar-size":H,"mar-size2":S}};function Yt(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div")(1,"marquee",68),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&H){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(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div",69),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(h.title)}}function lt(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Yt,3,5,"div",59),e.\u0275\u0275template(2,Jt,2,1,"ng-template",null,67,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&H){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(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div",69),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(h.title)}}function Fe(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",70),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const U=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(U.installPWAApp())}),e.\u0275\u0275element(1,"i",71),e.\u0275\u0275elementEnd()}if(2&H){const h=e.\u0275\u0275nextContext(2);e.\u0275\u0275styleProp("right",h.isEnableNotifyMe&&!h.isCordovaApp?"60px":"20px")}}function Ae(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",72),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const U=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(U.notifyMe())}),e.\u0275\u0275element(1,"i",73),e.\u0275\u0275elementEnd()}}function W(H,S){if(1&H){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 U=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(U.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 U=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(U.searchBtnClickHandler())}),e.\u0275\u0275element(9,"i",63),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(10,Ae,2,0,"button",64),e.\u0275\u0275elementEnd()}if(2&H){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 z(H,S){if(1&H){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 U=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(U.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 U=e.\u0275\u0275reference(7),ge=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ge.onSearchTermChangeHandler(U.value))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",75)(9,"button",80),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const U=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(U.closeBtnClickHandler())}),e.\u0275\u0275element(10,"i",81),e.\u0275\u0275elementEnd()()()()}}function He(H,S){1&H&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"article-message-notification"),e.\u0275\u0275elementEnd())}function Te(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",82),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const U=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(U.openRegisterModel())}),e.\u0275\u0275text(1,"Register"),e.\u0275\u0275elementEnd()}}function Be(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",83),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const U=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(U.openMyAccountModel())}),e.\u0275\u0275text(1,"My Account"),e.\u0275\u0275elementEnd()}}function pt(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"a",84),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" App Version ",h.apkVersion," ")}}function Pe(H,S){1&H&&(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 Xe(H,S){1&H&&(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 ht(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div")(1,"p"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"titlecase"),e.\u0275\u0275elementEnd()()),2&H){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 ee(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,ht,4,5,"div",4),e.\u0275\u0275elementEnd()),2&H){const h=S.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.isEnabled&&"APPROVED"===h.status)}}function k(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,ee,2,1,"div",86),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",h.appPublishDetails.operators)}}function R(H,S){if(1&H&&(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&H){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",h.appPublishDetails)}}function be(H,S){1&H&&(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 qe=function(H){return{width:H}};function Ue(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"p"),e.\u0275\u0275element(1,"img",87),e.\u0275\u0275elementEnd()),2&H){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,qe,h.isAppmakerPro?"100%":"auto"))}}function fe(H,S){1&H&&(e.\u0275\u0275elementStart(0,"strong"),e.\u0275\u0275text(1,"Notification"),e.\u0275\u0275elementEnd())}function ke(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"option",88),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&H){const h=S.$implicit;e.\u0275\u0275propertyInterpolate("value",h),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",h," ")}}const gt=function(H){return{display:H}},Tt=function(H){return{"auto-text-unsub-success":H}};let Bt,st,Nt=(()=>{class H{constructor(h,M,U,ge,$e,ut,Et,$t,vi,Ii,on,rn,Gi,Xi,kn,er,Mr,zr,Wr,zo){this.subscription=h,this.activatedRouter=M,this.router=U,this.dataService=ge,this.titleServ=$e,this.location=ut,this.sms=Et,this.smsRetriever=$t,this.ngZone=vi,this.device=Ii,this.appDataService=on,this.messageService=rn,this.notificationService=Gi,this.push=Xi,this.pushService=kn,this.crmCommonService=er,this.chatCommonService=Mr,this.profileService=zr,this.subscriptionService=Wr,this.locTempCommonService=zo,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(Pn=>{this.isInSearchComponent=Pn}),this.dataService.isFromSearchComponent.subscribe(Pn=>{this.isFromSearchComponent=Pn}),this.dataService.isInHomeComponent.subscribe(Pn=>{this.isInHomeComponent=Pn}),"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(Pn=>{this.isChatWindow="/chatTemplate/chat"==Pn,this.hideBackOnHome=!Pn.includes("home"),Pn.includes("home")?(this.hideBackOnHome=!1,this.isJobApp&&this.initializeGallery()):this.hideBackOnHome=!Pn.includes("crmHome")}),Bt=this,this.titleServ.getLocation().subscribe(Pn=>this.tempName=Pn),this.dataService.showArticleNotification.subscribe(Pn=>{this.showArticleNotification=Pn}),this.dataService.isInMessageConversation.subscribe(Pn=>{this.isInMessageConversation=Pn}),window.addEventListener("beforeinstallprompt",Pn=>{this.promptEvent=Pn,this.isInstallAvailable=!0}),window.addEventListener("appinstalled",()=>{this.isInstallAvailable=!1}),U.events.subscribe(Pn=>{if(Pn.url){let Hr=new URLSearchParams(Pn.url.split("?")[1]).get("isFromCMSAppView");null!=Hr?(localStorage.setItem(this.appId+"_isFromCMSAppView",Hr),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(ge=>{const $e=ge.platformExtCountries.map(ut=>{const Et=ut.countryCode;return Et.substring(Et.indexOf("+")+1)});this.countries=$e}),this.appDataService.getCrmAppLogoUrl().subscribe(ge=>{this.logoUrl=ge&&ge.length>0?ge:""}),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(ge=>{this.subscriptionStatus=ge.subscriptionStatus,this.dataService.subscriptionStatus=ge.subscriptionStatus,this.messageService.sendMessage({subscription:ge}),this.subscriptionStatus===this.dataService.STATUS_SUBSCRIBED&&!ge.isError&&localStorage.setItem(this.appId+"msisdn",ge.msisdn)}),this.isJobApp&&this.retrieveJobTemplateRelatedData(),this.loadSettings(),this.appDataService.getPublishDetails().subscribe(ge=>{if(ge){!0===ge.isPwaDisable&&!this.dataService.isCordovaApp()&&!this.dataService.isFromCMSAppView&&(window.location.href=window.location.protocol+"//"+window.location.host+"/Whoops"),this.dataService.pdfViewerFolder=ge.pdfViewerFolder,this.isFreeApp=ge.isFreeApp;const $e=ge.operators.filter(Et=>"SUSPENDED"===Et.status||"TERMINATED"===Et.status||"DELETED"===Et.status);this.isFreeAppStatusInvalid=ge&&"FREE"==ge?.operators[0]?.operator&&!!$e.length,this.isPaidAppStatusInvalid=ge&&"FREE"!==ge?.operators[0]?.operator&&$e.length===ge.operators.length;let ut=ge.operators.filter(Et=>"SUSPENDED"===Et.status);if(this.isSuspendedApp=!(!ge||"FREE"!=ge.operators[0].operator||"SUSPENDED"!=ge.operators[0].status)||!(!ge||"FREE"==ge.operators[0].operator||ut.length!==ge.operators.length),this.isSuspendedApp)this.dataService.isFreeCategoryViewAvailable=!1,this.dataService.isSuspendedApp=!0,this.isSuspendedApp=!0,this.dataService.displayMessage="FREE"==ge.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=ge.operators.filter($t=>"SUSPENDED"===$t.status).length===ge.operators.length?"The service is temporarily unavailable on the network":"Service no longer available.",this.notifyMe(!0);else{this.appPublishDetails=ge,localStorage.setItem(this.sms.LOCALSTORAGE_KEYWORD_STRING,ge.keyword),localStorage.setItem(this.sms.LOCALSTORAGE_PORT_STRING,ge.port);const Et=ge.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(ge=>{this.title=ge}),$(".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(ge=>{ge.subscription&&null!==ge.subscription&&!ge.subscription.isError?(this.dataService.subscriptionStatus=ge.subscription.subscriptionStatus,this.subscriptionStatus=this.dataService.subscriptionStatus):(ge.subscription&&null===ge.subscription||ge.subscription&&null!==ge.subscription&&ge.subscription.isError)&&(this.dataService.subscriptionStatus=ge.subscription.subscriptionStatus?ge.subscription.subscriptionStatus:null,this.subscriptionStatus=this.dataService.subscriptionStatus)}),this.dataService.isCordovaApp()&&(this.appDataService.getCompatibleApkVersion().subscribe(ge=>{ge>this.dataService.getAppApkVersion()&&$("#apkVersionModel").modal("show")},ge=>{console.log(ge)}),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(ge=>{ge.deactivate&&this.unSubCheckPol()}),this.isChatApp){const $e=localStorage.getItem(`chatLogin-${this.appId}`),ut=JSON.parse($e);ut?.loggedUser&&this.chatCommonService.getUnseenChatCounts(ut.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 Ii=[];vi.msgCountInfo.forEach(on=>{this.isChatWindow&&on.fromMemberId==this.chattingMemberId?this.chatCommonService.removeCurrentChatMessageCount({from:this.chattingMemberId,to:ut.loggedUser}).subscribe(rn=>{}):(Ii[on.fromMemberId]=!0,this.chatMessageCount+=on.count)}),this.chatCommonService.setUnseenChatMemberId(Ii)})})}this.dataService.newNotificationCount.subscribe(ge=>{this.messageCount=ge}),this.titleServ.getLocation().subscribe(ge=>{this.isSubCategory="sub_category"===ge,this.isPage="product"===ge})}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}`),U=JSON.parse(M);this.crmLoginRouteEnabled&&(this.chatCommonService.setWithExpiry(U.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(ge=>{this.subscriptionStatus=ge.subscriptionStatus,this.dataService.subscriptionStatus=ge.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(U=>{U.message.status===j.Yg.SUB_RESPONSE&&(h.unsubscribe(),U.message.data.data.subscriptionStatus==j.y5.SUBSCRIBED&&(this.subscriptionStatus=U.message.data.data.subscriptionStatus,this.dataService.subscriptionStatus=U.message.data.data.subscriptionStatus,this.messageService.sendMessage({subscription:U.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(U=>{M.unsubscribe(),U.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 U;if(this.dataService.isCordovaApp())U=encodeURIComponent("cordovaApp");else{let $e=window.location.protocol+"//"+window.location.host+window.location.pathname;U=encodeURIComponent($e)}const ge={appId:this.appId,uuId:this.dataService.getLocalStorageUUID(),msisdn:this.dataService.getLocalStorageMSISDN(),hostUrl:U};return void this.subscription.munsub(ge).subscribe($e=>{$e.isError?this.dataService.showPopupMessage($e.message):this.isCordovaApp?this.mobitelUnSubCordovaApp($e.concent):this.mobitelUnSubPWAApp($e.concent)},$e=>{console.log("Error:",$e)})}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(U=>{console.log("Unsubscribe result:",U)}),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(U=>{this.subscriptionStatus=U.subscriptionStatus,this.dataService.subscriptionStatus=U.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,F.Z)(function*(){const M=h.enteredPinHeader;if(console.log("submit PIN header:",M),clearTimeout(st),M){let U="";if("dialog"===h.operator)try{const $e=yield h.subscription.getMsisdnFormApiCall();console.log($e),U=$e.msisdn}catch($e){console.log("error while getting msisdn"+$e)}const ge={appId:h.appId,uuId:h.dataService.getLocalStorageUUID(),msisdn:h.getMSISDN(),appTitle:h.appTitle,pin:M,msisdn_api:U};h.showHideSubscribingModel(!0),h.subscription.submitPin(ge).subscribe($e=>{$e.isError?(h.showHideSubscribingModel(!1),h.hideOTPModel(),Bt.dataService.showPopupMessage($e.message)):h.subCheckPol()},$e=>{h.showHideSubscribingModel(!1);const ut=JSON.parse($e._body);ut.isError&&(h.hideOTPModel(),Bt.dataService.displayMessage="Wrong PIN"===ut.message||"Wrong Pin"===ut.message?Bt.dataService.wrongPinMsg:ut.message?ut.message:"System Error",$(()=>{$("#appStatusModel").modal("show")}),("Wrong PIN"===ut.message||"Wrong Pin"===ut.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 U=JSON.parse(M._body);U.isError&&(Bt.hideOTPModel(),Bt.dataService.showPopupMessage(U.message))})}mobitelSub(){let h;if(this.dataService.isCordovaApp())h=encodeURIComponent("cordovaApp");else{let U=window.location.protocol+"//"+window.location.host+window.location.pathname;h=encodeURIComponent(U)}const M={appId:this.appId,uuId:this.dataService.getLocalStorageUUID(),msisdn:this.getMSISDN(),hostUrl:h};this.subscription.msub(M).subscribe(U=>{$("#enterMSISDNHeader").modal("hide"),U.isError&&"ALREADY_SUBSCRIBED"!=U.message?this.dataService.showPopupMessage(U.message):this.isCordovaApp?this.mobitelSubCordovaApp(U.concent):this.mobitelSubPWAApp(U.concent)},U=>{console.log("Error:",U)})}mobitelSubCordovaApp(h){let M=cordova.InAppBrowser.open(h,"_blank","hidden=no,location=no,clearsessioncache=yes,clearcache=yes,hardwareback=no,hideurlbar=yes");M.addEventListener("message",U=>{"SUCCESS"===U.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",U=>{"SUCCESS"===U.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||H)(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(N.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(Je),e.\u0275\u0275directiveInject(ct.E),e.\u0275\u0275directiveInject(ot.d),e.\u0275\u0275directiveInject(dt.H),e.\u0275\u0275directiveInject(j.FF),e.\u0275\u0275directiveInject(Vt.v))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,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,U){1&M&&(e.\u0275\u0275elementStart(0,"header",0)(1,"div",1)(2,"div",2)(3,"nav",3),e.\u0275\u0275template(4,W,11,5,"div",4),e.\u0275\u0275template(5,z,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 U.closeNav()}),e.\u0275\u0275text(9,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"a",7),e.\u0275\u0275listener("click",function(){return U.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 U.navigate("inbox","Inbox")}),e.\u0275\u0275text(15,"INBOX"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"a",11),e.\u0275\u0275listener("click",function(){return U.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 U.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 U.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 U.navigate("","")}),e.\u0275\u0275element(23,"img",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(24,pt,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,Xe,6,0,"div",4),e.\u0275\u0275elementStart(36,"button",25),e.\u0275\u0275listener("click",function(){return U.onUnsubscribe()}),e.\u0275\u0275text(37," Unsubscribe Now"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(38,"button",26),e.\u0275\u0275listener("click",function(){return U.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 U.onSubscribe()}),e.\u0275\u0275text(50," Subscribe Now"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(51,"button",29),e.\u0275\u0275listener("click",function(){return U.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 U.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,fe,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 U.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($e){return U.selectedCountryCode=$e}),e.\u0275\u0275template(95,ke,2,2,"option",39),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(96,"input",40),e.\u0275\u0275listener("ngModelChange",function($e){return U.enteredMobileNumber=$e}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(97,"br"),e.\u0275\u0275elementStart(98,"button",28),e.\u0275\u0275listener("click",function(){return U.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($e){return U.enteredPinHeader=$e})("ngModelChange",function(){return U.onchangeEnteredPin()}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(121,"br"),e.\u0275\u0275elementStart(122,"button",28),e.\u0275\u0275listener("click",function(){return U.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 U.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,U.isAppmakerPro?"none":"inline")),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",!U.isInSearchComponent),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.isInSearchComponent),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.showArticleNotification&&!U.isInMessageConversation),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngIf",!(null!==U.subscriptionStatus&&"UNSUBSCRIBED"!==U.subscriptionStatus||U.isFreeApp||U.isInAppPaymentEnabled())),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","SUBSCRIBED"===U.subscriptionStatus&&!U.isFreeApp&&!U.isInAppPaymentEnabled()),e.\u0275\u0275advance(10),e.\u0275\u0275property("src",U.logoUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.apkVersion),e.\u0275\u0275advance(10),e.\u0275\u0275property("ngIf",0==U.isUnsubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==U.isUnsubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",1==U.isUnsubscribing),e.\u0275\u0275advance(11),e.\u0275\u0275property("ngIf",0==U.isSubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==U.isSubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",1==U.isSubscribing),e.\u0275\u0275advance(9),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(28,Tt,"UNSUBSCRIBED"==U.subscriptionStatus)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(U.displayMessage),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngIf",U.inAppNotificationImageUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!U.inAppNotificationImageUrl),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(U.pushMessage),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(U.inAppNotificationBtnName),e.\u0275\u0275advance(20),e.\u0275\u0275property("ngModel",U.selectedCountryCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",U.countries),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",U.enteredMobileNumber),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",!U.enteredMobileNumber||U.enteredMobileNumber>"999999999"),e.\u0275\u0275advance(22),e.\u0275\u0275property("ngModel",U.enteredPinHeader),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",!U.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 H})();var at=a(8249),Lt=a(9095);function Rt(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const U=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(U.openFooterMyAccount())}),e.\u0275\u0275element(1,"i",20),e.\u0275\u0275elementEnd()}}const ai=function(H){return{display:H}};function Xt(H,S){if(1&H){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 U=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(U.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 U=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(U.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 U=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(U.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&H){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 di(H,S){1&H&&(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(H,S){1&H&&(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 Qt=(()=>{class H{constructor(h,M,U,ge,$e,ut,Et,$t,vi,Ii,on){this.dialog=h,this.subscription=M,this.router=U,this.ngZone=ge,this.messageService=$e,this.titleServ=ut,this.appDataService=Et,this.chatCommonService=$t,this.dataService=vi,this.crmCommonService=Ii,this.lbsCommonService=on,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(rn=>{this.isFooterShow=JSON.parse(localStorage.getItem("isUserLoggedIn"))&&"/chatTemplate/chat"!=rn}),"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(U=>{console.log("The dialog was closed result",U),this.confirmation=U,this.confirmation&&this.crmLogOut()})}openFooterMyAccount(){const h={appId:this.appId,msisdn:this.dataService.getLocalStorageMSISDN(),uuId:this.dataService.getLocalStorageUUID()},M=this.subscription.getSubscriptionStatus(h).subscribe(U=>{M.unsubscribe(),U.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 U;if(this.dataService.isCordovaApp())U=encodeURIComponent("cordovaApp");else{let $e=window.location.protocol+"//"+window.location.host+window.location.pathname;U=encodeURIComponent($e)}const ge={appId:this.appId,uuId:this.dataService.getLocalStorageUUID(),msisdn:this.dataService.getLocalStorageMSISDN(),hostUrl:U};return void this.subscription.munsub(ge).subscribe($e=>{$e.isError?this.dataService.showPopupMessage($e.message):this.dataService.isCordovaApp()?this.mobitelUnSubCordovaApp($e.concent):this.mobitelUnSubPWAApp($e.concent)},$e=>{console.log("Error:",$e)})}const M={appId:this.appId,msisdn:this.dataService.getLocalStorageMSISDN(),uuId:this.dataService.getLocalStorageUUID()};this.alive=!0,this.subscription.unsubscribe(M).subscribe(U=>{console.log("Unsubscribe result:",U)}),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(U=>{this.subscriptionStatus=U.subscriptionStatus,this.dataService.subscriptionStatus=U.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",U=>{"SUCCESS"===U.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||H)(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(Vt.v))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,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,U){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,di,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 U.onUnsubscribe()}),e.\u0275\u0275text(11,"Unsubscribe Now"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"button",9),e.\u0275\u0275listener("click",function(){return U.close()}),e.\u0275\u0275text(13,"Cancel"),e.\u0275\u0275elementEnd()()()()()),2&M&&(e.\u0275\u0275property("ngIf",!U.isP2PchatTemplate),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngIf",0==U.isUnsubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==U.isUnsubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",1==U.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 H})();function Ci(H,S){1&H&&(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(H){return{display:H}};function pi(H,S){if(1&H&&(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&H){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(H,S){1&H&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275element(1,"app-header")(2,"app-page-body")(3,"app-footer"),e.\u0275\u0275elementEnd())}let ze=(()=>{class H{constructor(h,M,U,ge,$e,ut){this.router=h,this.dataService=M,this.messageService=U,this.connectionService=ge,this.appdataService=$e,this.titleService=ut,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,U,ge){const $e=document.createElement("link");$e.rel=h,$e.href=M,U&&($e.integrity=U),(ge||""===ge)&&($e.crossOrigin=ge),document.head.appendChild($e)}addCustomScriptsIntoDOM(h,M,U){const ge=document.createElement("script");ge.src=h,M&&(ge.integrity=M),(U||""===U)&&(ge.crossOrigin=U),document.body.appendChild(ge)}getAndSetFacebookPixelId(){this.appdataService.getFaceBookPixelId().subscribe(h=>{window.hasOwnProperty("fbq")&&h.facebookPixelId&&fbq("init",h.facebookPixelId)})}static#e=this.\u0275fac=function(M){return new(M||H)(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:H,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,U){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 ge=e.\u0275\u0275reference(2);e.\u0275\u0275property("ngIf",!U.isAppmakerPro)("ngIfElse",ge)}},dependencies:[f.NgIf,f.NgStyle,I,j.b8,j.sH,Nt,Qt],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 H})();var ue=a(5252),re=a(3634),Ee=a(2037),Re=a(6423),We=a(5550),xt=a(3048),Wt=a(9209);let wt=(()=>{class H{constructor(h){this.http=h}getGamezopConfigs(){return this.http.get(`${nt.L}/edit/getGamezopConfigs`)}static#e=this.\u0275fac=function(M){return new(M||H)(e.\u0275\u0275inject(l.eN))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac,providedIn:"root"})}return H})();function Mt(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",5),e.\u0275\u0275listener("click",function(){const ge=e.\u0275\u0275restoreView(h).$implicit,$e=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView($e.onCategoryClickHandler(ge))}),e.\u0275\u0275elementStart(1,"div",6)(2,"img",7),e.\u0275\u0275listener("load",function(U){e.\u0275\u0275restoreView(h);const ge=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(ge.onImageLoaded(U))})("error",function(U){e.\u0275\u0275restoreView(h);const ge=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(ge.onImgLoadingError(U))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",8),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()}if(2&H){const h=S.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("src",h.imgUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(h.name)}}function It(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Mt,5,2,"div",4),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",h.data.categories)}}function se(H,S){1&H&&(e.\u0275\u0275elementStart(0,"div",9),e.\u0275\u0275text(1,"0 Pages"),e.\u0275\u0275elementEnd())}function we(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",5),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const U=e.\u0275\u0275nextContext().$implicit,ge=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(ge.onArticleClickHandler(U))}),e.\u0275\u0275elementStart(1,"img",14),e.\u0275\u0275listener("load",function(U){e.\u0275\u0275restoreView(h);const ge=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(ge.onImageLoaded(U))})("error",function(U){e.\u0275\u0275restoreView(h);const ge=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(ge.onImgLoadingError(U))}),e.\u0275\u0275elementEnd()()}if(2&H){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 Le(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",15),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const U=e.\u0275\u0275nextContext().$implicit,ge=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(ge.onArticleClickHandler(U))}),e.\u0275\u0275elementStart(1,"img",14),e.\u0275\u0275listener("load",function(U){e.\u0275\u0275restoreView(h);const ge=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(ge.onImageLoaded(U))})("error",function(U){e.\u0275\u0275restoreView(h);const ge=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(ge.onImgLoadingError(U))}),e.\u0275\u0275elementEnd()()}if(2&H){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 Se(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div",9),e.\u0275\u0275template(1,we,2,1,"a",11),e.\u0275\u0275template(2,Le,2,1,"a",12),e.\u0275\u0275elementStart(3,"div",13),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&H){const h=S.$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 Ot(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Se,5,3,"div",10),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",h.data.articles)}}class Me{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(S,h,M,U,ge,$e,ut,Et){this.router=S,this.messageService=h,this.sanitizer=M,this.dataService=U,this.cdr=ge,this.commonService=$e,this.titleServ=ut,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(Me.APP_ID+"_isFromCMSAppView"),this.bannerImgUrl=this.commonService.getlocationBannerUrl()}ngOnChanges(){if(this.articleDescriptions=[],Me.TEMPLATE_NAME===Me.TEMPLATE.ZODIAC?this.noOfCategoryRows=Math.ceil(this.data.categories.length/3):(Me.TEMPLATE_NAME===Me.TEMPLATE.COMIC||Me.TEMPLATE_NAME===Me.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 S=0;S<this.data.articles.length;S++)this.articleDescriptions.push(this.data.articles[S].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(S=>{"sub_category"===S&&(this.isSubCategory=!0)})}onCategoryClickHandler(S){this.categoryClicked.emit({data:S})}onArticleClickHandler(S){this.dataService.data=S,this.router.navigate(S.isForm?["form",this.currentCategory.name,this.currentCategory.id,S.id]:"Education"==Me.TEMPLATE_NAME?["questions",this.currentCategory.name,this.currentCategory.id,S.id]:[S.isQuestion?"questions":"product",this.currentCategory.name,this.currentCategory.id,S.id])}onImageLoaded(S){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(S){this.imgLoadingErrCount+=1}getSafeHtml(S){return this.sanitizer.bypassSecurityTrustHtml(S)}showInfo(){this.router.navigate(["/location/information"])}navigate(S){this.commonService.navigate(S)}static#r=this.\u0275fac=function(h){return new(h||Me)(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(Vt.v),e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(e.NgZone))};static#o=this.\u0275cmp=e.\u0275\u0275defineComponent({type:Me,selectors:[["category"]],inputs:{isAppEnabledGamezopAds:"isAppEnabledGamezopAds",isTemplateEnabledToGamezop:"isTemplateEnabledToGamezop",data:"data"},outputs:{categoryClicked:"categoryClick"},features:[e.\u0275\u0275NgOnChangesFeature],decls:5,vars:3,consts:[[4,"ngIf"],[1,"page-container","padding"],[1,"bloc-size","bloc","bgc-white","l-bloc"],["class","row-size row",4,"ngIf"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],[1,"category-container","auto-card-category"],["width","100%",3,"src","load","error"],[1,"name-size","main-header-font"],[1,"row-size","row"],["class","row-size row",4,"ngFor","ngForOf"],[3,"click",4,"ngIf"],["target","_blank",3,"click",4,"ngIf"],[1,"name-size","main-header-font","name","auto-article-click"],["width","100%",1,"cat-image","auto-article-click",3,"src","load","error"],["target","_blank",3,"click"]],template:function(h,M){1&h&&(e.\u0275\u0275template(0,It,2,1,"div",0),e.\u0275\u0275elementStart(1,"div",1)(2,"div",2),e.\u0275\u0275template(3,se,2,0,"div",3),e.\u0275\u0275template(4,Ot,2,1,"div",0),e.\u0275\u0275elementEnd()()),2&h&&(e.\u0275\u0275property("ngIf",M.data.categories&&M.data.categories.length>0),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",M.data.categories&&0===M.data.categories.length&&M.data.articles&&0===M.data.articles.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",M.data.articles&&M.data.articles.length>0))},dependencies:[f.NgForOf,f.NgIf],styles:[".category-container[_ngcontent-%COMP%]{position:relative}.name-size[_ngcontent-%COMP%]{font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:10px 5px 20px;text-transform:uppercase}.t-margin-42[_ngcontent-%COMP%]{margin-top:42px}.row-size[_ngcontent-%COMP%]{position:relative;text-align:center;margin-bottom:1px}.name-size[_ngcontent-%COMP%]{font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:0}.name[_ngcontent-%COMP%]{padding:10px;text-transform:uppercase}"],changeDetection:0})}let bt=(()=>{class H{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||H)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,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,U){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",U.uniqueLink,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("src",U.bannerUrl,e.\u0275\u0275sanitizeUrl))},styles:[".gamezop-banner[_ngcontent-%COMP%]{text-align:center;margin:20px 0}.gamezop-banner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;height:auto}"]})}return H})();function Pt(H,S){if(1&H&&e.\u0275\u0275element(0,"gamezop-ad-banner",38),2&H){const h=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("gamezopConfigs",h.gamezopConfigs)("gamezopCustomParameter",h.gamezopCustomParameter)}}function ii(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"category",39),e.\u0275\u0275listener("categoryClick",function(U){e.\u0275\u0275restoreView(h);const ge=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(ge.onCategoryClicked(U))}),e.\u0275\u0275elementEnd()}if(2&H){const h=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("data",h.categoryDetails)}}function Ki(H,S){1&H&&(e.\u0275\u0275elementStart(0,"div",40),e.\u0275\u0275element(1,"img",41),e.\u0275\u0275elementEnd())}function On(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div",34),e.\u0275\u0275template(1,Pt,1,2,"gamezop-ad-banner",35),e.\u0275\u0275template(2,ii,1,1,"category",36),e.\u0275\u0275template(3,Ki,2,0,"div",37),e.\u0275\u0275elementEnd()),2&H){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 nr(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",45),e.\u0275\u0275listener("click",function(){const ge=e.\u0275\u0275restoreView(h).$implicit,$e=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView($e.navigateShop(null,ge.selectedCategories[0],null,null,ge.isFree,ge.id))}),e.\u0275\u0275elementStart(2,"a"),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&H){const h=S.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(h.title)}}function Lr(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",46),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const U=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(U.loadMoreLivearticles())}),e.\u0275\u0275text(1,"Load More"),e.\u0275\u0275elementEnd()}}function wr(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div",42),e.\u0275\u0275template(1,nr,4,1,"ng-container",43),e.\u0275\u0275template(2,Lr,2,0,"button",44),e.\u0275\u0275elementEnd()),2&H){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 vr(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div")(1,"p"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"titlecase"),e.\u0275\u0275elementEnd()()),2&H){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 ur(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,vr,4,5,"div",14),e.\u0275\u0275elementEnd()),2&H){const h=S.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.isEnabled&&"APPROVED"===h.status)}}function Yi(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,ur,2,1,"div",43),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",h.appPublishDetails.operators)}}function wn(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div")(1,"h3",18),e.\u0275\u0275text(2,"Subscribe"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,Yi,2,1,"div",14),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&H){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",h.appPublishDetails)}}function Rn(H,S){1&H&&(e.\u0275\u0275elementStart(0,"div")(1,"div",30)(2,"div",31),e.\u0275\u0275element(3,"div",32),e.\u0275\u0275elementStart(4,"div",33),e.\u0275\u0275text(5," Subscribing... "),e.\u0275\u0275elementEnd()()()())}function Fn(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"option",47),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&H){const h=S.$implicit;e.\u0275\u0275propertyInterpolate("value",h),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",h," ")}}var Mi,Xr;let hr=(()=>{class H{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,U,ge,$e,ut,Et,$t,vi,Ii,on,rn,Gi,Xi,kn,er,Mr,zr,Wr,zo,Pn){this.route=h,this.activatedRouter=M,this.dataService=U,this.router=ge,this.categoryService=$e,this.device=ut,this.title=Et,this.smsRetriever=$t,this.push=vi,this.subscription=Ii,this.productService=on,this.appDataService=rn,this.messageService=Gi,this.ngZone=Xi,this.articleService=kn,this.preventScreenshot=er,this.imageCacheService=Mr,this.swPush=zr,this.subscriptionService=Wr,this.lbsCommonService=zo,this.commonSettingsService=Pn,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),Mi=this,this.title.setLocation("home"),this.messageService.sendMessage({loadImageCount:-1}),this.dataService.searchTerm.subscribe(cn=>{this.searchTerm=cn,this.liveArticleIndex=0,this.articles=[],clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.loadArticles()},1e3)}),this.dataService.isInHomeComponent.subscribe(cn=>this.isInHomeComponent=cn),this._isInSearchComponentSub=this.dataService.isInSearchComponent.subscribe(cn=>{this.isSearchBtnClicked=cn,cn&&(this.dataService.initialImageCount=0,this.messageService.sendMessage({loadImageCount:-2}))}),this.dataService.changeInsInHomeComponent(!0),this.activatedRouter.queryParams.subscribe(cn=>{this.skipCategories=0,this.skipArticles=0,this.categoryID=cn.categoryID?cn.categoryID:null;let Hr=cn.categoryId?cn.categoryId:null,Wo=cn.categoryName?cn.categoryName:"",Ho=cn.articleId?cn.articleId:null,bs=cn.categoryType?cn.categoryType:null,Ls=cn.categoryImageUrl?cn.categoryImageUrl:null,us="true"==cn.isFreeCat||"false"!=cn.isFreeCat&&null;this.dataService.isPopupRequest="true"==cn.isPopupRequest,this.isLocationApp&&cn.hasOwnProperty("isFromPushMessage")&&(this.isFromPushMessage="true"==cn.isFromPushMessage),Hr&&Ho?(this.popUpArticleInfo={isFree:us,id:Hr,name:Wo,categoryType:bs,imageUrl:Ls,articleId:Ho},this.popUpCatInfo=null,this.title.setLocation("home"),this.getCategoriesWithArticles(),this.categoryID=Hr):Hr&&!Ho?(this.popUpCatInfo={data:{id:Hr,isFree:us,name:Wo,categoryType:bs,isMainCategory:!0}},this.popUpArticleInfo=null,this.title.setLocation("sub_category"),this.getCategoriesWithArticles(),this.categoryID=Hr):(this.popUpArticleInfo=null,this.popUpCatInfo=null,this.title.setLocation(this.categoryID?"sub_category":"home"),this.getCategoriesWithArticles())}),window.addEventListener("beforeinstallprompt",cn=>{this.promptEvent=cn,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(U=>{const ge=U.countryCode;return ge.substring(ge.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 U=this.articlesBackup.filter(ge=>ge.id===M)[0]?this.articlesBackup.filter(ge=>ge.id===M)[0]:null;U&&U.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,U,ge,$e,ut){this.dataService.isSuspendedApp?$("#appStatusModel").modal("show"):(null!=this.subMessageNavigateShop&&this.subMessageNavigateShop.unsubscribe(),this.isSubscribing=!1,this.dataService.pushMessageAttachedArticleId=null,this.manageArticleUser(),this.categoryService.getValidCategoryByArticleId(ut).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,ut,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,ut)):this.router.navigate(["/"+h,Et.id,Et.name,Et.imageUrl]))},Et=>{console.error(Et)}))}checkSubOnNavigateShop(h,M,U,ge,$e,ut){this.subMessageNavigateShop=this.subscriptionService.getSubscriptionMessage().subscribe($t=>{if($t.message.status===j.Yg.SUB_RESPONSE&&"ERROR"!=$t.message.data.status){this.subMessageNavigateShop.unsubscribe();const Ii=$t.message.data.data;!Ii.isError&&("SUBSCRIBED"==Ii.subscriptionStatus||Ii.isValid)&&this.checkSubOnNavigateShopContinue($t.message.data.data,h,M,U,ge,$e)}});const Et=new j.Mw;Et.status=j.Yg.SUB_REQUEST,Et.data.data={categoryId:M,categoryName:U,categoryType:ut},this.subscriptionService.sendSubscriptionMessage({message:Et})}checkSubOnNavigateShopContinue(h,M,U,ge,$e,ut){this.subscriptionStatus=h.subscriptionStatus,this.dataService.subscriptionStatus=h.subscriptionStatus,this.subscriptionStatus===this.dataService.STATUS_SUBSCRIBED||h.isValid?(this.manageArticleUser(),this.dataService.catId=U,this.isFromPushMessage?(this.isFromPushMessage=!1,this.loadArticle(U,ut)):this.isSearchBtnClicked?(this.dataService.changeIsInSearchComponent(!1),this.dataService.changeIsFromSearchComponent(!0),this.dataService.changeSearchTerm(null),this.loadArticle(U,ut)):this.router.navigate(["/"+M,U,ge,$e])):(this.isFromPushMessage=!1,this.dataService.subUserArticleData.id=U,this.dataService.subUserArticleData.name=ge,this.dataService.subUserArticleData.image=$e,this.dataService.pushMessageAttachedArticleId=ut,this.isSubscribing=!1)}postDeviceToken(h){try{h+="&appversion="+Mi.dataService.getAPKVersion(window.navigator.userAgent),Mi.categoryService.sendDeviceToken(h).subscribe(M=>{Mi.callOnNotificationOpen()},M=>{console.log("Error while sending the device token to be persist.Error: "+M),Mi.callOnNotificationOpen()})}catch(M){console.log("Exception in pushSuccessCallback: "+M)}}pushSuccessCallback(h){h&&null!==h?localStorage[H.PUSH_TOKEN_LOCAL_STORAGE_KEY]=h:localStorage.removeItem(H.PUSH_TOKEN_LOCAL_STORAGE_KEY),Mi.push.onTokenRefresh(Mi.pushTokenRefreshSuccessCallback,Mi.pushTokenRefreshErrorCallback),Mi.postDeviceToken("deviceId="+h+"&uuid="+Mi.uuid)}pushErrorCallback(h){console.log("pushErrorCallback: "+h)}pushTokenRefreshSuccessCallback(h){localStorage[H.PUSH_TOKEN_LOCAL_STORAGE_KEY]!==h&&Mi.postDeviceToken("deviceId="+h+"&uuid="+Mi.uuid+"&action=NEW_TOKEN")}pushTokenRefreshErrorCallback(h){console.log("pushTokenRefreshErrorCallback: "+h)}generatePushToken(){Mi.push.getToken(Mi.pushSuccessCallback,Mi.pushErrorCallback)}onNotificationOpenSuccessCallback(h){if(h=this.configRecievedPushMessage(h),Mi.isFromPushMessage=!0,"ARTICLE_MESSAGE"===h.type)Mi.onArticleMessageReceivedHandler(h);else if(!h.isInAppMsg&&h.tap&&h.categoryId&&h.articleId){const M=h.data.category;M.category=h.data.category,Mi.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(()=>{Mi.onCategoryClicked(M)},2e3)}else(!h.tap&&h.body||h.isInAppMsg)&&(Mi.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,Mi.loadArticleOnReceivePushMessage(M,h.articleId)}):h.categoryId&&$("#appPushNotificationModel").on("hidden.bs.modal",()=>{Mi.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()?Mi.push.onNotificationOpen(Mi.onNotificationOpenSuccessCallback,Mi.onNotificationOpenErrorCallback):window.FirebasePlugin.onMessageReceived(function(h){Mi.ngZone.run(()=>{Mi.onNotificationOpenSuccessCallback(h)})},function(h){Mi.onNotificationOpenErrorCallback(h)})}deviceUUIDCallback(h){!localStorage.getItem(Mi.localStorageUUIDString)&&h&&localStorage.setItem(Mi.localStorageUUIDString,h),Mi.subscription.getSubscriptionStatus({appId:Mi.appId,uuId:h}).subscribe(ge=>console.log("homepage.componenet.getSubscriptionStatus=> ",ge)),Mi.uuid=h,Mi.generatePushToken()}getDeviceUUID(){var h=localStorage.getItem(this.localStorageUUIDString);this.dataService.isFromBrowser()?(h||(h=this.dataService.getRandomId(),localStorage.setItem(Mi.localStorageUUIDString,h)),Mi.uuid=h):this.dataService.isIonicApp()?h?this.deviceUUIDCallback(h):this.device.getUUID(Mi.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(Xr),$("#otpRetryButton").hide(),$("#enterMSISDN").modal("show")}submitPin(){var h=this;return(0,F.Z)(function*(){const M=h.enteredPin;if(console.log("submit PIN:",M),clearTimeout(Xr),M){let U="";if("dialog"===h.operator)try{const $e=yield h.subscription.getMsisdnFormApiCall();console.log($e),U=$e.msisdn}catch{console.log("error while getting msisdn")}const ge={appId:h.appId,uuId:h.dataService.getLocalStorageUUID(),msisdn:h.getMSISDN(),appTitle:h.appTitle,pin:M,msisdn_api:U};console.log(JSON.stringify(ge)),h.showHideSubscribingModel(!0),h.subscription.submitPin(ge).subscribe($e=>{$e.isError?(h.showHideSubscribingModel(!1),h.hideOTPModel(),Mi.dataService.showPopupMessage($e.message)):h.subCheckPol()},$e=>{h.showHideSubscribingModel(!1);const ut=JSON.parse($e._body);ut.isError&&(h.hideOTPModel(),Mi.dataService.displayMessage="Wrong PIN"===ut.message||"Wrong Pin"===ut.message?Mi.dataService.wrongPinMsg:ut.message,$(()=>{$("#appStatusModel").modal("show")}),("Wrong PIN"===ut.message||"Wrong Pin"===ut.message)&&$("#appStatusModel").on("hidden.bs.modal",function(){$("#appStatusModel").off("hidden.bs.modal"),Mi.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){Mi.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 U=window.location.protocol+"//"+window.location.host+window.location.pathname;h=encodeURIComponent(U)}const M={appId:this.appId,uuId:this.dataService.getLocalStorageUUID(),msisdn:this.getMSISDN(),hostUrl:h};this.subscription.msub(M).subscribe(U=>{$("#enterMSISDN").modal("hide"),U.isError&&"ALREADY_SUBSCRIBED"!=U.message?this.dataService.showPopupMessage(U.message):this.isCordovaApp?this.mobitelSubCordovaApp(U.concent):this.mobitelSubPWAApp(U.concent)},U=>{console.log("Error:",U)})}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(Mi.smsRetrieverSuccessCallback,Mi.smsRetrieverErrorCallback))},M=>{const U=JSON.parse(M._body);U.isError&&(Mi.hideOTPModel(),Mi.dataService.showPopupMessage(U.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",U=>{"SUCCESS"===U.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){Mi.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=Mi.subscription.getPINFromSMS(h.Message,Mi.appPublishDetails.OTP_MESSAGE.pinStartIndex,Mi.appPublishDetails.OTP_MESSAGE.pinEndIndex);Mi.ngZone.run(()=>{M&&(Mi.enteredPin=M)}),setTimeout(function(){Mi.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(){Xr=setTimeout(function(){""===Mi.enteredPin&&$("#otpRetryButton").show()},5e3)}manageArticleUser(){const h=JSON.parse(localStorage.getItem(this.appId+"ArticleUser")),M=localStorage.getItem(this.localStorageUUIDString),U=localStorage.getItem(this.appId+"msisdn");M&&this.articleService.getArticleUser({params:{id:h?h.id:null,appId:this.appId,deviceUUID:M,MSISDN:U||null}}).subscribe($e=>{"SUCCESS"===$e.status&&localStorage.setItem(this.appId+"ArticleUser",JSON.stringify($e.data))},$e=>{console.error($e)})}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(U=>{h.articles=U,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(U=>(U.map(ge=>ge.imgUrl=this.imageCacheService.getTrustUrl(ge.imgUrl)),M(U)))})}cacheArticleImages(h){return new Promise(M=>{Promise.all(h.map($e=>new Promise(ut=>{this.imageCacheService.getImagesFromCache($e.tempImageArray,"imgUrl").then(Et=>{Et.map($t=>$t.imgUrl=this.imageCacheService.getTrustUrl($t.imgUrl)),$e.tempImageArray=Et,ut($e)})}))).then($e=>M($e))})}checkImagesAreInCache(h){let M=0;for(let U=0;U<h.length;U++)("object"==typeof h[U].imgUrl?h[U].imgUrl.changingThisBreaksApplicationSecurity:h[U].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 U=M.data;this.isCordovaApp?(this.dataService.isImageCacheInitialized.subscribe(ge=>{ge&&this.prepareCategoriesToShow(U)}),this.title.changeTitle(U.mainCategory?U.mainCategory.name:this.appTitle)):U.categories.length>0||U.articles.length>0||null!=U.mainCategory?(this.finalizeCategoriesWithArticlesToShow(U),this.title.changeTitle(U.mainCategory?U.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,U={categoryID:M.id};this.isFromCMSAppView||this.isFreeApp||"FREE"==M.categoryType&&this.dataService.isFreeCategoryViewAvailable?this.dataService.isPopupRequest?this.getCategoriesWithArticles():this.router.navigate([""],{queryParams:U}):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),U=this.subscriptionService.getSubscriptionMessage().subscribe($e=>{let ut="ERROR"==$e.message.data.status&&!0;if($e.message.status!==j.Yg.SUB_RESPONSE||ut)$e.message.status===j.Yg.SUB_RESPONSE&&ut&&$e.message.data.data.subscriptionStatus==j.y5.SUBSCRIBED&&(this.subscriptionStatus=$e.message.data.data.subscriptionStatus,this.dataService.subscriptionStatus=$e.message.data.data.subscriptionStatus,this.messageService.sendMessage({subscription:$e.message.data.data}),this.isCheckSubOnCategoryClickedLocked=!1,clearTimeout(M));else{U.unsubscribe();const Et=$e.message.data.data;!Et.isError&&("SUBSCRIBED"==Et.subscriptionStatus||Et.isValid)&&(this.checkSubOnCategoryClickedContinue(h,$e.message.data.data),this.isCheckSubOnCategoryClickedLocked=!1,clearTimeout(M))}}),ge=new j.Mw;ge.status=j.Yg.SUB_REQUEST,ge.data.data={categoryId:h.categoryID,categoryName:h.categoryName,categoryType:h.categoryType},this.subscriptionService.sendSubscriptionMessage({message:ge})}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||H)(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(N.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(Wt.y),e.\u0275\u0275directiveInject(ne.Mk),e.\u0275\u0275directiveInject(j.FF),e.\u0275\u0275directiveInject(Vt.v),e.\u0275\u0275directiveInject(wt))};static#i=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,selectors:[["app-homepage"]],hostBindings:function(M,U){1&M&&e.\u0275\u0275listener("scroll",function(){return U.onScroll()},!1,e.\u0275\u0275resolveWindow)},decls:84,vars:11,consts:[["class","category-wrap",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"],[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",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"],[1,"category-wrap"],[3,"gamezopConfigs","gamezopCustomParameter",4,"ngIf"],[3,"data","categoryClick",4,"ngIf"],["class","img-loader",4,"ngIf"],[3,"gamezopConfigs","gamezopCustomParameter"],[3,"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,U){1&M&&(e.\u0275\u0275template(0,On,4,3,"div",0),e.\u0275\u0275template(1,wr,3,2,"div",1),e.\u0275\u0275elementStart(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"button",6),e.\u0275\u0275listener("click",function(){return U.hidePopup()}),e.\u0275\u0275text(7," \xd7 "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"h5",7),e.\u0275\u0275text(9,"Click to install the app "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"div",8)(11,"button",9),e.\u0275\u0275listener("click",function(){return U.installPWAApp()}),e.\u0275\u0275text(12,"INSTALL"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(13,"div",10)(14,"div",11)(15,"div",4)(16,"div",8)(17,"button",12)(18,"span",13),e.\u0275\u0275text(19,"\xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(20,wn,10,1,"div",14),e.\u0275\u0275template(21,Rn,6,0,"div",14),e.\u0275\u0275elementStart(22,"button",15),e.\u0275\u0275listener("click",function(){return U.onSubscribe()}),e.\u0275\u0275text(23,"Subscribe Now"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"button",16),e.\u0275\u0275listener("click",function(){return U.onCancel()}),e.\u0275\u0275text(25,"Cancel"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(26,"div",17)(27,"div",11)(28,"div",4)(29,"div",8)(30,"button",12)(31,"span",13),e.\u0275\u0275text(32,"\xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(33,"h3",18),e.\u0275\u0275text(34,"Subscribe"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(35,"p"),e.\u0275\u0275text(36,"Enter your mobile number."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(37,"p"),e.\u0275\u0275text(38,"\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(39,"p"),e.\u0275\u0275text(40,"\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(41,"br"),e.\u0275\u0275elementStart(42,"p",19)(43,"span"),e.\u0275\u0275text(44,"+"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(45,"select",20),e.\u0275\u0275listener("ngModelChange",function($e){return U.selectedCountryCode=$e}),e.\u0275\u0275template(46,Fn,2,2,"option",21),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(47,"input",22),e.\u0275\u0275listener("ngModelChange",function($e){return U.enteredMobileNumber=$e}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(48,"br"),e.\u0275\u0275elementStart(49,"button",15),e.\u0275\u0275listener("click",function(){return U.submitMobileNumber()}),e.\u0275\u0275text(50,"Submit"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(51,"br"),e.\u0275\u0275elementStart(52,"button",23),e.\u0275\u0275text(53,"Cancel"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(54,"div",24)(55,"div",11)(56,"div",4)(57,"div",25)(58,"button",12)(59,"span",13),e.\u0275\u0275text(60,"\xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(61,"h3",18),e.\u0275\u0275text(62,"Subscribe"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(63,"p"),e.\u0275\u0275text(64,"Enter verification code."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(65,"p"),e.\u0275\u0275text(66,"SMS \u0d9a\u0ddd\u0da9\u0dca \u0d91\u0d9a \u0d87\u0dad\u0dd4\u0dbd\u0dad\u0dca \u0d9a\u0dbb\u0db1\u0dca\u0db1."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(67,"p"),e.\u0275\u0275text(68,"\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(69,"br"),e.\u0275\u0275elementStart(70,"p",26)(71,"input",27),e.\u0275\u0275listener("ngModelChange",function($e){return U.enteredPin=$e})("ngModelChange",function(){return U.onchangeEnteredPin()}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(72,"br"),e.\u0275\u0275elementStart(73,"button",15),e.\u0275\u0275listener("click",function(){return U.submitPin()}),e.\u0275\u0275text(74,"Submit"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(75,"br"),e.\u0275\u0275elementStart(76,"button",28),e.\u0275\u0275listener("click",function(){return U.retry()}),e.\u0275\u0275text(77,"Retry"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(78,"div",29)(79,"div",30)(80,"div",31),e.\u0275\u0275element(81,"div",32),e.\u0275\u0275elementStart(82,"div",33),e.\u0275\u0275text(83," Subscribing... "),e.\u0275\u0275elementEnd()()()()()()()),2&M&&(e.\u0275\u0275property("ngIf",!U.isSearchBtnClicked),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.isSearchBtnClicked),e.\u0275\u0275advance(19),e.\u0275\u0275property("ngIf",0==U.isSubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==U.isSubscribing),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",1==U.isSubscribing),e.\u0275\u0275advance(23),e.\u0275\u0275property("ngModel",U.selectedCountryCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",U.countries),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",U.enteredMobileNumber),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",!U.enteredMobileNumber||U.enteredMobileNumber>"999999999"),e.\u0275\u0275advance(22),e.\u0275\u0275property("ngModel",U.enteredPin),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",!U.enteredPin))},dependencies:[f.NgForOf,f.NgIf,Me,bt,o.YN,o.Kr,o.Fj,o.wV,o.EJ,o.JJ,o.On,f.TitleCasePipe],styles:['img[_ngcontent-%COMP%]{margin-bottom:1px!important;position:relative}.category-wrap[_ngcontent-%COMP%]{padding-top:58px;padding-bottom:60px}.m-container-padding[_ngcontent-%COMP%]{padding-top:70px;padding-bottom: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}.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}}.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 H})(),br=(()=>{class H{constructor(h,M,U,ge){this.appdataService=h,this.dataService=M,this.title=U,this.messageService=ge,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||H)(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:H,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,U){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",U.header,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",U.content,e.\u0275\u0275sanitizeHtml))},styles:["h3[_ngcontent-%COMP%]{padding-top:40px}.text-editor[_ngcontent-%COMP%]{padding-bottom:70px}"]})}return H})();function Bn(H,S){if(1&H&&(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&H){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275property("innerHTML",h.defaultTerms,e.\u0275\u0275sanitizeHtml)}}let bi=(()=>{class H{constructor(h,M,U,ge){this.http=h,this.appdataService=M,this.title=U,this.messageService=ge,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||H)(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:H,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,U){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,Bn,5,1,"div",6),e.\u0275\u0275elementEnd()()()),2&M&&(e.\u0275\u0275advance(7),e.\u0275\u0275property("innerHTML",U.terms,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(5),e.\u0275\u0275property("innerHTML",U.privacyPolicy,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.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 H})();function gi(H,S){if(1&H&&(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&H){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(8),e.\u0275\u0275textInterpolate(h.address)}}function ji(H,S){if(1&H&&(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&H){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(8),e.\u0275\u0275textInterpolate(h.telPhone)}}function Sn(H,S){if(1&H&&(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&H){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 Hn(H,S){if(1&H&&(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&H){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 _n(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"a",17),e.\u0275\u0275element(1,"i",18),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("href",h.twitter,e.\u0275\u0275sanitizeUrl)}}function tr(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"a",17),e.\u0275\u0275element(1,"i",19),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("href",h.facebook,e.\u0275\u0275sanitizeUrl)}}function wi(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"a",17),e.\u0275\u0275element(1,"i",20),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("href",h.instagram,e.\u0275\u0275sanitizeUrl)}}function qi(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"a",17),e.\u0275\u0275element(1,"i",21),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("href",h.pinterest,e.\u0275\u0275sanitizeUrl)}}function Zn(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"a",17),e.\u0275\u0275element(1,"i",22),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("href",h.linkedin,e.\u0275\u0275sanitizeUrl)}}function zi(H,S){if(1&H&&(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&H){const h=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275propertyInterpolate("href",h.tiktok,e.\u0275\u0275sanitizeUrl)}}function Nn(H,S){if(1&H&&(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,gi,9,1,"div",3),e.\u0275\u0275template(5,ji,9,1,"div",3),e.\u0275\u0275template(6,Sn,10,2,"div",3),e.\u0275\u0275template(7,Hn,10,2,"div",3),e.\u0275\u0275elementStart(8,"div",4),e.\u0275\u0275template(9,_n,2,1,"a",5),e.\u0275\u0275template(10,tr,2,1,"a",5),e.\u0275\u0275template(11,wi,2,1,"a",5),e.\u0275\u0275template(12,qi,2,1,"a",5),e.\u0275\u0275template(13,Zn,2,1,"a",5),e.\u0275\u0275template(14,zi,3,1,"a",6),e.\u0275\u0275elementEnd()()()),2&H){const h=S.$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 Rr=(()=>{class H{constructor(){this.appId=v.Jf,this.userId=v.xS}static#e=this.\u0275fac=function(M){return new(M||H)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,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,U){1&M&&e.\u0275\u0275template(0,Nn,15,10,"section",0),2&M&&e.\u0275\u0275property("ngForOf",U.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 H})();function Qn(H,S){if(1&H&&e.\u0275\u0275element(0,"app-contact-info",4),2&H){const h=e.\u0275\u0275nextContext();e.\u0275\u0275property("contacts",h.contactInfo)}}let Ei=(()=>{class H{constructor(h,M,U){this.appdataService=h,this.title=M,this.messageService=U,this.CONTACNTINFO=[],this.contactInfo=this.CONTACNTINFO,this.messageService.sendMessage({loadImageCount:-2}),this.appdataService.getContactUs().subscribe(ge=>{if(ge.contactInfo){const $e=ge.contactInfo;this.CONTACNTINFO.push($e),$e.coords&&(this.lat=$e.coords.latitude,this.lng=$e.coords.longitude)}}),this.title.changeTitle("Contact Us"),this.title.setLocation("contactUs")}static#e=this.\u0275fac=function(M){return new(M||H)(e.\u0275\u0275directiveInject(g.U),e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(b.e))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,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,U){1&M&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275template(3,Qn,1,1,"app-contact-info",3),e.\u0275\u0275elementEnd()()()),2&M&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",U.contactInfo))},dependencies:[f.NgIf,Rr],styles:["agm-map[_ngcontent-%COMP%]{height:600px}@media (max-width: 767px){agm-map[_ngcontent-%COMP%]{height:360px}}"]})}return H})();function jn(H,S){1&H&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275text(1,"0 Pages"),e.\u0275\u0275elementEnd())}function mt(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",8),e.\u0275\u0275listener("click",function(){const ge=e.\u0275\u0275restoreView(h).$implicit,$e=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView($e.navigateProd("product",ge))}),e.\u0275\u0275elementStart(1,"img",9),e.\u0275\u0275listener("load",function(U){e.\u0275\u0275restoreView(h);const ge=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ge.imageLoaded(U))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"div",10),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()}if(2&H){const h=S.$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 ni(H,S){1&H&&(e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275element(1,"img",12),e.\u0275\u0275elementEnd())}let he=(()=>{class H{onScroll(){this.isBottomReached()&&this.fullCount>this.skip&&this.getProducts()}constructor(h,M,U,ge,$e,ut,Et){this.productService=h,this.dataService=M,this.router=U,this.route=ge,this.title=$e,this.messageService=ut,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 U=$e=>new Promise(ut=>{this.imageCacheService.getImagesFromCache($e.tempImageArray,"imageUrl").then(Et=>{$e.tempImageArray=Et,ut($e)})});Promise.all(h.map(U)).then($e=>M($e))}else M(h)})}checkImagesAreInCache(h){let M=0;for(let U=0;U<h.length;U++)for(let ge=0;ge<h[U].tempImageArray.length;ge++)h[U].tempImageArray[ge].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 U=0;U<M.length;U++)this.description.push(this.htmlToPlaintext(M[U].desc));this.prepareArticlesToShow(M).then(U=>{this.results.push(...U),this.skip=this.results.length,this.dataService.isCordovaApp()&&(this.checkImagesAreInCache(this.results),this.results.map(ge=>{ge.tempImageArray.map($e=>$e.imageUrl=this.imageCacheService.getTrustUrl($e.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||H)(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(Wt.y))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,selectors:[["app-shop"]],hostBindings:function(M,U){1&M&&e.\u0275\u0275listener("scroll",function(){return U.onScroll()},!1,e.\u0275\u0275resolveWindow)},decls:7,vars:3,consts:[[1,"page-container","padding"],["id","bloc-2",1,"bloc-size","bloc","bgc-white","l-bloc"],["class","row-size row",4,"ngIf"],["class","row-size row",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,"row-size","row"],[1,"row-size","row",3,"click"],["width","100%",1,"cat-image",3,"src","load"],[1,"name-size","main-header-font","name"],[1,"img-loader"],["src","/assets/images/Loading75.gif"]],template:function(M,U){1&M&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275template(2,jn,2,0,"div",2),e.\u0275\u0275template(3,mt,4,2,"div",3),e.\u0275\u0275template(4,ni,2,0,"div",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"a",5),e.\u0275\u0275element(6,"span",6),e.\u0275\u0275elementEnd()()),2&M&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",U.results&&U.results.length<=0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",U.results),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0!=U.skip&&0!=U.fullCount&&U.skip!=U.fullCount))},dependencies:[f.NgForOf,f.NgIf],styles:[".container[_ngcontent-%COMP%]{height:100vh;background:#fff;border-top:1px solid #ccc}.name[_ngcontent-%COMP%]{padding:10px;text-transform:uppercase}.bloc-size[_ngcontent-%COMP%]{margin-top:42px;margin-bottom:42px!important}.margin-l[_ngcontent-%COMP%]{margin:8px 5px}.row-size[_ngcontent-%COMP%]{position:relative;text-align:center;margin-bottom:1px}.name-size[_ngcontent-%COMP%]{font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:0}.cat-image[_ngcontent-%COMP%]{height:calc(100vh / 3)}.img-loader[_ngcontent-%COMP%]{margin:40px;padding-bottom:60px;text-align:center}"]})}return H})();var je=a(1526),Ye=a(7925);const At=function(H,S){return{"light-font":H,"bold-font":S}},ci=function(H,S){return{"place-right":!0,"light-font":H,"bold-font":S}};function Wi(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275listener("click",function(){const ge=e.\u0275\u0275restoreView(h).$implicit,$e=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView($e.gotoMessages(ge._id,ge.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&H){const h=S.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(7,At,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,ci,h.isRead,!h.isRead)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(5,4,h.date,"dd/MM/yyyy"),"")}}const ln=function(){return{"place-right":!0}};let en=(()=>{class H{constructor(h,M,U,ge){this.title=h,this.articleService=M,this.router=U,this.messageService=ge,this.messageArticles=[],this.title.changeTitle("Inbox"),this.title.setLocation("Inbox"),this.articleUser=JSON.parse(localStorage.getItem(Ye.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,U)=>new Date(U.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||H)(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:H,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,U){1&M&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275listener("click",function(){return U.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,Wi,6,13,"div",3),e.\u0275\u0275elementEnd()),2&M&&(e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction0(2,ln)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",U.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 H})(),$n=(()=>{class H{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(M){return new(M||H)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,selectors:[["general-message"]],inputs:{message:"message"},decls:6,vars:5,consts:[[1,"main-container"],[1,"d-container"],[1,"m-container"]],template:function(M,U){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,U.message.createdAt,"dd/M/yyyy h:mm a")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(U.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:#fff;border-radius:5px}"]})}return H})();function Dn(H,S){1&H&&e.\u0275\u0275element(0,"general-message",2),2&H&&e.\u0275\u0275property("message",S.$implicit)}let Ro=(()=>{class H{onScroll(){this.isBottomReached()&&this.getPushMessages(this.skip)}constructor(h,M,U){this.pushMessageService=h,this.title=M,this.messageService=U,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(U=>{"SUCCESS"===U.status&&(this.messages.push(...U.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||H)(e.\u0275\u0275directiveInject(Je),e.\u0275\u0275directiveInject(X.y),e.\u0275\u0275directiveInject(b.e))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,selectors:[["general-messages"]],hostBindings:function(M,U){1&M&&e.\u0275\u0275listener("scroll",function(){return U.onScroll()},!1,e.\u0275\u0275resolveWindow)},decls:2,vars:1,consts:[[1,"messages-content"],[3,"message",4,"ngFor","ngForOf"],[3,"message"]],template:function(M,U){1&M&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Dn,1,1,"general-message",1),e.\u0275\u0275elementEnd()),2&M&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",U.messages))},dependencies:[f.NgForOf,$n],styles:[".messages-content[_ngcontent-%COMP%]{padding:50px 0 66px}"]})}return H})(),Ri=(()=>{class H{constructor(h,M,U,ge,$e){this.dataService=h,this.router=M,this.appDataService=U,this.subscription=ge,this.titleServ=$e,this.appId=v.Jf,this.templateName=v.Bv,this.articleId=""}canActivate(h,M){if(this.titleServ.getLocation().subscribe(U=>{this.isSubCategory="sub_category"===U,console.log("getLocation",U),this.isPage="product"===U}),"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,Qe.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,Qe.of)(!0);this.isPage||this.router.navigate(["location"])}}isValid(h){if(null!=localStorage.getItem("purchase-token"))return(0,Qe.of)(!0);let U=localStorage.getItem(this.appId+"msisdn");const ge=localStorage.getItem("UUID");let $e={catId:h};return new C.y(ut=>{this.appDataService.getAppDetails($e).subscribe(Et=>{if(!Et)return ut.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"),ut.next(!0);if(Et.category?.categoryType&&"SUBSCRIPTION"===Et.category?.categoryType)$e={appId:this.appId,msisdn:U,uuId:ge,catId:h},this.subscription.getSubscribedData($e).subscribe($t=>"UNSUBSCRIBED"!=$t.subscriptionStatus?ut.next(!0):(this.dataService.changeLoadArticlesFromHome({isTrue:!0,articleId:this.articleId}),ut.next(this.router.parseUrl(""))));else{if(!Et.category?.categoryType||"OTC"!==Et.category?.categoryType)return ut.next(!(!Et.category?.categoryType||"FREE"!==Et.category?.categoryType)||this.router.parseUrl(""));U=this.dataService.getOTCMSISDNByCatID(this.appId,h),$e={appId:this.appId,msisdn:U,uuId:ge,categoryId:h},this.subscription.isOTCValid($e).subscribe($t=>$t.isValid?ut.next(!0):(this.dataService.changeLoadArticlesFromHome({isTrue:!0,articleId:this.articleId}),ut.next(this.router.parseUrl(""))))}})})}static#e=this.\u0275fac=function(M){return new(M||H)(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:H,factory:H.\u0275fac,providedIn:"root"})}return H})();const Cn=[{path:"",component:hr,pathMatch:"full",canActivate:[Ri]},{path:"aboutus",component:br,data:{title:"About Us Page"}},{path:"policies",component:bi,data:{title:"Policies Page"}},{path:"contact",component:Ei,data:{title:"Contact Page"}},{path:"shop/:id/:name/:image",component:he,data:{title:"Shop Page"}},{path:"product/:catName/:catId/:articleId",component:je.F,data:{title:"Product Page"},canActivate:[Ri]},{path:"messaging/:id/:title",component:Ye.b},{path:"inbox",component:en},{path:"general",component:Ro},{path:"crm",loadChildren:()=>Promise.resolve().then(a.bind(a,8552)).then(H=>H.CrmTemplateModule)},{path:"form/:catName/:catId/:articleId",loadChildren:()=>Promise.resolve().then(a.bind(a,1663)).then(H=>H.FormEngineModule)},{path:"questions/:catName/:catId/:articleId",canActivate:[Ri],loadChildren:()=>Promise.resolve().then(a.bind(a,6565)).then(H=>H.QuestionProductModule)},{path:"chatTemplate",loadChildren:()=>Promise.resolve().then(a.bind(a,8182)).then(H=>H.ChatTemplateModule)},{path:"appmakerPro",loadChildren:()=>a.e(938).then(a.bind(a,2938)).then(H=>H.Appmaker20Module)},{path:"job",loadChildren:()=>Promise.resolve().then(a.bind(a,3657)).then(H=>H.JobTemplateModule)},{path:"location",loadChildren:()=>Promise.resolve().then(a.bind(a,3340)).then(H=>H.LocationTemplateModule)},{path:"**",redirectTo:""}];let hn=(()=>{class H{static#e=this.\u0275fac=function(M){return new(M||H)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:H});static#i=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[d.Bz.forRoot(Cn,{scrollPositionRestoration:"top",preloadingStrategy:d.wm}),d.Bz]})}return H})();var pr=a(6565);let Jr=(()=>{class H{static#e=this.\u0275fac=function(M){return new(M||H)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:H});static#i=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[f.CommonModule]})}return H})();var Vn=a(231),so=a(8552),Fr=a(8182),$r=a(1663),Ir=a(9818),zn=a(7392),Sr=a(7084),sr=a(5001),Br=a(6255),fr=a(8014),qr=a(3657),eo=a(522),Dr=a(3493),Ao=a(3340),an=a(9441);function Co(H,S){if(1&H){const h=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"a",2),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(h);const U=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(U.downloadFile())}),e.\u0275\u0275elementStart(2,"div"),e.\u0275\u0275element(3,"i",3),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()}if(2&H){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",h.message.file.niceFileName,"")}}const ir=function(H){return{"message-content":!0,"message-content-right":H}},gr=function(H){return{"main-content-font":!0,"text-align-right":H}},Kr=function(H,S){return{"message-body-content":!0,"main-content-font":H,"article-user-message":S}};let mo=(()=>{class H{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:Ye.b.APP_ID,userId:Ye.b.USER_ID,articleUserId:this.message.user.id,fileType:this.message.file.type,fileName:this.message.file.name}).subscribe(U=>{if(console.log(U),U.type===l.dt.Response)if(this.isCordovaApp){let ge="file:///storage/emulated/0/Download";console.log(ge),window.resolveLocalFileSystemURL(ge,function($e){$e.getFile(M.message.file.name,{create:!0},function(ut){ut.createWriter(function(Et){Et.write(U.body),Et.onwriteend=function(){ut.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(ut){console.log("Unable to download"),console.error(ut)})},function($e){console.log("Unable to download"),console.error($e)})}else(0,an.saveAs)(U.body,this.message.file.name)})}static#e=this.\u0275fac=function(M){return new(M||H)(e.\u0275\u0275directiveInject(We.n),e.\u0275\u0275directiveInject(u.V))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,selectors:[["article-message"]],inputs:{message:"message"},decls:9,vars:16,consts:[[3,"ngClass"],[4,"ngIf"],[3,"click"],[1,"fa","fa-download"]],template:function(M,U){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,Co,5,1,"div",1),e.\u0275\u0275elementEnd()()()),2&M&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(9,ir,U.message.isSentByArticleUser)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(11,gr,!U.message.isSentByArticleUser)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,6,U.message.sentDateTime,"dd/M/yyyy h:mm a")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(13,Kr,!U.message.isSentByArticleUser,U.message.isSentByArticleUser)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(U.message.message),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.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:#fff;border-color:#fff}.text-align-right[_ngcontent-%COMP%]{text-align:right}"]})}return H})();function xo(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div",12)(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&H){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(h.fileName)}}function ao(H,S){if(1&H&&(e.\u0275\u0275elementStart(0,"div",13),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&H){const h=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",h.errorMessage," ")}}const Tr=function(H,S){return{"div-send-disable":H,"div-send-enable":S}};let Mo=(()=>{class H{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(Ye.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:Ye.b.APP_ID,userId:Ye.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)},U=()=>{const $t=ge.type;ge.size/1e6>H.MAX_SIZE?this.showErrors("File size should be less than 50MB."):($t.indexOf(H.ACCEPTED_FILE_TYPE.IMAGE.value)>-1?this.fileType=H.ACCEPTED_FILE_TYPE.IMAGE.type:$t.indexOf(H.ACCEPTED_FILE_TYPE.VIDEO.value)>-1?this.fileType=H.ACCEPTED_FILE_TYPE.VIDEO.type:$t.indexOf(H.ACCEPTED_FILE_TYPE.PDF.value)>-1?this.fileType=H.ACCEPTED_FILE_TYPE.PDF.type:M("The file type you have selected is not supported"),this.file=ge,this.fileName=ge.name)},ge=h.target.files[0];if(ge){var $e=window.URL||window.webkitURL,ut=new Image;ut.src=$e.createObjectURL(ge),ut.onerror=()=>M("The file type you have selected is not supported"),ut.onload=()=>U()}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||H)(e.\u0275\u0275directiveInject(We.n))};static#n=this.\u0275cmp=e.\u0275\u0275defineComponent({type:H,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,U){if(1&M&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,xo,3,1,"div",1),e.\u0275\u0275template(2,ao,2,1,"div",2),e.\u0275\u0275elementStart(3,"div",3)(4,"div",4)(5,"textarea",5,6),e.\u0275\u0275listener("ngModelChange",function($e){return U.articleMessage.message=$e}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",7)(8,"label")(9,"i",8)(10,"input",9),e.\u0275\u0275listener("change",function($e){return U.onFileSelectHandler($e)}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(11,"div",10)(12,"div",11),e.\u0275\u0275listener("click",function(){return U.onSendButtonClickHandler()}),e.\u0275\u0275text(13,"Send"),e.\u0275\u0275elementEnd()()()()),2&M){const ge=e.\u0275\u0275reference(6);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.fileName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",U.showError),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",U.articleMessage.message),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(4,Tr,0===ge.value.length,ge.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 H})(),Fo=(()=>{class H{static#e=this.\u0275fac=function(M){return new(M||H)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:H});static#i=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[f.CommonModule,hn,ue.N,o.u5,o.UX,Vn.Z,pr.QuestionProductModule,qr.JobTemplateModule,so.CrmTemplateModule,Jr,Fr.ChatTemplateModule,$r.FormEngineModule,Ao.LocationTemplateModule,Ir.yu,zn.Ps,Sr.To,Lt.yj,sr.y,Br.jT,fr.t,eo.p,Dr.OwlModule]})}return H})();e.\u0275\u0275setComponentScope(Ye.b,[f.NgForOf,mo,Mo],[]);var ar,Nr=a(5457),An=a(8929);let lo=(()=>{class H{constructor(h,M,U){this.httpClient=h,this.parentJWTService=M,this.dataService=U,this.jwt=new An.xQ,ar=this}getNewToken(){return new C.y(h=>{const M={appId:this.dataService.appId,msisdn:this.dataService.getLocalStorageMSISDN(),uuId:this.dataService.getLocalStorageUUID()},U={headers:new l.WM({"Content-Type":"application/json"})},ge=this.dataService.getServerURL()+"/auth/getTokenForMobileUser";this.httpClient.post(ge,M,U).subscribe($e=>{this.dataService.setLocalStorageToken($e.token),h.next($e.token)},$e=>{h?.error($e)})})}getToken(){return new C.y(h=>{if(this.dataService.isFromMobile){const M=this.dataService.getLocalStorageToken();M?h.next({token:M}):this.getNewToken().subscribe(U=>{h.next({token:U})},U=>{console.log("auth.service: Error occured when getToken error:",U),h?.error(U)})}else{const M=this.getParentToken().subscribe(U=>{M.unsubscribe(),h.next(U)})}})}getParentToken(){return ar.parentJWTService.getToken(ar.getParentJWTCallback),ar.jwt.asObservable()}getParentJWTCallback(h){console.log("getParentJWTCallback in authService=>",h),ar.jwt.next({token:h})}static#e=this.\u0275fac=function(M){return new(M||H)(e.\u0275\u0275inject(l.eN),e.\u0275\u0275inject(Nr.G),e.\u0275\u0275inject(u.V))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac})}return H})(),po=(()=>{class H{constructor(h,M,U){this.authService=h,this.dataService=M,this.httpClient=U,this.jwt=new An.xQ,this.appId=v.Jf,this.userId=v.xS}sendAPICall(h){return new C.y(M=>{const U=this.authService.getToken().subscribe(ge=>{U&&U.unsubscribe();let $e={};"none"!==ge.token&&($e={headers:new l.WM({"Content-Type":"application/json",Authorization:"Bearer "+ge.token})}),this.httpClient.get(h,$e).subscribe(ut=>{M.next(ut)},ut=>{if(ut instanceof l.UA){const Et=ut,$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(ut))}else console.log("auth.handler.service: Call api: error not returning a HttpErrorResponse?.error:",ut),M?.error(ut)})},ge=>{console.log("auth.handler.service: Call getToken error:",ge),M?.error(ge)})})}renewTokenAndReSendAPICall(h,M){this.authService.getNewToken().subscribe(U=>{const ge={headers:new l.WM({"Content-Type":"application/json",Authorization:"Bearer "+U})};this.httpClient.get(h,ge).subscribe($e=>{M.next($e)},$e=>{console.log("api.handler.service.renewTokenAndReSendAPICall: Error renewing the token.Err: ",$e),M?.error($e)})},U=>{console.log("auth.handler.service: Call renewTokenAndReSendAPICall error:",U),M?.error(U)})}static#e=this.\u0275fac=function(M){return new(M||H)(e.\u0275\u0275inject(lo),e.\u0275\u0275inject(u.V),e.\u0275\u0275inject(l.eN))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac})}return H})();var yr=a(1737),to=a(4850);let Yn=(()=>{class H{constructor(h){this.dataService=h}intercept(h,M){return M.handle(h).pipe((0,to.U)(U=>U),(0,Oe.K)(U=>(U.statusText&&"Unknown Error"===U.statusText&&console.log("Oops something went wrong, please try again in a bit.  : ERROR "+JSON.stringify(U)),(0,yr._)(U))))}static#e=this.\u0275fac=function(M){return new(M||H)(e.\u0275\u0275inject(u.V))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac})}return H})();var Bo=a(9664),mn=a(7340);function rt(H){return new e.\u0275RuntimeError(3e3,!1)}function Eo(){return typeof window<"u"&&typeof window.document<"u"}function Ur(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Xn(H){switch(H.length){case 0:return new mn.ZN;case 1:return H[0];default:return new mn.ZE(H)}}function fo(H,S,h,M,U=new Map,ge=new Map){const $e=[],ut=[];let Et=-1,$t=null;if(M.forEach(vi=>{const Ii=vi.get("offset"),on=Ii==Et,rn=on&&$t||new Map;vi.forEach((Gi,Xi)=>{let kn=Xi,er=Gi;if("offset"!==Xi)switch(kn=S.normalizePropertyName(kn,$e),er){case mn.k1:er=U.get(Xi);break;case mn.l3:er=ge.get(Xi);break;default:er=S.normalizeStyleValue(Xi,kn,er,$e)}rn.set(kn,er)}),on||ut.push(rn),$t=rn,Et=Ii}),$e.length)throw function qt(H){return new e.\u0275RuntimeError(3502,!1)}();return ut}function No(H,S,h,M){switch(S){case"start":H.onStart(()=>M(h&&ms(h,"start",H)));break;case"done":H.onDone(()=>M(h&&ms(h,"done",H)));break;case"destroy":H.onDestroy(()=>M(h&&ms(h,"destroy",H)))}}function ms(H,S,h){const ge=ns(H.element,H.triggerName,H.fromState,H.toState,S||H.phaseName,h.totalTime??H.totalTime,!!h.disabled),$e=H._data;return null!=$e&&(ge._data=$e),ge}function ns(H,S,h,M,U="",ge=0,$e){return{element:H,triggerName:S,fromState:h,toState:M,phaseName:U,totalTime:ge,disabled:!!$e}}function xr(H,S,h){let M=H.get(S);return M||H.set(S,M=h),M}function Uo(H){const S=H.indexOf(":");return[H.substring(1,S),H.slice(S+1)]}let jo=(H,S)=>!1,go=(H,S,h)=>[],Go=null;function wo(H){const S=H.parentNode||H.host;return S===Go?null:S}(Ur()||typeof Element<"u")&&(Eo()?(Go=(()=>document.documentElement)(),jo=(H,S)=>{for(;S;){if(S===H)return!0;S=wo(S)}return!1}):jo=(H,S)=>H.contains(S),go=(H,S,h)=>{if(h)return Array.from(H.querySelectorAll(S));const M=H.querySelector(S);return M?[M]:[]});let Io=null,Us=!1;const Vs=jo,Tn=go;let Jn=(()=>{class H{validateStyleProperty(h){return function js(H){Io||(Io=function Is(){return typeof document<"u"?document.body:null}()||{},Us=!!Io.style&&"WebkitAppearance"in Io.style);let S=!0;return Io.style&&!function ea(H){return"ebkit"==H.substring(1,6)}(H)&&(S=H in Io.style,!S&&Us&&(S="Webkit"+H.charAt(0).toUpperCase()+H.slice(1)in Io.style)),S}(h)}matchesElement(h,M){return!1}containsElement(h,M){return Vs(h,M)}getParentElement(h){return wo(h)}query(h,M,U){return Tn(h,M,U)}computeStyle(h,M,U){return U||""}animate(h,M,U,ge,$e,ut=[],Et){return new mn.ZN(U,ge)}}return H.\u0275fac=function(h){return new(h||H)},H.\u0275prov=e.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac}),H})(),So=(()=>{class H{}return H.NOOP=new Jn,H})();const zs=1e3,Jo="ng-enter",Ds="ng-leave",_o="ng-trigger",Vo=".ng-trigger",rs="ng-animating",te=".ng-animating";function Ie(H){if("number"==typeof H)return H;const S=H.match(/^(-?[\.\d]+)(m?s)/);return!S||S.length<2?0:oe(parseFloat(S[1]),S[2])}function oe(H,S){return"s"===S?H*zs:H}function Ne(H,S,h){return H.hasOwnProperty("duration")?H:function yt(H,S,h){let U,ge=0,$e="";if("string"==typeof H){const ut=H.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ut)return S.push(rt()),{duration:0,delay:0,easing:""};U=oe(parseFloat(ut[1]),ut[2]);const Et=ut[3];null!=Et&&(ge=oe(parseFloat(Et),ut[4]));const $t=ut[5];$t&&($e=$t)}else U=H;if(!h){let ut=!1,Et=S.length;U<0&&(S.push(function kt(){return new e.\u0275RuntimeError(3100,!1)}()),ut=!0),ge<0&&(S.push(function D(){return new e.\u0275RuntimeError(3101,!1)}()),ut=!0),ut&&S.splice(Et,0,rt())}return{duration:U,delay:ge,easing:$e}}(H,S,h)}function Gt(H,S={}){return Object.keys(H).forEach(h=>{S[h]=H[h]}),S}function ei(H){const S=new Map;return Object.keys(H).forEach(h=>{S.set(h,H[h])}),S}function pn(H,S=new Map,h){if(h)for(let[M,U]of h)S.set(M,U);for(let[M,U]of H)S.set(M,U);return S}function En(H,S,h){return h?S+":"+h+";":""}function sn(H){let S="";for(let h=0;h<H.style.length;h++){const M=H.style.item(h);S+=En(0,M,H.style.getPropertyValue(M))}for(const h in H.style)H.style.hasOwnProperty(h)&&!h.startsWith("_")&&(S+=En(0,E(h),H.style[h]));H.setAttribute("style",S)}function xn(H,S,h){H.style&&(S.forEach((M,U)=>{const ge=m(U);h&&!h.has(U)&&h.set(U,H.style[ge]),H.style[ge]=M}),Ur()&&sn(H))}function gn(H,S){H.style&&(S.forEach((h,M)=>{const U=m(M);H.style[U]=""}),Ur()&&sn(H))}function qn(H){return Array.isArray(H)?1==H.length?H[0]:(0,mn.vP)(H):H}const jr=new RegExp("{{\\s*(.+?)\\s*}}","g");function ko(H){let S=[];if("string"==typeof H){let h;for(;h=jr.exec(H);)S.push(h[1]);jr.lastIndex=0}return S}function Pr(H,S,h){const M=H.toString(),U=M.replace(jr,(ge,$e)=>{let ut=S[$e];return null==ut&&(h.push(function _e(H){return new e.\u0275RuntimeError(3003,!1)}()),ut=""),ut.toString()});return U==M?H:U}function Gr(H){const S=[];let h=H.next();for(;!h.done;)S.push(h.value),h=H.next();return S}const s=/-+([a-z0-9])/g;function m(H){return H.replace(s,(...S)=>S[1].toUpperCase())}function E(H){return H.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ze(H,S,h){switch(S.type){case 7:return H.visitTrigger(S,h);case 0:return H.visitState(S,h);case 1:return H.visitTransition(S,h);case 2:return H.visitSequence(S,h);case 3:return H.visitGroup(S,h);case 4:return H.visitAnimate(S,h);case 5:return H.visitKeyframes(S,h);case 6:return H.visitStyle(S,h);case 8:return H.visitReference(S,h);case 9:return H.visitAnimateChild(S,h);case 10:return H.visitAnimateRef(S,h);case 11:return H.visitQuery(S,h);case 12:return H.visitStagger(S,h);default:throw function tt(H){return new e.\u0275RuntimeError(3004,!1)}()}}function Dt(H,S){return window.getComputedStyle(H)[S]}const cr="*";function io(H,S){const h=[];return"string"==typeof H?H.split(/\s*,\s*/).forEach(M=>function no(H,S,h){if(":"==H[0]){const Et=function os(H,S){switch(H){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 S.push(function de(H){return new e.\u0275RuntimeError(3016,!1)}()),"* => *"}}(H,h);if("function"==typeof Et)return void S.push(Et);H=Et}const M=H.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==M||M.length<4)return h.push(function B(H){return new e.\u0275RuntimeError(3015,!1)}()),S;const U=M[1],ge=M[2],$e=M[3];S.push(ua(U,$e));"<"==ge[0]&&!(U==cr&&$e==cr)&&S.push(ua($e,U))}(M,h,S)):h.push(H),h}const ss=new Set(["true","1"]),Ts=new Set(["false","0"]);function ua(H,S){const h=ss.has(H)||Ts.has(H),M=ss.has(S)||Ts.has(S);return(U,ge)=>{let $e=H==cr||H==U,ut=S==cr||S==ge;return!$e&&h&&"boolean"==typeof U&&($e=U?ss.has(H):Ts.has(H)),!ut&&M&&"boolean"==typeof ge&&(ut=ge?ss.has(S):Ts.has(S)),$e&&ut}}const as=new RegExp("s*:selfs*,?","g");function Vr(H,S,h,M){return new qo(H).build(S,h,M)}class qo{constructor(S){this._driver=S}build(S,h,M){const U=new ta(h);return this._resetContextStyleTimingState(U),Ze(this,qn(S),U)}_resetContextStyleTimingState(S){S.currentQuerySelector="",S.collectedStyles=new Map,S.collectedStyles.set("",new Map),S.currentTime=0}visitTrigger(S,h){let M=h.queryCount=0,U=h.depCount=0;const ge=[],$e=[];return"@"==S.name.charAt(0)&&h.errors.push(function ri(){return new e.\u0275RuntimeError(3006,!1)}()),S.definitions.forEach(ut=>{if(this._resetContextStyleTimingState(h),0==ut.type){const Et=ut,$t=Et.name;$t.toString().split(/\s*,\s*/).forEach(vi=>{Et.name=vi,ge.push(this.visitState(Et,h))}),Et.name=$t}else if(1==ut.type){const Et=this.visitTransition(ut,h);M+=Et.queryCount,U+=Et.depCount,$e.push(Et)}else h.errors.push(function xi(){return new e.\u0275RuntimeError(3007,!1)}())}),{type:7,name:S.name,states:ge,transitions:$e,queryCount:M,depCount:U,options:null}}visitState(S,h){const M=this.visitStyle(S.styles,h),U=S.options&&S.options.params||null;if(M.containsDynamicStyles){const ge=new Set,$e=U||{};M.styles.forEach(ut=>{ut instanceof Map&&ut.forEach(Et=>{ko(Et).forEach($t=>{$e.hasOwnProperty($t)||ge.add($t)})})}),ge.size&&(Gr(ge.values()),h.errors.push(function Si(H,S){return new e.\u0275RuntimeError(3008,!1)}()))}return{type:0,name:S.name,style:M,options:U?{params:U}:null}}visitTransition(S,h){h.queryCount=0,h.depCount=0;const M=Ze(this,qn(S.animation),h);return{type:1,matchers:io(S.expr,h.errors),animation:M,queryCount:h.queryCount,depCount:h.depCount,options:es(S.options)}}visitSequence(S,h){return{type:2,steps:S.steps.map(M=>Ze(this,M,h)),options:es(S.options)}}visitGroup(S,h){const M=h.currentTime;let U=0;const ge=S.steps.map($e=>{h.currentTime=M;const ut=Ze(this,$e,h);return U=Math.max(U,h.currentTime),ut});return h.currentTime=U,{type:3,steps:ge,options:es(S.options)}}visitAnimate(S,h){const M=function Ca(H,S){if(H.hasOwnProperty("duration"))return H;if("number"==typeof H)return Os(Ne(H,S).duration,0,"");const h=H;if(h.split(/\s+/).some(ge=>"{"==ge.charAt(0)&&"{"==ge.charAt(1))){const ge=Os(0,0,"");return ge.dynamic=!0,ge.strValue=h,ge}const U=Ne(h,S);return Os(U.duration,U.delay,U.easing)}(S.timings,h.errors);h.currentAnimateTimings=M;let U,ge=S.styles?S.styles:(0,mn.oB)({});if(5==ge.type)U=this.visitKeyframes(ge,h);else{let $e=S.styles,ut=!1;if(!$e){ut=!0;const $t={};M.easing&&($t.easing=M.easing),$e=(0,mn.oB)($t)}h.currentTime+=M.duration+M.delay;const Et=this.visitStyle($e,h);Et.isEmptyStep=ut,U=Et}return h.currentAnimateTimings=null,{type:4,timings:M,style:U,options:null}}visitStyle(S,h){const M=this._makeStyleAst(S,h);return this._validateStyleAst(M,h),M}_makeStyleAst(S,h){const M=[],U=Array.isArray(S.styles)?S.styles:[S.styles];for(let ut of U)"string"==typeof ut?ut===mn.l3?M.push(ut):h.errors.push(new e.\u0275RuntimeError(3002,!1)):M.push(ei(ut));let ge=!1,$e=null;return M.forEach(ut=>{if(ut instanceof Map&&(ut.has("easing")&&($e=ut.get("easing"),ut.delete("easing")),!ge))for(let Et of ut.values())if(Et.toString().indexOf("{{")>=0){ge=!0;break}}),{type:6,styles:M,easing:$e,offset:S.offset,containsDynamicStyles:ge,options:null}}_validateStyleAst(S,h){const M=h.currentAnimateTimings;let U=h.currentTime,ge=h.currentTime;M&&ge>0&&(ge-=M.duration+M.delay),S.styles.forEach($e=>{"string"!=typeof $e&&$e.forEach((ut,Et)=>{const $t=h.collectedStyles.get(h.currentQuerySelector),vi=$t.get(Et);let Ii=!0;vi&&(ge!=U&&ge>=vi.startTime&&U<=vi.endTime&&(h.errors.push(function Gn(H,S,h,M,U){return new e.\u0275RuntimeError(3010,!1)}()),Ii=!1),ge=vi.startTime),Ii&&$t.set(Et,{startTime:ge,endTime:U}),h.options&&function Do(H,S,h){const M=S.params||{},U=ko(H);U.length&&U.forEach(ge=>{M.hasOwnProperty(ge)||h.push(function ae(H){return new e.\u0275RuntimeError(3001,!1)}())})}(ut,h.options,h.errors)})})}visitKeyframes(S,h){const M={type:5,styles:[],options:null};if(!h.currentAnimateTimings)return h.errors.push(function Vi(){return new e.\u0275RuntimeError(3011,!1)}()),M;let ge=0;const $e=[];let ut=!1,Et=!1,$t=0;const vi=S.steps.map(er=>{const Mr=this._makeStyleAst(er,h);let zr=null!=Mr.offset?Mr.offset:function Ps(H){if("string"==typeof H)return null;let S=null;if(Array.isArray(H))H.forEach(h=>{if(h instanceof Map&&h.has("offset")){const M=h;S=parseFloat(M.get("offset")),M.delete("offset")}});else if(H instanceof Map&&H.has("offset")){const h=H;S=parseFloat(h.get("offset")),h.delete("offset")}return S}(Mr.styles),Wr=0;return null!=zr&&(ge++,Wr=Mr.offset=zr),Et=Et||Wr<0||Wr>1,ut=ut||Wr<$t,$t=Wr,$e.push(Wr),Mr});Et&&h.errors.push(function co(){return new e.\u0275RuntimeError(3012,!1)}()),ut&&h.errors.push(function ve(){return new e.\u0275RuntimeError(3200,!1)}());const Ii=S.steps.length;let on=0;ge>0&&ge<Ii?h.errors.push(function pe(){return new e.\u0275RuntimeError(3202,!1)}()):0==ge&&(on=1/(Ii-1));const rn=Ii-1,Gi=h.currentTime,Xi=h.currentAnimateTimings,kn=Xi.duration;return vi.forEach((er,Mr)=>{const zr=on>0?Mr==rn?1:on*Mr:$e[Mr],Wr=zr*kn;h.currentTime=Gi+Xi.delay+Wr,Xi.duration=Wr,this._validateStyleAst(er,h),er.offset=zr,M.styles.push(er)}),M}visitReference(S,h){return{type:8,animation:Ze(this,qn(S.animation),h),options:es(S.options)}}visitAnimateChild(S,h){return h.depCount++,{type:9,options:es(S.options)}}visitAnimateRef(S,h){return{type:10,animation:this.visitReference(S.animation,h),options:es(S.options)}}visitQuery(S,h){const M=h.currentQuerySelector,U=S.options||{};h.queryCount++,h.currentQuery=S;const[ge,$e]=function gs(H){const S=!!H.split(/\s*,\s*/).find(h=>":self"==h);return S&&(H=H.replace(as,"")),H=H.replace(/@\*/g,Vo).replace(/@\w+/g,h=>Vo+"-"+h.slice(1)).replace(/:animating/g,te),[H,S]}(S.selector);h.currentQuerySelector=M.length?M+" "+ge:ge,xr(h.collectedStyles,h.currentQuerySelector,new Map);const ut=Ze(this,qn(S.animation),h);return h.currentQuery=null,h.currentQuerySelector=M,{type:11,selector:ge,limit:U.limit||0,optional:!!U.optional,includeSelf:$e,animation:ut,originalSelector:S.selector,options:es(S.options)}}visitStagger(S,h){h.currentQuery||h.errors.push(function y(){return new e.\u0275RuntimeError(3013,!1)}());const M="full"===S.timings?{duration:0,delay:0,easing:"full"}:Ne(S.timings,h.errors,!0);return{type:12,animation:Ze(this,qn(S.animation),h),timings:M,options:null}}}class ta{constructor(S){this.errors=S,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function es(H){return H?(H=Gt(H)).params&&(H.params=function ya(H){return H?Gt(H):null}(H.params)):H={},H}function Os(H,S,h){return{duration:H,delay:S,easing:h}}function ls(H,S,h,M,U,ge,$e=null,ut=!1){return{type:1,element:H,keyframes:S,preStyleProps:h,postStyleProps:M,duration:U,delay:ge,totalTime:U+ge,easing:$e,subTimeline:ut}}class Or{constructor(){this._map=new Map}get(S){return this._map.get(S)||[]}append(S,h){let M=this._map.get(S);M||this._map.set(S,M=[]),M.push(...h)}has(S){return this._map.has(S)}clear(){this._map.clear()}}const Ra=new RegExp(":enter","g"),vo=new RegExp(":leave","g");function Hs(H,S,h,M,U,ge=new Map,$e=new Map,ut,Et,$t=[]){return(new or).buildKeyframes(H,S,h,M,U,ge,$e,ut,Et,$t)}class or{buildKeyframes(S,h,M,U,ge,$e,ut,Et,$t,vi=[]){$t=$t||new Or;const Ii=new Ma(S,h,$t,U,ge,vi,[]);Ii.options=Et;const on=Et.delay?Ie(Et.delay):0;Ii.currentTimeline.delayNextStep(on),Ii.currentTimeline.setStyles([$e],null,Ii.errors,Et),Ze(this,M,Ii);const rn=Ii.timelines.filter(Gi=>Gi.containsAnimation());if(rn.length&&ut.size){let Gi;for(let Xi=rn.length-1;Xi>=0;Xi--){const kn=rn[Xi];if(kn.element===h){Gi=kn;break}}Gi&&!Gi.allowOnlyTimelineStyles()&&Gi.setStyles([ut],null,Ii.errors,Et)}return rn.length?rn.map(Gi=>Gi.buildKeyframes()):[ls(h,[],[],[],0,on,"",!1)]}visitTrigger(S,h){}visitState(S,h){}visitTransition(S,h){}visitAnimateChild(S,h){const M=h.subInstructions.get(h.element);if(M){const U=h.createSubContext(S.options),ge=h.currentTimeline.currentTime,$e=this._visitSubInstructions(M,U,U.options);ge!=$e&&h.transformIntoNewTimeline($e)}h.previousNode=S}visitAnimateRef(S,h){const M=h.createSubContext(S.options);M.transformIntoNewTimeline(),this._applyAnimationRefDelays([S.options,S.animation.options],h,M),this.visitReference(S.animation,M),h.transformIntoNewTimeline(M.currentTimeline.currentTime),h.previousNode=S}_applyAnimationRefDelays(S,h,M){for(const U of S){const ge=U?.delay;if(ge){const $e="number"==typeof ge?ge:Ie(Pr(ge,U?.params??{},h.errors));M.delayNextStep($e)}}}_visitSubInstructions(S,h,M){let ge=h.currentTimeline.currentTime;const $e=null!=M.duration?Ie(M.duration):null,ut=null!=M.delay?Ie(M.delay):null;return 0!==$e&&S.forEach(Et=>{const $t=h.appendInstructionToTimeline(Et,$e,ut);ge=Math.max(ge,$t.duration+$t.delay)}),ge}visitReference(S,h){h.updateOptions(S.options,!0),Ze(this,S.animation,h),h.previousNode=S}visitSequence(S,h){const M=h.subContextCount;let U=h;const ge=S.options;if(ge&&(ge.params||ge.delay)&&(U=h.createSubContext(ge),U.transformIntoNewTimeline(),null!=ge.delay)){6==U.previousNode.type&&(U.currentTimeline.snapshotCurrentStyles(),U.previousNode=xa);const $e=Ie(ge.delay);U.delayNextStep($e)}S.steps.length&&(S.steps.forEach($e=>Ze(this,$e,U)),U.currentTimeline.applyStylesToKeyframe(),U.subContextCount>M&&U.transformIntoNewTimeline()),h.previousNode=S}visitGroup(S,h){const M=[];let U=h.currentTimeline.currentTime;const ge=S.options&&S.options.delay?Ie(S.options.delay):0;S.steps.forEach($e=>{const ut=h.createSubContext(S.options);ge&&ut.delayNextStep(ge),Ze(this,$e,ut),U=Math.max(U,ut.currentTimeline.currentTime),M.push(ut.currentTimeline)}),M.forEach($e=>h.currentTimeline.mergeTimelineCollectedStyles($e)),h.transformIntoNewTimeline(U),h.previousNode=S}_visitTiming(S,h){if(S.dynamic){const M=S.strValue;return Ne(h.params?Pr(M,h.params,h.errors):M,h.errors)}return{duration:S.duration,delay:S.delay,easing:S.easing}}visitAnimate(S,h){const M=h.currentAnimateTimings=this._visitTiming(S.timings,h),U=h.currentTimeline;M.delay&&(h.incrementTime(M.delay),U.snapshotCurrentStyles());const ge=S.style;5==ge.type?this.visitKeyframes(ge,h):(h.incrementTime(M.duration),this.visitStyle(ge,h),U.applyStylesToKeyframe()),h.currentAnimateTimings=null,h.previousNode=S}visitStyle(S,h){const M=h.currentTimeline,U=h.currentAnimateTimings;!U&&M.hasCurrentStyleProperties()&&M.forwardFrame();const ge=U&&U.easing||S.easing;S.isEmptyStep?M.applyEmptyStep(ge):M.setStyles(S.styles,ge,h.errors,h.options),h.previousNode=S}visitKeyframes(S,h){const M=h.currentAnimateTimings,U=h.currentTimeline.duration,ge=M.duration,ut=h.createSubContext().currentTimeline;ut.easing=M.easing,S.styles.forEach(Et=>{ut.forwardTime((Et.offset||0)*ge),ut.setStyles(Et.styles,Et.easing,h.errors,h.options),ut.applyStylesToKeyframe()}),h.currentTimeline.mergeTimelineCollectedStyles(ut),h.transformIntoNewTimeline(U+ge),h.previousNode=S}visitQuery(S,h){const M=h.currentTimeline.currentTime,U=S.options||{},ge=U.delay?Ie(U.delay):0;ge&&(6===h.previousNode.type||0==M&&h.currentTimeline.hasCurrentStyleProperties())&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=xa);let $e=M;const ut=h.invokeQuery(S.selector,S.originalSelector,S.limit,S.includeSelf,!!U.optional,h.errors);h.currentQueryTotal=ut.length;let Et=null;ut.forEach(($t,vi)=>{h.currentQueryIndex=vi;const Ii=h.createSubContext(S.options,$t);ge&&Ii.delayNextStep(ge),$t===h.element&&(Et=Ii.currentTimeline),Ze(this,S.animation,Ii),Ii.currentTimeline.applyStylesToKeyframe(),$e=Math.max($e,Ii.currentTimeline.currentTime)}),h.currentQueryIndex=0,h.currentQueryTotal=0,h.transformIntoNewTimeline($e),Et&&(h.currentTimeline.mergeTimelineCollectedStyles(Et),h.currentTimeline.snapshotCurrentStyles()),h.previousNode=S}visitStagger(S,h){const M=h.parentContext,U=h.currentTimeline,ge=S.timings,$e=Math.abs(ge.duration),ut=$e*(h.currentQueryTotal-1);let Et=$e*h.currentQueryIndex;switch(ge.duration<0?"reverse":ge.easing){case"reverse":Et=ut-Et;break;case"full":Et=M.currentStaggerTime}const vi=h.currentTimeline;Et&&vi.delayNextStep(Et);const Ii=vi.currentTime;Ze(this,S.animation,h),h.previousNode=S,M.currentStaggerTime=U.currentTime-Ii+(U.startTime-M.currentTimeline.startTime)}}const xa={};class Ma{constructor(S,h,M,U,ge,$e,ut,Et){this._driver=S,this.element=h,this.subInstructions=M,this._enterClassName=U,this._leaveClassName=ge,this.errors=$e,this.timelines=ut,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xa,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Et||new cs(this._driver,h,0),ut.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(S,h){if(!S)return;const M=S;let U=this.options;null!=M.duration&&(U.duration=Ie(M.duration)),null!=M.delay&&(U.delay=Ie(M.delay));const ge=M.params;if(ge){let $e=U.params;$e||($e=this.options.params={}),Object.keys(ge).forEach(ut=>{(!h||!$e.hasOwnProperty(ut))&&($e[ut]=Pr(ge[ut],$e,this.errors))})}}_copyOptions(){const S={};if(this.options){const h=this.options.params;if(h){const M=S.params={};Object.keys(h).forEach(U=>{M[U]=h[U]})}}return S}createSubContext(S=null,h,M){const U=h||this.element,ge=new Ma(this._driver,U,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(U,M||0));return ge.previousNode=this.previousNode,ge.currentAnimateTimings=this.currentAnimateTimings,ge.options=this._copyOptions(),ge.updateOptions(S),ge.currentQueryIndex=this.currentQueryIndex,ge.currentQueryTotal=this.currentQueryTotal,ge.parentContext=this,this.subContextCount++,ge}transformIntoNewTimeline(S){return this.previousNode=xa,this.currentTimeline=this.currentTimeline.fork(this.element,S),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(S,h,M){const U={duration:h??S.duration,delay:this.currentTimeline.currentTime+(M??0)+S.delay,easing:""},ge=new Fa(this._driver,S.element,S.keyframes,S.preStyleProps,S.postStyleProps,U,S.stretchStartingKeyframe);return this.timelines.push(ge),U}incrementTime(S){this.currentTimeline.forwardTime(this.currentTimeline.duration+S)}delayNextStep(S){S>0&&this.currentTimeline.delayNextStep(S)}invokeQuery(S,h,M,U,ge,$e){let ut=[];if(U&&ut.push(this.element),S.length>0){S=(S=S.replace(Ra,"."+this._enterClassName)).replace(vo,"."+this._leaveClassName);let $t=this._driver.query(this.element,S,1!=M);0!==M&&($t=M<0?$t.slice($t.length+M,$t.length):$t.slice(0,M)),ut.push(...$t)}return!ge&&0==ut.length&&$e.push(function J(H){return new e.\u0275RuntimeError(3014,!1)}()),ut}}class cs{constructor(S,h,M,U){this._driver=S,this.element=h,this.startTime=M,this._elementTimelineStylesLookup=U,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(S){const h=1===this._keyframes.size&&this._pendingStyles.size;this.duration||h?(this.forwardTime(this.currentTime+S),h&&this.snapshotCurrentStyles()):this.startTime+=S}fork(S,h){return this.applyStylesToKeyframe(),new cs(this._driver,S,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(S){this.applyStylesToKeyframe(),this.duration=S,this._loadKeyframe()}_updateStyle(S,h){this._localTimelineStyles.set(S,h),this._globalTimelineStyles.set(S,h),this._styleSummary.set(S,{time:this.currentTime,value:h})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(S){S&&this._previousKeyframe.set("easing",S);for(let[h,M]of this._globalTimelineStyles)this._backFill.set(h,M||mn.l3),this._currentKeyframe.set(h,mn.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(S,h,M,U){h&&this._previousKeyframe.set("easing",h);const ge=U&&U.params||{},$e=function _l(H,S){const h=new Map;let M;return H.forEach(U=>{if("*"===U){M=M||S.keys();for(let ge of M)h.set(ge,mn.l3)}else pn(U,h)}),h}(S,this._globalTimelineStyles);for(let[ut,Et]of $e){const $t=Pr(Et,ge,M);this._pendingStyles.set(ut,$t),this._localTimelineStyles.has(ut)||this._backFill.set(ut,this._globalTimelineStyles.get(ut)??mn.l3),this._updateStyle(ut,$t)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((S,h)=>{this._currentKeyframe.set(h,S)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((S,h)=>{this._currentKeyframe.has(h)||this._currentKeyframe.set(h,S)}))}snapshotCurrentStyles(){for(let[S,h]of this._localTimelineStyles)this._pendingStyles.set(S,h),this._updateStyle(S,h)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const S=[];for(let h in this._currentKeyframe)S.push(h);return S}mergeTimelineCollectedStyles(S){S._styleSummary.forEach((h,M)=>{const U=this._styleSummary.get(M);(!U||h.time>U.time)&&this._updateStyle(M,h.value)})}buildKeyframes(){this.applyStylesToKeyframe();const S=new Set,h=new Set,M=1===this._keyframes.size&&0===this.duration;let U=[];this._keyframes.forEach((ut,Et)=>{const $t=pn(ut,new Map,this._backFill);$t.forEach((vi,Ii)=>{vi===mn.k1?S.add(Ii):vi===mn.l3&&h.add(Ii)}),M||$t.set("offset",Et/this.duration),U.push($t)});const ge=S.size?Gr(S.values()):[],$e=h.size?Gr(h.values()):[];if(M){const ut=U[0],Et=new Map(ut);ut.set("offset",0),Et.set("offset",1),U=[ut,Et]}return ls(this.element,U,ge,$e,this.duration,this.startTime,this.easing,!1)}}class Fa extends cs{constructor(S,h,M,U,ge,$e,ut=!1){super(S,h,$e.delay),this.keyframes=M,this.preStyleProps=U,this.postStyleProps=ge,this._stretchStartingKeyframe=ut,this.timings={duration:$e.duration,delay:$e.delay,easing:$e.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let S=this.keyframes,{delay:h,duration:M,easing:U}=this.timings;if(this._stretchStartingKeyframe&&h){const ge=[],$e=M+h,ut=h/$e,Et=pn(S[0]);Et.set("offset",0),ge.push(Et);const $t=pn(S[0]);$t.set("offset",ha(ut)),ge.push($t);const vi=S.length-1;for(let Ii=1;Ii<=vi;Ii++){let on=pn(S[Ii]);const rn=on.get("offset");on.set("offset",ha((h+rn*M)/$e)),ge.push(on)}M=$e,h=0,U="",S=ge}return ls(this.element,S,this.preStyleProps,this.postStyleProps,M,h,U,!0)}}function ha(H,S=3){const h=Math.pow(10,S-1);return Math.round(H*h)/h}class Ar{}const Ql=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 Qr extends Ar{normalizePropertyName(S,h){return m(S)}normalizeStyleValue(S,h,M,U){let ge="";const $e=M.toString().trim();if(Ql.has(h)&&0!==M&&"0"!==M)if("number"==typeof M)ge="px";else{const ut=M.match(/^[+-]?[\d\.]+([a-z]*)$/);ut&&0==ut[1].length&&U.push(function St(H,S){return new e.\u0275RuntimeError(3005,!1)}())}return $e+ge}}function ma(H,S,h,M,U,ge,$e,ut,Et,$t,vi,Ii,on){return{type:0,element:H,triggerName:S,isRemovalTransition:U,fromState:h,fromStyles:ge,toState:M,toStyles:$e,timelines:ut,queriedElements:Et,preStyleProps:$t,postStyleProps:vi,totalTime:Ii,errors:on}}const $s={};class Ks{constructor(S,h,M){this._triggerName=S,this.ast=h,this._stateStyles=M}match(S,h,M,U){return function _s(H,S,h,M,U){return H.some(ge=>ge(S,h,M,U))}(this.ast.matchers,S,h,M,U)}buildStyles(S,h,M){let U=this._stateStyles.get("*");return void 0!==S&&(U=this._stateStyles.get(S?.toString())||U),U?U.buildStyles(h,M):new Map}build(S,h,M,U,ge,$e,ut,Et,$t,vi){const Ii=[],on=this.ast.options&&this.ast.options.params||$s,Gi=this.buildStyles(M,ut&&ut.params||$s,Ii),Xi=Et&&Et.params||$s,kn=this.buildStyles(U,Xi,Ii),er=new Set,Mr=new Map,zr=new Map,Wr="void"===U,zo={params:Ba(Xi,on),delay:this.ast.options?.delay},Pn=vi?[]:Hs(S,h,this.ast.animation,ge,$e,Gi,kn,zo,$t,Ii);let cn=0;if(Pn.forEach(Wo=>{cn=Math.max(Wo.duration+Wo.delay,cn)}),Ii.length)return ma(h,this._triggerName,M,U,Wr,Gi,kn,[],[],Mr,zr,cn,Ii);Pn.forEach(Wo=>{const Ho=Wo.element,bs=xr(Mr,Ho,new Set);Wo.preStyleProps.forEach(us=>bs.add(us));const Ls=xr(zr,Ho,new Set);Wo.postStyleProps.forEach(us=>Ls.add(us)),Ho!==h&&er.add(Ho)});const Hr=Gr(er.values());return ma(h,this._triggerName,M,U,Wr,Gi,kn,Pn,Hr,Mr,zr,cn)}}function Ba(H,S){const h=Gt(S);for(const M in H)H.hasOwnProperty(M)&&null!=H[M]&&(h[M]=H[M]);return h}class pa{constructor(S,h,M){this.styles=S,this.defaultParams=h,this.normalizer=M}buildStyles(S,h){const M=new Map,U=Gt(this.defaultParams);return Object.keys(S).forEach(ge=>{const $e=S[ge];null!==$e&&(U[ge]=$e)}),this.styles.styles.forEach(ge=>{"string"!=typeof ge&&ge.forEach(($e,ut)=>{$e&&($e=Pr($e,U,h));const Et=this.normalizer.normalizePropertyName(ut,h);$e=this.normalizer.normalizeStyleValue(ut,Et,$e,h),M.set(ut,$e)})}),M}}class vl{constructor(S,h,M){this.name=S,this.ast=h,this._normalizer=M,this.transitionFactories=[],this.states=new Map,h.states.forEach(U=>{this.states.set(U.name,new pa(U.style,U.options&&U.options.params||{},M))}),Na(this.states,"true","1"),Na(this.states,"false","0"),h.transitions.forEach(U=>{this.transitionFactories.push(new Ks(S,U,this.states))}),this.fallbackTransition=function Yl(H,S,h){return new Ks(H,{type:1,animation:{type:2,steps:[],options:null},matchers:[($e,ut)=>!0],options:null,queryCount:0,depCount:0},S)}(S,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(S,h,M,U){return this.transitionFactories.find($e=>$e.match(S,h,M,U))||null}matchStyles(S,h,M){return this.fallbackTransition.buildStyles(S,h,M)}}function Na(H,S,h){H.has(S)?H.has(h)||H.set(h,H.get(S)):H.has(h)&&H.set(S,H.get(h))}const Xl=new Or;class Lo{constructor(S,h,M){this.bodyNode=S,this._driver=h,this._normalizer=M,this._animations=new Map,this._playersById=new Map,this.players=[]}register(S,h){const M=[],U=[],ge=Vr(this._driver,h,M,U);if(M.length)throw function Oi(H){return new e.\u0275RuntimeError(3503,!1)}();this._animations.set(S,ge)}_buildPlayer(S,h,M){const U=S.element,ge=fo(0,this._normalizer,0,S.keyframes,h,M);return this._driver.animate(U,ge,S.duration,S.delay,S.easing,[],!0)}create(S,h,M={}){const U=[],ge=this._animations.get(S);let $e;const ut=new Map;if(ge?($e=Hs(this._driver,h,ge,Jo,Ds,new Map,new Map,M,Xl,U),$e.forEach(vi=>{const Ii=xr(ut,vi.element,new Map);vi.postStyleProps.forEach(on=>Ii.set(on,null))})):(U.push(function Pi(){return new e.\u0275RuntimeError(3300,!1)}()),$e=[]),U.length)throw function ui(H){return new e.\u0275RuntimeError(3504,!1)}();ut.forEach((vi,Ii)=>{vi.forEach((on,rn)=>{vi.set(rn,this._driver.computeStyle(Ii,rn,mn.l3))})});const $t=Xn($e.map(vi=>{const Ii=ut.get(vi.element);return this._buildPlayer(vi,new Map,Ii)}));return this._playersById.set(S,$t),$t.onDestroy(()=>this.destroy(S)),this.players.push($t),$t}destroy(S){const h=this._getPlayer(S);h.destroy(),this._playersById.delete(S);const M=this.players.indexOf(h);M>=0&&this.players.splice(M,1)}_getPlayer(S){const h=this._playersById.get(S);if(!h)throw function Hi(H){return new e.\u0275RuntimeError(3301,!1)}();return h}listen(S,h,M,U){const ge=ns(h,"","","");return No(this._getPlayer(S),M,ge,U),()=>{}}command(S,h,M,U){if("register"==M)return void this.register(S,U[0]);if("create"==M)return void this.create(S,h,U[0]||{});const ge=this._getPlayer(S);switch(M){case"play":ge.play();break;case"pause":ge.pause();break;case"reset":ge.reset();break;case"restart":ge.restart();break;case"finish":ge.finish();break;case"init":ge.init();break;case"setPosition":ge.setPosition(parseFloat(U[0]));break;case"destroy":this.destroy(S)}}}const na="ng-animate-queued",bl="ng-animate-disabled",ie=[],Ce={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ge={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},it="__ng_removed";class jt{get params(){return this.options.params}constructor(S,h=""){this.namespaceId=h;const M=S&&S.hasOwnProperty("value");if(this.value=function is(H){return H??null}(M?S.value:S),M){const ge=Gt(S);delete ge.value,this.options=ge}else this.options={};this.options.params||(this.options.params={})}absorbOptions(S){const h=S.params;if(h){const M=this.options.params;Object.keys(h).forEach(U=>{null==M[U]&&(M[U]=h[U])})}}}const si="void",Di=new jt(si);class ki{constructor(S,h,M){this.id=S,this.hostElement=h,this._engine=M,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+S,bo(h,this._hostClassName)}listen(S,h,M,U){if(!this._triggers.has(h))throw function vn(H,S){return new e.\u0275RuntimeError(3302,!1)}();if(null==M||0==M.length)throw function Cr(H){return new e.\u0275RuntimeError(3303,!1)}();if(!function Po(H){return"start"==H||"done"==H}(M))throw function Ti(H,S){return new e.\u0275RuntimeError(3400,!1)}();const ge=xr(this._elementListeners,S,[]),$e={name:h,phase:M,callback:U};ge.push($e);const ut=xr(this._engine.statesByElement,S,new Map);return ut.has(h)||(bo(S,_o),bo(S,_o+"-"+h),ut.set(h,Di)),()=>{this._engine.afterFlush(()=>{const Et=ge.indexOf($e);Et>=0&&ge.splice(Et,1),this._triggers.has(h)||ut.delete(h)})}}register(S,h){return!this._triggers.has(S)&&(this._triggers.set(S,h),!0)}_getTrigger(S){const h=this._triggers.get(S);if(!h)throw function Qi(H){return new e.\u0275RuntimeError(3401,!1)}();return h}trigger(S,h,M,U=!0){const ge=this._getTrigger(h),$e=new dr(this.id,h,S);let ut=this._engine.statesByElement.get(S);ut||(bo(S,_o),bo(S,_o+"-"+h),this._engine.statesByElement.set(S,ut=new Map));let Et=ut.get(h);const $t=new jt(M,this.id);if(!(M&&M.hasOwnProperty("value"))&&Et&&$t.absorbOptions(Et.options),ut.set(h,$t),Et||(Et=Di),$t.value!==si&&Et.value===$t.value){if(!function Jl(H,S){const h=Object.keys(H),M=Object.keys(S);if(h.length!=M.length)return!1;for(let U=0;U<h.length;U++){const ge=h[U];if(!S.hasOwnProperty(ge)||H[ge]!==S[ge])return!1}return!0}(Et.params,$t.params)){const Xi=[],kn=ge.matchStyles(Et.value,Et.params,Xi),er=ge.matchStyles($t.value,$t.params,Xi);Xi.length?this._engine.reportError(Xi):this._engine.afterFlush(()=>{gn(S,kn),xn(S,er)})}return}const on=xr(this._engine.playersByElement,S,[]);on.forEach(Xi=>{Xi.namespaceId==this.id&&Xi.triggerName==h&&Xi.queued&&Xi.destroy()});let rn=ge.matchTransition(Et.value,$t.value,S,$t.params),Gi=!1;if(!rn){if(!U)return;rn=ge.fallbackTransition,Gi=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:S,triggerName:h,transition:rn,fromState:Et,toState:$t,player:$e,isFallbackTransition:Gi}),Gi||(bo(S,na),$e.onStart(()=>{vs(S,na)})),$e.onDone(()=>{let Xi=this.players.indexOf($e);Xi>=0&&this.players.splice(Xi,1);const kn=this._engine.playersByElement.get(S);if(kn){let er=kn.indexOf($e);er>=0&&kn.splice(er,1)}}),this.players.push($e),on.push($e),$e}deregister(S){this._triggers.delete(S),this._engine.statesByElement.forEach(h=>h.delete(S)),this._elementListeners.forEach((h,M)=>{this._elementListeners.set(M,h.filter(U=>U.name!=S))})}clearElementCache(S){this._engine.statesByElement.delete(S),this._elementListeners.delete(S);const h=this._engine.playersByElement.get(S);h&&(h.forEach(M=>M.destroy()),this._engine.playersByElement.delete(S))}_signalRemovalForInnerTriggers(S,h){const M=this._engine.driver.query(S,Vo,!0);M.forEach(U=>{if(U[it])return;const ge=this._engine.fetchNamespacesByElement(U);ge.size?ge.forEach($e=>$e.triggerLeaveAnimation(U,h,!1,!0)):this.clearElementCache(U)}),this._engine.afterFlushAnimationsDone(()=>M.forEach(U=>this.clearElementCache(U)))}triggerLeaveAnimation(S,h,M,U){const ge=this._engine.statesByElement.get(S),$e=new Map;if(ge){const ut=[];if(ge.forEach((Et,$t)=>{if($e.set($t,Et.value),this._triggers.has($t)){const vi=this.trigger(S,$t,si,U);vi&&ut.push(vi)}}),ut.length)return this._engine.markElementAsRemoved(this.id,S,!0,h,$e),M&&Xn(ut).onDone(()=>this._engine.processLeaveNode(S)),!0}return!1}prepareLeaveAnimationListeners(S){const h=this._elementListeners.get(S),M=this._engine.statesByElement.get(S);if(h&&M){const U=new Set;h.forEach(ge=>{const $e=ge.name;if(U.has($e))return;U.add($e);const Et=this._triggers.get($e).fallbackTransition,$t=M.get($e)||Di,vi=new jt(si),Ii=new dr(this.id,$e,S);this._engine.totalQueuedPlayers++,this._queue.push({element:S,triggerName:$e,transition:Et,fromState:$t,toState:vi,player:Ii,isFallbackTransition:!0})})}}removeNode(S,h){const M=this._engine;if(S.childElementCount&&this._signalRemovalForInnerTriggers(S,h),this.triggerLeaveAnimation(S,h,!0))return;let U=!1;if(M.totalAnimations){const ge=M.players.length?M.playersByQueriedElement.get(S):[];if(ge&&ge.length)U=!0;else{let $e=S;for(;$e=$e.parentNode;)if(M.statesByElement.get($e)){U=!0;break}}}if(this.prepareLeaveAnimationListeners(S),U)M.markElementAsRemoved(this.id,S,!1,h);else{const ge=S[it];(!ge||ge===Ce)&&(M.afterFlush(()=>this.clearElementCache(S)),M.destroyInnerAnimations(S),M._onRemovalComplete(S,h))}}insertNode(S,h){bo(S,this._hostClassName)}drainQueuedTransitions(S){const h=[];return this._queue.forEach(M=>{const U=M.player;if(U.destroyed)return;const ge=M.element,$e=this._elementListeners.get(ge);$e&&$e.forEach(ut=>{if(ut.name==M.triggerName){const Et=ns(ge,M.triggerName,M.fromState.value,M.toState.value);Et._data=S,No(M.player,ut.phase,Et,ut.callback)}}),U.markedForDestroy?this._engine.afterFlush(()=>{U.destroy()}):h.push(M)}),this._queue=[],h.sort((M,U)=>{const ge=M.transition.ast.depCount,$e=U.transition.ast.depCount;return 0==ge||0==$e?ge-$e:this._engine.driver.containsElement(M.element,U.element)?1:-1})}destroy(S){this.players.forEach(h=>h.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,S)}elementContainsData(S){let h=!1;return this._elementListeners.has(S)&&(h=!0),h=!!this._queue.find(M=>M.element===S)||h,h}}class Mn{_onRemovalComplete(S,h){this.onRemovalComplete(S,h)}constructor(S,h,M){this.bodyNode=S,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=(U,ge)=>{}}get queuedPlayers(){const S=[];return this._namespaceList.forEach(h=>{h.players.forEach(M=>{M.queued&&S.push(M)})}),S}createNamespace(S,h){const M=new ki(S,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[S]=M}_balanceNamespaceList(S,h){const M=this._namespaceList,U=this.namespacesByHostElement;if(M.length-1>=0){let $e=!1,ut=this.driver.getParentElement(h);for(;ut;){const Et=U.get(ut);if(Et){const $t=M.indexOf(Et);M.splice($t+1,0,S),$e=!0;break}ut=this.driver.getParentElement(ut)}$e||M.unshift(S)}else M.push(S);return U.set(h,S),S}register(S,h){let M=this._namespaceLookup[S];return M||(M=this.createNamespace(S,h)),M}registerTrigger(S,h,M){let U=this._namespaceLookup[S];U&&U.register(h,M)&&this.totalAnimations++}destroy(S,h){if(!S)return;const M=this._fetchNamespace(S);this.afterFlush(()=>{this.namespacesByHostElement.delete(M.hostElement),delete this._namespaceLookup[S];const U=this._namespaceList.indexOf(M);U>=0&&this._namespaceList.splice(U,1)}),this.afterFlushAnimationsDone(()=>M.destroy(h))}_fetchNamespace(S){return this._namespaceLookup[S]}fetchNamespacesByElement(S){const h=new Set,M=this.statesByElement.get(S);if(M)for(let U of M.values())if(U.namespaceId){const ge=this._fetchNamespace(U.namespaceId);ge&&h.add(ge)}return h}trigger(S,h,M,U){if(To(h)){const ge=this._fetchNamespace(S);if(ge)return ge.trigger(h,M,U),!0}return!1}insertNode(S,h,M,U){if(!To(h))return;const ge=h[it];if(ge&&ge.setForRemoval){ge.setForRemoval=!1,ge.setForMove=!0;const $e=this.collectedLeaveElements.indexOf(h);$e>=0&&this.collectedLeaveElements.splice($e,1)}if(S){const $e=this._fetchNamespace(S);$e&&$e.insertNode(h,M)}U&&this.collectEnterElement(h)}collectEnterElement(S){this.collectedEnterElements.push(S)}markElementAsDisabled(S,h){h?this.disabledNodes.has(S)||(this.disabledNodes.add(S),bo(S,bl)):this.disabledNodes.has(S)&&(this.disabledNodes.delete(S),vs(S,bl))}removeNode(S,h,M,U){if(To(h)){const ge=S?this._fetchNamespace(S):null;if(ge?ge.removeNode(h,U):this.markElementAsRemoved(S,h,!1,U),M){const $e=this.namespacesByHostElement.get(h);$e&&$e.id!==S&&$e.removeNode(h,U)}}else this._onRemovalComplete(h,U)}markElementAsRemoved(S,h,M,U,ge){this.collectedLeaveElements.push(h),h[it]={namespaceId:S,setForRemoval:U,hasAnimation:M,removedBeforeQueried:!1,previousTriggersValues:ge}}listen(S,h,M,U,ge){return To(h)?this._fetchNamespace(S).listen(h,M,U,ge):()=>{}}_buildInstruction(S,h,M,U,ge){return S.transition.build(this.driver,S.element,S.fromState.value,S.toState.value,M,U,S.fromState.options,S.toState.options,h,ge)}destroyInnerAnimations(S){let h=this.driver.query(S,Vo,!0);h.forEach(M=>this.destroyActiveAnimationsForElement(M)),0!=this.playersByQueriedElement.size&&(h=this.driver.query(S,te,!0),h.forEach(M=>this.finishActiveQueriedAnimationOnElement(M)))}destroyActiveAnimationsForElement(S){const h=this.playersByElement.get(S);h&&h.forEach(M=>{M.queued?M.markedForDestroy=!0:M.destroy()})}finishActiveQueriedAnimationOnElement(S){const h=this.playersByQueriedElement.get(S);h&&h.forEach(M=>M.finish())}whenRenderingDone(){return new Promise(S=>{if(this.players.length)return Xn(this.players).onDone(()=>S());S()})}processLeaveNode(S){const h=S[it];if(h&&h.setForRemoval){if(S[it]=Ce,h.namespaceId){this.destroyInnerAnimations(S);const M=this._fetchNamespace(h.namespaceId);M&&M.clearElementCache(S)}this._onRemovalComplete(S,h.setForRemoval)}S.classList?.contains(bl)&&this.markElementAsDisabled(S,!1),this.driver.query(S,".ng-animate-disabled",!0).forEach(M=>{this.markElementAsDisabled(M,!1)})}flush(S=-1){let h=[];if(this.newHostElements.size&&(this.newHostElements.forEach((M,U)=>this._balanceNamespaceList(M,U)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let M=0;M<this.collectedEnterElements.length;M++)bo(this.collectedEnterElements[M],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const M=[];try{h=this._flushAnimations(M,S)}finally{for(let U=0;U<M.length;U++)M[U]()}}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?Xn(h).onDone(()=>{M.forEach(U=>U())}):M.forEach(U=>U())}}reportError(S){throw function lr(H){return new e.\u0275RuntimeError(3402,!1)}()}_flushAnimations(S,h){const M=new Or,U=[],ge=new Map,$e=[],ut=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 tn=0;tn<Zi.length;tn++)vi.add(Zi[tn])});const Ii=this.bodyNode,on=Array.from(this.statesByElement.keys()),rn=Ea(on,this.collectedEnterElements),Gi=new Map;let Xi=0;rn.forEach((Ui,Zi)=>{const tn=Jo+Xi++;Gi.set(Zi,tn),Ui.forEach(Ln=>bo(Ln,tn))});const kn=[],er=new Set,Mr=new Set;for(let Ui=0;Ui<this.collectedLeaveElements.length;Ui++){const Zi=this.collectedLeaveElements[Ui],tn=Zi[it];tn&&tn.setForRemoval&&(kn.push(Zi),er.add(Zi),tn.hasAnimation?this.driver.query(Zi,".ng-star-inserted",!0).forEach(Ln=>er.add(Ln)):Mr.add(Zi))}const zr=new Map,Wr=Ea(on,Array.from(er));Wr.forEach((Ui,Zi)=>{const tn=Ds+Xi++;zr.set(Zi,tn),Ui.forEach(Ln=>bo(Ln,tn))}),S.push(()=>{rn.forEach((Ui,Zi)=>{const tn=Gi.get(Zi);Ui.forEach(Ln=>vs(Ln,tn))}),Wr.forEach((Ui,Zi)=>{const tn=zr.get(Zi);Ui.forEach(Ln=>vs(Ln,tn))}),kn.forEach(Ui=>{this.processLeaveNode(Ui)})});const zo=[],Pn=[];for(let Ui=this._namespaceList.length-1;Ui>=0;Ui--)this._namespaceList[Ui].drainQueuedTransitions(h).forEach(tn=>{const Ln=tn.player,ho=tn.element;if(zo.push(Ln),this.collectedEnterElements.length){const Oo=ho[it];if(Oo&&Oo.setForMove){if(Oo.previousTriggersValues&&Oo.previousTriggersValues.has(tn.triggerName)){const Zs=Oo.previousTriggersValues.get(tn.triggerName),Qo=this.statesByElement.get(tn.element);if(Qo&&Qo.has(tn.triggerName)){const xs=Qo.get(tn.triggerName);xs.value=Zs,Qo.set(tn.triggerName,xs)}}return void Ln.destroy()}}const ys=!Ii||!this.driver.containsElement(Ii,ho),$o=zr.get(ho),Cs=Gi.get(ho),Er=this._buildInstruction(tn,M,Cs,$o,ys);if(Er.errors&&Er.errors.length)return void Pn.push(Er);if(ys)return Ln.onStart(()=>gn(ho,Er.fromStyles)),Ln.onDestroy(()=>xn(ho,Er.toStyles)),void U.push(Ln);if(tn.isFallbackTransition)return Ln.onStart(()=>gn(ho,Er.fromStyles)),Ln.onDestroy(()=>xn(ho,Er.toStyles)),void U.push(Ln);const $a=[];Er.timelines.forEach(Oo=>{Oo.stretchStartingKeyframe=!0,this.disabledNodes.has(Oo.element)||$a.push(Oo)}),Er.timelines=$a,M.append(ho,Er.timelines),$e.push({instruction:Er,player:Ln,element:ho}),Er.queriedElements.forEach(Oo=>xr(ut,Oo,[]).push(Ln)),Er.preStyleProps.forEach((Oo,Zs)=>{if(Oo.size){let Qo=Et.get(Zs);Qo||Et.set(Zs,Qo=new Set),Oo.forEach((xs,Ka)=>Qo.add(Ka))}}),Er.postStyleProps.forEach((Oo,Zs)=>{let Qo=$t.get(Zs);Qo||$t.set(Zs,Qo=new Set),Oo.forEach((xs,Ka)=>Qo.add(Ka))})});if(Pn.length){const Ui=[];Pn.forEach(Zi=>{Ui.push(function yn(H,S){return new e.\u0275RuntimeError(3505,!1)}())}),zo.forEach(Zi=>Zi.destroy()),this.reportError(Ui)}const cn=new Map,Hr=new Map;$e.forEach(Ui=>{const Zi=Ui.element;M.has(Zi)&&(Hr.set(Zi,Zi),this._beforeAnimationBuild(Ui.player.namespaceId,Ui.instruction,cn))}),U.forEach(Ui=>{const Zi=Ui.element;this._getPreviousPlayers(Zi,!1,Ui.namespaceId,Ui.triggerName,null).forEach(Ln=>{xr(cn,Zi,[]).push(Ln),Ln.destroy()})});const Wo=kn.filter(Ui=>Jc(Ui,Et,$t)),Ho=new Map;fa(Ho,this.driver,Mr,$t,mn.l3).forEach(Ui=>{Jc(Ui,Et,$t)&&Wo.push(Ui)});const Ls=new Map;rn.forEach((Ui,Zi)=>{fa(Ls,this.driver,new Set(Ui),Et,mn.k1)}),Wo.forEach(Ui=>{const Zi=Ho.get(Ui),tn=Ls.get(Ui);Ho.set(Ui,new Map([...Array.from(Zi?.entries()??[]),...Array.from(tn?.entries()??[])]))});const us=[],sc=[],Ha={};$e.forEach(Ui=>{const{element:Zi,player:tn,instruction:Ln}=Ui;if(M.has(Zi)){if(vi.has(Zi))return tn.onDestroy(()=>xn(Zi,Ln.toStyles)),tn.disabled=!0,tn.overrideTotalTime(Ln.totalTime),void U.push(tn);let ho=Ha;if(Hr.size>1){let $o=Zi;const Cs=[];for(;$o=$o.parentNode;){const Er=Hr.get($o);if(Er){ho=Er;break}Cs.push($o)}Cs.forEach(Er=>Hr.set(Er,ho))}const ys=this._buildAnimation(tn.namespaceId,Ln,cn,ge,Ls,Ho);if(tn.setRealPlayer(ys),ho===Ha)us.push(tn);else{const $o=this.playersByElement.get(ho);$o&&$o.length&&(tn.parentPlayer=Xn($o)),U.push(tn)}}else gn(Zi,Ln.fromStyles),tn.onDestroy(()=>xn(Zi,Ln.toStyles)),sc.push(tn),vi.has(Zi)&&U.push(tn)}),sc.forEach(Ui=>{const Zi=ge.get(Ui.element);if(Zi&&Zi.length){const tn=Xn(Zi);Ui.setRealPlayer(tn)}}),U.forEach(Ui=>{Ui.parentPlayer?Ui.syncPlayerEvents(Ui.parentPlayer):Ui.destroy()});for(let Ui=0;Ui<kn.length;Ui++){const Zi=kn[Ui],tn=Zi[it];if(vs(Zi,Ds),tn&&tn.hasAnimation)continue;let Ln=[];if(ut.size){let ys=ut.get(Zi);ys&&ys.length&&Ln.push(...ys);let $o=this.driver.query(Zi,te,!0);for(let Cs=0;Cs<$o.length;Cs++){let Er=ut.get($o[Cs]);Er&&Er.length&&Ln.push(...Er)}}const ho=Ln.filter(ys=>!ys.destroyed);ho.length?Xc(this,Zi,ho):this.processLeaveNode(Zi)}return kn.length=0,us.forEach(Ui=>{this.players.push(Ui),Ui.onDone(()=>{Ui.destroy();const Zi=this.players.indexOf(Ui);this.players.splice(Zi,1)}),Ui.play()}),us}elementContainsData(S,h){let M=!1;const U=h[it];return U&&U.setForRemoval&&(M=!0),this.playersByElement.has(h)&&(M=!0),this.playersByQueriedElement.has(h)&&(M=!0),this.statesByElement.has(h)&&(M=!0),this._fetchNamespace(S).elementContainsData(h)||M}afterFlush(S){this._flushFns.push(S)}afterFlushAnimationsDone(S){this._whenQuietFns.push(S)}_getPreviousPlayers(S,h,M,U,ge){let $e=[];if(h){const ut=this.playersByQueriedElement.get(S);ut&&($e=ut)}else{const ut=this.playersByElement.get(S);if(ut){const Et=!ge||ge==si;ut.forEach($t=>{$t.queued||!Et&&$t.triggerName!=U||$e.push($t)})}}return(M||U)&&($e=$e.filter(ut=>!(M&&M!=ut.namespaceId||U&&U!=ut.triggerName))),$e}_beforeAnimationBuild(S,h,M){const ge=h.element,$e=h.isRemovalTransition?void 0:S,ut=h.isRemovalTransition?void 0:h.triggerName;for(const Et of h.timelines){const $t=Et.element,vi=$t!==ge,Ii=xr(M,$t,[]);this._getPreviousPlayers($t,vi,$e,ut,h.toState).forEach(rn=>{const Gi=rn.getRealPlayer();Gi.beforeDestroy&&Gi.beforeDestroy(),rn.destroy(),Ii.push(rn)})}gn(ge,h.fromStyles)}_buildAnimation(S,h,M,U,ge,$e){const ut=h.triggerName,Et=h.element,$t=[],vi=new Set,Ii=new Set,on=h.timelines.map(Gi=>{const Xi=Gi.element;vi.add(Xi);const kn=Xi[it];if(kn&&kn.removedBeforeQueried)return new mn.ZN(Gi.duration,Gi.delay);const er=Xi!==Et,Mr=function zh(H){const S=[];return yl(H,S),S}((M.get(Xi)||ie).map(cn=>cn.getRealPlayer())).filter(cn=>!!cn.element&&cn.element===Xi),zr=ge.get(Xi),Wr=$e.get(Xi),zo=fo(0,this._normalizer,0,Gi.keyframes,zr,Wr),Pn=this._buildPlayer(Gi,zo,Mr);if(Gi.subTimeline&&U&&Ii.add(Xi),er){const cn=new dr(S,ut,Xi);cn.setRealPlayer(Pn),$t.push(cn)}return Pn});$t.forEach(Gi=>{xr(this.playersByQueriedElement,Gi.element,[]).push(Gi),Gi.onDone(()=>function ds(H,S,h){let M=H.get(S);if(M){if(M.length){const U=M.indexOf(h);M.splice(U,1)}0==M.length&&H.delete(S)}return M}(this.playersByQueriedElement,Gi.element,Gi))}),vi.forEach(Gi=>bo(Gi,rs));const rn=Xn(on);return rn.onDestroy(()=>{vi.forEach(Gi=>vs(Gi,rs)),xn(Et,h.toStyles)}),Ii.forEach(Gi=>{xr(U,Gi,[]).push(rn)}),rn}_buildPlayer(S,h,M){return h.length>0?this.driver.animate(S.element,h,S.duration,S.delay,S.easing,M):new mn.ZN(S.duration,S.delay)}}class dr{constructor(S,h,M){this.namespaceId=S,this.triggerName=h,this.element=M,this._player=new mn.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(S){this._containsRealPlayer||(this._player=S,this._queuedCallbacks.forEach((h,M)=>{h.forEach(U=>No(S,M,void 0,U))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(S.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(S){this.totalTime=S}syncPlayerEvents(S){const h=this._player;h.triggerCallback&&S.onStart(()=>h.triggerCallback("start")),S.onDone(()=>this.finish()),S.onDestroy(()=>this.destroy())}_queueEvent(S,h){xr(this._queuedCallbacks,S,[]).push(h)}onDone(S){this.queued&&this._queueEvent("done",S),this._player.onDone(S)}onStart(S){this.queued&&this._queueEvent("start",S),this._player.onStart(S)}onDestroy(S){this.queued&&this._queueEvent("destroy",S),this._player.onDestroy(S)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(S){this.queued||this._player.setPosition(S)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(S){const h=this._player;h.triggerCallback&&h.triggerCallback(S)}}function To(H){return H&&1===H.nodeType}function Ua(H,S){const h=H.style.display;return H.style.display=S??"none",h}function fa(H,S,h,M,U){const ge=[];h.forEach(Et=>ge.push(Ua(Et)));const $e=[];M.forEach((Et,$t)=>{const vi=new Map;Et.forEach(Ii=>{const on=S.computeStyle($t,Ii,U);vi.set(Ii,on),(!on||0==on.length)&&($t[it]=Ge,$e.push($t))}),H.set($t,vi)});let ut=0;return h.forEach(Et=>Ua(Et,ge[ut++])),$e}function Ea(H,S){const h=new Map;if(H.forEach(ut=>h.set(ut,[])),0==S.length)return h;const M=1,U=new Set(S),ge=new Map;function $e(ut){if(!ut)return M;let Et=ge.get(ut);if(Et)return Et;const $t=ut.parentNode;return Et=h.has($t)?$t:U.has($t)?M:$e($t),ge.set(ut,Et),Et}return S.forEach(ut=>{const Et=$e(ut);Et!==M&&h.get(Et).push(ut)}),h}function bo(H,S){H.classList?.add(S)}function vs(H,S){H.classList?.remove(S)}function Xc(H,S,h){Xn(h).onDone(()=>H.processLeaveNode(S))}function yl(H,S){for(let h=0;h<H.length;h++){const M=H[h];M instanceof mn.ZE?yl(M.players,S):S.push(M)}}function Jc(H,S,h){const M=h.get(H);if(!M)return!1;let U=S.get(H);return U?M.forEach(ge=>U.add(ge)):S.set(H,M),h.delete(H),!0}class ja{constructor(S,h,M){this.bodyNode=S,this._driver=h,this._normalizer=M,this._triggerCache={},this.onRemovalComplete=(U,ge)=>{},this._transitionEngine=new Mn(S,h,M),this._timelineEngine=new Lo(S,h,M),this._transitionEngine.onRemovalComplete=(U,ge)=>this.onRemovalComplete(U,ge)}registerTrigger(S,h,M,U,ge){const $e=S+"-"+U;let ut=this._triggerCache[$e];if(!ut){const Et=[],$t=[],vi=Vr(this._driver,ge,Et,$t);if(Et.length)throw function ft(H,S){return new e.\u0275RuntimeError(3404,!1)}();ut=function ia(H,S,h){return new vl(H,S,h)}(U,vi,this._normalizer),this._triggerCache[$e]=ut}this._transitionEngine.registerTrigger(h,U,ut)}register(S,h){this._transitionEngine.register(S,h)}destroy(S,h){this._transitionEngine.destroy(S,h)}onInsert(S,h,M,U){this._transitionEngine.insertNode(S,h,M,U)}onRemove(S,h,M,U){this._transitionEngine.removeNode(S,h,U||!1,M)}disableAnimations(S,h){this._transitionEngine.markElementAsDisabled(S,h)}process(S,h,M,U){if("@"==M.charAt(0)){const[ge,$e]=Uo(M);this._timelineEngine.command(ge,h,$e,U)}else this._transitionEngine.trigger(S,h,M,U)}listen(S,h,M,U,ge){if("@"==M.charAt(0)){const[$e,ut]=Uo(M);return this._timelineEngine.listen($e,h,ut,ge)}return this._transitionEngine.listen(S,h,M,U,ge)}flush(S=-1){this._transitionEngine.flush(S)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ed=(()=>{class H{constructor(h,M,U){this._element=h,this._startStyles=M,this._endStyles=U,this._state=0;let ge=H.initialStylesByElement.get(h);ge||H.initialStylesByElement.set(h,ge=new Map),this._initialStyles=ge}start(){this._state<1&&(this._startStyles&&xn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(xn(this._element,this._initialStyles),this._endStyles&&(xn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(H.initialStylesByElement.delete(this._element),this._startStyles&&(gn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(gn(this._element,this._endStyles),this._endStyles=null),xn(this._element,this._initialStyles),this._state=3)}}return H.initialStylesByElement=new WeakMap,H})();function ga(H){let S=null;return H.forEach((h,M)=>{(function ql(H){return"display"===H||"position"===H})(M)&&(S=S||new Map,S.set(M,h))}),S}class ec{constructor(S,h,M,U){this.element=S,this.keyframes=h,this.options=M,this._specialStyles=U,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(S=>S()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const S=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,S,this.options),this._finalKeyframe=S.length?S[S.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(S){const h=[];return S.forEach(M=>{h.push(Object.fromEntries(M))}),h}_triggerWebAnimation(S,h,M){return S.animate(this._convertKeyframesToObject(h),M)}onStart(S){this._originalOnStartFns.push(S),this._onStartFns.push(S)}onDone(S){this._originalOnDoneFns.push(S),this._onDoneFns.push(S)}onDestroy(S){this._onDestroyFns.push(S)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(S=>S()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(S=>S()),this._onDestroyFns=[])}setPosition(S){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=S*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const S=new Map;this.hasStarted()&&this._finalKeyframe.forEach((M,U)=>{"offset"!==U&&S.set(U,this._finished?M:Dt(this.element,U))}),this.currentSnapshot=S}triggerCallback(S){const h="start"===S?this._onStartFns:this._onDoneFns;h.forEach(M=>M()),h.length=0}}class Cl{validateStyleProperty(S){return!0}validateAnimatableStyleProperty(S){return!0}matchesElement(S,h){return!1}containsElement(S,h){return Vs(S,h)}getParentElement(S){return wo(S)}query(S,h,M){return Tn(S,h,M)}computeStyle(S,h,M){return window.getComputedStyle(S)[h]}animate(S,h,M,U,ge,$e=[]){const Et={duration:M,delay:U,fill:0==U?"both":"forwards"};ge&&(Et.easing=ge);const $t=new Map,vi=$e.filter(rn=>rn instanceof ec);(function Y(H,S){return 0===H||0===S})(M,U)&&vi.forEach(rn=>{rn.currentSnapshot.forEach((Gi,Xi)=>$t.set(Xi,Gi))});let Ii=function Fi(H){return H.length?H[0]instanceof Map?H:H.map(S=>ei(S)):[]}(h).map(rn=>pn(rn));Ii=function ye(H,S,h){if(h.size&&S.length){let M=S[0],U=[];if(h.forEach((ge,$e)=>{M.has($e)||U.push($e),M.set($e,ge)}),U.length)for(let ge=1;ge<S.length;ge++){let $e=S[ge];U.forEach(ut=>$e.set(ut,Dt(H,ut)))}}return S}(S,Ii,$t);const on=function qc(H,S){let h=null,M=null;return Array.isArray(S)&&S.length?(h=ga(S[0]),S.length>1&&(M=ga(S[S.length-1]))):S instanceof Map&&(h=ga(S)),h||M?new ed(H,h,M):null}(S,Ii);return new ec(S,Ii,Et,on)}}let Wh=(()=>{class H extends mn._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 U=Array.isArray(h)?(0,mn.vP)(h):h;return xl(this._renderer,null,M,"register",[U]),new tc(M,this._renderer)}}return H.\u0275fac=function(h){return new(h||H)(e.\u0275\u0275inject(e.RendererFactory2),e.\u0275\u0275inject(f.DOCUMENT))},H.\u0275prov=e.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac}),H})();class tc extends mn.LC{constructor(S,h){super(),this._id=S,this._renderer=h}create(S,h){return new td(this._id,S,h||{},this._renderer)}}class td{constructor(S,h,M,U){this.id=S,this.element=h,this._renderer=U,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",M)}_listen(S,h){return this._renderer.listen(this.element,`@@${this.id}:${S}`,h)}_command(S,...h){return xl(this._renderer,this.element,this.id,S,h)}onDone(S){this._listen("done",S)}onStart(S){this._listen("start",S)}onDestroy(S){this._listen("destroy",S)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(S){this._command("setPosition",S)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function xl(H,S,h,M,U){return H.setProperty(S,`@@${h}:${M}`,U)}const Va="@.disabled";let id=(()=>{class H{constructor(h,M,U){this.delegate=h,this.engine=M,this._zone=U,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),M.onRemovalComplete=(ge,$e)=>{const ut=$e?.parentNode(ge);ut&&$e.removeChild(ut,ge)}}createRenderer(h,M){const ge=this.delegate.createRenderer(h,M);if(!(h&&M&&M.data&&M.data.animation)){let vi=this._rendererCache.get(ge);return vi||(vi=new ic("",ge,this.engine,()=>this._rendererCache.delete(ge)),this._rendererCache.set(ge,vi)),vi}const $e=M.id,ut=M.id+"-"+this._currentId;this._currentId++,this.engine.register(ut,h);const Et=vi=>{Array.isArray(vi)?vi.forEach(Et):this.engine.registerTrigger($e,ut,h,vi.name,vi)};return M.data.animation.forEach(Et),new Ml(this,ut,ge,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(h,M,U){h>=0&&h<this._microtaskId?this._zone.run(()=>M(U)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ge=>{const[$e,ut]=ge;$e(ut)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([M,U]))}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 H.\u0275fac=function(h){return new(h||H)(e.\u0275\u0275inject(e.RendererFactory2),e.\u0275\u0275inject(ja),e.\u0275\u0275inject(e.NgZone))},H.\u0275prov=e.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac}),H})();class ic{constructor(S,h,M,U){this.namespaceId=S,this.delegate=h,this.engine=M,this._onDestroy=U,this.destroyNode=this.delegate.destroyNode?ge=>h.destroyNode(ge):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(S,h){return this.delegate.createElement(S,h)}createComment(S){return this.delegate.createComment(S)}createText(S){return this.delegate.createText(S)}appendChild(S,h){this.delegate.appendChild(S,h),this.engine.onInsert(this.namespaceId,h,S,!1)}insertBefore(S,h,M,U=!0){this.delegate.insertBefore(S,h,M),this.engine.onInsert(this.namespaceId,h,S,U)}removeChild(S,h,M){this.engine.onRemove(this.namespaceId,h,this.delegate,M)}selectRootElement(S,h){return this.delegate.selectRootElement(S,h)}parentNode(S){return this.delegate.parentNode(S)}nextSibling(S){return this.delegate.nextSibling(S)}setAttribute(S,h,M,U){this.delegate.setAttribute(S,h,M,U)}removeAttribute(S,h,M){this.delegate.removeAttribute(S,h,M)}addClass(S,h){this.delegate.addClass(S,h)}removeClass(S,h){this.delegate.removeClass(S,h)}setStyle(S,h,M,U){this.delegate.setStyle(S,h,M,U)}removeStyle(S,h,M){this.delegate.removeStyle(S,h,M)}setProperty(S,h,M){"@"==h.charAt(0)&&h==Va?this.disableAnimations(S,!!M):this.delegate.setProperty(S,h,M)}setValue(S,h){this.delegate.setValue(S,h)}listen(S,h,M){return this.delegate.listen(S,h,M)}disableAnimations(S,h){this.engine.disableAnimations(S,h)}}class Ml extends ic{constructor(S,h,M,U,ge){super(h,M,U,ge),this.factory=S,this.namespaceId=h}setProperty(S,h,M){"@"==h.charAt(0)?"."==h.charAt(1)&&h==Va?this.disableAnimations(S,M=void 0===M||!!M):this.engine.process(this.namespaceId,S,h.slice(1),M):this.delegate.setProperty(S,h,M)}listen(S,h,M){if("@"==h.charAt(0)){const U=function nd(H){switch(H){case"body":return document.body;case"document":return document;case"window":return window;default:return H}}(S);let ge=h.slice(1),$e="";return"@"!=ge.charAt(0)&&([ge,$e]=function rd(H){const S=H.indexOf(".");return[H.substring(0,S),H.slice(S+1)]}(ge)),this.engine.listen(this.namespaceId,U,ge,$e,ut=>{this.factory.scheduleListenerCallback(ut._data||-1,M,ut)})}return this.delegate.listen(S,h,M)}}const nc=[{provide:mn._j,useClass:Wh},{provide:Ar,useFactory:function $h(){return new Qr}},{provide:ja,useClass:(()=>{class H extends ja{constructor(h,M,U,ge){super(h.body,M,U)}ngOnDestroy(){this.flush()}}return H.\u0275fac=function(h){return new(h||H)(e.\u0275\u0275inject(f.DOCUMENT),e.\u0275\u0275inject(So),e.\u0275\u0275inject(Ar),e.\u0275\u0275inject(e.ApplicationRef))},H.\u0275prov=e.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac}),H})()},{provide:e.RendererFactory2,useFactory:function Kh(H,S,h){return new id(H,S,h)},deps:[n.se,ja,e.NgZone]}],za=[{provide:So,useFactory:()=>new Cl},{provide:e.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...nc],Wa=[{provide:So,useClass:Jn},{provide:e.ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},...nc];let rc=(()=>{class H{static withConfig(h){return{ngModule:H,providers:h.disableAnimations?Wa:za}}}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=e.\u0275\u0275defineInjector({providers:za,imports:[n.b2]}),H})();var ad=a(2413);const ld={uri:!v.Bv||"P2Pchat"!==v.Bv&&"P2PchatV2"!==v.Bv&&"P2PchatV3"!==v.Bv?nt.L:v.Qb},cd={uri:nt.L,userId:v.xS,appId:v.Jf,mobitelUri:v.Xo.xY};let oc=(()=>{class H{static#e=this.\u0275fac=function(M){return new(M||H)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:H,bootstrap:[ze]});static#i=this.\u0275inj=e.\u0275\u0275defineInjector({providers:[u.V,re.G,Re.s,g.U,X.y,q.E,K.o,ad.r,N.T,Ee.G,me.G,b.e,Nr.G,po,lo,{provide:l.TP,useClass:Yn,multi:!0},{provide:Bo.vQ,useValue:ld},{provide:j.P4,useValue:cd}],imports:[n.b2,o.u5,l.JF,ue.N,Fo,Vn.Z,j.Im,ne.Wr.register("./ngsw-worker.js",{enabled:true,registrationStrategy:"registerImmediately"}),rc,Ir.yu,zn.Ps,Sr.To,Lt.yj,sr.y,Br.jT,fr.t,d.Bz,Dr.OwlModule]})}return H})();function wl(){n.q6().bootstrapModule(oc).catch(H=>console.log(H))}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 dd(){"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 I=d(f),F=I[1];return 3*(I[0]+F)/4-F},P.toByteArray=function C(f){var I,K,j=d(f),F=j[0],Z=j[1],le=new e(function b(f,I,j){return 3*(I+j)/4-j}(0,F,Z)),q=0,X=Z>0?F-4:F;for(K=0;K<X;K+=4)I=n[f.charCodeAt(K)]<<18|n[f.charCodeAt(K+1)]<<12|n[f.charCodeAt(K+2)]<<6|n[f.charCodeAt(K+3)],le[q++]=I>>16&255,le[q++]=I>>8&255,le[q++]=255&I;return 2===Z&&(I=n[f.charCodeAt(K)]<<2|n[f.charCodeAt(K+1)]>>4,le[q++]=255&I),1===Z&&(I=n[f.charCodeAt(K)]<<10|n[f.charCodeAt(K+1)]<<4|n[f.charCodeAt(K+2)]>>2,le[q++]=I>>8&255,le[q++]=255&I),le},P.fromByteArray=function g(f){for(var I,j=f.length,F=j%3,Z=[],q=0,X=j-F;q<X;q+=16383)Z.push(w(f,q,q+16383>X?X:q+16383));return 1===F?Z.push(a[(I=f[j-1])>>2]+a[I<<4&63]+"=="):2===F&&Z.push(a[(I=(f[j-2]<<8)+f[j-1])>>10]+a[I>>4&63]+a[I<<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 I=f.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var j=f.indexOf("=");return-1===j&&(j=I),[j,j===I?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,I,j){for(var Z=[],le=I;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(ee){return+ee!=ee&&(ee=0),u.alloc(+ee)},P.INSPECT_MAX_BYTES=50;var l=2147483647;function d(ee){if(ee>l)throw new RangeError('The value "'+ee+'" is invalid for option "size"');var k=new Uint8Array(ee);return Object.setPrototypeOf(k,u.prototype),k}function u(ee,k,R){if("number"==typeof ee){if("string"==typeof k)throw new TypeError('The "string" argument must be of type string. Received type number');return w(ee)}return b(ee,k,R)}function b(ee,k,R){if("string"==typeof ee)return function g(ee,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!u.isEncoding(k))throw new TypeError("Unknown encoding: "+k);var R=0|q(ee,k),be=d(R),qe=be.write(ee,k);return qe!==R&&(be=be.slice(0,qe)),be}(ee,k);if(ArrayBuffer.isView(ee))return function I(ee){if(Pe(ee,Uint8Array)){var k=new Uint8Array(ee);return j(k.buffer,k.byteOffset,k.byteLength)}return f(ee)}(ee);if(null==ee)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee);if(Pe(ee,ArrayBuffer)||ee&&Pe(ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pe(ee,SharedArrayBuffer)||ee&&Pe(ee.buffer,SharedArrayBuffer)))return j(ee,k,R);if("number"==typeof ee)throw new TypeError('The "value" argument must not be of type number. Received type number');var be=ee.valueOf&&ee.valueOf();if(null!=be&&be!==ee)return u.from(be,k,R);var qe=function F(ee){if(u.isBuffer(ee)){var k=0|Z(ee.length),R=d(k);return 0===R.length||ee.copy(R,0,0,k),R}return void 0!==ee.length?"number"!=typeof ee.length||Xe(ee.length)?d(0):f(ee):"Buffer"===ee.type&&Array.isArray(ee.data)?f(ee.data):void 0}(ee);if(qe)return qe;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof ee[Symbol.toPrimitive])return u.from(ee[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 ee)}function C(ee){if("number"!=typeof ee)throw new TypeError('"size" argument must be of type number');if(ee<0)throw new RangeError('The value "'+ee+'" is invalid for option "size"')}function w(ee){return C(ee),d(ee<0?0:0|Z(ee))}function f(ee){for(var k=ee.length<0?0:0|Z(ee.length),R=d(k),be=0;be<k;be+=1)R[be]=255&ee[be];return R}function j(ee,k,R){if(k<0||ee.byteLength<k)throw new RangeError('"offset" is outside of buffer bounds');if(ee.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(ee):void 0===R?new Uint8Array(ee,k):new Uint8Array(ee,k,R),Object.setPrototypeOf(be,u.prototype),be}function Z(ee){if(ee>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|ee}function q(ee,k){if(u.isBuffer(ee))return ee.length;if(ArrayBuffer.isView(ee)||Pe(ee,ArrayBuffer))return ee.byteLength;if("string"!=typeof ee)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ee);var R=ee.length,be=arguments.length>2&&!0===arguments[2];if(!be&&0===R)return 0;for(var qe=!1;;)switch(k){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return z(ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return Be(ee).length;default:if(qe)return be?-1:z(ee).length;k=(""+k).toLowerCase(),qe=!0}}function X(ee,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(ee||(ee="utf8");;)switch(ee){case"hex":return ti(this,k,R);case"utf8":case"utf-8":return ct(this,k,R);case"ascii":return Vt(this,k,R);case"latin1":case"binary":return zt(this,k,R);case"base64":return Je(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: "+ee);ee=(ee+"").toLowerCase(),be=!0}}function K(ee,k,R){var be=ee[k];ee[k]=ee[R],ee[R]=be}function N(ee,k,R,be,qe){if(0===ee.length)return-1;if("string"==typeof R?(be=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),Xe(R=+R)&&(R=qe?0:ee.length-1),R<0&&(R=ee.length+R),R>=ee.length){if(qe)return-1;R=ee.length-1}else if(R<0){if(!qe)return-1;R=0}if("string"==typeof k&&(k=u.from(k,be)),u.isBuffer(k))return 0===k.length?-1:me(ee,k,R,be,qe);if("number"==typeof k)return k&=255,"function"==typeof Uint8Array.prototype.indexOf?qe?Uint8Array.prototype.indexOf.call(ee,k,R):Uint8Array.prototype.lastIndexOf.call(ee,k,R):me(ee,[k],R,be,qe);throw new TypeError("val must be string, number or Buffer")}function me(ee,k,R,be,qe){var Tt,Ue=1,fe=ee.length,ke=k.length;if(void 0!==be&&("ucs2"===(be=String(be).toLowerCase())||"ucs-2"===be||"utf16le"===be||"utf-16le"===be)){if(ee.length<2||k.length<2)return-1;Ue=2,fe/=2,ke/=2,R/=2}function gt(at,Lt){return 1===Ue?at[Lt]:at.readUInt16BE(Lt*Ue)}if(qe){var Bt=-1;for(Tt=R;Tt<fe;Tt++)if(gt(ee,Tt)===gt(k,-1===Bt?0:Tt-Bt)){if(-1===Bt&&(Bt=Tt),Tt-Bt+1===ke)return Bt*Ue}else-1!==Bt&&(Tt-=Tt-Bt),Bt=-1}else for(R+ke>fe&&(R=fe-ke),Tt=R;Tt>=0;Tt--){for(var st=!0,Nt=0;Nt<ke;Nt++)if(gt(ee,Tt+Nt)!==gt(k,Nt)){st=!1;break}if(st)return Tt}return-1}function xe(ee,k,R,be){R=Number(R)||0;var qe=ee.length-R;be?(be=Number(be))>qe&&(be=qe):be=qe;var Ue=k.length;be>Ue/2&&(be=Ue/2);for(var fe=0;fe<be;++fe){var ke=parseInt(k.substr(2*fe,2),16);if(Xe(ke))return fe;ee[R+fe]=ke}return fe}function ne(ee,k,R,be){return pt(z(k,ee.length-R),ee,R,be)}function Qe(ee,k,R,be){return pt(function He(ee){for(var k=[],R=0;R<ee.length;++R)k.push(255&ee.charCodeAt(R));return k}(k),ee,R,be)}function Oe(ee,k,R,be){return pt(Be(k),ee,R,be)}function nt(ee,k,R,be){return pt(function Te(ee,k){for(var R,be,Ue=[],fe=0;fe<ee.length&&!((k-=2)<0);++fe)be=(R=ee.charCodeAt(fe))>>8,Ue.push(R%256),Ue.push(be);return Ue}(k,ee.length-R),ee,R,be)}function Je(ee,k,R){return n.fromByteArray(0===k&&R===ee.length?ee:ee.slice(k,R))}function ct(ee,k,R){R=Math.min(ee.length,R);for(var be=[],qe=k;qe<R;){var gt,Tt,Bt,st,Ue=ee[qe],fe=null,ke=Ue>239?4:Ue>223?3:Ue>191?2:1;if(qe+ke<=R)switch(ke){case 1:Ue<128&&(fe=Ue);break;case 2:128==(192&(gt=ee[qe+1]))&&(st=(31&Ue)<<6|63&gt)>127&&(fe=st);break;case 3:Tt=ee[qe+2],128==(192&(gt=ee[qe+1]))&&128==(192&Tt)&&(st=(15&Ue)<<12|(63&gt)<<6|63&Tt)>2047&&(st<55296||st>57343)&&(fe=st);break;case 4:Tt=ee[qe+2],Bt=ee[qe+3],128==(192&(gt=ee[qe+1]))&&128==(192&Tt)&&128==(192&Bt)&&(st=(15&Ue)<<18|(63&gt)<<12|(63&Tt)<<6|63&Bt)>65535&&st<1114112&&(fe=st)}null===fe?(fe=65533,ke=1):fe>65535&&(be.push((fe-=65536)>>>10&1023|55296),fe=56320|1023&fe),be.push(fe),qe+=ke}return function dt(ee){var k=ee.length;if(k<=ot)return String.fromCharCode.apply(String,ee);for(var R="",be=0;be<k;)R+=String.fromCharCode.apply(String,ee.slice(be,be+=ot));return R}(be)}P.kMaxLength=l,!(u.TYPED_ARRAY_SUPPORT=function v(){try{var ee=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(ee,k),42===ee.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(ee,k,R){return b(ee,k,R)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(ee,k,R){return function x(ee,k,R){return C(ee),ee<=0?d(ee):void 0!==k?"string"==typeof R?d(ee).fill(k,R):d(ee).fill(k):d(ee)}(ee,k,R)},u.allocUnsafe=function(ee){return w(ee)},u.allocUnsafeSlow=function(ee){return w(ee)},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,qe=R.length,Ue=0,fe=Math.min(be,qe);Ue<fe;++Ue)if(k[Ue]!==R[Ue]){be=k[Ue],qe=R[Ue];break}return be<qe?-1:qe<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 qe=u.allocUnsafe(R),Ue=0;for(be=0;be<k.length;++be){var fe=k[be];if(Pe(fe,Uint8Array))Ue+fe.length>qe.length?u.from(fe).copy(qe,Ue):Uint8Array.prototype.set.call(qe,fe,Ue);else{if(!u.isBuffer(fe))throw new TypeError('"list" argument must be an Array of Buffers');fe.copy(qe,Ue)}Ue+=fe.length}return qe},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,qe,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===qe&&(qe=0),void 0===Ue&&(Ue=this.length),R<0||be>k.length||qe<0||Ue>this.length)throw new RangeError("out of range index");if(qe>=Ue&&R>=be)return 0;if(qe>=Ue)return-1;if(R>=be)return 1;if(this===k)return 0;for(var fe=(Ue>>>=0)-(qe>>>=0),ke=(be>>>=0)-(R>>>=0),gt=Math.min(fe,ke),Tt=this.slice(qe,Ue),Bt=k.slice(R,be),st=0;st<gt;++st)if(Tt[st]!==Bt[st]){fe=Tt[st],ke=Bt[st];break}return fe<ke?-1:ke<fe?1:0},u.prototype.includes=function(k,R,be){return-1!==this.indexOf(k,R,be)},u.prototype.indexOf=function(k,R,be){return N(this,k,R,be,!0)},u.prototype.lastIndexOf=function(k,R,be){return N(this,k,R,be,!1)},u.prototype.write=function(k,R,be,qe){if(void 0===R)qe="utf8",be=this.length,R=0;else if(void 0===be&&"string"==typeof R)qe=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===qe&&(qe="utf8")):(qe=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");qe||(qe="utf8");for(var fe=!1;;)switch(qe){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 Qe(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(fe)throw new TypeError("Unknown encoding: "+qe);qe=(""+qe).toLowerCase(),fe=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ot=4096;function Vt(ee,k,R){var be="";R=Math.min(ee.length,R);for(var qe=k;qe<R;++qe)be+=String.fromCharCode(127&ee[qe]);return be}function zt(ee,k,R){var be="";R=Math.min(ee.length,R);for(var qe=k;qe<R;++qe)be+=String.fromCharCode(ee[qe]);return be}function ti(ee,k,R){var be=ee.length;(!k||k<0)&&(k=0),(!R||R<0||R>be)&&(R=be);for(var qe="",Ue=k;Ue<R;++Ue)qe+=ht[ee[Ue]];return qe}function mi(ee,k,R){for(var be=ee.slice(k,R),qe="",Ue=0;Ue<be.length-1;Ue+=2)qe+=String.fromCharCode(be[Ue]+256*be[Ue+1]);return qe}function Yt(ee,k,R){if(ee%1!=0||ee<0)throw new RangeError("offset is not uint");if(ee+k>R)throw new RangeError("Trying to access beyond buffer length")}function Jt(ee,k,R,be,qe,Ue){if(!u.isBuffer(ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>qe||k<Ue)throw new RangeError('"value" argument is out of bounds');if(R+be>ee.length)throw new RangeError("Index out of range")}function lt(ee,k,R,be,qe,Ue){if(R+be>ee.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function _t(ee,k,R,be,qe){return k=+k,R>>>=0,qe||lt(ee,0,R,4),e.write(ee,k,R,be,23,4),R+4}function Fe(ee,k,R,be,qe){return k=+k,R>>>=0,qe||lt(ee,0,R,8),e.write(ee,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 qe=this.subarray(k,R);return Object.setPrototypeOf(qe,u.prototype),qe},u.prototype.readUintLE=u.prototype.readUIntLE=function(k,R,be){k>>>=0,R>>>=0,be||Yt(k,R,this.length);for(var qe=this[k],Ue=1,fe=0;++fe<R&&(Ue*=256);)qe+=this[k+fe]*Ue;return qe},u.prototype.readUintBE=u.prototype.readUIntBE=function(k,R,be){k>>>=0,R>>>=0,be||Yt(k,R,this.length);for(var qe=this[k+--R],Ue=1;R>0&&(Ue*=256);)qe+=this[k+--R]*Ue;return qe},u.prototype.readUint8=u.prototype.readUInt8=function(k,R){return k>>>=0,R||Yt(k,1,this.length),this[k]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(k,R){return k>>>=0,R||Yt(k,2,this.length),this[k]|this[k+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(k,R){return k>>>=0,R||Yt(k,2,this.length),this[k]<<8|this[k+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(k,R){return k>>>=0,R||Yt(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||Yt(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||Yt(k,R,this.length);for(var qe=this[k],Ue=1,fe=0;++fe<R&&(Ue*=256);)qe+=this[k+fe]*Ue;return qe>=(Ue*=128)&&(qe-=Math.pow(2,8*R)),qe},u.prototype.readIntBE=function(k,R,be){k>>>=0,R>>>=0,be||Yt(k,R,this.length);for(var qe=R,Ue=1,fe=this[k+--qe];qe>0&&(Ue*=256);)fe+=this[k+--qe]*Ue;return fe>=(Ue*=128)&&(fe-=Math.pow(2,8*R)),fe},u.prototype.readInt8=function(k,R){return k>>>=0,R||Yt(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},u.prototype.readInt16LE=function(k,R){k>>>=0,R||Yt(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||Yt(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||Yt(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||Yt(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||Yt(k,4,this.length),e.read(this,k,!0,23,4)},u.prototype.readFloatBE=function(k,R){return k>>>=0,R||Yt(k,4,this.length),e.read(this,k,!1,23,4)},u.prototype.readDoubleLE=function(k,R){return k>>>=0,R||Yt(k,8,this.length),e.read(this,k,!0,52,8)},u.prototype.readDoubleBE=function(k,R){return k>>>=0,R||Yt(k,8,this.length),e.read(this,k,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(k,R,be,qe){k=+k,R>>>=0,be>>>=0,qe||Jt(this,k,R,be,Math.pow(2,8*be)-1,0);var fe=1,ke=0;for(this[R]=255&k;++ke<be&&(fe*=256);)this[R+ke]=k/fe&255;return R+be},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(k,R,be,qe){k=+k,R>>>=0,be>>>=0,qe||Jt(this,k,R,be,Math.pow(2,8*be)-1,0);var fe=be-1,ke=1;for(this[R+fe]=255&k;--fe>=0&&(ke*=256);)this[R+fe]=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,qe){if(k=+k,R>>>=0,!qe){var Ue=Math.pow(2,8*be-1);Jt(this,k,R,be,Ue-1,-Ue)}var fe=0,ke=1,gt=0;for(this[R]=255&k;++fe<be&&(ke*=256);)k<0&&0===gt&&0!==this[R+fe-1]&&(gt=1),this[R+fe]=(k/ke>>0)-gt&255;return R+be},u.prototype.writeIntBE=function(k,R,be,qe){if(k=+k,R>>>=0,!qe){var Ue=Math.pow(2,8*be-1);Jt(this,k,R,be,Ue-1,-Ue)}var fe=be-1,ke=1,gt=0;for(this[R+fe]=255&k;--fe>=0&&(ke*=256);)k<0&&0===gt&&0!==this[R+fe+1]&&(gt=1),this[R+fe]=(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,qe){if(!u.isBuffer(k))throw new TypeError("argument should be a Buffer");if(be||(be=0),!qe&&0!==qe&&(qe=this.length),R>=k.length&&(R=k.length),R||(R=0),qe>0&&qe<be&&(qe=be),qe===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(qe<0)throw new RangeError("sourceEnd out of bounds");qe>this.length&&(qe=this.length),k.length-R<qe-be&&(qe=k.length-R+be);var Ue=qe-be;return this===k&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(R,be,qe):Uint8Array.prototype.set.call(k,this.subarray(be,qe),R),Ue},u.prototype.fill=function(k,R,be,qe){if("string"==typeof k){if("string"==typeof R?(qe=R,R=0,be=this.length):"string"==typeof be&&(qe=be,be=this.length),void 0!==qe&&"string"!=typeof qe)throw new TypeError("encoding must be a string");if("string"==typeof qe&&!u.isEncoding(qe))throw new TypeError("Unknown encoding: "+qe);if(1===k.length){var Ue=k.charCodeAt(0);("utf8"===qe&&Ue<128||"latin1"===qe)&&(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 fe;if(R>>>=0,be=void 0===be?this.length:be>>>0,k||(k=0),"number"==typeof k)for(fe=R;fe<be;++fe)this[fe]=k;else{var ke=u.isBuffer(k)?k:u.from(k,qe),gt=ke.length;if(0===gt)throw new TypeError('The value "'+k+'" is invalid for argument "value"');for(fe=0;fe<be-R;++fe)this[fe+R]=ke[fe%gt]}return this};var Ae=/[^+/0-9A-Za-z-_]/g;function z(ee,k){k=k||1/0;for(var R,be=ee.length,qe=null,Ue=[],fe=0;fe<be;++fe){if((R=ee.charCodeAt(fe))>55295&&R<57344){if(!qe){if(R>56319){(k-=3)>-1&&Ue.push(239,191,189);continue}if(fe+1===be){(k-=3)>-1&&Ue.push(239,191,189);continue}qe=R;continue}if(R<56320){(k-=3)>-1&&Ue.push(239,191,189),qe=R;continue}R=65536+(qe-55296<<10|R-56320)}else qe&&(k-=3)>-1&&Ue.push(239,191,189);if(qe=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(ee){return n.toByteArray(function W(ee){if((ee=(ee=ee.split("=")[0]).trim().replace(Ae,"")).length<2)return"";for(;ee.length%4!=0;)ee+="=";return ee}(ee))}function pt(ee,k,R,be){for(var qe=0;qe<be&&!(qe+R>=k.length||qe>=ee.length);++qe)k[qe+R]=ee[qe];return qe}function Pe(ee,k){return ee instanceof k||null!=ee&&null!=ee.constructor&&null!=ee.constructor.name&&ee.constructor.name===k.name}function Xe(ee){return ee!=ee}var ht=function(){for(var ee="0123456789abcdef",k=new Array(256),R=0;R<16;++R)for(var be=16*R,qe=0;qe<16;++qe)k[be+qe]=ee[R]+ee[qe];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 I(){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(N){if(!g)if("pong"===N.type&&"probe"===N.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 F(K){var N=new Error("probe error: "+K);N.transport=w.name,j(),o('probe transport "%s" failed because of error: %s',x,K),f.emit("upgradeError",N)}function Z(){F("transport closed")}function le(){F("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",I),w.removeListener("error",F),w.removeListener("close",Z),f.removeListener("close",le),f.removeListener("upgrading",q)}b.priorWebsocketSuccess=!1,w.once("open",I),w.once("error",F),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 I={type:x,data:w,options:g};this.emit("packetCreate",I),this.writeBuffer.push(I),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"),I=this.iframeId="eio_iframe_"+this.index;g.className="socketio",g.style.position="absolute",g.style.top="-1000px",g.style.left="-1000px",g.target=I,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 F(){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&&F()}:this.iframe.onload=F}},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,I=location.port;I||(I=f?443:80),this.xd=typeof location<"u"&&g.hostname!==location.hostname||I!==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}),F=this;j.on("success",f),j.on("error",function(Z){F.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(I){f.onData(I)}),g.on("error",function(I){f.onError("xhr poll error",I)}),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),I=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(){I.onLoad()},f.onerror=function(){I.onError(f.responseText)}):f.onreadystatechange=function(){if(2===f.readyState)try{var F=f.getResponseHeader("Content-Type");(I.supportsBinary&&"application/octet-stream"===F||"application/octet-stream; charset=UTF-8"===F)&&(f.responseType="arraybuffer")}catch{}4===f.readyState&&(200===f.status||1223===f.status?I.onLoad():setTimeout(function(){I.onError("number"==typeof f.status?f.status:0)},0))},v("xhr data %s",this.data),f.send(this.data)}catch(F){return void setTimeout(function(){I.onError(F)},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(I){this.onError(I)}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,I){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(I){return this.emit("error",I)}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,I=0,j=f;I<j;I++)!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[I])},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 I=new Array(arguments.length),j=0;j<I.length;j++)I[j]=arguments[j];I[0]=P.coerce(I[0]),"string"!=typeof I[0]&&I.unshift("%O");var F=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,function(le,q){if("%%"===le)return le;F++;var X=P.formatters[q];return"function"==typeof X&&(le=X.call(w,I[F]),I.splice(F,1),F--),le}),P.formatArgs.call(w,I),(x.log||P.log||console.log.bind(console)).apply(w,I)}}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,N){for(var me=new Array(X.length),xe=l(X.length,N),ne=function(Oe,nt,Je){K(nt,function(ct,ot){me[Oe]=ot,Je(ct,me)})},Qe=0;Qe<X.length;Qe++)ne(Qe,X[Qe],xe)}P.encodePacket=function(X,K,N,me){"function"==typeof K&&(me=K,K=!1),"function"==typeof N&&(me=N,N=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,N){if(!K)return P.encodeBase64Packet(X,N);var me=X.data,xe=new Uint8Array(me),ne=new Uint8Array(1+me.byteLength);ne[0]=x[X.type];for(var Qe=0;Qe<xe.length;Qe++)ne[Qe+1]=xe[Qe];return N(ne.buffer)}(X,K,me);if(typeof f<"u"&&xe instanceof f)return function Z(X,K,N){if(!K)return P.encodeBase64Packet(X,N);if(C)return function F(X,K,N){if(!K)return P.encodeBase64Packet(X,N);var me=new FileReader;return me.onload=function(){P.encodePacket({type:X.type,data:me.result},K,!0,N)},me.readAsArrayBuffer(X.data)}(X,K,N);var me=new Uint8Array(1);return me[0]=x[X.type],N(new f([me.buffer,X.data]))}(X,K,me);if(xe&&xe.base64)return function I(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+=N?v.encode(String(X.data),{strict:!1}):String(X.data)),me(""+ne)},P.encodeBase64Packet=function(X,K){var xe,N="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(N+nt)},me.readAsDataURL(X.data)}try{xe=String.fromCharCode.apply(null,new Uint8Array(X.data))}catch{for(var ne=new Uint8Array(X.data),Qe=new Array(ne.length),Oe=0;Oe<ne.length;Oe++)Qe[Oe]=ne[Oe];xe=String.fromCharCode.apply(null,Qe)}return N+=btoa(xe),K(N)},P.decodePacket=function(X,K,N){if(void 0===X)return g;if("string"==typeof X){if("b"===X.charAt(0))return P.decodeBase64Packet(X.substr(1),K);if(N&&!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 N=w[X.charAt(0)];if(!d)return{type:N,data:{base64:!0,data:X.substr(1)}};var me=d.decode(X.substr(1));return"blob"===K&&f&&(me=new f([me])),{type:N,data:me}},P.encodePayload=function(X,K,N){"function"==typeof K&&(N=K,K=null);var me=e(X);return K&&me?f&&!C?P.encodePayloadAsBlob(X,N):P.encodePayloadAsArrayBuffer(X,N):X.length?void q(X,function ne(Qe,Oe){P.encodePacket(Qe,!!me&&K,!1,function(nt){Oe(null,function xe(Qe){return Qe.length+":"+Qe}(nt))})},function(Qe,Oe){return N(Oe.join(""))}):N("0:")},P.decodePayload=function(X,K,N){if("string"!=typeof X)return P.decodePayloadAsBinary(X,K,N);var me;if("function"==typeof K&&(N=K,K=null),""===X)return N(g,0,1);for(var ne,Qe,xe="",Oe=0,nt=X.length;Oe<nt;Oe++){var Je=X.charAt(Oe);if(":"===Je){if(""===xe||xe!=(ne=Number(xe))||xe!=(Qe=X.substr(Oe+1,ne)).length)return N(g,0,1);if(Qe.length){if(me=P.decodePacket(Qe,K,!1),g.type===me.type&&g.data===me.data)return N(g,0,1);if(!1===N(me,Oe+ne,nt))return}Oe+=ne,xe=""}else xe+=Je}return""!==xe?N(g,0,1):void 0},P.encodePayloadAsArrayBuffer=function(X,K){if(!X.length)return K(new ArrayBuffer(0));q(X,function N(me,xe){P.encodePacket(me,!0,!0,function(ne){return xe(null,ne)})},function(me,xe){var ne=xe.reduce(function(nt,Je){var ct;return nt+(ct="string"==typeof Je?Je.length:Je.byteLength).toString().length+ct+2},0),Qe=new Uint8Array(ne),Oe=0;return xe.forEach(function(nt){var Je="string"==typeof nt,ct=nt;if(Je){for(var Vt=new Uint8Array(nt.length),ot=0;ot<nt.length;ot++)Vt[ot]=nt.charCodeAt(ot);ct=Vt.buffer}Qe[Oe++]=Je?0:1;var dt=ct.byteLength.toString();for(ot=0;ot<dt.length;ot++)Qe[Oe++]=parseInt(dt[ot]);for(Qe[Oe++]=255,Vt=new Uint8Array(ct),ot=0;ot<Vt.length;ot++)Qe[Oe++]=Vt[ot]}),K(Qe.buffer)})},P.encodePayloadAsBlob=function(X,K){q(X,function N(me,xe){P.encodePacket(me,!0,!0,function(ne){var Qe=new Uint8Array(1);if(Qe[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,Qe[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([Qe.buffer,ot.buffer,ne]);xe(null,dt)}})},function(me,xe){return K(new f(xe))})},P.decodePayloadAsBinary=function(X,K,N){"function"==typeof K&&(N=K,K=null);for(var me=X,xe=[];me.byteLength>0;){for(var ne=new Uint8Array(me),Qe=0===ne[0],Oe="",nt=1;255!==ne[nt];nt++){if(Oe.length>310)return N(g,0,1);Oe+=ne[nt]}me=o(me,2+Oe.length),Oe=parseInt(Oe);var Je=o(me,0,Oe);if(Qe)try{Je=String.fromCharCode.apply(null,new Uint8Array(Je))}catch{var ct=new Uint8Array(Je);for(Je="",nt=0;nt<ct.length;nt++)Je+=String.fromCharCode(ct[nt])}xe.push(Je),me=o(me,Oe)}var ot=xe.length;xe.forEach(function(dt,Vt){N(P.decodePacket(dt,K,!0),Vt,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 F,Z,f=[],I=0,j=g.length;I<j;)(F=g.charCodeAt(I++))>=55296&&F<=56319&&I<j?56320==(64512&(Z=g.charCodeAt(I++)))?f.push(((1023&F)<<10)+(1023&Z)+65536):(f.push(F),I--):f.push(F);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 I="";return 4294965248&g?4294901760&g?4292870144&g||(I=P(g>>18&7|240),I+=o(g,12),I+=o(g,6)):(e(g,f)||(g=65533),I=P(g>>12&15|224),I+=o(g,6)):I=P(g>>6&31|192),I+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 I=!1!==(f=f||{}).strict,j=a(g),F=j.length,Z=-1,q="";++Z<F;)q+=l(j[Z],I);return q},decode:function w(g,f){var I=!1!==(f=f||{}).strict;b=a(g),C=b.length,x=0;for(var F,j=[];!1!==(F=u(I));)j.push(F);return function n(g){for(var j,f=g.length,I=-1,F="";++I<f;)(j=g[I])>65535&&(F+=P((j-=65536)>>>10&1023|55296),j=56320|1023&j),F+=P(j);return F}(j)}}},9069:G=>{"use strict";var n,P="object"==typeof Reflect?Reflect:null,a=P&&"function"==typeof P.apply?P.apply:function(X,K,N){return Function.prototype.apply.call(X,K,N)};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 F(q,X){return new Promise(function(K,N){function me(ne){q.removeListener(X,xe),N(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,N){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]=N?[K,ne]:[ne,K]:N?ne.unshift(K):ne.push(K),(me=u(q))>0&&ne.length>me&&!ne.warned){ne.warned=!0;var Qe=new Error("Possible EventEmitter memory leak detected. "+ne.length+" "+String(X)+" listeners added. Use emitter.setMaxListeners() to increase limit");Qe.name="MaxListenersExceededWarning",Qe.emitter=q,Qe.type=X,Qe.count=ne.length,function e(q){console&&console.warn&&console.warn(q)}(Qe)}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 N={fired:!1,wrapFn:void 0,target:q,type:X,listener:K},me=C.bind(N);return me.listener=K,N.wrapFn=me,me}function w(q,X,K){var N=q._events;if(void 0===N)return[];var me=N[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),N=0;N<X;++N)K[N]=q[N];return K}function le(q,X,K,N){if("function"==typeof q.on)N.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){N.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=[],N=1;N<arguments.length;N++)K.push(arguments[N]);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 Qe=new Error("Unhandled error."+(ne?" ("+ne.message+")":""));throw Qe.context=ne,Qe}var Oe=xe[X];if(void 0===Oe)return!1;if("function"==typeof Oe)a(Oe,this,K);else{var nt=Oe.length,Je=f(Oe,nt);for(N=0;N<nt;++N)a(Je[N],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 N,me,xe,ne,Qe;if(d(K),void 0===(me=this._events))return this;if(void 0===(N=me[X]))return this;if(N===K||N.listener===K)0==--this._eventsCount?this._events=Object.create(null):(delete me[X],me.removeListener&&this.emit("removeListener",X,N.listener||K));else if("function"!=typeof N){for(xe=-1,ne=N.length-1;ne>=0;ne--)if(N[ne]===K||N[ne].listener===K){Qe=N[ne].listener,xe=ne;break}if(xe<0)return this;0===xe?N.shift():function I(q,X){for(;X+1<q.length;X++)q[X]=q[X+1];q.pop()}(N,xe),1===N.length&&(me[X]=N[0]),void 0!==me.removeListener&&this.emit("removeListener",X,Qe||K)}return this},l.prototype.removeAllListeners=function(X){var K,N,me;if(void 0===(N=this._events))return this;if(void 0===N.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==N[X]&&(0==--this._eventsCount?this._events=Object.create(null):delete N[X]),this;if(0===arguments.length){var ne,xe=Object.keys(N);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=N[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,I=document.createElement("a");I.download=w=w||x.name||"download",I.rel="noopener","string"==typeof x?(I.href=x,I.origin===location.origin?d(I):v(I.href)?l(x,w,g):d(I,I.target="_blank")):(I.href=f.createObjectURL(x),setTimeout(function(){f.revokeObjectURL(I.href)},4e4),setTimeout(function(){d(I)},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 I="application/octet-stream"===x.type,j=/constructor/i.test(u.HTMLElement)||u.safari,F=/CriOS\/[\d]+/.test(navigator.userAgent);if((F||I&&j||b)&&typeof FileReader<"u"){var Z=new FileReader;Z.onloadend=function(){var X=Z.result;X=F?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,I=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+=I,u/=256,l-=8);for(d=d<<l|u,C+=l;C>0;a[e+f]=255&d,f+=I,d/=256,C-=8);a[e+f-I]|=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,I){for(;0<I--;)g.push(f)}function b(g,f){return g<<f|g>>>32-f}function C(g,f,I){return g^f^I}function x(g,f){var I=(65535&f)+(65535&g);return(65535&(f>>>16)+(g>>>16)+(I>>>16))<<16|65535&I}var w="0123456789abcdef";return function(g){for(var j,f=[],I=4*g.length,F=0;F<I;F++)f.push(w.charAt((j=g[F>>2]>>8*(3-F%4))>>4&15)+w.charAt(15&j));return f.join("")}(function(g,f){var I,j,F,Z,le,ct,q=g.length,X=1732584193,K=4023233417,N=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 Qe=0;Qe<q;Qe+=16){I=X,j=K,F=N,Z=me,le=xe;for(var Oe=0,nt=[];Oe<80;Oe++){nt[Oe]=Oe<16?g[Oe+Qe]:b(nt[Oe-3]^nt[Oe-8]^nt[Oe-14]^nt[Oe-16],1);var Je=function(ct,ot,dt,Vt,zt){var ti=(65535&zt)+(65535&ct)+(65535&ot)+(65535&dt)+(65535&Vt);return(65535&(zt>>>16)+(ct>>>16)+(ot>>>16)+(dt>>>16)+(Vt>>>16)+(ti>>>16))<<16|65535&ti}(Oe<20?(ct=j)&F^~ct&Z:Oe<40?C(j,F,Z):Oe<60?function(ct,ot,dt){return ct&ot^ct&dt^ot&dt}(j,F,Z):C(j,F,Z),le,ne[Oe],nt[Oe],b(I,5));le=Z,Z=F,F=b(j,30),j=I,I=Je}X=x(X,I),K=x(K,j),N=x(N,F),me=x(me,Z),xe=x(xe,le)}return[X,K,N,me,xe]}(function(g){for(var f=[],j=8*g.length,F=0;F<j;F+=8)f[F>>5]|=(255&g.charCodeAt(F/8))<<24-F%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 I=f.lastIndexOf("/");if(I)return f.substr(I+1).toLowerCase()}},URIGetPath:function(f){if(f)return u.URI(f).path.toLowerCase()},fileGetExtension:function(f){if(!f)return"";var I=(f=f.split("?")[0]).split(".").pop();return!I||I.length>4?"":I},appendPaths:function(f,I){return I||(I=""),f&&""!==f?f+("/"==f[f.length-1]||I.length>0&&"/"==I[0]?"":"/")+I:(I.length>0&&"/"==I[0]?"":"/")+I},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,I){e.jQuery?d(f).trigger(I):((u.isCordovaWindowsPhone()||!window.CustomEvent)&&(window.CustomEvent=function(F,Z){var le;Z=Z||{bubbles:!1,cancelable:!1,detail:void 0};try{(le=document.createEvent("CustomEvent")).initCustomEvent(F,Z.bubbles,Z.cancelable,Z.detail)}catch{(le=document.createEvent("Event")).initEvent(F,Z.bubbles,Z.cancelable),le.detail=Z.detail}return le}),f.dispatchEvent(new CustomEvent(I)))},removeAttribute:function(f,I){u.hasJqueryOrJqueryLite()?f.removeAttr(I):f.removeAttribute(I)},setAttribute:function(f,I,j){u.hasJqueryOrJqueryLite()?f.attr(I,j):f.setAttribute(I,j)},getAttribute:function(f,I){return u.hasJqueryOrJqueryLite()?f.attr(I):f.getAttribute(I)},getBackgroundImage:function(f){if(u.hasJqueryOrJqueryLite())return f.attr("data-old-background")?"url("+f.attr("data-old-background")+")":f.css("background-image");var I=window.getComputedStyle(f,null);return I?f.getAttribute("data-old-background")?"url("+f.getAttribute("data-old-background")+")":I.backgroundImage:void 0},setBackgroundImage:function(f,I){u.hasJqueryOrJqueryLite()?f.css("background-image",I):f.style.backgroundImage=I}},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(I){return e.overridables.log("Could not write to local storage: "+I.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 I=u.EntryGetPath(e.attributes.dirEntry);return u.appendPaths(I,C.getCachedFileName(f))},C.getCachedFileName=function(f){if(f){var I=e.overridables.hash(f),j=u.fileGetExtension(u.URIGetFileName(f));return I+(j?"."+j:"")}e.overridables.log("No source given to getCachedFileName",l)},C.setNewImgPath=function(f,I,j){b.setAttribute(f,"src",I),b.setAttribute(f,x,j)},C.createCacheDir=function(f,I){if(!e.attributes.filesystem)return e.overridables.log("Filesystem instance was not initialised",v),void(I&&I());var j=function(Z){e.overridables.log("Failed to get/create local cache directory: "+Z.code,v),I&&I()};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,I,j,F,Z){var le=e.options.headers||{},q="function"==typeof Z;if(this.fileTransfer)return q&&(this.fileTransfer.onprogress=Z),this.fileTransfer.download(f,I,j,F,!1,{headers:le});var X=this.filesystem,K=function(xe,ne,Qe){e.overridables.log(xe,ne),Qe&&Qe({code:0,source:f,target:I})},N=new XMLHttpRequest;for(var me in N.open("GET",f,!0),q&&(N.onprogress=Z),e.options.withCredentials&&(N.withCredentials=!0),N.timeout=e.options.timeout,N.responseType="blob",le)N.setRequestHeader(me,le[me]);N.onload=function(){!N.response||200!==N.status&&0!==N.status?K("Image "+f+" could not be downloaded - status: "+N.status,3,F):X.root.getFile(I,{create:!0},function(xe){xe.createWriter(function(ne){ne.onerror=F,ne.onwriteend=function(){j(xe)},ne.write(N.response,F)},F)},F)},N.onerror=function(){K("XHR error - Image "+f+" could not be downloaded - status: "+N.status,3,F)},N.send()},C.getBackgroundImageURL=function(f){var I=b.getBackgroundImage(f);if(I)return/url\s?\((.+)\)/.exec(I)[1].replace(/(['"])/g,"")},C.loadCachedFile=function(f,I,j,F,Z){if(C.isImgCacheLoaded()&&f){var le=u.URIGetFileName(I);e.attributes.filesystem.root.getFile(C.getCachedFilePath(I),{create:!1},function(K){if(e.options.useDataURI)K.file(function(ne){var Qe=new FileReader;Qe.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,I),e.overridables.log("File "+le+" loaded from cache",o),F&&F(f)},Qe.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,I),e.overridables.log("File "+le+" loaded from cache",o),F&&F(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,I){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 F=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)},I)},Z=function(X){e.overridables.log("Failed to initialise LocalFileSystem "+X.code,v),I&&I()};if(u.isCordova()&&window.requestFileSystem)if(e.options.cordovaFilesystemRoot)try{window.resolveLocalFileSystemURL(e.options.cordovaFilesystemRoot,function(X){F({root:X})},Z)}catch(X){Z({code:X.message})}else window.requestFileSystem(u.getCordovaStorageType(e.options.usePersistentCache),0,F,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(I&&I());var q=e.options.chromeQuota;window.storageInfo.requestQuota(q,function(){var X=e.options.usePersistentCache?window.storageInfo.PERSISTENT:window.storageInfo.TEMPORARY;le(X,q,F,Z)},function(X){e.overridables.log("Failed to request quota: "+X.message,v),I&&I()})}},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,I,j,F){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}),I&&I(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()},F)}},e.getCachedFile=function(f,I){if(C.isImgCacheLoaded()&&I){var j=f;f=u.sanitizeURI(f);var F=C.getCachedFilePath(f);u.isCordovaAndroid()&&0===F.indexOf("file://")&&(F=F.substr(7)),e.attributes.filesystem.root.getFile(F,{create:!1},function(Z){I(f,Z)},function(){I(j,null)})}},e.getCachedFileURL=function(f,I,j){e.getCachedFile(f,function(Z,le){le?I(Z,u.EntryGetURL(le)):j&&j(Z)})},e.isCached=function(f,I){e.getCachedFile(f,function(j,F){I(j,null!==F)})},e.useOnlineFile=function(f){if(C.isImgCacheLoaded()&&f){var I=b.getAttribute(f,x);I&&b.setAttribute(f,"src",I),b.removeAttribute(f,x)}},e.useCachedFile=function(f,I,j){C.isImgCacheLoaded()&&C.loadCachedFile(f,b.getAttribute(f,"src"),C.setNewImgPath,I,j)},e.useCachedFileWithSource=function(f,I,j,F){if(C.isImgCacheLoaded()){var Z=u.sanitizeURI(I);C.loadCachedFile(f,Z,C.setNewImgPath,j,F)}},e.clearCache=function(f,I){C.isImgCacheLoaded()&&e.attributes.dirEntry.removeRecursively(function(){e.overridables.log("Local cache cleared",o),C.setCurrentSize(0),C.createCacheDir(f,I)},function(j){e.overridables.log("Failed to remove directory or its contents: "+j.code,v),I&&I()})},e.removeFile=function(f,I,j){f=u.sanitizeURI(f);var F=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(F,{create:!1},function(le){le.remove(function(){I&&I()},Z)},Z)},e.isBackgroundCached=function(f,I){var j=C.getBackgroundImageURL(f);e.getCachedFile(j,function(F,Z){I(F,null!==Z)})},e.cacheBackground=function(f,I,j,F){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,I,j,F)}},e.useCachedBackground=function(f,I,j){if(C.isImgCacheLoaded()){var F=C.getBackgroundImageURL(f);if(!F)return e.overridables.log("No background to cache",l),void(j&&j());C.loadCachedFile(f,F,function(le,q,X){b.setBackgroundImage(le,'url("'+q+'")'),b.setAttribute(le,w,X)},I,j)}},e.useBackgroundOnlineFile=function(f){if(f){var I=b.getAttribute(f,w);I&&b.setBackgroundImage(f,'url("'+I+'")'),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,Ze,Dt;return Dt=function(){Y=!1,ye&&(Ze.apply(E,ye),ye=!1)},Ze=function(){Y?ye=arguments:(s.apply(E,arguments),setTimeout(Dt,m),Y=!0)},Ze}function b(s,m,E){var Y=m[1],ye=m[0],Ze=Y-ye;return s===Y&&E?s:((s-ye)%Ze+Ze)%Ze+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 I(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 F(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 N(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")||N,xe=window.cancelAnimationFrame||X("CancelAnimationFrame")||X("CancelRequestAnimationFrame")||function(s){window.clearTimeout(s)};function ne(s,m,E){if(!E||me!==N)return me.call(window,l(s,m));s.call(m)}function Qe(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:I,template:F,isArray:Z,indexOf:le,emptyImageUrl:q,requestFn:me,cancelFn:xe,requestAnimFrame:ne,cancelAnimFrame:Qe};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 Je(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 Ze=0,Dt=Y._initHooks.length;Ze<Dt;Ze++)Y._initHooks[Ze].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,Ze=(s=g(s)).length;ye<Ze;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,Ze=0,Dt=s.length;Ze<Dt;Ze++)ye?this._off(s[Ze]):this._off(s[Ze],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,Ze;if(this._events&&(Y=this._events[s])){if(1===arguments.length){if(this._firingCount)for(ye=0,Ze=Y.length;ye<Ze;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 Dt=this._listens(s,m,E);!1!==Dt&&(this._firingCount&&(Y[Dt].fn=C,this._events[s]=Y=Y.slice()),Y.splice(Dt,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 Ze=0,Dt=ye.length;Ze<Dt;Ze++){var Ht=ye[Ze],Zt=Ht.fn;Ht.once&&this.off(s,Zt,Ht.ctx),Zt.call(Ht.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 Ze=this._events&&this._events[s];if(Ze&&Ze.length&&!1!==this._listens(s,ye,E))return!0;if(Y)for(var Dt in this._eventParents)if(this._eventParents[Dt].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,Ze=Y.length;ye<Ze;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,Ze=(s=g(s)).length;ye<Ze;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 Vt=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 Yt(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 Yt?s:new Yt(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=Vt(this.x),this.y=Vt(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()))}},Yt.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 Yt))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 Yt(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 Yt?(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 Ze=s.getSouthWest(),Dt=s.getNorthEast();return new Yt(new lt(Ze.lat-Y,Ze.lng-ye),new lt(Dt.lat-Y,Dt.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,Ze=Math.sin((m.lat-s.lat)*E/2),Dt=Math.sin((m.lng-s.lng)*E/2),Ht=Ze*Ze+Math.cos(Y)*Math.cos(ye)*Dt*Dt,Zt=2*Math.atan2(Math.sqrt(Ht),Math.sqrt(1-Ht));return this.R*Zt}}),W=6378137,z={R:W,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=W*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:z,transformation:function(){var s=.5/(Math.PI*z.R);return Te(s,.5,-s,.5)}()}),pt=e({},Be,{code:"EPSG:900913"});function Pe(s){return document.createElementNS("http://www.w3.org/2000/svg",s)}function Xe(s,m){var Y,ye,Ze,Dt,Ht,Zt,E="";for(Y=0,Ze=s.length;Y<Ze;Y++){for(ye=0,Dt=(Ht=s[Y]).length;ye<Dt;ye++)E+=(ye?"L":"M")+(Zt=Ht[ye]).x+" "+Zt.y;E+=m?se.svg?"z":"x":""}return E||"M0 0"}var ht=document.documentElement.style,ee="ActiveXObject"in window,k=ee&&!document.addEventListener,R="msLaunchUri"in navigator&&!("documentMode"in document),be=It("webkit"),qe=It("android"),Ue=It("android 2")||It("android 3"),fe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ke=qe&&It("Google")&&fe<537&&!("AudioNode"in window),gt=!!window.opera,Tt=!R&&It("chrome"),Bt=It("gecko")&&!be&&!gt&&!ee,st=!Tt&&It("safari"),Nt=It("phantom"),at="OTransition"in ht,Lt=0===navigator.platform.indexOf("Win"),Rt=ee&&"transition"in ht,ai="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Ue,Xt="MozPerspective"in ht,di=!window.L_DISABLE_3D&&(Rt||ai||Xt)&&!at&&!Nt,vt=typeof orientation<"u"||It("mobile"),Ut=vt&&be,Qt=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)}(),Wt=!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:ee,ielt9:k,edge:R,webkit:be,android:qe,android23:Ue,androidStock:ke,opera:gt,chrome:Tt,gecko:Bt,safari:st,phantom:Nt,opera12:at,win:Lt,ie3d:Rt,webkit3d:ai,gecko3d:Xt,any3d:di,mobile:vt,mobileWebkit:Ut,mobileWebkit3d:Qt,msPointer:Ci,pointer:_i,touch:Bi,touchNative:pi,mobileOpera:ze,mobileGecko:ue,retina:re,passiveEvents:Ee,canvas:Re,svg:We,vml:Wt,inlineSvg:xt,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},we=se.msPointer?"MSPointerDown":"pointerdown",Le=se.msPointer?"MSPointerMove":"pointermove",Se=se.msPointer?"MSPointerUp":"pointerup",Ot=se.msPointer?"MSPointerCancel":"pointercancel",Me={touchstart:we,touchmove:Le,touchend:Se,touchcancel:Ot},bt={touchstart:function Yi(s,m){m.MSPOINTER_TYPE_TOUCH&&m.pointerType===m.MSPOINTER_TYPE_TOUCH&&zn(m),ur(s,m)},touchmove:ur,touchend:ur,touchcancel:ur},Pt={},ii=!1;function Ki(s,m,E){return"touchstart"===m&&function vr(){ii||(document.addEventListener(we,nr,!0),document.addEventListener(Le,Lr,!0),document.addEventListener(Se,wr,!0),document.addEventListener(Ot,wr,!0),ii=!0)}(),bt[m]?(E=bt[m].bind(this,E),s.addEventListener(Me[m],E,!1),E):(console.warn("wrong event specified:",m),C)}function nr(s){Pt[s.pointerId]=s}function Lr(s){Pt[s.pointerId]&&(Pt[s.pointerId]=s)}function wr(s){delete Pt[s.pointerId]}function ur(s,m){if(m.pointerType!==(m.MSPOINTER_TYPE_MOUSE||"mouse")){for(var E in m.touches=[],Pt)m.touches.push(Pt[E]);m.changedTouches=[m],s(m)}}var Rn=200;var mt,ni,he,ci,Wi,Xr=Un(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),hr=Un(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),br="webkitTransition"===hr||"OTransition"===hr?hr+"End":"transitionend";function Bn(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 Sn(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function Hn(s){var m=s.parentNode;m&&m.lastChild!==s&&m.appendChild(s)}function _n(s){var m=s.parentNode;m&&m.firstChild!==s&&m.insertBefore(s,m.firstChild)}function tr(s,m){if(void 0!==s.classList)return s.classList.contains(m);var E=zi(s);return E.length>0&&new RegExp("(^|\\s)"+m+"(\\s|$)").test(E)}function wi(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(!tr(s,m)){var Ze=zi(s);Zn(s,(Ze?Ze+" ":"")+m)}}function qi(s,m){void 0!==s.classList?s.classList.remove(m):Zn(s,w((" "+zi(s)+" ").replace(" "+m+" "," ")))}function Zn(s,m){void 0===s.className.baseVal?s.className=m:s.className.baseVal=m}function zi(s){return s.correspondingElement&&(s=s.correspondingElement),void 0===s.className.baseVal?s.className:s.className.baseVal}function Nn(s,m){"opacity"in s.style?s.style.opacity=m:"filter"in s.style&&function Rr(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 Un(s){for(var m=document.documentElement.style,E=0;E<s.length;E++)if(s[E]in m)return s[E];return!1}function Qn(s,m,E){var Y=m||new dt(0,0);s.style[Xr]=(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?Qn(s,m):(s.style.left=m.x+"px",s.style.top=m.y+"px")}function jn(s){return s._leaflet_pos||new dt(0,0)}if("onselectstart"in document)mt=function(){Ri(window,"selectstart",zn)},ni=function(){hn(window,"selectstart",zn)};else{var je=Un(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);mt=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 Ye(){Ri(window,"dragstart",zn)}function At(){hn(window,"dragstart",zn)}function ln(s){for(;-1===s.tabIndex;)s=s.parentNode;s.style&&(en(),ci=s,Wi=s.style.outlineStyle,s.style.outlineStyle="none",Ri(window,"keydown",en))}function en(){ci&&(ci.style.outlineStyle=Wi,ci=void 0,Wi=void 0,hn(window,"keydown",en))}function $n(s){do{s=s.parentNode}while(!(s.offsetWidth&&s.offsetHeight||s===document.body));return s}function Dn(s){var m=s.getBoundingClientRect();return{x:m.width/s.offsetWidth||1,y:m.height/s.offsetHeight||1,boundingClientRect:m}}var Ro={__proto__:null,TRANSFORM:Xr,TRANSITION:hr,TRANSITION_END:br,get:Bn,getStyle:bi,create:gi,remove:ji,empty:Sn,toFront:Hn,toBack:_n,hasClass:tr,addClass:wi,removeClass:qi,setClass:Zn,getClass:zi,setOpacity:Nn,testProp:Un,setTransform:Qn,setPosition:Ei,getPosition:jn,get disableTextSelection(){return mt},get enableTextSelection(){return ni},disableImageDrag:Ye,enableImageDrag:At,preventOutline:ln,restoreOutline:en,getSizedParentNode:$n,getScale:Dn};function Ri(s,m,E,Y){if(m&&"object"==typeof m)for(var ye in m)Vn(s,ye,m[ye],E);else for(var Ze=0,Dt=(m=g(m)).length;Ze<Dt;Ze++)Vn(s,m[Ze],E,Y);return this}var Cn="_leaflet_events";function hn(s,m,E,Y){if(1===arguments.length)pr(s),delete s[Cn];else if(m&&"object"==typeof m)for(var ye in m)so(s,ye,m[ye],E);else if(m=g(m),2===arguments.length)pr(s,function(Ht){return-1!==le(m,Ht)});else for(var Ze=0,Dt=m.length;Ze<Dt;Ze++)so(s,m[Ze],E,Y);return this}function pr(s,m){for(var E in s[Cn]){var Y=E.split(/\d/)[0];(!m||m(Y))&&so(s,Y,null,null,E)}}var Jr={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Vn(s,m,E,Y){var ye=m+d(E)+(Y?"_"+d(Y):"");if(s[Cn]&&s[Cn][ye])return this;var Ze=function(Ht){return E.call(Y||s,Ht||window.event)},Dt=Ze;!se.touchNative&&se.pointer&&0===m.indexOf("touch")?Ze=Ki(s,m,Ze):se.touch&&"dblclick"===m?Ze=function Fn(s,m){s.addEventListener("dblclick",m);var Y,E=0;function ye(Ze){if(1===Ze.detail){if("mouse"!==Ze.pointerType&&(!Ze.sourceCapabilities||Ze.sourceCapabilities.firesTouchEvents)){var Dt=sr(Ze);if(!Dt.some(function(Zt){return Zt instanceof HTMLLabelElement&&Zt.attributes.for})||Dt.some(function(Zt){return Zt instanceof HTMLInputElement||Zt instanceof HTMLSelectElement})){var Ht=Date.now();Ht-E<=Rn?2==++Y&&m(function wn(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}(Ze)):Y=1,E=Ht}}}else Y=Ze.detail}return s.addEventListener("click",ye),{dblclick:m,simDblclick:ye}}(s,Ze):"addEventListener"in s?"touchstart"===m||"touchmove"===m||"wheel"===m||"mousewheel"===m?s.addEventListener(Jr[m]||m,Ze,!!se.passiveEvents&&{passive:!1}):"mouseenter"===m||"mouseleave"===m?s.addEventListener(Jr[m],Ze=function(Ht){Ht=Ht||window.event,eo(s,Ht)&&Dt(Ht)},!1):s.addEventListener(m,Dt,!1):s.attachEvent("on"+m,Ze),s[Cn]=s[Cn]||{},s[Cn][ye]=Ze}function so(s,m,E,Y,ye){ye=ye||m+d(E)+(Y?"_"+d(Y):"");var Ze=s[Cn]&&s[Cn][ye];if(!Ze)return this;!se.touchNative&&se.pointer&&0===m.indexOf("touch")?function On(s,m,E){Me[m]?s.removeEventListener(Me[m],E,!1):console.warn("wrong event specified:",m)}(s,m,Ze):se.touch&&"dblclick"===m?function Mi(s,m){s.removeEventListener("dblclick",m.dblclick),s.removeEventListener("click",m.simDblclick)}(s,Ze):"removeEventListener"in s?s.removeEventListener(Jr[m]||m,Ze,!1):s.detachEvent("on"+m,Ze),s[Cn][ye]=null}function Fr(s){return s.stopPropagation?s.stopPropagation():s.originalEvent?s.originalEvent._stopped=!0:s.cancelBubble=!0,this}function $r(s){return Vn(s,"wheel",Fr),this}function Ir(s){return Ri(s,"mousedown touchstart dblclick contextmenu",Fr),s._leaflet_disable_click=!0,this}function zn(s){return s.preventDefault?s.preventDefault():s.returnValue=!1,this}function Sr(s){return zn(s),Fr(s),this}function sr(s){if(s.composedPath)return s.composedPath();for(var m=[],E=s.target;E;)m.push(E),E=E.parentNode;return m}function Br(s,m){if(!m)return new dt(s.clientX,s.clientY);var E=Dn(m),Y=E.boundingClientRect;return new dt((s.clientX-Y.left)/E.x-m.clientLeft,(s.clientY-Y.top)/E.y-m.clientTop)}var fr=se.linux&&se.chrome?window.devicePixelRatio:se.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function qr(s){return se.edge?s.wheelDeltaY/2:s.deltaY&&0===s.deltaMode?-s.deltaY/fr: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 eo(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 Dr={__proto__:null,on:Ri,off:hn,stopPropagation:Fr,disableScrollPropagation:$r,disableClickPropagation:Ir,preventDefault:zn,stop:Sr,getPropagationPath:sr,getMousePosition:Br,getWheelDelta:qr,isExternalTarget:eo,addListener:Ri,removeListener:hn},Ao=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=jn(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(){Qe(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=hr&&se.any3d&&!se.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ri(this._proxy,br,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),Dt=(s instanceof dt?s:this.latLngToContainerPoint(s)).subtract(ye).multiplyBy(1-1/Y),Ht=this.containerPointToLatLng(ye.add(Dt));return this.setView(Ht,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 Ze=Y.subtract(E).divideBy(2),Dt=this.project(s.getSouthWest(),ye),Ht=this.project(s.getNorthEast(),ye);return{center:this.unproject(Dt.add(Ht).divideBy(2).add(Ze),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 Ao,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),m.noMoveStart||this.fire("movestart"),!1!==m.animate){wi(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),Ze=this.getSize(),Dt=this._zoom;s=_t(s),m=void 0===m?Dt:m;var Ht=Math.max(Ze.x,Ze.y),Zt=Ht*this.getZoomScale(Dt,m),hi=ye.distanceTo(Y)||1,Ai=1.42,$i=Ai*Ai;function fn(mr){var Ps=(Zt*Zt-Ht*Ht+(mr?-1:1)*$i*$i*hi*hi)/(2*(mr?Zt:Ht)*$i*hi),Ca=Math.sqrt(Ps*Ps+1)-Ps;return Ca<1e-9?-18:Math.log(Ca)}function Zr(mr){return(Math.exp(mr)-Math.exp(-mr))/2}function cr(mr){return(Math.exp(mr)+Math.exp(-mr))/2}var no=fn(0);function ss(mr){return Ht*(cr(no)*function io(mr){return Zr(mr)/cr(mr)}(no+Ai*mr)-Zr(no))/$i}var ua=Date.now(),fs=(fn(1)-no)/Ai,as=E.duration?1e3*E.duration:1e3*fs*.8;return this._moveStart(!0,E.noMoveStart),function Vr(){var mr=(Date.now()-ua)/as,qo=function Ts(mr){return 1-Math.pow(1-mr,1.5)}(mr)*fs;mr<=1?(this._flyToFrame=ne(Vr,this),this._move(this.unproject(Y.add(ye.subtract(Y).multiplyBy(ss(qo)/hi)),Dt),this.getScaleZoom(Ht/function os(mr){return Ht*(cr(no)/cr(no+Ai*mr))}(qo),Dt),{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()),Ze=this.project(s),Dt=this.getPixelBounds(),Ht=mi([Dt.min.add(E),Dt.max.subtract(Y)]),Zt=Ht.getSize();if(!Ht.contains(Ze)){this._enforcingBounds=!0;var hi=Ze.subtract(Ht.getCenter()),Ai=Ht.extend(Ze).getSize().subtract(Zt);ye.x+=hi.x<0?-Ai.x:Ai.x,ye.y+=hi.y<0?-Ai.y:Ai.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(),Ze=Y.subtract(ye);return Ze.x||Ze.y?(s.animate&&s.pan?this.panBy(Ze):(s.pan&&this._rawPanBy(Ze),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),Ze=this._locateOptions;if(Ze.setView){var Dt=this.getBoundsZoom(ye);this.setView(Y,Ze.maxZoom?Math.min(Dt,Ze.maxZoom):Dt)}var Ht={latlng:Y,bounds:ye,timestamp:s.timestamp};for(var Zt in s.coords)"number"==typeof s.coords[Zt]&&(Ht[Zt]=s.coords[Zt]);this.fire("locationfound",Ht)}},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&&(Qe(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 Yt(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(),Ze=this.getMaxZoom(),Dt=s.getNorthWest(),Ht=s.getSouthEast(),Zt=this.getSize().subtract(E),hi=mi(this.project(Ht,Y),this.project(Dt,Y)).getSize(),Ai=se.any3d?this.options.zoomSnap:1,$i=Zt.x/hi.x,fn=Zt.y/hi.y,Zr=m?Math.max($i,fn):Math.min($i,fn);return Y=this.getScaleZoom(Zr,Y),Ai&&(Y=Math.round(Y/(Ai/100))*(Ai/100),Y=m?Math.ceil(Y/Ai)*Ai:Math.floor(Y/Ai)*Ai),Math.max(ye,Math.min(Ze,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 Br(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=Bn(s);if(!m)throw new Error("Map container not found.");if(m._leaflet_id)throw new Error("Map container is already initialized.");Ri(m,"scroll",this._onScroll,this),this._containerId=d(m)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&se.any3d,wi(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||(wi(s.markerPane,"leaflet-zoom-hide"),wi(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 Qe(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?hn:Ri;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(){Qe(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,Ze=s.target||s.srcElement,Dt=!1;Ze;){if((Y=this._targets[d(Ze)])&&("click"===m||"preclick"===m)&&this._draggableMoved(Y)){Dt=!0;break}if(Y&&Y.listens(m,!0)&&(ye&&!eo(Ze,s)||(E.push(Y),ye))||Ze===this._container)break;Ze=Ze.parentNode}return!E.length&&!Dt&&!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&&ln(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 Ze=[],Dt=0;Dt<E.length;Dt++)E[Dt].listens(m,!0)&&Ze.push(E[Dt]);ye=Ze.concat(ye)}if(ye.length){"contextmenu"===m&&zn(s);var Ht=ye[0],Zt={originalEvent:s};if("keypress"!==s.type&&"keydown"!==s.type&&"keyup"!==s.type){var hi=Ht.getLatLng&&(!Ht._radius||Ht._radius<=10);Zt.containerPoint=hi?this.latLngToContainerPoint(Ht.getLatLng()):this.mouseEventToContainerPoint(s),Zt.layerPoint=this.containerPointToLayerPoint(Zt.containerPoint),Zt.latlng=hi?Ht.getLatLng():this.layerPointToLatLng(Zt.layerPoint)}for(Dt=0;Dt<ye.length;Dt++)if(ye[Dt].fire(m,Zt,!0),Zt.originalEvent._stopped||!1===ye[Dt].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 jn(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),Ze=new ti(Y.subtract(ye),Y.add(ye)),Dt=this._getBoundsOffset(Ze,E,m);return Math.abs(Dt.x)<=1&&Math.abs(Dt.y)<=1?s:this.unproject(Y.add(Dt),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),Ze=Y.max.subtract(s.max);return new dt(this._rebound(ye.x,-Ze.x),this._rebound(ye.y,-Ze.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=Xr,Y=this._proxy.style[E];Qn(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();Qn(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,wi(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 ir=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 wi(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()}}),gr=function(s){return new ir(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,Ze){s[ye+Ze]=gi("div",m+ye+" "+m+Ze,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 Kr=ir.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 ir.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(){wi(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?(wi(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),Ir(m),$r(m);var Y=this._section=gi("section",s+"-list");E&&(this._map.on("click",this.collapse,this),Ri(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"),Ri(ye,{keydown:function(Ze){13===Ze.keyCode&&this._expandSafely()},click:function(Ze){zn(Ze),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;Sn(this._baseLayersList),Sn(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),Ri(Y,"click",this._onInputClick,this);var ye=document.createElement("span");ye.innerHTML=" "+s.name;var Ze=document.createElement("span");return m.appendChild(Ze),Ze.appendChild(Y),Ze.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 Ze=s.length-1;Ze>=0;Ze--)E=this._getLayer((m=s[Ze]).layerId).layer,m.checked?Y.push(E):m.checked||ye.push(E);for(Ze=0;Ze<ye.length;Ze++)this._map.hasLayer(ye[Ze])&&this._map.removeLayer(ye[Ze]);for(Ze=0;Ze<Y.length;Ze++)this._map.hasLayer(Y[Ze])||this._map.addLayer(Y[Ze]);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,Ri(s,"click",zn),this.expand();var m=this;setTimeout(function(){hn(s,"click",zn),m._preventClick=!1})}}),xo=ir.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 Ze=gi("a",E,Y);return Ze.innerHTML=s,Ze.href="#",Ze.title=m,Ze.setAttribute("role","button"),Ze.setAttribute("aria-label",m),Ir(Ze),Ri(Ze,"click",Sr),Ri(Ze,"click",ye,this),Ri(Ze,"click",this._refocusOnMap,this),Ze},_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())&&(wi(this._zoomOutButton,m),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(wi(this._zoomInButton,m),this._zoomInButton.setAttribute("aria-disabled","true"))}});an.mergeOptions({zoomControl:!0}),an.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new xo,this.addControl(this.zoomControl))});var Tr=ir.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)}}),Nr=ir.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"),Ir(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 Nr).addTo(this)});ir.Layers=Kr,ir.Zoom=xo,ir.Scale=Tr,ir.Attribution=Nr,gr.layers=function(s,m,E){return new Kr(s,m,E)},gr.zoom=function(s){return new xo(s)},gr.scale=function(s){return new Tr(s)},gr.attribution=function(s){return new Nr(s)};var ar=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}});ar.addTo=function(s,m){return s.addHandler(m,this),this};var lo={Events:ct},po=se.touch?"touchstart mousedown":"mousedown",rr=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||(Ri(this._dragStartTarget,po,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(rr._dragging===this&&this.finishDrag(!0),hn(this._dragStartTarget,po,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!tr(this._element,"leaflet-zoom-anim"))){if(s.touches&&1!==s.touches.length)return void(rr._dragging===this&&this.finishDrag());if(!(rr._dragging||s.shiftKey||1!==s.which&&1!==s.button&&!s.touches||(rr._dragging=this,this._preventOutline&&ln(this._element),Ye(),mt(),this._moving))){this.fire("down");var m=s.touches?s.touches[0]:s,E=$n(this._element);this._startPoint=new dt(m.clientX,m.clientY),this._startPos=jn(this._element),this._parentScale=Dn(E);var Y="mousedown"===s.type;Ri(document,Y?"mousemove":"touchmove",this._onMove,this),Ri(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,zn(s),this._moved||(this.fire("dragstart"),this._moved=!0,wi(document.body,"leaflet-dragging"),this._lastTarget=s.target||s.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),wi(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),hn(document,"mousemove touchmove",this._onMove,this),hn(document,"mouseup touchend touchcancel",this._onUp,this),At(),ni();var m=this._moved&&this._moving;this._moving=!1,rr._dragging=!1,m&&this.fire("dragend",{noInertia:s,distance:this._newPos.distanceTo(this._startPos)})}});function yr(s,m,E){var Y,Ze,Dt,Ht,Zt,hi,Ai,$i,fn,ye=[1,4,2,8];for(Ze=0,Ai=s.length;Ze<Ai;Ze++)s[Ze]._code=ri(s[Ze],m);for(Ht=0;Ht<4;Ht++){for($i=ye[Ht],Y=[],Ze=0,Dt=(Ai=s.length)-1;Ze<Ai;Dt=Ze++)hi=s[Dt],(Zt=s[Ze])._code&$i?hi._code&$i||((fn=St(hi,Zt,$i,m,E))._code=ri(fn,m),Y.push(fn)):(hi._code&$i&&((fn=St(hi,Zt,$i,m,E))._code=ri(fn,m),Y.push(fn)),Y.push(Zt));s=Y}return s}function to(s,m){var E,Y,ye,Ze,Dt,Ht,Zt,hi;if(!s||0===s.length)throw new Error("latlngs not passed");oi(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var $i=_t([0,0]),fn=Jt(s);fn.getNorthWest().distanceTo(fn.getSouthWest())*fn.getNorthEast().distanceTo(fn.getNorthWest())<1700&&($i=Yn(s));var cr=s.length,io=[];for(E=0;E<cr;E++){var no=_t(s[E]);io.push(m.project(_t([no.lat-$i.lat,no.lng-$i.lng])))}for(Ht=Zt=hi=0,E=0,Y=cr-1;E<cr;Y=E++)Zt+=((ye=io[E]).x+(Ze=io[Y]).x)*(Dt=ye.y*Ze.x-Ze.y*ye.x),hi+=(ye.y+Ze.y)*Dt,Ht+=3*Dt;var os=m.unproject(zt(0===Ht?io[0]:[Zt/Ht,hi/Ht]));return _t([os.lat+$i.lat,os.lng+$i.lng])}function Yn(s){for(var m=0,E=0,Y=0,ye=0;ye<s.length;ye++){var Ze=_t(s[ye]);m+=Ze.lat,E+=Ze.lng,Y++}return _t([m/Y,E/Y])}var _e,Bo={__proto__:null,clipPolygon:yr,polygonCenter:to,centroid:Yn};function mn(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 Ze,Dt=[];for(Ze=0;Ze<E;Ze++)ye[Ze]&&Dt.push(s[Ze]);return Dt}(s=function ae(s,m){for(var E=[s[0]],Y=1,ye=0,Ze=s.length;Y<Ze;Y++)xi(s[Y],s[ye])>m&&(E.push(s[Y]),ye=Y);return ye<Ze-1&&E.push(s[Ze-1]),E}(s,E),E)}function Kn(s,m,E){return Math.sqrt(Si(s,m,E,!0))}function D(s,m,E,Y,ye){var Dt,Ht,Zt,Ze=0;for(Ht=Y+1;Ht<=ye-1;Ht++)(Zt=Si(s[Ht],s[Y],s[ye],!0))>Ze&&(Dt=Ht,Ze=Zt);Ze>E&&(m[Dt]=1,D(s,m,E,Y,Dt),D(s,m,E,Dt,ye))}function tt(s,m,E,Y,ye){var Ht,Zt,hi,Ze=Y?_e:ri(s,E),Dt=ri(m,E);for(_e=Dt;;){if(!(Ze|Dt))return[s,m];if(Ze&Dt)return!1;hi=ri(Zt=St(s,m,Ht=Ze||Dt,E,ye),E),Ht===Ze?(s=Zt,Ze=hi):(m=Zt,Dt=hi)}}function St(s,m,E,Y,ye){var hi,Ai,Ze=m.x-s.x,Dt=m.y-s.y,Ht=Y.min,Zt=Y.max;return 8&E?(hi=s.x+Ze*(Zt.y-s.y)/Dt,Ai=Zt.y):4&E?(hi=s.x+Ze*(Ht.y-s.y)/Dt,Ai=Ht.y):2&E?(hi=Zt.x,Ai=s.y+Dt*(Zt.x-s.x)/Ze):1&E&&(hi=Ht.x,Ai=s.y+Dt*(Ht.x-s.x)/Ze),new dt(hi,Ai,ye)}function ri(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 Si(s,m,E,Y){var hi,ye=m.x,Ze=m.y,Dt=E.x-ye,Ht=E.y-Ze,Zt=Dt*Dt+Ht*Ht;return Zt>0&&((hi=((s.x-ye)*Dt+(s.y-Ze)*Ht)/Zt)>1?(ye=E.x,Ze=E.y):hi>0&&(ye+=Dt*hi,Ze+=Ht*hi)),Dt=s.x-ye,Ht=s.y-Ze,Y?Dt*Dt+Ht*Ht:new dt(ye,Ze)}function oi(s){return!Z(s[0])||"object"!=typeof s[0][0]&&typeof s[0][0]<"u"}function bn(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),oi(s)}function Gn(s,m){var E,Y,ye,Ze,Dt,Ht,Zt,hi;if(!s||0===s.length)throw new Error("latlngs not passed");oi(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var Ai=_t([0,0]),$i=Jt(s);$i.getNorthWest().distanceTo($i.getSouthWest())*$i.getNorthEast().distanceTo($i.getNorthWest())<1700&&(Ai=Yn(s));var Zr=s.length,cr=[];for(E=0;E<Zr;E++){var io=_t(s[E]);cr.push(m.project(_t([io.lat-Ai.lat,io.lng-Ai.lng])))}for(E=0,Y=0;E<Zr-1;E++)Y+=cr[E].distanceTo(cr[E+1])/2;if(0===Y)hi=cr[0];else for(E=0,Ze=0;E<Zr-1;E++)if((Ze+=ye=(Dt=cr[E]).distanceTo(Ht=cr[E+1]))>Y){hi=[Ht.x-(Zt=(Ze-Y)/ye)*(Ht.x-Dt.x),Ht.y-Zt*(Ht.y-Dt.y)];break}var no=m.unproject(zt(hi));return _t([no.lat+Ai.lat,no.lng+Ai.lng])}var Vi={__proto__:null,simplify:mn,pointToSegmentDistance:Kn,closestPointOnSegment:function rt(s,m,E){return Si(s,m,E)},clipSegment:tt,_getEdgeIntersection:St,_getBitCode:ri,_sqClosestPointOnSegment:Si,isFlat:oi,_flat:bn,polylineCenter:Gn},co={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,Ze=Math.sqrt(1-ye*ye),Dt=Ze*Math.sin(Y),Ht=Math.tan(Math.PI/4-Y/2)/Math.pow((1-Dt)/(1+Dt),Ze/2);return Y=-E*Math.log(Math.max(Ht,1e-10)),new dt(s.lng*m*E,Y)},unproject:function(s){for(var hi,m=180/Math.PI,E=this.R,Y=this.R_MINOR/E,ye=Math.sqrt(1-Y*Y),Ze=Math.exp(-s.y/E),Dt=Math.PI/2-2*Math.atan(Ze),Ht=0,Zt=.1;Ht<15&&Math.abs(Zt)>1e-7;Ht++)hi=ye*Math.sin(Dt),hi=Math.pow((1-hi)/(1+hi),ye/2),Dt+=Zt=Math.PI/2-2*Math.atan(Ze*hi)-Dt;return new lt(Dt*m,s.x*m/E)}},pe={__proto__:null,LonLat:co,Mercator:ve,SphericalMercator:z},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:co,transformation:Te(1/180,1,-1/180,.5)}),B=e({},Fe,{projection:co,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=pt,Fe.EPSG4326=J,Fe.Simple=B;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 Ke=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)}}),ft=Ke.extend({addLayer:function(s){return this.hasLayer(s)?this:(s.addEventParent(this),Ke.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),Ke.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 Yt;for(var m in this._layers){var E=this._layers[m];s.extend(E.getBounds?E.getBounds():E.getLatLng())}return s}}),Oi=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),Ze=zt("shadow"===m&&E.shadowAnchor||E.iconAnchor||ye&&ye.divideBy(2,!0));s.className="leaflet-marker-"+m+" "+(E.className||""),Ze&&(s.style.marginLeft=-Ze.x+"px",s.style.marginTop=-Ze.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 ui=Oi.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 ui.imagePath&&(ui.imagePath=this._detectIconPath()),(this.options.imagePath||ui.imagePath)+Oi.prototype._getIconUrl.call(this,s)},_stripUrl:function(s){var m=function(E,Y,ye){var Ze=Y.exec(E);return Ze&&Ze[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=ar.extend({initialize:function(s){this._marker=s},addHooks:function(){var s=this._marker._icon;this._draggable||(this._draggable=new rr(s,s,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),wi(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,Ze=jn(m._icon),Dt=E.getPixelBounds(),Ht=E.getPixelOrigin(),Zt=mi(Dt.min._subtract(Ht).add(ye),Dt.max._subtract(Ht).subtract(ye));if(!Zt.contains(Ze)){var hi=zt((Math.max(Zt.max.x,Ze.x)-Zt.max.x)/(Dt.max.x-Zt.max.x)-(Math.min(Zt.min.x,Ze.x)-Zt.min.x)/(Dt.min.x-Zt.min.x),(Math.max(Zt.max.y,Ze.y)-Zt.max.y)/(Dt.max.y-Zt.max.y)-(Math.min(Zt.min.y,Ze.y)-Zt.min.y)/(Dt.min.y-Zt.min.y)).multiplyBy(Y);E.panBy(hi,{animate:!1}),this._draggable._newPos._add(hi),this._draggable._startPos._add(hi),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&&(Qe(this._panRequest),this._panRequest=ne(this._adjustPan.bind(this,s)))},_onDrag:function(s){var m=this._marker,E=m._shadow,Y=jn(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){Qe(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",s)}}),vn=de.extend({options:{icon:new ui,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||"")),wi(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&&Ri(E,"focus",this._panOnFocus,this);var ye=s.icon.createShadow(this._shadow),Ze=!1;ye!==this._shadow&&(this._removeShadow(),Ze=!0),ye&&(wi(ye,m),ye.alt=""),this._shadow=ye,s.opacity<1&&this._updateOpacity(),Y&&this.getPane().appendChild(this._icon),this._initInteraction(),ye&&Ze&&this.getPane(s.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&hn(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&&(wi(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&&Nn(this._icon,s),this._shadow&&Nn(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 Ti=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=Ti.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 Ti.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 _r=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 Yt(this._map.layerPointToLatLng(this._point.subtract(s)),this._map.layerPointToLatLng(this._point.add(s)))},setStyle:Ti.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,Ze=this._mRadius/Ae.R/ye,Dt=E.project([m+Ze,s]),Ht=E.project([m-Ze,s]),Zt=Dt.add(Ht).divideBy(2),hi=E.unproject(Zt).lat,Ai=Math.acos((Math.cos(Ze*ye)-Math.sin(m*ye)*Math.sin(hi*ye))/(Math.cos(m*ye)*Math.cos(hi*ye)))/ye;(isNaN(Ai)||0===Ai)&&(Ai=Ze/Math.cos(Math.PI/180*m)),this._point=Zt.subtract(E.getPixelOrigin()),this._radius=isNaN(Ai)?0:Zt.x-E.project([hi,s-Ai]).x,this._radiusY=Zt.y-Dt.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 Wn=Ti.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,Ze,m=1/0,E=null,Y=Si,Dt=0,Ht=this._parts.length;Dt<Ht;Dt++)for(var Zt=this._parts[Dt],hi=1,Ai=Zt.length;hi<Ai;hi++){var $i=Y(s,ye=Zt[hi-1],Ze=Zt[hi],!0);$i<m&&(m=$i,E=Y(s,ye,Ze))}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 Yt,this._latlngs=this._convertLatLngs(s)},_defaultShape:function(){return oi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(s){for(var m=[],E=oi(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 Ze,Dt,ye=s.length;if(s[0]instanceof lt){for(Dt=[],Ze=0;Ze<ye;Ze++)Dt[Ze]=this._map.latLngToLayerPoint(s[Ze]),E.extend(Dt[Ze]);m.push(Dt)}else for(Ze=0;Ze<ye;Ze++)this._projectLatlngs(s[Ze],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,Ze,Dt,Ht,Zt,m=this._parts;for(E=0,ye=0,Ze=this._rings.length;E<Ze;E++)for(Y=0,Dt=(Zt=this._rings[E]).length;Y<Dt-1;Y++)(Ht=tt(Zt[Y],Zt[Y+1],s,Y,!0))&&(m[ye]=m[ye]||[],m[ye].push(Ht[0]),(Ht[1]!==Zt[Y+1]||Y===Dt-2)&&(m[ye].push(Ht[1]),ye++))}},_simplifyPoints:function(){for(var s=this._parts,m=this.options.smoothFactor,E=0,Y=s.length;E<Y;E++)s[E]=mn(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,Ze,Dt,Ht,Zt=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(E=0,Ze=this._parts.length;E<Ze;E++)for(Y=0,ye=(Dt=(Ht=this._parts[E]).length)-1;Y<Dt;ye=Y++)if((m||0!==Y)&&Kn(s,Ht[ye],Ht[Y])<=Zt)return!0;return!1}});Wn._flat=bn;var Ur=Wn.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 to(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(s){var m=Wn.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){Wn.prototype._setLatLngs.call(this,s),oi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return oi(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 Ze,Y=0,ye=this._rings.length;Y<ye;Y++)(Ze=yr(this._rings[Y],s,!0)).length&&this._parts.push(Ze)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(s){var E,Y,ye,Ze,Dt,Ht,Zt,hi,m=!1;if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(Ze=0,Zt=this._parts.length;Ze<Zt;Ze++)for(Dt=0,Ht=(hi=(E=this._parts[Ze]).length)-1;Dt<hi;Ht=Dt++)(Y=E[Dt]).y>s.y!=(ye=E[Ht]).y>s.y&&s.x<(ye.x-Y.x)*(s.y-Y.y)/(ye.y-Y.y)+Y.x&&(m=!m);return m||Wn.prototype._containsPoint.call(this,s,!0)}});var fo=ft.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 Ze=this.options;if(Ze.filter&&!Ze.filter(s))return this;var Dt=No(s,Ze);return Dt?(Dt.feature=Go(s),Dt.defaultOptions=Dt.options,this.resetStyle(Dt),Ze.onEachFeature&&Ze.onEachFeature(s,Dt),this.addLayer(Dt)):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 No(s,m){var Ht,Zt,hi,Ai,E="Feature"===s.type?s.geometry:s,Y=E?E.coordinates:null,ye=[],Ze=m&&m.pointToLayer,Dt=m&&m.coordsToLatLng||ns;if(!Y&&!E)return null;switch(E.type){case"Point":return ms(Ze,s,Ht=Dt(Y),m);case"MultiPoint":for(hi=0,Ai=Y.length;hi<Ai;hi++)Ht=Dt(Y[hi]),ye.push(ms(Ze,s,Ht,m));return new ft(ye);case"LineString":case"MultiLineString":return Zt=xr(Y,"LineString"===E.type?0:1,Dt),new Wn(Zt,m);case"Polygon":case"MultiPolygon":return Zt=xr(Y,"Polygon"===E.type?1:2,Dt),new Ur(Zt,m);case"GeometryCollection":for(hi=0,Ai=E.geometries.length;hi<Ai;hi++){var $i=No({geometry:E.geometries[hi],type:"Feature",properties:s.properties},m);$i&&ye.push($i)}return new ft(ye);case"FeatureCollection":for(hi=0,Ai=E.features.length;hi<Ai;hi++){var fn=No(E.features[hi],m);fn&&ye.push(fn)}return new ft(ye);default:throw new Error("Invalid GeoJSON object.")}}function ms(s,m,E,Y){return s?s(m,E):new vn(E,Y&&Y.markersInheritOptions&&Y)}function ns(s){return new lt(s[1],s[0],s[2])}function xr(s,m,E){for(var Dt,Y=[],ye=0,Ze=s.length;ye<Ze;ye++)Dt=m?xr(s[ye],m-1,E):(E||ns)(s[ye]),Y.push(Dt);return Y}function Uo(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 jo(s,m,E,Y){for(var ye=[],Ze=0,Dt=s.length;Ze<Dt;Ze++)ye.push(m?jo(s[Ze],oi(s[Ze])?0:m-1,E,Y):Uo(s[Ze],Y));return!m&&E&&ye.length>0&&ye.push(ye[0].slice()),ye}function go(s,m){return s.feature?e({},s.feature,{geometry:m}):Go(m)}function Go(s){return"Feature"===s.type||"FeatureCollection"===s.type?s:{type:"Feature",properties:{},geometry:s}}var wo={toGeoJSON:function(s){return go(this,{type:"Point",coordinates:Uo(this.getLatLng(),s)})}};function Xo(s,m){return new fo(s,m)}vn.include(wo),_r.include(wo),Qi.include(wo),Wn.include({toGeoJSON:function(s){var m=!oi(this._latlngs);return go(this,{type:(m?"Multi":"")+"LineString",coordinates:jo(this._latlngs,m?1:0,!1,s)})}}),Ur.include({toGeoJSON:function(s){var m=!oi(this._latlngs),E=m&&!oi(this._latlngs[0]),Y=jo(this._latlngs,E?2:m?1:0,!0,s);return m||(Y=[Y]),go(this,{type:(E?"Multi":"")+"Polygon",coordinates:Y})}}),Ke.include({toMultiPoint:function(s){var m=[];return this.eachLayer(function(E){m.push(E.toGeoJSON(s).geometry.coordinates)}),go(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 Ze=ye.toGeoJSON(s);if(E)Y.push(Ze.geometry);else{var Dt=Go(Ze);"FeatureCollection"===Dt.type?Y.push.apply(Y,Dt.features):Y.push(Dt)}}}),E?go(this,{geometries:Y,type:"GeometryCollection"}):{type:"FeatureCollection",features:Y}}});var ea=Xo,Io=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&&(wi(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&&Hn(this._image),this},bringToBack:function(){return this._map&&_n(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");wi(m,"leaflet-image-layer"),this._zoomAnimated&&wi(m,"leaflet-zoom-animated"),this.options.className&&wi(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;Qn(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(){Nn(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()}}),js=Io.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(wi(m,"leaflet-image-layer"),this._zoomAnimated&&wi(m,"leaflet-zoom-animated"),this.options.className&&wi(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 Ze=0;Ze<this._url.length;Ze++){var Dt=gi("source");Dt.src=this._url[Ze],m.appendChild(Dt)}}}});var Is=Io.extend({_initImage:function(){var s=this._image=this._url;wi(s,"leaflet-image-layer"),this._zoomAnimated&&wi(s,"leaflet-zoom-animated"),this.options.className&&wi(s,this.options.className),s.onselectstart=C,s.onmousemove=C}});var Tn=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&&Nn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),s._fadeAnimated&&Nn(this._container,1),this.bringToFront(),this.options.interactive&&(wi(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(s){s._fadeAnimated?(Nn(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&&Hn(this._container),this},bringToBack:function(){return this._map&&_n(this._container),this},_prepareOpen:function(s){var m=this._source;if(!m._map)return!1;if(m instanceof ft){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 uo=Tn.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,Tn.prototype.openOn.call(this,s)},onAdd:function(s){Tn.prototype.onAdd.call(this,s),s.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ti||this._source.on("preclick",Fr))},onRemove:function(s){Tn.prototype.onRemove.call(this,s),s.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ti||this._source.off("preclick",Fr))},getEvents:function(){var s=Tn.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),Ir(m),$r(this._contentNode),Ri(m,"contextmenu",Fr),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>',Ri(Y,"click",function(ye){zn(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,Ze="leaflet-popup-scrolled";ye&&s.offsetHeight>ye?(m.height=ye+"px",wi(s,Ze)):qi(s,Ze),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(jn(this._container));var Ze=s.layerPointToContainerPoint(ye),Dt=zt(this.options.autoPanPadding),Ht=zt(this.options.autoPanPaddingTopLeft||Dt),Zt=zt(this.options.autoPanPaddingBottomRight||Dt),hi=s.getSize(),Ai=0,$i=0;Ze.x+Y+Zt.x>hi.x&&(Ai=Ze.x+Y-hi.x+Zt.x),Ze.x-Ai-Ht.x<0&&(Ai=Ze.x-Ht.x),Ze.y+E+Zt.y>hi.y&&($i=Ze.y+E-hi.y+Zt.y),Ze.y-$i-Ht.y<0&&($i=Ze.y-Ht.y),(Ai||$i)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([Ai,$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(uo,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(uo,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 ft||(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){Sr(s);var m=s.layer||s.target;if(this._popup._source===m&&!(m instanceof Ti))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 So=Tn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){Tn.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){Tn.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=Tn.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,Ze=Y.latLngToContainerPoint(Y.getCenter()),Dt=Y.layerPointToContainerPoint(s),Ht=this.options.direction,Zt=ye.offsetWidth,hi=ye.offsetHeight,Ai=zt(this.options.offset),$i=this._getAnchor();"top"===Ht?(m=Zt/2,E=hi):"bottom"===Ht?(m=Zt/2,E=0):"center"===Ht?(m=Zt/2,E=hi/2):"right"===Ht?(m=0,E=hi/2):"left"===Ht?(m=Zt,E=hi/2):Dt.x<Ze.x?(Ht="right",m=0,E=hi/2):(Ht="left",m=Zt+2*(Ai.x+$i.x),E=hi/2),s=s.subtract(zt(m,E,!0)).add(Ai).add($i),qi(ye,"leaflet-tooltip-right"),qi(ye,"leaflet-tooltip-left"),qi(ye,"leaflet-tooltip-top"),qi(ye,"leaflet-tooltip-bottom"),wi(ye,"leaflet-tooltip-"+Ht),Ei(ye,s)},_updatePosition:function(){var s=this._map.latLngToLayerPoint(this._latlng);this._setPosition(s)},setOpacity:function(s){this.options.opacity=s,this._container&&Nn(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(So,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(So,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 ft||(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&&(Ri(m,"focus",function(){this._tooltip._source=s,this.openTooltip()},this),Ri(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 Ss=Oi.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?(Sn(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}});Oi.Default=ui;var Jo=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&&(Hn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(_n(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 Ze,m=this.getPane().children,E=-s(-1/0,1/0),Y=0,ye=m.length;Y<ye;Y++)Ze=m[Y].style.zIndex,m[Y]!==this._container&&Ze&&(E=s(E,+Ze));isFinite(E)&&(this.options.zIndex=E+s(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!se.ielt9){Nn(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 Ze=Math.min(1,(s-ye.loaded)/200);Nn(ye.el,Ze),Ze<1?m=!0:(ye.active?E=!0:this._onOpaqueTile(ye),ye.active=!0)}}E&&!this._noPrune&&this._pruneTiles(),m&&(Qe(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),Ze=Math.floor(m/2),Dt=E-1,Ht=new dt(+ye,+Ze);Ht.z=+Dt;var Zt=this._tileCoordsToKey(Ht),hi=this._tiles[Zt];return hi&&hi.active?(hi.retain=!0,!0):(hi&&hi.loaded&&(hi.retain=!0),Dt>Y&&this._retainParent(ye,Ze,Dt,Y))},_retainChildren:function(s,m,E,Y){for(var ye=2*s;ye<2*s+2;ye++)for(var Ze=2*m;Ze<2*m+2;Ze++){var Dt=new dt(ye,Ze);Dt.z=E+1;var Ht=this._tileCoordsToKey(Dt),Zt=this._tiles[Ht];Zt&&Zt.active?Zt.retain=!0:(Zt&&Zt.loaded&&(Zt.retain=!0),E+1<Y&&this._retainChildren(ye,Ze,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?Qn(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(),Ze=m.getSize().divideBy(2*Y);return new ti(ye.subtract(Ze),ye.add(Ze))},_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),Ze=ye.getCenter(),Dt=[],Ht=this.options.keepBuffer,Zt=new ti(ye.getBottomLeft().subtract([Ht,-Ht]),ye.getTopRight().add([Ht,-Ht]));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 hi in this._tiles){var Ai=this._tiles[hi].coords;(Ai.z!==this._tileZoom||!Zt.contains(new dt(Ai.x,Ai.y)))&&(this._tiles[hi].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 fn=ye.min.x;fn<=ye.max.x;fn++){var Zr=new dt(fn,$i);if(Zr.z=this._tileZoom,this._isValidTile(Zr)){var cr=this._tiles[this._tileCoordsToKey(Zr)];cr?cr.current=!0:Dt.push(Zr)}}if(Dt.sort(function(no,os){return no.distanceTo(Ze)-os.distanceTo(Ze)}),0!==Dt.length){this._loading||(this._loading=!0,this.fire("loading"));var io=document.createDocumentFragment();for(fn=0;fn<Dt.length;fn++)this._addTile(Dt[fn],io);this._level.el.appendChild(io)}}}},_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 Yt(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){wi(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&&Nn(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?(Nn(E.el,0),Qe(this._fadeFrame),this._fadeFrame=ne(this._updateOpacity,this)):(E.active=!0,this._pruneTiles()),m||(wi(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 _o=Jo.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 Ri(E,"load",l(this._tileOnLoad,this,m,E)),Ri(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 F(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),Jo.prototype._removeTile.call(this,s)},_tileReady:function(s,m,E){if(this._map&&(!E||E.getAttribute("src")!==q))return Jo.prototype._tileReady.call(this,s,m,E)}});function Vo(s,m){return new _o(s,m)}var rs=_o.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,Ze=this.getTileSize();E.width=Ze.x*ye,E.height=Ze.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,_o.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,Ze=Y.max,Dt=(this._wmsVersion>=1.3&&this._crs===J?[ye.y,ye.x,Ze.y,Ze.x]:[ye.x,ye.y,Ze.x,Ze.y]).join(","),Ht=_o.prototype.getTileUrl.call(this,s);return Ht+I(this.wmsParams,Ht,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Dt},setParams:function(s,m){return e(this.wmsParams,s),m||this.redraw(),this}});_o.WMS=rs,Vo.wms=function te(s,m){return new rs(s,m)};var Ie=de.extend({options:{padding:.1},initialize:function(s){f(this,s),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),wi(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),Ze=Y.multiplyBy(-E).add(ye).subtract(this._map._getNewPixelOrigin(s,m));se.any3d?Qn(this._container,Ze,E):Ei(this._container,Ze)},_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=Ie.extend({options:{tolerance:0},getEvents:function(){var s=Ie.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ie.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");Ri(s,"mousemove",this._onMouseMove,this),Ri(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ri(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){Qe(this._redrawRequest),delete this._ctx,ji(this._container),hn(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){Ie.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(){Ie.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,Ze,Dt=s._parts,Ht=Dt.length,Zt=this._ctx;if(Ht){for(Zt.beginPath(),E=0;E<Ht;E++){for(Y=0,ye=Dt[E].length;Y<ye;Y++)Zt[Y?"lineTo":"moveTo"]((Ze=Dt[E][Y]).x,Ze.y);m&&Zt.closePath()}this._fillStroke(Zt,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&&(wi(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 yt=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||(Ie.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var m=s._container=yt("shape");wi(m,"leaflet-vml-shape "+(this.options.className||"")),m.coordsize="1 1",s._path=yt("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=yt("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=yt("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){Hn(s._container)},_bringToBack:function(s){_n(s._container)}},ei=se.vml?yt:Pe,Fi=Ie.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),hn(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ie.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&&wi(m,s.options.className),s.options.interactive&&wi(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,Xe(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 ",Ze=s._empty()?"M0 0":"M"+(m.x-E)+","+m.y+ye+2*E+",0 "+ye+2*-E+",0 ";this._setPath(s,Ze)},_setPath:function(s,m){s._path.setAttribute("d",m)},_bringToFront:function(s){Hn(s._path)},_bringToBack:function(s){_n(s._path)}});function In(s){return se.svg||se.vml?new Fi(s):null}se.vml&&Fi.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)||In(s)}});var pn=Ur.extend({initialize:function(s,m){Ur.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()]}});Fi.create=ei,Fi.pointsToPath=Xe,fo.geometryToLayer=No,fo.coordsToLatLng=ns,fo.coordsToLatLngs=xr,fo.latLngToCoords=Uo,fo.latLngsToCoords=jo,fo.getFeature=go,fo.asFeature=Go,an.mergeOptions({boxZoom:!0});var sn=ar.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(){Ri(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){hn(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(),mt(),Ye(),this._startPoint=this._map.mouseEventToContainerPoint(s),Ri(document,{contextmenu:Sr,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),wi(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(),hn(document,{contextmenu:Sr,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 Yt(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",sn),an.mergeOptions({doubleClickZoom:!0});var xn=ar.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",xn),an.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var gn=ar.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new rr(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))}wi(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,Ze=(Y+m+E)%s-m-E,Dt=Math.abs(ye+E)<Math.abs(Ze+E)?ye:Ze;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Dt},_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]),Dt=E.easeLinearity,Ht=ye.multiplyBy(Dt/((this._lastTime-this._times[0])/1e3)),Zt=Ht.distanceTo([0,0]),hi=Math.min(E.inertiaMaxSpeed,Zt),Ai=Ht.multiplyBy(hi/Zt),$i=hi/(E.inertiaDeceleration*Dt),fn=Ai.multiplyBy(-$i/2).round();fn.x||fn.y?(fn=m._limitOffset(fn,m.options.maxBounds),ne(function(){m.panBy(fn,{duration:$i,easeLinearity:Dt,noMoveStart:!0,animate:!0})})):m.fire("moveend")}}});an.addInitHook("addHandler","dragging",gn),an.mergeOptions({keyboard:!0,keyboardPanDelta:80});var qn=ar.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"),Ri(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(),hn(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(){Ri(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){hn(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()}Sr(s)}}});an.addInitHook("addHandler","keyboard",qn),an.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Do=ar.extend({addHooks:function(){Ri(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){hn(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(s){var m=qr(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),Sr(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,Ze=E?Math.ceil(ye/E)*E:ye,Dt=s._limitZoom(m+(this._delta>0?Ze:-Ze))-m;this._delta=0,this._startTime=null,Dt&&("center"===s.options.scrollWheelZoom?s.setZoom(m+Dt):s.setZoomAround(this._lastMousePos,m+Dt))}});an.addInitHook("addHandler","scrollWheelZoom",Do);an.mergeOptions({tapHold:se.touchNative&&se.safari&&se.mobile,tapTolerance:15});var ko=ar.extend({addHooks:function(){Ri(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){hn(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()&&(Ri(document,"touchend",zn),Ri(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",m))},this),600),Ri(document,"touchend touchcancel contextmenu",this._cancel,this),Ri(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){hn(document,"touchend",zn),hn(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),hn(document,"touchend touchcancel contextmenu",this._cancel,this),hn(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",ko),an.mergeOptions({touchZoom:se.touch,bounceAtZoomLimits:!0});var Pr=ar.extend({addHooks:function(){wi(this._map._container,"leaflet-touch-zoom"),Ri(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){qi(this._map._container,"leaflet-touch-zoom"),hn(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(),Ri(document,"touchmove",this._onTouchMove,this),Ri(document,"touchend touchcancel",this._onTouchEnd,this),zn(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 Ze=E._add(Y)._divideBy(2)._subtract(this._centerPoint);if(1===ye&&0===Ze.x&&0===Ze.y)return;this._center=m.unproject(m.project(this._pinchStartLatLng,this._zoom).subtract(Ze),this._zoom)}this._moved||(m._moveStart(!0,!1),this._moved=!0),Qe(this._animRequest);var Dt=l(m._move,m,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=ne(Dt,this,!0),zn(s)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,Qe(this._animRequest),hn(document,"touchmove",this._onTouchMove,this),hn(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",Pr),an.BoxZoom=sn,an.DoubleClickZoom=xn,an.Drag=gn,an.Keyboard=qn,an.ScrollWheelZoom=Do,an.TapHold=ko,an.TouchZoom=Pr,a.Bounds=ti,a.Browser=se,a.CRS=Fe,a.Canvas=oe,a.Circle=_r,a.CircleMarker=Qi,a.Class=nt,a.Control=ir,a.DivIcon=Ss,a.DivOverlay=Tn,a.DomEvent=Dr,a.DomUtil=Ro,a.Draggable=rr,a.Evented=ot,a.FeatureGroup=ft,a.GeoJSON=fo,a.GridLayer=Jo,a.Handler=ar,a.Icon=Oi,a.ImageOverlay=Io,a.LatLng=lt,a.LatLngBounds=Yt,a.Layer=de,a.LayerGroup=Ke,a.LineUtil=Vi,a.Map=an,a.Marker=vn,a.Mixin=lo,a.Path=Ti,a.Point=dt,a.PolyUtil=Bo,a.Polygon=Ur,a.Polyline=Wn,a.Popup=uo,a.PosAnimation=Ao,a.Projection=pe,a.Rectangle=pn,a.Renderer=Ie,a.SVG=Fi,a.SVGOverlay=Is,a.TileLayer=_o,a.Tooltip=So,a.Transformation=He,a.Util=Oe,a.VideoOverlay=js,a.bind=l,a.bounds=mi,a.canvas=Ne,a.circle=function yn(s,m,E){return new _r(s,m,E)},a.circleMarker=function lr(s,m){return new Qi(s,m)},a.control=gr,a.divIcon=function da(s){return new Ss(s)},a.extend=e,a.featureGroup=function(s,m){return new ft(s,m)},a.geoJSON=Xo,a.geoJson=ea,a.gridLayer=function Ds(s){return new Jo(s)},a.icon=function Pi(s){return new Oi(s)},a.imageOverlay=function(s,m,E){return new Io(s,m,E)},a.latLng=_t,a.latLngBounds=Jt,a.layerGroup=function(s,m){return new Ke(s,m)},a.map=function Co(s,m){return new an(s,m)},a.marker=function Cr(s,m){return new vn(s,m)},a.point=zt,a.polygon=function Xn(s,m){return new Ur(s,m)},a.polyline=function Eo(s,m){return new Wn(s,m)},a.popup=function(s,m){return new uo(s,m)},a.rectangle=function En(s,m){return new pn(s,m)},a.setOptions=f,a.stamp=d,a.svg=In,a.svgOverlay=function Vs(s,m,E){return new Is(s,m,E)},a.tileLayer=Vo,a.tooltip=function(s,m){return new So(s,m)},a.transformation=Te,a.version="1.9.4",a.videoOverlay=function ps(s,m,E){return new js(s,m,E)};var Gr=window.L;a.noConflict=function(){return window.L=Gr,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,I,j,F){var q,Z=arguments.length,le=Z<3?I:null===F?F=Object.getOwnPropertyDescriptor(I,j):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)le=Reflect.decorate(f,I,j,F);else for(var X=f.length-1;X>=0;X--)(q=f[X])&&(le=(Z<3?q(le):Z>3?q(I,j,le):q(I,j))||le);return Z>3&&le&&Object.defineProperty(I,j,le),le}),d=this&&this.__metadata||function(f,I){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(f,I)};a(4650);var C=a(6895);a(5528),a(5371),function u(f){for(var I in f)P.hasOwnProperty(I)||(P[I]=f[I])}(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,I){var Z,j=arguments.length,F=j<3?g:null===I?I=Object.getOwnPropertyDescriptor(g,f):I;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(w,g,f,I);else for(var le=w.length-1;le>=0;le--)(Z=w[le])&&(F=(j<3?Z(F):j>3?Z(g,f,F):Z(g,f))||F);return j>3&&F&&Object.defineProperty(g,f,F),F},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,I=function(){f=!0};g.forEachAddedItem(I),g.forEachMovedItem(I),g.forEachRemovedItem(I),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,I){var j;1&f&&n.\u0275\u0275viewQuery(l,5),2&f&&n.\u0275\u0275queryRefresh(j=n.\u0275\u0275loadQuery())&&(I.$owlChild=j.first)},inputs:{carouselClasses:"carouselClasses",options:"options",items:"items"},ngContentSelectors:v,decls:3,vars:2,consts:[[3,"ngClass","options"],["owl",""]],template:function(f,I){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",I.carouselClasses)("options",I.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 I=u.length-1;I>=0;I--)(f=u[I])&&(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 I=new w;return I.source=this,I.operator=f,I}subscribe(f,I,j){const{operator:F}=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,I,j);if(Z.add(F?F.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(I){b.v.useDeprecatedSynchronousErrorHandling&&(f.syncErrorThrown=!0,f.syncErrorValue=I),function e(w){for(;w;){const{closed:g,destination:f,isStopped:I}=w;if(g||I)return!1;w=f&&f instanceof n.L?f:null}return!0}(f)?f.error(I):console.warn(I)}}forEach(f,I){return new(I=x(I))((j,F)=>{let Z;Z=this.subscribe(le=>{try{f(le)}catch(q){F(q),Z&&Z.unsubscribe()}},F,j)})}_subscribe(f){const{source:I}=this;return I&&I.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))((I,j)=>{let F;this.subscribe(Z=>F=Z,Z=>j(Z),()=>I(F))})}}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,I=f.length,j=f.slice();for(let F=0;F<I;F++)j[F].next(g)}}error(g){if(this.closed)throw new l.N;this.hasError=!0,this.thrownError=g,this.isStopped=!0;const{observers:f}=this,I=f.length,j=f.slice();for(let F=0;F<I;F++)j[F].error(g);this.observers.length=0}complete(){if(this.closed)throw new l.N;this.isStopped=!0;const{observers:g}=this,f=g.length,I=g.slice();for(let j=0;j<f;j++)I[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 I,j=this;(0,n.m)(w)?I=w:w&&(I=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=I,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,I=g.length;for(;++f<I;){const j=g[f];if((0,e.K)(j))try{j.unsubscribe()}catch(F){C=C||[],F instanceof v?C=C.concat(u(F.errors)):C.push(F)}}}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 I=w[f];this.add((0,l.D)(this,I,I,f))}}}notifyComplete(w){0==(this.active-=1)&&this.destination.complete()}notifyNext(w,g,f,I,j){const F=this.values,le=this.toRespond?F[f]===d?--this.toRespond:this.toRespond:0;F[f]=g,0===le&&(this.resultSelector?this._tryResultSelector(F):this.destination.next(F.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,I=0;for(let j=0;j<w;j++){const F=(0,v.D)(b[j]);let Z=!1;x.add(F.subscribe({next:le=>{Z||(Z=!0,I++),g[j]=le},error:le=>x.error(le),complete:()=>{f++,(f===w||!Z)&&(I===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(F,Z){return Z?function I(F,Z){if(null!=F){if(function x(F){return F&&"function"==typeof F[l.L]}(F))return function v(F,Z){return new n.y(le=>{const q=new o.w;return q.add(Z.schedule(()=>{const X=F[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})}(F,Z);if((0,w.t)(F))return function d(F,Z){return new n.y(le=>{const q=new o.w;return q.add(Z.schedule(()=>F.then(X=>{q.add(Z.schedule(()=>{le.next(X),q.add(Z.schedule(()=>le.complete()))}))},X=>{q.add(Z.schedule(()=>le.error(X)))}))),q})}(F,Z);if((0,g.z)(F))return(0,u.r)(F,Z);if(function f(F){return F&&"function"==typeof F[b.hZ]}(F)||"string"==typeof F)return function C(F,Z){if(!F)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=F[b.hZ](),q.add(Z.schedule(function(){if(le.closed)return;let K,N;try{const me=X.next();K=me.value,N=me.done}catch(me){return void le.error(me)}N?le.complete():(le.next(K),this.schedule())}))})),q})}(F,Z)}throw new TypeError((null!==F&&typeof F||F)+" is not observable")}(F,Z):F instanceof n.y?F:new n.y((0,e.s)(F))}},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,I){return(0,o.m)(f)&&(I=f,f=void 0),I?d(w,g,f).pipe((0,l.U)(j=>(0,e.k)(j)?I(...j):I(j))):new n.y(j=>{u(w,g,function F(Z){j.next(arguments.length>1?Array.prototype.slice.call(arguments):Z)},j,f)})}function u(w,g,f,I,j){let F;if(function x(w){return w&&"function"==typeof w.addEventListener&&"function"==typeof w.removeEventListener}(w)){const Z=w;w.addEventListener(g,f,j),F=()=>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),F=()=>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),F=()=>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,I,j)}I.add(F)}},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(I){this.durationSelector=I}call(I,j){return j.subscribe(new d(I,this.durationSelector))}}class d extends e.L{constructor(I,j){super(I),this.durationSelector=j,this.hasValue=!1}_next(I){if(this.value=I,this.hasValue=!0,!this.throttled){let j;try{const{durationSelector:Z}=this;j=Z(I)}catch(Z){return this.destination.error(Z)}const F=(0,o.D)(this,j);!F||F.closed?this.clearThrottle():this.add(this.throttled=F)}}clearThrottle(){const{value:I,hasValue:j,throttled:F}=this;F&&(this.remove(F),this.throttled=null,F.unsubscribe()),j&&(this.value=null,this.hasValue=!1,this.destination.next(I))}notifyNext(I,j,F,Z){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var u=a(6498),b=a(4241),C=a(2866);function w(f){const{index:I,period:j,subscriber:F}=f;if(F.next(I),!F.closed){if(-1===j)return F.complete();f.index=I+1,this.schedule(f,j)}}function g(f,I=n.P){return function l(f){return function(j){return j.lift(new v(f))}}(()=>function x(f=0,I,j){let F=-1;return(0,b.k)(I)?F=Number(I)<1?1:Number(I):(0,C.K)(I)&&(j=I),(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:F,subscriber:Z})})}(f,I))}},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,I)=>(0,v.D)(C(f,I)).pipe((0,l.U)((j,F)=>x(f,j,I,F))),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),I=this.destination;I.add(f);const j=(0,n.D)(this,x,void 0,void 0,f);j!==f&&I.add(j)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(x,w,g,f,I){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)((I,j)=>x(g,I,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 I=new e.d(this,w,g),j=this.destination;j.add(I),this.innerSubscription=(0,o.D)(this,x,void 0,void 0,I),this.innerSubscription!==I&&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,I){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 I=g[d.L]();if("function"!=typeof I.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return I.subscribe(f)})(g);if((0,b.z)(g))return(0,n.V)(g);if((0,C.t)(g))return(g=>f=>(g.then(I=>{f.closed||(f.next(I),f.complete())},I=>f.error(I)).then(null,e.z),f))(g);if(g&&"function"==typeof g[l.hZ])return(g=>f=>{const I=g[l.hZ]();for(;;){const j=I.next();if(j.done){f.complete();break}if(f.next(j.value),f.closed)break}return"function"==typeof I.return&&f.add(()=>{I.return&&I.return()}),f})(g);{const I=`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(I)}}},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(W,z){return new o(W,z)},n.SAXParser=o,n.SAXStream=x,n.createStream=function C(W,z){return new x(W,z)},n.MAX_BUFFER_LENGTH=65536;var u,e=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function o(W,z){if(!(this instanceof o))return new o(W,z);var He=this;(function v(W){for(var z=0,He=e.length;z<He;z++)W[e[z]]=""})(He),He.q=He.c="",He.bufferCheckPosition=n.MAX_BUFFER_LENGTH,He.opt=z||{},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=!!W,He.noscript=!(!W&&!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(W){function z(){}return z.prototype=W,new z}),Object.keys||(Object.keys=function(W){var z=[];for(var He in W)W.hasOwnProperty(He)&&z.push(He);return z}),o.prototype={end:function(){dt(this)},write:function Ae(W){var z=this;if(this.error)throw this.error;if(z.closed)return ot(z,"Cannot write after close. Assign an onready handler.");if(null===W)return dt(z);"object"==typeof W&&(W=W.toString());for(var He=0,Te="";Te=Fe(W,He++),z.c=Te,Te;)switch(z.trackPosition&&(z.position++,"\n"===Te?(z.line++,z.column=0):z.column++),z.state){case ne.BEGIN:if(z.state=ne.BEGIN_WHITESPACE,"\ufeff"===Te)continue;_t(z,Te);continue;case ne.BEGIN_WHITESPACE:_t(z,Te);continue;case ne.TEXT:if(z.sawRoot&&!z.closedRoot){for(var Be=He-1;Te&&"<"!==Te&&"&"!==Te;)(Te=Fe(W,He++))&&z.trackPosition&&(z.position++,"\n"===Te?(z.line++,z.column=0):z.column++);z.textNode+=W.substring(Be,He-1)}"<"!==Te||z.sawRoot&&z.closedRoot&&!z.strict?(!X(Te)&&(!z.sawRoot||z.closedRoot)&&Vt(z,"Text data outside of root node."),"&"===Te?z.state=ne.TEXT_ENTITY:z.textNode+=Te):(z.state=ne.OPEN_WAKA,z.startTagPosition=z.position);continue;case ne.SCRIPT:"<"===Te?z.state=ne.SCRIPT_ENDING:z.script+=Te;continue;case ne.SCRIPT_ENDING:"/"===Te?z.state=ne.CLOSE_TAG:(z.script+="<"+Te,z.state=ne.SCRIPT);continue;case ne.OPEN_WAKA:"!"===Te?(z.state=ne.SGML_DECL,z.sgmlDecl=""):X(Te)||(me(F,Te)?(z.state=ne.OPEN_TAG,z.tagName=Te):"/"===Te?(z.state=ne.CLOSE_TAG,z.tagName=""):"?"===Te?(z.state=ne.PROC_INST,z.procInstName=z.procInstBody=""):(Vt(z,"Unencoded <"),z.startTagPosition+1<z.position&&(Te=new Array(z.position-z.startTagPosition).join(" ")+Te),z.textNode+="<"+Te,z.state=ne.TEXT));continue;case ne.SGML_DECL:(z.sgmlDecl+Te).toUpperCase()===w?(nt(z,"onopencdata"),z.state=ne.CDATA,z.sgmlDecl="",z.cdata=""):z.sgmlDecl+Te==="--"?(z.state=ne.COMMENT,z.comment="",z.sgmlDecl=""):(z.sgmlDecl+Te).toUpperCase()===g?(z.state=ne.DOCTYPE,(z.doctype||z.sawRoot)&&Vt(z,"Inappropriately located doctype declaration"),z.doctype="",z.sgmlDecl=""):">"===Te?(nt(z,"onsgmldeclaration",z.sgmlDecl),z.sgmlDecl="",z.state=ne.TEXT):(K(Te)&&(z.state=ne.SGML_DECL_QUOTED),z.sgmlDecl+=Te);continue;case ne.SGML_DECL_QUOTED:Te===z.q&&(z.state=ne.SGML_DECL,z.q=""),z.sgmlDecl+=Te;continue;case ne.DOCTYPE:">"===Te?(z.state=ne.TEXT,nt(z,"ondoctype",z.doctype),z.doctype=!0):(z.doctype+=Te,"["===Te?z.state=ne.DOCTYPE_DTD:K(Te)&&(z.state=ne.DOCTYPE_QUOTED,z.q=Te));continue;case ne.DOCTYPE_QUOTED:z.doctype+=Te,Te===z.q&&(z.q="",z.state=ne.DOCTYPE);continue;case ne.DOCTYPE_DTD:z.doctype+=Te,"]"===Te?z.state=ne.DOCTYPE:K(Te)&&(z.state=ne.DOCTYPE_DTD_QUOTED,z.q=Te);continue;case ne.DOCTYPE_DTD_QUOTED:z.doctype+=Te,Te===z.q&&(z.state=ne.DOCTYPE_DTD,z.q="");continue;case ne.COMMENT:"-"===Te?z.state=ne.COMMENT_ENDING:z.comment+=Te;continue;case ne.COMMENT_ENDING:"-"===Te?(z.state=ne.COMMENT_ENDED,z.comment=ct(z.opt,z.comment),z.comment&&nt(z,"oncomment",z.comment),z.comment=""):(z.comment+="-"+Te,z.state=ne.COMMENT);continue;case ne.COMMENT_ENDED:">"!==Te?(Vt(z,"Malformed comment"),z.comment+="--"+Te,z.state=ne.COMMENT):z.state=ne.TEXT;continue;case ne.CDATA:"]"===Te?z.state=ne.CDATA_ENDING:z.cdata+=Te;continue;case ne.CDATA_ENDING:"]"===Te?z.state=ne.CDATA_ENDING_2:(z.cdata+="]"+Te,z.state=ne.CDATA);continue;case ne.CDATA_ENDING_2:">"===Te?(z.cdata&&nt(z,"oncdata",z.cdata),nt(z,"onclosecdata"),z.cdata="",z.state=ne.TEXT):"]"===Te?z.cdata+="]":(z.cdata+="]]"+Te,z.state=ne.CDATA);continue;case ne.PROC_INST:"?"===Te?z.state=ne.PROC_INST_ENDING:X(Te)?z.state=ne.PROC_INST_BODY:z.procInstName+=Te;continue;case ne.PROC_INST_BODY:if(!z.procInstBody&&X(Te))continue;"?"===Te?z.state=ne.PROC_INST_ENDING:z.procInstBody+=Te;continue;case ne.PROC_INST_ENDING:">"===Te?(nt(z,"onprocessinginstruction",{name:z.procInstName,body:z.procInstBody}),z.procInstName=z.procInstBody="",z.state=ne.TEXT):(z.procInstBody+="?"+Te,z.state=ne.PROC_INST_BODY);continue;case ne.OPEN_TAG:me(Z,Te)?z.tagName+=Te:(zt(z),">"===Te?Yt(z):"/"===Te?z.state=ne.OPEN_TAG_SLASH:(X(Te)||Vt(z,"Invalid character in tag name"),z.state=ne.ATTRIB));continue;case ne.OPEN_TAG_SLASH:">"===Te?(Yt(z,!0),Jt(z)):(Vt(z,"Forward-slash in opening tag not followed by >"),z.state=ne.ATTRIB);continue;case ne.ATTRIB:if(X(Te))continue;">"===Te?Yt(z):"/"===Te?z.state=ne.OPEN_TAG_SLASH:me(F,Te)?(z.attribName=Te,z.attribValue="",z.state=ne.ATTRIB_NAME):Vt(z,"Invalid attribute name");continue;case ne.ATTRIB_NAME:"="===Te?z.state=ne.ATTRIB_VALUE:">"===Te?(Vt(z,"Attribute without value"),z.attribValue=z.attribName,mi(z),Yt(z)):X(Te)?z.state=ne.ATTRIB_NAME_SAW_WHITE:me(Z,Te)?z.attribName+=Te:Vt(z,"Invalid attribute name");continue;case ne.ATTRIB_NAME_SAW_WHITE:if("="===Te)z.state=ne.ATTRIB_VALUE;else{if(X(Te))continue;Vt(z,"Attribute without value"),z.tag.attributes[z.attribName]="",z.attribValue="",nt(z,"onattribute",{name:z.attribName,value:""}),z.attribName="",">"===Te?Yt(z):me(F,Te)?(z.attribName=Te,z.state=ne.ATTRIB_NAME):(Vt(z,"Invalid attribute name"),z.state=ne.ATTRIB)}continue;case ne.ATTRIB_VALUE:if(X(Te))continue;K(Te)?(z.q=Te,z.state=ne.ATTRIB_VALUE_QUOTED):(Vt(z,"Unquoted attribute value"),z.state=ne.ATTRIB_VALUE_UNQUOTED,z.attribValue=Te);continue;case ne.ATTRIB_VALUE_QUOTED:if(Te!==z.q){"&"===Te?z.state=ne.ATTRIB_VALUE_ENTITY_Q:z.attribValue+=Te;continue}mi(z),z.q="",z.state=ne.ATTRIB_VALUE_CLOSED;continue;case ne.ATTRIB_VALUE_CLOSED:X(Te)?z.state=ne.ATTRIB:">"===Te?Yt(z):"/"===Te?z.state=ne.OPEN_TAG_SLASH:me(F,Te)?(Vt(z,"No whitespace between attributes"),z.attribName=Te,z.attribValue="",z.state=ne.ATTRIB_NAME):Vt(z,"Invalid attribute name");continue;case ne.ATTRIB_VALUE_UNQUOTED:if(!N(Te)){"&"===Te?z.state=ne.ATTRIB_VALUE_ENTITY_U:z.attribValue+=Te;continue}mi(z),">"===Te?Yt(z):z.state=ne.ATTRIB;continue;case ne.CLOSE_TAG:if(z.tagName)">"===Te?Jt(z):me(Z,Te)?z.tagName+=Te:z.script?(z.script+="</"+z.tagName,z.tagName="",z.state=ne.SCRIPT):(X(Te)||Vt(z,"Invalid tagname in closing tag"),z.state=ne.CLOSE_TAG_SAW_WHITE);else{if(X(Te))continue;xe(F,Te)?z.script?(z.script+="</"+Te,z.state=ne.SCRIPT):Vt(z,"Invalid tagname in closing tag."):z.tagName=Te}continue;case ne.CLOSE_TAG_SAW_WHITE:if(X(Te))continue;">"===Te?Jt(z):Vt(z,"Invalid characters in closing tag");continue;case ne.TEXT_ENTITY:case ne.ATTRIB_VALUE_ENTITY_Q:case ne.ATTRIB_VALUE_ENTITY_U:var Pe,Xe;switch(z.state){case ne.TEXT_ENTITY:Pe=ne.TEXT,Xe="textNode";break;case ne.ATTRIB_VALUE_ENTITY_Q:Pe=ne.ATTRIB_VALUE_QUOTED,Xe="attribValue";break;case ne.ATTRIB_VALUE_ENTITY_U:Pe=ne.ATTRIB_VALUE_UNQUOTED,Xe="attribValue"}if(";"===Te)if(z.opt.unparsedEntities){var ht=lt(z);z.entity="",z.state=Pe,z.write(ht)}else z[Xe]+=lt(z),z.entity="",z.state=Pe;else me(z.entity.length?q:le,Te)?z.entity+=Te:(Vt(z,"Invalid character in entity name"),z[Xe]+="&"+z.entity+Te,z.entity="",z.state=Pe);continue;default:throw new Error(z,"Unknown state: "+z.state)}return z.position>=z.bufferCheckPosition&&function l(W){for(var z=Math.max(n.MAX_BUFFER_LENGTH,10),He=0,Te=0,Be=e.length;Te<Be;Te++){var pt=W[e[Te]].length;if(pt>z)switch(e[Te]){case"textNode":Je(W);break;case"cdata":nt(W,"oncdata",W.cdata),W.cdata="";break;case"script":nt(W,"onscript",W.script),W.script="";break;default:ot(W,"Max buffer length exceeded: "+e[Te])}He=Math.max(He,pt)}W.bufferCheckPosition=n.MAX_BUFFER_LENGTH-He+W.position}(z),z},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function d(W){Je(W),""!==W.cdata&&(nt(W,"oncdata",W.cdata),W.cdata=""),""!==W.script&&(nt(W,"onscript",W.script),W.script="")}(this)}};try{u=a(5398).Stream}catch{u=function(){}}u||(u=function(){});var b=n.EVENTS.filter(function(W){return"error"!==W&&"end"!==W});function x(W,z){if(!(this instanceof x))return new x(W,z);u.apply(this),this._parser=new o(W,z),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(W){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(W)){if(!this._decoder){var z=a(3054).s;this._decoder=new z("utf8")}W=this._decoder.write(W)}return this._parser.write(W.toString()),this.emit("data",W),!0},x.prototype.end=function(W){return W&&W.length&&this.write(W),this._parser.end(),!0},x.prototype.on=function(W,z){var He=this;return!He._parser["on"+W]&&-1!==b.indexOf(W)&&(He._parser["on"+W]=function(){var Te=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);Te.splice(0,0,W),He.emit.apply(He,Te)}),u.prototype.on.call(He,W,z)};var w="[CDATA[",g="DOCTYPE",f="http://www.w3.org/XML/1998/namespace",I="http://www.w3.org/2000/xmlns/",j={xml:f,xmlns:I},F=/[:_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(W){return" "===W||"\n"===W||"\r"===W||"\t"===W}function K(W){return'"'===W||"'"===W}function N(W){return">"===W||X(W)}function me(W,z){return W.test(z)}function xe(W,z){return!me(W,z)}var W,z,He,ne=0;for(var Qe 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(W){var z=n.ENTITIES[W],He="number"==typeof z?String.fromCharCode(z):z;n.ENTITIES[W]=He}),n.STATE)n.STATE[n.STATE[Qe]]=Qe;function Oe(W,z,He){W[z]&&W[z](He)}function nt(W,z,He){W.textNode&&Je(W),Oe(W,z,He)}function Je(W){W.textNode=ct(W.opt,W.textNode),W.textNode&&Oe(W,"ontext",W.textNode),W.textNode=""}function ct(W,z){return W.trim&&(z=z.trim()),W.normalize&&(z=z.replace(/\s+/g," ")),z}function ot(W,z){return Je(W),W.trackPosition&&(z+="\nLine: "+W.line+"\nColumn: "+W.column+"\nChar: "+W.c),z=new Error(z),W.error=z,Oe(W,"onerror",z),W}function dt(W){return W.sawRoot&&!W.closedRoot&&Vt(W,"Unclosed root tag"),W.state!==ne.BEGIN&&W.state!==ne.BEGIN_WHITESPACE&&W.state!==ne.TEXT&&ot(W,"Unexpected end"),Je(W),W.c="",W.closed=!0,Oe(W,"onend"),o.call(W,W.strict,W.opt),W}function Vt(W,z){if("object"!=typeof W||!(W instanceof o))throw new Error("bad call to strictFail");W.strict&&ot(W,z)}function zt(W){W.strict||(W.tagName=W.tagName[W.looseCase]());var z=W.tags[W.tags.length-1]||W,He=W.tag={name:W.tagName,attributes:{}};W.opt.xmlns&&(He.ns=z.ns),W.attribList.length=0,nt(W,"onopentagstart",He)}function ti(W,z){var Te=W.indexOf(":")<0?["",W]:W.split(":"),Be=Te[0],pt=Te[1];return z&&"xmlns"===W&&(Be="xmlns",pt=""),{prefix:Be,local:pt}}function mi(W){if(W.strict||(W.attribName=W.attribName[W.looseCase]()),-1!==W.attribList.indexOf(W.attribName)||W.tag.attributes.hasOwnProperty(W.attribName))W.attribName=W.attribValue="";else{if(W.opt.xmlns){var z=ti(W.attribName,!0),Te=z.local;if("xmlns"===z.prefix)if("xml"===Te&&W.attribValue!==f)Vt(W,"xml: prefix must be bound to "+f+"\nActual: "+W.attribValue);else if("xmlns"===Te&&W.attribValue!==I)Vt(W,"xmlns: prefix must be bound to "+I+"\nActual: "+W.attribValue);else{var Be=W.tag,pt=W.tags[W.tags.length-1]||W;Be.ns===pt.ns&&(Be.ns=Object.create(pt.ns)),Be.ns[Te]=W.attribValue}W.attribList.push([W.attribName,W.attribValue])}else W.tag.attributes[W.attribName]=W.attribValue,nt(W,"onattribute",{name:W.attribName,value:W.attribValue});W.attribName=W.attribValue=""}}function Yt(W,z){if(W.opt.xmlns){var He=W.tag,Te=ti(W.tagName);He.prefix=Te.prefix,He.local=Te.local,He.uri=He.ns[Te.prefix]||"",He.prefix&&!He.uri&&(Vt(W,"Unbound namespace prefix: "+JSON.stringify(W.tagName)),He.uri=Te.prefix),He.ns&&(W.tags[W.tags.length-1]||W).ns!==He.ns&&Object.keys(He.ns).forEach(function(fe){nt(W,"onopennamespace",{prefix:fe,uri:He.ns[fe]})});for(var pt=0,Pe=W.attribList.length;pt<Pe;pt++){var Xe=W.attribList[pt],ht=Xe[0],ee=Xe[1],k=ti(ht,!0),R=k.prefix,qe=""===R?"":He.ns[R]||"",Ue={name:ht,value:ee,prefix:R,local:k.local,uri:qe};R&&"xmlns"!==R&&!qe&&(Vt(W,"Unbound namespace prefix: "+JSON.stringify(R)),Ue.uri=R),W.tag.attributes[ht]=Ue,nt(W,"onattribute",Ue)}W.attribList.length=0}W.tag.isSelfClosing=!!z,W.sawRoot=!0,W.tags.push(W.tag),nt(W,"onopentag",W.tag),z||(W.state=W.noscript||"script"!==W.tagName.toLowerCase()?ne.TEXT:ne.SCRIPT,W.tag=null,W.tagName=""),W.attribName=W.attribValue="",W.attribList.length=0}function Jt(W){if(!W.tagName)return Vt(W,"Weird empty close tag."),W.textNode+="</>",void(W.state=ne.TEXT);if(W.script){if("script"!==W.tagName)return W.script+="</"+W.tagName+">",W.tagName="",void(W.state=ne.SCRIPT);nt(W,"onscript",W.script),W.script=""}var z=W.tags.length,He=W.tagName;W.strict||(He=He[W.looseCase]());for(var Te=He;z--&&W.tags[z].name!==Te;)Vt(W,"Unexpected close tag");if(z<0)return Vt(W,"Unmatched closing tag: "+W.tagName),W.textNode+="</"+W.tagName+">",void(W.state=ne.TEXT);W.tagName=He;for(var pt=W.tags.length;pt-- >z;){var Pe=W.tag=W.tags.pop();W.tagName=W.tag.name,nt(W,"onclosetag",W.tagName);var Xe={};for(var ht in Pe.ns)Xe[ht]=Pe.ns[ht];W.opt.xmlns&&Pe.ns!==(W.tags[W.tags.length-1]||W).ns&&Object.keys(Pe.ns).forEach(function(k){nt(W,"onclosenamespace",{prefix:k,uri:Pe.ns[k]})})}0===z&&(W.closedRoot=!0),W.tagName=W.attribValue=W.attribName="",W.attribList.length=0,W.state=ne.TEXT}function lt(W){var Te,z=W.entity,He=z.toLowerCase(),Be="";return W.ENTITIES[z]?W.ENTITIES[z]:W.ENTITIES[He]?W.ENTITIES[He]:("#"===(z=He).charAt(0)&&("x"===z.charAt(1)?(z=z.slice(2),Be=(Te=parseInt(z,16)).toString(16)):(z=z.slice(1),Be=(Te=parseInt(z,10)).toString(10))),z=z.replace(/^0+/,""),isNaN(Te)||Be.toLowerCase()!==z?(Vt(W,"Invalid character entity"),"&"+W.entity+";"):String.fromCodePoint(Te))}function _t(W,z){"<"===z?(W.state=ne.OPEN_WAKA,W.startTagPosition=W.position):X(z)||(Vt(W,"Non-whitespace before first tag."),W.textNode=z,W.state=ne.TEXT)}function Fe(W,z){var He="";return z<W.length&&(He=W.charAt(z)),He}ne=n.STATE,String.fromCodePoint||(W=String.fromCharCode,z=Math.floor,He=function(){var Be=[],Xe=-1,ht=arguments.length;if(!ht)return"";for(var ee="";++Xe<ht;){var k=Number(arguments[Xe]);if(!isFinite(k)||k<0||k>1114111||z(k)!==k)throw RangeError("Invalid code point: "+k);k<=65535?Be.push(k):Be.push(55296+((k-=65536)>>10),k%1024+56320),(Xe+1===ht||Be.length>16384)&&(ee+=W.apply(null,Be),Be.length=0)}return ee},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 I=f.parser||l;this.encoder=new I.Encoder,this.decoder=new I.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 I=this.engine,j=this;this.readyState="opening",this.skipReconnect=!1;var F=v(I,"open",function(){j.onopen(),g&&g()}),Z=v(I,"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&&F.destroy();var q=setTimeout(function(){u("connect attempt timed out after %d",le),F.destroy(),I.close(),I.emit("error","timeout"),j.emitAll("connect_timeout",le)},le);this.subs.push({destroy:function(){clearTimeout(q)}})}return this.subs.push(F),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 I=this.nsps[g];if(!I){I=new e(this,g,f),this.nsps[g]=I;var j=this;I.on("connecting",F),I.on("connect",function(){I.id=j.generateId(g)}),this.autoConnect&&F()}function F(){~b(j.connecting,I)||j.connecting.push(I)}return I},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(I){for(var j=0;j<I.length;j++)f.engine.write(I[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 I=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(I)}})}},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,I){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={},I&&I.query&&(this.query=I.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),I={type:(void 0!==this.flags.binary?this.flags.binary:b(f))?n.BINARY_EVENT:n.EVENT,data:f,options:{}};return I.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(),I.id=this.ids++),this.connected?this.packet(I):this.sendBuffer.push(I),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,I=!1;return function(){if(!I){I=!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 I=new Array(arguments.length),j=0;j<I.length;j++)I[j]=arguments[j];I[0]=P.coerce(I[0]),"string"!=typeof I[0]&&I.unshift("%O");var F=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,function(le,q){if("%%"===le)return le;F++;var X=P.formatters[q];return"function"==typeof X&&(le=X.call(w,I[F]),I.splice(F,1),F--),le}),P.formatArgs.call(w,I),(x.log||P.log||console.log.bind(console)).apply(w,I)}}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,I,j){if(!f)return f;if(l&&f instanceof Blob||v&&f instanceof File){w++;var F=new FileReader;F.onload=function(){j?j[I]=this.result:g=this.result,--w||C(g)},F.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(F){var Z=""+F.type;if((P.BINARY_EVENT===F.type||P.BINARY_ACK===F.type)&&(Z+=F.attachments+"-"),F.nsp&&"/"!==F.nsp&&(Z+=F.nsp+","),null!=F.id&&(Z+=F.id),null!=F.data){var le=function C(F){try{return JSON.stringify(F)}catch{return!1}}(F.data);if(!1===le)return u;Z+=le}return n("encoded %j as %s",F,Z),Z}function w(){this.reconstructor=null}function I(F){this.reconPack=F,this.buffers=[]}function j(F){return{type:P.ERROR,data:"parser error: "+F}}d.prototype.encode=function(F,Z){n("encoding packet %j",F),P.BINARY_EVENT===F.type||P.BINARY_ACK===F.type?function x(F,Z){o.removeBlobs(F,function le(q){var X=o.deconstructPacket(q),K=b(X.packet),N=X.buffers;N.unshift(K),Z(N)})}(F,Z):Z([b(F)])},e(w.prototype),w.prototype.add=function(F){var Z;if("string"==typeof F){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");Z=function g(F){var Z=0,le={type:Number(F.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;"-"!==F.charAt(++Z)&&Z!=F.length;);var X=F.substring(q,Z);if(X!=Number(X)||"-"!==F.charAt(Z))throw new Error("Illegal attachments");le.attachments=Number(X)}if("/"===F.charAt(Z+1)){for(q=Z+1;++Z&&(","!==(K=F.charAt(Z))&&Z!==F.length););le.nsp=F.substring(q,Z)}else le.nsp="/";var N=F.charAt(Z+1);if(""!==N&&Number(N)==N){for(q=Z+1;++Z;){var K;if(null==(K=F.charAt(Z))||Number(K)!=K){--Z;break}if(Z===F.length)break}le.id=Number(F.substring(q,Z+1))}if(F.charAt(++Z)){var me=function f(F){try{return JSON.parse(F)}catch{return!1}}(F.substr(Z));if(!1===me||le.type!==P.ERROR&&!l(me))return j("invalid payload");le.data=me}return n("decoded %s as %j",F,le),le}(F),P.BINARY_EVENT===Z.type||P.BINARY_ACK===Z.type?(this.reconstructor=new I(Z),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",Z)):this.emit("decoded",Z)}else{if(!v(F)&&!F.base64)throw new Error("Unknown type: "+F);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(Z=this.reconstructor.takeBinaryData(F))&&(this.reconstructor=null,this.emit("decoded",Z))}},w.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},I.prototype.takeBinaryData=function(F){if(this.buffers.push(F),this.buffers.length===this.reconPack.attachments){var Z=o.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),Z}return null},I.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 I=new Array(arguments.length),j=0;j<I.length;j++)I[j]=arguments[j];I[0]=P.coerce(I[0]),"string"!=typeof I[0]&&I.unshift("%O");var F=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,function(le,q){if("%%"===le)return le;F++;var X=P.formatters[q];return"function"==typeof X&&(le=X.call(w,I[F]),I.splice(F,1),F--),le}),P.formatArgs.call(w,I),(x.log||P.log||console.log.bind(console)).apply(w,I)}}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=I,this.end=j,q=3;break;default:return this.write=F,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 I(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 F(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 N=d(q[K]);return N>=0?(N>0&&(le.lastNeed=N-1),N):--K<X||-2===N?0:(N=d(q[K]))>=0?(N>0&&(le.lastNeed=N-2),N):--K<X||-2===N?0:(N=d(q[K]))>=0?(N>0&&(2===N?N=0:le.lastNeed=N-3),N):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,I;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,I=this,w=function(j,F){var Z,le,q,X,K;if("object"!=typeof F)I.options.cdata&&l(F)?j.raw(v(F)):j.txt(F);else if(Array.isArray(F)){for(X in F)if(d.call(F,X))for(K in le=F[X])q=le[K],j=w(j.ele(K),q).up()}else for(K in F)if(d.call(F,K))if(le=F[K],K===C){if("object"==typeof le)for(Z in le)j=j.att(Z,le[Z])}else if(K===x)j=I.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])?I.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&&I.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,I){return function(){return f.apply(I,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,I,j){var F,Z;for(F=0,Z=f.length;F<Z;F++)I=(0,f[F])(I,j);return I},o=function(f,I,j){var F;return(F=Object.create(null)).value=j,F.writable=!0,F.enumerable=!0,F.configurable=!0,Object.defineProperty(f,I,F)},P.Parser=function(f){function I(j){var F,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(F in this.options={},Z=e[.2])g.call(Z,F)&&(this.options[F]=Z[F]);for(F in j)g.call(j,F)&&(this.options[F]=j[F]);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,I){for(var j in I)g.call(I,j)&&(f[j]=I[j]);function F(){this.constructor=f}F.prototype=I.prototype,f.prototype=new F,f.__super__=I.prototype}(I,f),I.prototype.processAsync=function(){var j,F;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(F=Z,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(F)}},I.prototype.assignOrPush=function(j,F,Z){return F in j?(j[F]instanceof Array||o(j,F,[j[F]]),j[F].push(Z)):o(j,F,this.options.explicitArray?[Z]:Z)},I.prototype.reset=function(){var j,F,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,F=this.options.charkey,this.saxParser.onopentag=function(q){return function(X){var K,N,me,xe,ne;if((me={})[F]="",!q.options.ignoreAttrs)for(K in ne=X.attributes)g.call(ne,K)&&(!(j in me)&&!q.options.mergeAttrs&&(me[j]={}),N=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,N):o(me[j],xe,N));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,N,me,xe,ne,Qe,Oe,nt,Je;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[F].match(/^\s*$/)&&!X?(K=ne[F],delete ne[F]):(q.options.trim&&(ne[F]=ne[F].trim()),q.options.normalize&&(ne[F]=ne[F].replace(/\s{2,}/g," ").trim()),ne[F]=q.options.valueProcessors?d(q.options.valueProcessors,ne[F],xe):ne[F],1===Object.keys(ne).length&&F in ne&&!q.EXPLICIT_CHARKEY&&(ne=ne[F])),v(ne)&&(ne="function"==typeof q.options.emptyTag?q.options.emptyTag():""!==q.options.emptyTag?q.options.emptyTag:K),null!=q.options.validator&&(Je="/"+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(Je,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(N in nt[q.options.childkey]=nt[q.options.childkey]||[],Qe={},ne)g.call(ne,N)&&o(Qe,N,ne[N]);nt[q.options.childkey].push(Qe),delete ne["#name"],1===Object.keys(ne).length&&F in ne&&!q.EXPLICIT_CHARKEY&&(ne=ne[F])}}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,N;if(N=le[le.length-1])return N[F]+=X,q.options.explicitChildren&&q.options.preserveChildrenOrder&&q.options.charsAsChildren&&(q.options.includeWhiteChars||""!==X.replace(/\\n/g,"").trim())&&(N[q.options.childkey]=N[q.options.childkey]||[],(K={"#name":"__text__"})[F]=X,q.options.normalize&&(K[F]=K[F].replace(/\s{2,}/g," ").trim()),N[q.options.childkey].push(K)),N}}(this),this.saxParser.ontext=Z,this.saxParser.oncdata=function(X){var K;if(K=Z(X))return K.cdata=!0}},I.prototype.parseString=function(j,F){var Z;null!=F&&"function"==typeof F&&(this.on("end",function(le){return this.reset(),F(null,le)}),this.on("error",function(le){return this.reset(),F(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}},I.prototype.parseStringPromise=function(j){return new Promise((F=this,function(Z,le){return F.parseString(j,function(q,X){return q?le(q):Z(X)})}));var F},I}(l),P.parseString=function(f,I,j){var F,Z;return null!=j?("function"==typeof j&&(F=j),"object"==typeof I&&(Z=I)):("function"==typeof I&&(F=I),Z={}),new P.Parser(Z).parseString(f,F)},P.parseStringPromise=function(f,I){var j;return"object"==typeof I&&(j=I),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(I,j,F){var Z,le,q,X,K,N;if(f.__super__.constructor.call(this,I),this.type=n.DocType,I.children)for(le=0,q=(X=I.children).length;le<q;le++)if((Z=X[le]).type===n.Element){this.name=Z.name;break}this.documentObject=I,C(j)&&(j=(K=j).pubID,F=K.sysID),null==F&&(F=(N=[j,F])[0],j=N[1]),null!=j&&(this.pubID=this.stringify.dtdPubID(j)),null!=F&&(this.sysID=this.stringify.dtdSysID(F))}return function(g,f){for(var I in f)w.call(f,I)&&(g[I]=f[I]);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 I,j,F,Z,le;for(Z={},j=0,F=(le=this.children).length;j<F;j++)(I=le[j]).type===n.EntityDeclaration&&!I.pe&&(Z[I.name]=I);return new u(Z)}}),Object.defineProperty(f.prototype,"notations",{get:function(){var I,j,F,Z,le;for(Z={},j=0,F=(le=this.children).length;j<F;j++)(I=le[j]).type===n.NotationDeclaration&&(Z[I.name]=I);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(I,j){var F;return F=new o(this,I,j),this.children.push(F),this},f.prototype.attList=function(I,j,F,Z,le){var q;return q=new e(this,I,j,F,Z,le),this.children.push(q),this},f.prototype.entity=function(I,j){var F;return F=new l(this,!1,I,j),this.children.push(F),this},f.prototype.pEntity=function(I,j){var F;return F=new l(this,!0,I,j),this.children.push(F),this},f.prototype.notation=function(I,j){var F;return F=new v(this,I,j),this.children.push(F),this},f.prototype.toString=function(I){return this.options.writer.docType(this,this.options.writer.filterOptions(I))},f.prototype.ele=function(I,j){return this.element(I,j)},f.prototype.att=function(I,j,F,Z,le){return this.attList(I,j,F,Z,le)},f.prototype.ent=function(I,j){return this.entity(I,j)},f.prototype.pent=function(I,j){return this.pEntity(I,j)},f.prototype.not=function(I,j){return this.notation(I,j)},f.prototype.up=function(){return this.root()||this.documentObject},f.prototype.isEqualNode=function(I){return!(!f.__super__.isEqualNode.apply(this,arguments).isEqualNode(I)||I.name!==this.name||I.publicId!==this.publicId||I.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 I(){this.constructor=w}I.prototype=g.prototype,w.prototype=new I,w.__super__=g.prototype}(g,w),Object.defineProperty(g.prototype,"implementation",{value:new o}),Object.defineProperty(g.prototype,"doctype",{get:function(){var f,I,j,F;for(I=0,j=(F=this.children).length;I<j;I++)if((f=F[I]).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 I;return I={},f?b(f)&&(I=f,f=this.options.writer):f=this.options.writer,f.document(this,f.filterOptions(I))},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,I){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,I){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createElementNS=function(f,I){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createAttributeNS=function(f,I){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagNameNS=function(f,I){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,I,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,I,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createTreeWalker=function(f,I,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,I,j,F,Z,le,q,X,K,N,me,xe,ne={}.hasOwnProperty;xe=a(3452),N=xe.isObject,K=xe.isFunction,me=xe.isPlainObject,X=xe.getValue,n=a(2269),g=a(519),I=a(3352),l=a(1361),v=a(2516),F=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 Qe(Oe,nt,Je){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=Je||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Qe.prototype.createChildNode=function(Oe){var Je,ct,ot,dt,Vt,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(Je in ct={},zt=Oe.attribs)ne.call(zt,Je)&&(ct[Je]=zt[Je].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,Vt=(ti=Oe.children).length;dt<Vt;dt++)this.createChildNode(ot=ti[dt]),ot.type===n.Element&&this.up();return this},Qe.prototype.dummy=function(){return this},Qe.prototype.node=function(Oe,nt,Je){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),N(nt)||(Je=(ct=[nt,Je])[0],nt=ct[1]),this.currentNode=new I(this,Oe,nt),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=Je&&this.text(Je),this},Qe.prototype.element=function(Oe,nt,Je){var ct,ot,dt,Vt,zt,ti;if(this.currentNode&&this.currentNode.type===n.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Oe)||N(Oe)||K(Oe))for(Vt=this.options.noValidation,this.options.noValidation=!0,(ti=new g(this.options).element("TEMP_ROOT")).element(Oe),this.options.noValidation=Vt,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,Je);return this},Qe.prototype.attribute=function(Oe,nt){var Je;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)),N(Oe))for(Je in Oe)ne.call(Oe,Je)&&this.attribute(Je,Oe[Je]);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},Qe.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},Qe.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},Qe.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},Qe.prototype.raw=function(Oe){var nt;return this.openCurrent(),nt=new F(this,Oe),this.onData(this.writer.raw(nt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Qe.prototype.instruction=function(Oe,nt){var Je,ct,dt,Vt;if(this.openCurrent(),null!=Oe&&(Oe=X(Oe)),null!=nt&&(nt=X(nt)),Array.isArray(Oe))for(Je=0,dt=Oe.length;Je<dt;Je++)this.instruction(ct=Oe[Je]);else if(N(Oe))for(ct in Oe)ne.call(Oe,ct)&&this.instruction(ct,Oe[ct]);else K(nt)&&(nt=nt.apply()),Vt=new j(this,Oe,nt),this.onData(this.writer.processingInstruction(Vt,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Qe.prototype.declaration=function(Oe,nt,Je){var ct;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ct=new x(this,Oe,nt,Je),this.onData(this.writer.declaration(ct,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Qe.prototype.doctype=function(Oe,nt,Je){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,Je),this.currentNode.rootNodeName=Oe,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Qe.prototype.dtdElement=function(Oe,nt){var Je;return this.openCurrent(),Je=new u(this,Oe,nt),this.onData(this.writer.dtdElement(Je,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Qe.prototype.attList=function(Oe,nt,Je,ct,ot){var dt;return this.openCurrent(),dt=new d(this,Oe,nt,Je,ct,ot),this.onData(this.writer.dtdAttList(dt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Qe.prototype.entity=function(Oe,nt){var Je;return this.openCurrent(),Je=new b(this,!1,Oe,nt),this.onData(this.writer.dtdEntity(Je,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Qe.prototype.pEntity=function(Oe,nt){var Je;return this.openCurrent(),Je=new b(this,!0,Oe,nt),this.onData(this.writer.dtdEntity(Je,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Qe.prototype.notation=function(Oe,nt){var Je;return this.openCurrent(),Je=new C(this,Oe,nt),this.onData(this.writer.dtdNotation(Je,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Qe.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},Qe.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Qe.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Qe.prototype.openNode=function(Oe){var Je,ct,ot;if(!Oe.isOpen){if(!this.root&&0===this.currentLevel&&Oe.type===n.Element&&(this.root=Oe),Je="",Oe.type===n.Element){for(ct in this.writerOptions.state=e.OpenTag,Je=this.writer.indent(Oe,this.writerOptions,this.currentLevel)+"<"+Oe.name,ot=Oe.attribs)ne.call(ot,ct)&&(Je+=this.writer.attribute(ot[ct],this.writerOptions,this.currentLevel));Je+=(Oe.children?">":"/>")+this.writer.endline(Oe,this.writerOptions,this.currentLevel),this.writerOptions.state=e.InsideTag}else this.writerOptions.state=e.OpenTag,Je=this.writer.indent(Oe,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Oe.rootNodeName,Oe.pubID&&Oe.sysID?Je+=' PUBLIC "'+Oe.pubID+'" "'+Oe.sysID+'"':Oe.sysID&&(Je+=' SYSTEM "'+Oe.sysID+'"'),Oe.children?(Je+=" [",this.writerOptions.state=e.InsideTag):(this.writerOptions.state=e.CloseTag,Je+=">"),Je+=this.writer.endline(Oe,this.writerOptions,this.currentLevel);return this.onData(Je,this.currentLevel),Oe.isOpen=!0}},Qe.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},Qe.prototype.onData=function(Oe,nt){return this.documentStarted=!0,this.onDataCallback(Oe,nt+1)},Qe.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Qe.prototype.debugInfo=function(Oe){return null==Oe?"":"node: <"+Oe+">"},Qe.prototype.ele=function(){return this.element.apply(this,arguments)},Qe.prototype.nod=function(Oe,nt,Je){return this.node(Oe,nt,Je)},Qe.prototype.txt=function(Oe){return this.text(Oe)},Qe.prototype.dat=function(Oe){return this.cdata(Oe)},Qe.prototype.com=function(Oe){return this.comment(Oe)},Qe.prototype.ins=function(Oe,nt){return this.instruction(Oe,nt)},Qe.prototype.dec=function(Oe,nt,Je){return this.declaration(Oe,nt,Je)},Qe.prototype.dtd=function(Oe,nt,Je){return this.doctype(Oe,nt,Je)},Qe.prototype.e=function(Oe,nt,Je){return this.element(Oe,nt,Je)},Qe.prototype.n=function(Oe,nt,Je){return this.node(Oe,nt,Je)},Qe.prototype.t=function(Oe){return this.text(Oe)},Qe.prototype.d=function(Oe){return this.cdata(Oe)},Qe.prototype.c=function(Oe){return this.comment(Oe)},Qe.prototype.r=function(Oe){return this.raw(Oe)},Qe.prototype.i=function(Oe,nt){return this.instruction(Oe,nt)},Qe.prototype.att=function(){return this.currentNode&&this.currentNode.type===n.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Qe.prototype.a=function(){return this.currentNode&&this.currentNode.type===n.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Qe.prototype.ent=function(Oe,nt){return this.entity(Oe,nt)},Qe.prototype.pent=function(Oe,nt){return this.pEntity(Oe,nt)},Qe.prototype.not=function(Oe,nt){return this.notation(Oe,nt)},Qe}()}).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(I,j,F){var Z,le,q,X;if(f.__super__.constructor.call(this,I),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!=F&&this.attribute(F),I.type===n.Document&&(this.isRoot=!0,this.documentObject=I,I.rootObject=this,I.children))for(le=0,q=(X=I.children).length;le<q;le++)if((Z=X[le]).type===n.DocType){Z.name=this.name;break}}return function(g,f){for(var I in f)w.call(f,I)&&(g[I]=f[I]);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,F,Z;for(j in(F=Object.create(this)).isRoot&&(F.documentObject=null),F.attribs={},Z=this.attribs)w.call(Z,j)&&(F.attribs[j]=Z[j].clone());return F.children=[],this.children.forEach(function(le){var q;return(q=le.clone()).parent=F,F.children.push(q)}),F},f.prototype.attribute=function(I,j){var F;if(null!=I&&(I=d(I)),b(I))for(F in I)w.call(I,F)&&this.attribute(F,I[F]);else u(j)&&(j=j.apply()),this.options.keepNullAttributes&&null==j?this.attribs[I]=new e(this,I,""):null!=j&&(this.attribs[I]=new e(this,I,j));return this},f.prototype.removeAttribute=function(I){var F,Z;if(null==I)throw new Error("Missing attribute name. "+this.debugInfo());if(I=d(I),Array.isArray(I))for(F=0,Z=I.length;F<Z;F++)delete this.attribs[I[F]];else delete this.attribs[I];return this},f.prototype.toString=function(I){return this.options.writer.element(this,this.options.writer.filterOptions(I))},f.prototype.att=function(I,j){return this.attribute(I,j)},f.prototype.a=function(I,j){return this.attribute(I,j)},f.prototype.getAttribute=function(I){return this.attribs.hasOwnProperty(I)?this.attribs[I].value:null},f.prototype.setAttribute=function(I,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getAttributeNode=function(I){return this.attribs.hasOwnProperty(I)?this.attribs[I]:null},f.prototype.setAttributeNode=function(I){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.removeAttributeNode=function(I){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getElementsByTagName=function(I){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getAttributeNS=function(I,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.setAttributeNS=function(I,j,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.removeAttributeNS=function(I,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getAttributeNodeNS=function(I,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.setAttributeNodeNS=function(I){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getElementsByTagNameNS=function(I,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.hasAttribute=function(I){return this.attribs.hasOwnProperty(I)},f.prototype.hasAttributeNS=function(I,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.setIdAttribute=function(I,j){return this.attribs.hasOwnProperty(I)?this.attribs[I].isId:j},f.prototype.setIdAttributeNS=function(I,j,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.setIdAttributeNode=function(I,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getElementsByTagName=function(I){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getElementsByTagNameNS=function(I,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.getElementsByClassName=function(I){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.isEqualNode=function(I){var j,F,Z;if(!f.__super__.isEqualNode.apply(this,arguments).isEqualNode(I)||I.namespaceURI!==this.namespaceURI||I.prefix!==this.prefix||I.localName!==this.localName||I.attribs.length!==this.attribs.length)return!1;for(j=F=0,Z=this.attribs.length-1;0<=Z?F<=Z:F>=Z;j=0<=Z?++F:--F)if(!this.attribs[j].isEqualNode(I.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,I,j,F,Z,le,q,X={}.hasOwnProperty;q=a(3452),le=q.isObject,Z=q.isFunction,F=q.isEmpty,j=q.getValue,b=null,o=null,l=null,v=null,d=null,f=null,I=null,g=null,u=null,e=null,w=null,n=null,G.exports=function(){function K(N){this.parent=N,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),I=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 N;return N=this.parent.children.indexOf(this),this.parent.children[N-1]||null}}),Object.defineProperty(K.prototype,"nextSibling",{get:function(){var N;return N=this.parent.children.indexOf(this),this.parent.children[N+1]||null}}),Object.defineProperty(K.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(K.prototype,"textContent",{get:function(){var N,me,xe,ne,Qe;if(this.nodeType===e.Element||this.nodeType===e.DocumentFragment){for(Qe="",me=0,xe=(ne=this.children).length;me<xe;me++)(N=ne[me]).textContent&&(Qe+=N.textContent);return Qe}return null},set:function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),K.prototype.setParent=function(N){var xe,ne,Qe,Oe;for(this.parent=N,N&&(this.options=N.options,this.stringify=N.stringify),Oe=[],xe=0,ne=(Qe=this.children).length;xe<ne;xe++)Oe.push(Qe[xe].setParent(this));return Oe},K.prototype.element=function(N,me,xe){var ne,Oe,nt,Je,ct,ot,dt,Vt,zt,ti;if(ct=null,null===me&&null==xe&&(me=(Vt=[{},null])[0],xe=Vt[1]),null==me&&(me={}),me=j(me),le(me)||(xe=(zt=[me,xe])[0],me=zt[1]),null!=N&&(N=j(N)),Array.isArray(N))for(Oe=0,ot=N.length;Oe<ot;Oe++)ct=this.element(N[Oe]);else if(Z(N))ct=this.element(N.apply());else if(le(N)){for(Je in N)if(X.call(N,Je))if(Z(ti=N[Je])&&(ti=ti.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===Je.indexOf(this.stringify.convertAttKey))ct=this.attribute(Je.substr(this.stringify.convertAttKey.length),ti);else if(!this.options.separateArrayItems&&Array.isArray(ti)&&F(ti))ct=this.dummy();else if(le(ti)&&F(ti))ct=this.element(Je);else if(this.options.keepNullNodes||null!=ti)if(!this.options.separateArrayItems&&Array.isArray(ti))for(nt=0,dt=ti.length;nt<dt;nt++)(ne={})[Je]=ti[nt],ct=this.element(ne);else le(ti)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===Je.indexOf(this.stringify.convertTextKey)?ct=this.element(ti):(ct=this.element(Je)).element(ti):ct=this.element(Je,ti);else ct=this.dummy()}else ct=this.options.keepNullNodes||null!==xe?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===N.indexOf(this.stringify.convertTextKey)?this.text(xe):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===N.indexOf(this.stringify.convertCDataKey)?this.cdata(xe):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===N.indexOf(this.stringify.convertCommentKey)?this.comment(xe):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===N.indexOf(this.stringify.convertRawKey)?this.raw(xe):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===N.indexOf(this.stringify.convertPIKey)?this.instruction(N.substr(this.stringify.convertPIKey.length),xe):this.node(N,me,xe):this.dummy();if(null==ct)throw new Error("Could not create any elements with: "+N+". "+this.debugInfo());return ct},K.prototype.insertBefore=function(N,me,xe){var ne,Qe,Oe,nt,Je;if(N?.type)return nt=me,(Oe=N).setParent(this),nt?(Qe=children.indexOf(nt),Je=children.splice(Qe),children.push(Oe),Array.prototype.push.apply(children,Je)):children.push(Oe),Oe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(N));return Qe=this.parent.children.indexOf(this),Je=this.parent.children.splice(Qe),ne=this.parent.element(N,me,xe),Array.prototype.push.apply(this.parent.children,Je),ne},K.prototype.insertAfter=function(N,me,xe){var ne,Qe,Oe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(N));return Qe=this.parent.children.indexOf(this),Oe=this.parent.children.splice(Qe+1),ne=this.parent.element(N,me,xe),Array.prototype.push.apply(this.parent.children,Oe),ne},K.prototype.remove=function(){var N;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return N=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[N,N-N+1].concat([])),this.parent},K.prototype.node=function(N,me,xe){var ne,Qe;return null!=N&&(N=j(N)),me||(me={}),me=j(me),le(me)||(xe=(Qe=[me,xe])[0],me=Qe[1]),ne=new b(this,N,me),null!=xe&&ne.text(xe),this.children.push(ne),ne},K.prototype.text=function(N){var me;return le(N)&&this.element(N),me=new I(this,N),this.children.push(me),this},K.prototype.cdata=function(N){var me;return me=new o(this,N),this.children.push(me),this},K.prototype.comment=function(N){var me;return me=new l(this,N),this.children.push(me),this},K.prototype.commentBefore=function(N){var xe,ne;return xe=this.parent.children.indexOf(this),ne=this.parent.children.splice(xe),this.parent.comment(N),Array.prototype.push.apply(this.parent.children,ne),this},K.prototype.commentAfter=function(N){var xe,ne;return xe=this.parent.children.indexOf(this),ne=this.parent.children.splice(xe+1),this.parent.comment(N),Array.prototype.push.apply(this.parent.children,ne),this},K.prototype.raw=function(N){var me;return me=new f(this,N),this.children.push(me),this},K.prototype.dummy=function(){return new u(this)},K.prototype.instruction=function(N,me){var xe,Qe,Oe,nt;if(null!=N&&(N=j(N)),null!=me&&(me=j(me)),Array.isArray(N))for(Oe=0,nt=N.length;Oe<nt;Oe++)this.instruction(xe=N[Oe]);else if(le(N))for(xe in N)X.call(N,xe)&&this.instruction(xe,N[xe]);else Z(me)&&(me=me.apply()),Qe=new g(this,N,me),this.children.push(Qe);return this},K.prototype.instructionBefore=function(N,me){var ne,Qe;return ne=this.parent.children.indexOf(this),Qe=this.parent.children.splice(ne),this.parent.instruction(N,me),Array.prototype.push.apply(this.parent.children,Qe),this},K.prototype.instructionAfter=function(N,me){var ne,Qe;return ne=this.parent.children.indexOf(this),Qe=this.parent.children.splice(ne+1),this.parent.instruction(N,me),Array.prototype.push.apply(this.parent.children,Qe),this},K.prototype.declaration=function(N,me,xe){var ne,Qe;return ne=this.document(),Qe=new v(ne,N,me,xe),0===ne.children.length?ne.children.unshift(Qe):ne.children[0].type===e.Declaration?ne.children[0]=Qe:ne.children.unshift(Qe),ne.root()||ne},K.prototype.dtd=function(N,me){var ne,Qe,Oe,nt,Je,ct,ot,dt,Vt;for(ne=this.document(),Qe=new d(ne,N,me),Oe=nt=0,ct=(dt=ne.children).length;nt<ct;Oe=++nt)if(dt[Oe].type===e.DocType)return ne.children[Oe]=Qe,Qe;for(Oe=Je=0,ot=(Vt=ne.children).length;Je<ot;Oe=++Je)if(Vt[Oe].isRoot)return ne.children.splice(Oe,0,Qe),Qe;return ne.children.push(Qe),Qe},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 N;for(N=this;N;){if(N.type===e.Document)return N.rootObject;if(N.isRoot)return N;N=N.parent}},K.prototype.document=function(){var N;for(N=this;N;){if(N.type===e.Document)return N;N=N.parent}},K.prototype.end=function(N){return this.document().end(N)},K.prototype.prev=function(){var N;if((N=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[N-1]},K.prototype.next=function(){var N;if(-1===(N=this.parent.children.indexOf(this))||N===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[N+1]},K.prototype.importDocument=function(N){var me;return(me=N.root().clone()).parent=this,me.isRoot=!1,this.children.push(me),this},K.prototype.debugInfo=function(N){var me,xe;return null!=(N=N||this.name)||null!=(me=this.parent)&&me.name?null==N?"parent: <"+this.parent.name+">":null!=(xe=this.parent)&&xe.name?"node: <"+N+">, parent: <"+this.parent.name+">":"node: <"+N+">":""},K.prototype.ele=function(N,me,xe){return this.element(N,me,xe)},K.prototype.nod=function(N,me,xe){return this.node(N,me,xe)},K.prototype.txt=function(N){return this.text(N)},K.prototype.dat=function(N){return this.cdata(N)},K.prototype.com=function(N){return this.comment(N)},K.prototype.ins=function(N,me){return this.instruction(N,me)},K.prototype.doc=function(){return this.document()},K.prototype.dec=function(N,me,xe){return this.declaration(N,me,xe)},K.prototype.e=function(N,me,xe){return this.element(N,me,xe)},K.prototype.n=function(N,me,xe){return this.node(N,me,xe)},K.prototype.t=function(N){return this.text(N)},K.prototype.d=function(N){return this.cdata(N)},K.prototype.c=function(N){return this.comment(N)},K.prototype.r=function(N){return this.raw(N)},K.prototype.i=function(N,me){return this.instruction(N,me)},K.prototype.u=function(){return this.up()},K.prototype.importXMLBuilder=function(N){return this.importDocument(N)},K.prototype.replaceChild=function(N,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.removeChild=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.appendChild=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.hasChildNodes=function(){return 0!==this.children.length},K.prototype.cloneNode=function(N){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(N,me){return!0},K.prototype.hasAttributes=function(){return 0!==this.attribs.length},K.prototype.compareDocumentPosition=function(N){var xe;return this===N?0:this.document()!==N.document()?(xe=n.Disconnected|n.ImplementationSpecific,Math.random()<.5?xe|=n.Preceding:xe|=n.Following,xe):this.isAncestor(N)?n.Contains|n.Preceding:this.isDescendant(N)?n.Contains|n.Following:this.isPreceding(N)?n.Preceding:n.Following},K.prototype.isSameNode=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.lookupPrefix=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.isDefaultNamespace=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.lookupNamespaceURI=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.isEqualNode=function(N){var me,xe,ne;if(N.nodeType!==this.nodeType||N.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(N.children[me]))return!1;return!0},K.prototype.getFeature=function(N,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.setUserData=function(N,me,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.getUserData=function(N){throw new Error("This DOM method is not implemented."+this.debugInfo())},K.prototype.contains=function(N){return!!N&&(N===this||this.isDescendant(N))},K.prototype.isDescendant=function(N){var me,ne,Qe,Oe;for(ne=0,Qe=(Oe=this.children).length;ne<Qe;ne++)if(N===(me=Oe[ne])||me.isDescendant(N))return!0;return!1},K.prototype.isAncestor=function(N){return N.isDescendant(this)},K.prototype.isPreceding=function(N){var me,xe;return me=this.treePosition(N),xe=this.treePosition(this),-1!==me&&-1!==xe&&me<xe},K.prototype.isFollowing=function(N){var me,xe;return me=this.treePosition(N),xe=this.treePosition(this),-1!==me&&-1!==xe&&me>xe},K.prototype.treePosition=function(N){var me,xe;return xe=0,me=!1,this.foreachTreeNode(this.document(),function(ne){if(xe++,!me&&ne===N)return me=!0}),me?xe:-1},K.prototype.foreachTreeNode=function(N,me){var xe,ne,Qe,Oe,nt;for(N||(N=this.document()),ne=0,Qe=(Oe=N.children).length;ne<Qe;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,I,j,F,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=[],I=0,F=(le=C.children).length;I<F;I++)q.push(this.writeChildNode(le[I],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,I,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,I=(j=C.children).length;f<I;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 I,j,F,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===(I=C.children.length)?null:C.children[0],0===I||C.children.every(function(N){return(N.type===n.Text||N.type===n.Raw)&&""===N.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!==I||j.type!==n.Text&&j.type!==n.Raw||null==j.value){for(this.stream.write(">"+this.endline(C,x,w)),x.state=e.InsideTag,F=0,Z=(K=C.children).length;F<Z;F++)this.writeChildNode(K[F],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,N,me;for(K in X||(X={}),this.options=X,N=X.writer||{})le.call(N,K)&&(me=N[K],this["_"+K]=this[K],this[K]=me)}return q.prototype.filterOptions=function(X){var K,N,me,xe,ne,Qe,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!=(N=X.indent)?N:"  ",K.newline=null!=(me=X.newline)?me:"\n",K.offset=null!=(xe=X.offset)?xe:0,K.dontPrettyTextNodes=null!=(ne=null!=(Qe=X.dontPrettyTextNodes)?Qe: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,N){var me;return!K.pretty||K.suppressPrettyCount?"":K.pretty&&(me=(N||0)+K.offset+1)>0?new Array(me).join(K.indent):""},q.prototype.endline=function(X,K,N){return!K.pretty||K.suppressPrettyCount?"":K.newline},q.prototype.attribute=function(X,K,N){var me;return this.openAttribute(X,K,N),me=" "+X.name+'="'+X.value+'"',this.closeAttribute(X,K,N),me},q.prototype.cdata=function(X,K,N){var me;return this.openNode(X,K,N),K.state=e.OpenTag,me=this.indent(X,K,N)+"<![CDATA[",K.state=e.InsideTag,me+=X.value,K.state=e.CloseTag,me+="]]>"+this.endline(X,K,N),K.state=e.None,this.closeNode(X,K,N),me},q.prototype.comment=function(X,K,N){var me;return this.openNode(X,K,N),K.state=e.OpenTag,me=this.indent(X,K,N)+"\x3c!-- ",K.state=e.InsideTag,me+=X.value,K.state=e.CloseTag,me+=" --\x3e"+this.endline(X,K,N),K.state=e.None,this.closeNode(X,K,N),me},q.prototype.declaration=function(X,K,N){var me;return this.openNode(X,K,N),K.state=e.OpenTag,me=this.indent(X,K,N)+"<?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,N),K.state=e.None,this.closeNode(X,K,N),me},q.prototype.docType=function(X,K,N){var xe,ne,Qe,Oe;if(N||(N=0),this.openNode(X,K,N),K.state=e.OpenTag,Qe=this.indent(X,K,N),Qe+="<!DOCTYPE "+X.root().name,X.pubID&&X.sysID?Qe+=' PUBLIC "'+X.pubID+'" "'+X.sysID+'"':X.sysID&&(Qe+=' SYSTEM "'+X.sysID+'"'),X.children.length>0){for(Qe+=" [",Qe+=this.endline(X,K,N),K.state=e.InsideTag,xe=0,ne=(Oe=X.children).length;xe<ne;xe++)Qe+=this.writeChildNode(Oe[xe],K,N+1);K.state=e.CloseTag,Qe+="]"}return K.state=e.CloseTag,Qe+=K.spaceBeforeSlash+">",Qe+=this.endline(X,K,N),K.state=e.None,this.closeNode(X,K,N),Qe},q.prototype.element=function(X,K,N){var xe,ne,Qe,Oe,nt,Je,ct,ot,dt,Vt,zt,ti,mi;for(ot in N||(N=0),dt=!1,Vt="",this.openNode(X,K,N),K.state=e.OpenTag,Vt+=this.indent(X,K,N)+"<"+X.name,zt=X.attribs)le.call(zt,ot)&&(Vt+=this.attribute(zt[ot],K,N));if(Qe=0===(ne=X.children.length)?null:X.children[0],0===ne||X.children.every(function(Yt){return(Yt.type===n.Text||Yt.type===n.Raw)&&""===Yt.value}))K.allowEmpty?(Vt+=">",K.state=e.CloseTag,Vt+="</"+X.name+">"+this.endline(X,K,N)):(K.state=e.CloseTag,Vt+=K.spaceBeforeSlash+"/>"+this.endline(X,K,N));else if(!K.pretty||1!==ne||Qe.type!==n.Text&&Qe.type!==n.Raw||null==Qe.value){if(K.dontPrettyTextNodes)for(Oe=0,Je=(ti=X.children).length;Oe<Je;Oe++)if(((xe=ti[Oe]).type===n.Text||xe.type===n.Raw)&&null!=xe.value){K.suppressPrettyCount++,dt=!0;break}for(Vt+=">"+this.endline(X,K,N),K.state=e.InsideTag,nt=0,ct=(mi=X.children).length;nt<ct;nt++)Vt+=this.writeChildNode(xe=mi[nt],K,N+1);K.state=e.CloseTag,Vt+=this.indent(X,K,N)+"</"+X.name+">",dt&&K.suppressPrettyCount--,Vt+=this.endline(X,K,N),K.state=e.None}else Vt+=">",K.state=e.InsideTag,K.suppressPrettyCount++,dt=!0,Vt+=this.writeChildNode(Qe,K,N+1),K.suppressPrettyCount--,dt=!1,K.state=e.CloseTag,Vt+="</"+X.name+">"+this.endline(X,K,N);return this.closeNode(X,K,N),Vt},q.prototype.writeChildNode=function(X,K,N){switch(X.type){case n.CData:return this.cdata(X,K,N);case n.Comment:return this.comment(X,K,N);case n.Element:return this.element(X,K,N);case n.Raw:return this.raw(X,K,N);case n.Text:return this.text(X,K,N);case n.ProcessingInstruction:return this.processingInstruction(X,K,N);case n.Dummy:return"";case n.Declaration:return this.declaration(X,K,N);case n.DocType:return this.docType(X,K,N);case n.AttributeDeclaration:return this.dtdAttList(X,K,N);case n.ElementDeclaration:return this.dtdElement(X,K,N);case n.EntityDeclaration:return this.dtdEntity(X,K,N);case n.NotationDeclaration:return this.dtdNotation(X,K,N);default:throw new Error("Unknown XML node type: "+X.constructor.name)}},q.prototype.processingInstruction=function(X,K,N){var me;return this.openNode(X,K,N),K.state=e.OpenTag,me=this.indent(X,K,N)+"<?",K.state=e.InsideTag,me+=X.target,X.value&&(me+=" "+X.value),K.state=e.CloseTag,me+=K.spaceBeforeSlash+"?>",me+=this.endline(X,K,N),K.state=e.None,this.closeNode(X,K,N),me},q.prototype.raw=function(X,K,N){var me;return this.openNode(X,K,N),K.state=e.OpenTag,me=this.indent(X,K,N),K.state=e.InsideTag,me+=X.value,K.state=e.CloseTag,me+=this.endline(X,K,N),K.state=e.None,this.closeNode(X,K,N),me},q.prototype.text=function(X,K,N){var me;return this.openNode(X,K,N),K.state=e.OpenTag,me=this.indent(X,K,N),K.state=e.InsideTag,me+=X.value,K.state=e.CloseTag,me+=this.endline(X,K,N),K.state=e.None,this.closeNode(X,K,N),me},q.prototype.dtdAttList=function(X,K,N){var me;return this.openNode(X,K,N),K.state=e.OpenTag,me=this.indent(X,K,N)+"<!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,N),K.state=e.None,this.closeNode(X,K,N),me},q.prototype.dtdElement=function(X,K,N){var me;return this.openNode(X,K,N),K.state=e.OpenTag,me=this.indent(X,K,N)+"<!ELEMENT",K.state=e.InsideTag,me+=" "+X.name+" "+X.value,K.state=e.CloseTag,me+=K.spaceBeforeSlash+">"+this.endline(X,K,N),K.state=e.None,this.closeNode(X,K,N),me},q.prototype.dtdEntity=function(X,K,N){var me;return this.openNode(X,K,N),K.state=e.OpenTag,me=this.indent(X,K,N)+"<!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,N),K.state=e.None,this.closeNode(X,K,N),me},q.prototype.dtdNotation=function(X,K,N){var me;return this.openNode(X,K,N),K.state=e.OpenTag,me=this.indent(X,K,N)+"<!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,N),K.state=e.None,this.closeNode(X,K,N),me},q.prototype.openNode=function(X,K,N){},q.prototype.closeNode=function(X,K,N){},q.prototype.openAttribute=function(X,K,N){},q.prototype.closeAttribute=function(X,K,N){},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,I){var j,F;if(null==w)throw new Error("Root element needs a name.");return I=b({},g,f,I),F=(j=new l(I)).element(w),I.headless||(j.declaration(I),(null!=I.pubID||null!=I.sysID)&&j.dtd(I)),F},G.exports.begin=function(w,g,f){var I;return C(w)&&(g=(I=[w,g])[0],f=I[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:()=>W,xE:()=>dt,RB:()=>Vt});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 F(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 F{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(),pt=this.scheduler,Pe=Be.length;let Xe;if(this.closed)throw new Z.N;if(this.isStopped||this.hasError?Xe=x.w.EMPTY:(this.observers.push(He),Xe=new le.W(this,He)),pt&&He.add(He=new j(He,pt)),Te)for(let ht=0;ht<Pe&&!He.closed;ht++)He.next(Be[ht]);else for(let ht=0;ht<Pe&&!He.closed;ht++)He.next(Be[ht].value);return this.hasError?He.error(this.thrownError):this.isStopped&&He.complete(),Xe}_getNow(){return(this.scheduler||C).now()}_trimBufferThenGetEvents(){const He=this._getNow(),Te=this._bufferSize,Be=this._windowTime,pt=this._events,Pe=pt.length;let Xe=0;for(;Xe<Pe&&!(He-pt[Xe].time<Be);)Xe++;return Pe>Te&&(Xe=Math.max(Xe,Pe-Te)),Xe>0&&pt.splice(0,Xe),pt}}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 N=a(6498),xe=a(1307),ne=a(2198),Qe=a(2986),Oe=a(6895);class nt{constructor(){}loadScript(He,Te,Be,pt=null){if(typeof document<"u"&&!document.getElementById(He)){let Pe=document.createElement("script");Pe.async=!0,Pe.src=Te,Pe.onload=Be,pt||(pt=document.head),pt.appendChild(Pe)}}}class Je{}const ct={oneTapEnabled:!0};let ot=(()=>{class z 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,pt)=>{try{this.loadScript(z.PROVIDER_ID,"https://accounts.google.com/gsi/client",()=>{if(google.accounts.id.initialize({client_id:this.clientId,auto_select:Te,callback:({credential:Pe})=>{const Xe=this.createSocialUser(Pe);this._socialUser.next(Xe)},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(Xe=>Xe).join(" "):this.initOptions.scopes;this._tokenClient=google.accounts.oauth2.initTokenClient({client_id:this.clientId,scope:Pe,prompt:this.initOptions.prompt,callback:Xe=>{Xe.error?this._accessToken.error({code:Xe.error,description:Xe.error_description,uri:Xe.error_uri}):this._accessToken.next(Xe.access_token)}})}Be()})}catch(Pe){pt(Pe)}})}getLoginStatus(){return new Promise((Te,Be)=>{this._socialUser.value?Te(this._socialUser.value):Be(`No user is currently logged in with ${z.PROVIDER_ID}`)})}refreshToken(){return new Promise((Te,Be)=>{google.accounts.id.revoke(this._socialUser.value.id,pt=>{pt.error?Be(pt.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,Qe.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 Je;Be.idToken=Te;const pt=this.decodeJwt(Te);return Be.id=pt.sub,Be.name=pt.name,Be.email=pt.email,Be.photoUrl=pt.picture,Be.firstName=pt.given_name,Be.lastName=pt.family_name,Be}decodeJwt(Te){const pt=Te.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),Pe=decodeURIComponent(window.atob(pt).split("").map(function(Xe){return"%"+("00"+Xe.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(Pe)}}return z.PROVIDER_ID="GOOGLE",z})(),dt=(()=>{class z{get authState(){return this._authState.asObservable()}get initState(){return this._initState.asObservable()}constructor(Te,Be,pt){this._ngZone=Be,this._injector=pt,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(pt=>{this.providers.set(pt.id,"prototype"in pt.provider?this._injector.get(pt.provider):pt.provider)}),Promise.all(Array.from(this.providers.values()).map(pt=>pt.initialize(this.autoLogin))).then(()=>{if(this.autoLogin){const pt=[];let Pe=!1;this.providers.forEach((Xe,ht)=>{const ee=Xe.getLoginStatus();pt.push(ee),ee.then(k=>{this.setUser(k,ht),Pe=!0}).catch(console.debug)}),Promise.all(pt).catch(()=>{Pe||(this._user=null,this._authState.next(null))})}this.providers.forEach((pt,Pe)=>{(function me(z){return!!z&&(z instanceof N.y||"function"==typeof z.lift&&"function"==typeof z.subscribe)})(pt.changeUser)&&pt.changeUser.subscribe(Xe=>{this._ngZone.run(()=>{this.setUser(Xe,Pe)})})})}).catch(pt=>{Be(pt)}).finally(()=>{this.initialized=!0,this._initState.next(this.initialized),this._initState.complete()})}getAccessToken(Te){var Be=this;return(0,n.Z)(function*(){const pt=Be.providers.get(Te);if(!Be.initialized)throw z.ERR_NOT_INITIALIZED;if(!pt)throw z.ERR_LOGIN_PROVIDER_NOT_FOUND;if(!(pt instanceof ot))throw z.ERR_NOT_SUPPORTED_FOR_ACCESS_TOKEN;return yield pt.getAccessToken()})()}refreshAuthToken(Te){return new Promise((Be,pt)=>{if(this.initialized){const Pe=this.providers.get(Te);Pe?"function"!=typeof Pe.refreshToken?pt(z.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN):Pe.refreshToken().then(Xe=>{this.setUser(Xe,Te),Be()}).catch(Xe=>{pt(Xe)}):pt(z.ERR_LOGIN_PROVIDER_NOT_FOUND)}else pt(z.ERR_NOT_INITIALIZED)})}refreshAccessToken(Te){return new Promise((Be,pt)=>{if(this.initialized)if(Te!==ot.PROVIDER_ID)pt(z.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN);else{const Pe=this.providers.get(Te);Pe instanceof ot?Pe.revokeAccessToken().then(Be).catch(pt):pt(z.ERR_LOGIN_PROVIDER_NOT_FOUND)}else pt(z.ERR_NOT_INITIALIZED)})}signIn(Te,Be){return new Promise((pt,Pe)=>{if(this.initialized){let Xe=this.providers.get(Te);Xe?Xe.signIn(Be).then(ht=>{this.setUser(ht,Te),pt(ht)}).catch(ht=>{Pe(ht)}):Pe(z.ERR_LOGIN_PROVIDER_NOT_FOUND)}else Pe(z.ERR_NOT_INITIALIZED)})}signOut(Te=!1){return new Promise((Be,pt)=>{if(this.initialized)if(this._user){let Xe=this.providers.get(this._user.provider);Xe?Xe.signOut(Te).then(()=>{Be(),this.setUser(null)}).catch(ht=>{pt(ht)}):pt(z.ERR_LOGIN_PROVIDER_NOT_FOUND)}else pt(z.ERR_NOT_LOGGED_IN);else pt(z.ERR_NOT_INITIALIZED)})}setUser(Te,Be){Te&&Be&&(Te.provider=Be),this._user=Te,this._authState.next(Te)}}return z.ERR_LOGIN_PROVIDER_NOT_FOUND="Login provider not found",z.ERR_NOT_LOGGED_IN="Not logged in",z.ERR_NOT_INITIALIZED="Login providers not ready yet. Are there errors on your console?",z.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN="Chosen login provider is not supported for refreshing a token",z.ERR_NOT_SUPPORTED_FOR_ACCESS_TOKEN="Chosen login provider is not supported for getting an access token",z.\u0275fac=function(Te){return new(Te||z)(e.\u0275\u0275inject("SocialAuthServiceConfig"),e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(e.Injector))},z.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),Vt=(()=>{class z{static initialize(Te){return{ngModule:z,providers:[dt,{provide:"SocialAuthServiceConfig",useValue:Te}]}}constructor(Te){if(Te)throw new Error("SocialLoginModule is already loaded. Import it in the AppModule only")}}return z.\u0275fac=function(Te){return new(Te||z)(e.\u0275\u0275inject(z,12))},z.\u0275mod=e.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=e.\u0275\u0275defineInjector({providers:[dt],imports:[Oe.CommonModule]}),z})(),Ae=(()=>{class z{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,Qe.q)(1)).subscribe(()=>{Promise.resolve(this.width).then(pt=>{pt>"400"||pt<"200"&&""!=pt?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 z.\u0275fac=function(Te){return new(Te||z)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(dt))},z.\u0275dir=e.\u0275\u0275defineDirective({type:z,selectors:[["asl-google-signin-button"]],inputs:{type:"type",size:"size",text:"text",shape:"shape",theme:"theme",logo_alignment:"logo_alignment",width:"width",locale:"locale"}}),z})(),W=(()=>{class z{}return z.\u0275fac=function(Te){return new(Te||z)},z.\u0275mod=e.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=e.\u0275\u0275defineInjector({}),z})()},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,N){return{type:7,name:K,definitions:N,options:{}}}function v(K,N=null){return{type:4,styles:N,timings:K}}function d(K,N=null){return{type:3,steps:K,options:N}}function u(K,N=null){return{type:2,steps:K,options:N}}function b(K){return{type:6,styles:K,offset:null}}function C(K,N,me){return{type:0,name:K,styles:N,options:me}}function w(K,N,me=null){return{type:1,expr:K,animation:N,options:me}}function f(K=null){return{type:9,options:K}}function j(K,N,me=null){return{type:11,selector:K,animation:N,options:me}}function Z(K){Promise.resolve().then(K)}class le{constructor(N=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=N+me}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}onStart(N){this._originalOnStartFns.push(N),this._onStartFns.push(N)}onDone(N){this._originalOnDoneFns.push(N),this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Z(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(N=>N()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(N=>N()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(N){this._position=this.totalTime?N*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(N){const me="start"==N?this._onStartFns:this._onDoneFns;me.forEach(xe=>xe()),me.length=0}}class q{constructor(N){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=N;let me=0,xe=0,ne=0;const Qe=this.players.length;0==Qe?Z(()=>this._onFinish()):this.players.forEach(Oe=>{Oe.onDone(()=>{++me==Qe&&this._onFinish()}),Oe.onDestroy(()=>{++xe==Qe&&this._onDestroy()}),Oe.onStart(()=>{++ne==Qe&&this._onStart()})}),this.totalTime=this.players.reduce((Oe,nt)=>Math.max(Oe,nt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}init(){this.players.forEach(N=>N.init())}onStart(N){this._onStartFns.push(N)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(N=>N()),this._onStartFns=[])}onDone(N){this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(N=>N.play())}pause(){this.players.forEach(N=>N.pause())}restart(){this.players.forEach(N=>N.restart())}finish(){this._onFinish(),this.players.forEach(N=>N.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(N=>N.destroy()),this._onDestroyFns.forEach(N=>N()),this._onDestroyFns=[])}reset(){this.players.forEach(N=>N.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(N){const me=N*this.totalTime;this.players.forEach(xe=>{const ne=xe.totalTime?Math.min(1,me/xe.totalTime):1;xe.setPosition(ne)})}getPosition(){const N=this.players.reduce((me,xe)=>null===me||xe.totalTime>me.totalTime?xe:me,null);return null!=N?N.getPosition():0}beforeDestroy(){this.players.forEach(N=>{N.beforeDestroy&&N.beforeDestroy()})}triggerCallback(N){const me="start"==N?this._onStartFns:this._onDoneFns;me.forEach(xe=>xe()),me.length=0}}const X="!"},2687:(G,P,a)=>{"use strict";a.d(P,{Em:()=>Vt,Kd:()=>Rt,X6:()=>qe,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),I=a(1307),j=a(5778),F=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 Vt 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 Yt(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===z(Ee)||!this.isVisible(Ee)))return!1;let Re=re.nodeName.toLowerCase(),We=z(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")||W(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 W(ze){if(!ze.hasAttribute("tabindex")||void 0===ze.tabIndex)return!1;let ue=ze.getAttribute("tabindex");return!(!ue||isNaN(parseInt(ue,10)))}function z(ze){if(!W(ze))return null;const ue=parseInt(ze.getAttribute("tabindex")||"",10);return isNaN(ue)?-1:ue}class pt{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 pt(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 qe(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 fe=new e.InjectionToken("cdk-input-modality-detector-options"),ke={ignoreKeys:[b.zL,b.jx,b.b2,b.MW,b.JU]},Tt=(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(Wt=>Wt===xt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,o.sA)(xt))},this._onMousedown=xt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(qe(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,I.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,j.x)()),re.isBrowser&&Ee.runOutsideAngular(()=>{Re.addEventListener("keydown",this._onKeydown,Tt),Re.addEventListener("mousedown",this._onMousedown,Tt),Re.addEventListener("touchstart",this._onTouchstart,Tt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Tt),document.removeEventListener("mousedown",this._onMousedown,Tt),document.removeEventListener("touchstart",this._onTouchstart,Tt))}}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(fe,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(Wt=>this._currentResolve=Wt)),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"),di=(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=Wt=>{for(let Mt=(0,o.sA)(Wt);Mt;Mt=Mt.parentElement)"focus"===Wt.type?this._onFocus(Wt,Mt):this._onBlur(Wt,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 Wt={checkChildren:Ee,subject:new l.xQ,rootNode:We};return this._elementInfo.set(Re,Wt),this._registerGlobalListeners(Wt),Wt.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(([Wt,wt])=>this._originChanged(Wt,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,di),Ee.addEventListener("blur",this._rootNodeFocusAndBlurListener,di)}),this._rootNodeFocusListenerCount.set(Ee,Re+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,F.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,di),Ee.removeEventListener("blur",this._rootNodeFocusAndBlurListener,di),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 Qt="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,Qt,Ci),this._hasCheckedHighContrastMode=!0;const Ee=this.getHighContrastMode();1===Ee?re.add(_i,Qt):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,I,j=!0,F){this._multiple=f,this._emitChanges=j,this.compareWith=F,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new n.xQ,I&&I.length&&(f?I.forEach(Z=>this._markSelected(Z)):this._markSelected(I[0]),this._selectedToEmit.length=0)}select(...f){this._verifyValueAssignment(f),f.forEach(j=>this._markSelected(j));const I=this._hasQueuedChanges();return this._emitChangeEvent(),I}deselect(...f){this._verifyValueAssignment(f),f.forEach(j=>this._unmarkSelected(j));const I=this._hasQueuedChanges();return this._emitChangeEvent(),I}setSelection(...f){this._verifyValueAssignment(f);const I=this.selected,j=new Set(f);f.forEach(Z=>this._markSelected(Z)),I.filter(Z=>!j.has(Z)).forEach(Z=>this._unmarkSelected(Z));const F=this._hasQueuedChanges();return this._emitChangeEvent(),F}toggle(f){return this.isSelected(f)?this.deselect(f):this.select(f)}clear(f=!0){this._unmarkAll();const I=this._hasQueuedChanges();return f&&this._emitChangeEvent(),I}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 I of this._selection)if(this.compareWith(f,I))return I;return f}return f}}let x=(()=>{class g{constructor(){this._listeners=[]}notify(I,j){for(let F of this._listeners)F(I,j)}listen(I){return this._listeners.push(I),()=>{this._listeners=this._listeners.filter(j=>I!==j)}}ngOnDestroy(){this._listeners=[]}}return g.\u0275fac=function(I){return new(I||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:()=>F,VM:()=>I,Vb:()=>tr,Z:()=>Nt,aO:()=>zt,b2:()=>_n,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,I=34,j=35,F=36,Z=37,le=38,q=39,X=40,ne=48,zt=57,lt=65,Nt=90,at=91,_n=224;function tr(wi,...qi){return qi.length?qi.some(Zn=>wi[Zn]):wi.altKey||wi.shiftKey||wi.ctrlKey||wi.metaKey}},2289:(G,P,a)=>{"use strict";a.d(P,{Yg:()=>X,u3:()=>N});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 F,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{F||(F=document.createElement("style"),F.setAttribute("type","text/css"),document.head.appendChild(F)),F.sheet&&(F.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,Qe){this._mediaMatcher=ne,this._zone=Qe,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(Je=>this._registerQuery(Je).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)(Je=>{const ct={matches:!1,breakpoints:{}};return Je.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 Qe=this._mediaMatcher.matchMedia(ne),nt={observable:new d.y(Je=>{const ct=ot=>this._zone.run(()=>Je.next(ot));return Qe.addListener(ct),()=>{Qe.removeListener(ct)}}).pipe((0,w.O)(Qe),(0,x.U)(({matches:Je})=>({query:ne,matches:Je})),(0,g.R)(this._destroySubject)),mql:Qe};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 N={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(I=>{const F=this._observeElement(f).subscribe(I);return()=>{F.unsubscribe(),this._unobserveElement(f)}})}_observeElement(g){if(this._observedElements.has(g))this._observedElements.get(g).count++;else{const f=new l.xQ,I=this._mutationObserverFactory.create(j=>f.next(j));I&&I.observe(g,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(g,{observer:I,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:I}=this._observedElements.get(g);f&&f.disconnect(),I.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,I){this._contentObserver=g,this._elementRef=f,this._ngZone=I,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:()=>pt,pI:()=>ee,xu:()=>ht});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),I=a(6787),j=a(9521);const F=(0,v.Mq)();class Z{constructor(fe,ke){this._viewportRuler=fe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ke}attach(){}enable(){if(this._canBeEnabled()){const fe=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=fe.style.left||"",this._previousHTMLStyles.top=fe.style.top||"",fe.style.left=(0,l.HM)(-this._previousScrollPosition.left),fe.style.top=(0,l.HM)(-this._previousScrollPosition.top),fe.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const fe=this._document.documentElement,gt=fe.style,Tt=this._document.body.style,Bt=gt.scrollBehavior||"",st=Tt.scrollBehavior||"";this._isEnabled=!1,gt.left=this._previousHTMLStyles.left,gt.top=this._previousHTMLStyles.top,fe.classList.remove("cdk-global-scrollblock"),F&&(gt.scrollBehavior=Tt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),F&&(gt.scrollBehavior=Bt,Tt.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(fe,ke,gt,Tt){this._scrollDispatcher=fe,this._ngZone=ke,this._viewportRuler=gt,this._config=Tt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(fe){this._overlayRef=fe}enable(){if(this._scrollSubscription)return;const fe=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=fe.subscribe(()=>{const ke=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ke-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=fe.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,fe){return fe.some(ke=>Ue.bottom<ke.top||Ue.top>ke.bottom||Ue.right<ke.left||Ue.left>ke.right)}function N(Ue,fe){return fe.some(ke=>Ue.top<ke.top||Ue.bottom>ke.bottom||Ue.left<ke.left||Ue.right>ke.right)}class me{constructor(fe,ke,gt,Tt){this._scrollDispatcher=fe,this._viewportRuler=ke,this._ngZone=gt,this._config=Tt,this._scrollSubscription=null}attach(fe){this._overlayRef=fe}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:Tt}=this._viewportRuler.getViewportSize();K(ke,[{width:gt,height:Tt,bottom:Tt,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,Tt,Bt){this._scrollDispatcher=ke,this._viewportRuler=gt,this._ngZone=Tt,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(fe){if(this.scrollStrategy=new X,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,fe){const ke=Object.keys(fe);for(const gt of ke)void 0!==fe[gt]&&(this[gt]=fe[gt])}}}class nt{constructor(fe,ke){this.connectionPair=fe,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=Tt=>{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(Tt)):Nt.next(Tt);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})(),Vt=(()=>{class Ue extends ot{constructor(ke,gt,Tt){super(ke),this._platform=gt,this._ngZone=Tt,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 Tt=this._document.querySelectorAll(`.${ke}[platform="server"], .${ke}[platform="test"]`);for(let Bt=0;Bt<Tt.length;Bt++)Tt[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(fe,ke,gt,Tt,Bt,st,Nt,at,Lt,Rt=!1){this._portalOutlet=fe,this._host=ke,this._pane=gt,this._config=Tt,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,Tt.scrollStrategy&&(this._scrollStrategy=Tt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Tt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(fe){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ke=this._portalOutlet.attach(fe);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 fe=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),fe}dispose(){const fe=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,fe&&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(fe){fe!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=fe,this.hasAttached()&&(fe.attach(this),this.updatePosition()))}updateSize(fe){this._config={...this._config,...fe},this._updateElementSize()}setDirection(fe){this._config={...this._config,direction:fe},this._updateElementDirection()}addPanelClass(fe){this._pane&&this._toggleClasses(this._pane,fe,!0)}removePanelClass(fe){this._pane&&this._toggleClasses(this._pane,fe,!1)}getDirection(){const fe=this._config.direction;return fe?"string"==typeof fe?fe:fe.value:"ltr"}updateScrollStrategy(fe){fe!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=fe,this.hasAttached()&&(fe.attach(this),fe.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const fe=this._pane.style;fe.width=(0,l.HM)(this._config.width),fe.height=(0,l.HM)(this._config.height),fe.minWidth=(0,l.HM)(this._config.minWidth),fe.minHeight=(0,l.HM)(this._config.minHeight),fe.maxWidth=(0,l.HM)(this._config.maxWidth),fe.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(fe){this._pane.style.pointerEvents=fe?"":"none"}_attachBackdrop(){const fe="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(fe)})}):this._backdropElement.classList.add(fe)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const fe=this._backdropElement;if(fe){if(this._animationsDisabled)return void this._disposeBackdrop(fe);fe.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{fe.addEventListener("transitionend",this._backdropTransitionendHandler)}),fe.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(fe)},500))}}_toggleClasses(fe,ke,gt){const Tt=(0,l.Eq)(ke||[]).filter(Bt=>!!Bt);Tt.length&&(gt?fe.classList.add(...Tt):fe.classList.remove(...Tt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const fe=this._ngZone.onStable.pipe((0,b.R)((0,I.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()),fe.unsubscribe())})})}_disposeScrollStrategy(){const fe=this._scrollStrategy;fe&&(fe.disable(),fe.detach&&fe.detach())}_disposeBackdrop(fe){fe&&(fe.removeEventListener("click",this._backdropClickHandler),fe.removeEventListener("transitionend",this._backdropTransitionendHandler),fe.remove(),this._backdropElement===fe&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const mi="cdk-overlay-connected-position-bounding-box",Yt=/([A-Za-z%]+)$/;class Jt{get positions(){return this._preferredPositions}constructor(fe,ke,gt,Tt,Bt){this._viewportRuler=ke,this._document=gt,this._platform=Tt,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(fe)}attach(fe){this._validatePositions(),fe.hostElement.classList.add(mi),this._overlayRef=fe,this._boundingBox=fe.hostElement,this._pane=fe.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 fe=this._originRect,ke=this._overlayRect,gt=this._viewportRect,Tt=this._containerRect,Bt=[];let st;for(let Nt of this._preferredPositions){let at=this._getOriginPoint(fe,Tt,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 fe=this._lastPosition;if(fe){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,fe);this._applyPosition(fe,ke)}else this.apply()}withScrollableContainers(fe){return this._scrollables=fe,this}withPositions(fe){return this._preferredPositions=fe,-1===fe.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(fe){return this._viewportMargin=fe,this}withFlexibleDimensions(fe=!0){return this._hasFlexibleDimensions=fe,this}withGrowAfterOpen(fe=!0){return this._growAfterOpen=fe,this}withPush(fe=!0){return this._canPush=fe,this}withLockedPosition(fe=!0){return this._positionLocked=fe,this}setOrigin(fe){return this._origin=fe,this}withDefaultOffsetX(fe){return this._offsetX=fe,this}withDefaultOffsetY(fe){return this._offsetY=fe,this}withTransformOriginOn(fe){return this._transformOriginSelector=fe,this}_getOriginPoint(fe,ke,gt){let Tt,Bt;if("center"==gt.originX)Tt=fe.left+fe.width/2;else{const st=this._isRtl()?fe.right:fe.left,Nt=this._isRtl()?fe.left:fe.right;Tt="start"==gt.originX?st:Nt}return ke.left<0&&(Tt-=ke.left),Bt="center"==gt.originY?fe.top+fe.height/2:"top"==gt.originY?fe.top:fe.bottom,ke.top<0&&(Bt-=ke.top),{x:Tt,y:Bt}}_getOverlayPoint(fe,ke,gt){let Tt,Bt;return Tt="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:fe.x+Tt,y:fe.y+Bt}}_getOverlayFit(fe,ke,gt,Tt){const Bt=Fe(ke);let{x:st,y:Nt}=fe,at=this._getOffset(Tt,"x"),Lt=this._getOffset(Tt,"y");at&&(st+=at),Lt&&(Nt+=Lt);let Xt=0-Nt,di=Nt+Bt.height-gt.height,vt=this._subtractOverflows(Bt.width,0-st,st+Bt.width-gt.width),Ut=this._subtractOverflows(Bt.height,Xt,di),Qt=vt*Ut;return{visibleArea:Qt,isCompletelyWithinViewport:Bt.width*Bt.height===Qt,fitsInViewportVertically:Ut===Bt.height,fitsInViewportHorizontally:vt==Bt.width}}_canFitWithFlexibleDimensions(fe,ke,gt){if(this._hasFlexibleDimensions){const Tt=gt.bottom-ke.y,Bt=gt.right-ke.x,st=_t(this._overlayRef.getConfig().minHeight),Nt=_t(this._overlayRef.getConfig().minWidth);return(fe.fitsInViewportVertically||null!=st&&st<=Tt)&&(fe.fitsInViewportHorizontally||null!=Nt&&Nt<=Bt)}return!1}_pushOverlayOnScreen(fe,ke,gt){if(this._previousPushAmount&&this._positionLocked)return{x:fe.x+this._previousPushAmount.x,y:fe.y+this._previousPushAmount.y};const Tt=Fe(ke),Bt=this._viewportRect,st=Math.max(fe.x+Tt.width-Bt.width,0),Nt=Math.max(fe.y+Tt.height-Bt.height,0),at=Math.max(Bt.top-gt.top-fe.y,0),Lt=Math.max(Bt.left-gt.left-fe.x,0);let Rt=0,ai=0;return Rt=Tt.width<=Bt.width?Lt||-st:fe.x<this._viewportMargin?Bt.left-gt.left-fe.x:0,ai=Tt.height<=Bt.height?at||-Nt:fe.y<this._viewportMargin?Bt.top-gt.top-fe.y:0,this._previousPushAmount={x:Rt,y:ai},{x:fe.x+Rt,y:fe.y+ai}}_applyPosition(fe,ke){if(this._setTransformOrigin(fe),this._setOverlayElementStyles(ke,fe),this._setBoundingBoxStyles(ke,fe),fe.panelClass&&this._addPanelClasses(fe.panelClass),this._lastPosition=fe,this._positionChanges.observers.length){const gt=this._getScrollVisibility(),Tt=new nt(fe,gt);this._positionChanges.next(Tt)}this._isInitialRender=!1}_setTransformOrigin(fe){if(!this._transformOriginSelector)return;const ke=this._boundingBox.querySelectorAll(this._transformOriginSelector);let gt,Tt=fe.overlayY;gt="center"===fe.overlayX?"center":this._isRtl()?"start"===fe.overlayX?"right":"left":"start"===fe.overlayX?"left":"right";for(let Bt=0;Bt<ke.length;Bt++)ke[Bt].style.transformOrigin=`${gt} ${Tt}`}_calculateBoundingBoxRect(fe,ke){const gt=this._viewportRect,Tt=this._isRtl();let Bt,st,Nt,Rt,ai,Xt;if("top"===ke.overlayY)st=fe.y,Bt=gt.height-st+this._viewportMargin;else if("bottom"===ke.overlayY)Nt=gt.height-fe.y+2*this._viewportMargin,Bt=gt.height-Nt+this._viewportMargin;else{const di=Math.min(gt.bottom-fe.y+gt.top,fe.y),vt=this._lastBoundingBoxSize.height;Bt=2*di,st=fe.y-di,Bt>vt&&!this._isInitialRender&&!this._growAfterOpen&&(st=fe.y-vt/2)}if("end"===ke.overlayX&&!Tt||"start"===ke.overlayX&&Tt)Xt=gt.width-fe.x+this._viewportMargin,Rt=fe.x-this._viewportMargin;else if("start"===ke.overlayX&&!Tt||"end"===ke.overlayX&&Tt)ai=fe.x,Rt=gt.right-fe.x;else{const di=Math.min(gt.right-fe.x+gt.left,fe.x),vt=this._lastBoundingBoxSize.width;Rt=2*di,ai=fe.x-di,Rt>vt&&!this._isInitialRender&&!this._growAfterOpen&&(ai=fe.x-vt/2)}return{top:st,left:ai,bottom:Nt,right:Xt,width:Rt,height:Bt}}_setBoundingBoxStyles(fe,ke){const gt=this._calculateBoundingBoxRect(fe,ke);!this._isInitialRender&&!this._growAfterOpen&&(gt.height=Math.min(gt.height,this._lastBoundingBoxSize.height),gt.width=Math.min(gt.width,this._lastBoundingBoxSize.width));const Tt={};if(this._hasExactPosition())Tt.top=Tt.left="0",Tt.bottom=Tt.right=Tt.maxHeight=Tt.maxWidth="",Tt.width=Tt.height="100%";else{const Bt=this._overlayRef.getConfig().maxHeight,st=this._overlayRef.getConfig().maxWidth;Tt.height=(0,l.HM)(gt.height),Tt.top=(0,l.HM)(gt.top),Tt.bottom=(0,l.HM)(gt.bottom),Tt.width=(0,l.HM)(gt.width),Tt.left=(0,l.HM)(gt.left),Tt.right=(0,l.HM)(gt.right),Tt.alignItems="center"===ke.overlayX?"center":"end"===ke.overlayX?"flex-end":"flex-start",Tt.justifyContent="center"===ke.overlayY?"center":"bottom"===ke.overlayY?"flex-end":"flex-start",Bt&&(Tt.maxHeight=(0,l.HM)(Bt)),st&&(Tt.maxWidth=(0,l.HM)(st))}this._lastBoundingBoxSize=gt,lt(this._boundingBox.style,Tt)}_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(fe,ke){const gt={},Tt=this._hasExactPosition(),Bt=this._hasFlexibleDimensions,st=this._overlayRef.getConfig();if(Tt){const Rt=this._viewportRuler.getViewportScrollPosition();lt(gt,this._getExactOverlayY(ke,fe,Rt)),lt(gt,this._getExactOverlayX(ke,fe,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&&(Tt?gt.maxHeight=(0,l.HM)(st.maxHeight):Bt&&(gt.maxHeight="")),st.maxWidth&&(Tt?gt.maxWidth=(0,l.HM)(st.maxWidth):Bt&&(gt.maxWidth="")),lt(this._pane.style,gt)}_getExactOverlayY(fe,ke,gt){let Tt={top:"",bottom:""},Bt=this._getOverlayPoint(ke,this._overlayRect,fe);return this._isPushed&&(Bt=this._pushOverlayOnScreen(Bt,this._overlayRect,gt)),"bottom"===fe.overlayY?Tt.bottom=this._document.documentElement.clientHeight-(Bt.y+this._overlayRect.height)+"px":Tt.top=(0,l.HM)(Bt.y),Tt}_getExactOverlayX(fe,ke,gt){let st,Tt={left:"",right:""},Bt=this._getOverlayPoint(ke,this._overlayRect,fe);return this._isPushed&&(Bt=this._pushOverlayOnScreen(Bt,this._overlayRect,gt)),st=this._isRtl()?"end"===fe.overlayX?"left":"right":"end"===fe.overlayX?"right":"left","right"===st?Tt.right=this._document.documentElement.clientWidth-(Bt.x+this._overlayRect.width)+"px":Tt.left=(0,l.HM)(Bt.x),Tt}_getScrollVisibility(){const fe=this._getOriginRect(),ke=this._pane.getBoundingClientRect(),gt=this._scrollables.map(Tt=>Tt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:N(fe,gt),isOriginOutsideView:K(fe,gt),isOverlayClipped:N(ke,gt),isOverlayOutsideView:K(ke,gt)}}_subtractOverflows(fe,...ke){return ke.reduce((gt,Tt)=>gt-Math.max(Tt,0),fe)}_getNarrowedViewportRect(){const fe=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+fe-this._viewportMargin,bottom:gt.top+ke-this._viewportMargin,width:fe-2*this._viewportMargin,height:ke-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(fe,ke){return"x"===ke?null==fe.offsetX?this._offsetX:fe.offsetX:null==fe.offsetY?this._offsetY:fe.offsetY}_validatePositions(){}_addPanelClasses(fe){this._pane&&(0,l.Eq)(fe).forEach(ke=>{""!==ke&&-1===this._appliedPanelClasses.indexOf(ke)&&(this._appliedPanelClasses.push(ke),this._pane.classList.add(ke))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(fe=>{this._pane.classList.remove(fe)}),this._appliedPanelClasses=[])}_getOriginRect(){const fe=this._origin;if(fe instanceof o.ElementRef)return fe.nativeElement.getBoundingClientRect();if(fe instanceof Element)return fe.getBoundingClientRect();const ke=fe.width||0,gt=fe.height||0;return{top:fe.y,bottom:fe.y+gt,left:fe.x,right:fe.x+ke,height:gt,width:ke}}}function lt(Ue,fe){for(let ke in fe)fe.hasOwnProperty(ke)&&(Ue[ke]=fe[ke]);return Ue}function _t(Ue){if("number"!=typeof Ue&&null!=Ue){const[fe,ke]=Ue.split(Yt);return ke&&"px"!==ke?null:parseFloat(fe)}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 z="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(fe){const ke=fe.getConfig();this._overlayRef=fe,this._width&&!ke.width&&fe.updateSize({width:this._width}),this._height&&!ke.height&&fe.updateSize({height:this._height}),fe.hostElement.classList.add(z),this._isDisposed=!1}top(fe=""){return this._bottomOffset="",this._topOffset=fe,this._alignItems="flex-start",this}left(fe=""){return this._xOffset=fe,this._xPosition="left",this}bottom(fe=""){return this._topOffset="",this._bottomOffset=fe,this._alignItems="flex-end",this}right(fe=""){return this._xOffset=fe,this._xPosition="right",this}start(fe=""){return this._xOffset=fe,this._xPosition="start",this}end(fe=""){return this._xOffset=fe,this._xPosition="end",this}width(fe=""){return this._overlayRef?this._overlayRef.updateSize({width:fe}):this._width=fe,this}height(fe=""){return this._overlayRef?this._overlayRef.updateSize({height:fe}):this._height=fe,this}centerHorizontally(fe=""){return this.left(fe),this._xPosition="center",this}centerVertically(fe=""){return this.top(fe),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const fe=this._overlayRef.overlayElement.style,ke=this._overlayRef.hostElement.style,gt=this._overlayRef.getConfig(),{width:Tt,height:Bt,maxWidth:st,maxHeight:Nt}=gt,at=!("100%"!==Tt&&"100vw"!==Tt||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 di="",vt="",Ut="";at?Ut="flex-start":"center"===Rt?(Ut="center",Xt?vt=ai:di=ai):Xt?"left"===Rt||"end"===Rt?(Ut="flex-end",di=ai):("right"===Rt||"start"===Rt)&&(Ut="flex-start",vt=ai):"left"===Rt||"start"===Rt?(Ut="flex-start",di=ai):("right"===Rt||"end"===Rt)&&(Ut="flex-end",vt=ai),fe.position=this._cssPosition,fe.marginLeft=at?"0":di,fe.marginTop=Lt?"0":this._topOffset,fe.marginBottom=this._bottomOffset,fe.marginRight=at?"0":vt,ke.justifyContent=Ut,ke.alignItems=Lt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const fe=this._overlayRef.overlayElement.style,ke=this._overlayRef.hostElement,gt=ke.style;ke.classList.remove(z),gt.justifyContent=gt.alignItems=fe.marginTop=fe.marginBottom=fe.marginLeft=fe.marginRight=fe.position="",this._overlayRef=null,this._isDisposed=!0}}let Te=(()=>{class Ue{constructor(ke,gt,Tt,Bt){this._viewportRuler=ke,this._document=gt,this._platform=Tt,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,pt=(()=>{class Ue{constructor(ke,gt,Tt,Bt,st,Nt,at,Lt,Rt,ai,Xt,di){this.scrollStrategies=ke,this._overlayContainer=gt,this._componentFactoryResolver=Tt,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=di}create(ke){const gt=this._createHostElement(),Tt=this._createPaneElement(gt),Bt=this._createPortalOutlet(Tt),st=new ne(ke);return st.direction=st.direction||this._directionality.value,new ti(Bt,gt,Tt,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(Vt),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"}],Xe=new o.InjectionToken("cdk-connected-overlay-scroll-strategy");let ht=(()=>{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})(),ee=(()=>{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,Tt,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,Tt),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(Tt=>({originX:Tt.originX,originY:Tt.originY,overlayX:Tt.overlayX,overlayY:Tt.overlayY,offsetX:Tt.offsetX||this.offsetX,offsetY:Tt.offsetY||this.offsetY,panelClass:Tt.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 ht?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(pt),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(Xe),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:Xe,deps:[pt],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:[pt,R],imports:[x.vT,w.eL,n.Cl,n.Cl]}),Ue})()},3353:(G,P,a)=>{"use strict";a.d(P,{Mq:()=>I,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 N{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 N.\u0275fac=function(xe){return new(xe||N)(n.\u0275\u0275inject(n.PLATFORM_ID))},N.\u0275prov=n.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();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 N=document.createElement("input");return d=new Set(u.filter(me=>(N.setAttribute("type",me),N.type===me))),d}let C,g,f,F;function w(N){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}()?N:!!N.capture}function I(){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 N=Element.prototype.scrollTo;f=!!N&&!/\{\s*\[native code\]\s*\}/.test(N.toString())}}return f}function j(){if("object"!=typeof document||!document)return 0;if(null==g){const N=document.createElement("div"),me=N.style;N.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",N.appendChild(xe),document.body.appendChild(N),g=0,0===N.scrollLeft&&(N.scrollLeft=1,g=0===N.scrollLeft?1:2),N.remove()}return g}function le(N){if(function Z(){if(null==F){const N=typeof document<"u"?document.head:null;F=!(!N||!N.createShadowRoot&&!N.attachShadow)}return F}()){const me=N.getRootNode?N.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&me instanceof ShadowRoot)return me}return null}function q(){let N=typeof document<"u"&&document?document.activeElement:null;for(;N&&N.shadowRoot;){const me=N.shadowRoot.activeElement;if(me===N)break;N=me}return N}function X(N){return N.composedPath?N.composedPath()[0]:N.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,Qe,Oe,nt){super(),this.component=xe,this.viewContainerRef=ne,this.injector=Qe,this.componentFactoryResolver=Oe,this.projectableNodes=nt}}class w extends C{constructor(xe,ne,Qe,Oe){super(),this.templateRef=xe,this.viewContainerRef=ne,this.context=Qe,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,Qe,Oe,nt){super(),this.outletElement=xe,this._componentFactoryResolver=ne,this._appRef=Qe,this._defaultInjector=Oe,this.attachDomPortal=Je=>{const ct=Je.element,ot=this._document.createComment("dom-portal");ct.parentNode.insertBefore(ot,ct),this.outletElement.appendChild(ct),this._attachedPortal=Je,super.setDisposeFn(()=>{ot.parentNode&&ot.parentNode.replaceChild(ct,ot)})},this._document=nt}attachComponentPortal(xe){const Qe=(xe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(xe.component);let Oe;return xe.viewContainerRef?(Oe=xe.viewContainerRef.createComponent(Qe,xe.viewContainerRef.length,xe.injector||xe.viewContainerRef.injector,xe.projectableNodes||void 0),this.setDisposeFn(()=>Oe.destroy())):(Oe=Qe.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,Qe=ne.createEmbeddedView(xe.templateRef,xe.context,{injector:xe.injector});return Qe.rootNodes.forEach(Oe=>this.outletElement.appendChild(Oe)),Qe.detectChanges(),this.setDisposeFn(()=>{let Oe=ne.indexOf(Qe);-1!==Oe&&ne.remove(Oe)}),this._attachedPortal=xe,Qe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(xe){return xe.hostView.rootNodes[0]}}let q=(()=>{class me extends f{constructor(ne,Qe,Oe){super(),this._componentFactoryResolver=ne,this._viewContainerRef=Qe,this._isInitialized=!1,this.attached=new n.EventEmitter,this.attachDomPortal=nt=>{const Je=nt.element,ct=this._document.createComment("dom-portal");nt.setAttachedHost(this),Je.parentNode.insertBefore(ct,Je),this._getRootNode().appendChild(Je),this._attachedPortal=nt,super.setDisposeFn(()=>{ct.parentNode&&ct.parentNode.replaceChild(Je,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 Qe=null!=ne.viewContainerRef?ne.viewContainerRef:this._viewContainerRef,nt=(ne.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ne.component),Je=Qe.createComponent(nt,Qe.length,ne.injector||Qe.injector,ne.projectableNodes||void 0);return Qe!==this._viewContainerRef&&this._getRootNode().appendChild(Je.hostView.rootNodes[0]),super.setDisposeFn(()=>Je.destroy()),this._attachedPortal=ne,this._attachedRef=Je,this.attached.emit(Je),Je}attachTemplatePortal(ne){ne.setAttachedHost(this);const Qe=this._viewContainerRef.createEmbeddedView(ne.templateRef,ne.context,{injector:ne.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ne,this._attachedRef=Qe,this.attached.emit(Qe),Qe}_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:()=>Xe,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(ee){this.active=!0,this.scheduled=void 0;const{actions:k}=this;let R,be=-1,qe=k.length;ee=ee||k.shift();do{if(R=ee.execute(ee.state,ee.delay))break}while(++be<qe&&(ee=k.shift()));if(this.active=!1,R){for(;++be<qe&&(ee=k.shift());)ee.unsubscribe();throw R}}}(class b extends u.o{constructor(ee,k){super(ee,k),this.scheduler=ee,this.work=k}requestAsyncId(ee,k,R=0){return null!==R&&R>0?super.requestAsyncId(ee,k,R):(ee.actions.push(this),ee.scheduled||(ee.scheduled=requestAnimationFrame(()=>ee.flush(null))))}recycleAsyncId(ee,k,R=0){if(null!==R&&R>0||null===R&&this.delay>0)return super.recycleAsyncId(ee,k,R);0===ee.actions.length&&(cancelAnimationFrame(k),ee.scheduled=void 0)}});let g=1;const f=Promise.resolve(),I={};function j(ht){return ht in I&&(delete I[ht],!0)}const F={setImmediate(ht){const ee=g++;return I[ee]=!0,f.then(()=>j(ee)&&ht()),ee},clearImmediate(ht){j(ht)}},X=new class q extends C.v{flush(ee){this.active=!0,this.scheduled=void 0;const{actions:k}=this;let R,be=-1,qe=k.length;ee=ee||k.shift();do{if(R=ee.execute(ee.state,ee.delay))break}while(++be<qe&&(ee=k.shift()));if(this.active=!1,R){for(;++be<qe&&(ee=k.shift());)ee.unsubscribe();throw R}}}(class le extends u.o{constructor(ee,k){super(ee,k),this.scheduler=ee,this.work=k}requestAsyncId(ee,k,R=0){return null!==R&&R>0?super.requestAsyncId(ee,k,R):(ee.actions.push(this),ee.scheduled||(ee.scheduled=F.setImmediate(ee.flush.bind(ee,null))))}recycleAsyncId(ee,k,R=0){if(null!==R&&R>0||null===R&&this.delay>0)return super.recycleAsyncId(ee,k,R);0===ee.actions.length&&(F.clearImmediate(k),ee.scheduled=void 0)}});var K=a(2654),N=a(6926),me=a(2198),xe=a(7625),ne=a(1059),Qe=a(3353),Oe=a(6895),nt=a(445);const Je=["contentWrapper"],ct=["*"],ot=new e.InjectionToken("VIRTUAL_SCROLL_STRATEGY");let mi=(()=>{class ht{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,N.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)(qe=>!qe||be.indexOf(qe)>-1))}getAncestorScrollContainers(k){const R=[];return this.scrollContainers.forEach((be,qe)=>{this._scrollableContainsElement(qe,k)&&R.push(qe)}),R}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(k,R){let be=(0,n.fI)(R),qe=k.getElementRef().nativeElement;do{if(be==qe)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 ht.\u0275fac=function(k){return new(k||ht)(e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(Qe.t4),e.\u0275\u0275inject(Oe.DOCUMENT,8))},ht.\u0275prov=e.\u0275\u0275defineInjectable({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})(),Yt=(()=>{class ht{constructor(k,R,be,qe){this.elementRef=k,this.scrollDispatcher=R,this.ngZone=be,this.dir=qe,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,Qe._i)()?(null!=k.left&&(k.right=R.scrollWidth-R.clientWidth-k.left),2==(0,Qe._i)()?k.left=k.right:1==(0,Qe._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,Qe.Mq)()?R.scrollTo(k):(null!=k.top&&(R.scrollTop=k.top),null!=k.left&&(R.scrollLeft=k.left))}measureScrollOffset(k){const R="left",qe=this.elementRef.nativeElement;if("top"==k)return qe.scrollTop;if("bottom"==k)return qe.scrollHeight-qe.clientHeight-qe.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,Qe._i)()?k==R?qe.scrollWidth-qe.clientWidth-qe.scrollLeft:qe.scrollLeft:Ue&&1==(0,Qe._i)()?k==R?qe.scrollLeft+qe.scrollWidth-qe.clientWidth:-qe.scrollLeft:k==R?qe.scrollLeft:qe.scrollWidth-qe.clientWidth-qe.scrollLeft}}return ht.\u0275fac=function(k){return new(k||ht)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(mi),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(nt.Is,8))},ht.\u0275dir=e.\u0275\u0275defineDirective({type:ht,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),ht})(),lt=(()=>{class ht{constructor(k,R,be){this._platform=k,this._change=new o.xQ,this._changeListener=qe=>{this._change.next(qe)},this._document=be,R.runOutsideAngular(()=>{if(k.isBrowser){const qe=this._getWindow();qe.addEventListener("resize",this._changeListener),qe.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,qe=be.getBoundingClientRect();return{top:-qe.top||k.body.scrollTop||R.scrollY||be.scrollTop||0,left:-qe.left||k.body.scrollLeft||R.scrollX||be.scrollLeft||0}}change(k=20){return k>0?this._change.pipe((0,N.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 ht.\u0275fac=function(k){return new(k||ht)(e.\u0275\u0275inject(Qe.t4),e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(Oe.DOCUMENT,8))},ht.\u0275prov=e.\u0275\u0275defineInjectable({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();const _t=new e.InjectionToken("VIRTUAL_SCROLLABLE");let Fe=(()=>{class ht extends Yt{constructor(k,R,be,qe){super(k,R,be,qe)}measureViewportSize(k){const R=this.elementRef.nativeElement;return"horizontal"===k?R.clientWidth:R.clientHeight}}return ht.\u0275fac=function(k){return new(k||ht)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(mi),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(nt.Is,8))},ht.\u0275dir=e.\u0275\u0275defineDirective({type:ht,features:[e.\u0275\u0275InheritDefinitionFeature]}),ht})();const W=typeof requestAnimationFrame<"u"?w:X;let z=(()=>{class ht 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,qe,Ue,fe,ke,gt){super(k,fe,be,Ue),this.elementRef=k,this._changeDetectorRef=R,this._scrollStrategy=qe,this.scrollable=gt,this._platform=(0,e.inject)(Qe.t4),this._detachedSubject=new o.xQ,this._renderedRangeSubject=new o.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new v.y(Tt=>this._scrollStrategy.scrolledIndexChange.subscribe(Bt=>Promise.resolve().then(()=>this.ngZone.run(()=>Tt.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,N.e)(0,W)).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(ht,ee){return ht.start==ee.start&&ht.end==ee.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 qe="horizontal"==this.orientation,Ue=qe?"X":"Y";let ke=`translate${Ue}(${Number((qe&&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 fe=this.scrollable.measureBoundingClientRectWithScrollOffset(R);return this.elementRef.nativeElement.getBoundingClientRect()[R]-fe}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 ht.\u0275fac=function(k){return new(k||ht)(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))},ht.\u0275cmp=e.\u0275\u0275defineComponent({type:ht,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(k,R){if(1&k&&e.\u0275\u0275viewQuery(Je,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:Yt,useFactory:(ee,k)=>ee||k,deps:[[new e.Optional,new e.Inject(_t)],ht]}]),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}),ht})(),Pe=(()=>{class ht{}return ht.\u0275fac=function(k){return new(k||ht)},ht.\u0275mod=e.\u0275\u0275defineNgModule({type:ht}),ht.\u0275inj=e.\u0275\u0275defineInjector({}),ht})(),Xe=(()=>{class ht{}return ht.\u0275fac=function(k){return new(k||ht)},ht.\u0275mod=e.\u0275\u0275defineNgModule({type:ht}),ht.\u0275inj=e.\u0275\u0275defineInjector({imports:[nt.vT,Pe,z,nt.vT,Pe]}),ht})()},9349:(G,P,a)=>{"use strict";a.d(P,{IC:()=>f,Ky:()=>I,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",N=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",N,x),le.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(le,{subject:X,unlisten:()=>{le.removeEventListener("animationstart",N,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 N=Z.scrollHeight-4;return Z.classList.remove(K),X&&(Z.style.marginBottom=le),N}_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})(),I=(()=>{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:()=>$n,BrowserPlatformLocation:()=>x,CommonModule:()=>Co,CurrencyPipe:()=>qr,DATE_PIPE_DEFAULT_OPTIONS:()=>Jr,DATE_PIPE_DEFAULT_TIMEZONE:()=>pr,DOCUMENT:()=>d,DatePipe:()=>Vn,DecimalPipe:()=>Br,FormStyle:()=>nt,FormatWidth:()=>ct,HashLocationStrategy:()=>q,I18nPluralPipe:()=>Fr,I18nSelectPipe:()=>$r,IMAGE_CONFIG:()=>jo,IMAGE_LOADER:()=>kt,JsonPipe:()=>Ir,KeyValuePipe:()=>Sr,LOCATION_INITIALIZED:()=>C,Location:()=>X,LocationStrategy:()=>F,LowerCasePipe:()=>Dn,NgClass:()=>gi,NgComponentOutlet:()=>ji,NgFor:()=>tr,NgForOf:()=>tr,NgForOfContext:()=>_n,NgIf:()=>Zn,NgIfContext:()=>zi,NgLocaleLocalization:()=>Xr,NgLocalization:()=>Fn,NgOptimizedImage:()=>go,NgPlural:()=>mt,NgPluralCase:()=>ni,NgStyle:()=>he,NgSwitch:()=>Un,NgSwitchCase:()=>Qn,NgSwitchDefault:()=>Ei,NgTemplateOutlet:()=>je,NumberFormatStyle:()=>Qe,NumberSymbol:()=>ot,PRECONNECT_CHECK_BLOCKLIST:()=>ui,PathLocationStrategy:()=>le,PercentPipe:()=>fr,PlatformLocation:()=>u,Plural:()=>Oe,SlicePipe:()=>Ao,TitleCasePipe:()=>Ri,TranslationWidth:()=>Je,UpperCasePipe:()=>Cn,VERSION:()=>Fo,ViewportScroller:()=>Nr,WeekDay:()=>dt,XhrFactory:()=>rr,formatCurrency:()=>nr,formatDate:()=>at,formatNumber:()=>wr,formatPercent:()=>Lr,getCurrencySymbol:()=>qe,getLocaleCurrencyCode:()=>Be,getLocaleCurrencyName:()=>Te,getLocaleCurrencySymbol:()=>He,getLocaleDateFormat:()=>_t,getLocaleDateTimeFormat:()=>Ae,getLocaleDayNames:()=>ti,getLocaleDayPeriods:()=>zt,getLocaleDirection:()=>k,getLocaleEraNames:()=>Yt,getLocaleExtraDayPeriodRules:()=>ht,getLocaleExtraDayPeriods:()=>ee,getLocaleFirstDayOfWeek:()=>Jt,getLocaleId:()=>Vt,getLocaleMonthNames:()=>mi,getLocaleNumberFormat:()=>z,getLocaleNumberSymbol:()=>W,getLocalePluralCase:()=>Pe,getLocaleTimeFormat:()=>Fe,getLocaleWeekEndRange:()=>lt,getNumberOfCurrencyDigits:()=>fe,isPlatformBrowser:()=>xo,isPlatformServer:()=>ao,isPlatformWorkerApp:()=>Tr,isPlatformWorkerUi:()=>Mo,provideCloudflareLoader:()=>tt,provideCloudinaryLoader:()=>oi,provideImageKitLoader:()=>ve,provideImgixLoader:()=>de,registerLocaleData:()=>hr,\u0275DomAdapter:()=>v,\u0275NullViewportScroller:()=>po,\u0275PLATFORM_BROWSER_ID:()=>ir,\u0275PLATFORM_SERVER_ID:()=>gr,\u0275PLATFORM_WORKER_APP_ID:()=>Kr,\u0275PLATFORM_WORKER_UI_ID:()=>mo,\u0275getDOM:()=>o,\u0275parseCookieValue:()=>br,\u0275setRootDomAdapter:()=>l});var n=a(4650);let e=null;function o(){return e}function l(te){e||(e=te)}class v{}const d=new n.InjectionToken("DocumentToken");let u=(()=>{class te{historyGo(oe){throw new Error("Not implemented")}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275prov=n.\u0275\u0275defineInjectable({token:te,factory:function(){return function b(){return(0,n.\u0275\u0275inject)(x)}()},providedIn:"platform"}),te})();const C=new n.InjectionToken("Location Initialized");let x=(()=>{class te 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,yt){w()?this._history.pushState(oe,Ne,yt):this._location.hash=yt}replaceState(oe,Ne,yt){w()?this._history.replaceState(oe,Ne,yt):this._location.hash=yt}forward(){this._history.forward()}back(){this._history.back()}historyGo(oe=0){this._history.go(oe)}getState(){return this._history.state}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275inject(d))},te.\u0275prov=n.\u0275\u0275defineInjectable({token:te,factory:function(){return function g(){return new x((0,n.\u0275\u0275inject)(d))}()},providedIn:"platform"}),te})();function w(){return!!window.history.pushState}function f(te,Ie){if(0==te.length)return Ie;if(0==Ie.length)return te;let oe=0;return te.endsWith("/")&&oe++,Ie.startsWith("/")&&oe++,2==oe?te+Ie.substring(1):1==oe?te+Ie:te+"/"+Ie}function I(te){const Ie=te.match(/#|\?|$/),oe=Ie&&Ie.index||te.length;return te.slice(0,oe-("/"===te[oe-1]?1:0))+te.slice(oe)}function j(te){return te&&"?"!==te[0]?"?"+te:te}let F=(()=>{class te{historyGo(oe){throw new Error("Not implemented")}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275prov=n.\u0275\u0275defineInjectable({token:te,factory:function(){return(0,n.inject)(le)},providedIn:"root"}),te})();const Z=new n.InjectionToken("appBaseHref");let le=(()=>{class te extends F{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),yt=this._platformLocation.hash;return yt&&oe?`${Ne}${yt}`:Ne}pushState(oe,Ne,yt,Gt){const ei=this.prepareExternalUrl(yt+j(Gt));this._platformLocation.pushState(oe,Ne,ei)}replaceState(oe,Ne,yt,Gt){const ei=this.prepareExternalUrl(yt+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 te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275inject(u),n.\u0275\u0275inject(Z,8))},te.\u0275prov=n.\u0275\u0275defineInjectable({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),q=(()=>{class te extends F{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,yt,Gt){let ei=this.prepareExternalUrl(yt+j(Gt));0==ei.length&&(ei=this._platformLocation.pathname),this._platformLocation.pushState(oe,Ne,ei)}replaceState(oe,Ne,yt,Gt){let ei=this.prepareExternalUrl(yt+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 te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275inject(u),n.\u0275\u0275inject(Z,8))},te.\u0275prov=n.\u0275\u0275defineInjectable({token:te,factory:te.\u0275fac}),te})(),X=(()=>{class te{constructor(oe){this._subject=new n.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=oe;const Ne=this._locationStrategy.getBaseHref();this._basePath=function xe(te){if(new RegExp("^(https?:)?//").test(te)){const[,oe]=te.split(/\/\/[^\/]+/);return oe}return te}(I(me(Ne))),this._locationStrategy.onPopState(yt=>{this._subject.emit({url:this.path(!0),pop:!0,state:yt.state,type:yt.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 te.stripTrailingSlash(function N(te,Ie){if(!te||!Ie.startsWith(te))return Ie;const oe=Ie.substring(te.length);return""===oe||["/",";","?","#"].includes(oe[0])?oe:Ie}(this._basePath,me(oe)))}prepareExternalUrl(oe){return oe&&"/"!==oe[0]&&(oe="/"+oe),this._locationStrategy.prepareExternalUrl(oe)}go(oe,Ne="",yt=null){this._locationStrategy.pushState(yt,"",oe,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(oe+j(Ne)),yt)}replaceState(oe,Ne="",yt=null){this._locationStrategy.replaceState(yt,"",oe,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(oe+j(Ne)),yt)}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(yt=>yt(oe,Ne))}subscribe(oe,Ne,yt){return this._subject.subscribe({next:oe,error:Ne,complete:yt})}}return te.normalizeQueryParams=j,te.joinWithSlash=f,te.stripTrailingSlash=I,te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275inject(F))},te.\u0275prov=n.\u0275\u0275defineInjectable({token:te,factory:function(){return function K(){return new X((0,n.\u0275\u0275inject)(F))}()},providedIn:"root"}),te})();function me(te){return te.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 Qe=(()=>((Qe=Qe||{})[Qe.Decimal=0]="Decimal",Qe[Qe.Percent=1]="Percent",Qe[Qe.Currency=2]="Currency",Qe[Qe.Scientific=3]="Scientific",Qe))(),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))(),Je=(()=>((Je=Je||{})[Je.Narrow=0]="Narrow",Je[Je.Abbreviated=1]="Abbreviated",Je[Je.Wide=2]="Wide",Je[Je.Short=3]="Short",Je))(),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 Vt(te){return(0,n.\u0275findLocaleData)(te)[n.\u0275LocaleDataIndex.LocaleId]}function zt(te,Ie,oe){const Ne=(0,n.\u0275findLocaleData)(te),Gt=R([Ne[n.\u0275LocaleDataIndex.DayPeriodsFormat],Ne[n.\u0275LocaleDataIndex.DayPeriodsStandalone]],Ie);return R(Gt,oe)}function ti(te,Ie,oe){const Ne=(0,n.\u0275findLocaleData)(te),Gt=R([Ne[n.\u0275LocaleDataIndex.DaysFormat],Ne[n.\u0275LocaleDataIndex.DaysStandalone]],Ie);return R(Gt,oe)}function mi(te,Ie,oe){const Ne=(0,n.\u0275findLocaleData)(te),Gt=R([Ne[n.\u0275LocaleDataIndex.MonthsFormat],Ne[n.\u0275LocaleDataIndex.MonthsStandalone]],Ie);return R(Gt,oe)}function Yt(te,Ie){return R((0,n.\u0275findLocaleData)(te)[n.\u0275LocaleDataIndex.Eras],Ie)}function Jt(te){return(0,n.\u0275findLocaleData)(te)[n.\u0275LocaleDataIndex.FirstDayOfWeek]}function lt(te){return(0,n.\u0275findLocaleData)(te)[n.\u0275LocaleDataIndex.WeekendRange]}function _t(te,Ie){return R((0,n.\u0275findLocaleData)(te)[n.\u0275LocaleDataIndex.DateFormat],Ie)}function Fe(te,Ie){return R((0,n.\u0275findLocaleData)(te)[n.\u0275LocaleDataIndex.TimeFormat],Ie)}function Ae(te,Ie){return R((0,n.\u0275findLocaleData)(te)[n.\u0275LocaleDataIndex.DateTimeFormat],Ie)}function W(te,Ie){const oe=(0,n.\u0275findLocaleData)(te),Ne=oe[n.\u0275LocaleDataIndex.NumberSymbols][Ie];if(typeof Ne>"u"){if(Ie===ot.CurrencyDecimal)return oe[n.\u0275LocaleDataIndex.NumberSymbols][ot.Decimal];if(Ie===ot.CurrencyGroup)return oe[n.\u0275LocaleDataIndex.NumberSymbols][ot.Group]}return Ne}function z(te,Ie){return(0,n.\u0275findLocaleData)(te)[n.\u0275LocaleDataIndex.NumberFormats][Ie]}function He(te){return(0,n.\u0275findLocaleData)(te)[n.\u0275LocaleDataIndex.CurrencySymbol]||null}function Te(te){return(0,n.\u0275findLocaleData)(te)[n.\u0275LocaleDataIndex.CurrencyName]||null}function Be(te){return(0,n.\u0275getLocaleCurrencyCode)(te)}const Pe=n.\u0275getLocalePluralCase;function Xe(te){if(!te[n.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${te[n.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ht(te){const Ie=(0,n.\u0275findLocaleData)(te);return Xe(Ie),(Ie[n.\u0275LocaleDataIndex.ExtraData][2]||[]).map(Ne=>"string"==typeof Ne?be(Ne):[be(Ne[0]),be(Ne[1])])}function ee(te,Ie,oe){const Ne=(0,n.\u0275findLocaleData)(te);Xe(Ne);const Gt=R([Ne[n.\u0275LocaleDataIndex.ExtraData][0],Ne[n.\u0275LocaleDataIndex.ExtraData][1]],Ie)||[];return R(Gt,oe)||[]}function k(te){return(0,n.\u0275findLocaleData)(te)[n.\u0275LocaleDataIndex.Directionality]}function R(te,Ie){for(let oe=Ie;oe>-1;oe--)if(typeof te[oe]<"u")return te[oe];throw new Error("Locale data API: locale data undefined")}function be(te){const[Ie,oe]=te.split(":");return{hours:+Ie,minutes:+oe}}function qe(te,Ie,oe="en"){const Ne=function pt(te){return(0,n.\u0275findLocaleData)(te)[n.\u0275LocaleDataIndex.Currencies]}(oe)[te]||ne[te]||[],yt=Ne[1];return"narrow"===Ie&&"string"==typeof yt?yt:Ne[0]||te}const Ue=2;function fe(te){let Ie;const oe=ne[te];return oe&&(Ie=oe[2]),"number"==typeof Ie?Ie:Ue}const ke=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,gt={},Tt=/((?:[^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(te,Ie,oe,Ne){let yt=function Mt(te){if(se(te))return te;if("number"==typeof te&&!isNaN(te))return new Date(te);if("string"==typeof te){if(te=te.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(te)){const[yt,Gt=1,ei=1]=te.split("-").map(Fi=>+Fi);return Lt(yt,Gt-1,ei)}const oe=parseFloat(te);if(!isNaN(te-oe))return new Date(oe);let Ne;if(Ne=te.match(ke))return function It(te){const Ie=new Date(0);let oe=0,Ne=0;const yt=te[8]?Ie.setUTCFullYear:Ie.setFullYear,Gt=te[8]?Ie.setUTCHours:Ie.setHours;te[9]&&(oe=Number(te[9]+te[10]),Ne=Number(te[9]+te[11])),yt.call(Ie,Number(te[1]),Number(te[2])-1,Number(te[3]));const ei=Number(te[4]||0)-oe,Fi=Number(te[5]||0)-Ne,In=Number(te[6]||0),pn=Math.floor(1e3*parseFloat("0."+(te[7]||0)));return Gt.call(Ie,ei,Fi,In,pn),Ie}(Ne)}const Ie=new Date(te);if(!se(Ie))throw new Error(`Unable to convert "${te}" into a date`);return Ie}(te);Ie=Rt(oe,Ie)||Ie;let Fi,ei=[];for(;Ie;){if(Fi=Tt.exec(Ie),!Fi){ei.push(Ie);break}{ei=ei.concat(Fi.slice(1));const En=ei.pop();if(!En)break;Ie=En}}let In=yt.getTimezoneOffset();Ne&&(In=xt(Ne,In),yt=function wt(te,Ie,oe){const Ne=oe?-1:1,yt=te.getTimezoneOffset();return function Wt(te,Ie){return(te=new Date(te.getTime())).setMinutes(te.getMinutes()+Ie),te}(te,Ne*(xt(Ie,yt)-yt))}(yt,Ne,!0));let pn="";return ei.forEach(En=>{const sn=function We(te){if(Re[te])return Re[te];let Ie;switch(te){case"G":case"GG":case"GGG":Ie=Qt(Nt.Eras,Je.Abbreviated);break;case"GGGG":Ie=Qt(Nt.Eras,Je.Wide);break;case"GGGGG":Ie=Qt(Nt.Eras,Je.Narrow);break;case"y":Ie=vt(st.FullYear,1,0,!1,!0);break;case"yy":Ie=vt(st.FullYear,2,0,!0,!0);break;case"yyy":Ie=vt(st.FullYear,3,0,!1,!0);break;case"yyyy":Ie=vt(st.FullYear,4,0,!1,!0);break;case"Y":Ie=Ee(1);break;case"YY":Ie=Ee(2,!0);break;case"YYY":Ie=Ee(3);break;case"YYYY":Ie=Ee(4);break;case"M":case"L":Ie=vt(st.Month,1,1);break;case"MM":case"LL":Ie=vt(st.Month,2,1);break;case"MMM":Ie=Qt(Nt.Months,Je.Abbreviated);break;case"MMMM":Ie=Qt(Nt.Months,Je.Wide);break;case"MMMMM":Ie=Qt(Nt.Months,Je.Narrow);break;case"LLL":Ie=Qt(Nt.Months,Je.Abbreviated,nt.Standalone);break;case"LLLL":Ie=Qt(Nt.Months,Je.Wide,nt.Standalone);break;case"LLLLL":Ie=Qt(Nt.Months,Je.Narrow,nt.Standalone);break;case"w":Ie=re(1);break;case"ww":Ie=re(2);break;case"W":Ie=re(1,!0);break;case"d":Ie=vt(st.Date,1);break;case"dd":Ie=vt(st.Date,2);break;case"c":case"cc":Ie=vt(st.Day,1);break;case"ccc":Ie=Qt(Nt.Days,Je.Abbreviated,nt.Standalone);break;case"cccc":Ie=Qt(Nt.Days,Je.Wide,nt.Standalone);break;case"ccccc":Ie=Qt(Nt.Days,Je.Narrow,nt.Standalone);break;case"cccccc":Ie=Qt(Nt.Days,Je.Short,nt.Standalone);break;case"E":case"EE":case"EEE":Ie=Qt(Nt.Days,Je.Abbreviated);break;case"EEEE":Ie=Qt(Nt.Days,Je.Wide);break;case"EEEEE":Ie=Qt(Nt.Days,Je.Narrow);break;case"EEEEEE":Ie=Qt(Nt.Days,Je.Short);break;case"a":case"aa":case"aaa":Ie=Qt(Nt.DayPeriods,Je.Abbreviated);break;case"aaaa":Ie=Qt(Nt.DayPeriods,Je.Wide);break;case"aaaaa":Ie=Qt(Nt.DayPeriods,Je.Narrow);break;case"b":case"bb":case"bbb":Ie=Qt(Nt.DayPeriods,Je.Abbreviated,nt.Standalone,!0);break;case"bbbb":Ie=Qt(Nt.DayPeriods,Je.Wide,nt.Standalone,!0);break;case"bbbbb":Ie=Qt(Nt.DayPeriods,Je.Narrow,nt.Standalone,!0);break;case"B":case"BB":case"BBB":Ie=Qt(Nt.DayPeriods,Je.Abbreviated,nt.Format,!0);break;case"BBBB":Ie=Qt(Nt.DayPeriods,Je.Wide,nt.Format,!0);break;case"BBBBB":Ie=Qt(Nt.DayPeriods,Je.Narrow,nt.Format,!0);break;case"h":Ie=vt(st.Hours,1,-12);break;case"hh":Ie=vt(st.Hours,2,-12);break;case"H":Ie=vt(st.Hours,1);break;case"HH":Ie=vt(st.Hours,2);break;case"m":Ie=vt(st.Minutes,1);break;case"mm":Ie=vt(st.Minutes,2);break;case"s":Ie=vt(st.Seconds,1);break;case"ss":Ie=vt(st.Seconds,2);break;case"S":Ie=vt(st.FractionalSeconds,1);break;case"SS":Ie=vt(st.FractionalSeconds,2);break;case"SSS":Ie=vt(st.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ie=_i(Bt.Short);break;case"ZZZZZ":Ie=_i(Bt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ie=_i(Bt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ie=_i(Bt.Long);break;default:return null}return Re[te]=Ie,Ie}(En);pn+=sn?sn(yt,oe,In):"''"===En?"'":En.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),pn}function Lt(te,Ie,oe){const Ne=new Date(0);return Ne.setFullYear(te,Ie,oe),Ne.setHours(0,0,0),Ne}function Rt(te,Ie){const oe=Vt(te);if(gt[oe]=gt[oe]||{},gt[oe][Ie])return gt[oe][Ie];let Ne="";switch(Ie){case"shortDate":Ne=_t(te,ct.Short);break;case"mediumDate":Ne=_t(te,ct.Medium);break;case"longDate":Ne=_t(te,ct.Long);break;case"fullDate":Ne=_t(te,ct.Full);break;case"shortTime":Ne=Fe(te,ct.Short);break;case"mediumTime":Ne=Fe(te,ct.Medium);break;case"longTime":Ne=Fe(te,ct.Long);break;case"fullTime":Ne=Fe(te,ct.Full);break;case"short":const yt=Rt(te,"shortTime"),Gt=Rt(te,"shortDate");Ne=ai(Ae(te,ct.Short),[yt,Gt]);break;case"medium":const ei=Rt(te,"mediumTime"),Fi=Rt(te,"mediumDate");Ne=ai(Ae(te,ct.Medium),[ei,Fi]);break;case"long":const In=Rt(te,"longTime"),pn=Rt(te,"longDate");Ne=ai(Ae(te,ct.Long),[In,pn]);break;case"full":const En=Rt(te,"fullTime"),sn=Rt(te,"fullDate");Ne=ai(Ae(te,ct.Full),[En,sn])}return Ne&&(gt[oe][Ie]=Ne),Ne}function ai(te,Ie){return Ie&&(te=te.replace(/\{([^}]+)}/g,function(oe,Ne){return null!=Ie&&Ne in Ie?Ie[Ne]:oe})),te}function Xt(te,Ie,oe="-",Ne,yt){let Gt="";(te<0||yt&&te<=0)&&(yt?te=1-te:(te=-te,Gt=oe));let ei=String(te);for(;ei.length<Ie;)ei="0"+ei;return Ne&&(ei=ei.slice(ei.length-Ie)),Gt+ei}function vt(te,Ie,oe=0,Ne=!1,yt=!1){return function(Gt,ei){let Fi=function Ut(te,Ie){switch(te){case st.FullYear:return Ie.getFullYear();case st.Month:return Ie.getMonth();case st.Date:return Ie.getDate();case st.Hours:return Ie.getHours();case st.Minutes:return Ie.getMinutes();case st.Seconds:return Ie.getSeconds();case st.FractionalSeconds:return Ie.getMilliseconds();case st.Day:return Ie.getDay();default:throw new Error(`Unknown DateType value "${te}".`)}}(te,Gt);if((oe>0||Fi>-oe)&&(Fi+=oe),te===st.Hours)0===Fi&&-12===oe&&(Fi=12);else if(te===st.FractionalSeconds)return function di(te,Ie){return Xt(te,3).substring(0,Ie)}(Fi,Ie);const In=W(ei,ot.MinusSign);return Xt(Fi,Ie,In,Ne,yt)}}function Qt(te,Ie,oe=nt.Format,Ne=!1){return function(yt,Gt){return function Ci(te,Ie,oe,Ne,yt,Gt){switch(oe){case Nt.Months:return mi(Ie,yt,Ne)[te.getMonth()];case Nt.Days:return ti(Ie,yt,Ne)[te.getDay()];case Nt.DayPeriods:const ei=te.getHours(),Fi=te.getMinutes();if(Gt){const pn=ht(Ie),En=ee(Ie,yt,Ne),sn=pn.findIndex(xn=>{if(Array.isArray(xn)){const[gn,qn]=xn,Do=ei>=gn.hours&&Fi>=gn.minutes,jr=ei<qn.hours||ei===qn.hours&&Fi<qn.minutes;if(gn.hours<qn.hours){if(Do&&jr)return!0}else if(Do||jr)return!0}else if(xn.hours===ei&&xn.minutes===Fi)return!0;return!1});if(-1!==sn)return En[sn]}return zt(Ie,yt,Ne)[ei<12?0:1];case Nt.Eras:return Yt(Ie,Ne)[te.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${oe}`)}}(yt,Gt,te,Ie,oe,Ne)}}function _i(te){return function(Ie,oe,Ne){const yt=-1*Ne,Gt=W(oe,ot.MinusSign),ei=yt>0?Math.floor(yt/60):Math.ceil(yt/60);switch(te){case Bt.Short:return(yt>=0?"+":"")+Xt(ei,2,Gt)+Xt(Math.abs(yt%60),2,Gt);case Bt.ShortGMT:return"GMT"+(yt>=0?"+":"")+Xt(ei,1,Gt);case Bt.Long:return"GMT"+(yt>=0?"+":"")+Xt(ei,2,Gt)+":"+Xt(Math.abs(yt%60),2,Gt);case Bt.Extended:return 0===Ne?"Z":(yt>=0?"+":"")+Xt(ei,2,Gt)+":"+Xt(Math.abs(yt%60),2,Gt);default:throw new Error(`Unknown zone width "${te}"`)}}}const pi=0,Bi=4;function ue(te){return Lt(te.getFullYear(),te.getMonth(),te.getDate()+(Bi-te.getDay()))}function re(te,Ie=!1){return function(oe,Ne){let yt;if(Ie){const Gt=new Date(oe.getFullYear(),oe.getMonth(),1).getDay()-1,ei=oe.getDate();yt=1+Math.floor((ei+Gt)/7)}else{const Gt=ue(oe),ei=function ze(te){const Ie=Lt(te,pi,1).getDay();return Lt(te,0,1+(Ie<=Bi?Bi:Bi+7)-Ie)}(Gt.getFullYear()),Fi=Gt.getTime()-ei.getTime();yt=1+Math.round(Fi/6048e5)}return Xt(yt,te,W(Ne,ot.MinusSign))}}function Ee(te,Ie=!1){return function(oe,Ne){return Xt(ue(oe).getFullYear(),te,W(Ne,ot.MinusSign),Ie)}}const Re={};function xt(te,Ie){te=te.replace(/:/g,"");const oe=Date.parse("Jan 01, 1970 00:00:00 "+te)/6e4;return isNaN(oe)?Ie:oe}function se(te){return te instanceof Date&&!isNaN(te.valueOf())}const we=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Le=22,Se=".",Ot="0",Me=";",bt=",",Pt="#",ii="\xa4",Ki="%";function On(te,Ie,oe,Ne,yt,Gt,ei=!1){let Fi="",In=!1;if(isFinite(te)){let pn=function Yi(te){let Ne,yt,Gt,ei,Fi,Ie=Math.abs(te)+"",oe=0;for((yt=Ie.indexOf(Se))>-1&&(Ie=Ie.replace(Se,"")),(Gt=Ie.search(/e/i))>0?(yt<0&&(yt=Gt),yt+=+Ie.slice(Gt+1),Ie=Ie.substring(0,Gt)):yt<0&&(yt=Ie.length),Gt=0;Ie.charAt(Gt)===Ot;Gt++);if(Gt===(Fi=Ie.length))Ne=[0],yt=1;else{for(Fi--;Ie.charAt(Fi)===Ot;)Fi--;for(yt-=Gt,Ne=[],ei=0;Gt<=Fi;Gt++,ei++)Ne[ei]=Number(Ie.charAt(Gt))}return yt>Le&&(Ne=Ne.splice(0,Le-1),oe=yt-1,yt=1),{digits:Ne,exponent:oe,integerLen:yt}}(te);ei&&(pn=function ur(te){if(0===te.digits[0])return te;const Ie=te.digits.length-te.integerLen;return te.exponent?te.exponent+=2:(0===Ie?te.digits.push(0,0):1===Ie&&te.digits.push(0),te.integerLen+=2),te}(pn));let En=Ie.minInt,sn=Ie.minFrac,xn=Ie.maxFrac;if(Gt){const Pr=Gt.match(we);if(null===Pr)throw new Error(`${Gt} is not a valid digit info`);const Gr=Pr[1],s=Pr[3],m=Pr[5];null!=Gr&&(En=Rn(Gr)),null!=s&&(sn=Rn(s)),null!=m?xn=Rn(m):null!=s&&sn>xn&&(xn=sn)}!function wn(te,Ie,oe){if(Ie>oe)throw new Error(`The minimum number of digits after fraction (${Ie}) is higher than the maximum (${oe}).`);let Ne=te.digits,yt=Ne.length-te.integerLen;const Gt=Math.min(Math.max(Ie,yt),oe);let ei=Gt+te.integerLen,Fi=Ne[ei];if(ei>0){Ne.splice(Math.max(te.integerLen,ei));for(let sn=ei;sn<Ne.length;sn++)Ne[sn]=0}else{yt=Math.max(0,yt),te.integerLen=1,Ne.length=Math.max(1,ei=Gt+1),Ne[0]=0;for(let sn=1;sn<ei;sn++)Ne[sn]=0}if(Fi>=5)if(ei-1<0){for(let sn=0;sn>ei;sn--)Ne.unshift(0),te.integerLen++;Ne.unshift(1),te.integerLen++}else Ne[ei-1]++;for(;yt<Math.max(0,Gt);yt++)Ne.push(0);let In=0!==Gt;const pn=Ie+te.integerLen,En=Ne.reduceRight(function(sn,xn,gn,qn){return qn[gn]=(xn+=sn)<10?xn:xn-10,In&&(0===qn[gn]&&gn>=pn?qn.pop():In=!1),xn>=10?1:0},0);En&&(Ne.unshift(En),te.integerLen++)}(pn,sn,xn);let gn=pn.digits,qn=pn.integerLen;const Do=pn.exponent;let jr=[];for(In=gn.every(Pr=>!Pr);qn<En;qn++)gn.unshift(0);for(;qn<0;qn++)gn.unshift(0);qn>0?jr=gn.splice(qn,gn.length):(jr=gn,gn=[0]);const ko=[];for(gn.length>=Ie.lgSize&&ko.unshift(gn.splice(-Ie.lgSize,gn.length).join(""));gn.length>Ie.gSize;)ko.unshift(gn.splice(-Ie.gSize,gn.length).join(""));gn.length&&ko.unshift(gn.join("")),Fi=ko.join(W(oe,Ne)),jr.length&&(Fi+=W(oe,yt)+jr.join("")),Do&&(Fi+=W(oe,ot.Exponential)+"+"+Do)}else Fi=W(oe,ot.Infinity);return Fi=te<0&&!In?Ie.negPre+Fi+Ie.negSuf:Ie.posPre+Fi+Ie.posSuf,Fi}function nr(te,Ie,oe,Ne,yt){const ei=vr(z(Ie,Qe.Currency),W(Ie,ot.MinusSign));return ei.minFrac=fe(Ne),ei.maxFrac=ei.minFrac,On(te,ei,Ie,ot.CurrencyGroup,ot.CurrencyDecimal,yt).replace(ii,oe).replace(ii,"").trim()}function Lr(te,Ie,oe){return On(te,vr(z(Ie,Qe.Percent),W(Ie,ot.MinusSign)),Ie,ot.Group,ot.Decimal,oe,!0).replace(new RegExp(Ki,"g"),W(Ie,ot.PercentSign))}function wr(te,Ie,oe){return On(te,vr(z(Ie,Qe.Decimal),W(Ie,ot.MinusSign)),Ie,ot.Group,ot.Decimal,oe)}function vr(te,Ie="-"){const oe={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ne=te.split(Me),yt=Ne[0],Gt=Ne[1],ei=-1!==yt.indexOf(Se)?yt.split(Se):[yt.substring(0,yt.lastIndexOf(Ot)+1),yt.substring(yt.lastIndexOf(Ot)+1)],Fi=ei[0],In=ei[1]||"";oe.posPre=Fi.substring(0,Fi.indexOf(Pt));for(let En=0;En<In.length;En++){const sn=In.charAt(En);sn===Ot?oe.minFrac=oe.maxFrac=En+1:sn===Pt?oe.maxFrac=En+1:oe.posSuf+=sn}const pn=Fi.split(bt);if(oe.gSize=pn[1]?pn[1].length:0,oe.lgSize=pn[2]||pn[1]?(pn[2]||pn[1]).length:0,Gt){const En=yt.length-oe.posPre.length-oe.posSuf.length,sn=Gt.indexOf(Pt);oe.negPre=Gt.substring(0,sn).replace(/'/g,""),oe.negSuf=Gt.slice(sn+En).replace(/'/g,"")}else oe.negPre=Ie+oe.posPre,oe.negSuf=oe.posSuf;return oe}function Rn(te){const Ie=parseInt(te);if(isNaN(Ie))throw new Error("Invalid integer literal when parsing "+te);return Ie}let Fn=(()=>{class te{}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275prov=n.\u0275\u0275defineInjectable({token:te,factory:function(oe){let Ne=null;return oe?Ne=new oe:(yt=n.\u0275\u0275inject(n.LOCALE_ID),Ne=new Xr(yt)),Ne;var yt},providedIn:"root"}),te})();function Mi(te,Ie,oe,Ne){let yt=`=${te}`;if(Ie.indexOf(yt)>-1||(yt=oe.getPluralCategory(te,Ne),Ie.indexOf(yt)>-1))return yt;if(Ie.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${te}"`)}let Xr=(()=>{class te extends Fn{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 te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275inject(n.LOCALE_ID))},te.\u0275prov=n.\u0275\u0275defineInjectable({token:te,factory:te.\u0275fac}),te})();function hr(te,Ie,oe){return(0,n.\u0275registerLocaleData)(te,Ie,oe)}function br(te,Ie){Ie=encodeURIComponent(Ie);for(const oe of te.split(";")){const Ne=oe.indexOf("="),[yt,Gt]=-1==Ne?[oe,""]:[oe.slice(0,Ne),oe.slice(Ne+1)];if(yt.trim()===Ie)return decodeURIComponent(Gt)}return null}const Bn=/\s+/,bi=[];let gi=(()=>{class te{constructor(oe,Ne,yt,Gt){this._iterableDiffers=oe,this._keyValueDiffers=Ne,this._ngEl=yt,this._renderer=Gt,this.initialClasses=bi,this.stateMap=new Map}set klass(oe){this.initialClasses=null!=oe?oe.trim().split(Bn):bi}set ngClass(oe){this.rawClass="string"==typeof oe?oe.trim().split(Bn):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 yt=this.stateMap.get(oe);void 0!==yt?(yt.enabled!==Ne&&(yt.changed=!0,yt.enabled=Ne),yt.touched=!0):this.stateMap.set(oe,{enabled:Ne,changed:!0,touched:!0})}_applyStateDiff(){for(const oe of this.stateMap){const Ne=oe[0],yt=oe[1];yt.changed?(this._toggleClass(Ne,yt.enabled),yt.changed=!1):yt.touched||(yt.enabled&&this._toggleClass(Ne,!1),this.stateMap.delete(Ne)),yt.touched=!1}}_toggleClass(oe,Ne){(oe=oe.trim()).length>0&&oe.split(Bn).forEach(yt=>{Ne?this._renderer.addClass(this._ngEl.nativeElement,yt):this._renderer.removeClass(this._ngEl.nativeElement,yt)})}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2))},te.\u0275dir=n.\u0275\u0275defineDirective({type:te,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),te})(),ji=(()=>{class te{constructor(oe){this._viewContainerRef=oe,this.ngComponentOutlet=null}ngOnChanges(oe){const{_viewContainerRef:Ne,ngComponentOutletNgModule:yt,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=yt?(0,n.createNgModule)(yt,Sn(ei)):Gt?Gt.create(Sn(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 te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},te.\u0275dir=n.\u0275\u0275defineDirective({type:te,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),te})();function Sn(te){return te.get(n.NgModuleRef).injector}class _n{constructor(Ie,oe,Ne,yt){this.$implicit=Ie,this.ngForOf=oe,this.index=Ne,this.count=yt}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 tr=(()=>{class te{set ngForOf(oe){this._ngForOf=oe,this._ngForOfDirty=!0}set ngForTrackBy(oe){this._trackByFn=oe}get ngForTrackBy(){return this._trackByFn}constructor(oe,Ne,yt){this._viewContainer=oe,this._template=Ne,this._differs=yt,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((yt,Gt,ei)=>{if(null==yt.previousIndex)Ne.createEmbeddedView(this._template,new _n(yt.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 Fi=Ne.get(Gt);Ne.move(Fi,ei),wi(Fi,yt)}});for(let yt=0,Gt=Ne.length;yt<Gt;yt++){const Fi=Ne.get(yt).context;Fi.index=yt,Fi.count=Gt,Fi.ngForOf=this._ngForOf}oe.forEachIdentityChange(yt=>{wi(Ne.get(yt.currentIndex),yt)})}static ngTemplateContextGuard(oe,Ne){return!0}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},te.\u0275dir=n.\u0275\u0275defineDirective({type:te,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),te})();function wi(te,Ie){te.context.$implicit=Ie.item}let Zn=(()=>{class te{constructor(oe,Ne){this._viewContainer=oe,this._context=new zi,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){Nn("ngIfThen",oe),this._thenTemplateRef=oe,this._thenViewRef=null,this._updateView()}set ngIfElse(oe){Nn("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 te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef))},te.\u0275dir=n.\u0275\u0275defineDirective({type:te,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),te})();class zi{constructor(){this.$implicit=null,this.ngIf=null}}function Nn(te,Ie){if(Ie&&!Ie.createEmbeddedView)throw new Error(`${te} must be a TemplateRef, but received '${(0,n.\u0275stringify)(Ie)}'.`)}class Rr{constructor(Ie,oe){this._viewContainerRef=Ie,this._templateRef=oe,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ie){Ie&&!this._created?this.create():!Ie&&this._created&&this.destroy()}}let Un=(()=>{class te{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 te.\u0275fac=function(oe){return new(oe||te)},te.\u0275dir=n.\u0275\u0275defineDirective({type:te,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),te})(),Qn=(()=>{class te{constructor(oe,Ne,yt){this.ngSwitch=yt,yt._addCase(),this._view=new Rr(oe,Ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Un,9))},te.\u0275dir=n.\u0275\u0275defineDirective({type:te,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),te})(),Ei=(()=>{class te{constructor(oe,Ne,yt){yt._addDefault(new Rr(oe,Ne))}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Un,9))},te.\u0275dir=n.\u0275\u0275defineDirective({type:te,selectors:[["","ngSwitchDefault",""]],standalone:!0}),te})(),mt=(()=>{class te{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 yt=Mi(oe,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[yt])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(oe){oe&&(this._activeView=oe,this._activeView.create())}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(Fn))},te.\u0275dir=n.\u0275\u0275defineDirective({type:te,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0}),te})(),ni=(()=>{class te{constructor(oe,Ne,yt,Gt){this.value=oe;const ei=!isNaN(Number(oe));Gt.addCase(ei?`=${oe}`:oe,new Rr(yt,Ne))}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275injectAttribute("ngPluralCase"),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(mt,1))},te.\u0275dir=n.\u0275\u0275defineDirective({type:te,selectors:[["","ngPluralCase",""]],standalone:!0}),te})(),he=(()=>{class te{constructor(oe,Ne,yt){this._ngEl=oe,this._differs=Ne,this._renderer=yt,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[yt,Gt]=oe.split("."),ei=-1===yt.indexOf("-")?void 0:n.RendererStyleFlags2.DashCase;null!=Ne?this._renderer.setStyle(this._ngEl.nativeElement,yt,Gt?`${Ne}${Gt}`:Ne,ei):this._renderer.removeStyle(this._ngEl.nativeElement,yt,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 te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.Renderer2))},te.\u0275dir=n.\u0275\u0275defineDirective({type:te,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),te})(),je=(()=>{class te{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:yt,ngTemplateOutletContext:Gt,ngTemplateOutletInjector:ei}=this;this._viewRef=Ne.createEmbeddedView(yt,Gt,ei?{injector:ei}:void 0)}else this._viewRef=null}else this._viewRef&&oe.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},te.\u0275dir=n.\u0275\u0275defineDirective({type:te,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),te})();function At(te,Ie){return new n.\u0275RuntimeError(2100,!1)}class ci{createSubscription(Ie,oe){return Ie.subscribe({next:oe,error:Ne=>{throw Ne}})}dispose(Ie){Ie.unsubscribe()}}class Wi{createSubscription(Ie,oe){return Ie.then(oe,Ne=>{throw Ne})}dispose(Ie){}}const ln=new Wi,en=new ci;let $n=(()=>{class te{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 ln;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 te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef,16))},te.\u0275pipe=n.\u0275\u0275definePipe({name:"async",type:te,pure:!1,standalone:!0}),te})(),Dn=(()=>{class te{transform(oe){if(null==oe)return null;if("string"!=typeof oe)throw At();return oe.toLowerCase()}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275pipe=n.\u0275\u0275definePipe({name:"lowercase",type:te,pure:!0,standalone:!0}),te})();const Ro=/(?:[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 Ri=(()=>{class te{transform(oe){if(null==oe)return null;if("string"!=typeof oe)throw At();return oe.replace(Ro,Ne=>Ne[0].toUpperCase()+Ne.slice(1).toLowerCase())}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275pipe=n.\u0275\u0275definePipe({name:"titlecase",type:te,pure:!0,standalone:!0}),te})(),Cn=(()=>{class te{transform(oe){if(null==oe)return null;if("string"!=typeof oe)throw At();return oe.toUpperCase()}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275pipe=n.\u0275\u0275definePipe({name:"uppercase",type:te,pure:!0,standalone:!0}),te})();const pr=new n.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE"),Jr=new n.InjectionToken("DATE_PIPE_DEFAULT_OPTIONS");let Vn=(()=>{class te{constructor(oe,Ne,yt){this.locale=oe,this.defaultTimezone=Ne,this.defaultOptions=yt}transform(oe,Ne,yt,Gt){if(null==oe||""===oe||oe!=oe)return null;try{return at(oe,Ne??this.defaultOptions?.dateFormat??"mediumDate",Gt||this.locale,yt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(ei){throw At()}}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(pr,24),n.\u0275\u0275directiveInject(Jr,24))},te.\u0275pipe=n.\u0275\u0275definePipe({name:"date",type:te,pure:!0,standalone:!0}),te})();const so=/#/g;let Fr=(()=>{class te{constructor(oe){this._localization=oe}transform(oe,Ne,yt){if(null==oe)return"";if("object"!=typeof Ne||null===Ne)throw At();return Ne[Mi(oe,Object.keys(Ne),this._localization,yt)].replace(so,oe.toString())}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(Fn,16))},te.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nPlural",type:te,pure:!0,standalone:!0}),te})(),$r=(()=>{class te{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 te.\u0275fac=function(oe){return new(oe||te)},te.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nSelect",type:te,pure:!0,standalone:!0}),te})(),Ir=(()=>{class te{transform(oe){return JSON.stringify(oe,null,2)}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275pipe=n.\u0275\u0275definePipe({name:"json",type:te,pure:!1,standalone:!0}),te})(),Sr=(()=>{class te{constructor(oe){this.differs=oe,this.keyValues=[],this.compareFn=sr}transform(oe,Ne=sr){if(!oe||!(oe instanceof Map)&&"object"!=typeof oe)return null;this.differ||(this.differ=this.differs.find(oe).create());const yt=this.differ.diff(oe),Gt=Ne!==this.compareFn;return yt&&(this.keyValues=[],yt.forEachItem(ei=>{this.keyValues.push(function zn(te,Ie){return{key:te,value:Ie}}(ei.key,ei.currentValue))})),(yt||Gt)&&(this.keyValues.sort(Ne),this.compareFn=Ne),this.keyValues}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.KeyValueDiffers,16))},te.\u0275pipe=n.\u0275\u0275definePipe({name:"keyvalue",type:te,pure:!1,standalone:!0}),te})();function sr(te,Ie){const oe=te.key,Ne=Ie.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 yt=String(oe),Gt=String(Ne);return yt==Gt?0:yt<Gt?-1:1}let Br=(()=>{class te{constructor(oe){this._locale=oe}transform(oe,Ne,yt){if(!eo(oe))return null;yt=yt||this._locale;try{return wr(Dr(oe),yt,Ne)}catch(Gt){throw At()}}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},te.\u0275pipe=n.\u0275\u0275definePipe({name:"number",type:te,pure:!0,standalone:!0}),te})(),fr=(()=>{class te{constructor(oe){this._locale=oe}transform(oe,Ne,yt){if(!eo(oe))return null;yt=yt||this._locale;try{return Lr(Dr(oe),yt,Ne)}catch(Gt){throw At()}}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},te.\u0275pipe=n.\u0275\u0275definePipe({name:"percent",type:te,pure:!0,standalone:!0}),te})(),qr=(()=>{class te{constructor(oe,Ne="USD"){this._locale=oe,this._defaultCurrencyCode=Ne}transform(oe,Ne=this._defaultCurrencyCode,yt="symbol",Gt,ei){if(!eo(oe))return null;ei=ei||this._locale,"boolean"==typeof yt&&(yt=yt?"symbol":"code");let Fi=Ne||this._defaultCurrencyCode;"code"!==yt&&(Fi="symbol"===yt||"symbol-narrow"===yt?qe(Fi,"symbol"===yt?"wide":"narrow",ei):yt);try{return nr(Dr(oe),ei,Fi,Ne,Gt)}catch(In){throw At()}}}return te.\u0275fac=function(oe){return new(oe||te)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(n.DEFAULT_CURRENCY_CODE,16))},te.\u0275pipe=n.\u0275\u0275definePipe({name:"currency",type:te,pure:!0,standalone:!0}),te})();function eo(te){return!(null==te||""===te||te!=te)}function Dr(te){if("string"==typeof te&&!isNaN(Number(te)-parseFloat(te)))return Number(te);if("number"!=typeof te)throw new Error(`${te} is not a number`);return te}let Ao=(()=>{class te{transform(oe,Ne,yt){if(null==oe)return null;if(!this.supports(oe))throw At();return oe.slice(Ne,yt)}supports(oe){return"string"==typeof oe||Array.isArray(oe)}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275pipe=n.\u0275\u0275definePipe({name:"slice",type:te,pure:!1,standalone:!0}),te})(),Co=(()=>{class te{}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275mod=n.\u0275\u0275defineNgModule({type:te}),te.\u0275inj=n.\u0275\u0275defineInjector({}),te})();const ir="browser",gr="server",Kr="browserWorkerApp",mo="browserWorkerUi";function xo(te){return te===ir}function ao(te){return te===gr}function Tr(te){return te===Kr}function Mo(te){return te===mo}const Fo=new n.Version("15.2.10");let Nr=(()=>{class te{}return te.\u0275prov=(0,n.\u0275\u0275defineInjectable)({token:te,providedIn:"root",factory:()=>new An((0,n.\u0275\u0275inject)(d),window)}),te})();class An{constructor(Ie,oe){this.document=Ie,this.window=oe,this.offset=()=>[0,0]}setOffset(Ie){this.offset=Array.isArray(Ie)?()=>Ie:Ie}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ie){this.supportsScrolling()&&this.window.scrollTo(Ie[0],Ie[1])}scrollToAnchor(Ie){if(!this.supportsScrolling())return;const oe=function lo(te,Ie){const oe=te.getElementById(Ie)||te.getElementsByName(Ie)[0];if(oe)return oe;if("function"==typeof te.createTreeWalker&&te.body&&(te.body.createShadowRoot||te.body.attachShadow)){const Ne=te.createTreeWalker(te.body,NodeFilter.SHOW_ELEMENT);let yt=Ne.currentNode;for(;yt;){const Gt=yt.shadowRoot;if(Gt){const ei=Gt.getElementById(Ie)||Gt.querySelector(`[name="${Ie}"]`);if(ei)return ei}yt=Ne.nextNode()}}return null}(this.document,Ie);oe&&(this.scrollToElement(oe),oe.focus())}setHistoryScrollRestoration(Ie){if(this.supportScrollRestoration()){const oe=this.window.history;oe&&oe.scrollRestoration&&(oe.scrollRestoration=Ie)}}scrollToElement(Ie){const oe=Ie.getBoundingClientRect(),Ne=oe.left+this.window.pageXOffset,yt=oe.top+this.window.pageYOffset,Gt=this.offset();this.window.scrollTo(Ne-Gt[0],yt-Gt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Ie=ar(this.window.history)||ar(Object.getPrototypeOf(this.window.history));return!(!Ie||!Ie.writable&&!Ie.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ar(te){return Object.getOwnPropertyDescriptor(te,"scrollRestoration")}class po{setOffset(Ie){}getScrollPosition(){return[0,0]}scrollToPosition(Ie){}scrollToAnchor(Ie){}setHistoryScrollRestoration(Ie){}}class rr{}function Kn(te){return te.startsWith("/")?te.slice(1):te}const rt=te=>te.src,kt=new n.InjectionToken("ImageLoader",{providedIn:"root",factory:()=>rt});function D(te,Ie){return function(Ne){return function Bo(te){if("string"!=typeof te||""===te.trim())return!1;try{return new URL(te),!0}catch{return!1}}(Ne)||function ae(te,Ie){throw new n.\u0275RuntimeError(2959,!1)}(),Ne=function mn(te){return te.endsWith("/")?te.slice(0,-1):te}(Ne),[{provide:kt,useValue:ei=>(function to(te){return/^https?:\/\//.test(te)}(ei.src)&&function _e(te,Ie){throw new n.\u0275RuntimeError(2959,!1)}(),te(Ne,{...ei,src:Kn(ei.src)}))}]}}const tt=D(St);function St(te,Ie){let oe="format=auto";return Ie.width&&(oe+=`,width=${Ie.width}`),`${te}/cdn-cgi/image/${oe}/${Ie.src}`}const oi=D(bn);function bn(te,Ie){let oe="f_auto,q_auto";return Ie.width&&(oe+=`,w_${Ie.width}`),`${te}/image/upload/${oe}/${Ie.src}`}const ve=D(pe);function pe(te,Ie){const{src:oe,width:Ne}=Ie;let yt;return yt=Ne?[te,`tr:w-${Ne}`,oe]:[te,oe],yt.join("/")}const de=D(Ke);function Ke(te,Ie){const oe=new URL(`${te}/${Ie.src}`);return oe.searchParams.set("auto","format"),Ie.width&&oe.searchParams.set("w",Ie.width.toString()),oe.href}const ui=new n.InjectionToken("PRECONNECT_CHECK_BLOCKLIST"),Ti=new n.InjectionToken("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set});let Qi=(()=>{class te{constructor(){this.preloadedImages=(0,n.inject)(Ti),this.document=(0,n.inject)(d)}createPreloadLinkTag(oe,Ne,yt,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),yt&&oe.setAttribute(ei,"imageSrcset",yt),oe.appendChild(this.document.head,ei)}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275prov=n.\u0275\u0275defineInjectable({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();const _r=/^((\s*\d+w\s*(,|$)){1,})$/,Ur=[1,2],Uo={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]},jo=new n.InjectionToken("ImageConfig",{providedIn:"root",factory:()=>Uo});let go=(()=>{class te{constructor(){this.imageLoader=(0,n.inject)(kt),this.config=function Xo(te){let Ie={};return te.breakpoints&&(Ie.breakpoints=te.breakpoints.sort((oe,Ne)=>oe-Ne)),Object.assign({},Uo,te,Ie)}((0,n.inject)(jo)),this.renderer=(0,n.inject)(n.Renderer2),this.imgElement=(0,n.inject)(n.ElementRef).nativeElement,this.injector=(0,n.inject)(n.Injector),this.isServer=ao((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=Go(oe)}get width(){return this._width}set height(oe){this._height=Go(oe)}get height(){return this._height}set priority(oe){this._priority=wo(oe)}get priority(){return this._priority}set disableOptimizedSrcset(oe){this._disableOptimizedSrcset=wo(oe)}get disableOptimizedSrcset(){return this._disableOptimizedSrcset}set fill(oe){this._fill=wo(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=_r.test(this.ngSrcset);return this.ngSrcset.split(",").filter(yt=>""!==yt).map(yt=>{yt=yt.trim();const Gt=oe?parseFloat(yt):parseFloat(yt)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:Gt})} ${yt}`}).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 Ur.map(Ne=>`${this.callImageLoader({src:this.ngSrc,width:this.width*Ne})} ${Ne}x`).join(", ")}shouldGenerateAutomaticSrcset(){return!this._disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==rt&&!(this.width>1920||this.height>1080)}ngOnDestroy(){}setHostAttribute(oe,Ne){this.renderer.setAttribute(this.imgElement,oe,Ne)}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275dir=n.\u0275\u0275defineDirective({type:te,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]}),te})();function Go(te){return"string"==typeof te?parseInt(te,10):te}function wo(te){return null!=te&&"false"!=`${te}`}},529:(G,P,a)=>{"use strict";a.d(P,{JF:()=>_i,LE:()=>le,TP:()=>Yt,UA:()=>ot,WM:()=>x,dt:()=>Oe,eN:()=>Vt});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(Wt=>-1===We.indexOf(Wt)),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 F(ue)}encodeValue(ue){return F(ue)}decodeKey(ue){return decodeURIComponent(ue)}decodeValue(ue){return decodeURIComponent(ue)}}const I=/%(\d[a-f0-9])/gi,j={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function F(ze){return encodeURIComponent(ze).replace(I,(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,Wt]=-1==We?[ue.decodeKey(Re),""]:[ue.decodeKey(Re.slice(0,We)),ue.decodeValue(Re.slice(We+1))],wt=re.get(xt)||[];wt.push(Wt),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 N(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 Qe{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 Wt=re.indexOf("?");this.urlWithParams=re+(-1===Wt?"?":Wt<re.length-1?"&":"")+xt}}else this.params=new le,this.urlWithParams=re}serializeBody(){return null===this.body?null:N(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:N(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,Wt=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 Qe(re,Ee,We,{params:Mt,headers:wt,context:It,reportProgress:Wt,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 Je extends nt{constructor(ue={}){super(ue),this.type=Oe.ResponseHeader}clone(ue={}){return new Je({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 Vt=(()=>{class ze{constructor(re){this.handler=re}request(re,Ee,Re={}){let We;if(re instanceof Qe)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 Qe(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 Qe||"events"===Re.observe)return xt;const Wt=xt.pipe((0,d.h)(wt=>wt instanceof ct));switch(Re.observe||"body"){case"body":switch(We.responseType){case"arraybuffer":return Wt.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 Wt.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 Wt.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 Wt.pipe((0,u.U)(wt=>wt.body))}case"response":return Wt;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 Yt=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)(Yt,{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 ee=/^\)\]\}',?\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,Se)=>Re.setRequestHeader(Le,Se.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 Wt=()=>{if(null!==xt)return xt;const Le=Re.statusText||"OK",Se=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 Je({headers:Se,status:Re.status,statusText:Le,url:Ot}),xt},wt=()=>{let{headers:Le,status:Se,statusText:Ot,url:Me}=Wt(),bt=null;204!==Se&&(bt=typeof Re.response>"u"?Re.responseText:Re.response),0===Se&&(Se=bt?200:0);let Pt=Se>=200&&Se<300;if("json"===re.responseType&&"string"==typeof bt){const ii=bt;bt=bt.replace(ee,"");try{bt=""!==bt?JSON.parse(bt):null}catch(Ki){bt=ii,Pt&&(Pt=!1,bt={error:Ki,text:bt})}}Pt?(Ee.next(new ct({body:bt,headers:Le,status:Se,statusText:Ot,url:Me||void 0})),Ee.complete()):Ee.error(new ot({error:bt,headers:Le,status:Se,statusText:Ot,url:Me||void 0}))},Mt=Le=>{const{url:Se}=Wt(),Ot=new ot({error:Le,status:Re.status||0,statusText:Re.statusText||"Unknown Error",url:Se||void 0});Ee.error(Ot)};let It=!1;const se=Le=>{It||(Ee.next(Wt()),It=!0);let Se={type:Oe.DownloadProgress,loaded:Le.loaded};Le.lengthComputable&&(Se.total=Le.total),"text"===re.responseType&&Re.responseText&&(Se.partialText=Re.responseText),Ee.next(Se)},we=Le=>{let Se={type:Oe.UploadProgress,loaded:Le.loaded};Le.lengthComputable&&(Se.total=Le.total),Ee.next(Se)};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 Tt=(()=>{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=[Vt,R,_t,{provide:b,useExisting:_t},{provide:C,useExisting:R},{provide:Jt,useValue:Bt,multi:!0},{provide:be,useValue:!0},{provide:gt,useClass:Tt}];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:()=>xa,ANIMATION_MODULE_TYPE:()=>zC,APP_BOOTSTRAP_LISTENER:()=>I_,APP_ID:()=>h_,APP_INITIALIZER:()=>u_,ApplicationInitStatus:()=>Kc,ApplicationModule:()=>Ox,ApplicationRef:()=>Qc,Attribute:()=>Hs,COMPILER_OPTIONS:()=>g_,CUSTOM_ELEMENTS_SCHEMA:()=>xl,ChangeDetectionStrategy:()=>Wt,ChangeDetectorRef:()=>j_,Compiler:()=>ZC,CompilerFactory:()=>QC,Component:()=>AC,ComponentFactory:()=>gc,ComponentFactoryResolver:()=>Pl,ComponentRef:()=>Om,ContentChild:()=>ha,ContentChildren:()=>Fa,DEFAULT_CURRENCY_CODE:()=>$C,DebugElement:()=>Kl,DebugEventListener:()=>fx,DebugNode:()=>Rh,DefaultIterableDiffer:()=>K_,Directive:()=>d_,ENVIRONMENT_INITIALIZER:()=>Ed,ElementRef:()=>Ol,EmbeddedViewRef:()=>px,EnvironmentInjector:()=>Da,ErrorHandler:()=>Al,EventEmitter:()=>Js,Host:()=>ds,HostBinding:()=>FC,HostListener:()=>BC,INJECTOR:()=>wd,Inject:()=>Di,InjectFlags:()=>be,Injectable:()=>ub,InjectionToken:()=>or,Injector:()=>_a,Input:()=>LC,IterableDiffers:()=>jh,KeyValueDiffers:()=>Vh,LOCALE_ID:()=>Gc,MissingTranslationStrategy:()=>qs,ModuleWithComponentFactories:()=>f_,NO_ERRORS_SCHEMA:()=>wa,NgModule:()=>NC,NgModuleFactory:()=>qf,NgModuleRef:()=>pl,NgProbeToken:()=>rx,NgZone:()=>ws,Optional:()=>ki,Output:()=>RC,PACKAGE_ROOT_URL:()=>VC,PLATFORM_ID:()=>jC,PLATFORM_INITIALIZER:()=>p_,Pipe:()=>kC,PlatformRef:()=>Lh,Query:()=>cs,QueryList:()=>Vc,ReflectiveInjector:()=>Ja,ReflectiveKey:()=>aa,Renderer2:()=>jv,RendererFactory2:()=>km,RendererStyleFlags2:()=>ks,ResolvedReflectiveFactory:()=>tp,Sanitizer:()=>Lm,SecurityContext:()=>ro,Self:()=>Mn,SimpleChange:()=>Mo,SkipSelf:()=>dr,TRANSLATIONS:()=>KC,TRANSLATIONS_FORMAT:()=>GC,TemplateRef:()=>Hl,Testability:()=>nx,TestabilityRegistry:()=>E_,Type:()=>ma,VERSION:()=>Fm,Version:()=>Rm,ViewChild:()=>Gl,ViewChildren:()=>_l,ViewContainerRef:()=>Wc,ViewEncapsulation:()=>wt,ViewRef:()=>z_,asNativeElements:()=>gx,assertPlatform:()=>A_,createComponent:()=>zx,createEnvironmentInjector:()=>dh,createNgModule:()=>eg,createNgModuleRef:()=>Ky,createPlatform:()=>T_,createPlatformFactory:()=>O_,defineInjectable:()=>z,destroyPlatform:()=>ax,enableProdMode:()=>dx,forwardRef:()=>w,getDebugNode:()=>gl,getModuleFactory:()=>ux,getNgModuleById:()=>hx,getPlatform:()=>Zc,importProvidersFrom:()=>Em,inject:()=>Bi,isDevMode:()=>cx,isStandalone:()=>Fn,makeEnvironmentProviders:()=>Sv,platformCore:()=>Px,reflectComponentType:()=>Wx,resolveForwardRef:()=>g,setTestabilityGetter:()=>w_,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Ah,\u0275APP_ID_RANDOM_PROVIDER:()=>UC,\u0275ComponentFactory:()=>gc,\u0275Console:()=>WC,\u0275DEFAULT_LOCALE_ID:()=>Aa,\u0275INJECTOR_SCOPE:()=>Td,\u0275LContext:()=>S,\u0275LifecycleHooksFeature:()=>xp,\u0275LocaleDataIndex:()=>Ji,\u0275NG_COMP_DEF:()=>se,\u0275NG_DIR_DEF:()=>we,\u0275NG_ELEMENT_ID:()=>Me,\u0275NG_INJ_DEF:()=>ee,\u0275NG_MOD_DEF:()=>Se,\u0275NG_PIPE_DEF:()=>Le,\u0275NG_PROV_DEF:()=>ht,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>_c,\u0275NO_CHANGE:()=>dn,\u0275NgModuleFactory:()=>jc,\u0275NoopNgZone:()=>C_,\u0275ReflectionCapabilities:()=>it,\u0275Render3ComponentFactory:()=>il,\u0275Render3ComponentRef:()=>Cp,\u0275Render3NgModuleRef:()=>ch,\u0275RuntimeError:()=>Z,\u0275TESTABILITY:()=>x_,\u0275TESTABILITY_GETTER:()=>M_,\u0275ViewRef:()=>tl,\u0275XSS_SECURITY_URL:()=>F,\u0275_sanitizeHtml:()=>fm,\u0275_sanitizeUrl:()=>hc,\u0275allowSanitizationBypassAndThrow:()=>Za,\u0275bypassSanitizationTrustHtml:()=>hv,\u0275bypassSanitizationTrustResourceUrl:()=>gv,\u0275bypassSanitizationTrustScript:()=>pv,\u0275bypassSanitizationTrustStyle:()=>mv,\u0275bypassSanitizationTrustUrl:()=>fv,\u0275clearResolutionOfComponentResourcesQueue:()=>Jl,\u0275coerceToBoolean:()=>Ax,\u0275compileComponent:()=>Jg,\u0275compileDirective:()=>Ih,\u0275compileNgModule:()=>Kg,\u0275compileNgModuleDefs:()=>Gg,\u0275compileNgModuleFactory:()=>S_,\u0275compilePipe:()=>l_,\u0275convertToBitFlags:()=>ze,\u0275createInjector:()=>Rd,\u0275defaultIterableDiffers:()=>Dx,\u0275defaultKeyValueDiffers:()=>Tx,\u0275detectChanges:()=>Pp,\u0275devModeEqual:()=>Tp,\u0275findLocaleData:()=>Ju,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Hg,\u0275formatRuntimeError:()=>le,\u0275getDebugNode:()=>gl,\u0275getDebugNodeR2:()=>yx,\u0275getDirectives:()=>sg,\u0275getHostElement:()=>hh,\u0275getInjectableDef:()=>Te,\u0275getLContext:()=>h,\u0275getLocaleCurrencyCode:()=>Y0,\u0275getLocalePluralCase:()=>Ef,\u0275getSanitizationBypassType:()=>lm,\u0275getUnknownElementStrictMode:()=>ic,\u0275getUnknownPropertyStrictMode:()=>rd,\u0275global:()=>Tt,\u0275injectChangeDetectorRef:()=>V_,\u0275internalCreateApplication:()=>sx,\u0275isBoundToModule:()=>D_,\u0275isEnvironmentProviders:()=>I,\u0275isInjectable:()=>Be,\u0275isNgModule:()=>yh,\u0275isObservable:()=>Fp,\u0275isPromise:()=>pu,\u0275isSubscribable:()=>Rp,\u0275makeDecorator:()=>Zo,\u0275noSideEffects:()=>xt,\u0275patchComponentDefWithScope:()=>Eh,\u0275publishDefaultGlobalUtils:()=>XC,\u0275publishGlobalUtil:()=>Es,\u0275registerLocaleData:()=>Q0,\u0275resetCompiledComponents:()=>yC,\u0275resetJitOptions:()=>_C,\u0275resolveComponentResources:()=>Ea,\u0275setAllowDuplicateNgModuleIdsForTest:()=>td,\u0275setClassMetadata:()=>lg,\u0275setCurrentInjector:()=>Qt,\u0275setDocument:()=>sv,\u0275setLocaleId:()=>qu,\u0275setUnknownElementStrictMode:()=>id,\u0275setUnknownPropertyStrictMode:()=>nd,\u0275store:()=>Ap,\u0275stringify:()=>b,\u0275transitiveScopesFor:()=>ka,\u0275unregisterLocaleData:()=>X0,\u0275unwrapSafeValue:()=>ra,\u0275\u0275CopyDefinitionFeature:()=>Ep,\u0275\u0275FactoryTarget:()=>Ar,\u0275\u0275HostDirectivesFeature:()=>wp,\u0275\u0275InheritDefinitionFeature:()=>Xd,\u0275\u0275NgOnChangesFeature:()=>Fo,\u0275\u0275ProvidersFeature:()=>Jf,\u0275\u0275StandaloneFeature:()=>tg,\u0275\u0275advance:()=>Km,\u0275\u0275attribute:()=>eu,\u0275\u0275attributeInterpolate1:()=>tu,\u0275\u0275attributeInterpolate2:()=>iu,\u0275\u0275attributeInterpolate3:()=>nu,\u0275\u0275attributeInterpolate4:()=>ru,\u0275\u0275attributeInterpolate5:()=>ou,\u0275\u0275attributeInterpolate6:()=>su,\u0275\u0275attributeInterpolate7:()=>au,\u0275\u0275attributeInterpolate8:()=>lu,\u0275\u0275attributeInterpolateV:()=>cu,\u0275\u0275classMap:()=>Yp,\u0275\u0275classMapInterpolate1:()=>sf,\u0275\u0275classMapInterpolate2:()=>af,\u0275\u0275classMapInterpolate3:()=>lf,\u0275\u0275classMapInterpolate4:()=>cf,\u0275\u0275classMapInterpolate5:()=>df,\u0275\u0275classMapInterpolate6:()=>uf,\u0275\u0275classMapInterpolate7:()=>hf,\u0275\u0275classMapInterpolate8:()=>mf,\u0275\u0275classMapInterpolateV:()=>pf,\u0275\u0275classProp:()=>Pu,\u0275\u0275contentQuery:()=>Bg,\u0275\u0275defineComponent:()=>Pt,\u0275\u0275defineDirective:()=>vr,\u0275\u0275defineInjectable:()=>W,\u0275\u0275defineInjector:()=>He,\u0275\u0275defineNgModule:()=>nr,\u0275\u0275definePipe:()=>ur,\u0275\u0275directiveInject:()=>qa,\u0275\u0275disableBindings:()=>Ke,\u0275\u0275element:()=>hu,\u0275\u0275elementContainer:()=>mu,\u0275\u0275elementContainerEnd:()=>Oc,\u0275\u0275elementContainerStart:()=>Pc,\u0275\u0275elementEnd:()=>Tc,\u0275\u0275elementStart:()=>Dc,\u0275\u0275enableBindings:()=>de,\u0275\u0275getCurrentView:()=>Lp,\u0275\u0275getInheritedFactory:()=>ta,\u0275\u0275hostProperty:()=>Yu,\u0275\u0275i18n:()=>Gf,\u0275\u0275i18nApply:()=>Qf,\u0275\u0275i18nAttributes:()=>Zf,\u0275\u0275i18nEnd:()=>nh,\u0275\u0275i18nExp:()=>rh,\u0275\u0275i18nPostprocess:()=>Yf,\u0275\u0275i18nStart:()=>ih,\u0275\u0275inject:()=>_i,\u0275\u0275injectAttribute:()=>Os,\u0275\u0275invalidFactory:()=>op,\u0275\u0275invalidFactoryDep:()=>pi,\u0275\u0275listener:()=>fu,\u0275\u0275loadQuery:()=>Ng,\u0275\u0275namespaceHTML:()=>Ss,\u0275\u0275namespaceMathML:()=>zs,\u0275\u0275namespaceSVG:()=>So,\u0275\u0275nextContext:()=>jp,\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:()=>Eg,\u0275\u0275pipeBind1:()=>wg,\u0275\u0275pipeBind2:()=>Ig,\u0275\u0275pipeBind3:()=>Sg,\u0275\u0275pipeBind4:()=>Dg,\u0275\u0275pipeBindV:()=>Tg,\u0275\u0275projection:()=>zp,\u0275\u0275projectionDef:()=>Vp,\u0275\u0275property:()=>du,\u0275\u0275propertyInterpolate:()=>_u,\u0275\u0275propertyInterpolate1:()=>Ac,\u0275\u0275propertyInterpolate2:()=>vu,\u0275\u0275propertyInterpolate3:()=>bu,\u0275\u0275propertyInterpolate4:()=>yu,\u0275\u0275propertyInterpolate5:()=>Cu,\u0275\u0275propertyInterpolate6:()=>xu,\u0275\u0275propertyInterpolate7:()=>Mu,\u0275\u0275propertyInterpolate8:()=>Eu,\u0275\u0275propertyInterpolateV:()=>wu,\u0275\u0275pureFunction0:()=>cg,\u0275\u0275pureFunction1:()=>dg,\u0275\u0275pureFunction2:()=>ug,\u0275\u0275pureFunction3:()=>hg,\u0275\u0275pureFunction4:()=>mg,\u0275\u0275pureFunction5:()=>pg,\u0275\u0275pureFunction6:()=>fg,\u0275\u0275pureFunction7:()=>gg,\u0275\u0275pureFunction8:()=>_g,\u0275\u0275pureFunctionV:()=>vg,\u0275\u0275queryRefresh:()=>Rg,\u0275\u0275reference:()=>kp,\u0275\u0275registerNgModuleType:()=>Cl,\u0275\u0275resetView:()=>Oi,\u0275\u0275resolveBody:()=>Um,\u0275\u0275resolveDocument:()=>Nm,\u0275\u0275resolveWindow:()=>Bm,\u0275\u0275restoreView:()=>qt,\u0275\u0275sanitizeHtml:()=>gm,\u0275\u0275sanitizeResourceUrl:()=>Md,\u0275\u0275sanitizeScript:()=>vm,\u0275\u0275sanitizeStyle:()=>_m,\u0275\u0275sanitizeUrl:()=>xd,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Cm,\u0275\u0275setComponentScope:()=>ii,\u0275\u0275setNgModuleScope:()=>Lr,\u0275\u0275styleMap:()=>Fs,\u0275\u0275styleMapInterpolate1:()=>ff,\u0275\u0275styleMapInterpolate2:()=>gf,\u0275\u0275styleMapInterpolate3:()=>_f,\u0275\u0275styleMapInterpolate4:()=>vf,\u0275\u0275styleMapInterpolate5:()=>bf,\u0275\u0275styleMapInterpolate6:()=>yf,\u0275\u0275styleMapInterpolate7:()=>Cf,\u0275\u0275styleMapInterpolate8:()=>xf,\u0275\u0275styleMapInterpolateV:()=>Mf,\u0275\u0275styleProp:()=>Tu,\u0275\u0275stylePropInterpolate1:()=>Vu,\u0275\u0275stylePropInterpolate2:()=>zu,\u0275\u0275stylePropInterpolate3:()=>Wu,\u0275\u0275stylePropInterpolate4:()=>Hu,\u0275\u0275stylePropInterpolate5:()=>$u,\u0275\u0275stylePropInterpolate6:()=>Ku,\u0275\u0275stylePropInterpolate7:()=>Gu,\u0275\u0275stylePropInterpolate8:()=>Zu,\u0275\u0275stylePropInterpolateV:()=>Qu,\u0275\u0275syntheticHostListener:()=>gu,\u0275\u0275syntheticHostProperty:()=>Xu,\u0275\u0275template:()=>Op,\u0275\u0275templateRefExtractor:()=>zg,\u0275\u0275text:()=>rf,\u0275\u0275textInterpolate:()=>Au,\u0275\u0275textInterpolate1:()=>Rc,\u0275\u0275textInterpolate2:()=>ku,\u0275\u0275textInterpolate3:()=>Lu,\u0275\u0275textInterpolate4:()=>Ru,\u0275\u0275textInterpolate5:()=>Fu,\u0275\u0275textInterpolate6:()=>Bu,\u0275\u0275textInterpolate7:()=>Nu,\u0275\u0275textInterpolate8:()=>Uu,\u0275\u0275textInterpolateV:()=>ju,\u0275\u0275trustConstantHtml:()=>bm,\u0275\u0275trustConstantResourceUrl:()=>ym,\u0275\u0275validateIframeAttribute:()=>nm,\u0275\u0275viewQuery:()=>Fg});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 I(t){return t&&!!t.\u0275providers}const F="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 W(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const z=W;function He(t){return{providers:t.providers||[],imports:t.imports||[]}}function Te(t){return pt(t,ht)||pt(t,k)}function Be(t){return null!==Te(t)}function pt(t,i){return t.hasOwnProperty(i)?t[i]:null}function Xe(t){return t&&(t.hasOwnProperty(ee)||t.hasOwnProperty(R))?t[ee]:null}const ht=d({\u0275prov:d}),ee=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 qe;function fe(t){const i=qe;return qe=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 Tt=(()=>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,di="\u0275",vt="__source";let Ut;function Qt(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 qe}()||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 Wt=(()=>((Wt=Wt||{})[Wt.OnPush=0]="OnPush",Wt[Wt.Default=1]="Default",Wt))(),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}),Se=d({\u0275mod:d}),Ot=d({\u0275fac:d}),Me=d({__NG_ELEMENT_ID__:d});let bt=0;function Pt(t){return xt(()=>{const i=Xr(t),r={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Wt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||wt.Emulated,id:"c"+bt++,styles:t.styles||It,_:null,schemas:t.schemas||null,tView:null};hr(r);const c=t.dependencies;return r.directiveDefs=br(c,!1),r.pipeDefs=br(c,!0),r})}function ii(t,i,r){const c=t.\u0275cmp;c.directiveDefs=br(i,!1),c.pipeDefs=br(r,!0)}function Ki(t){return Yi(t)||wn(t)}function On(t){return null!==t}function nr(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 Lr(t,i){return xt(()=>{const r=Mi(t,!0);r.declarations=i.declarations||It,r.imports=i.imports||It,r.exports=i.exports||It})}function wr(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 vr(t){return xt(()=>{const i=Xr(t);return hr(i),i})}function ur(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 Yi(t){return t[se]||null}function wn(t){return t[we]||null}function Rn(t){return t[Le]||null}function Fn(t){const i=Yi(t)||wn(t)||Rn(t);return null!==i&&i.standalone}function Mi(t,i){const r=t[Se]||null;if(!r&&!0===i)throw new Error(`Type ${b(t)} does not have '\u0275mod' property.`);return r}function Xr(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:wr(t.inputs,i),outputs:wr(t.outputs)}}function hr(t){t.features?.forEach(i=>i(t))}function br(t,i){if(!t)return null;const r=i?Rn:Ki;return()=>("function"==typeof t?t():t).map(c=>r(c)).filter(On)}const Bn=0,bi=1,gi=2,ji=3,Sn=4,Hn=5,_n=6,tr=7,wi=8,qi=9,Zn=10,zi=11,Nn=12,Rr=13,Un=14,Qn=15,Ei=16,jn=17,mt=18,ni=19,he=20,je=21,Ye=22,ci=1,Wi=2,ln=7,en=8,$n=9,Dn=10;function Ri(t){return Array.isArray(t)&&"object"==typeof t[ci]}function Cn(t){return Array.isArray(t)&&!0===t[ci]}function hn(t){return 0!=(4&t.flags)}function pr(t){return t.componentOffset>-1}function Jr(t){return 1==(1&t.flags)}function Vn(t){return!!t.template}function so(t){return 0!=(256&t[gi])}function Tr(t,i){return t.hasOwnProperty(Ot)?t[Ot]:null}class Mo{constructor(i,r,c){this.previousValue=i,this.currentValue=r,this.firstChange=c}isFirstChange(){return this.firstChange}}function Fo(){return Nr}function Nr(t){return t.type.prototype.ngOnChanges&&(t.setInput=ar),An}function An(){const t=po(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 ar(t,i,r,c){const p=this.declaredInputs[r],_=po(t)||function rr(t,i){return t[lo]=i}(t,{previous:Mt,current:null}),O=_.current||(_.current={}),Q=_.previous,ce=Q[p];O[p]=new Mo(ce&&ce.currentValue,i,Q===Mt),t[c]=i}Fo.ngInherit=!0;const lo="__ngSimpleChanges__";function po(t){return t[lo]||null}let yr=null;const to=t=>{yr=t},Yn=function(t,i,r){yr?.(t,i,r)},Bo="svg",mn="math";function Kn(t){for(;Array.isArray(t);)t=t[Bn];return t}function kt(t,i){return Kn(i[t])}function D(t,i){return Kn(i[t.index])}function _e(t,i){return t.data[i]}function tt(t,i){return t[i]}function St(t,i){const r=i[t];return Ri(r)?r:r[Bn]}function xi(t){return 64==(64&t[gi])}function oi(t,i){return null==i?null:t[i]}function bn(t){t[mt]=0}function Gn(t,i){t[Hn]+=i;let r=t,c=t[ji];for(;null!==c&&(1===i&&1===r[Hn]||-1===i&&0===r[Hn]);)c[Hn]+=i,r=c,c=c[ji]}const Vi={lFrame:Io(null),bindingsEnabled:!0};function B(){return Vi.bindingsEnabled}function de(){Vi.bindingsEnabled=!0}function Ke(){Vi.bindingsEnabled=!1}function Ve(){return Vi.lFrame.lView}function ft(){return Vi.lFrame.tView}function qt(t){return Vi.lFrame.contextLView=t,t[wi]}function Oi(t){return Vi.lFrame.contextLView=null,t}function Pi(){let t=ui();for(;null!==t&&64===t.type;)t=t.parent;return t}function ui(){return Vi.lFrame.currentTNode}function Hi(){const t=Vi.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function vn(t,i){const r=Vi.lFrame;r.currentTNode=t,r.isParent=i}function Cr(){return Vi.lFrame.isParent}function Ti(){Vi.lFrame.isParent=!1}function yn(){const t=Vi.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Wn(){return Vi.lFrame.bindingIndex}function Eo(t){return Vi.lFrame.bindingIndex=t}function Ur(){return Vi.lFrame.bindingIndex++}function Xn(t){const i=Vi.lFrame,r=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,r}function No(t){Vi.lFrame.inI18n=t}function ms(t,i){const r=Vi.lFrame;r.bindingIndex=r.bindingRootIndex=t,xr(i)}function xr(t){Vi.lFrame.currentDirectiveIndex=t}function Uo(t){const i=Vi.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}function jo(){return Vi.lFrame.currentQueryIndex}function go(t){Vi.lFrame.currentQueryIndex=t}function Go(t){const i=t[bi];return 2===i.type?i.declTNode:1===i.type?t[_n]:null}function wo(t,i,r){if(r&be.SkipSelf){let p=i,_=t;for(;!(p=p.parent,null!==p||r&be.Host||(p=Go(_),null===p||(_=_[Qn],10&p.type))););if(null===p)return!1;i=p,t=_}const c=Vi.lFrame=ea();return c.currentTNode=i,c.lView=t,!0}function Xo(t){const i=ea(),r=t[bi];Vi.lFrame=i,i.currentTNode=r.firstChild,i.lView=t,i.tView=r,i.contextLView=t,i.bindingIndex=r.bindingStartIndex,i.inI18n=!1}function ea(){const t=Vi.lFrame,i=null===t?null:t.child;return null===i?Io(t):i}function Io(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 Us(){const t=Vi.lFrame;return Vi.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const js=Us;function ps(){const t=Us();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 Tn(){return Vi.lFrame.selectedIndex}function uo(t){Vi.lFrame.selectedIndex=t}function Jn(){const t=Vi.lFrame;return _e(t.tView,t.selectedIndex)}function So(){Vi.lFrame.currentNamespace=Bo}function zs(){Vi.lFrame.currentNamespace=mn}function Ss(){!function da(){Vi.lFrame.currentNamespace=null}()}function _o(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:et}=_;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!=et&&(t.destroyHooks??(t.destroyHooks=[])).push(r,et)}}function Vo(t,i,r){Ie(t,i,3,r)}function rs(t,i,r,c){(3&t[gi])===r&&Ie(t,i,r,c)}function te(t,i){let r=t[gi];(3&r)===i&&(r&=2047,r+=1,t[gi]=r)}function Ie(t,i,r,c){const _=c??-1,O=i.length-1;let Q=0;for(let ce=void 0!==c?65535&t[mt]:0;ce<O;ce++)if("number"==typeof i[ce+1]){if(Q=i[ce],null!=c&&Q>=c)break}else i[ce]<0&&(t[mt]+=65536),(Q<_||-1==_)&&(oe(t,r,i,ce),t[mt]=(4294901760&t[mt])+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[mt]>>16&&(3&t[gi])===i){t[gi]+=2048,Yn(4,Q,_);try{_.call(Q)}finally{Yn(5,Q,_)}}}else{Yn(4,Q,_);try{_.call(Q)}finally{Yn(5,Q,_)}}}const Ne=-1;class yt{constructor(i,r,c){this.factory=i,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=c}}function gn(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];Do(_)?t.setProperty(i,_,O):t.setAttribute(i,_,O),c++}}return c}function qn(t){return 3===t||4===t||6===t}function Do(t){return 64===t.charCodeAt(0)}function jr(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||ko(t,r,p,null,-1===r||2===r?i[++c]:null)}}return t}function ko(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 Pr(t){return t!==Ne}function Gr(t){return 32767&t}function m(t,i){let r=function s(t){return t>>16}(t),c=i;for(;r>0;)c=c[Qn],r--;return c}let E=!0;function Y(t){const i=E;return E=t,i}const Ze=255,Dt=5;let Ht=0;const Zt={};function Ai(t,i){const r=fn(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=Zr(t,i),_=t.injectorIndex;if(Pr(p)){const O=Gr(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 fn(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function Zr(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=es(p),null===c)return Ne;if(r++,p=p[Qn],-1!==c.injectorIndex)return c.injectorIndex|r<<16}return Ne}function cr(t,i,r){!function hi(t,i,r){let c;"string"==typeof r?c=r.charCodeAt(0)||0:r.hasOwnProperty(Me)&&(c=r[Me]),null==c&&(c=r[Me]=Ht++);const p=c&Ze;i.data[t+(p>>Dt)]|=1<<p}(t,i,r)}function no(t,i,r){if(r&be.Optional||void 0!==t)return t;xe()}function os(t,i,r,c){if(r&be.Optional&&void 0===c&&(c=null),!(r&(be.Self|be.Host))){const p=t[qi],_=fe(void 0);try{return p?p.get(i,c,r&be.Optional):ke(i,c,r&be.Optional)}finally{fe(_)}}return no(c,0,r)}function ss(t,i,r,c=be.Default,p){if(null!==t){if(1024&i[gi]){const O=function Ca(t,i,r,c,p){let _=t,O=i;for(;null!==_&&null!==O&&1024&O[gi]&&!(256&O[gi]);){const Q=Ts(_,O,r,c|be.Self,Zt);if(Q!==Zt)return Q;let ce=_.parent;if(!ce){const De=O[je];if(De){const et=De.get(r,Zt,c);if(et!==Zt)return et}ce=es(O),O=O[Qn]}_=ce}return p}(t,i,r,c,Zt);if(O!==Zt)return O}const _=Ts(t,i,r,c,Zt);if(_!==Zt)return _}return os(i,r,c,p)}function Ts(t,i,r,c,p){const _=function Vr(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&Ze:ya:i}(r);if("function"==typeof _){if(!wo(i,t,c))return c&be.Host?no(p,0,c):os(i,r,c,p);try{const O=_(c);if(null!=O||c&be.Optional)return O;xe()}finally{js()}}else if("number"==typeof _){let O=null,Q=fn(t,i),ce=Ne,De=c&be.Host?i[Ei][_n]:null;for((-1===Q||c&be.SkipSelf)&&(ce=-1===Q?Zr(t,i):i[Q+8],ce!==Ne&&qo(c,!1)?(O=i[bi],Q=Gr(ce),i=m(ce,i)):Q=-1);-1!==Q;){const et=i[bi];if(mr(_,Q,et.data)){const Ct=ua(Q,i,r,O,c,De);if(Ct!==Zt)return Ct}ce=i[Q+8],ce!==Ne&&qo(c,i[bi].data[Q+8]===De)&&mr(_,Q,i)?(O=et,Q=Gr(ce),i=m(ce,i)):Q=-1}}return p}function ua(t,i,r,c,p,_){const O=i[bi],Q=O.data[t+8],et=fs(Q,O,r,null==c?pr(Q)&&E:c!=O&&0!=(3&Q.type),p&be.Host&&_===Q);return null!==et?as(i,O,et,Q):Zt}function fs(t,i,r,c,p){const _=t.providerIndexes,O=i.data,Q=1048575&_,ce=t.directiveStart,et=_>>20,Ft=p?Q+et:t.directiveEnd;for(let Kt=c?Q:Q+et;Kt<Ft;Kt++){const li=O[Kt];if(Kt<ce&&r===li||Kt>=ce&&li.type===r)return Kt}if(p){const Kt=O[ce];if(Kt&&Vn(Kt)&&Kt.type===r)return ce}return null}function as(t,i,r,c){let p=t[r];const _=i.data;if(function Gt(t){return t instanceof yt}(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?fe(O.injectImpl):null;wo(t,c,be.Default);try{p=t[r]=O.factory(void 0,_,t,c),i.firstCreatePass&&r>=c.directiveStart&&function Ds(t,i,r){const{ngOnChanges:c,ngOnInit:p,ngDoCheck:_}=i.type.prototype;if(c){const O=Nr(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&&fe(ce),Y(Q),O.resolving=!1,js()}}return p}function mr(t,i,r){return!!(r[i+(t>>Dt)]&1<<t)}function qo(t,i){return!(t&be.Self||t&be.Host&&i)}class gs{constructor(i,r){this._tNode=i,this._lView=r}get(i,r,c){return ss(this._tNode,this._lView,i,ze(c),r)}}function ya(){return new gs(Pi(),Ve())}function ta(t){return xt(()=>{const i=t.prototype.constructor,r=i[Ot]||Ps(i),c=Object.prototype;let p=Object.getPrototypeOf(t.prototype).constructor;for(;p&&p!==c;){const _=p[Ot]||Ps(p);if(_&&_!==r)return _;p=Object.getPrototypeOf(p)}return _=>new _})}function Ps(t){return f(t)?()=>{const i=Ps(g(t));return i&&i()}:Tr(t)}function es(t){const i=t[bi],r=i.type;return 2===r?i.declTNode:1===r?t[_n]:null}function Os(t){return function io(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(qn(_))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}(Pi(),t)}const ls="__annotations__",Or="__parameters__",Ws="__prop__metadata__";function Zo(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(et){return p&&p(et,...Q),(et.hasOwnProperty(ls)?et[ls]:Object.defineProperty(et,ls,{value:[]})[ls]).push(ce),c&&c(et),et}}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 As(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,et){const Ct=ce.hasOwnProperty(Or)?ce[Or]:Object.defineProperty(ce,Or,{value:[]})[Or];for(;Ct.length<=et;)Ct.push(null);return(Ct[et]=Ct[et]||[]).push(O),ce}}return r&&(p.prototype=Object.create(r.prototype)),p.prototype.ngMetadataName=t,p.annotationCls=p,p})}function vo(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,et){const Ct=De.constructor,Ft=Ct.hasOwnProperty(Ws)?Ct[Ws]:Object.defineProperty(Ct,Ws,{value:{}})[Ws];Ft[et]=Ft.hasOwnProperty(et)&&Ft[et]||[],Ft[et].unshift(Q),c&&c(De,et,...O)}}return r&&(_.prototype=Object.create(r.prototype)),_.prototype.ngMetadataName=t,_.annotationCls=_,_})}const Hs=As("Attribute",t=>({attributeName:t,__NG_ELEMENT_ID__:()=>Os(t)}));class or{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=W({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const xa=new or("AnalyzeForEntryComponents");class cs{}const Fa=vo("ContentChildren",(t,i={})=>({selector:t,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0,...i}),cs),ha=vo("ContentChild",(t,i={})=>({selector:t,first:!0,isViewQuery:!1,descendants:!0,...i}),cs),_l=vo("ViewChildren",(t,i={})=>({selector:t,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0,...i}),cs),Gl=vo("ViewChild",(t,i)=>({selector:t,first:!0,isViewQuery:!0,descendants:!0,...i}),cs);var Ar=(()=>((Ar=Ar||{})[Ar.Directive=0]="Directive",Ar[Ar.Component=1]="Component",Ar[Ar.Injectable=2]="Injectable",Ar[Ar.Pipe=3]="Pipe",Ar[Ar.NgModule=4]="NgModule",Ar))();function Qr(t){const i=Tt.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const ma=Function;function $s(t){return"function"==typeof t}function ts(t){return t.flat(Number.POSITIVE_INFINITY)}function _s(t,i){t.forEach(r=>Array.isArray(r)?_s(r,i):i(r))}function Ba(t,i,r){i>=t.length?t.push(r):t.splice(i,0,r)}function pa(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function ia(t,i){const r=[];for(let c=0;c<t;c++)r.push(i);return r}function Lo(t,i,r){let c=Gs(t,i);return c>=0?t[1|c]=r:(c=~c,function Na(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 na(t,i){const r=Gs(t,i);if(r>=0)return t[1|r]}function Gs(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 it{constructor(i){this._reflect=i||Tt.Reflect}factory(i){return(...r)=>new i(...r)}_zipTypesAndAnnotations(i,r){let c;c=ia(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 Ge(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(et=>et&&et.type),De=Q.map(et=>et&&jt(et.decorators));return this._zipTypesAndAnnotations(ce,De)}const _=i.hasOwnProperty(Or)&&i[Or],O=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",i);return O||_?this._zipTypesAndAnnotations(O,_):ia(i.length)}parameters(i){if(!$s(i))return[];const r=si(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?jt(i.decorators):i.hasOwnProperty(ls)?i[ls]:null}annotations(i){if(!$s(i))return[];const r=si(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[_]=jt(c[_])}),p}return i.hasOwnProperty(Ws)?i[Ws]:null}propMetadata(i){if(!$s(i))return{};const r=si(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 $s(i)&&this._ownPropMetadata(i,si(i))||{}}hasLifecycleHook(i,r){return i instanceof ma&&r in i.prototype}}function jt(t){return t?t.map(i=>new(0,i.type.annotationCls)(...i.args?i.args:[])):[]}function si(t){const i=t.prototype?Object.getPrototypeOf(t.prototype):null;return(i?i.constructor:null)||Object}const Di=re(As("Inject",t=>({token:t})),-1),ki=re(As("Optional"),8),Mn=re(As("Self"),2),dr=re(As("SkipSelf"),4),ds=re(As("Host"),1);let is=null;function To(){return is=is||new it}function Po(t){return Ua(To().parameters(t))}function Ua(t){return t.map(i=>function fa(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 ki||"Optional"===p.ngMetadataName)i.optional=!0;else if(c instanceof dr||"SkipSelf"===p.ngMetadataName)i.skipSelf=!0;else if(c instanceof Mn||"Self"===p.ngMetadataName)i.self=!0;else if(c instanceof ds||"Host"===p.ngMetadataName)i.host=!0;else if(c instanceof Di)i.token=c.token;else if(c instanceof Hs){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 Ea(t){const i=[],r=new Map;function c(p){let _=r.get(p);if(!_){const O=t(p);r.set(p,_=O.then(qc))}return _}return bo.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 et=Promise.all(O).then(()=>function ed(t){vs.delete(t)}(_));i.push(et)}),Jl(),Promise.all(i).then(()=>{})}let bo=new Map;const vs=new Set;function yl(t){return!!(t.templateUrl&&!t.hasOwnProperty("template")||t.styleUrls&&t.styleUrls.length)}function Jl(){const t=bo;return bo=new Map,t}function qc(t){return"string"==typeof t?t:t.text()}const ga=new Map;let ql=!0;function Cl(t,i){(function ec(t,i,r){if(i&&i!==r&&ql)throw new Error(`Duplicate module registered for ${t} - ${b(i)} vs ${b(i.name)}`)})(i,ga.get(i)||null,t),ga.set(i,t)}function tc(t){return ga.get(t)}function td(t){ql=!t}const xl={name:"custom-elements"},wa={name:"no-errors-schema"};let Va=!1;function id(t){Va=t}function ic(){return Va}let Ml=!1;function nd(t){Ml=t}function rd(){return Ml}var ks=(()=>((ks=ks||{})[ks.Important=1]="Important",ks[ks.DashCase=2]="DashCase",ks))();const ad=/^>|^->|<!--|-->|--!>|<!-$/g,ld=/(<|>)/,cd="\u200b$1\u200b";const El=new Map;let wl=0;function Il(t){return El.get(t)||null}class S{get lView(){return Il(this.lViewId)}constructor(i,r,c){this.lViewId=i,this.nodeIndex=r,this.native=c}}function h(t){let i=ut(t);if(i){if(Ri(i)){const r=i;let c,p,_;if($t(t)){if(c=rn(r,t),-1==c)throw new Error("The provided component was not found in the application");p=t}else if(function vi(t){return t&&t.constructor&&t.constructor.\u0275dir}(t)){if(c=function Gi(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=on(r)}return-1}(r,t),-1==c)throw new Error("The provided directive was not found in the application");_=Xi(c,r)}else if(c=Ii(r,t),-1==c)return null;const O=Kn(r[c]),Q=ut(O),ce=Q&&!Array.isArray(Q)?Q:M(r,c,O);if(p&&void 0===ce.component&&(ce.component=p,$e(ce.component,ce)),_&&void 0===ce.directives){ce.directives=_;for(let De=0;De<_.length;De++)$e(_[De],ce)}$e(ce.native,ce),i=ce}}else{const r=t;let c=r;for(;c=c.parentNode;){const p=ut(c);if(p){const _=Array.isArray(p)?p:p.lView;if(!_)return null;const O=Ii(_,r);if(O>=0){const Q=Kn(_[O]),ce=M(_,O,Q);$e(Q,ce),i=ce;break}}}}return i||null}function M(t,i,r){return new S(t[he],i,r)}function U(t){let r,i=ut(t);if(Ri(i)){const c=i,p=rn(c,t);r=St(p,c);const _=M(c,p,r[Bn]);_.component=t,$e(t,_),$e(_.native,_)}else r=St(i.nodeIndex,i.lView);return r}const ge="__ngContext__";function $e(t,i){Ri(i)?(t[ge]=i[he],function Gh(t){El.set(t[he],t)}(i)):t[ge]=i}function ut(t){const i=t[ge];return"number"==typeof i?Il(i):i||null}function Et(t){const i=ut(t);return i?Ri(i)?i:i.lView:null}function $t(t){return t&&t.constructor&&t.constructor.\u0275cmp}function Ii(t,i){const r=t[bi];for(let c=Ye;c<r.bindingStartIndex;c++)if(Kn(t[c])===i)return c;return-1}function on(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 rn(t,i){const r=t[bi].components;if(r)for(let c=0;c<r.length;c++){const p=r[c];if(St(p,t)[wi]===i)return p}else if(St(Ye,t)[wi]===i)return Ye;return-1}function Xi(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];$t(_)||c.push(_)}return c}let Mr;function zr(t,i){return Mr(t,i)}function zo(t){const i=t[ji];return Cn(i)?i[ji]:i}function cn(t){return function Pn(t){let i=Ri(t)?t:Et(t);for(;i&&!(256&i[gi]);)i=zo(i);return i}(t)[wi]}function Hr(t){return Ho(t[Rr])}function Wo(t){return Ho(t[Sn])}function Ho(t){for(;null!==t&&!Cn(t);)t=t[Sn];return t}function bs(t,i,r,c,p){if(null!=c){let _,O=!1;Cn(c)?_=c:Ri(c)&&(O=!0,c=c[Bn]);const Q=Kn(c);0===t&&null!==r?null==p?Ka(i,r,Q):xs(i,r,Q,p||null,!0):1===t&&null!==r?xs(i,r,Q,p||null,!0):2===t?pd(i,Q,O):3===t&&i.destroyNode(Q),null!=_&&function tv(t,i,r,c,p){const _=r[ln];_!==Kn(r)&&bs(i,t,c,_,p);for(let Q=Dn;Q<r.length;Q++){const ce=r[Q];Sl(ce[bi],ce,t,i,c,_)}}(i,t,_,r,p)}}function Ls(t,i){return t.createText(i)}function us(t,i,r){t.setValue(i,r)}function sc(t,i){return t.createComment(function oc(t){return t.replace(ad,i=>i.replace(ld,cd))}(i))}function Ha(t,i,r){return t.createElement(i,r)}function $o(t,i){const r=t[$n],c=r.indexOf(i),p=i[ji];512&i[gi]&&(i[gi]&=-513,Gn(p,-1)),r.splice(c,1)}function Cs(t,i){if(t.length<=Dn)return;const r=Dn+i,c=t[r];if(c){const p=c[jn];null!==p&&p!==t&&$o(p,c),i>0&&(t[r-1][Sn]=c[Sn]);const _=pa(t,Dn+i);!function Ui(t,i){Sl(t,i,i[zi],2,null,null),i[Bn]=null,i[_n]=null}(c[bi],c);const O=_[ni];null!==O&&O.detachView(_[bi]),c[ji]=null,c[Sn]=null,c[gi]&=-65}return c}function Er(t,i){if(!(128&i[gi])){const r=i[zi];r.destroyNode&&Sl(t,i,r,3,null,null),function Ln(t){let i=t[Rr];if(!i)return $a(t[bi],t);for(;i;){let r=null;if(Ri(i))r=i[Rr];else{const c=i[Dn];c&&(r=c)}if(!r){for(;i&&!i[Sn]&&i!==t;)Ri(i)&&$a(i[bi],i),i=i[ji];null===i&&(i=t),Ri(i)&&$a(i[bi],i),r=i&&i[Sn]}i=r}}(i)}}function $a(t,i){if(!(128&i[gi])){i[gi]&=-65,i[gi]|=128,function Oo(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 yt)){const _=r[c+1];if(Array.isArray(_))for(let O=0;O<_.length;O+=2){const Q=p[_[O]],ce=_[O+1];Yn(4,Q,ce);try{ce.call(Q)}finally{Yn(5,Q,ce)}}else{Yn(4,p,_);try{_.call(p)}finally{Yn(5,p,_)}}}}}(t,i),function ud(t,i){const r=t.cleanup,c=i[tr];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[tr]=null}}(t,i),1===i[bi].type&&i[zi].destroy();const r=i[jn];if(null!==r&&Cn(i[ji])){r!==i[ji]&&$o(r,i);const c=i[ni];null!==c&&c.detachView(t)}!function H(t){El.delete(t[he])}(i)}}function Zs(t,i,r){return Qo(t,i.parent,r)}function Qo(t,i,r){let c=i;for(;null!==c&&40&c.type;)c=(i=c).parent;if(null===c)return r[Bn];{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 xs(t,i,r,c,p){t.insertBefore(i,r,c,p)}function Ka(t,i,r){t.appendChild(i,r)}function Zh(t,i,r,c,p){null!==c?xs(t,i,r,c,p):Ka(t,i,r)}function ac(t,i){return t.parentNode(i)}function Qh(t,i,r){return Xh(t,i,r)}function Yh(t,i,r){return 40&t.type?D(t,r):null}let hd,dc,_d,uc,Xh=Yh;function Jh(t,i){Xh=t,hd=i}function lc(t,i,r,c){const p=Zs(t,c,i),_=i[zi],Q=Qh(c.parent||i[_n],c,i);if(null!=p)if(Array.isArray(r))for(let ce=0;ce<r.length;ce++)Zh(_,p,r[ce],Q,!1);else Zh(_,p,r,Q,!1);void 0!==hd&&hd(_,c,i,r,p)}function cc(t,i){if(null!==i){const r=i.type;if(3&r)return D(i,t);if(4&r)return md(-1,t[i.index]);if(8&r){const c=i.child;if(null!==c)return cc(t,c);{const p=t[i.index];return Cn(p)?md(-1,p):Kn(p)}}if(32&r)return zr(i,t)()||Kn(t[i.index]);{const c=qh(t,i);return null!==c?Array.isArray(c)?c[0]:cc(zo(t[Ei]),c):cc(t,i.next)}}return null}function qh(t,i){return null!==i?t[Ei][_n].projection[i.projection]:null}function md(t,i){const r=Dn+t+1;if(r<i.length){const c=i[r],p=c[bi].firstChild;if(null!==p)return cc(c,p)}return i[ln]}function pd(t,i,r){const c=ac(t,i);c&&function J_(t,i,r,c){t.removeChild(i,r,c)}(t,c,i,r)}function fd(t,i,r,c,p,_,O){for(;null!=r;){const Q=c[r.index],ce=r.type;if(O&&0===i&&(Q&&$e(Kn(Q),c),r.flags|=2),32!=(32&r.flags))if(8&ce)fd(t,i,r.child,c,p,_,!1),bs(i,t,p,Q,_);else if(32&ce){const De=zr(r,c);let et;for(;et=De();)bs(i,t,p,et,_);bs(i,t,p,Q,_)}else 16&ce?em(t,i,c,r,p,_):bs(i,t,p,Q,_);r=O?r.projectionNext:r.next}}function Sl(t,i,r,c,p,_){fd(r,c,t.firstChild,i,p,_,!1)}function em(t,i,r,c,p,_){const O=r[Ei],ce=O[_n].projection[c.projection];if(Array.isArray(ce))for(let De=0;De<ce.length;De++)bs(i,t,p,ce[De],_);else fd(t,i,ce,O[ji],p,_,!0)}function tm(t,i,r){""===r?t.removeAttribute(i,"class"):t.setAttribute(i,"class",r)}function im(t,i,r){const{mergedAttrs:c,classes:p,styles:_}=r;null!==c&&gn(t,i,c),null!==p&&tm(t,i,p),null!==_&&function nv(t,i,r){t.setAttribute(i,"style",r)}(t,i,_)}function gd(){if(void 0===dc&&(dc=null,Tt.trustedTypes))try{dc=Tt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return dc}function Ga(t){return gd()?.createHTML(t)||t}function nm(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=Ga(""),pd(c[zi],O),new Z(-910,!1)}return t}function sv(t){_d=t}function rm(){return void 0!==_d?_d:typeof document<"u"?document:void 0}function vd(){if(void 0===uc&&(uc=null,Tt.trustedTypes))try{uc=Tt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return uc}function om(t){return vd()?.createHTML(t)||t}function sm(t){return vd()?.createScript(t)||t}function am(t){return vd()?.createScriptURL(t)||t}class Ia{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${F})`}}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 ra(t){return t instanceof Ia?t.changingThisBreaksApplicationSecurity:t}function Za(t,i){const r=lm(t);if(null!=r&&r!==i){if("ResourceURL"===r&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${r} (see ${F})`)}return r===i}function lm(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 cm(t){const i=new vv(t);return function bv(){try{return!!(new window.DOMParser).parseFromString(Ga(""),"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(Ga(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=Ga(i),r}}const yv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function hc(t){return(t=String(t)).match(yv)?t:"unsafe:"+t}function oa(t){const i={};for(const r of t.split(","))i[r]=!0;return i}function Dl(...t){const i={};for(const r of t)for(const c in r)r.hasOwnProperty(c)&&(i[c]=!0);return i}const dm=oa("area,br,col,hr,img,wbr"),um=oa("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),hm=oa("rp,rt"),bd=Dl(dm,Dl(um,oa("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")),Dl(hm,oa("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")),Dl(hm,um)),yd=oa("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mm=Dl(yd,oa("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"),oa("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=oa("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(!bd.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(!mm.hasOwnProperty(Q)){this.sanitizedSomething=!0;continue}let ce=_.value;yd[Q]&&(ce=hc(ce)),this.buf.push(" ",O,'="',pm(ce),'"')}return this.buf.push(">"),!0}endElement(i){const r=i.nodeName.toLowerCase();bd.hasOwnProperty(r)&&!dm.hasOwnProperty(r)&&(this.buf.push("</"),this.buf.push(r),this.buf.push(">"))}chars(i){this.buf.push(pm(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 pm(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 mc;function fm(t,i){let r=null;try{mc=mc||cm(t);let c=i?String(i):"";r=mc.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=mc.getInertBodyElement(c)}while(c!==_);return Ga((new xv).sanitizeChildren(Cd(r)||r))}finally{if(r){const c=Cd(r)||r;for(;c.firstChild;)c.removeChild(c.firstChild)}}}function Cd(t){return"content"in t&&function wv(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ro=(()=>((ro=ro||{})[ro.NONE=0]="NONE",ro[ro.HTML=1]="HTML",ro[ro.STYLE=2]="STYLE",ro[ro.SCRIPT=3]="SCRIPT",ro[ro.URL=4]="URL",ro[ro.RESOURCE_URL=5]="RESOURCE_URL",ro))();function gm(t){const i=Tl();return i?om(i.sanitize(ro.HTML,t)||""):Za(t,"HTML")?om(ra(t)):fm(rm(),q(t))}function _m(t){const i=Tl();return i?i.sanitize(ro.STYLE,t)||"":Za(t,"Style")?ra(t):q(t)}function xd(t){const i=Tl();return i?i.sanitize(ro.URL,t)||"":Za(t,"URL")?ra(t):hc(q(t))}function Md(t){const i=Tl();if(i)return am(i.sanitize(ro.RESOURCE_URL,t)||"");if(Za(t,"ResourceURL"))return am(ra(t));throw new Z(904,!1)}function vm(t){const i=Tl();if(i)return sm(i.sanitize(ro.SCRIPT,t)||"");if(Za(t,"Script"))return sm(ra(t));throw new Z(905,!1)}function bm(t){return Ga(t[0])}function ym(t){return function ov(t){return gd()?.createScriptURL(t)||t}(t[0])}function Cm(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)?Md:xd}(i,r)(t)}function Tl(){const t=Ve();return t&&t[Nn]}const Ed=new or("ENVIRONMENT_INITIALIZER"),wd=new or("INJECTOR",-1),xm=new or("INJECTOR_DEF_TYPES");class Mm{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 Em(...t){return{\u0275providers:wm(0,t),\u0275fromNgModule:!0}}function wm(t,...i){const r=[],c=new Set;let p;return _s(i,_=>{const O=_;Id(O,r,[],c)&&(p||(p=[]),p.push(O))}),void 0!==p&&Im(p,r),r}function Im(t,i){for(let r=0;r<t.length;r++){const{providers:p}=t[r];Sd(p,_=>{i.push(_)})}}function Id(t,i,r,c){if(!(t=g(t)))return!1;let p=null,_=Xe(t);const O=!_&&Yi(t);if(_||O){if(O&&!O.standalone)return!1;p=t}else{const ce=t.ngModule;if(_=Xe(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)Id(De,i,r,c)}}else{if(!_)return!1;{if(null!=_.imports&&!Q){let De;c.add(p);try{_s(_.imports,et=>{Id(et,i,r,c)&&(De||(De=[]),De.push(et))})}finally{}void 0!==De&&Im(De,i)}if(!Q){const De=Tr(p)||(()=>new p);i.push({provide:p,useFactory:De,deps:It},{provide:xm,useValue:p,multi:!0},{provide:Ed,useValue:()=>_i(p),multi:!0})}const ce=_.providers;null==ce||Q||Sd(ce,et=>{i.push(et)})}}return p!==t&&void 0!==t.providers}function Sd(t,i){for(let r of t)I(r)&&(r=r.\u0275providers),Array.isArray(r)?Sd(r,i):i(r)}const Dv=d({provide:String,useValue:d});function Dd(t){return null!==t&&"object"==typeof t&&Dv in t}function Sa(t){return"function"==typeof t}const Td=new or("Set Injector scope."),pc={},Pv={};let Pd;function fc(){return void 0===Pd&&(Pd=new Mm),Pd}class Da{}class Tm 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,Ad(i,O=>this.processProvider(O)),this.records.set(wd,Qa(void 0,this)),p.has("environment")&&this.records.set(Da,Qa(void 0,this));const _=this.records.get(Td);null!=_&&"string"==typeof _.value&&this.scopes.add(_.value),this.injectorDefTypes=new Set(this.get(xm.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=Qt(this),c=fe(void 0);try{return i()}finally{Qt(r),fe(c)}}get(i,r=at,c=be.Default){this.assertNotDestroyed(),c=ze(c);const p=Qt(this),_=fe(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 or}(i)&&Te(i);Q=ce&&this.injectableDefInScope(ce)?Qa(Od(i),pc):null,this.records.set(i,Q)}if(null!=Q)return this.hydrate(i,Q)}return(c&be.Self?fc():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)==di?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{fe(_),Qt(p)}}resolveInjectorInitializers(){const i=Qt(this),r=fe(void 0);try{const c=this.get(Ed.multi,It,be.Self);for(const p of c)p()}finally{Qt(i),fe(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 Dd(t)?Qa(void 0,t.useValue):Qa(Pm(t),pc)}(i);if(Sa(i)||!0!==i.multi)this.records.get(r);else{let p=this.records.get(r);p||(p=Qa(void 0,pc,!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===pc&&(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 Od(t){const i=Te(t),r=null!==i?i.factory:Tr(t);if(null!==r)return r;if(t instanceof or)throw new Z(204,!1);if(t instanceof Function)return function Ov(t){const i=t.length;if(i>0)throw ia(i,"?"),new Z(204,!1);const r=function Pe(t){return t&&(t[ht]||t[k])||null}(t);return null!==r?()=>r.factory(t):()=>new t}(t);throw new Z(204,!1)}function Pm(t,i,r){let c;if(Sa(t)){const p=g(t);return Tr(p)||Od(p)}if(Dd(t))c=()=>g(t.useValue);else if(function Dm(t){return!(!t||!t.useFactory)}(t))c=()=>t.useFactory(...ue(t.deps||[]));else if(function Sm(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 Tr(p)||Od(p);c=()=>new p(...ue(t.deps))}return c}function Qa(t,i,r=!1){return{factory:t,value:i,multi:r?[]:void 0}}function Ad(t,i){for(const r of t)Array.isArray(r)?Ad(r,i):r&&I(r)?Ad(r.\u0275providers,i):i(r)}class Om{}class gc{}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 Pl=(()=>{class t{}return t.NULL=new Bv,t})();function Nv(){return Ya(Pi(),Ve())}function Ya(t,i){return new Ol(D(t,i))}let Ol=(()=>{class t{constructor(r){this.nativeElement=r}}return t.__NG_ELEMENT_ID__=Nv,t})();function Uv(t){return t instanceof Ol?t.nativeElement:t}class km{}let jv=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Vv(){const t=Ve(),r=St(Pi().index,t);return(Ri(r)?r:t)[zi]}(),t})(),Lm=(()=>{class t{}return t.\u0275prov=W({token:t,providedIn:"root",factory:()=>null}),t})();class Rm{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const Fm=new Rm("15.2.10"),_c={},kd="ngOriginalError";function Ld(t){return t[kd]}class Al{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&&Ld(i);for(;r&&Ld(r);)r=Ld(r);return r||null}}function Bm(t){return t.ownerDocument.defaultView}function Nm(t){return t.ownerDocument}function Um(t){return t.ownerDocument.body}function sa(t){return t instanceof Function?t():t}function Vm(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 zm="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!==Vm(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 Wm(t){return 4===t.type&&t.value!==zm}function Yv(t,i,r){return i===(4!==t.type||r?t.value:zm)}function Xv(t,i,r){let c=4;const p=t.attrs||[],_=function eb(t){for(let i=0;i<t.length;i++)if(qn(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(Rs(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(Rs(c))return!1;O=!0}continue}const Ct=Jv(8&c?"class":ce,p,Wm(t),r);if(-1===Ct){if(Rs(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!==Vm(Kt,De,0)||2&c&&De!==Ft){if(Rs(c))return!1;O=!0}}}}else{if(!O&&!Rs(c)&&!Rs(ce))return!1;if(O&&Rs(ce))continue;O=!1,c=ce|1&c}}return Rs(c)||O}function Rs(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 Hm(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 $m(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&&!Rs(O)&&(i+=$m(_,p),p=""),c=O,_=_||!Rs(c);r++}return""!==p&&(i+=$m(_,p)),i}const dn={};function Km(t){Gm(ft(),Ve(),Tn()+t,!1)}function Gm(t,i,r,c){if(!c)if(3==(3&i[gi])){const _=t.preOrderCheckHooks;null!==_&&Vo(i,_,r)}else{const _=t.preOrderHooks;null!==_&&rs(i,_,0,r)}uo(r)}const Zm={\u0275\u0275defineInjectable:W,\u0275\u0275defineInjector:He,\u0275\u0275inject:_i,\u0275\u0275invalidFactoryDep:pi,resolveForwardRef:g};const ab=d({provide:String,useValue:d});function Qm(t){return void 0!==t.useClass}function Ym(t){return void 0!==t.useFactory}const ub=Zo("Injectable",void 0,void 0,void 0,(t,i)=>function sb(t,i){let r=null,c=null;t.hasOwnProperty(ht)||Object.defineProperty(t,ht,{get:()=>(null===r&&(r=Qr().compileInjectable(Zm,`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(Qm(r)||Ym(r))&&void 0!==r.deps&&(c.deps=Ua(r.deps)),Qm(r)?c.useClass=r.useClass:function lb(t){return ab in t}(r)?c.useValue=r.useValue:Ym(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=Qr();c=p.compileFactory(Zm,`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 Rd(t,i=null,r=null,c){const p=Xm(t,i,r,c);return p.resolveInjectorInitializers(),p}function Xm(t,i=null,r=null,c,p=new Set){const _=[r||It,Em(t)];return c=c||("object"==typeof t?void 0:b(t)),new Tm(_,i||fc(),c||null,p)}let _a=(()=>{class t{static create(r,c){if(Array.isArray(r))return Rd({name:""},c,r,"");{const p=r.name??"";return Rd({name:p},r.parent,r.providers,p)}}}return t.THROW_IF_NOT_FOUND=at,t.NULL=new Mm,t.\u0275prov=W({token:t,providedIn:"any",factory:()=>_i(wd)}),t.__NG_ELEMENT_ID__=-1,t})();function Fd(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 Bd(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[kd]=i,c}(_,c):Error(_);return O.addKey=mb,O.keys=p,O.injectors=[t],O.constructResolvingMessage=r,O[kd]=c,O}function mb(t,i){this.injectors.push(t),this.keys.push(i),this.message=this.constructResolvingMessage(this.keys)}function Jm(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 aa{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 qm.get(g(i))}static get numberOfKeys(){return qm.numberOfKeys}}class yb{constructor(){this._allKeys=new Map}get(i){if(i instanceof aa)return i;if(this._allKeys.has(i))return this._allKeys.get(i);const r=new aa(i,aa.numberOfKeys);return this._allKeys.set(i,r),r}get numberOfKeys(){return this._allKeys.size}}const qm=new yb;class vc{constructor(i,r,c){this.key=i,this.optional=r,this.visibility=c}static fromKey(i){return new vc(i,!1,null)}}const Cb=[];class ep{constructor(i,r,c){this.key=i,this.resolvedFactories=r,this.multiProvider=c,this.resolvedFactory=this.resolvedFactories[0]}}class tp{constructor(i,r){this.factory=i,this.dependencies=r}}function xb(t){let i,r;if(t.useClass){const c=g(t.useClass);i=To().factory(c),r=np(c)}else t.useExisting?(i=c=>c,r=[vc.fromKey(aa.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=>rp(t,c,r))}return np(t)}(t.useFactory,t.deps)):(i=()=>t.useValue,r=Cb);return new tp(i,r)}function Mb(t){return new ep(aa.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 ep(c.key,c.resolvedFactories.slice(),c.multiProvider):c,i.set(c.key.id,_)}}return i}(ip(t,[]).map(Mb),new Map);return Array.from(c.values())}function ip(t,i){return t.forEach(r=>{if(r instanceof ma)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);ip(r,i)}}),i}function np(t){const i=To().parameters(t);if(!i)return[];if(i.some(r=>null==r))throw Jm(t,i);return i.map(r=>rp(t,r,i))}function rp(t,i,r){let c=null,p=!1;if(!Array.isArray(i))return Nd(i instanceof Di?i.token:i,p,null);let _=null;for(let O=0;O<i.length;++O){const Q=i[O];Q instanceof ma?c=Q:Q instanceof Di?c=Q.token:Q instanceof ki?p=!0:Q instanceof Mn||Q instanceof dr?_=Q:Q instanceof or&&(c=Q)}if(c=g(c),null!=c)return Nd(c,p,_);throw Jm(t,r)}function Nd(t,i,r){return new vc(aa.get(t),i,r)}const kl={};class Ja{static resolve(i){return Eb(i)}static resolveAndCreate(i,r){const c=Ja.resolve(i);return Ja.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[_]=kl}get(r,c=at){return this._getByKey(aa.get(r),null,c)}resolveAndCreateChild(r){const c=Ja.resolve(r);return this.createChildFromResolved(c)}createChildFromResolved(r){const c=new t(r);return c.parent=this,c}resolveAndInstantiate(r){return this.instantiateResolved(Ja.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 Bd(t,i,function(r){return`Cannot instantiate cyclic dependency!${Fd(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 Bd(t,c,function(p){const _=b(p[0].token);return`${i.message}: Error during instantiation of ${_}!${Fd(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 Mn?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]===kl&&(this.objs[c]=this._new(this._providers[c])),this.objs[c];return kl}_throwOrNull(r,c){if(c!==at)return c;throw function pb(t,i){return Bd(t,i,function(r){return`No provider for ${b(r[0].token)}!${Fd(r)}`})}(this,r)}_getByKeySelf(r,c){const p=this._getObjByKeyId(r.id);return p!==kl?p:this._throwOrNull(r,c)}_getByKeyDefault(r,c,p){let _;for(_=p instanceof dr?this.parent:this;_ instanceof t;){const O=_,Q=O._getObjByKeyId(r.id);if(Q!==kl)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=aa.get(_a),t})();function qa(t,i=be.Default){const r=Ve();return null===r?_i(t,i):ss(Pi(),r,g(t),i)}function op(){throw new Error("invalid")}function sp(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[_];go(r[c]),O.contentQueries(2,i[_],_)}}}function bc(t,i,r,c,p,_,O,Q,ce,De,et){const Ct=i.blueprint.slice();return Ct[Bn]=p,Ct[gi]=76|c,(null!==et||t&&1024&t[gi])&&(Ct[gi]|=1024),bn(Ct),Ct[ji]=Ct[Qn]=t,Ct[wi]=r,Ct[Zn]=O||t&&t[Zn],Ct[zi]=Q||t&&t[zi],Ct[Nn]=ce||t&&t[Nn]||null,Ct[qi]=De||t&&t[qi]||null,Ct[_n]=_,Ct[he]=function dd(){return wl++}(),Ct[je]=et,Ct[Ei]=2==i.type?t[Ei]:Ct,Ct}function el(t,i,r,c,p){let _=t.data[i];if(null===_)_=Ud(t,i,r,c,p),function fo(){return Vi.lFrame.inI18n}()&&(_.flags|=32);else if(64&_.type){_.type=r,_.value=c,_.attrs=p;const O=Hi();_.injectorIndex=null===O?-1:O.injectorIndex}return vn(_,!0),_}function Ud(t,i,r,c,p){const _=ui(),O=Cr(),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 Ll(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 jd(t,i,r){Xo(i);try{const c=t.viewQuery;null!==c&&Qd(1,c,r);const p=t.template;null!==p&&ap(t,i,p,1,r),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&sp(t,i),t.staticViewQueries&&Qd(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,ps()}}function yc(t,i,r,c){const p=i[gi];if(128!=(128&p)){Xo(i);try{bn(i),Eo(t.bindingStartIndex),null!==r&&ap(t,i,r,2,c);const O=3==(3&p);if(O){const De=t.preOrderCheckHooks;null!==De&&Vo(i,De,null)}else{const De=t.preOrderHooks;null!==De&&rs(i,De,0,null),te(i,0)}if(function Jb(t){for(let i=Hr(t);null!==i;i=Wo(i)){if(!i[Wi])continue;const r=i[$n];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=Hr(t);null!==i;i=Wo(i))for(let r=Dn;r<i.length;r++){const c=i[r],p=c[bi];xi(c)&&yc(p,c,p.template,c[wi])}}(i),null!==t.contentQueries&&sp(t,i),O){const De=t.contentCheckHooks;null!==De&&Vo(i,De)}else{const De=t.contentHooks;null!==De&&rs(i,De,1),te(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)uo(~p);else{const _=p,O=r[++c],Q=r[++c];ms(O,_),Q(2,i[_])}}}finally{uo(-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&&Qd(2,ce,c),O){const De=t.viewCheckHooks;null!==De&&Vo(i,De)}else{const De=t.viewHooks;null!==De&&rs(i,De,2),te(i,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i[gi]&=-41,512&i[gi]&&(i[gi]&=-513,Gn(i[ji],-1))}finally{ps()}}}function ap(t,i,r,c,p){const _=Tn(),O=2&c;try{uo(-1),O&&i.length>Ye&&Gm(t,i,Ye,!1),Yn(O?2:0,p),r(c,p)}finally{uo(_),Yn(O?3:1,p)}}function Vd(t,i,r){if(hn(i)){const p=i.directiveEnd;for(let _=i.directiveStart;_<p;_++){const O=t.data[_];O.contentQueries&&O.contentQueries(1,r[_],_)}}}function zd(t,i,r){B()&&(function Vb(t,i,r,c){const p=r.directiveStart,_=r.directiveEnd;pr(r)&&function Zb(t,i,r){const c=D(i,t),p=lp(r),_=t[Zn],O=Cc(t,bc(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||Ai(r,i),$e(c,i);const O=r.initialInputs;for(let Q=p;Q<_;Q++){const ce=t.data[Q],De=as(i,t,Q,r);$e(De,i),null!==O&&Qb(0,Q-p,De,ce,0,O),Vn(ce)&&(St(r.index,i)[wi]=as(i,t,Q,r))}}(t,i,r,D(r,i)),64==(64&r.flags)&&mp(t,i,r))}function Wd(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 lp(t){const i=t.tView;return null===i||i.incompleteFirstPass?t.tView=Hd(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):i}function Hd(t,i,r,c,p,_,O,Q,ce,De){const et=Ye+c,Ct=et+p,Ft=function Ab(t,i){const r=[];for(let c=0;c<i;c++)r.push(c<t?null:dn);return r}(et,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,et),bindingStartIndex:et,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 cp(t,i,r,c){const p=fp(i);null===r?p.push(c):(p.push(r),t.firstCreatePass&&gp(t).push(c,p.length-1))}function dp(t,i,r,c){for(let p in t)if(t.hasOwnProperty(p)){r=null===r?{}:r;const _=t[p];null===c?up(r,i,p,_):c.hasOwnProperty(p)&&up(r,i,c[p],_)}return r}function up(t,i,r,c){t.hasOwnProperty(r)?t[r].push(i,c):t[r]=[i,c]}function hs(t,i,r,c,p,_,O,Q){const ce=D(i,r);let et,De=i.inputs;!Q&&null!=De&&(et=De[c])?(Yd(t,r,et,c,p),pr(i)&&function Bb(t,i){const r=St(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 $d(t,i,r,c){if(B()){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(Hm(i,O.selectors,!1))if(c||(c=[]),Vn(O))if(null!==O.findHostDirectiveDefs){const Q=[];p=p||new Map,O.findHostDirectiveDefs(O,Q,p),c.unshift(...Q,O),Kd(t,i,Q.length)}else c.unshift(O),Kd(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&&hp(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=jr(r.mergedAttrs,r.attrs)}function hp(t,i,r,c,p,_){for(let De=0;De<c.length;De++)cr(Ai(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 et=c[De];et.providersResolver&&et.providersResolver(et)}let O=!1,Q=!1,ce=Ll(t,i,c.length,null);for(let De=0;De<c.length;De++){const et=c[De];r.mergedAttrs=jr(r.mergedAttrs,et.hostAttrs),Gb(t,r,i,ce,et),$b(ce,et,p),null!==et.contentQueries&&(r.flags|=4),(null!==et.hostBindings||null!==et.hostAttrs||0!==et.hostVars)&&(r.flags|=64);const Ct=et.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 et=i.directiveStart;et<p;et++){const Ct=_[et],Ft=r?r.get(Ct):null,li=Ft?Ft.outputs:null;ce=dp(Ct.inputs,et,ce,Ft?Ft.inputs:null),De=dp(Ct.outputs,et,De,li);const yi=null===ce||null===O||Wm(i)?null:Yb(ce,et,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 mp(t,i,r){const c=r.directiveStart,p=r.directiveEnd,_=r.index,O=function ns(){return Vi.lFrame.currentDirectiveIndex}();try{uo(_);for(let Q=c;Q<p;Q++){const ce=t.data[Q],De=i[Q];xr(Q),(null!==ce.hostBindings||0!==ce.hostVars||null!==ce.hostAttrs)&&zb(ce,De)}}finally{uo(-1),xr(O)}}function zb(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}function Kd(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;Vn(i)&&(r[""]=t)}}function Gb(t,i,r,c,p){t.data[c]=p;const _=p.factory||(p.factory=Tr(p.type)),O=new yt(_,Vn(p),qa);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,Ll(t,r,p.hostVars,dn),p)}function Qs(t,i,r,c,p,_){const O=D(t,i);Gd(i[zi],O,_,t.value,r,c,p)}function Gd(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++],et=O[ce++],Ct=O[ce++];null!==Q?c.setInput(r,Ct,De,et):r[et]=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 pp(t,i,r,c){return[t,!0,!1,i,null,0,c,r,null,null]}function qb(t,i){const r=St(i,t);if(xi(r)){const c=r[bi];48&r[gi]?yc(c,r,c.template,r[wi]):r[Hn]>0&&Zd(r)}}function Zd(t){for(let c=Hr(t);null!==c;c=Wo(c))for(let p=Dn;p<c.length;p++){const _=c[p];if(xi(_))if(512&_[gi]){const O=_[bi];yc(O,_,O.template,_[wi])}else _[Hn]>0&&Zd(_)}const r=t[bi].components;if(null!==r)for(let c=0;c<r.length;c++){const p=St(r[c],t);xi(p)&&p[Hn]>0&&Zd(p)}}function e0(t,i){const r=St(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),jd(c,r,r[wi])}function Cc(t,i){return t[Rr]?t[Un][Sn]=i:t[Rr]=i,t[Un]=i,i}function xc(t){for(;t;){t[gi]|=32;const i=zo(t);if(so(t)&&!i)return t;t=i}return null}function Mc(t,i,r,c=!0){const p=i[Zn];p.begin&&p.begin();try{yc(t,i,t.template,r)}catch(O){throw c&&vp(i,O),O}finally{p.end&&p.end()}}function Qd(t,i,r){go(0),i(t,r)}function fp(t){return t[tr]||(t[tr]=[])}function gp(t){return t.cleanup||(t.cleanup=[])}function _p(t,i,r){return(null===t||Vn(t))&&(r=function rt(t){for(;Array.isArray(t);){if("object"==typeof t[ci])return t;t=t[Bn]}return null}(r[i.index])),r[zi]}function vp(t,i){const r=t[qi],c=r?r.get(Al,null):null;c&&c.handleError(i)}function Yd(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 la(t,i,r){const c=kt(i,t);us(t[zi],c,r)}function Ec(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 wc(t,i,r,c,p=!1){for(;null!==r;){const _=i[r.index];if(null!==_&&c.push(Kn(_)),Cn(_))for(let Q=Dn;Q<_.length;Q++){const ce=_[Q],De=ce[bi].firstChild;null!==De&&wc(ce[bi],ce,De,c)}const O=r.type;if(8&O)wc(t,i,r.child,c);else if(32&O){const Q=zr(r,i);let ce;for(;ce=Q();)c.push(ce)}else if(16&O){const Q=qh(i,r);if(Array.isArray(Q))c.push(...Q);else{const ce=zo(i[Ei]);wc(ce[bi],ce,Q,c,!0)}}r=p?r.projectionNext:r.next}return c}class tl{get rootNodes(){const i=this._lView,r=i[bi];return wc(r,i,r.firstChild,[])}constructor(i,r){this._lView=i,this._cdRefInjectingView=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[wi]}set context(i){this._lView[wi]=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(Cn(i)){const r=i[en],c=r?r.indexOf(this):-1;c>-1&&(Cs(i,c),pa(r,c))}this._attachedToViewContainer=!1}Er(this._lView[bi],this._lView)}onDestroy(i){cp(this._lView[bi],this._lView,null,i)}markForCheck(){xc(this._cdRefInjectingView||this._lView)}detach(){this._lView[gi]&=-65}reattach(){this._lView[gi]|=64}detectChanges(){Mc(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 tn(t,i){Sl(t,i,i[zi],2,null,null)}(this._lView[bi],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Z(902,!1);this._appRef=i}}class n0 extends tl{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Mc(i[bi],i,i[wi],!1)}checkNoChanges(){}get context(){return null}}class bp extends Pl{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const r=Yi(i);return new il(r,this.ngModule)}}function yp(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,_c,c);return p!==_c||r===_c?p:this.parentInjector.get(i,r,c)}}class il extends gc{get inputs(){return yp(this.componentDef.inputs)}get outputs(){return yp(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(km,null);if(null===Q)throw new Z(407,!1);const ce=O.get(Lm,null),De=Q.createRenderer(null,this.componentDef),et=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):Ha(De,et,function r0(t){const i=t.toLowerCase();return"svg"===i?Bo:"math"===i?mn:null}(et)),Ft=this.componentDef.onPush?288:272,Kt=Hd(0,null,null,1,0,null,null,null,null,null),li=bc(null,Kt,null,Ft,null,null,Q,De,ce,O,null);let yi,Li;Xo(li);try{const Ni=this.componentDef;let nn,fi=null;Ni.findHostDirectiveDefs?(nn=[],fi=new Map,Ni.findHostDirectiveDefs(Ni,nn,fi),nn.push(Ni)):nn=[Ni];const un=function s0(t,i){const r=t[bi],c=Ye;return t[c]=i,el(r,c,2,"#host",null)}(li,Ct),kr=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=jr(i.mergedAttrs,p.hostAttrs);null!==i.mergedAttrs&&(Ec(i,i.mergedAttrs,!0),null!==r&&im(c,r,i))}(c,t,i,O);const De=_.createRenderer(i,r),et=bc(p,lp(r),null,r.onPush?32:16,p[t.index],t,_,De,Q||null,null,null);return ce.firstCreatePass&&Kd(ce,t,c.length-1),Cc(p,et),p[t.index]=et}(un,Ct,Ni,nn,li,Q,De);Li=_e(Kt,Ye),Ct&&function d0(t,i,r,c){if(c)gn(t,r,["ng-version",Fm.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(!Rs(p))break;p=_}c++}return{attrs:i,classes:r}}(i.selectors[0]);p&&gn(t,r,p),_&&_.length>0&&tm(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)}}(Li,this.ngContentSelectors,r),yi=function c0(t,i,r,c,p,_){const O=Pi(),Q=p[bi],ce=D(O,p);hp(Q,p,O,r,null,c);for(let et=0;et<r.length;et++)$e(as(p,Q,O.directiveStart+et,O),p);mp(Q,p,O),ce&&$e(ce,p);const De=as(p,Q,O.directiveStart+O.componentOffset,O);if(t[wi]=p[wi]=De,null!==_)for(const et of _)et(De,i);return Vd(Q,O,t),De}(kr,Ni,nn,fi,li,[xp]),jd(Kt,li,null)}finally{ps()}return new Cp(this.componentType,yi,Ya(Li,li),li,Li)}}class Cp extends Om{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;Yd(_[bi],_,p,i,r),xc(St(this._tNode.index,_))}}get injector(){return new gs(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}function xp(){const t=Pi();_o(Ve()[bi],t)}function Mp(t){return Object.getPrototypeOf(t.prototype).constructor}function Xd(t){let i=Mp(t.type),r=!0;const c=[t];for(;i;){let p;if(Vn(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=Jd(t.inputs),O.declaredInputs=Jd(t.declaredInputs),O.outputs=Jd(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),Vn(p)&&p.data.animation){const et=t.data;et.animation=(et.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===Xd&&(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=jr(p.hostAttrs,r=jr(r,p.hostAttrs))}}(c)}function Jd(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 Ep(t){let r,i=Mp(t.type);r=Vn(t)?i.\u0275cmp:i.\u0275dir;const c=t;for(const p of g0)c[p]=r[p];if(Vn(r))for(const p of _0)c[p]=r[p]}function wp(t){return i=>{i.findHostDirectiveDefs=Ip,i.hostDirectives=(Array.isArray(t)?t:t()).map(r=>"function"==typeof r?{directive:g(r),inputs:Mt,outputs:Mt}:{directive:g(r.directive),inputs:Sp(r.inputs),outputs:Sp(r.outputs)})}}function Ip(t,i,r){if(null!==t.hostDirectives)for(const c of t.hostDirectives){const p=wn(c.directive);v0(p.declaredInputs,c.inputs),Ip(p,i,r),r.set(p,c),i.push(p)}}function Sp(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 Ic(t){return!!qd(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function qd(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Tp(t,i){const r=Ic(t),c=Ic(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,Tp):!(r||!t||"object"!=typeof t&&"function"!=typeof t||c||!i||"object"!=typeof i&&"function"!=typeof i)||Object.is(t,i)}function Ys(t,i,r){return t[i]=r}function Rl(t,i){return t[i]}function Ko(t,i,r){return!Object.is(t[i],r)&&(t[i]=r,!0)}function Ta(t,i,r,c){const p=Ko(t,i,r);return Ko(t,i+1,c)||p}function Sc(t,i,r,c,p){const _=Ta(t,i,r,c);return Ko(t,i+2,p)||_}function Ms(t,i,r,c,p,_){const O=Ta(t,i,r,c);return Ta(t,i+2,p,_)||O}function eu(t,i,r,c){const p=Ve();return Ko(p,Ur(),i)&&(ft(),Qs(Jn(),p,t,i,r,c)),eu}function nl(t,i){let r=!1,c=Wn();for(let _=1;_<i.length;_+=2)r=Ko(t,c++,i[_])||r;if(Eo(c),!r)return dn;let p=i[0];for(let _=1;_<i.length;_+=2)p+=q(i[_])+i[_+1];return p}function rl(t,i,r,c){return Ko(t,Ur(),r)?i+q(r)+c:dn}function ol(t,i,r,c,p,_){const Q=Ta(t,Wn(),r,p);return Xn(2),Q?i+q(r)+c+q(p)+_:dn}function sl(t,i,r,c,p,_,O,Q){const De=Sc(t,Wn(),r,p,O);return Xn(3),De?i+q(r)+c+q(p)+_+q(O)+Q:dn}function al(t,i,r,c,p,_,O,Q,ce,De){const Ct=Ms(t,Wn(),r,p,O,ce);return Xn(4),Ct?i+q(r)+c+q(p)+_+q(O)+Q+q(ce)+De:dn}function ll(t,i,r,c,p,_,O,Q,ce,De,et,Ct){const Ft=Wn();let Kt=Ms(t,Ft,r,p,O,ce);return Kt=Ko(t,Ft+4,et)||Kt,Xn(5),Kt?i+q(r)+c+q(p)+_+q(O)+Q+q(ce)+De+q(et)+Ct:dn}function cl(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt){const li=Wn();let yi=Ms(t,li,r,p,O,ce);return yi=Ta(t,li+4,et,Ft)||yi,Xn(6),yi?i+q(r)+c+q(p)+_+q(O)+Q+q(ce)+De+q(et)+Ct+q(Ft)+Kt:dn}function dl(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi){const Li=Wn();let Ni=Ms(t,Li,r,p,O,ce);return Ni=Sc(t,Li+4,et,Ft,li)||Ni,Xn(7),Ni?i+q(r)+c+q(p)+_+q(O)+Q+q(ce)+De+q(et)+Ct+q(Ft)+Kt+q(li)+yi:dn}function ul(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li,Ni){const nn=Wn();let fi=Ms(t,nn,r,p,O,ce);return fi=Ms(t,nn+4,et,Ft,li,Li)||fi,Xn(8),fi?i+q(r)+c+q(p)+_+q(O)+Q+q(ce)+De+q(et)+Ct+q(Ft)+Kt+q(li)+yi+q(Li)+Ni:dn}function tu(t,i,r,c,p,_){const O=Ve(),Q=rl(O,i,r,c);return Q!==dn&&Qs(Jn(),O,t,Q,p,_),tu}function iu(t,i,r,c,p,_,O,Q){const ce=Ve(),De=ol(ce,i,r,c,p,_);return De!==dn&&Qs(Jn(),ce,t,De,O,Q),iu}function nu(t,i,r,c,p,_,O,Q,ce,De){const et=Ve(),Ct=sl(et,i,r,c,p,_,O,Q);return Ct!==dn&&Qs(Jn(),et,t,Ct,ce,De),nu}function ru(t,i,r,c,p,_,O,Q,ce,De,et,Ct){const Ft=Ve(),Kt=al(Ft,i,r,c,p,_,O,Q,ce,De);return Kt!==dn&&Qs(Jn(),Ft,t,Kt,et,Ct),ru}function ou(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt){const li=Ve(),yi=ll(li,i,r,c,p,_,O,Q,ce,De,et,Ct);return yi!==dn&&Qs(Jn(),li,t,yi,Ft,Kt),ou}function su(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi){const Li=Ve(),Ni=cl(Li,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt);return Ni!==dn&&Qs(Jn(),Li,t,Ni,li,yi),su}function au(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li,Ni){const nn=Ve(),fi=dl(nn,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi);return fi!==dn&&Qs(Jn(),nn,t,fi,Li,Ni),au}function lu(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li,Ni,nn,fi){const un=Ve(),kr=ul(un,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li,Ni);return kr!==dn&&Qs(Jn(),un,t,kr,nn,fi),lu}function cu(t,i,r,c){const p=Ve(),_=nl(p,i);return _!==dn&&Qs(Jn(),p,t,_,r,c),cu}function Pp(t){const i=U(t);Mc(i[bi],i,t)}function Op(t,i,r,c,p,_,O,Q){const ce=Ve(),De=ft(),et=t+Ye,Ct=De.firstCreatePass?function C0(t,i,r,c,p,_,O,Q,ce){const De=i.consts,et=el(i,t,4,O||null,oi(De,Q));$d(i,r,et,oi(De,ce)),_o(i,et);const Ct=et.tView=Hd(2,et,c,p,_,i.directiveRegistry,i.pipeRegistry,null,i.schemas,De);return null!==i.queries&&(i.queries.template(i,et),Ct.queries=i.queries.embeddedTView(et)),et}(et,De,ce,i,r,c,p,_,O):De.data[et];vn(Ct,!1);const Ft=ce[zi].createComment("");lc(De,ce,Ft,Ct),$e(Ft,ce),Cc(ce,ce[et]=pp(Ft,ce,Ft,Ct)),Jr(Ct)&&zd(De,ce,Ct),null!=O&&Wd(ce,Ct,Q)}function Ap(t,i,r,c){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),i[r]=c}function kp(t){return tt(function Qi(){return Vi.lFrame.contextLView}(),Ye+t)}function du(t,i,r){const c=Ve();return Ko(c,Ur(),i)&&hs(ft(),Jn(),c,t,i,c[zi],r,!1),du}function uu(t,i,r,c,p){const O=p?"class":"style";Yd(t,r,i.inputs[O],O,c)}function Dc(t,i,r,c){const p=Ve(),_=ft(),O=Ye+t,Q=p[zi],ce=_.firstCreatePass?function x0(t,i,r,c,p,_){const O=i.consts,ce=el(i,t,2,c,oi(O,p));return $d(i,r,ce,oi(O,_)),null!==ce.attrs&&Ec(ce,ce.attrs,!1),null!==ce.mergedAttrs&&Ec(ce,ce.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,ce),ce}(O,_,p,i,r,c):_.data[O],De=p[O]=Ha(Q,i,function Jo(){return Vi.lFrame.currentNamespace}()),et=Jr(ce);return vn(ce,!0),im(Q,De,ce),32!=(32&ce.flags)&&lc(_,p,De,ce),0===function pe(){return Vi.lFrame.elementDepthCount}()&&$e(De,p),function y(){Vi.lFrame.elementDepthCount++}(),et&&(zd(_,p,ce),Vd(_,ce,p)),null!==c&&Wd(p,ce),Dc}function Tc(){let t=Pi();Cr()?Ti():(t=t.parent,vn(t,!1));const i=t;!function J(){Vi.lFrame.elementDepthCount--}();const r=ft();return r.firstCreatePass&&(_o(r,t),hn(t)&&r.queries.elementEnd(t)),null!=i.classesWithoutHost&&function pn(t){return 0!=(8&t.flags)}(i)&&uu(r,i,Ve(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function En(t){return 0!=(16&t.flags)}(i)&&uu(r,i,Ve(),i.stylesWithoutHost,!1),Tc}function hu(t,i,r,c){return Dc(t,i,r,c),Tc(),hu}function Pc(t,i,r){const c=Ve(),p=ft(),_=t+Ye,O=p.firstCreatePass?function M0(t,i,r,c,p){const _=i.consts,O=oi(_,c),Q=el(i,t,8,"ng-container",O);return null!==O&&Ec(Q,O,!0),$d(i,r,Q,oi(_,p)),null!==i.queries&&i.queries.elementStart(i,Q),Q}(_,p,c,i,r):p.data[_];vn(O,!0);const Q=c[_]=c[zi].createComment("");return lc(p,c,Q,O),$e(Q,c),Jr(O)&&(zd(p,c,O),Vd(p,O,c)),null!=r&&Wd(c,O),Pc}function Oc(){let t=Pi();const i=ft();return Cr()?Ti():(t=t.parent,vn(t,!1)),i.firstCreatePass&&(_o(i,t),hn(t)&&i.queries.elementEnd(t)),Oc}function mu(t,i,r){return Pc(t,i,r),Oc(),mu}function Lp(){return Ve()}function pu(t){return!!t&&"function"==typeof t.then}function Rp(t){return!!t&&"function"==typeof t.subscribe}const Fp=Rp;function fu(t,i,r,c){const p=Ve(),_=ft(),O=Pi();return Bp(_,p,p[zi],O,t,i,c),fu}function gu(t,i){const r=Pi(),c=Ve(),p=ft();return Bp(p,c,_p(Uo(p.data),r,c),r,t,i),gu}function Bp(t,i,r,c,p,_,O){const Q=Jr(c),De=t.firstCreatePass&&gp(t),et=i[wi],Ct=fp(i);let Ft=!0;if(3&c.type||O){const yi=D(c,i),Li=O?O(yi):yi,Ni=Ct.length,nn=O?un=>O(Kn(un[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[tr],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{_=Up(c,i,et,_,!1);const un=r.listen(Li,p,_);Ct.push(_,un),De&&De.push(p,nn,Ni,Ni+1)}}else _=Up(c,i,et,_,!1);const Kt=c.outputs;let li;if(Ft&&null!==Kt&&(li=Kt[p])){const yi=li.length;if(yi)for(let Li=0;Li<yi;Li+=2){const kr=i[li[Li]][li[Li+1]].subscribe(_),oo=Ct.length;Ct.push(_,kr),De&&De.push(p,c.index,oo,-(oo+1))}}}function Np(t,i,r,c){try{return Yn(6,i,r),!1!==r(c)}catch(p){return vp(t,p),!1}finally{Yn(7,i,r)}}function Up(t,i,r,c,p){return function _(O){if(O===Function)return c;xc(t.componentOffset>-1?St(t.index,i):i);let ce=Np(i,r,c,O),De=_.__ngNextListenerFn__;for(;De;)ce=Np(i,r,De,O)&&ce,De=De.__ngNextListenerFn__;return p&&!1===ce&&(O.preventDefault(),O.returnValue=!1),ce}}function jp(t=1){return function Is(t){return(Vi.lFrame.contextLView=function Vs(t,i){for(;t>0;)i=i[Qn],t--;return i}(t,Vi.lFrame.contextLView))[wi]}(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?Hm(t,_,!0):ib(c,_))return p}else r=p}return r}function Vp(t){const i=Ve()[Ei][_n];if(!i.projection){const c=i.projection=ia(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 zp(t,i=0,r){const c=Ve(),p=ft(),_=el(p,Ye+t,16,null,r||null);null===_.projection&&(_.projection=i),Ti(),32!=(32&_.flags)&&function ev(t,i,r){em(i[zi],0,i,r,Zs(t,r,i),Qh(r.parent||i[_n],r,i))}(p,c,_)}function _u(t,i,r){return Ac(t,"",i,"",r),_u}function Ac(t,i,r,c,p){const _=Ve(),O=rl(_,i,r,c);return O!==dn&&hs(ft(),Jn(),_,t,O,_[zi],p,!1),Ac}function vu(t,i,r,c,p,_,O){const Q=Ve(),ce=ol(Q,i,r,c,p,_);return ce!==dn&&hs(ft(),Jn(),Q,t,ce,Q[zi],O,!1),vu}function bu(t,i,r,c,p,_,O,Q,ce){const De=Ve(),et=sl(De,i,r,c,p,_,O,Q);return et!==dn&&hs(ft(),Jn(),De,t,et,De[zi],ce,!1),bu}function yu(t,i,r,c,p,_,O,Q,ce,De,et){const Ct=Ve(),Ft=al(Ct,i,r,c,p,_,O,Q,ce,De);return Ft!==dn&&hs(ft(),Jn(),Ct,t,Ft,Ct[zi],et,!1),yu}function Cu(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft){const Kt=Ve(),li=ll(Kt,i,r,c,p,_,O,Q,ce,De,et,Ct);return li!==dn&&hs(ft(),Jn(),Kt,t,li,Kt[zi],Ft,!1),Cu}function xu(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li){const yi=Ve(),Li=cl(yi,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt);return Li!==dn&&hs(ft(),Jn(),yi,t,Li,yi[zi],li,!1),xu}function Mu(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li){const Ni=Ve(),nn=dl(Ni,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi);return nn!==dn&&hs(ft(),Jn(),Ni,t,nn,Ni[zi],Li,!1),Mu}function Eu(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li,Ni,nn){const fi=Ve(),un=ul(fi,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li,Ni);return un!==dn&&hs(ft(),Jn(),fi,t,un,fi[zi],nn,!1),Eu}function wu(t,i,r){const c=Ve(),p=nl(c,i);return p!==dn&&hs(ft(),Jn(),c,t,p,c[zi],r,!1),wu}function kc(t,i){return t<<17|i<<2}function va(t){return t>>17&32767}function Iu(t){return 2|t}function Pa(t){return(131068&t)>>2}function Su(t,i){return-131069&t|i<<2}function Du(t){return 1|t}function Wp(t,i,r,c,p){const _=t[r+1],O=null===i;let Q=c?va(_):Pa(_),ce=!1;for(;0!==Q&&(!1===ce||O);){const et=t[Q+1];O0(t[Q],i)&&(ce=!0,t[Q+1]=c?Du(et):Iu(et)),Q=c?va(et):Pa(et)}ce&&(t[r+1]=c?Iu(_):Du(_))}function O0(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Gs(t,i)>=0}const yo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Hp(t){return t.substring(yo.key,yo.keyEnd)}function A0(t){return t.substring(yo.value,yo.valueEnd)}function $p(t,i){const r=yo.textEnd;return r===i?-1:(i=yo.keyEnd=function R0(t,i,r){for(;i<r&&t.charCodeAt(i)>32;)i++;return i}(t,yo.key=i,r),hl(t,i,r))}function Kp(t,i){const r=yo.textEnd;let c=yo.key=hl(t,i,r);return r===c?-1:(c=yo.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=Zp(t,c,r),c=yo.value=hl(t,c,r),c=yo.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=Qp(t,ce,O,r):i===O-4&&85===_&&82===p&&76===c&&40===ce?Q=O=Qp(t,41,O,r):ce>32&&(Q=O),_=p,p=c,c=-33&ce}return Q}(t,c,r),Zp(t,c,r))}function Gp(t){yo.key=0,yo.keyEnd=0,yo.value=0,yo.valueEnd=0,yo.textEnd=t.length}function hl(t,i,r){for(;i<r&&t.charCodeAt(i)<=32;)i++;return i}function Zp(t,i,r,c){return(i=hl(t,i,r))<r&&i++,i}function Qp(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 Tu(t,i,r){return Bs(t,i,r,!1),Tu}function Pu(t,i){return Bs(t,i,null,!0),Pu}function Fs(t){Ns(qp,N0,t,!1)}function N0(t,i){for(let r=function L0(t){return Gp(t),Kp(t,hl(t,0,yo.textEnd))}(i);r>=0;r=Kp(i,r))qp(t,Hp(i),A0(i))}function Yp(t){Ns(H0,Xs,t,!0)}function Xs(t,i){for(let r=function k0(t){return Gp(t),$p(t,hl(t,0,yo.textEnd))}(i);r>=0;r=$p(i,r))Lo(t,Hp(i),!0)}function Bs(t,i,r,c){const p=Ve(),_=ft(),O=Xn(2);_.firstUpdatePass&&Jp(_,t,O,c),i!==dn&&Ko(p,O,i)&&ef(_,_.data[Tn()],p,p[zi],t,p[O+1]=function K0(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=b(ra(t)))),t}(i,r),c,O)}function Ns(t,i,r,c){const p=ft(),_=Xn(2);p.firstUpdatePass&&Jp(p,null,_,c);const O=Ve();if(r!==dn&&Ko(O,_,r)){const Q=p.data[Tn()];if(nf(Q,c)&&!Xp(p,_)){let ce=c?Q.classesWithoutHost:Q.stylesWithoutHost;null!==ce&&(r=C(ce,r||"")),uu(p,Q,O,r,c)}else!function $0(t,i,r,c,p,_,O,Q){p===dn&&(p=It);let ce=0,De=0,et=0<p.length?p[0]:null,Ct=0<_.length?_[0]:null;for(;null!==et||null!==Ct;){const Ft=ce<p.length?p[ce+1]:void 0,Kt=De<_.length?_[De+1]:void 0;let yi,li=null;et===Ct?(ce+=2,De+=2,Ft!==Kt&&(li=Ct,yi=Kt)):null===Ct||null!==et&&et<Ct?(ce+=2,li=et):(De+=2,li=Ct,yi=Kt),null!==li&&ef(t,i,r,c,li,yi,O,Q),et=ce<p.length?p[ce]:null,Ct=De<_.length?_[De]:null}}(p,Q,O,O[zi],O[_+1],O[_+1]=function W0(t,i,r){if(null==r||""===r)return It;const c=[],p=ra(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 Xp(t,i){return i>=t.expandoStartIndex}function Jp(t,i,r,c){const p=t.data;if(null===p[r+1]){const _=p[Tn()],O=Xp(t,r);nf(_,c)&&null===i&&!O&&(i=!1),i=function U0(t,i,r,c){const p=Uo(t);let _=c?i.residualClasses:i.residualStyles;if(null===p)0===(c?i.classBindings:i.styleBindings)&&(r=Fl(r=Ou(null,t,i,r,c),i.attrs,c),_=null);else{const O=i.directiveStylingLast;if(-1===O||t[O]!==p)if(r=Ou(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[va(c)]}(t,i,c);void 0!==ce&&Array.isArray(ce)&&(ce=Ou(null,t,i,ce[1],c),ce=Fl(ce,i.attrs,c),function V0(t,i,r,c){t[va(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=Fl(c,t[_].hostAttrs,r);return Fl(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=va(O),ce=Pa(O);t[c]=r;let et,De=!1;if(Array.isArray(r)?(et=r[1],(null===et||Gs(r,et)>0)&&(De=!0)):et=r,p)if(0!==ce){const Ft=va(t[Q+1]);t[c+1]=kc(Ft,Q),0!==Ft&&(t[Ft+1]=Su(t[Ft+1],c)),t[Q+1]=function S0(t,i){return 131071&t|i<<17}(t[Q+1],c)}else t[c+1]=kc(Q,0),0!==Q&&(t[Q+1]=Su(t[Q+1],c)),Q=c;else t[c+1]=kc(ce,0),0===Q?Q=c:t[ce+1]=Su(t[ce+1],c),ce=c;De&&(t[c+1]=Iu(t[c+1])),Wp(t,et,c,!0),Wp(t,et,c,!1),function P0(t,i,r,c,p){const _=p?t.residualClasses:t.residualStyles;null!=_&&"string"==typeof i&&Gs(_,i)>=0&&(r[c+1]=Du(r[c+1]))}(i,et,t,c,_),O=kc(Q,ce),_?i.classBindings=O:i.styleBindings=O}(p,_,i,r,O,c)}}function Ou(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=Fl(c,_.hostAttrs,p),_!==t);)Q++;return null!==t&&(r.directiveStylingLast=Q),c}function Fl(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]),Lo(t,O,!!r||i[++_]))}return void 0===t?null:t}function qp(t,i,r){Lo(t,i,ra(r))}function H0(t,i,r){const c=String(i);""!==c&&!c.includes(" ")&&Lo(t,c,r)}function ef(t,i,r,c,p,_,O,Q){if(!(3&i.type))return;const ce=t.data,De=ce[Q+1],et=function D0(t){return 1==(1&t)}(De)?tf(ce,i,r,p,Pa(De),O):void 0;Lc(et)||(Lc(_)||function I0(t){return 2==(2&t)}(De)&&(_=tf(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:ks.DashCase;null==p?t.removeStyle(r,c,_):("string"==typeof p&&p.endsWith("!important")&&(p=p.slice(0,-10),_|=ks.Important),t.setStyle(r,c,p,_))}}(c,O,kt(Tn(),r),p,_))}function tf(t,i,r,c,p,_){const O=null===i;let Q;for(;p>0;){const ce=t[p],De=Array.isArray(ce),et=De?ce[1]:ce,Ct=null===et;let Ft=r[p+1];Ft===dn&&(Ft=Ct?It:void 0);let Kt=Ct?na(Ft,c):et===c?Ft:void 0;if(De&&!Lc(Kt)&&(Kt=na(ce,c)),Lc(Kt)&&(Q=Kt,O))return Q;const li=t[p+1];p=O?va(li):Pa(li)}if(null!==i){let ce=_?i.residualClasses:i.residualStyles;null!=ce&&(Q=na(ce,c))}return Q}function Lc(t){return void 0!==t}function nf(t,i){return 0!=(t.flags&(i?8:16))}function rf(t,i=""){const r=Ve(),c=ft(),p=t+Ye,_=c.firstCreatePass?el(c,p,1,i,null):c.data[p],O=r[p]=Ls(r[zi],i);lc(c,r,O,_),vn(_,!1)}function Au(t){return Rc("",t,""),Au}function Rc(t,i,r){const c=Ve(),p=rl(c,t,i,r);return p!==dn&&la(c,Tn(),p),Rc}function ku(t,i,r,c,p){const _=Ve(),O=ol(_,t,i,r,c,p);return O!==dn&&la(_,Tn(),O),ku}function Lu(t,i,r,c,p,_,O){const Q=Ve(),ce=sl(Q,t,i,r,c,p,_,O);return ce!==dn&&la(Q,Tn(),ce),Lu}function Ru(t,i,r,c,p,_,O,Q,ce){const De=Ve(),et=al(De,t,i,r,c,p,_,O,Q,ce);return et!==dn&&la(De,Tn(),et),Ru}function Fu(t,i,r,c,p,_,O,Q,ce,De,et){const Ct=Ve(),Ft=ll(Ct,t,i,r,c,p,_,O,Q,ce,De,et);return Ft!==dn&&la(Ct,Tn(),Ft),Fu}function Bu(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft){const Kt=Ve(),li=cl(Kt,t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft);return li!==dn&&la(Kt,Tn(),li),Bu}function Nu(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li){const yi=Ve(),Li=dl(yi,t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li);return Li!==dn&&la(yi,Tn(),Li),Nu}function Uu(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li){const Ni=Ve(),nn=ul(Ni,t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li);return nn!==dn&&la(Ni,Tn(),nn),Uu}function ju(t){const i=Ve(),r=nl(i,t);return r!==dn&&la(i,Tn(),r),ju}function sf(t,i,r){Ns(Lo,Xs,rl(Ve(),t,i,r),!0)}function af(t,i,r,c,p){Ns(Lo,Xs,ol(Ve(),t,i,r,c,p),!0)}function lf(t,i,r,c,p,_,O){Ns(Lo,Xs,sl(Ve(),t,i,r,c,p,_,O),!0)}function cf(t,i,r,c,p,_,O,Q,ce){Ns(Lo,Xs,al(Ve(),t,i,r,c,p,_,O,Q,ce),!0)}function df(t,i,r,c,p,_,O,Q,ce,De,et){Ns(Lo,Xs,ll(Ve(),t,i,r,c,p,_,O,Q,ce,De,et),!0)}function uf(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft){Ns(Lo,Xs,cl(Ve(),t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft),!0)}function hf(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li){Ns(Lo,Xs,dl(Ve(),t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li),!0)}function mf(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li){Ns(Lo,Xs,ul(Ve(),t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li),!0)}function pf(t){Ns(Lo,Xs,nl(Ve(),t),!0)}function ff(t,i,r){Fs(rl(Ve(),t,i,r))}function gf(t,i,r,c,p){Fs(ol(Ve(),t,i,r,c,p))}function _f(t,i,r,c,p,_,O){Fs(sl(Ve(),t,i,r,c,p,_,O))}function vf(t,i,r,c,p,_,O,Q,ce){Fs(al(Ve(),t,i,r,c,p,_,O,Q,ce))}function bf(t,i,r,c,p,_,O,Q,ce,De,et){Fs(ll(Ve(),t,i,r,c,p,_,O,Q,ce,De,et))}function yf(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft){Fs(cl(Ve(),t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft))}function Cf(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li){Fs(dl(Ve(),t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li))}function xf(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li){Fs(ul(Ve(),t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li))}function Mf(t){Fs(nl(Ve(),t))}function Vu(t,i,r,c,p){return Bs(t,rl(Ve(),i,r,c),p,!1),Vu}function zu(t,i,r,c,p,_,O){return Bs(t,ol(Ve(),i,r,c,p,_),O,!1),zu}function Wu(t,i,r,c,p,_,O,Q,ce){return Bs(t,sl(Ve(),i,r,c,p,_,O,Q),ce,!1),Wu}function Hu(t,i,r,c,p,_,O,Q,ce,De,et){return Bs(t,al(Ve(),i,r,c,p,_,O,Q,ce,De),et,!1),Hu}function $u(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft){return Bs(t,ll(Ve(),i,r,c,p,_,O,Q,ce,De,et,Ct),Ft,!1),$u}function Ku(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li){return Bs(t,cl(Ve(),i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt),li,!1),Ku}function Gu(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li){return Bs(t,dl(Ve(),i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi),Li,!1),Gu}function Zu(t,i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li,Ni,nn){return Bs(t,ul(Ve(),i,r,c,p,_,O,Q,ce,De,et,Ct,Ft,Kt,li,yi,Li,Ni),nn,!1),Zu}function Qu(t,i,r){return Bs(t,nl(Ve(),i),r,!1),Qu}function Yu(t,i,r){const c=Ve();return Ko(c,Ur(),i)&&hs(ft(),Jn(),c,t,i,c[zi],r,!0),Yu}function Xu(t,i,r){const c=Ve();if(Ko(c,Ur(),i)){const _=ft(),O=Jn();hs(_,O,c,t,i,_p(Uo(_.data),O,c),r,!0)}return Xu}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 ml={};function Q0(t,i,r){"string"!=typeof i&&(r=i,i=t[Ji.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),ml[i]=t,r&&(ml[i][Ji.ExtraData]=r)}function Ju(t){const i=function J0(t){return t.toLowerCase().replace(/_/g,"-")}(t);let r=wf(i);if(r)return r;const c=i.split("-")[0];if(r=wf(c),r)return r;if("en"===c)return Z0;throw new Z(701,!1)}function Y0(t){return Ju(t)[Ji.CurrencyCode]||null}function Ef(t){return Ju(t)[Ji.PluralCase]}function wf(t){return t in ml||(ml[t]=Tt.ng&&Tt.ng.common&&Tt.ng.common.locales&&Tt.ng.common.locales[t]),ml[t]}function X0(){ml={}}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",Fc={marker:"element"},Bc={marker:"ICU"};var Yr=(()=>((Yr=Yr||{})[Yr.SHIFT=2]="SHIFT",Yr[Yr.APPEND_EAGERLY=1]="APPEND_EAGERLY",Yr[Yr.COMMENT=2]="COMMENT",Yr))();let If=Aa;function qu(t){(function Jt(t,i){null==t&&lt(i,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(If=t.toLowerCase().replace(/_/g,"-"))}function Sf(t,i,r){const c=i.insertBeforeIndex,p=Array.isArray(c)?c[0]:c;return null===p?Yh(t,0,r):Kn(r[p])}function Df(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++)xs(t,O,r[_[ce]],Q,!1)}}function Tf(t,i){if(t.push(i),t.length>1)for(let r=t.length-2;r>=0;r--){const c=t[r];Pf(c)||ny(c,i)&&null===ry(c)&&oy(c,i.index)}}function Pf(t){return!(64&t.type)}function ny(t,i){return Pf(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:(Jh(Sf,Df),t.insertBeforeIndex=i)}function Bl(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=Ud(t,r,64,null,null);return Tf(i,c),c}function Nc(t,i){const r=i[t.currentCaseLViewIndex];return null===r?r:r<0?~r:r}function Of(t){return t>>>17}function Af(t){return(131070&t)>>>1}let Nl=0,Ul=0;function Lf(t,i,r,c){const p=r[zi];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]=Ls(p,ce))}else if("number"==typeof ce)switch(1&ce){case 0:const De=Of(ce);let et,Ct;if(null===_&&(_=De,O=ac(p,c)),De===_?(et=c,Ct=O):(et=null,Ct=Kn(r[De])),null!==Ct){const yi=Af(ce);xs(p,Ct,r[yi],et,!1);const Ni=Bl(t,yi);if(null!==Ni&&"object"==typeof Ni){const nn=Nc(Ni,r);null!==nn&&Lf(t,Ni.create[nn],r,r[Ni.anchorIdx])}}break;case 1:const Kt=i[++Q],li=i[++Q];Gd(p,kt(ce>>>1,r),null,null,Kt,li,null)}else switch(ce){case Bc:const De=i[++Q],et=i[++Q];null===r[et]&&$e(r[et]=sc(p,De),r);break;case Fc:const Ct=i[++Q],Ft=i[++Q];null===r[Ft]&&$e(r[Ft]=Ha(p,Ct,null),r)}}}function Rf(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 et=r[De];if("string"==typeof et)ce+=et;else if("number"==typeof et)if(et<0)ce+=q(i[c-et]);else{const Ct=et>>>2;switch(3&et){case 1:const Ft=r[++De],Kt=r[++De],li=t.data[Ct];"string"==typeof li?Gd(i[zi],i[Ct],null,li,Ft,ce,Kt):hs(t,li,i,Ft,ce,i[zi],Kt,!1);break;case 0:const yi=i[Ct];null!==yi&&us(i[zi],yi,ce);break;case 2:my(t,Bl(t,Ct),i,ce);break;case 3:Ff(t,Bl(t,Ct),c,i)}}}}else{const ce=r[_+1];if(ce>0&&3==(3&ce)){const et=Bl(t,ce>>>2);i[et.currentCaseLViewIndex]<0&&Ff(t,et,c,i)}}_+=Q}}function Ff(t,i,r,c){let p=c[i.currentCaseLViewIndex];if(null!==p){let _=Nl;p<0&&(p=c[i.currentCaseLViewIndex]=~p,_=-1),Rf(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=Ef(i)(parseInt(t,10)),c=q0[r];return void 0!==c?c:"other"}(i,function iy(){return If}());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(Nc(i,r)!==p&&(Bf(t,i,r),r[i.currentCaseLViewIndex]=null===p?null:~p,null!==p)){const O=r[i.anchorIdx];O&&Lf(t,i.create[p],r,O)}}function Bf(t,i,r){let c=Nc(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&&pd(r[zi],Q)}else Bf(t,Bl(t,~O),r)}}}function fy(){const t=[];let r,c,i=-1;function _(Q,ce){i=0;const De=Nc(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 Uc=/\ufffd(\d+):?\d*\ufffd/gi,gy=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,_y=/\ufffd(\d+)\ufffd/,Uf=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,jl="\ufffd",vy=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,by=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,yy=/\uE500/g;function jf(t,i,r,c,p,_,O){const Q=Ll(t,c,1,null);let ce=Q<<Yr.SHIFT,De=Hi();i===De&&(De=null),null===De&&(ce|=Yr.APPEND_EAGERLY),O&&(ce|=Yr.COMMENT,function Wr(t){void 0===Mr&&(Mr=t())}(fy)),p.push(ce,null===_?"":_);const et=Ud(t,Q,O?32:1,null===_?"":_,null);Tf(r,et);const Ct=et.index;return vn(et,!1),null!==De&&i!==De&&function ay(t,i){let r=t.insertBeforeIndex;null===r?(Jh(Sf,Df),r=t.insertBeforeIndex=[null,i]):(function Je(t,i,r){t!=i&&lt(r,t,i,"==")}(Array.isArray(r),!0,"Expecting array here"),r.push(i))}(De,Ct),et}function My(t,i,r,c,p,_,O){const Q=O.match(Uc),ce=jf(t,i,r,_,c,Q?null:O,!1);Q&&Vl(p,O,ce.index,null,0,null)}function Vl(t,i,r,c,p,_){const O=t.length,Q=O+1;t.push(null,null);const ce=O+2,De=i.split(Uc);let et=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),et|=Vf(Kt)}else""!==Ft&&t.push(Ft)}return t.push(r<<2|(c?1:0)),c&&t.push(c,_),t[O]=et,t[Q]=t.length-ce,et}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 Vf(t){return 1<<Math.min(t,31)}function zf(t){let i,_,r="",c=0,p=!1;for(;null!==(i=vy.exec(t));)p?i[0]===`${jl}/*${_}${jl}`&&(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 Wf(t,i,r,c,p,_){let O=0;const Q={type:p.type,currentCaseLViewIndex:Ll(t,i,1,null),anchorIdx:_,cases:[],create:[],remove:[],update:[]};(function Oy(t,i,r){t.push(Vf(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 et=ce[De],Ct=[];for(let Ft=0;Ft<et.length;Ft++){const Kt=et[Ft];if("string"!=typeof Kt){const li=Ct.push(Kt)-1;et[Ft]=`\x3c!--\ufffd${li}\ufffd--\x3e`}}O=Ty(t,Q,i,r,c,p.cases[De],et.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 _=eh(t=t.replace(Uf,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=eh(_[O++]);i.length>r.length&&r.push(ce)}return{type:c,mainBinding:p,cases:i,values:r}}function eh(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);Uf.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=[],et=[];i.cases.push(_),i.create.push(ce),i.remove.push(De),i.update.push(et);const Ft=cm(rm()).getInertBodyElement(O),Kt=Cd(Ft)||Ft;return Kt?Hf(t,i,r,c,ce,De,et,Kt,p,Q,0):0}function Hf(t,i,r,c,p,_,O,Q,ce,De,et){let Ct=0,Ft=Q.firstChild;for(;Ft;){const Kt=Ll(t,r,1,null);switch(Ft.nodeType){case Node.ELEMENT_NODE:const li=Ft,yi=li.tagName.toLowerCase();if(bd.hasOwnProperty(yi)){th(p,Fc,yi,ce,Kt),t.data[Kt]=yi;const fi=li.attributes;for(let un=0;un<fi.length;un++){const kr=fi.item(un),oo=kr.name.toLowerCase();kr.value.match(Uc)?mm.hasOwnProperty(oo)&&Vl(O,kr.value,Kt,kr.name,0,yd[oo]?hc:null):ky(p,Kt,kr)}Ct=Hf(t,i,r,c,p,_,O,Ft,Kt,De,et+1)|Ct,$f(_,Kt,et)}break;case Node.TEXT_NODE:const Li=Ft.textContent||"",Ni=Li.match(Uc);th(p,null,Ni?"":Li,ce,Kt),$f(_,Kt,et),Ni&&(Ct=Vl(O,Li,Kt,null,0,null)|Ct);break;case Node.COMMENT_NODE:const nn=_y.exec(Ft.textContent||"");if(nn){const un=De[parseInt(nn[1],10)];th(p,Bc,"",ce,Kt),Wf(t,r,c,ce,un,Kt),Py(_,Kt,et)}}Ft=Ft.nextSibling}return Ct}function $f(t,i,r){0===r&&t.push(i)}function Py(t,i,r){0===r&&(t.push(~i),t.push(i))}function th(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 Kf=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 ih(t,i,r=-1){const c=ft(),p=Ve(),_=Ye+t,O=oi(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 zf(t);{const r=t.indexOf(`:${i}${jl}`)+2+i.toString().length,c=t.search(new RegExp(`${jl}\\/\\*\\d+:${i}${jl}`));return zf(t.substring(r,c))}}(p,_);const et=function Cy(t){return t.replace(yy," ")}(p).split(by);for(let Ct=0;Ct<et.length;Ct++){let Ft=et[Ct];if(1&Ct){const Kt=47===Ft.charCodeAt(0),yi=(Ft.charCodeAt(Kt?1:0),Ye+Number.parseInt(Ft.substring(Kt?2:1)));if(Kt)De.shift(),vn(Hi(),!1);else{const Li=ly(t,De[0],yi);De.unshift([]),vn(Li,!0)}}else{const Kt=eh(Ft);for(let li=0;li<Kt.length;li++){let yi=Kt[li];if(1&li){const Li=yi;if("object"!=typeof Li)throw new Error(`Unable to parse ICU expression in "${p}" message.`);Wf(t,r,ce,i,Li,jf(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[_],et=Qo(c,Q===p[_n]?null:Q,p);(function hy(t,i,r,c){const p=t[zi];for(let _=0;_<i.length;_++){const O=i[_++],Q=i[_],De=(O&Yr.APPEND_EAGERLY)===Yr.APPEND_EAGERLY,et=O>>>Yr.SHIFT;let Ct=t[et];null===Ct&&(Ct=t[et]=(O&Yr.COMMENT)===Yr.COMMENT?p.createComment(Q):Ls(p,Q)),De&&null!==r&&xs(p,r,Ct,c,!1)}})(p,ce.create,et,Q&&8&Q.type?p[Q.index]:null),No(!0)}function nh(){No(!1)}function Gf(t,i,r){ih(t,i,r),nh()}function Zf(t,i){const r=ft(),c=oi(r.consts,i);!function Ey(t,i,r){const p=Pi().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}".`);Vl(_,ce,p,Q,wy(_),null)}}t.data[i]=_}}(r,t+Ye,c)}function rh(t){return function dy(t){t&&(Nl|=1<<Math.min(Ul,31)),Ul++}(Ko(Ve(),Ur(),t)),rh}function Qf(t){!function uy(t,i,r){if(Ul>0){const c=t.data[r];Rf(t,i,Array.isArray(c)?c:c.update,Wn()-Ul-1,Nl)}Nl=0,Ul=0}(ft(),Ve(),t+Ye)}function Yf(t,i={}){return function Vy(t,i={}){let r=t;if(Ly.test(t)){const c={},p=[Kf];r=r.replace(Ry,(_,O,Q)=>{const ce=O||Q,De=c[ce]||[];if(De.length||(ce.split("|").forEach(yi=>{const Li=yi.match(jy),Ni=Li?parseInt(Li[1],10):Kf,nn=Uy.test(yi);De.push([Ni,nn,yi])}),c[ce]=De),!De.length)throw new Error(`i18n postprocess: unmatched placeholder - ${ce}`);const et=p[p.length-1];let Ct=0;for(let yi=0;yi<De.length;yi++)if(De[yi][0]===et){Ct=yi;break}const[Ft,Kt,li]=De[Ct];return Kt?p.pop():et!==Ft&&p.push(Ft),De.splice(Ct,1),li})}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 oh(t,i,r,c,p){if(t=g(t),Array.isArray(t))for(let _=0;_<t.length;_++)oh(t[_],i,r,c,p);else{const _=ft(),O=Ve();let Q=Sa(t)?t:g(t.provide),ce=Pm(t);const De=Pi(),et=1048575&De.providerIndexes,Ct=De.directiveStart,Ft=De.providerIndexes>>20;if(Sa(t)||!t.multi){const Kt=new yt(ce,p,qa),li=ah(Q,i,p?et:et+Ft,Ct);-1===li?(cr(Ai(De,O),_,Q),sh(_,t,i.length),i.push(Q),De.directiveStart++,De.directiveEnd++,p&&(De.providerIndexes+=1048576),r.push(Kt),O.push(Kt)):(r[li]=Kt,O[li]=Kt)}else{const Kt=ah(Q,i,et+Ft,Ct),li=ah(Q,i,et,et+Ft),Li=li>=0&&r[li];if(p&&!Li||!p&&!(Kt>=0&&r[Kt])){cr(Ai(De,O),_,Q);const Ni=function $y(t,i,r,c,p){const _=new yt(t,r,qa);return _.multi=[],_.index=i,_.componentProviders=0,Xf(_,p,c&&!r),_}(p?Hy:Wy,r.length,p,c,ce);!p&&Li&&(r[li].providerFactory=Ni),sh(_,t,i.length,0),i.push(Q),De.directiveStart++,De.directiveEnd++,p&&(De.providerIndexes+=1048576),r.push(Ni),O.push(Ni)}else sh(_,t,Kt>-1?Kt:li,Xf(r[p?li:Kt],ce,!p&&c));!p&&c&&Li&&r[li].componentProviders++}}}function sh(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 et=De.indexOf(r);-1===et?De.push(r,[c,ce]):De[et+1].push(c,ce)}else De.push(r,ce)}}}function Xf(t,i,r){return r&&t.componentProviders++,t.multi.push(i)-1}function ah(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 lh(this.multi,[])}function Hy(t,i,r,c){const p=this.multi;let _;if(this.providerFactory){const O=this.providerFactory.componentProviders,Q=as(r,r[bi],this.providerFactory.index,c);_=Q.slice(0,O),lh(p,_);for(let ce=O;ce<Q.length;ce++)_.push(Q[ce])}else _=[],lh(p,_);return _}function lh(t,i){for(let r=0;r<t.length;r++)i.push((0,t[r])());return i}function Jf(t,i=[]){return r=>{r.providersResolver=(c,p)=>function zy(t,i,r){const c=ft();if(c.firstCreatePass){const p=Vn(t);oh(r,c.data,c.blueprint,p,!0),oh(i,c.data,c.blueprint,p,!1)}}(c,p?p(t):t,i)}}class pl{}class qf{}function eg(t,i){return new ch(t,i??null)}const Ky=eg;class ch extends pl{constructor(i,r){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new bp(this);const c=Mi(i);this._bootstrapComponents=sa(c.bootstrap),this._r3Injector=Xm(i,r,[{provide:pl,useValue:this},{provide:Pl,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 jc extends qf{constructor(i){super(),this.moduleType=i}create(i){return new ch(this.moduleType,i)}}class Gy extends pl{constructor(i,r,c){super(),this.componentFactoryResolver=new bp(this),this.instance=null;const p=new Tm([...i,{provide:pl,useValue:this},{provide:Pl,useValue:this.componentFactoryResolver}],r||fc(),c,new Set(["environment"]));this.injector=p,p.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function dh(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=wm(0,r.type),p=c.length>0?dh([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=W({token:t,providedIn:"environment",factory:()=>new t(_i(Da))}),t})();function tg(t){t.getStandaloneInjector=i=>i.get(Zy).getOrCreateStandaloneInjector(t)}function uh(t){const i=h(t);if(null===i)return null;if(void 0===i.component){const r=i.lView;if(null===r)return null;i.component=function kn(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 ig(t){!function eC(t){if(typeof Element<"u"&&!(t instanceof Element))throw new Error("Expecting instance of DOM Element")}(t);const i=h(t),r=i?i.lView:null;return null===r?null:r[wi]}function ng(t){const i=h(t);let c,r=i?i.lView:null;if(null===r)return null;for(;2===r[bi].type&&(c=zo(r));)r=c;return 256&r[gi]?null:r[wi]}function rg(t){const i=Et(t);return null!==i?[cn(i)]:[]}function og(t){const i=h(t),r=i?i.lView:null;return null===r?_a.NULL:new gs(r[bi].data[i.nodeIndex],r)}function sg(t){if(t instanceof Text)return[];const i=h(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=Xi(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=Yi(i);if(r)return{inputs:r.inputs,outputs:r.outputs,encapsulation:r.encapsulation,changeDetection:r.onPush?Wt.OnPush:Wt.Default};const c=wn(i);return c?{inputs:c.inputs,outputs:c.outputs}:null}function hh(t){return h(t).native}function ag(t){const i=h(t),r=null===i?null:i.lView;if(null===r)return[];const p=r[tr],_=r[bi].cleanup,O=[];if(_&&p)for(let Q=0;Q<_.length;){const ce=_[Q++],De=_[Q++];if("string"==typeof ce){const et=ce,Ct=Kn(r[De]),Ft=p[_[Q++]],Kt=_[Q++];t==Ct&&O.push({element:t,name:et,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 lg(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 cg(t,i,r){const c=yn()+t,p=Ve();return p[c]===dn?Ys(p,c,r?i.call(r):i()):Rl(p,c)}function dg(t,i,r,c){return bg(Ve(),yn(),t,i,r,c)}function ug(t,i,r,c,p){return yg(Ve(),yn(),t,i,r,c,p)}function hg(t,i,r,c,p,_){return Cg(Ve(),yn(),t,i,r,c,p,_)}function mg(t,i,r,c,p,_,O){return xg(Ve(),yn(),t,i,r,c,p,_,O)}function pg(t,i,r,c,p,_,O,Q){const ce=yn()+t,De=Ve(),et=Ms(De,ce,r,c,p,_);return Ko(De,ce+4,O)||et?Ys(De,ce+5,Q?i.call(Q,r,c,p,_,O):i(r,c,p,_,O)):Rl(De,ce+5)}function fg(t,i,r,c,p,_,O,Q,ce){const De=yn()+t,et=Ve(),Ct=Ms(et,De,r,c,p,_);return Ta(et,De+4,O,Q)||Ct?Ys(et,De+6,ce?i.call(ce,r,c,p,_,O,Q):i(r,c,p,_,O,Q)):Rl(et,De+6)}function gg(t,i,r,c,p,_,O,Q,ce,De){const et=yn()+t,Ct=Ve();let Ft=Ms(Ct,et,r,c,p,_);return Sc(Ct,et+4,O,Q,ce)||Ft?Ys(Ct,et+7,De?i.call(De,r,c,p,_,O,Q,ce):i(r,c,p,_,O,Q,ce)):Rl(Ct,et+7)}function _g(t,i,r,c,p,_,O,Q,ce,De,et){const Ct=yn()+t,Ft=Ve(),Kt=Ms(Ft,Ct,r,c,p,_);return Ms(Ft,Ct+4,O,Q,ce,De)||Kt?Ys(Ft,Ct+8,et?i.call(et,r,c,p,_,O,Q,ce,De):i(r,c,p,_,O,Q,ce,De)):Rl(Ft,Ct+8)}function vg(t,i,r,c){return Mg(Ve(),yn(),t,i,r,c)}function zl(t,i){const r=t[i];return r===dn?void 0:r}function bg(t,i,r,c,p,_){const O=i+r;return Ko(t,O,p)?Ys(t,O+1,_?c.call(_,p):c(p)):zl(t,O+1)}function yg(t,i,r,c,p,_,O){const Q=i+r;return Ta(t,Q,p,_)?Ys(t,Q+2,O?c.call(O,p,_):c(p,_)):zl(t,Q+2)}function Cg(t,i,r,c,p,_,O,Q){const ce=i+r;return Sc(t,ce,p,_,O)?Ys(t,ce+3,Q?c.call(Q,p,_,O):c(p,_,O)):zl(t,ce+3)}function xg(t,i,r,c,p,_,O,Q,ce){const De=i+r;return Ms(t,De,p,_,O,Q)?Ys(t,De+4,ce?c.call(ce,p,_,O,Q):c(p,_,O,Q)):zl(t,De+4)}function Mg(t,i,r,c,p,_){let O=i+r,Q=!1;for(let ce=0;ce<p.length;ce++)Ko(t,O++,p[ce])&&(Q=!0);return Q?Ys(t,O,c.apply(_,p)):zl(t,O)}function Eg(t,i){const r=ft();let c;const p=t+Ye;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=Tr(c.type)),O=fe(qa);try{const Q=Y(!1),ce=_();return Y(Q),Ap(r,Ve(),p,ce),ce}finally{fe(O)}}function wg(t,i,r){const c=t+Ye,p=Ve(),_=tt(p,c);return Wl(p,c)?bg(p,yn(),i,_.transform,r,_):_.transform(r)}function Ig(t,i,r,c){const p=t+Ye,_=Ve(),O=tt(_,p);return Wl(_,p)?yg(_,yn(),i,O.transform,r,c,O):O.transform(r,c)}function Sg(t,i,r,c,p){const _=t+Ye,O=Ve(),Q=tt(O,_);return Wl(O,_)?Cg(O,yn(),i,Q.transform,r,c,p,Q):Q.transform(r,c,p)}function Dg(t,i,r,c,p,_){const O=t+Ye,Q=Ve(),ce=tt(Q,O);return Wl(Q,O)?xg(Q,yn(),i,ce.transform,r,c,p,_,ce):ce.transform(r,c,p,_)}function Tg(t,i,r){const c=t+Ye,p=Ve(),_=tt(p,c);return Wl(p,c)?Mg(p,yn(),i,_.transform,r,_):_.transform.apply(_,r)}function Wl(t,i){return t[bi].data[i].pure}function mh(t){return i=>{setTimeout(t,void 0,i)}}const Js=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&&(_=mh(_),p&&(p=mh(p)),O&&(O=mh(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 Vc{get changes(){return this._changes||(this._changes=new Js)}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=Vc.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=ts(i);(this._changesDetected=!function Ks(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 Hl=(()=>{class t{}return t.__NG_ELEMENT_ID__=sC,t})();const rC=Hl,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=bc(this._declarationLView,c,i,16,null,c.declTNode,null,null,null,null,r||null);p[jn]=this._declarationLView[this._declarationTContainer.index];const O=this._declarationLView[ni];return null!==O&&(p[ni]=O.createEmbeddedView(c)),jd(c,p,i),new tl(p)}};function sC(){return zc(Pi(),Ve())}function zc(t,i){return 4&t.type?new oC(i,t,Ya(t,i)):null}let Wc=(()=>{class t{}return t.__NG_ELEMENT_ID__=aC,t})();function aC(){return Ag(Pi(),Ve())}const lC=Wc,Pg=class extends lC{constructor(i,r,c){super(),this._lContainer=i,this._hostTNode=r,this._hostLView=c}get element(){return Ya(this._hostTNode,this._hostLView)}get injector(){return new gs(this._hostTNode,this._hostLView)}get parentInjector(){const i=Zr(this._hostTNode,this._hostLView);if(Pr(i)){const r=m(i,this._hostLView),c=Gr(i);return new gs(r[bi].data[c+8],r)}return new gs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const r=Og(this._lContainer);return null!==r&&r[i]||null}get length(){return this._lContainer.length-Dn}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&&!$s(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 il(Yi(i)),De=c||this.parentInjector;if(!_&&null==ce.ngModule){const Ft=(O?De:this.parentInjector).get(Da,null);Ft&&(_=Ft)}const et=ce.create(De,p,void 0,_);return this.insert(et.hostView,Q),et}insert(i,r){const c=i._lView,p=c[bi];if(function Si(t){return Cn(t[ji])}(c)){const et=this.indexOf(i);if(-1!==et)this.detach(et);else{const Ct=c[ji],Ft=new Pg(Ct,Ct[_n],Ct[ji]);Ft.detach(Ft.indexOf(i))}}const _=this._adjustIndex(r),O=this._lContainer;!function ho(t,i,r,c){const p=Dn+c,_=r.length;c>0&&(r[p-1][Sn]=i),c<_-Dn?(i[Sn]=r[p],Ba(r,Dn+c,i)):(r.push(i),i[Sn]=null),i[ji]=r;const O=i[jn];null!==O&&r!==O&&function ys(t,i){const r=t[$n];i[Ei]!==i[ji][ji][Ei]&&(t[Wi]=!0),null===r?t[$n]=[i]:r.push(i)}(O,i);const Q=i[ni];null!==Q&&Q.insertView(t),i[gi]|=64}(p,c,O,_);const Q=md(_,O),ce=c[zi],De=ac(ce,O[ln]);return null!==De&&function Zi(t,i,r,c,p,_){c[Bn]=p,c[_n]=i,Sl(t,c,r,1,p,_)}(p,O[_n],ce,c,De,Q),i.attachToViewContainerRef(),Ba(ph(O),_,i),i}move(i,r){return this.insert(i,r)}indexOf(i){const r=Og(this._lContainer);return null!==r?r.indexOf(i):-1}remove(i){const r=this._adjustIndex(i,-1),c=Cs(this._lContainer,r);c&&(pa(ph(this._lContainer),r),Er(c[bi],c))}detach(i){const r=this._adjustIndex(i,-1),c=Cs(this._lContainer,r);return c&&null!=pa(ph(this._lContainer),r)?new tl(c):null}_adjustIndex(i,r=0){return i??this.length+r}};function Og(t){return t[en]}function ph(t){return t[en]||(t[en]=[])}function Ag(t,i){let r;const c=i[t.index];if(Cn(c))r=c;else{let p;if(8&t.type)p=Kn(c);else{const _=i[zi];p=_.createComment("");const O=D(t,i);xs(_,ac(_,O),p,function q_(t,i){return t.nextSibling(i)}(_,O),!1)}i[t.index]=r=pp(c,i,p,t),Cc(i,r)}return new Pg(r,t,i)}class fh{constructor(i){this.queryList=i,this.matches=null}clone(){return new fh(this.queryList)}setDirty(){this.queryList.setDirty()}}class gh{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 gh(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!==Vg(i,r).matches&&this.queries[r].setDirty()}}class kg{constructor(i,r,c=null){this.predicate=i,this.flags=r,this.read=c}}class _h{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 _h(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 vh{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 vh(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,fs(r,i,_,!1,!1))}else c===Hl?4&r.type&&this.matchTNodeWithReadOption(i,r,-1):this.matchTNodeWithReadOption(i,r,fs(r,i,c,!1,!1))}matchTNodeWithReadOption(i,r,c){if(null!==c){const p=this.metadata.read;if(null!==p)if(p===Ol||p===Wc||p===Hl&&4&r.type)this.addMatch(r.index,-2);else{const _=fs(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?Ya(t,i):4&t.type?zc(t,i):null}(i,t):-2===r?function hC(t,i,r){return r===Ol?Ya(i,t):r===Hl?zc(i,t):r===Wc?Ag(i,t):void 0}(t,i,c):as(t,t[bi],r,i)}function Lg(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 bh(t,i,r,c){const p=t.queries.getByIndex(r),_=p.matches;if(null!==_){const O=Lg(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],et=i[-ce];for(let Ct=Dn;Ct<et.length;Ct++){const Ft=et[Ct];Ft[jn]===Ft[ji]&&bh(Ft[bi],Ft,De,c)}if(null!==et[$n]){const Ct=et[$n];for(let Ft=0;Ft<Ct.length;Ft++){const Kt=Ct[Ft];bh(Kt[bi],Kt,De,c)}}}}}return c}function Rg(t){const i=Ve(),r=ft(),c=jo();go(c+1);const p=Vg(r,c);if(t.dirty&&function ri(t){return 4==(4&t[gi])}(i)===(2==(2&p.metadata.flags))){if(null===p.matches)t.reset([]);else{const _=p.crossesNgTemplate?bh(r,i,c,[]):Lg(r,i,p,c);t.reset(_,Uv),t.notifyOnChanges()}return!0}return!1}function Fg(t,i,r){const c=ft();c.firstCreatePass&&(jg(c,new kg(t,i,r),-1),2==(2&i)&&(c.staticViewQueries=!0)),Ug(c,Ve(),i)}function Bg(t,i,r,c){const p=ft();if(p.firstCreatePass){const _=Pi();jg(p,new kg(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)}Ug(p,Ve(),r)}function Ng(){return function mC(t,i){return t[ni].queries[i].queryList}(Ve(),jo())}function Ug(t,i,r){const c=new Vc(4==(4&r));cp(t,i,c,c.destroy),null===i[ni]&&(i[ni]=new gh),i[ni].queries.push(new fh(c))}function jg(t,i,r){null===t.queries&&(t.queries=new _h),t.queries.track(new vh(i,r))}function Vg(t,i){return t.queries.getByIndex(i)}function zg(t,i){return zc(t,i)}const Yo=(()=>({\u0275\u0275attribute:eu,\u0275\u0275attributeInterpolate1:tu,\u0275\u0275attributeInterpolate2:iu,\u0275\u0275attributeInterpolate3:nu,\u0275\u0275attributeInterpolate4:ru,\u0275\u0275attributeInterpolate5:ou,\u0275\u0275attributeInterpolate6:su,\u0275\u0275attributeInterpolate7:au,\u0275\u0275attributeInterpolate8:lu,\u0275\u0275attributeInterpolateV:cu,\u0275\u0275defineComponent:Pt,\u0275\u0275defineDirective:vr,\u0275\u0275defineInjectable:W,\u0275\u0275defineInjector:He,\u0275\u0275defineNgModule:nr,\u0275\u0275definePipe:ur,\u0275\u0275directiveInject:qa,\u0275\u0275getInheritedFactory:ta,\u0275\u0275inject:_i,\u0275\u0275injectAttribute:Os,\u0275\u0275invalidFactory:op,\u0275\u0275invalidFactoryDep:pi,\u0275\u0275templateRefExtractor:zg,\u0275\u0275resetView:Oi,\u0275\u0275HostDirectivesFeature:wp,\u0275\u0275NgOnChangesFeature:Fo,\u0275\u0275ProvidersFeature:Jf,\u0275\u0275CopyDefinitionFeature:Ep,\u0275\u0275InheritDefinitionFeature:Xd,\u0275\u0275StandaloneFeature:tg,\u0275\u0275nextContext:jp,\u0275\u0275namespaceHTML:Ss,\u0275\u0275namespaceMathML:zs,\u0275\u0275namespaceSVG:So,\u0275\u0275enableBindings:de,\u0275\u0275disableBindings:Ke,\u0275\u0275elementStart:Dc,\u0275\u0275elementEnd:Tc,\u0275\u0275element:hu,\u0275\u0275elementContainerStart:Pc,\u0275\u0275elementContainerEnd:Oc,\u0275\u0275elementContainer:mu,\u0275\u0275pureFunction0:cg,\u0275\u0275pureFunction1:dg,\u0275\u0275pureFunction2:ug,\u0275\u0275pureFunction3:hg,\u0275\u0275pureFunction4:mg,\u0275\u0275pureFunction5:pg,\u0275\u0275pureFunction6:fg,\u0275\u0275pureFunction7:gg,\u0275\u0275pureFunction8:_g,\u0275\u0275pureFunctionV:vg,\u0275\u0275getCurrentView:Lp,\u0275\u0275restoreView:qt,\u0275\u0275listener:fu,\u0275\u0275projection:zp,\u0275\u0275syntheticHostProperty:Xu,\u0275\u0275syntheticHostListener:gu,\u0275\u0275pipeBind1:wg,\u0275\u0275pipeBind2:Ig,\u0275\u0275pipeBind3:Sg,\u0275\u0275pipeBind4:Dg,\u0275\u0275pipeBindV:Tg,\u0275\u0275projectionDef:Vp,\u0275\u0275hostProperty:Yu,\u0275\u0275property:du,\u0275\u0275propertyInterpolate:_u,\u0275\u0275propertyInterpolate1:Ac,\u0275\u0275propertyInterpolate2:vu,\u0275\u0275propertyInterpolate3:bu,\u0275\u0275propertyInterpolate4:yu,\u0275\u0275propertyInterpolate5:Cu,\u0275\u0275propertyInterpolate6:xu,\u0275\u0275propertyInterpolate7:Mu,\u0275\u0275propertyInterpolate8:Eu,\u0275\u0275propertyInterpolateV:wu,\u0275\u0275pipe:Eg,\u0275\u0275queryRefresh:Rg,\u0275\u0275viewQuery:Fg,\u0275\u0275loadQuery:Ng,\u0275\u0275contentQuery:Bg,\u0275\u0275reference:kp,\u0275\u0275classMap:Yp,\u0275\u0275classMapInterpolate1:sf,\u0275\u0275classMapInterpolate2:af,\u0275\u0275classMapInterpolate3:lf,\u0275\u0275classMapInterpolate4:cf,\u0275\u0275classMapInterpolate5:df,\u0275\u0275classMapInterpolate6:uf,\u0275\u0275classMapInterpolate7:hf,\u0275\u0275classMapInterpolate8:mf,\u0275\u0275classMapInterpolateV:pf,\u0275\u0275styleMap:Fs,\u0275\u0275styleMapInterpolate1:ff,\u0275\u0275styleMapInterpolate2:gf,\u0275\u0275styleMapInterpolate3:_f,\u0275\u0275styleMapInterpolate4:vf,\u0275\u0275styleMapInterpolate5:bf,\u0275\u0275styleMapInterpolate6:yf,\u0275\u0275styleMapInterpolate7:Cf,\u0275\u0275styleMapInterpolate8:xf,\u0275\u0275styleMapInterpolateV:Mf,\u0275\u0275styleProp:Tu,\u0275\u0275stylePropInterpolate1:Vu,\u0275\u0275stylePropInterpolate2:zu,\u0275\u0275stylePropInterpolate3:Wu,\u0275\u0275stylePropInterpolate4:Hu,\u0275\u0275stylePropInterpolate5:$u,\u0275\u0275stylePropInterpolate6:Ku,\u0275\u0275stylePropInterpolate7:Gu,\u0275\u0275stylePropInterpolate8:Zu,\u0275\u0275stylePropInterpolateV:Qu,\u0275\u0275classProp:Pu,\u0275\u0275advance:Km,\u0275\u0275template:Op,\u0275\u0275text:rf,\u0275\u0275textInterpolate:Au,\u0275\u0275textInterpolate1:Rc,\u0275\u0275textInterpolate2:ku,\u0275\u0275textInterpolate3:Lu,\u0275\u0275textInterpolate4:Ru,\u0275\u0275textInterpolate5:Fu,\u0275\u0275textInterpolate6:Bu,\u0275\u0275textInterpolate7:Nu,\u0275\u0275textInterpolate8:Uu,\u0275\u0275textInterpolateV:ju,\u0275\u0275i18n:Gf,\u0275\u0275i18nAttributes:Zf,\u0275\u0275i18nExp:rh,\u0275\u0275i18nStart:ih,\u0275\u0275i18nEnd:nh,\u0275\u0275i18nApply:Qf,\u0275\u0275i18nPostprocess:Yf,\u0275\u0275resolveWindow:Bm,\u0275\u0275resolveDocument:Nm,\u0275\u0275resolveBody:Um,\u0275\u0275setComponentScope:ii,\u0275\u0275setNgModuleScope:Lr,\u0275\u0275registerNgModuleType:Cl,\u0275\u0275sanitizeHtml:gm,\u0275\u0275sanitizeStyle:_m,\u0275\u0275sanitizeResourceUrl:Md,\u0275\u0275sanitizeScript:vm,\u0275\u0275sanitizeUrl:xd,\u0275\u0275sanitizeUrlOrResourceUrl:Cm,\u0275\u0275trustConstantHtml:bm,\u0275\u0275trustConstantResourceUrl:ym,\u0275\u0275validateIframeAttribute:nm,forwardRef:w,resolveForwardRef:g}))();let fl=null;function _C(){fl=null}function yh(t){return!!Mi(t)}const $l=[];let Ch=!1;function Hg(){if(!Ch){Ch=!0;try{for(let t=$l.length-1;t>=0;t--){const{moduleType:i,ngModule:r}=$l[t];r.declarations&&r.declarations.every($g)&&($l.splice(t,1),CC(i,r))}}finally{Ch=!1}}}function $g(t){return Array.isArray(t)?t.every($g):!!g(t)}function Kg(t,i={}){Gg(t,i),void 0!==i.id&&Cl(t,i.id),function vC(t,i){$l.push({moduleType:t,ngModule:i})}(t,i)}function Gg(t,i,r=!1){const c=ts(i.declarations||It);let p=null;Object.defineProperty(t,Se,{configurable:!0,get:()=>(null===p&&(p=Qr().compileNgModule(Yo,`ng:///${t.name}/\u0275mod.js`,{type:t,bootstrap:ts(i.bootstrap||It).map(g),declarations:c.map(g),imports:ts(i.imports||It).map(g).map(Xg),exports:ts(i.exports||It).map(g).map(Xg),schemas:i.schemas?ts(i.schemas):null,id:i.id||null}),p.schemas||(p.schemas=[])),p)});let _=null;Object.defineProperty(t,Ot,{get:()=>{if(null===_){const Q=Qr();_=Q.compileFactory(Yo,`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,ee,{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=Qr().compileInjector(Yo,`ng:///${t.name}/\u0275inj.js`,Q)}return O},configurable:!1})}let Hc=new WeakMap,Mh=new WeakMap;function yC(){Hc=new WeakMap,Mh=new WeakMap,$l.length=0}function CC(t,i){const r=ts(i.declarations||It),c=ka(t);r.forEach(p=>{(p=g(p)).hasOwnProperty(se)?Eh(Yi(p),c):!p.hasOwnProperty(we)&&!p.hasOwnProperty(Le)&&(p.ngSelectorScope=t)})}function Eh(t,i){t.directiveDefs=()=>Array.from(i.compilation.directives).map(r=>r.hasOwnProperty(se)?Yi(r):wn(r)).filter(r=>!!r),t.pipeDefs=()=>Array.from(i.compilation.pipes).map(r=>Rn(r)),t.schemas=i.schemas,t.tView=null}function ka(t){if(yh(t))return function xC(t){const i=Mi(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 sa(i.imports).forEach(c=>{const p=ka(c);p.exported.directives.forEach(_=>r.compilation.directives.add(_)),p.exported.pipes.forEach(_=>r.compilation.pipes.add(_))}),sa(i.declarations).forEach(c=>{Rn(c)?r.compilation.pipes.add(c):r.compilation.directives.add(c)}),sa(i.exports).forEach(c=>{const p=c;if(yh(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 Rn(p)?r.exported.pipes.add(p):r.exported.directives.add(p)}),i.transitiveCompileScopes=r,r}(t);if(Fn(t)){if(null!==(Yi(t)||wn(t)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([t]),pipes:new Set}};if(null!==Rn(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 Xg(t){return function Wg(t){return void 0!==t.ngModule}(t)?t.ngModule:t}let wh=0;function Jg(t,i){let r=null;(function Xc(t,i){yl(i)&&(bo.set(t,i),vs.add(t))})(t,i),e_(t,i),Object.defineProperty(t,se,{get:()=>{if(null===r){const c=Qr();if(yl(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 fl}();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={...t_(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};wh++;try{if(ce.usesInheritance&&i_(t),r=c.compileComponent(Yo,Q,ce),i.standalone){const De=ts(i.imports||It),{directiveDefs:et,pipeDefs:Ct}=function EC(t,i){let r=null,c=null;return{directiveDefs:()=>{if(null===r){r=[Yi(t)];const O=new Set;for(const Q of i){const ce=g(Q);if(!O.has(ce))if(O.add(ce),Mi(ce)){const De=ka(ce);for(const et of De.exported.directives){const Ct=Yi(et)||wn(et);Ct&&!O.has(et)&&(O.add(et),r.push(Ct))}}else{const De=Yi(ce)||wn(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),Mi(ce)){const De=ka(ce);for(const et of De.exported.pipes){const Ct=Rn(et);Ct&&!O.has(et)&&(O.add(et),c.push(Ct))}}else{const De=Rn(ce);De&&c.push(De)}}}return c}}}(t,De);r.directiveDefs=et,r.pipeDefs=Ct,r.dependencies=()=>De.map(g)}}finally{wh--}if(0===wh&&Hg(),function wC(t){return void 0!==t.ngSelectorScope}(t)){const De=ka(t.ngSelectorScope);Eh(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 Ih(t,i){let r=null;e_(t,i||{}),Object.defineProperty(t,we,{get:()=>{if(null===r){const c=qg(t,i||{});r=Qr().compileDirective(Yo,c.sourceMapUrl,c.metadata)}return r},configurable:!1})}function qg(t,i){const r=t&&t.name,c=`ng:///${r}/\u0275dir.js`,p=Qr(),_=t_(t,i);return _.typeSourceSpan=p.createParseSourceSpan("Directive",r,c),_.usesInheritance&&i_(t),{metadata:_,sourceMapUrl:c}}function e_(t,i){let r=null;Object.defineProperty(t,Ot,{get:()=>{if(null===r){const c=qg(t,i),p=Qr();r=p.compileFactory(Yo,`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 t_(t,i){const r=To(),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:n_(t,c,r_),lifecycle:{usesOnChanges:r.hasLifecycleHook(t,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!IC(t),exportAs:TC(i.exportAs),providers:i.providers||null,viewQueries:n_(t,c,o_),isStandalone:!!i.standalone,hostDirectives:i.hostDirectives?.map(p=>"function"==typeof p?{directive:p}:p)||null}}function i_(t){const i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;)!wn(r)&&!Yi(r)&&OC(r)&&Ih(r,null),r=Object.getPrototypeOf(r)}function SC(t){return"string"==typeof t?a_(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 n_(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(s_))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:a_(t)}function r_(t){const i=t.ngMetadataName;return"ContentChild"===i||"ContentChildren"===i}function o_(t){const i=t.ngMetadataName;return"ViewChild"===i||"ViewChildren"===i}function s_(t){return"Input"===t.ngMetadataName}function a_(t){return t.split(",").map(i=>i.trim())}const PC=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function OC(t){const i=To();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(s_(O)||r_(O)||o_(O)||"Output"===Q||"HostBinding"===Q||"HostListener"===Q)return!0}}return!1}function l_(t,i){let r=null,c=null;Object.defineProperty(t,Ot,{get:()=>{if(null===c){const p=c_(t,i),_=Qr();c=_.compileFactory(Yo,`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=c_(t,i);r=Qr().compilePipe(Yo,`ng:///${p.name}/\u0275pipe.js`,p)}return r},configurable:!1})}function c_(t,i){return{type:t,name:t.name,pipeName:i.name,pure:void 0===i.pure||i.pure,isStandalone:!!i.standalone}}const d_=Zo("Directive",(t={})=>t,void 0,void 0,(t,i)=>Ih(t,i)),AC=Zo("Component",(t={})=>({changeDetection:Wt.Default,...t}),d_,void 0,(t,i)=>Jg(t,i)),kC=Zo("Pipe",t=>({pure:!0,...t}),void 0,void 0,(t,i)=>l_(t,i)),LC=vo("Input",t=>({bindingPropertyName:t})),RC=vo("Output",t=>({bindingPropertyName:t})),FC=vo("HostBinding",t=>({hostPropertyName:t})),BC=vo("HostListener",(t,i)=>({eventName:t,args:i})),NC=Zo("NgModule",t=>t,void 0,void 0,(t,i)=>Kg(t,i));function $c(...t){}const u_=new or("Application Initializer");let Kc=(()=>{class t{constructor(r){this.appInits=r,this.resolve=$c,this.reject=$c,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(pu(_))r.push(_);else if(Fp(_)){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(u_,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const h_=new or("AppId",{providedIn:"root",factory:m_});function m_(){return`${Sh()}${Sh()}${Sh()}`}const UC={provide:h_,useFactory:m_,deps:[]};function Sh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const p_=new or("Platform Initializer"),jC=new or("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),VC=new or("Application Packages Root URL"),zC=new or("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=W({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Gc=new or("LocaleId",{providedIn:"root",factory:()=>Bi(Gc,be.Optional|be.SkipSelf)||function HC(){return typeof $localize<"u"&&$localize.locale||Aa}()}),$C=new or("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),KC=new or("Translations"),GC=new or("TranslationsFormat");var qs=(()=>((qs=qs||{})[qs.Error=0]="Error",qs[qs.Warning=1]="Warning",qs[qs.Ignore=2]="Ignore",qs))();class f_{constructor(i,r){this.ngModuleFactory=i,this.componentFactories=r}}let ZC=(()=>{class t{compileModuleSync(r){return new jc(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const c=this.compileModuleSync(r),_=sa(Mi(r).declarations).reduce((O,Q)=>{const ce=Yi(Q);return ce&&O.push(new il(ce)),O},[]);return new f_(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=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const g_=new or("compilerOptions");class QC{}function YC(t){xc(U(t)),rg(t).forEach(i=>Pp(i))}const __="ng";let v_=!1;function XC(){v_||(v_=!0,Es("\u0275setProfiler",to),Es("getDirectiveMetadata",Yy),Es("getComponent",uh),Es("getContext",ig),Es("getListeners",ag),Es("getOwningComponent",ng),Es("getHostElement",hh),Es("getInjector",og),Es("getRootComponents",rg),Es("getDirectives",sg),Es("applyChanges",YC))}function Es(t,i){if((typeof COMPILED>"u"||!COMPILED)&&Tt){let c=Tt[__];c||(c=Tt[__]={}),c[t]=i}}const JC=(()=>Promise.resolve(0))();function Dh(t){typeof Zone>"u"?JC.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ws{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:c=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Js(!1),this.onMicrotaskEmpty=new Js(!1),this.onStable=new Js(!1),this.onError=new Js(!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=Tt.requestAnimationFrame,i=Tt.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(Tt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ph(t),t.isCheckStableRunning=!0,Th(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ph(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,c,p,_,O,Q)=>{try{return b_(t),r.invokeTask(p,_,O,Q)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===_.type||t.shouldCoalesceRunChangeDetection)&&i(),y_(t)}},onInvoke:(r,c,p,_,O,Q,ce)=>{try{return b_(t),r.invoke(p,_,O,Q,ce)}finally{t.shouldCoalesceRunChangeDetection&&i(),y_(t)}},onHasTask:(r,c,p,_)=>{r.hasTask(p,_),c===p&&("microTask"==_.change?(t._hasPendingMicrotasks=_.microTask,Ph(t),Th(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(!ws.isInAngularZone())throw new Z(909,!1)}static assertNotInAngularZone(){if(ws.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,$c,$c);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 Th(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 Ph(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function b_(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function y_(t){t._nesting--,Th(t)}class C_{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Js,this.onMicrotaskEmpty=new Js,this.onStable=new Js,this.onError=new Js}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 x_=new or(""),M_=new or("");let Oh,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,Oh||(w_(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:()=>{ws.assertNotInAngularZone(),Dh(()=>{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())Dh(()=>{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(ws),_i(E_),_i(M_))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),E_=(()=>{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 Oh?.findTestabilityInTree(this,r,c)??null}}return t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function w_(t){Oh=t}const ca=!1;let ba=null;const Ah=new or("AllowMultipleToken"),kh=new or("PlatformDestroyListeners"),I_=new or("appBootstrapListener");function S_(t,i,r){const c=new jc(r);return Promise.resolve(c)}function D_(t){return t.isBoundToModule}class rx{constructor(i,r){this.name=i,this.token=r}}function T_(t){if(ba&&!ba.get(Ah,!1))throw new Z(400,!1);ba=t;const i=t.get(Lh);return P_(t),i}function P_(t){const i=t.get(p_,null);i&&i.forEach(r=>r())}function sx(t){const{rootComponent:i,appProviders:r,platformProviders:c}=t;ca&&void 0!==i&&function Gv(t){if(function Zv(t){if(!Yi(t))throw new Z(906,`The ${X(t)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}(t),!Yi(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(ba)return ba;const i=k_(t);return ba=i,P_(i),i}(c),_=R_("zone.js",L_());return _.run(()=>{const Q=dh([{provide:ws,useValue:_},...r||[]],p,"Environment Injector"),ce=Q.get(Al,null);if(ca&&!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 et=()=>Q.destroy(),Ct=p.get(kh);return Ct.add(et),Q.onDestroy(()=>{De.unsubscribe(),Ct.delete(et)}),F_(ce,_,()=>{const Ft=Q.get(Kc);return Ft.runInitializers(),Ft.donePromise.then(()=>{qu(Q.get(Gc,Aa)||Aa);const li=Q.get(Qc);return void 0!==i&&li.bootstrap(i),li})})})}function O_(t,i,r=[]){const c=`Platform: ${i}`,p=new or(c);return(_=[])=>{let O=Zc();if(!O||O.injector.get(Ah,!1)){const Q=[...r,..._,{provide:p,useValue:!0}];t?t(Q):T_(k_(Q,c))}return A_()}}function A_(t){const i=Zc();if(!i)throw new Z(401,!1);return i}function k_(t=[],i){return _a.create({name:i,providers:[{provide:Td,useValue:"platform"},{provide:kh,useValue:new Set([()=>ba=null])},...t]})}function ax(){Zc()?.destroy()}function Zc(){return ba?.get(Lh)??null}let Lh=(()=>{class t{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,c){const p=R_(c?.ngZone,L_(c)),_=[{provide:ws,useValue:p}];return p.run(()=>{const O=_a.create({providers:_,parent:this.injector,name:r.moduleType.name}),Q=r.create(O),ce=Q.injector.get(Al,null);if(!ce)throw new Z(402,!1);return p.runOutsideAngular(()=>{const De=p.onError.subscribe({next:et=>{ce.handleError(et)}});Q.onDestroy(()=>{Yc(this._modules,Q),De.unsubscribe()})}),F_(ce,p,()=>{const De=Q.injector.get(Kc);return De.runInitializers(),De.donePromise.then(()=>(qu(Q.injector.get(Gc,Aa)||Aa),this._moduleDoBootstrap(Q),Q))})})}bootstrapModule(r,c=[]){const p=B_({},c);return S_(0,0,r).then(_=>this.bootstrapModuleFactory(_,p))}_moduleDoBootstrap(r){const c=r.injector.get(Qc);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(kh,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(_a))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function L_(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}function R_(t,i){let r;return r="noop"===t?new C_:("zone.js"===t?void 0:t)||new ws(i),r}function F_(t,i,r){try{const c=r();return pu(c)?c.catch(p=>{throw i.runOutsideAngular(()=>t.handleError(p)),p}):c}catch(c){throw i.runOutsideAngular(()=>t.handleError(c)),c}}function B_(t,i){return Array.isArray(i)?i.reduce(B_,t):{...t,...i}}let Qc=(()=>{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(()=>{ws.assertNotInAngularZone(),Dh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Q.next(!0))})})});const De=this._zone.onUnstable.subscribe(()=>{ws.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){ca&&this.warnIfDestroyed();const p=r instanceof gc;if(!this._injector.get(Kc).done){const Kt="Cannot bootstrap as there are still asynchronous initializers running."+(!p&&Fn(r)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new Z(405,ca&&Kt)}let O;O=p?r:this._injector.get(Pl).resolveComponentFactory(r),this.componentTypes.push(O.componentType);const Q=D_(O)?void 0:this._injector.get(pl),De=O.create(_a.NULL,[],c||O.selector,Q),et=De.location.nativeElement,Ct=De.injector.get(x_,null);return Ct?.registerApplication(et),De.onDestroy(()=>{this.detachView(De.hostView),Yc(this.components,De),Ct?.unregisterApplication(et)}),this._loadComponent(De),De}tick(){if(ca&&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){ca&&this.warnIfDestroyed();const c=r;this._views.push(c),c.attachToAppRef(this)}detachView(r){ca&&this.warnIfDestroyed();const c=r;Yc(this._views,c),c.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const c=this._injector.get(I_,[]);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 ca&&this.warnIfDestroyed(),this._destroyListeners.push(r),()=>Yc(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(){ca&&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(ws),_i(Da),_i(Al))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Yc(t,i){const r=t.indexOf(i);r>-1&&t.splice(r,1)}function cx(){return!1}function dx(){}function ux(t){const i=tc(t);if(!i)throw U_(t);return new jc(i)}function hx(t){const i=tc(t);if(!i)throw U_(t);return i}function U_(t){return new Error(`No module with ID ${t} loaded`)}let j_=(()=>{class t{}return t.__NG_ELEMENT_ID__=V_,t})();function V_(t){return function mx(t,i,r){if(pr(t)&&!r){const c=St(t.index,i);return new tl(c,c)}return 47&t.type?new tl(i[Ei],i):null}(Pi(),Ve(),16==(16&t))}class z_ extends j_{}class px extends z_{}class fx{constructor(i,r){this.name=i,this.callback=r}}function gx(t){return t.map(i=>i.nativeElement)}class Rh{constructor(i){this.nativeNode=i}get parent(){const i=this.nativeNode.parentNode;return i?new Kl(i):null}get injector(){return og(this.nativeNode)}get componentInstance(){const i=this.nativeNode;return i&&(uh(i)||ng(i))}get context(){return uh(this.nativeNode)||ig(this.nativeNode)}get listeners(){return ag(this.nativeNode).filter(i=>"dom"===i.type)}get references(){return function Xy(t){const i=h(t);if(null===i)return{};if(void 0===i.localRefs){const r=i.lView;if(null===r)return{};i.localRefs=function er(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=h(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 Kl extends Rh{constructor(i){super(i)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const i=h(this.nativeNode),r=i?i.lView:null;return null!==r?r[bi].data[i.nodeIndex].value:this.nativeNode.nodeName}get properties(){const i=h(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 et=ce[1];for(let Ct=1;Ct<ce.length-1;Ct++)et+=q(r[O+Ct-1])+ce[Ct+1];t[De]=et}else t[De]=r[O]}}(_,p,r,c),_}get attributes(){const i={},r=this.nativeElement;if(!r)return i;const c=h(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(gl(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(gl(r[p]));return c}query(i){return this.queryAll(i)[0]||null}queryAll(i){const r=[];return W_(this,i,r,!0),r}queryAllNodes(i){const r=[];return W_(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 W_(t,i,r,c){const p=h(t.nativeNode),_=p?p.lView:null;null!==_?La(_[bi].data[p.nodeIndex],_,i,r,c,t.nativeNode):Bh(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?Kn(i[r]):null}(t,i);if(11&t.type){if(Fh(O,r,c,p,_),pr(t)){const ce=St(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&&Bh(O,r,c,p);const Q=i[t.index];Cn(Q)&&H_(Q,r,c,p,_)}else if(4&t.type){const Q=i[t.index];Fh(Q[ln],r,c,p,_),H_(Q,r,c,p,_)}else if(16&t.type){const Q=i[Ei],De=Q[_n].projection[t.projection];if(Array.isArray(De))for(let et of De)Fh(et,r,c,p,_);else if(De){const et=Q[ji];La(et[bi].data[De.index],et,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 H_(t,i,r,c,p){for(let _=Dn;_<t.length;_++){const O=t[_],Q=O[bi].firstChild;Q&&La(Q,O,i,r,c,p)}}function Fh(t,i,r,c,p){if(p!==t){const _=gl(t);if(!_)return;(c&&_ instanceof Kl&&i(_)&&-1===r.indexOf(_)||!c&&i(_)&&-1===r.indexOf(_))&&r.push(_)}}function Bh(t,i,r,c){const p=t.childNodes,_=p.length;for(let O=0;O<_;O++){const Q=p[O],ce=gl(Q);ce&&((c&&ce instanceof Kl&&i(ce)&&-1===r.indexOf(ce)||!c&&i(ce)&&-1===r.indexOf(ce))&&r.push(ce),Bh(Q,i,r,c))}}const Uh="__ng_debug__";function gl(t){return t instanceof Node?(t.hasOwnProperty(Uh)||(t[Uh]=t.nodeType==Node.ELEMENT_NODE?new Kl(t):new Rh(t)),t[Uh]):null}function yx(t){return null}class $_{constructor(){}supports(i){return Ic(i)}create(i){return new K_(i)}}const Cx=(t,i)=>i;class K_{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<Z_(c,p,_)?r:c,Q=Z_(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,et=ce-p;if(De!=et){for(let Ft=0;Ft<De;Ft++){const Kt=Ft<_.length?_[Ft]:_[Ft]=0,li=Kt+Ft;et<=li&&li<De&&(_[Ft]=Kt+1)}_[O.previousIndex]=et-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=[]),!Ic(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 G_),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 G_),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 G_{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 Z_(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 Q_{constructor(){}supports(i){return i instanceof Map||qd(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||qd(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 Y_(){return new jh([new $_])}let jh=(()=>{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||Y_()),deps:[[t,new dr,new ki]]}}find(r){const c=this.factories.find(p=>p.supports(r));if(null!=c)return c;throw new Z(901,!1)}}return t.\u0275prov=W({token:t,providedIn:"root",factory:Y_}),t})();function X_(){return new Vh([new Q_])}let Vh=(()=>{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||X_()),deps:[[t,new dr,new ki]]}}find(r){const c=this.factories.find(p=>p.supports(r));if(c)return c;throw new Z(901,!1)}}return t.\u0275prov=W({token:t,providedIn:"root",factory:X_}),t})();const Ix=[new Q_],Dx=new jh([new $_]),Tx=new Vh(Ix),Px=O_(null,"core",[]);let Ox=(()=>{class t{constructor(r){}}return t.\u0275fac=function(r){return new(r||t)(_i(Qc))},t.\u0275mod=nr({type:t}),t.\u0275inj=He({}),t})();function Ax(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function kx(t){return Qr().compileDirectiveDeclaration(Yo,`ng:///${t.type.name}/\u0275fac.js`,t)}function Lx(t){lg(t.type,t.decorators,t.ctorParameters??null,t.propDecorators??null)}function Rx(t){return Qr().compileComponentDeclaration(Yo,`ng:///${t.type.name}/\u0275cmp.js`,t)}function Fx(t){return Qr(function Bx(t){switch(t){case Ar.Directive:return"directive";case Ar.Component:return"component";case Ar.Injectable:return"injectable";case Ar.Pipe:return"pipe";case Ar.NgModule:return"NgModule"}}(t.target)).compileFactoryDeclaration(Yo,`ng:///${t.type.name}/\u0275fac.js`,t)}function Nx(t){return Qr().compileInjectableDeclaration(Yo,`ng:///${t.type.name}/\u0275prov.js`,t)}function Ux(t){return Qr().compileInjectorDeclaration(Yo,`ng:///${t.type.name}/\u0275inj.js`,t)}function jx(t){return Qr().compileNgModuleDeclaration(Yo,`ng:///${t.type.name}/\u0275mod.js`,t)}function Vx(t){return Qr().compilePipeDeclaration(Yo,`ng:///${t.type.name}/\u0275pipe.js`,t)}function zx(t,i){const r=Yi(t),c=i.elementInjector||fc();return new il(r).create(c,i.projectableNodes,i.hostElement,i.environmentInjector)}function Wx(t){const i=Yi(t);if(!i)return null;const r=new il(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:()=>eo,F:()=>_n,Fj:()=>I,JJ:()=>R,JL:()=>be,JU:()=>b,Kr:()=>Kr,On:()=>je,Q7:()=>lo,QS:()=>bn,UX:()=>co,Wl:()=>x,YN:()=>Dr,Zs:()=>po,_:()=>Dn,_Y:()=>Ye,a5:()=>Xe,c5:()=>rt,kI:()=>K,nD:()=>mn,on:()=>yr,sg:()=>Vn,u:()=>sr,u5:()=>Vi,wV:()=>ci});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=B=>{},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)(()=>I),multi:!0},f=new n.InjectionToken("CompositionEventMode");let I=(()=>{class ve extends d{constructor(y,J,B){super(y,J),this._compositionMode=B,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 F(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 N(ve){return pe=>{if(F(pe.value)||F(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(F(pe.value)||F(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 Qe(pe)}static minLength(pe){return function Oe(ve){return pe=>F(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 Je(pe)}static nullValidator(pe){return null}static compose(pe){return Yt(pe)}static composeAsync(pe){return lt(pe)}}function xe(ve){return F(ve.value)?{required:!0}:null}function ne(ve){return!0===ve.value?null:{required:!0}}function Qe(ve){return F(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 Je(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(F(J.value))return null;const B=J.value;return pe.test(B)?null:{pattern:{requiredPattern:y,actualValue:B}}}}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 Vt(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 Yt(ve){if(!ve)return null;const pe=ve.filter(ot);return 0==pe.length?null:function(y){return Vt(zt(y,pe))}}function Jt(ve){return null!=ve?Yt(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)(Vt))}}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 W(ve){return ve._rawAsyncValidators}function z(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=z(pe);return z(ve).forEach(B=>{He(y,B)||y.push(B)}),y}function Be(ve,pe){return z(pe).filter(y=>!He(ve,y))}class pt{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 pt{get formDirective(){return null}get path(){return null}}class Xe extends pt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ht{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 ht{constructor(y){super(y)}}return ve.\u0275fac=function(y){return new(y||ve)(n.\u0275\u0275directiveInject(Xe,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 ht{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 Qt=!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,Qt?function di(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,Qt?function vt(ve,pe){return`Cannot find form control ${Xt(ve,pe)}`}(pe,y):"")}function xt(ve,pe,y){ve._forEachChild((J,B)=>{if(void 0===y[B])throw new n.\u0275RuntimeError(1002,Qt?function Ut(ve,pe){return`Must supply a value for form control ${Xt(ve,pe)}`}(pe,B):"")})}class Wt{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,B)=>J&&J._find(B),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 Wt{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 B=this.controls[J];B&&B.patchValue(pe[J],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(pe={},y={}){this._forEachChild((J,B)=>{J.reset(pe[B],{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,B)=>((J.enabled||this.disabled)&&(y[B]=J.value),y))}_reduceChildren(pe,y){let J=pe;return this._forEachChild((B,de)=>{J=y(J,B,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:()=>Se}),Se="always";function Ot(ve,pe){return[...pe.path,ve]}function Me(ve,pe,y=Se){Ki(ve,pe),pe.valueAccessor.writeValue(ve.value),(ve.disabled||"always"===y)&&pe.valueAccessor.setDisabledState?.(ve.disabled),function nr(ve,pe){pe.valueAccessor.registerOnChange(y=>{ve._pendingValue=y,ve._pendingChange=!0,ve._pendingDirty=!0,"change"===ve.updateOn&&wr(ve,pe)})}(ve,pe),function vr(ve,pe){const y=(J,B)=>{pe.valueAccessor.writeValue(J),B&&pe.viewToModelUpdate(J)};ve.registerOnChange(y),pe._registerOnDestroy(()=>{ve._unregisterOnChange(y)})}(ve,pe),function Lr(ve,pe){pe.valueAccessor.registerOnTouched(()=>{ve._pendingTouched=!0,"blur"===ve.updateOn&&ve._pendingChange&&wr(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 bt(ve,pe,y=!0){const J=()=>{};pe.valueAccessor&&(pe.valueAccessor.registerOnChange(J),pe.valueAccessor.registerOnTouched(J)),On(ve,pe),ve&&(pe._invokeOnDestroyCallbacks(),ve._registerOnCollectionChange(()=>{}))}function Pt(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=W(ve);null!==pe.asyncValidator?ve.setAsyncValidators(Fe(J,pe.asyncValidator)):"function"==typeof J&&ve.setAsyncValidators([J]);const B=()=>ve.updateValueAndValidity();Pt(pe._rawValidators,B),Pt(pe._rawAsyncValidators,B)}function On(ve,pe){let y=!1;if(null!==ve){if(null!==pe.validator){const B=Ae(ve);if(Array.isArray(B)&&B.length>0){const de=B.filter(Ke=>Ke!==pe.validator);de.length!==B.length&&(y=!0,ve.setValidators(de))}}if(null!==pe.asyncValidator){const B=W(ve);if(Array.isArray(B)&&B.length>0){const de=B.filter(Ke=>Ke!==pe.asyncValidator);de.length!==B.length&&(y=!0,ve.setAsyncValidators(de))}}}const J=()=>{};return Pt(pe._rawValidators,J),Pt(pe._rawAsyncValidators,J),y}function wr(ve,pe){ve._pendingDirty&&ve.markAsDirty(),ve.setValue(ve._pendingValue,{emitModelToViewChange:!1}),pe.viewToModelUpdate(ve._pendingValue),ve._pendingChange=!1}function ur(ve,pe){Ki(ve,pe)}function hr(ve,pe){if(!ve.hasOwnProperty("model"))return!1;const y=ve.model;return!!y.isFirstChange()||!Object.is(pe,y.currentValue)}function Bn(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,B;return Array.isArray(pe),pe.forEach(de=>{de.constructor===I?y=de:function br(ve){return Object.getPrototypeOf(ve.constructor)===u}(de)?J=de:B=de}),B||J||y||null}const Sn={provide:Pe,useExisting:(0,n.forwardRef)(()=>_n)},Hn=(()=>Promise.resolve())();let _n=(()=>{class ve extends Pe{constructor(y,J,B){super(),this.callSetDisabledState=B,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){Hn.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){Hn.then(()=>{const J=this._findContainer(y.path);J&&J.removeControl(y.name),this._directives.delete(y)})}addFormGroup(y){Hn.then(()=>{const J=this._findContainer(y.path),B=new wt({});ur(B,y),J.registerControl(y.name,B),B.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){Hn.then(()=>{const J=this._findContainer(y.path);J&&J.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,J){Hn.then(()=>{this.form.get(y.path).setValue(J)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,Bn(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([Sn]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();function tr(ve,pe){const y=ve.indexOf(pe);y>-1&&ve.splice(y,1)}function wi(ve){return"object"==typeof ve&&null!==ve&&2===Object.keys(ve).length&&"value"in ve&&"disabled"in ve}const qi=class extends Wt{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=wi(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){tr(this._onChange,pe)}registerOnDisabledChange(pe){this._onDisabledChange.push(pe)}_unregisterOnDisabledChange(pe){tr(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){wi(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:Xe,useExisting:(0,n.forwardRef)(()=>je)},he=(()=>Promise.resolve())();let je=(()=>{class ve extends Xe{constructor(y,J,B,de,Ke,Ve){super(),this._changeDetectorRef=Ke,this.callSetDisabledState=Ve,this.control=new qi,this._registered=!1,this.update=new n.EventEmitter,this._parent=y,this._setValidators(J),this._setAsyncValidators(B),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),hr(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,B=0!==J&&(0,n.\u0275coerceToBoolean)(J);he.then(()=>{B&&!this.control.disabled?this.control.disable():!B&&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})(),Ye=(()=>{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)(()=>ci),multi:!0};let ci=(()=>{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 Wi={provide:b,useExisting:(0,n.forwardRef)(()=>Dn),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})(),$n=(()=>{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})(),Dn=(()=>{class ve extends u{constructor(y,J,B,de){super(y,J),this._registry=B,this._injector=de,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,n.inject)(Le,{optional:!0})??Se}ngOnInit(){this._control=this._injector.get(Xe),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($n),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([Wi]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();const Cn=new n.InjectionToken("NgModelWithFormControlWarning"),Jr={provide:Pe,useExisting:(0,n.forwardRef)(()=>Vn)};let Vn=(()=>{class ve extends Pe{constructor(y,J,B){super(),this.callSetDisabledState=B,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&&(On(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){bt(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,Bn(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,B=this.form.get(y.path);J!==B&&(bt(J||null,y),(ve=>ve instanceof qi)(B)&&(Me(B,y,this.callSetDisabledState),y.control=B))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const J=this.form.get(y.path);ur(J,y),J.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const J=this.form.get(y.path);J&&function Yi(ve,pe){return On(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&&On(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([Jr]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),ve})();const Sr={provide:Xe,useExisting:(0,n.forwardRef)(()=>sr)};let sr=(()=>{class ve extends Xe{set isDisabled(y){}constructor(y,J,B,de,Ke){super(),this._ngModelWarningConfig=Ke,this._added=!1,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._parent=y,this._setValidators(J),this._setAsyncValidators(B),this.valueAccessor=bi(0,de)}ngOnChanges(y){this._added||this._setUpControl(),hr(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(Cn,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([Sr]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),ve})();const Br={provide:b,useExisting:(0,n.forwardRef)(()=>eo),multi:!0};function fr(ve,pe){return null==ve?`${pe}`:(pe&&"object"==typeof pe&&(pe="Object"),`${ve}: ${pe}`.slice(0,50))}let eo=(()=>{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 B=fr(this._getOptionId(y),y);this.setProperty("value",B)}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 qr(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([Br]),n.\u0275\u0275InheritDefinitionFeature]}),ve})(),Dr=(()=>{class ve{constructor(y,J,B){this._element=y,this._renderer=J,this._select=B,this._select&&(this.id=this._select._registerOption())}set ngValue(y){null!=this._select&&(this._select._optionMap.set(this.id,y),this._setElementValue(fr(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(eo,9))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),ve})();const Ao={provide:b,useExisting:(0,n.forwardRef)(()=>gr),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 gr=(()=>{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 B=y.map(de=>this._getOptionId(de));J=(de,Ke)=>{de._setSelected(B.indexOf(Ke.toString())>-1)}}else J=(B,de)=>{B._setSelected(!1)};this._optionMap.forEach(J)}registerOnChange(y){this.onChange=J=>{const B=[],de=J.selectedOptions;if(void 0!==de){const Ke=de;for(let Ve=0;Ve<Ke.length;Ve++){const qt=this._getOptionValue(Ke[Ve].value);B.push(qt)}}else{const Ke=J.options;for(let Ve=0;Ve<Ke.length;Ve++){const ft=Ke[Ve];if(ft.selected){const qt=this._getOptionValue(ft.value);B.push(qt)}}}this.value=B,y(B)}}_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 Co(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([Ao]),n.\u0275\u0275InheritDefinitionFeature]}),ve})(),Kr=(()=>{class ve{constructor(y,J,B){this._element=y,this._renderer=J,this._select=B,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(gr,9))},ve.\u0275dir=n.\u0275\u0275defineDirective({type:ve,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),ve})();let ao=(()=>{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 An={provide:le,useExisting:(0,n.forwardRef)(()=>lo),multi:!0},ar={provide:le,useExisting:(0,n.forwardRef)(()=>po),multi:!0};let lo=(()=>{class ve extends ao{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([An]),n.\u0275\u0275InheritDefinitionFeature]}),ve})(),po=(()=>{class ve extends lo{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([ar]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();const rr={provide:le,useExisting:(0,n.forwardRef)(()=>yr),multi:!0};let yr=(()=>{class ve extends ao{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=n.\u0275coerceToBoolean,this.createValidator=y=>Qe}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([rr]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();const Bo={provide:le,useExisting:(0,n.forwardRef)(()=>mn),multi:!0};let mn=(()=>{class ve extends ao{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=y=>function mo(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([Bo]),n.\u0275\u0275InheritDefinitionFeature]}),ve})();const Kn={provide:le,useExisting:(0,n.forwardRef)(()=>rt),multi:!0};let rt=(()=>{class ve extends ao{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=y=>y,this.createValidator=y=>Je(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([Kn]),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 tt extends Wt{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 B=this._adjustIndex(pe);B<0&&(B=0),this.controls[B]&&this.controls[B]._registerOnCollectionChange(()=>{}),this.controls.splice(B,1),y&&(this.controls.splice(B,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,B)=>{We(this,!1,B),this.at(B).setValue(J,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(pe,y={}){null!=pe&&(pe.forEach((J,B)=>{this.at(B)&&this.at(B).patchValue(J,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(pe=[],y={}){this._forEachChild((J,B)=>{J.reset(pe[B],{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 Si=(()=>{class ve{constructor(){this.useNonNullable=!1}get nonNullable(){const y=new ve;return y.useNonNullable=!0,y}group(y,J=null){const B=this._reduceControls(y);let de={};return xi(J)?de=J:null!==J&&(de.validators=J.validator,de.asyncValidators=J.asyncValidator),new wt(B,de)}record(y,J=null){const B=this._reduceControls(y);return new se(B,J)}control(y,J,B){let de={};return this.useNonNullable?(xi(J)?de=J:(de.validators=J,de.asyncValidators=B),new qi(y,{...de,nonNullable:!0})):new qi(y,J,B)}array(y,J,B){const de=y.map(Ke=>this._createControl(Ke));return new tt(de,J,B)}_reduceControls(y){const J={};return Object.keys(y).forEach(B=>{J[B]=this._createControl(y[B])}),J}_createControl(y){return y instanceof qi||y instanceof Wt?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})(),bn=(()=>{class ve extends Si{group(y,J=null){return super.group(y,J)}control(y,J,B){return super.control(y,J,B)}array(y,J,B){return super.array(y,J,B)}}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})(),Vi=(()=>{class ve{static withConfig(y){return{ngModule:ve,providers:[{provide:Le,useValue:y.callSetDisabledState??Se}]}}}return ve.\u0275fac=function(y){return new(y||ve)},ve.\u0275mod=n.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=n.\u0275\u0275defineInjector({imports:[_e]}),ve})(),co=(()=>{class ve{static withConfig(y){return{ngModule:ve,providers:[{provide:Cn,useValue:y.warnOnNgModelWithFormControl??"always"},{provide:Le,useValue:y.callSetDisabledState??Se}]}}}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:()=>Tt,si:()=>Bt,IR:()=>fe,MP:()=>Qt,CB:()=>_i,jH:()=>pi,pj:()=>Je,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 N(){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 Je(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})=>{pt(ue,`${re}-2-line`,!1),pt(ue,`${re}-3-line`,!1),pt(ue,`${re}-multi-line`,!1),2===Ee||3===Ee?pt(ue,`${re}-${Ee}-line`,!0):Ee>3&&pt(ue,`${re}-multi-line`,!0)})}function pt(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 Xe{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 ht=(0,d.i$)({passive:!0,capture:!0});class ee{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,ht)})}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,ht)))}}const k={enterDuration:225,exitDuration:150},be=(0,d.i$)({passive:!0,capture:!0}),qe=["mousedown","touchstart"],Ue=["mouseup","mouseleave","touchend","touchcancel"];class fe{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),Wt=ue-Re.left,wt=re-Re.top,Mt=We.enterDuration,It=document.createElement("div");It.classList.add("mat-ripple-element"),It.style.left=Wt-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,Se="none"===se.transitionProperty||"0s"===Le||"0s, 0s"===Le||0===Re.width&&0===Re.height,Ot=new Xe(this,It,Ee,Se);It.style.transform="scale3d(1, 1, 1)",Ot.state=0,Ee.persistent||(this._mostRecentTransientRipple=Ot);let Me=null;return!Se&&(Mt||We.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const bt=()=>this._finishRippleTransition(Ot),Pt=()=>this._destroyRipple(Ot);It.addEventListener("transitionend",bt),It.addEventListener("transitioncancel",Pt),Me={onTransitionEnd:bt,onTransitionCancel:Pt}}),this._activeRipples.set(Ot,Me),(Se||!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,qe.forEach(Ee=>{fe._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&&(qe.forEach(re=>fe._eventManager.removeHandler(re,ue,this)),this._pointerUpEventsRegistered&&Ue.forEach(re=>ue.removeEventListener(re,this,be)))}}fe._eventManager=new ee;const gt=new n.InjectionToken("mat-ripple-global-options");let Tt=(()=>{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 fe(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 Qt=(()=>{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,Xe,ht){this.accordion=Pe,this._changeDetectorRef=Xe,this._expansionDispatcher=ht,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=ht.listen((ee,k)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===k&&this.id!==ee&&(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),I=a(3238),j=a(2687),F=a(5778),Z=a(1059),le=a(2198),q=a(2986),X=a(9521),K=a(8896),N=a(6787),me=a(7340);const xe=["body"];function ne(Be,pt){}const Qe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Oe=["mat-expansion-panel-header","*","mat-action-row"];function nt(Be,pt){if(1&Be&&n.\u0275\u0275element(0,"span",2),2&Be){const Pe=n.\u0275\u0275nextContext();n.\u0275\u0275property("@indicatorRotate",Pe._getExpandedState())}}const Je=[[["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)",Vt={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,Xe){this._template=Pe,this._expansionPanel=Xe}}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 Yt=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,Xe,ht,ee,k,R,be){super(Pe,Xe,ht),this._viewContainerRef=ee,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,F.x)((qe,Ue)=>qe.fromState===Ue.fromState&&qe.toState===Ue.toState)).subscribe(qe=>{"void"!==qe.fromState&&("expanded"===qe.toState?this.afterExpand.emit():"collapsed"===qe.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,Xe=this._body.nativeElement;return Pe===Xe||Xe.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(Yt,8))},Be.\u0275cmp=n.\u0275\u0275defineComponent({type:Be,selectors:[["mat-expansion-panel"]],contentQueries:function(Pe,Xe,ht){if(1&Pe&&n.\u0275\u0275contentQuery(ht,ti,5),2&Pe){let ee;n.\u0275\u0275queryRefresh(ee=n.\u0275\u0275loadQuery())&&(Xe._lazyContent=ee.first)}},viewQuery:function(Pe,Xe){if(1&Pe&&n.\u0275\u0275viewQuery(xe,5),2&Pe){let ht;n.\u0275\u0275queryRefresh(ht=n.\u0275\u0275loadQuery())&&(Xe._body=ht.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Pe,Xe){2&Pe&&n.\u0275\u0275classProp("mat-expanded",Xe.expanded)("_mat-animation-noopable","NoopAnimations"===Xe._animationMode)("mat-expansion-panel-spacing",Xe._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,Xe){1&Pe&&(n.\u0275\u0275projectionDef(Qe),n.\u0275\u0275projection(0),n.\u0275\u0275elementStart(1,"div",0,1),n.\u0275\u0275listener("@bodyExpansion.done",function(ee){return Xe._bodyAnimationDone.next(ee)}),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",Xe._getExpandedState())("id",Xe.id),n.\u0275\u0275attribute("aria-labelledby",Xe._headerId),n.\u0275\u0275advance(4),n.\u0275\u0275property("cdkPortalOutlet",Xe._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:[Vt.bodyExpansion]},changeDetection:0}),Be})();class _t{}const Fe=(0,I.sb)(_t);let Ae=(()=>{class Be extends Fe{constructor(Pe,Xe,ht,ee,k,R,be){super(),this.panel=Pe,this._element=Xe,this._focusMonitor=ht,this._changeDetectorRef=ee,this._animationMode=R,this._parentChangeSubscription=v.w.EMPTY;const qe=Pe.accordion?Pe.accordion._stateChanges.pipe((0,le.h)(Ue=>!(!Ue.hideToggle&&!Ue.togglePosition))):K.E;this.tabIndex=parseInt(be||"")||0,this._parentChangeSubscription=(0,N.T)(Pe.opened,Pe.closed,qe,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(()=>ht.focusVia(Xe,"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,Xe){Pe?this._focusMonitor.focusVia(this._element,Pe,Xe):this._element.nativeElement.focus(Xe)}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(Yt,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,Xe){1&Pe&&n.\u0275\u0275listener("click",function(){return Xe._toggle()})("keydown",function(ee){return Xe._keydown(ee)}),2&Pe&&(n.\u0275\u0275attribute("id",Xe.panel._headerId)("tabindex",Xe.tabIndex)("aria-controls",Xe._getPanelId())("aria-expanded",Xe._isExpanded())("aria-disabled",Xe.panel.disabled),n.\u0275\u0275styleProp("height",Xe._getHeaderHeight()),n.\u0275\u0275classProp("mat-expanded",Xe._isExpanded())("mat-expansion-toggle-indicator-after","after"===Xe._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Xe._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Xe._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,Xe){1&Pe&&(n.\u0275\u0275projectionDef(Je),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",!Xe._showToggle()),n.\u0275\u0275advance(4),n.\u0275\u0275property("ngIf",Xe._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:[Vt.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(Xe=>Xe.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 pt;return function(Xe){return(pt||(pt=n.\u0275\u0275getInheritedFactory(Be)))(Xe||Be)}}(),Be.\u0275dir=n.\u0275\u0275defineDirective({type:Be,selectors:[["mat-accordion"]],contentQueries:function(Pe,Xe,ht){if(1&Pe&&n.\u0275\u0275contentQuery(ht,Ae,5),2&Pe){let ee;n.\u0275\u0275queryRefresh(ee=n.\u0275\u0275loadQuery())&&(Xe._headers=ee)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Pe,Xe){2&Pe&&n.\u0275\u0275classProp("mat-accordion-multi",Xe.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,I.BQ,w,g.eL]}),Be})()},9549:(G,P,a)=>{"use strict";a.d(P,{Eo:()=>z,G_:()=>pt});var n=a(4650);a(7340);let z=(()=>{class Ue{}return Ue.\u0275fac=function(ke){return new(ke||Ue)},Ue.\u0275dir=n.\u0275\u0275defineDirective({type:Ue}),Ue})();const pt=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),I=a(2986),j=a(529),F=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,W,z){this.url=Ae,this.svgText=W,this.options=z}}let Qe=(()=>{class Fe{constructor(W,z,He,Te){this._httpClient=W,this._sanitizer=z,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(W,z,He){return this.addSvgIconInNamespace("",W,z,He)}addSvgIconLiteral(W,z,He){return this.addSvgIconLiteralInNamespace("",W,z,He)}addSvgIconInNamespace(W,z,He,Te){return this._addSvgIconConfig(W,z,new ne(He,null,Te))}addSvgIconResolver(W){return this._resolvers.push(W),this}addSvgIconLiteralInNamespace(W,z,He,Te){const Be=this._sanitizer.sanitize(n.SecurityContext.HTML,He);if(!Be)throw xe(He);const pt=X(Be);return this._addSvgIconConfig(W,z,new ne("",pt,Te))}addSvgIconSet(W,z){return this.addSvgIconSetInNamespace("",W,z)}addSvgIconSetLiteral(W,z){return this.addSvgIconSetLiteralInNamespace("",W,z)}addSvgIconSetInNamespace(W,z,He){return this._addSvgIconSetConfig(W,new ne(z,null,He))}addSvgIconSetLiteralInNamespace(W,z,He){const Te=this._sanitizer.sanitize(n.SecurityContext.HTML,z);if(!Te)throw xe(z);const Be=X(Te);return this._addSvgIconSetConfig(W,new ne("",Be,He))}registerFontClassAlias(W,z=W){return this._fontCssClassesByAlias.set(W,z),this}classNameForFontAlias(W){return this._fontCssClassesByAlias.get(W)||W}setDefaultFontSetClass(...W){return this._defaultFontSetClass=W,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(W){const z=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,W);if(!z)throw me(W);const He=this._cachedIconsByUrl.get(z);return He?(0,v.of)(Je(He)):this._loadSvgIconFromConfig(new ne(W,null)).pipe((0,C.b)(Te=>this._cachedIconsByUrl.set(z,Te)),(0,x.U)(Te=>Je(Te)))}getNamedSvgIcon(W,z=""){const He=ct(z,W);let Te=this._svgIconConfigs.get(He);if(Te)return this._getSvgFromConfig(Te);if(Te=this._getIconConfigFromResolvers(z,W),Te)return this._svgIconConfigs.set(He,Te),this._getSvgFromConfig(Te);const Be=this._iconSetConfigs.get(z);return Be?this._getSvgFromIconSetConfigs(W,Be):(0,d._)(K(He))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(W){return W.svgText?(0,v.of)(Je(this._svgElementFromConfig(W))):this._loadSvgIconFromConfig(W).pipe((0,x.U)(z=>Je(z)))}_getSvgFromIconSetConfigs(W,z){const He=this._extractIconWithNameFromAnySet(W,z);if(He)return(0,v.of)(He);const Te=z.filter(Be=>!Be.svgText).map(Be=>this._loadSvgIconSetFromConfig(Be).pipe((0,w.K)(pt=>{const Xe=`Loading icon set URL: ${this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,Be.url)} failed: ${pt.message}`;return this._errorHandler.handleError(new Error(Xe)),(0,v.of)(null)})));return(0,u.D)(Te).pipe((0,x.U)(()=>{const Be=this._extractIconWithNameFromAnySet(W,z);if(!Be)throw K(W);return Be}))}_extractIconWithNameFromAnySet(W,z){for(let He=z.length-1;He>=0;He--){const Te=z[He];if(Te.svgText&&Te.svgText.toString().indexOf(W)>-1){const Be=this._svgElementFromConfig(Te),pt=this._extractSvgIconFromSet(Be,W,Te.options);if(pt)return pt}}return null}_loadSvgIconFromConfig(W){return this._fetchIcon(W).pipe((0,C.b)(z=>W.svgText=z),(0,x.U)(()=>this._svgElementFromConfig(W)))}_loadSvgIconSetFromConfig(W){return W.svgText?(0,v.of)(null):this._fetchIcon(W).pipe((0,C.b)(z=>W.svgText=z))}_extractSvgIconFromSet(W,z,He){const Te=W.querySelector(`[id="${z}"]`);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 pt=this._svgElementFromString(X("<svg></svg>"));return pt.appendChild(Be),this._setSvgAttributes(pt,He)}_svgElementFromString(W){const z=this._document.createElement("DIV");z.innerHTML=W;const He=z.querySelector("svg");if(!He)throw Error("<svg> tag not found");return He}_toSvgElement(W){const z=this._svgElementFromString(X("<svg></svg>")),He=W.attributes;for(let Te=0;Te<He.length;Te++){const{name:Be,value:pt}=He[Te];"id"!==Be&&z.setAttribute(Be,pt)}for(let Te=0;Te<W.childNodes.length;Te++)W.childNodes[Te].nodeType===this._document.ELEMENT_NODE&&z.appendChild(W.childNodes[Te].cloneNode(!0));return z}_setSvgAttributes(W,z){return W.setAttribute("fit",""),W.setAttribute("height","100%"),W.setAttribute("width","100%"),W.setAttribute("preserveAspectRatio","xMidYMid meet"),W.setAttribute("focusable","false"),z&&z.viewBox&&W.setAttribute("viewBox",z.viewBox),W}_fetchIcon(W){const{url:z,options:He}=W,Te=He?.withCredentials??!1;if(!this._httpClient)throw function N(){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==z)throw Error(`Cannot fetch icon from URL "${z}".`);const Be=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,z);if(!Be)throw me(z);const pt=this._inProgressUrlFetches.get(Be);if(pt)return pt;const Pe=this._httpClient.get(Be,{responseType:"text",withCredentials:Te}).pipe((0,x.U)(Xe=>X(Xe)),(0,g.x)(()=>this._inProgressUrlFetches.delete(Be)),(0,f.B)());return this._inProgressUrlFetches.set(Be,Pe),Pe}_addSvgIconConfig(W,z,He){return this._svgIconConfigs.set(ct(W,z),He),this}_addSvgIconSetConfig(W,z){const He=this._iconSetConfigs.get(W);return He?He.push(z):this._iconSetConfigs.set(W,[z]),this}_svgElementFromConfig(W){if(!W.svgElement){const z=this._svgElementFromString(W.svgText);this._setSvgAttributes(z,W.options),W.svgElement=z}return W.svgElement}_getIconConfigFromResolvers(W,z){for(let He=0;He<this._resolvers.length;He++){const Te=this._resolvers[He](z,W);if(Te)return ot(Te)?new ne(Te.url,null,Te.options):new ne(Te,null)}}}return Fe.\u0275fac=function(W){return new(W||Fe)(n.\u0275\u0275inject(j.eN,8),n.\u0275\u0275inject(F.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 Je(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}}),Vt=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"],Yt=mi.map(Fe=>`[${Fe}]`).join(", "),Jt=/^url\(['"]?#(.*?)['"]?\)$/;let lt=(()=>{class Fe extends dt{get inline(){return this._inline}set inline(W){this._inline=(0,o.Ig)(W)}get svgIcon(){return this._svgIcon}set svgIcon(W){W!==this._svgIcon&&(W?this._updateSvgIcon(W):this._svgIcon&&this._clearSvgElement(),this._svgIcon=W)}get fontSet(){return this._fontSet}set fontSet(W){const z=this._cleanupFontValue(W);z!==this._fontSet&&(this._fontSet=z,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(W){const z=this._cleanupFontValue(W);z!==this._fontIcon&&(this._fontIcon=z,this._updateFontIconClasses())}constructor(W,z,He,Te,Be,pt){super(W),this._iconRegistry=z,this._location=Te,this._errorHandler=Be,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=b.w.EMPTY,pt&&(pt.color&&(this.color=this.defaultColor=pt.color),pt.fontSet&&(this.fontSet=pt.fontSet)),He||W.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(W){if(!W)return["",""];const z=W.split(":");switch(z.length){case 1:return["",z[0]];case 2:return z;default:throw Error(`Invalid icon name: "${W}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const W=this._elementsWithExternalReferences;if(W&&W.size){const z=this._location.getPathname();z!==this._previousPath&&(this._previousPath=z,this._prependPathToReferences(z))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(W){this._clearSvgElement();const z=this._location.getPathname();this._previousPath=z,this._cacheChildrenWithExternalReferences(W),this._prependPathToReferences(z),this._elementRef.nativeElement.appendChild(W)}_clearSvgElement(){const W=this._elementRef.nativeElement;let z=W.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();z--;){const He=W.childNodes[z];(1!==He.nodeType||"svg"===He.nodeName.toLowerCase())&&He.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const W=this._elementRef.nativeElement,z=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(He=>He.length>0);this._previousFontSetClass.forEach(He=>W.classList.remove(He)),z.forEach(He=>W.classList.add(He)),this._previousFontSetClass=z,this.fontIcon!==this._previousFontIconClass&&!z.includes("mat-ligature-font")&&(this._previousFontIconClass&&W.classList.remove(this._previousFontIconClass),this.fontIcon&&W.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(W){return"string"==typeof W?W.trim().split(" ")[0]:W}_prependPathToReferences(W){const z=this._elementsWithExternalReferences;z&&z.forEach((He,Te)=>{He.forEach(Be=>{Te.setAttribute(Be.name,`url('${W}#${Be.value}')`)})})}_cacheChildrenWithExternalReferences(W){const z=W.querySelectorAll(Yt),He=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Te=0;Te<z.length;Te++)mi.forEach(Be=>{const pt=z[Te],Pe=pt.getAttribute(Be),Xe=Pe?Pe.match(Jt):null;if(Xe){let ht=He.get(pt);ht||(ht=[],He.set(pt,ht)),ht.push({name:Be,value:Xe[1]})}})}_updateSvgIcon(W){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),W){const[z,He]=this._splitIconName(W);z&&(this._svgNamespace=z),He&&(this._svgName=He),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(He,z).pipe((0,I.q)(1)).subscribe(Te=>this._setSvgElement(Te),Te=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${z}:${He}! ${Te.message}`))})}}}return Fe.\u0275fac=function(W){return new(W||Fe)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Qe),n.\u0275\u0275injectAttribute("aria-hidden"),n.\u0275\u0275directiveInject(zt),n.\u0275\u0275directiveInject(n.ErrorHandler),n.\u0275\u0275directiveInject(Vt,8))},Fe.\u0275cmp=n.\u0275\u0275defineComponent({type:Fe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(W,z){2&W&&(n.\u0275\u0275attribute("data-mat-icon-type",z._usingFontIcon()?"font":"svg")("data-mat-icon-name",z._svgName||z.fontIcon)("data-mat-icon-namespace",z._svgNamespace||z.fontSet)("fontIcon",z._usingFontIcon()?z.fontIcon:null),n.\u0275\u0275classProp("mat-icon-inline",z.inline)("mat-icon-no-color","primary"!==z.color&&"accent"!==z.color&&"warn"!==z.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(W,z){1&W&&(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(W){return new(W||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,F,Z){super(j),this._focusMonitor=F,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,F){j?this._focusMonitor.focusVia(this._getHostElement(),j,F):this._getHostElement().focus(F)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...j){return j.some(F=>this._getHostElement().hasAttribute(F))}}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,F){if(1&j&&n.\u0275\u0275viewQuery(e.wG,5),2&j){let Z;n.\u0275\u0275queryRefresh(Z=n.\u0275\u0275loadQuery())&&(F.ripple=Z.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(j,F){2&j&&(n.\u0275\u0275attribute("disabled",F.disabled||null),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===F._animationMode)("mat-button-disabled",F.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,F){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",F.isRoundButton||F.isIconButton),n.\u0275\u0275property("matRippleDisabled",F._isRippleDisabled())("matRippleCentered",F.isIconButton)("matRippleTrigger",F._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:()=>I,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(Qe){return new(Qe||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(Qe){return new(Qe||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(Qe){return new(Qe||xe)},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),xe})(),I=(()=>{class xe{}return xe.\u0275fac=function(Qe){return new(Qe||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(Qe){return new(Qe||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(Qe){this._animationMode=Qe}}return xe.\u0275fac=function(Qe){return new(Qe||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(Qe,Oe){2&Qe&&n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Oe._animationMode)},exportAs:["matCard"],ngContentSelectors:l,decls:2,vars:0,template:function(Qe,Oe){1&Qe&&(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(Qe){return new(Qe||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(Qe,Oe){1&Qe&&(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(Qe){return new(Qe||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 I=x(),j=(0,l.sb)((0,l.pj)((0,l.Kr)((0,l.Id)(class{constructor(Je){this._elementRef=Je}}))));let F=(()=>{class Je 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,Vt,zt,ti,mi,Yt){super(dt),this._changeDetectorRef=Vt,this._ngZone=zt,this._animationMode=mi,this._options=Yt,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||I,this.color=this.defaultColor=this._options.color||I.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,Vt=this._getAnimationTargetElement();if(dt!==ot&&Vt&&(this._currentAnimationClass&&Vt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(dt,ot),this._currentCheckState=ot,this._currentAnimationClass.length>0)){Vt.classList.add(this._currentAnimationClass);const zt=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Vt.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 Je.\u0275fac=function(ot){e.\u0275\u0275invalidFactory()},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,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 Vt;e.\u0275\u0275queryRefresh(Vt=e.\u0275\u0275loadQuery())&&(dt._inputElement=Vt.first),e.\u0275\u0275queryRefresh(Vt=e.\u0275\u0275loadQuery())&&(dt._labelElement=Vt.first),e.\u0275\u0275queryRefresh(Vt=e.\u0275\u0275loadQuery())&&(dt.ripple=Vt.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]}),Je})(),X=(()=>{class Je{}return Je.\u0275fac=function(ot){return new(ot||Je)},Je.\u0275mod=e.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=e.\u0275\u0275defineInjector({}),Je})();var N=a(9643);const me=function(Je){return{enterDuration:Je}},xe=["*"];class ne{}const Qe={provide:o.JU,useExisting:(0,e.forwardRef)(()=>Oe),multi:!0};let Oe=(()=>{class Je extends F{constructor(ot,dt,Vt,zt,ti,mi,Yt){super("mat-checkbox-",ot,dt,zt,ti,mi,Yt),this._focusMonitor=Vt,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 Je.\u0275fac=function(ot){return new(ot||Je)(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))},Je.\u0275cmp=e.\u0275\u0275defineComponent({type:Je,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([Qe]),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 Vt=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",Vt)("matRippleDisabled",dt._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",e.\u0275\u0275pureFunction1(18,me,"NoopAnimations"===dt._animationMode?0:150))}},dependencies:[l.wG,N.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}),Je})(),nt=(()=>{class Je{}return Je.\u0275fac=function(ot){return new(ot||Je)},Je.\u0275mod=e.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=e.\u0275\u0275defineInjector({imports:[l.si,l.BQ,N.Q8,X,l.BQ,X]}),Je})()},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 I=n.\u0275\u0275nextContext();n.\u0275\u0275property("state",I.selected?"checked":"unchecked")("disabled",I.disabled)}}function u(g,f){if(1&g&&(n.\u0275\u0275elementStart(0,"span",6),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&g){const I=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("(",I.group.label,")")}}const b=["*"];let x=(()=>{class g extends o.MP{constructor(I,j,F,Z){super(I,j,F,Z)}}return g.\u0275fac=function(I){return new(I||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(I,j){1&I&&n.\u0275\u0275listener("click",function(){return j._selectViaInteraction()})("keydown",function(Z){return j._handleKeydown(Z)}),2&I&&(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(I,j){1&I&&(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&I&&(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(I){return new(I||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:()=>Qt,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 I{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 F=(()=>{class Ee extends l.en{constructor(We,xt,Wt,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 Se=this._portalOutlet.attachDomPortal(Le);return this._contentAttached(),Se},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Wt}_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 Wt=()=>{We.removeEventListener("blur",Wt),We.removeEventListener("mousedown",Wt),We.removeAttribute("tabindex")};We.addEventListener("blur",Wt),We.addEventListener("mousedown",Wt)})),We.focus(xt)}_focusByCssSelector(We,xt){let Wt=this._elementRef.nativeElement.querySelector(We);Wt&&this._forceFocus(Wt,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 Wt=(0,o.ht)(),wt=this._elementRef.nativeElement;(!Wt||Wt===this._document.body||Wt===wt||wt.contains(Wt))&&(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(I),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 Wt;d.\u0275\u0275queryRefresh(Wt=d.\u0275\u0275loadQuery())&&(xt._portalOutlet=Wt.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"),N={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,Wt,wt,Mt,It){this._overlay=We,this._injector=xt,this._defaultOptions=Wt,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 I,...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,Wt){const wt=Wt.injector||Wt.viewContainerRef?.injector,Mt=[{provide:I,useValue:Wt},{provide:Z,useValue:xt},{provide:e.Iu,useValue:We}];let It;Wt.container?"function"==typeof Wt.container?It=Wt.container:(It=Wt.container.type,Mt.push(...Wt.container.providers(Wt))):It=F;const se=new l.C5(It,Wt.viewContainerRef,d.Injector.create({parent:wt||this._injector,providers:Mt}),Wt.componentFactoryResolver);return We.attach(se).instance}_attachDialogContent(We,xt,Wt,wt){if(We instanceof d.TemplateRef){const Mt=this._createInjector(wt,xt,Wt,void 0);let It={$implicit:wt.data,dialogRef:xt};wt.templateContext&&(It={...It,..."function"==typeof wt.templateContext?wt.templateContext():wt.templateContext}),Wt.attachTemplatePortal(new l.UE(We,null,It,Mt))}else{const Mt=this._createInjector(wt,xt,Wt,this._injector),It=Wt.attachComponentPortal(new l.C5(We,wt.viewContainerRef,Mt,wt.componentFactoryResolver));xt.componentInstance=It.instance}}_createInjector(We,xt,Wt,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,Wt)):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 Wt=this.openDialogs.indexOf(We);Wt>-1&&(this.openDialogs.splice(Wt,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 Wt=xt.length-1;Wt>-1;Wt--){const wt=xt[Wt];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 Qe=(()=>{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,N],imports:[e.U8,l.eL,n.rt,l.eL]}),Ee})();var Oe=a(3238),nt=a(6787),Je=a(2198),ct=a(2986),ot=a(7340);class Vt{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 F{constructor(We,xt,Wt,wt,Mt,It,se,we){super(We,xt,Wt,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(Vt),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 W{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,Je.h)(Wt=>"opened"===Wt.state),(0,ct.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),xt._animationStateChanged.pipe((0,Je.h)(Wt=>"closed"===Wt.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,Je.h)(Wt=>Wt.keyCode===u.hY&&!this.disableClose&&!(0,u.Vb)(Wt)))).subscribe(Wt=>{this.disableClose||(Wt.preventDefault(),function z(Ee,Re,We){Ee._closeInteractionType=Re,Ee.close(We)}(this,"keydown"===Wt.type?"keyboard":"mouse"))})}close(Re){this._result=Re,this._containerInstance._animationStateChanged.pipe((0,Je.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 ht=0,ee=(()=>{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,Wt,wt,Mt,It,se,we,Le,Se){this._overlay=We,this._defaultOptions=Wt,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=Vt,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 Wt;(xt={...this._defaultOptions||new Vt,...xt}).id=xt.id||`${this._idPrefix}${ht++}`,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:I,useValue:xt}]},templateContext:()=>({dialogRef:Wt}),providers:(Mt,It,se)=>(Wt=new this._dialogRefConstructor(Mt,xt,se),Wt.updatePosition(xt?.position),[{provide:this._dialogContainerType,useValue:se},{provide:this._dialogDataToken,useValue:It.data},{provide:this._dialogRefConstructor,useValue:Wt}])});return Wt.componentInstance=wt.componentInstance,this.openDialogs.push(Wt),this.afterOpened.next(Wt),Wt.afterClosed().subscribe(()=>{const Mt=this.openDialogs.indexOf(Wt);Mt>-1&&(this.openDialogs.splice(Mt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Wt}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 Tt={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})]),Tt),(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})]),Tt)])};function st(Ee,Re){}const Nt_params_enterAnimationDuration="150ms",Nt_params_exitAnimationDuration="75ms";class at extends Vt{constructor(){super(...arguments),this.enterAnimationDuration=Tt.params.enterAnimationDuration,this.exitAnimationDuration=Tt.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,Wt,wt,Mt,It,se,we,Le){super(We,xt,Wt,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 W{}const ai=new d.InjectionToken("MatDialogData"),Xt=new d.InjectionToken("mat-dialog-default-options"),di=new d.InjectionToken("mat-dialog-scroll-strategy"),Ut={provide:di,deps:[e.aV],useFactory:function vt(Ee){return()=>Ee.scrollStrategies.block()}};let Qt=(()=>{class Ee extends ee{constructor(We,xt,Wt,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(di),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:[Qt,Ut],imports:[Qe,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 Yt{}return Yt.\u0275fac=function(lt){return new(lt||Yt)},Yt.\u0275mod=o.\u0275\u0275defineNgModule({type:Yt}),Yt.\u0275inj=o.\u0275\u0275defineInjector({imports:[e.CommonModule,l.BQ,n.Q8,l.BQ]}),Yt})()},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,N){this._defaultErrorStateMatcher=q,this._parentForm=X,this._parentFormGroup=K,this.ngControl=N,this.stateChanges=new b.xQ}});let I=(()=>{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,N,me,xe,ne,Qe,Oe,nt,Je,ct){super(Qe,xe,ne,me),this._elementRef=K,this._platform=N,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(Vt=>(0,o.qK)().has(Vt)),this._iOSKeyupListener=Vt=>{const zt=Vt.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,N.IOS&&Je.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 N=this._elementRef.nativeElement;this._previousPlaceholder=K,K?N.setAttribute("placeholder",K):N.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,N=K.options[0];return this.focused||K.multiple||!this.empty||!!(K.selectedIndex>-1&&N&&N.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,N){1&K&&n.\u0275\u0275listener("focus",function(){return N._focusChanged(!0)})("blur",function(){return N._focusChanged(!1)})("input",function(){return N._onInput()}),2&K&&(n.\u0275\u0275hostProperty("id",N.id)("disabled",N.disabled)("required",N.required),n.\u0275\u0275attribute("name",N.name||null)("readonly",N.readonly&&!N._isNativeSelect||null)("aria-invalid",N.empty&&N.required?null:N.errorState)("aria-required",N.required)("id",N.id),n.\u0275\u0275classProp("mat-input-server",N._isServer)("mat-mdc-form-field-textarea-control",N._isInFormField&&N._isTextarea)("mat-mdc-form-field-input-control",N._isInFormField)("mdc-text-field__input",N._isInFormField)("mat-mdc-native-select-inline",N._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 F=a(8455);let Z=(()=>{class q extends I{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(N){return(X||(X=n.\u0275\u0275getInheritedFactory(q)))(N||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,N){2&K&&(n.\u0275\u0275attribute("data-placeholder",N.placeholder),n.\u0275\u0275classProp("mat-input-server",N._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",N._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,F.wp,d.BQ,l.Ky,F.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)),I=(a(9643),a(2687),a(5017),a(9521),a(4006),a(7625));const Xe=new e.InjectionToken("MatList"),qe=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{})),Qt=(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:Xe,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 Qt{constructor(se,we,Le,Se){super(),this._element=se,this._isInteractiveList=!1,this._destroyed=new b.xQ,this._disabled=!1,this._isInteractiveList=!!(Le||Se&&"action-list"===Se._getListType()),this._list=Le||Se;const Ot=this._getHostElement();"button"===Ot.nodeName.toLowerCase()&&!Ot.hasAttribute("type")&&Ot.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,I.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(qe,8),e.\u0275\u0275directiveInject(Xe,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 Se;e.\u0275\u0275queryRefresh(Se=e.\u0275\u0275loadQuery())&&(we._avatar=Se.first),e.\u0275\u0275queryRefresh(Se=e.\u0275\u0275loadQuery())&&(we._icon=Se.first),e.\u0275\u0275queryRefresh(Se=e.\u0275\u0275loadQuery())&&(we._lines=Se)}},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 Je(pt){return()=>pt.scrollStrategies.reposition()}};var mi=a(6895),Yt=a(3238),Jt=a(3668);let Be=(()=>{class pt{}return pt.\u0275fac=function(Xe){return new(Xe||pt)},pt.\u0275mod=n.\u0275\u0275defineNgModule({type:pt}),pt.\u0275inj=n.\u0275\u0275defineInjector({providers:[ct],imports:[mi.CommonModule,Yt.BQ,Yt.si,o.U8,Jt.ZD,Yt.BQ]}),pt})()},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),I=a(4006),j=a(8929),F=a(8514),Z=a(6787),le=a(1059),q=a(7545),X=a(2986),K=a(2198),N=a(4850),me=a(5778),xe=a(7625),ne=a(7340);const Qe=["trigger"],Oe=["panel"];let lt=0;const _t=new o.InjectionToken("mat-select-scroll-strategy"),Ae=new o.InjectionToken("MAT_SELECT_CONFIG"),W={provide:_t,deps:[n.aV],useFactory:function Fe(Xt){return()=>Xt.scrollStrategies.reposition()}},z=new o.InjectionToken("MatSelectTrigger"),Te=(0,l.Kr)((0,l.sb)((0,l.Id)((0,l.FD)(class{constructor(Xt,di,vt,Ut,Qt){this._elementRef=Xt,this._defaultErrorStateMatcher=di,this._parentForm=vt,this._parentFormGroup=Ut,this.ngControl=Qt,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(I.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,Qt,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=Qt,this._dir=pi,this._parentFormField=ue,this._liveAnnouncer=We,this._defaultOptions=xt,this._panelOpen=!1,this._compareWith=(Wt,wt)=>Wt===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,F.P)(()=>{const Wt=this.options;return Wt?Wt.changes.pipe((0,le.O)(Wt),(0,q.w)(()=>(0,Z.T)(...Wt.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)(Wt=>Wt),(0,N.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,K.h)(Wt=>!Wt),(0,N.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 Qt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=vt,vt?Qt.setAttribute("aria-labelledby",vt):Qt.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,Qt=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)&&Qt)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,Qt=vt.keyCode,Ci=Qt===f.JH||Qt===f.LH,_i=Ut.isTyping();if(Ci&&vt.altKey)vt.preventDefault(),this.close();else if(_i||Qt!==f.K5&&Qt!==f.L_||!Ut.activeItem||(0,f.Vb)(vt))if(!_i&&this._multiple&&Qt===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(Qt=>{if(this._selectionModel.isSelected(Qt))return!1;try{return null!=Qt.value&&this._compareWith(Qt.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 Qt=this._selectionModel.isSelected(vt);null!=vt.value||this._multiple?(Qt!==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)),Qt!==this._selectionModel.isSelected(vt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const vt=this.options.toArray();this._selectionModel.sort((Ut,Qt)=>this.sortComparator?this.sortComparator(Ut,Qt,vt):vt.indexOf(Ut)-vt.indexOf(Qt)),this.stateChanges.next()}}_propagateChanges(vt){let Ut=null;Ut=this.multiple?this.selected.map(Qt=>Qt.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(I.F,8),o.\u0275\u0275directiveInject(I.sg,8),o.\u0275\u0275directiveInject(d.G_,8),o.\u0275\u0275directiveInject(I.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(Qe,5),o.\u0275\u0275viewQuery(Oe,5),o.\u0275\u0275viewQuery(n.pI,5)),2&vt){let Qt;o.\u0275\u0275queryRefresh(Qt=o.\u0275\u0275loadQuery())&&(Ut.trigger=Qt.first),o.\u0275\u0275queryRefresh(Qt=o.\u0275\u0275loadQuery())&&(Ut.panel=Qt.first),o.\u0275\u0275queryRefresh(Qt=o.\u0275\u0275loadQuery())&&(Ut._overlayDir=Qt.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 ht(Xt,di){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 ee(Xt,di){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,di){1&Xt&&o.\u0275\u0275projection(0,0,["*ngSwitchCase","true"])}function R(Xt,di){if(1&Xt&&(o.\u0275\u0275elementStart(0,"span",9),o.\u0275\u0275template(1,ee,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,di){if(1&Xt){const vt=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",13)(1,"div",14,15),o.\u0275\u0275listener("@transformPanel.done",function(Qt){o.\u0275\u0275restoreView(vt);const Ci=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Ci._panelDoneAnimatingStream.next(Qt.toState))})("keydown",function(Qt){o.\u0275\u0275restoreView(vt);const Ci=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Ci._handleKeydown(Qt))}),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 qe=[[["mat-select-trigger"]],"*"],Ue=["mat-select-trigger","*"],fe={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(di,vt){this.source=di,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,Qt){const Ci=this._getItemHeight();return Math.min(Math.max(0,Ci*vt-Ut+Ci/2),Qt)}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),Qt=this._getItemHeight();this.panel.nativeElement.scrollTop=0===vt&&1===Ut?0:(0,l.jH)((vt+Ut)*Qt,Qt,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(),Qt=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}Qt||(_i*=-1);const pi=0-(vt.left+_i-(Qt?Ci:0)),Bi=vt.right+_i-Ut.width+(Qt?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,Qt){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===Qt?(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(),Qt=this._viewportRuler.getViewportSize(),Ci=this._triggerRect.top-8,_i=Qt.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 Qt=Math.round(vt-Ut);this._scrollTop-=Qt,this._offsetY-=Qt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(vt,Ut,Qt){const Ci=Math.round(vt-Ut);if(this._scrollTop+=Ci,this._offsetY+=Ci,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Qt)return this._scrollTop=Qt,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const vt=this._getItemHeight(),Ut=this._getItemCount(),Qt=Math.min(Ut*vt,256),_i=Ut*vt-Qt;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=Qt/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 di;return function(Ut){return(di||(di=o.\u0275\u0275getInheritedFactory(Xt)))(Ut||Xt)}}(),Xt.\u0275cmp=o.\u0275\u0275defineComponent({type:Xt,selectors:[["mat-select"]],contentQueries:function(vt,Ut,Qt){if(1&vt&&(o.\u0275\u0275contentQuery(Qt,z,5),o.\u0275\u0275contentQuery(Qt,v.CK,5),o.\u0275\u0275contentQuery(Qt,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(qe),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,ht,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 Qt=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",Qt)("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:[fe.transformPanelWrap,fe.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:[W],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 Qe=0,Oe=(()=>{class _t extends e.en{constructor(Ae,W,z,He,Te){super(),this._ngZone=Ae,this._elementRef=W,this._changeDetectorRef=z,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-"+Qe++,this.attachDomPortal=Be=>{this._assertNotAttached();const pt=this._portalOutlet.attachDomPortal(Be);return this._afterPortalAttached(),pt},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 W=this._portalOutlet.attachComponentPortal(Ae);return this._afterPortalAttached(),W}attachTemplatePortal(Ae){this._assertNotAttached();const W=this._portalOutlet.attachTemplatePortal(Ae);return this._afterPortalAttached(),W}onAnimationEnd(Ae){const{fromState:W,toState:z}=Ae;if(("void"===z&&"void"!==W||"hidden"===z)&&this._completeExit(),"visible"===z){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,W=this.snackBarConfig.panelClass;W&&(Array.isArray(W)?W.forEach(z=>Ae.classList.add(z)):Ae.classList.add(W)),this._exposeToModals()}_exposeToModals(){const Ae=this._liveElementId,W=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let z=0;z<W.length;z++){const He=W[z],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 W=Ae.getAttribute("aria-owns");if(W){const z=W.replace(this._liveElementId,"").trim();z.length>0?Ae.setAttribute("aria-owns",z):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]"),W=this._elementRef.nativeElement.querySelector("[aria-live]");if(Ae&&W){let z=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Ae.contains(document.activeElement)&&(z=document.activeElement),Ae.removeAttribute("aria-hidden"),W.appendChild(Ae),z?.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,W){if(1&Ae&&l.\u0275\u0275viewQuery(e.Pl,7),2&Ae){let z;l.\u0275\u0275queryRefresh(z=l.\u0275\u0275loadQuery())&&(W._portalOutlet=z.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,W,z,He,Te,Be){this._overlay=Ae,this._live=W,this._injector=z,this._breakpointObserver=He,this._parentSnackBar=Te,this._defaultConfig=Be,this._snackBarRefAtThisLevel=null}openFromComponent(Ae,W){return this._attach(Ae,W)}openFromTemplate(Ae,W){return this._attach(Ae,W)}open(Ae,W="",z){const He={...this._defaultConfig,...z};return He.data={message:Ae,action:W},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,W){const He=l.Injector.create({parent:W&&W.viewContainerRef&&W.viewContainerRef.injector||this._injector,providers:[{provide:X,useValue:W}]}),Te=new e.C5(this.snackBarContainerComponent,W.viewContainerRef,He),Be=Ae.attach(Te);return Be.instance.snackBarConfig=W,Be.instance}_attach(Ae,W){const z={...new X,...this._defaultConfig,...W},He=this._createOverlay(z),Te=this._attachSnackBarContainer(He,z),Be=new le(Te,He);if(Ae instanceof l.TemplateRef){const pt=new e.UE(Ae,null,{$implicit:z.data,snackBarRef:Be});Be.instance=Te.attachTemplatePortal(pt)}else{const pt=this._createInjector(z,Be),Pe=new e.C5(Ae,void 0,pt),Xe=Te.attachComponentPortal(Pe);Be.instance=Xe.instance}return this._breakpointObserver.observe(f.u3.HandsetPortrait).pipe((0,w.R)(He.detachments())).subscribe(pt=>{He.overlayElement.classList.toggle(this.handsetCssClass,pt.matches)}),z.announcementMessage&&Te._onAnnounce.subscribe(()=>{this._live.announce(z.announcementMessage,z.politeness)}),this._animateSnackBar(Be,z),this._openedSnackBarRef=Be,this._openedSnackBarRef}_animateSnackBar(Ae,W){Ae.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Ae&&(this._openedSnackBarRef=null),W.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Ae.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Ae.containerInstance.enter(),W.duration&&W.duration>0&&Ae.afterOpened().subscribe(()=>Ae._dismissAfter(W.duration))}_createOverlay(Ae){const W=new n.X_;W.direction=Ae.direction;let z=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?z.left("0"):Be?z.right("0"):z.centerHorizontally(),"top"===Ae.verticalPosition?z.top("0"):z.bottom("0"),W.positionStrategy=z,this._overlay.create(W)}_createInjector(Ae,W){return l.Injector.create({parent:Ae&&Ae.viewContainerRef&&Ae.viewContainerRef.injector||this._injector,providers:[{provide:le,useValue:W},{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 z=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(z.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,W){this.snackBarRef=Ae,this.data=W}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,W){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(W.data.message),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",W.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})(),Yt=(()=>{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(W){return(Fe||(Fe=l.\u0275\u0275getInheritedFactory(_t)))(W||_t)}}(),_t.\u0275cmp=l.\u0275\u0275defineComponent({type:_t,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Ae,W){1&Ae&&l.\u0275\u0275syntheticHostListener("@state.done",function(He){return W.onAnimationEnd(He)}),2&Ae&&l.\u0275\u0275syntheticHostProperty("@state",W._animationState)},features:[l.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Ae,W){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",W._live)("role",W._role)("id",W._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,W,z,He,Te,Be){super(Ae,W,z,He,Te,Be),this.simpleSnackBarComponent=mi,this.snackBarContainerComponent=Yt,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:()=>Wt,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,Se){return we.addEventListener(Le,Se,!1),()=>{we.removeEventListener(Le,Se,!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 Se=(0,n.\u0275getDOM)(),Ot=we.querySelectorAll(`style[ng-transition="${se}"]`);for(let Me=0;Me<Ot.length;Me++)Se.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 I=new e.InjectionToken("EventManagerPlugins");let j=(()=>{class se{constructor(Le,Se){this._zone=Se,this._eventNameToPlugin=new Map,Le.forEach(Ot=>{Ot.manager=this}),this._plugins=Le.slice().reverse()}addEventListener(Le,Se,Ot){return this._findPluginFor(Se).addEventListener(Le,Se,Ot)}addGlobalEventListener(Le,Se,Ot){return this._findPluginFor(Se).addGlobalEventListener(Le,Se,Ot)}getZone(){return this._zone}_findPluginFor(Le){const Se=this._eventNameToPlugin.get(Le);if(Se)return Se;const Ot=this._plugins;for(let Me=0;Me<Ot.length;Me++){const bt=Ot[Me];if(bt.supports(Le))return this._eventNameToPlugin.set(Le,bt),bt}throw new Error(`No event manager plugin found for event ${Le}`)}}return se.\u0275fac=function(Le){return new(Le||se)(e.\u0275\u0275inject(I),e.\u0275\u0275inject(e.NgZone))},se.\u0275prov=e.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac}),se})();class F{constructor(we){this._doc=we}addGlobalEventListener(we,Le,Se){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,Se)}}let Z=(()=>{class se{constructor(){this.usageCount=new Map}addStyles(Le){for(const Se of Le)1===this.changeUsageCount(Se,1)&&this.onStyleAdded(Se)}removeStyles(Le){for(const Se of Le)0===this.changeUsageCount(Se,-1)&&this.onStyleRemoved(Se)}onStyleRemoved(Le){}onStyleAdded(Le){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(Le,Se){const Ot=this.usageCount;let Me=Ot.get(Le)??0;return Me+=Se,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 Se of this.hostNodes)this.addStyleToHost(Se,Le)}onStyleRemoved(Le){const Se=this.styleRef;Se.get(Le)?.forEach(Me=>Me.remove()),Se.delete(Le)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(Le){this.hostNodes.add(Le);for(const Se of this.getAllStyles())this.addStyleToHost(Le,Se)}removeHost(Le){this.hostNodes.delete(Le)}addStyleToHost(Le,Se){const Ot=this.doc.createElement("style");Ot.textContent=Se,Le.appendChild(Ot);const Me=this.styleRef.get(Se);Me?Me.push(Ot):this.styleRef.set(Se,[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,N="%COMP%",me=`_nghost-${N}`,xe=`_ngcontent-${N}`,Qe=new e.InjectionToken("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Je(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,Se,Ot,Me){this.eventManager=Le,this.sharedStylesHost=Se,this.appId=Ot,this.removeStylesOnCompDestory=Me,this.rendererByCompId=new Map,this.defaultRenderer=new dt(Le)}createRenderer(Le,Se){if(!Le||!Se)return this.defaultRenderer;const Ot=this.getOrCreateRenderer(Le,Se);return Ot instanceof Jt?Ot.applyToHost(Le):Ot instanceof Yt&&Ot.applyStyles(),Ot}getOrCreateRenderer(Le,Se){const Ot=this.rendererByCompId;let Me=Ot.get(Se.id);if(!Me){const bt=this.eventManager,Pt=this.sharedStylesHost,ii=this.removeStylesOnCompDestory;switch(Se.encapsulation){case e.ViewEncapsulation.Emulated:Me=new Jt(bt,Pt,Se,this.appId,ii);break;case e.ViewEncapsulation.ShadowDom:return new mi(bt,Pt,Le,Se);default:Me=new Yt(bt,Pt,Se,ii)}Me.onDestroy=()=>Ot.delete(Se.id),Ot.set(Se.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(Qe))},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,Se){we&&(ti(we)?we.content:we).insertBefore(Le,Se)}removeChild(we,Le){we&&we.removeChild(Le)}selectRootElement(we,Le){let Se="string"==typeof we?document.querySelector(we):we;if(!Se)throw new Error(`The selector "${we}" did not match any elements`);return Le||(Se.textContent=""),Se}parentNode(we){return we.parentNode}nextSibling(we){return we.nextSibling}setAttribute(we,Le,Se,Ot){if(Ot){Le=Ot+":"+Le;const Me=q[Ot];Me?we.setAttributeNS(Me,Le,Se):we.setAttribute(Le,Se)}else we.setAttribute(Le,Se)}removeAttribute(we,Le,Se){if(Se){const Ot=q[Se];Ot?we.removeAttributeNS(Ot,Le):we.removeAttribute(`${Se}:${Le}`)}else we.removeAttribute(Le)}addClass(we,Le){we.classList.add(Le)}removeClass(we,Le){we.classList.remove(Le)}setStyle(we,Le,Se,Ot){Ot&(e.RendererStyleFlags2.DashCase|e.RendererStyleFlags2.Important)?we.style.setProperty(Le,Se,Ot&e.RendererStyleFlags2.Important?"important":""):we.style[Le]=Se}removeStyle(we,Le,Se){Se&e.RendererStyleFlags2.DashCase?we.style.removeProperty(Le):we.style[Le]=""}setProperty(we,Le,Se){we[Le]=Se}setValue(we,Le){we.nodeValue=Le}listen(we,Le,Se){return"string"==typeof we?this.eventManager.addGlobalEventListener(we,Le,ct(Se)):this.eventManager.addEventListener(we,Le,ct(Se))}}function ti(se){return"TEMPLATE"===se.tagName&&void 0!==se.content}class mi extends dt{constructor(we,Le,Se,Ot){super(we),this.sharedStylesHost=Le,this.hostEl=Se,this.shadowRoot=Se.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Me=Je(Ot.id,Ot.styles);for(const bt of Me){const Pt=document.createElement("style");Pt.textContent=bt,this.shadowRoot.appendChild(Pt)}}nodeOrShadowRoot(we){return we===this.hostEl?this.shadowRoot:we}appendChild(we,Le){return super.appendChild(this.nodeOrShadowRoot(we),Le)}insertBefore(we,Le,Se){return super.insertBefore(this.nodeOrShadowRoot(we),Le,Se)}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 Yt extends dt{constructor(we,Le,Se,Ot,Me=Se.id){super(we),this.sharedStylesHost=Le,this.removeStylesOnCompDestory=Ot,this.rendererUsageCount=0,this.styles=Je(Me,Se.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 Yt{constructor(we,Le,Se,Ot,Me){const bt=Ot+"-"+Se.id;super(we,Le,Se,Me,bt),this.contentAttr=function Oe(se){return xe.replace(X,se)}(bt),this.hostAttr=function nt(se){return me.replace(X,se)}(bt)}applyToHost(we){this.applyStyles(),this.setAttribute(we,this.hostAttr,"")}createElement(we,Le){const Se=super.createElement(we,Le);return super.setAttribute(Se,this.contentAttr,""),Se}}let lt=(()=>{class se extends F{constructor(Le){super(Le)}supports(Le){return!0}addEventListener(Le,Se,Ot){return Le.addEventListener(Se,Ot,!1),()=>this.removeEventListener(Le,Se,Ot)}removeEventListener(Le,Se,Ot){return Le.removeEventListener(Se,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 W=(()=>{class se extends F{constructor(Le){super(Le)}supports(Le){return null!=se.parseEventName(Le)}addEventListener(Le,Se,Ot){const Me=se.parseEventName(Se),bt=se.eventCallback(Me.fullKey,Ot,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.\u0275getDOM)().onAndCancel(Le,Me.domEventName,bt))}static parseEventName(Le){const Se=Le.toLowerCase().split("."),Ot=Se.shift();if(0===Se.length||"keydown"!==Ot&&"keyup"!==Ot)return null;const Me=se._normalizeKey(Se.pop());let bt="",Pt=Se.indexOf("code");if(Pt>-1&&(Se.splice(Pt,1),bt="code."),_t.forEach(Ki=>{const On=Se.indexOf(Ki);On>-1&&(Se.splice(On,1),bt+=Ki+".")}),bt+=Me,0!=Se.length||0===Me.length)return null;const ii={};return ii.domEventName=Ot,ii.fullKey=bt,ii}static matchEventFullKeyCode(Le,Se){let Ot=Fe[Le.key]||Le.key,Me="";return Se.indexOf("code.")>-1&&(Ot=Le.code,Me="code."),!(null==Ot||!Ot)&&(Ot=Ot.toLowerCase()," "===Ot?Ot="space":"."===Ot&&(Ot="dot"),_t.forEach(bt=>{bt!==Ot&&(0,Ae[bt])(Le)&&(Me+=bt+".")}),Me+=Ot,Me===Se)}static eventCallback(Le,Se,Ot){return Me=>{se.matchEventFullKeyCode(Me,Le)&&Ot.runGuarded(()=>Se(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 ht(){return(0,e.\u0275setDocument)(document),document},deps:[]}]),R=new e.InjectionToken(""),be=[{provide:e.\u0275TESTABILITY_GETTER,useClass:class g{addToWindow(we){e.\u0275global.getAngularTestability=(Se,Ot=!0)=>{const Me=we.findTestabilityInTree(Se,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(Se=>{const Ot=e.\u0275global.getAllAngularTestabilities();let Me=Ot.length,bt=!1;const Pt=function(ii){bt=bt||ii,Me--,0==Me&&Se(bt)};Ot.forEach(function(ii){ii.whenStable(Pt)})})}findTestabilityInTree(we,Le,Se){return null==Le?null:we.getTestability(Le)??(Se?(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]}],qe=[{provide:e.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:e.ErrorHandler,useFactory:function Xe(){return new e.ErrorHandler},deps:[]},{provide:I,useClass:lt,multi:!0,deps:[n.DOCUMENT,e.NgZone,e.PLATFORM_ID]},{provide:I,useClass:W,multi:!0,deps:[n.DOCUMENT]},{provide:ot,useClass:ot,deps:[j,le,e.APP_ID,Qe]},{provide:e.RendererFactory2,useExisting:ot},{provide:Z,useExisting:le},{provide:le,useClass:le,deps:[n.DOCUMENT]},{provide:j,useClass:j,deps:[I,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:[...qe,...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 Se=null;return Se=Le?new Le:function Tt(){return new Bt((0,e.\u0275\u0275inject)(n.DOCUMENT))}(),Se},providedIn:"root"}),se})();typeof window<"u"&&window;let Wt=(()=>{class se{}return se.\u0275fac=function(Le){return new(Le||se)},se.\u0275prov=e.\u0275\u0275defineInjectable({token:se,factory:function(Le){let Se=null;return Se=Le?new(Le||se):e.\u0275\u0275inject(Mt),Se},providedIn:"root"}),se})(),Mt=(()=>{class se extends Wt{constructor(Le){super(),this._doc=Le}sanitize(Le,Se){if(null==Se)return null;switch(Le){case e.SecurityContext.NONE:return Se;case e.SecurityContext.HTML:return(0,e.\u0275allowSanitizationBypassAndThrow)(Se,"HTML")?(0,e.\u0275unwrapSafeValue)(Se):(0,e.\u0275_sanitizeHtml)(this._doc,String(Se)).toString();case e.SecurityContext.STYLE:return(0,e.\u0275allowSanitizationBypassAndThrow)(Se,"Style")?(0,e.\u0275unwrapSafeValue)(Se):Se;case e.SecurityContext.SCRIPT:if((0,e.\u0275allowSanitizationBypassAndThrow)(Se,"Script"))return(0,e.\u0275unwrapSafeValue)(Se);throw new Error("unsafe value used in a script context");case e.SecurityContext.URL:return(0,e.\u0275allowSanitizationBypassAndThrow)(Se,"URL")?(0,e.\u0275unwrapSafeValue)(Se):(0,e.\u0275_sanitizeUrl)(String(Se));case e.SecurityContext.RESOURCE_URL:if((0,e.\u0275allowSanitizationBypassAndThrow)(Se,"ResourceURL"))return(0,e.\u0275unwrapSafeValue)(Se);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 Se=null;return Se=Le?new Le:function wt(se){return new Mt(se.get(n.DOCUMENT))}(e.\u0275\u0275inject(e.Injector)),Se},providedIn:"root"}),se})()},8729:(G,P,a)=>{"use strict";a.d(P,{gz:()=>Dr,wm:()=>Ps,F0:()=>Vr,rH:()=>qo,Bz:()=>ia,lC:()=>Yn});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),I=a(1762),j=a(8929),F=a(6895),Z=a(4850),le=a(7545),q=a(2986),X=a(1059),K=a(2198),N=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 Qe(V,this.defaultValue))}}class Qe 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 Je(V,this.errorFactory))}}class Je 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,Ge)=>A(Ce,Ge,ie)):ot.y,(0,q.q)(1),T?xe(V):Oe(()=>new d))}var Vt=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 Yt(A,V,T))}}class Yt{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 Ge=0;Ge<ie;Ge++){const it=T++%ie;V.next(Ce[it])}}V.complete()}}function W(A,V){const T=arguments.length>=2;return ie=>ie.pipe(A?(0,K.h)((Ce,Ge)=>A(Ce,Ge,ie)):ot.y,_t(1),T?xe(V):Oe(()=>new d))}var z=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 pt=a(537),Pe=a(4327),Xe=a(9146),ht=a(1481);const ee="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 qe(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 Ge=0;Ge<ie.length;Ge++){const it=ie[Ge],jt=A[Ge];if(it.startsWith(":"))Ce[it.substring(1)]=jt;else if(it!==jt.path)return null}return{consumed:A.slice(0,ie.length),posParams:Ce}}function fe(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 Ge=0;Ge<T.length;Ge++)if(Ce=T[Ge],!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,Ge)=>ie[Ge]===Ce)}return A===V}function gt(A){return Array.prototype.concat.apply([],A)}function Tt(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 di(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]||!di(A.children[ie],V.children[ie],T))return!1;return!0},subset:Ut},Rt={exact:function Xt(A,V){return fe(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 Qt(A,V,V.segments,T)}function Qt(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),Ge=T.slice(A.segments.length);return!!(ue(A.segments,Ce)&&Ci(A.segments,Ce,ie)&&A.children[ee])&&Qt(A.children[ee],V,Ge,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 Se(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 Lr(V);return new _i(T.parseRootSegment(),T.parseQueryParams(),T.parseFragment())}serialize(V){const T=`/${Wt(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=>Se(V)).join("/")}function Wt(A,V){if(!A.hasChildren())return xt(A);if(V){const T=A.children[ee]?Wt(A.children[ee],!1):"",ie=[];return st(A.children,(Ce,Ge)=>{Ge!==ee&&ie.push(`${Ge}:${Wt(Ce,!1)}`)}),ie.length>0?`${T}(${ie.join("//")})`:T}{const T=function re(A,V){let T=[];return st(A.children,(ie,Ce)=>{Ce===ee&&(T=T.concat(V(ie,Ce)))}),st(A.children,(ie,Ce)=>{Ce!==ee&&(T=T.concat(V(ie,Ce)))}),T}(A,(ie,Ce)=>Ce===ee?[Wt(A.children[ee],!1)]:[`${Ce}:${Wt(ie,!1)}`]);return 1===Object.keys(A.children).length&&null!=A.children[ee]?`${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 Se(A){return`${se(A.path)}${function Ot(A){return Object.keys(A).map(V=>`;${se(V)}=${se(A[V])}`).join("")}(A.parameters)}`}const bt=/^[^\/()?;=#]+/;function Pt(A){const V=A.match(bt);return V?V[0]:""}const ii=/^[^=?&#]+/,On=/^[^&#]+/;class Lr{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[ee]=new pi(V,T)),ie}parseSegment(){const V=Pt(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=Pt(this.remaining);if(!T)return;this.capture(T);let ie="";if(this.consumeOptional("=")){const Ce=Pt(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 it=function nr(A){const V=A.match(On);return V?V[0]:""}(this.remaining);it&&(ie=it,this.capture(ie))}const Ce=Le(T),Ge=Le(ie);if(V.hasOwnProperty(Ce)){let it=V[Ce];Array.isArray(it)||(it=[it],V[Ce]=it),it.push(Ge)}else V[Ce]=Ge}parseParens(V){const T={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const ie=Pt(this.remaining),Ce=this.remaining[ie.length];if("/"!==Ce&&")"!==Ce&&";"!==Ce)throw new n.\u0275RuntimeError(4010,at);let Ge;ie.indexOf(":")>-1?(Ge=ie.slice(0,ie.indexOf(":")),this.capture(Ge),this.capture(":")):V&&(Ge=ee);const it=this.parseChildren();T[Ge]=1===Object.keys(it).length?it[ee]:new pi([],it),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 wr(A){return A.segments.length>0?new pi([],{[ee]:A}):A}function vr(A){const V={};for(const ie of Object.keys(A.children)){const Ge=vr(A.children[ie]);(Ge.segments.length>0||Ge.hasChildren())&&(V[ie]=Ge)}return function ur(A){if(1===A.numberOfChildren&&A.children[ee]){const V=A.children[ee];return new pi(A.segments.concat(V.segments),V.children)}return A}(new pi(A.segments,V))}function Yi(A){return A instanceof _i}const wn=!1;function Xr(A,V,T,ie,Ce){if(0===T.length)return Bn(V.root,V.root,V.root,ie,Ce);const Ge=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,Ge,it)=>{if("object"==typeof Ge&&null!=Ge){if(Ge.outlets){const jt={};return st(Ge.outlets,(si,Di)=>{jt[Di]="string"==typeof si?si.split("/"):si}),[...Ce,{outlets:jt}]}if(Ge.segmentPath)return[...Ce,Ge.segmentPath]}return"string"!=typeof Ge?[...Ce,Ge]:0===it?(Ge.split("/").forEach((jt,si)=>{0==si&&"."===jt||(0==si&&""===jt?T=!0:".."===jt?V++:""!=jt&&Ce.push(jt))}),Ce):[...Ce,Ge]},[]);return new gi(T,V,ie)}(T);return Ge.toRoot()?Bn(V.root,V.root,new pi([],{}),ie,Ce):function it(si){const Di=function _n(A,V,T,ie){if(A.isAbsolute)return new Sn(V.root,!0,0);if(-1===ie)return new Sn(T,T===V.root,0);return function tr(A,V,T){let ie=A,Ce=V,Ge=T;for(;Ge>Ce;){if(Ge-=Ce,ie=ie.parent,!ie)throw new n.\u0275RuntimeError(4005,wn&&"Invalid number of '../'");Ce=ie.segments.length}return new Sn(ie,!1,Ce-Ge)}(T,ie+(hr(A.commands[0])?0:1),A.numberOfDoubleDots)}(Ge,V,A.snapshot?._urlSegment,si),ki=Di.processChildren?Zn(Di.segmentGroup,Di.index,Ge.commands):qi(Di.segmentGroup,Di.index,Ge.commands);return Bn(V.root,Di.segmentGroup,ki,ie,Ce)}(A.snapshot?._lastPathIndex)}function hr(A){return"object"==typeof A&&null!=A&&!A.outlets&&!A.segmentPath}function br(A){return"object"==typeof A&&null!=A&&A.outlets}function Bn(A,V,T,ie,Ce){let it,Ge={};ie&&st(ie,(si,Di)=>{Ge[Di]=Array.isArray(si)?si.map(ki=>`${ki}`):`${si}`}),it=A===V?T:bi(A,V,T);const jt=wr(vr(it));return new _i(jt,Ge,Ce)}function bi(A,V,T){const ie={};return st(A.children,(Ce,Ge)=>{ie[Ge]=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&&hr(ie[0]))throw new n.\u0275RuntimeError(4003,wn&&"Root segment cannot have matrix parameters");const Ce=ie.find(br);if(Ce&&Ce!==Tt(ie))throw new n.\u0275RuntimeError(4004,wn&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Sn{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 Zn(A,V,T);const ie=function zi(A,V,T){let ie=0,Ce=V;const Ge={match:!1,pathIndex:0,commandIndex:0};for(;Ce<A.segments.length;){if(ie>=T.length)return Ge;const it=A.segments[Ce],jt=T[ie];if(br(jt))break;const si=`${jt}`,Di=ie<T.length-1?T[ie+1]:null;if(Ce>0&&void 0===si)break;if(si&&Di&&"object"==typeof Di&&void 0===Di.outlets){if(!Qn(si,Di,it))return Ge;ie+=2}else{if(!Qn(si,{},it))return Ge;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 Ge=new pi(A.segments.slice(0,ie.pathIndex),{});return Ge.children[ee]=new pi(A.segments.slice(ie.pathIndex),A.children),Zn(Ge,0,Ce)}return ie.match&&0===Ce.length?new pi(A.segments,{}):ie.match&&!A.hasChildren()?Nn(A,V,T):ie.match?Zn(A,0,Ce):Nn(A,V,T)}function Zn(A,V,T){if(0===T.length)return new pi(A.segments,{});{const ie=function wi(A){return br(A[0])?A[0].outlets:{[ee]:A}}(T),Ce={};if(!ie[ee]&&A.children[ee]&&1===A.numberOfChildren&&0===A.children[ee].segments.length){const Ge=Zn(A.children[ee],V,T);return new pi(A.segments,Ge.children)}return st(ie,(Ge,it)=>{"string"==typeof Ge&&(Ge=[Ge]),null!==Ge&&(Ce[it]=qi(A.children[it],V,Ge))}),st(A.children,(Ge,it)=>{void 0===ie[it]&&(Ce[it]=Ge)}),new pi(A.segments,Ce)}}function Nn(A,V,T){const ie=A.segments.slice(0,V);let Ce=0;for(;Ce<T.length;){const Ge=T[Ce];if(br(Ge)){const si=Rr(Ge.outlets);return new pi(ie,si)}if(0===Ce&&hr(T[0])){ie.push(new Bi(A.segments[V].path,Un(T[0]))),Ce++;continue}const it=br(Ge)?Ge.outlets[ee]:`${Ge}`,jt=Ce<T.length-1?T[Ce+1]:null;it&&jt&&hr(jt)?(ie.push(new Bi(it,Un(jt))),Ce+=2):(ie.push(new Bi(it,{})),Ce++)}return new pi(ie,{})}function Rr(A){const V={};return st(A,(T,ie)=>{"string"==typeof T&&(T=[T]),null!==T&&(V[ie]=Nn(new pi([],{}),0,T))}),V}function Un(A){const V={};return st(A,(T,ie)=>V[ie]=`${T}`),V}function Qn(A,V,T){return A==T.path&&fe(V,T.parameters)}const Ei="imperative";class jn{constructor(V,T){this.id=V,this.url=T}}class mt extends jn{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 jn{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 jn{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 jn{constructor(V,T,ie,Ce){super(V,T),this.reason=ie,this.code=Ce,this.type=16}}class Ye extends jn{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 jn{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 ci extends jn{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 Wi extends jn{constructor(V,T,ie,Ce,Ge){super(V,T),this.urlAfterRedirects=ie,this.state=Ce,this.shouldActivate=Ge,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ln extends jn{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 jn{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 $n{constructor(V){this.route=V,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Dn{constructor(V){this.route=V,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ro{constructor(V){this.snapshot=V,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ri{constructor(V){this.snapshot=V,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cn{constructor(V){this.snapshot=V,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hn{constructor(V){this.snapshot=V,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pr{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 so=(()=>{class A{createUrlTree(T,ie,Ce,Ge,it,jt){return Xr(T||ie.root,Ce,Ge,it,jt)}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac}),A})(),$r=(()=>{class A{}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:function(V){return so.\u0275fac(V)},providedIn:"root"}),A})();class Ir{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=zn(V,this._root);return T?T.children.map(ie=>ie.value):[]}firstChild(V){const T=zn(V,this._root);return T&&T.children.length>0?T.children[0].value:null}siblings(V){const T=Sr(V,this._root);return T.length<2?[]:T[T.length-2].children.map(Ce=>Ce.value).filter(Ce=>Ce!==V)}pathFromRoot(V){return Sr(V,this._root).map(T=>T.value)}}function zn(A,V){if(A===V.value)return V;for(const T of V.children){const ie=zn(A,T);if(ie)return ie}return null}function Sr(A,V){if(A===V.value)return[V];for(const T of V.children){const ie=Sr(A,T);if(ie.length)return ie.unshift(V),ie}return[]}class sr{constructor(V,T){this.value=V,this.children=T}toString(){return`TreeNode(${this.value})`}}function Br(A){const V={};return A&&A.children.forEach(T=>V[T.value.outlet]=T),V}class fr extends Ir{constructor(V,T){super(V),this.snapshot=T,gr(this,V)}toString(){return this.snapshot.toString()}}function qr(A,V){const T=function eo(A,V){const it=new Co([],{},{},"",{},ee,V,null,A.root,-1,{});return new ir("",new sr(it,[]))}(A,V),ie=new l.X([new Bi("",{})]),Ce=new l.X({}),Ge=new l.X({}),it=new l.X({}),jt=new l.X(""),si=new Dr(ie,Ce,it,jt,Ge,ee,V,T.root);return si.snapshot=T.root,new fr(new sr(si,[]),T)}class Dr{constructor(V,T,ie,Ce,Ge,it,jt,si){this.url=V,this.params=T,this.queryParams=ie,this.fragment=Ce,this.data=Ge,this.outlet=it,this.component=jt,this.title=this.data?.pipe((0,Z.U)(Di=>Di[k]))??(0,o.of)(void 0),this._futureSnapshot=si}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 Ao(A,V="emptyOnly"){const T=A.pathFromRoot;let ie=0;if("always"!==V)for(ie=T.length-1;ie>=1;){const Ce=T[ie],Ge=T[ie-1];if(Ce.routeConfig&&""===Ce.routeConfig.path)ie--;else{if(Ge.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 Co{get title(){return this.data?.[k]}constructor(V,T,ie,Ce,Ge,it,jt,si,Di,ki,Mn){this.url=V,this.params=T,this.queryParams=ie,this.fragment=Ce,this.data=Ge,this.outlet=it,this.component=jt,this.routeConfig=si,this._urlSegment=Di,this._lastPathIndex=ki,this._resolve=Mn}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 ir extends Ir{constructor(V,T){super(T),this.url=V,gr(this,T)}toString(){return Kr(this._root)}}function gr(A,V){V.value._routerState=A,V.children.forEach(T=>gr(A,T))}function Kr(A){const V=A.children.length>0?` { ${A.children.map(Kr).join(", ")} } `:"";return`${A.value}${V}`}function mo(A){if(A.snapshot){const V=A.snapshot,T=A._futureSnapshot;A.snapshot=T,fe(V.queryParams,T.queryParams)||A.queryParams.next(T.queryParams),V.fragment!==T.fragment&&A.fragment.next(T.fragment),fe(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(!fe(A[T],V[T]))return!1;return!0}(V.url,T.url)||A.url.next(T.url),fe(V.data,T.data)||A.data.next(T.data)}else A.snapshot=A._futureSnapshot,A.data.next(A._futureSnapshot.data)}function xo(A,V){const T=fe(A.params,V.params)&&function ze(A,V){return ue(A,V)&&A.every((T,ie)=>fe(T.parameters,V[ie].parameters))}(A.url,V.url);return T&&!(!A.parent!=!V.parent)&&(!A.parent||xo(A.parent,V.parent))}function Tr(A,V,T){if(T&&A.shouldReuseRoute(V.value,T.value.snapshot)){const ie=T.value;ie._futureSnapshot=V.value;const Ce=function Mo(A,V,T){return V.children.map(ie=>{for(const Ce of T.children)if(A.shouldReuseRoute(ie.value,Ce.value.snapshot))return Tr(A,ie,Ce);return Tr(A,ie)})}(A,V,T);return new sr(ie,Ce)}{if(A.shouldAttach(V.value)){const Ge=A.retrieve(V.value);if(null!==Ge){const it=Ge.route;return it.value._futureSnapshot=V.value,it.children=V.children.map(jt=>Tr(A,jt)),it}}const ie=function Fo(A){return new Dr(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(Ge=>Tr(A,Ge));return new sr(ie,Ce)}}const Nr="ngNavigationCancelingError";function An(A,V){const{redirectTo:T,navigationBehaviorOptions:ie}=Yi(V)?{redirectTo:V,navigationBehaviorOptions:void 0}:V,Ce=ar(!1,0,V);return Ce.url=T,Ce.navigationBehaviorOptions=ie,Ce}function ar(A,V,T){const ie=new Error("NavigationCancelingError: "+(A||""));return ie[Nr]=!0,ie.cancellationCode=V,T&&(ie.url=T),ie}function lo(A){return po(A)&&Yi(A.url)}function po(A){return A&&A[Nr]}class rr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new yr,this.attachRef=null}}let yr=(()=>{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 rr,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 to=!1;let Yn=(()=>{class A{constructor(){this.activated=null,this._activatedRoute=null,this.name=ee,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)(yr),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,to);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.\u0275RuntimeError(4012,to);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.\u0275RuntimeError(4012,to);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,to);this._activatedRoute=T;const Ce=this.location,it=T.snapshot.component,jt=this.parentContexts.getOrCreateContext(this.name).children,si=new Bo(T,jt,Ce.injector);if(ie&&function mn(A){return!!A.resolveComponentFactory}(ie)){const Di=ie.resolveComponentFactory(it);this.activated=Ce.createComponent(Di,Ce.length,si)}else this.activated=Ce.createComponent(it,{index:Ce.length,injector:si,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 Bo{constructor(V,T,ie){this.route=V,this.childContexts=T,this.parent=ie}get(V,T){return V===Dr?this.route:V===yr?this.childContexts:this.parent.get(V,T)}}let Kn=(()=>{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:[Yn],encapsulation:2}),A})();function rt(A,V){return A.providers&&!A._injector&&(A._injector=(0,n.createEnvironmentInjector)(A.providers,V,`Route: ${A.path}`)),A._injector??V}function Si(A){const V=A.children&&A.children.map(Si),T=V?{...A,children:V}:{...A};return!T.component&&!T.loadComponent&&(V||T.loadChildren)&&T.outlet&&T.outlet!==ee&&(T.component=Kn),T}function oi(A){return A.outlet||ee}function bn(A,V){const T=A.filter(ie=>oi(ie)===V);return T.push(...A.filter(ie=>oi(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 co{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),mo(this.futureState.root),this.activateChildRoutes(T,ie,V)}deactivateChildRoutes(V,T,ie){const Ce=Br(T);V.children.forEach(Ge=>{const it=Ge.value.outlet;this.deactivateRoutes(Ge,Ce[it],ie),delete Ce[it]}),st(Ce,(Ge,it)=>{this.deactivateRouteAndItsChildren(Ge,ie)})}deactivateRoutes(V,T,ie){const Ce=V.value,Ge=T?T.value:null;if(Ce===Ge)if(Ce.component){const it=ie.getContext(Ce.outlet);it&&this.deactivateChildRoutes(V,T,it.children)}else this.deactivateChildRoutes(V,T,ie);else Ge&&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,Ge=Br(V);for(const it of Object.keys(Ge))this.deactivateRouteAndItsChildren(Ge[it],Ce);if(ie&&ie.outlet){const it=ie.outlet.detach(),jt=ie.children.onOutletDeactivated();this.routeReuseStrategy.store(V.value.snapshot,{componentRef:it,route:V,contexts:jt})}}deactivateRouteAndOutlet(V,T){const ie=T.getContext(V.value.outlet),Ce=ie&&V.value.component?ie.children:T,Ge=Br(V);for(const it of Object.keys(Ge))this.deactivateRouteAndItsChildren(Ge[it],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=Br(T);V.children.forEach(Ge=>{this.activateRoutes(Ge,Ce[Ge.value.outlet],ie),this.forwardEvent(new hn(Ge.value.snapshot))}),V.children.length&&this.forwardEvent(new Ri(V.value.snapshot))}activateRoutes(V,T,ie){const Ce=V.value,Ge=T?T.value:null;if(mo(Ce),Ce===Ge)if(Ce.component){const it=ie.getOrCreateContext(Ce.outlet);this.activateChildRoutes(V,T,it.children)}else this.activateChildRoutes(V,T,ie);else if(Ce.component){const it=ie.getOrCreateContext(Ce.outlet);if(this.routeReuseStrategy.shouldAttach(Ce.snapshot)){const jt=this.routeReuseStrategy.retrieve(Ce.snapshot);this.routeReuseStrategy.store(Ce.snapshot,null),it.children.onOutletReAttached(jt.contexts),it.attachRef=jt.componentRef,it.route=jt.route.value,it.outlet&&it.outlet.attach(jt.componentRef,jt.route.value),mo(jt.route.value),this.activateChildRoutes(V,null,it.children)}else{const jt=Gn(Ce.snapshot),si=jt?.get(n.ComponentFactoryResolver)??null;it.attachRef=null,it.route=Ce,it.resolver=si,it.injector=jt,it.outlet&&it.outlet.activateWith(Ce,it.injector),this.activateChildRoutes(V,null,it.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 B(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 Ge=Br(V);return A.children.forEach(it=>{(function Ke(A,V,T,ie,Ce={canDeactivateChecks:[],canActivateChecks:[]}){const Ge=A.value,it=V?V.value:null,jt=T?T.getContext(A.value.outlet):null;if(it&&Ge.routeConfig===it.routeConfig){const si=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)||!fe(A.queryParams,V.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xo(A,V)||!fe(A.queryParams,V.queryParams);default:return!xo(A,V)}}(it,Ge,Ge.routeConfig.runGuardsAndResolvers);si?Ce.canActivateChecks.push(new ve(ie)):(Ge.data=it.data,Ge._resolvedData=it._resolvedData),de(A,V,Ge.component?jt?jt.children:null:T,ie,Ce),si&&jt&&jt.outlet&&jt.outlet.isActivated&&Ce.canDeactivateChecks.push(new pe(jt.outlet.component,it))}else it&&ft(V,jt,Ce),Ce.canActivateChecks.push(new ve(ie)),de(A,null,Ge.component?jt?jt.children:null:T,ie,Ce)})(it,Ge[it.value.outlet],T,ie.concat([it.value]),Ce),delete Ge[it.value.outlet]}),st(Ge,(it,jt)=>ft(it,T.getContext(jt),Ce)),Ce}function ft(A,V,T){const ie=Br(A),Ce=A.value;st(ie,(Ge,it)=>{ft(Ge,Ce.component?V?V.children.getContext(it):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 lr(A){return A instanceof d||"EmptyError"===A?.name}const _r=Symbol("INITIAL_VALUE");function yn(){return(0,le.w)(A=>(0,u.aj)(A.map(V=>V.pipe((0,q.q)(1),(0,X.O)(_r)))).pipe((0,Z.U)(V=>{for(const T of V)if(!0!==T){if(T===_r)return _r;if(!1===T||T instanceof _i)return T}return!0}),(0,K.h)(V=>V!==_r),(0,q.q)(1)))}function Uo(A){return(0,x.z)((0,zt.b)(V=>{if(Yi(V))throw An(0,V)}),(0,Z.U)(V=>!0===V))}const go={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Go(A,V,T,ie,Ce){const Ge=wo(A,V,T);return Ge.matched?function jo(A,V,T,ie){const Ce=V.canMatch;if(!Ce||0===Ce.length)return(0,o.of)(!0);const Ge=Ce.map(it=>{const jt=B(it,A);return Nt(function Cr(A){return A&&qt(A.canMatch)}(jt)?jt.canMatch(V,T):A.runInContext(()=>jt(V,T)))});return(0,o.of)(Ge).pipe(yn(),Uo())}(ie=rt(V,ie),V,T).pipe((0,Z.U)(it=>!0===it?Ge:{...go})):(0,o.of)(Ge)}function wo(A,V,T){if(""===V.path)return"full"===V.pathMatch&&(A.hasChildren()||T.length>0)?{...go}:{matched:!0,consumedSegments:[],remainingSegments:T,parameters:{},positionalParamSegments:{}};const Ce=(V.matcher||qe)(T,A,V);if(!Ce)return{...go};const Ge={};st(Ce.posParams,(jt,si)=>{Ge[si]=jt.path});const it=Ce.consumed.length>0?{...Ge,...Ce.consumed[Ce.consumed.length-1].parameters}:Ge;return{matched:!0,consumedSegments:Ce.consumed,remainingSegments:T.slice(Ce.consumed.length),parameters:it,positionalParamSegments:Ce.posParams??{}}}function Xo(A,V,T,ie){if(T.length>0&&function Us(A,V,T){return T.some(ie=>ps(A,V,ie)&&oi(ie)!==ee)}(A,T,ie)){const Ge=new pi(V,function Io(A,V,T,ie){const Ce={};Ce[ee]=ie,ie._sourceSegment=A,ie._segmentIndexShift=V.length;for(const Ge of T)if(""===Ge.path&&oi(Ge)!==ee){const it=new pi([],{});it._sourceSegment=A,it._segmentIndexShift=V.length,Ce[oi(Ge)]=it}return Ce}(A,V,ie,new pi(T,A.children)));return Ge._sourceSegment=A,Ge._segmentIndexShift=V.length,{segmentGroup:Ge,slicedSegments:[]}}if(0===T.length&&function js(A,V,T){return T.some(ie=>ps(A,V,ie))}(A,T,ie)){const Ge=new pi(A.segments,function ea(A,V,T,ie,Ce){const Ge={};for(const it of ie)if(ps(A,T,it)&&!Ce[oi(it)]){const jt=new pi([],{});jt._sourceSegment=A,jt._segmentIndexShift=V.length,Ge[oi(it)]=jt}return{...Ce,...Ge}}(A,V,T,ie,A.children));return Ge._sourceSegment=A,Ge._segmentIndexShift=V.length,{segmentGroup:Ge,slicedSegments:T}}const Ce=new pi(A.segments,A.children);return Ce._sourceSegment=A,Ce._segmentIndexShift=V.length,{segmentGroup:Ce,slicedSegments:T}}function ps(A,V,T){return(!(A.hasChildren()||V.length>0)||"full"!==T.pathMatch)&&""===T.path}function Is(A,V,T,ie){return!!(oi(A)===ie||ie!==ee&&ps(V,T,A))&&("**"===A.path||wo(V,A,T).matched)}function Vs(A,V,T){return 0===V.length&&!A.children[T]}const Tn=!1;class uo{constructor(V){this.segmentGroup=V||null}}class Jn{constructor(V){this.urlTree=V}}function So(A){return(0,w._)(new uo(A))}function zs(A){return(0,w._)(new Jn(A))}class Ds{constructor(V,T,ie,Ce,Ge){this.injector=V,this.configLoader=T,this.urlSerializer=ie,this.urlTree=Ce,this.config=Ge,this.allowRedirects=!0}apply(){const V=Xo(this.urlTree.root,[],[],this.config).segmentGroup,T=new pi(V.segments,V.children);return this.expandSegmentGroup(this.injector,this.config,T,ee).pipe((0,Z.U)(Ge=>this.createUrlTree(vr(Ge),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,ti.K)(Ge=>{if(Ge instanceof Jn)return this.allowRedirects=!1,this.match(Ge.urlTree);throw Ge instanceof uo?this.noMatchError(Ge):Ge}))}match(V){return this.expandSegmentGroup(this.injector,this.config,V.root,ee).pipe((0,Z.U)(Ce=>this.createUrlTree(vr(Ce),V.queryParams,V.fragment))).pipe((0,ti.K)(Ce=>{throw Ce instanceof uo?this.noMatchError(Ce):Ce}))}noMatchError(V){return new n.\u0275RuntimeError(4002,Tn)}createUrlTree(V,T,ie){const Ce=wr(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)(Ge=>new pi([],Ge))):this.expandSegment(V,ie,T,ie.segments,Ce,!0)}expandChildren(V,T,ie){const Ce=[];for(const Ge of Object.keys(ie.children))"primary"===Ge?Ce.unshift(Ge):Ce.push(Ge);return(0,e.D)(Ce).pipe((0,Vt.b)(Ge=>{const it=ie.children[Ge],jt=bn(T,Ge);return this.expandSegmentGroup(V,jt,it,Ge).pipe((0,Z.U)(si=>({segment:si,outlet:Ge})))}),mi((Ge,it)=>(Ge[it.outlet]=it.segment,Ge),{}),W())}expandSegment(V,T,ie,Ce,Ge,it){return(0,e.D)(ie).pipe((0,Vt.b)(jt=>this.expandSegmentAgainstRoute(V,T,ie,jt,Ce,Ge,it).pipe((0,ti.K)(Di=>{if(Di instanceof uo)return(0,o.of)(null);throw Di}))),dt(jt=>!!jt),(0,ti.K)((jt,si)=>{if(lr(jt))return Vs(T,Ce,Ge)?(0,o.of)(new pi([],{})):So(T);throw jt}))}expandSegmentAgainstRoute(V,T,ie,Ce,Ge,it,jt){return Is(Ce,T,Ge,it)?void 0===Ce.redirectTo?this.matchSegmentAgainstRoute(V,T,Ce,Ge,it):jt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(V,T,ie,Ce,Ge,it):So(T):So(T)}expandSegmentAgainstRouteUsingRedirect(V,T,ie,Ce,Ge,it){return"**"===Ce.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(V,ie,Ce,it):this.expandRegularSegmentAgainstRouteUsingRedirect(V,T,ie,Ce,Ge,it)}expandWildCardWithParamsAgainstRouteUsingRedirect(V,T,ie,Ce){const Ge=this.applyRedirectCommands([],ie.redirectTo,{});return ie.redirectTo.startsWith("/")?zs(Ge):this.lineralizeSegments(ie,Ge).pipe((0,N.zg)(it=>{const jt=new pi(it,{});return this.expandSegment(V,jt,T,it,Ce,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(V,T,ie,Ce,Ge,it){const{matched:jt,consumedSegments:si,remainingSegments:Di,positionalParamSegments:ki}=wo(T,Ce,Ge);if(!jt)return So(T);const Mn=this.applyRedirectCommands(si,Ce.redirectTo,ki);return Ce.redirectTo.startsWith("/")?zs(Mn):this.lineralizeSegments(Ce,Mn).pipe((0,N.zg)(dr=>this.expandSegment(V,T,ie,dr.concat(Di),it,!1)))}matchSegmentAgainstRoute(V,T,ie,Ce,Ge){return"**"===ie.path?(V=rt(ie,V),ie.loadChildren?(ie._loadedRoutes?(0,o.of)({routes:ie._loadedRoutes,injector:ie._loadedInjector}):this.configLoader.loadChildren(V,ie)).pipe((0,Z.U)(jt=>(ie._loadedRoutes=jt.routes,ie._loadedInjector=jt.injector,new pi(Ce,{})))):(0,o.of)(new pi(Ce,{}))):Go(T,ie,Ce,V).pipe((0,le.w)(({matched:it,consumedSegments:jt,remainingSegments:si})=>it?this.getChildConfig(V=ie._injector??V,ie,Ce).pipe((0,N.zg)(ki=>{const Mn=ki.injector??V,dr=ki.routes,{segmentGroup:ds,slicedSegments:is}=Xo(T,jt,si,dr),To=new pi(ds.segments,ds.children);if(0===is.length&&To.hasChildren())return this.expandChildren(Mn,dr,To).pipe((0,Z.U)(Ea=>new pi(jt,Ea)));if(0===dr.length&&0===is.length)return(0,o.of)(new pi(jt,{}));const Po=oi(ie)===Ge;return this.expandSegment(Mn,To,dr,is,Po?ee:Ge,!0).pipe((0,Z.U)(fa=>new pi(jt.concat(fa.segments),fa.children)))})):So(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 xr(A,V,T,ie){const Ce=V.canLoad;if(void 0===Ce||0===Ce.length)return(0,o.of)(!0);const Ge=Ce.map(it=>{const jt=B(it,A);return Nt(function Pi(A){return A&&qt(A.canLoad)}(jt)?jt.canLoad(V,T):A.runInContext(()=>jt(V,T)))});return(0,o.of)(Ge).pipe(yn(),Uo())}(V,T,ie).pipe((0,N.zg)(Ce=>Ce?this.configLoader.loadChildren(V,T).pipe((0,zt.b)(Ge=>{T._loadedRoutes=Ge.routes,T._loadedInjector=Ge.injector})):function da(A){return(0,w._)(ar(Tn,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[ee])return V.redirectTo,(0,w._)(new n.\u0275RuntimeError(4e3,Tn));Ce=Ce.children[ee]}}applyRedirectCommands(V,T,ie){return this.applyRedirectCreateUrlTree(T,this.urlSerializer.parse(T),V,ie)}applyRedirectCreateUrlTree(V,T,ie,Ce){const Ge=this.createSegmentGroup(V,T.root,ie,Ce);return new _i(Ge,this.createQueryParams(T.queryParams,this.urlTree.queryParams),T.fragment)}createQueryParams(V,T){const ie={};return st(V,(Ce,Ge)=>{if("string"==typeof Ce&&Ce.startsWith(":")){const jt=Ce.substring(1);ie[Ge]=T[jt]}else ie[Ge]=Ce}),ie}createSegmentGroup(V,T,ie,Ce){const Ge=this.createSegments(V,T.segments,ie,Ce);let it={};return st(T.children,(jt,si)=>{it[si]=this.createSegmentGroup(V,jt,ie,Ce)}),new pi(Ge,it)}createSegments(V,T,ie,Ce){return T.map(Ge=>Ge.path.startsWith(":")?this.findPosParam(V,Ge,Ce):this.findOrReturn(Ge,ie))}findPosParam(V,T,ie){const Ce=ie[T.path.substring(1)];if(!Ce)throw new n.\u0275RuntimeError(4001,Tn);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 rs{}class oe{constructor(V,T,ie,Ce,Ge,it,jt){this.injector=V,this.rootComponentType=T,this.config=ie,this.urlTree=Ce,this.url=Ge,this.paramsInheritanceStrategy=it,this.urlSerializer=jt}recognize(){const V=Xo(this.urlTree.root,[],[],this.config.filter(T=>void 0===T.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,V,ee).pipe((0,Z.U)(T=>{if(null===T)return null;const ie=new Co([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ee,this.rootComponentType,null,this.urlTree.root,-1,{}),Ce=new sr(ie,T),Ge=new ir(this.url,Ce);return this.inheritParamsAndData(Ge._root),Ge}))}inheritParamsAndData(V){const T=V.value,ie=Ao(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,Vt.b)(Ce=>{const Ge=ie.children[Ce],it=bn(T,Ce);return this.processSegmentGroup(V,it,Ge,Ce)}),mi((Ce,Ge)=>Ce&&Ge?(Ce.push(...Ge),Ce):null),(0,z.o)(Ce=>null!==Ce),xe(null),W(),(0,Z.U)(Ce=>{if(null===Ce)return null;const Ge=ei(Ce);return function Ne(A){A.sort((V,T)=>V.value.outlet===ee?-1:T.value.outlet===ee?1:V.value.outlet.localeCompare(T.value.outlet))}(Ge),Ge}))}processSegment(V,T,ie,Ce,Ge){return(0,e.D)(T).pipe((0,Vt.b)(it=>this.processSegmentAgainstRoute(it._injector??V,it,ie,Ce,Ge)),dt(it=>!!it),(0,ti.K)(it=>{if(lr(it))return Vs(ie,Ce,Ge)?(0,o.of)([]):(0,o.of)(null);throw it}))}processSegmentAgainstRoute(V,T,ie,Ce,Ge){if(T.redirectTo||!Is(T,ie,Ce,Ge))return(0,o.of)(null);let it;if("**"===T.path){const jt=Ce.length>0?Tt(Ce).parameters:{},si=pn(ie)+Ce.length,Di=new Co(Ce,jt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,sn(T),oi(T),T.component??T._loadedComponent??null,T,In(ie),si,xn(T));it=(0,o.of)({snapshot:Di,consumedSegments:[],remainingSegments:[]})}else it=Go(ie,T,Ce,V).pipe((0,Z.U)(({matched:jt,consumedSegments:si,remainingSegments:Di,parameters:ki})=>{if(!jt)return null;const Mn=pn(ie)+si.length;return{snapshot:new Co(si,ki,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,sn(T),oi(T),T.component??T._loadedComponent??null,T,In(ie),Mn,xn(T)),consumedSegments:si,remainingSegments:Di}}));return it.pipe((0,le.w)(jt=>{if(null===jt)return(0,o.of)(null);const{snapshot:si,consumedSegments:Di,remainingSegments:ki}=jt;V=T._injector??V;const Mn=T._loadedInjector??V,dr=function yt(A){return A.children?A.children:A.loadChildren?A._loadedRoutes:[]}(T),{segmentGroup:ds,slicedSegments:is}=Xo(ie,Di,ki,dr.filter(Po=>void 0===Po.redirectTo));if(0===is.length&&ds.hasChildren())return this.processChildren(Mn,dr,ds).pipe((0,Z.U)(Po=>null===Po?null:[new sr(si,Po)]));if(0===dr.length&&0===is.length)return(0,o.of)([new sr(si,[])]);const To=oi(T)===Ge;return this.processSegment(Mn,dr,ds,is,To?ee:Ge).pipe((0,Z.U)(Po=>null===Po?null:[new sr(si,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(Ge=>ie.value.routeConfig===Ge.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 sr(ie.value,Ce))}return V.filter(ie=>!T.has(ie))}function In(A){let V=A;for(;V._sourceSegment;)V=V._sourceSegment;return V}function pn(A){let V=A,T=V._segmentIndexShift??0;for(;V._sourceSegment;)V=V._sourceSegment,T+=V._segmentIndexShift??0;return T-1}function sn(A){return A.data||{}}function xn(A){return A.resolve||{}}function Gr(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)(Ze),(0,zt.b)(Ge=>{this.onLoadEndListener&&this.onLoadEndListener(T),T._loadedComponent=Ge}),(0,pt.x)(()=>{this.componentLoaders.delete(T)})),Ce=new I.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 Ge=this.loadModuleFactoryOrRoutes(ie.loadChildren).pipe((0,Z.U)(jt=>{this.onLoadEndListener&&this.onLoadEndListener(ie);let si,Di,ki=!1;Array.isArray(jt)?Di=jt:(si=jt.create(T).injector,Di=gt(si.get(E,[],n.InjectFlags.Self|n.InjectFlags.Optional)));return{routes:Di.map(Si),injector:si}}),(0,pt.x)(()=>{this.childrenLoaders.delete(ie)})),it=new I.c(Ge,()=>new j.xQ).pipe((0,Pe.x)());return this.childrenLoaders.set(ie,it),it}loadModuleFactoryOrRoutes(T){return Nt(T()).pipe((0,Z.U)(Ze),(0,N.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 Ze(A){return function ye(A){return A&&"object"==typeof A&&"default"in A}(A)?A.default:A}let Ht=(()=>{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)(yr),this.navigationId=0,this.afterPreactivation=()=>(0,o.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Ce=>this.events.next(new Dn(Ce)),this.configLoader.onLoadStartListener=Ce=>this.events.next(new $n(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,Ge=!1;return(0,o.of)(ie).pipe((0,zt.b)(it=>{this.currentNavigation={id:it.id,initialUrl:it.rawUrl,extractedUrl:it.extractedUrl,trigger:it.source,extras:it.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,le.w)(it=>{const jt=T.browserUrlTree.toString(),si=!T.navigated||it.extractedUrl.toString()!==jt||jt!==T.currentUrlTree.toString();if(!si&&"reload"!==(it.extras.onSameUrlNavigation??T.onSameUrlNavigation)){const ki="";return this.events.next(new je(it.id,T.serializeUrl(ie.rawUrl),ki,0)),T.rawUrlTree=it.rawUrl,it.resolve(null),f.E}if(T.urlHandlingStrategy.shouldProcessUrl(it.rawUrl))return Zt(it.source)&&(T.browserUrlTree=it.extractedUrl),(0,o.of)(it).pipe((0,le.w)(ki=>{const Mn=this.transitions?.getValue();return this.events.next(new mt(ki.id,this.urlSerializer.serialize(ki.extractedUrl),ki.source,ki.restoredState)),Mn!==this.transitions?.getValue()?f.E:Promise.resolve(ki)}),function _o(A,V,T,ie){return(0,le.w)(Ce=>function Jo(A,V,T,ie,Ce){return new Ds(A,V,T,ie,Ce).apply()}(A,V,T,Ce.extractedUrl,ie).pipe((0,Z.U)(Ge=>({...Ce,urlAfterRedirects:Ge}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,T.config),(0,zt.b)(ki=>{this.currentNavigation={...this.currentNavigation,finalUrl:ki.urlAfterRedirects},ie.urlAfterRedirects=ki.urlAfterRedirects}),function gn(A,V,T,ie,Ce){return(0,N.zg)(Ge=>function Ie(A,V,T,ie,Ce,Ge,it="emptyOnly"){return new oe(A,V,T,ie,Ce,it,Ge).recognize().pipe((0,le.w)(jt=>null===jt?function te(A){return new g.y(V=>V.error(A))}(new rs):(0,o.of)(jt)))}(A,V,T,Ge.urlAfterRedirects,ie.serialize(Ge.urlAfterRedirects),ie,Ce).pipe((0,Z.U)(it=>({...Ge,targetSnapshot:it}))))}(this.environmentInjector,this.rootComponentType,T.config,this.urlSerializer,T.paramsInheritanceStrategy),(0,zt.b)(ki=>{if(ie.targetSnapshot=ki.targetSnapshot,"eager"===T.urlUpdateStrategy){if(!ki.extras.skipLocationChange){const dr=T.urlHandlingStrategy.merge(ki.urlAfterRedirects,ki.rawUrl);T.setBrowserUrl(dr,ki)}T.browserUrlTree=ki.urlAfterRedirects}const Mn=new At(ki.id,this.urlSerializer.serialize(ki.extractedUrl),this.urlSerializer.serialize(ki.urlAfterRedirects),ki.targetSnapshot);this.events.next(Mn)}));if(si&&T.urlHandlingStrategy.shouldProcessUrl(T.rawUrlTree)){const{id:ki,extractedUrl:Mn,source:dr,restoredState:ds,extras:is}=it,To=new mt(ki,this.urlSerializer.serialize(Mn),dr,ds);this.events.next(To);const Po=qr(Mn,this.rootComponentType).snapshot;return ie={...it,targetSnapshot:Po,urlAfterRedirects:Mn,extras:{...is,skipLocationChange:!1,replaceUrl:!1}},(0,o.of)(ie)}{const ki="";return this.events.next(new je(it.id,T.serializeUrl(ie.extractedUrl),ki,1)),T.rawUrlTree=it.rawUrl,it.resolve(null),f.E}}),(0,zt.b)(it=>{const jt=new ci(it.id,this.urlSerializer.serialize(it.extractedUrl),this.urlSerializer.serialize(it.urlAfterRedirects),it.targetSnapshot);this.events.next(jt)}),(0,Z.U)(it=>ie={...it,guards:y(it.targetSnapshot,it.currentSnapshot,this.rootContexts)}),function Wn(A,V){return(0,N.zg)(T=>{const{targetSnapshot:ie,currentSnapshot:Ce,guards:{canActivateChecks:Ge,canDeactivateChecks:it}}=T;return 0===it.length&&0===Ge.length?(0,o.of)({...T,guardsResult:!0}):function Eo(A,V,T,ie){return(0,e.D)(A).pipe((0,N.zg)(Ce=>function ns(A,V,T,ie,Ce){const Ge=V&&V.routeConfig?V.routeConfig.canDeactivate:null;if(!Ge||0===Ge.length)return(0,o.of)(!0);const it=Ge.map(jt=>{const si=Gn(V)??Ce,Di=B(jt,si);return Nt(function vn(A){return A&&qt(A.canDeactivate)}(Di)?Di.canDeactivate(A,V,T,ie):si.runInContext(()=>Di(A,V,T,ie))).pipe(dt())});return(0,o.of)(it).pipe(yn())}(Ce.component,Ce.route,T,V,ie)),dt(Ce=>!0!==Ce,!0))}(it,ie,Ce,A).pipe((0,N.zg)(jt=>jt&&function Oi(A){return"boolean"==typeof A}(jt)?function Ur(A,V,T,ie){return(0,e.D)(V).pipe((0,Vt.b)(Ce=>(0,b.z)(function fo(A,V){return null!==A&&V&&V(new Ro(A)),(0,o.of)(!0)}(Ce.route.parent,ie),function Xn(A,V){return null!==A&&V&&V(new Cn(A)),(0,o.of)(!0)}(Ce.route,ie),function ms(A,V,T){const ie=V[V.length-1],Ge=V.slice(0,V.length-1).reverse().map(it=>function J(A){const V=A.routeConfig?A.routeConfig.canActivateChild:null;return V&&0!==V.length?{node:A,guards:V}:null}(it)).filter(it=>null!==it).map(it=>(0,C.P)(()=>{const jt=it.guards.map(si=>{const Di=Gn(it.node)??T,ki=B(si,Di);return Nt(function Hi(A){return A&&qt(A.canActivateChild)}(ki)?ki.canActivateChild(ie,A):Di.runInContext(()=>ki(ie,A))).pipe(dt())});return(0,o.of)(jt).pipe(yn())}));return(0,o.of)(Ge).pipe(yn())}(A,Ce.path,T),function No(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(Ge=>(0,C.P)(()=>{const it=Gn(V)??T,jt=B(Ge,it);return Nt(function ui(A){return A&&qt(A.canActivate)}(jt)?jt.canActivate(V,A):it.runInContext(()=>jt(V,A))).pipe(dt())}));return(0,o.of)(Ce).pipe(yn())}(A,Ce.route,T))),dt(Ce=>!0!==Ce,!0))}(ie,Ge,A,V):(0,o.of)(jt)),(0,Z.U)(jt=>({...T,guardsResult:jt})))})}(this.environmentInjector,it=>this.events.next(it)),(0,zt.b)(it=>{if(ie.guardsResult=it.guardsResult,Yi(it.guardsResult))throw An(0,it.guardsResult);const jt=new Wi(it.id,this.urlSerializer.serialize(it.extractedUrl),this.urlSerializer.serialize(it.urlAfterRedirects),it.targetSnapshot,!!it.guardsResult);this.events.next(jt)}),(0,K.h)(it=>!!it.guardsResult||(T.restoreHistory(it),this.cancelNavigationTransition(it,"",3),!1)),s(it=>{if(it.guards.canActivateChecks.length)return(0,o.of)(it).pipe((0,zt.b)(jt=>{const si=new ln(jt.id,this.urlSerializer.serialize(jt.extractedUrl),this.urlSerializer.serialize(jt.urlAfterRedirects),jt.targetSnapshot);this.events.next(si)}),(0,le.w)(jt=>{let si=!1;return(0,o.of)(jt).pipe(function qn(A,V){return(0,N.zg)(T=>{const{targetSnapshot:ie,guards:{canActivateChecks:Ce}}=T;if(!Ce.length)return(0,o.of)(T);let Ge=0;return(0,e.D)(Ce).pipe((0,Vt.b)(it=>function Do(A,V,T,ie){const Ce=A.routeConfig,Ge=A._resolve;return void 0!==Ce?.title&&!Gr(Ce)&&(Ge[k]=Ce.title),function jr(A,V,T,ie){const Ce=function ko(A){return[...Object.keys(A),...Object.getOwnPropertySymbols(A)]}(A);if(0===Ce.length)return(0,o.of)({});const Ge={};return(0,e.D)(Ce).pipe((0,N.zg)(it=>function Pr(A,V,T,ie){const Ce=Gn(V)??ie,Ge=B(A,Ce);return Nt(Ge.resolve?Ge.resolve(V,T):Ce.runInContext(()=>Ge(V,T)))}(A[it],V,T,ie).pipe(dt(),(0,zt.b)(jt=>{Ge[it]=jt}))),_t(1),function He(A){return V=>V.lift(new Te(A))}(Ge),(0,ti.K)(it=>lr(it)?f.E:(0,w._)(it)))}(Ge,A,V,ie).pipe((0,Z.U)(it=>(A._resolvedData=it,A.data=Ao(A,T).resolve,Ce&&Gr(Ce)&&(A.data[k]=Ce.title),null)))}(it.route,ie,A,V)),(0,zt.b)(()=>Ge++),_t(1),(0,N.zg)(it=>Ge===Ce.length?(0,o.of)(T):f.E))})}(T.paramsInheritanceStrategy,this.environmentInjector),(0,zt.b)({next:()=>si=!0,complete:()=>{si||(T.restoreHistory(jt),this.cancelNavigationTransition(jt,"",2))}}))}),(0,zt.b)(jt=>{const si=new en(jt.id,this.urlSerializer.serialize(jt.extractedUrl),this.urlSerializer.serialize(jt.urlAfterRedirects),jt.targetSnapshot);this.events.next(si)}))}),s(it=>{const jt=si=>{const Di=[];si.routeConfig?.loadComponent&&!si.routeConfig._loadedComponent&&Di.push(this.configLoader.loadComponent(si.routeConfig).pipe((0,zt.b)(ki=>{si.component=ki}),(0,Z.U)(()=>{})));for(const ki of si.children)Di.push(...jt(ki));return Di};return(0,u.aj)(jt(it.targetSnapshot.root)).pipe(xe(),(0,q.q)(1))}),s(()=>this.afterPreactivation()),(0,Z.U)(it=>{const jt=function ao(A,V,T){const ie=Tr(A,V._root,T?T._root:void 0);return new fr(ie,V)}(T.routeReuseStrategy,it.targetSnapshot,it.currentRouterState);return ie={...it,targetRouterState:jt}}),(0,zt.b)(it=>{T.currentUrlTree=it.urlAfterRedirects,T.rawUrlTree=T.urlHandlingStrategy.merge(it.urlAfterRedirects,it.rawUrl),T.routerState=it.targetRouterState,"deferred"===T.urlUpdateStrategy&&(it.extras.skipLocationChange||T.setBrowserUrl(T.rawUrlTree,it),T.browserUrlTree=it.urlAfterRedirects)}),((A,V,T)=>(0,Z.U)(ie=>(new co(V,ie.targetRouterState,ie.currentRouterState,T).activate(A),ie)))(this.rootContexts,T.routeReuseStrategy,it=>this.events.next(it)),(0,q.q)(1),(0,zt.b)({next:it=>{Ce=!0,this.lastSuccessfulNavigation=this.currentNavigation,T.navigated=!0,this.events.next(new ni(it.id,this.urlSerializer.serialize(it.extractedUrl),this.urlSerializer.serialize(T.currentUrlTree))),T.titleStrategy?.updateTitle(it.targetRouterState.snapshot),it.resolve(!0)},complete:()=>{Ce=!0}}),(0,pt.x)(()=>{Ce||Ge||this.cancelNavigationTransition(ie,"",1),this.currentNavigation?.id===ie.id&&(this.currentNavigation=null)}),(0,ti.K)(it=>{if(Ge=!0,po(it)){lo(it)||(T.navigated=!0,T.restoreHistory(ie,!0));const jt=new he(ie.id,this.urlSerializer.serialize(ie.extractedUrl),it.message,it.cancellationCode);if(this.events.next(jt),lo(it)){const si=T.urlHandlingStrategy.merge(it.url,T.rawUrlTree),Di={skipLocationChange:ie.extras.skipLocationChange,replaceUrl:"eager"===T.urlUpdateStrategy||Zt(ie.source)};T.scheduleNavigation(si,Ei,null,Di,{resolve:ie.resolve,reject:ie.reject,promise:ie.promise})}else ie.resolve(!1)}else{T.restoreHistory(ie,!0);const jt=new Ye(ie.id,this.urlSerializer.serialize(ie.extractedUrl),it,ie.targetSnapshot??void 0);this.events.next(jt);try{ie.resolve(T.errorHandler(it))}catch(si){ie.reject(si)}}return f.E}))}))}cancelNavigationTransition(T,ie,Ce){const Ge=new he(T.id,this.urlSerializer.serialize(T.extractedUrl),ie,Ce);this.events.next(Ge),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 Zt(A){return A!==Ei}let hi=(()=>{class A{buildTitle(T){let ie,Ce=T.root;for(;void 0!==Ce;)ie=this.getResolvedTitleForRoute(Ce)??ie,Ce=Ce.children.find(Ge=>Ge.outlet===ee);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)(Ai)},providedIn:"root"}),A})(),Ai=(()=>{class A extends hi{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(ht.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)(Zr)},providedIn:"root"}),A})();class fn{shouldDetach(V){return!1}store(V,T){}shouldAttach(V){return!1}retrieve(V){return null}shouldReuseRoute(V,T){return V.routeConfig===T.routeConfig}}let Zr=(()=>{class A extends fn{}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 io=new n.InjectionToken("",{providedIn:"root",factory:()=>({})});let no=(()=>{class A{}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:function(){return(0,n.inject)(os)},providedIn:"root"}),A})(),os=(()=>{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 Ts(A){throw A}function ua(A,V,T){return V.parse("/")}const fs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},as={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Vr=(()=>{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)(io,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Ts,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||ua,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,n.inject)(no),this.routeReuseStrategy=(0,n.inject)($i),this.urlCreationStrategy=(0,n.inject)($r),this.titleStrategy=(0,n.inject)(hi),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)(Ht),this.urlSerializer=(0,n.inject)(Ee),this.location=(0,n.inject)(F.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=qr(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 Ge={replaceUrl:!0},it=Ce?.navigationId?Ce:null;if(Ce){const si={...Ce};delete si.navigationId,delete si.\u0275routerPageId,0!==Object.keys(si).length&&(Ge.state=si)}const jt=this.parseUrl(T);this.scheduleNavigation(jt,ie,it,Ge)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(T){this.config=T.map(Si),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:Ge,fragment:it,queryParamsHandling:jt,preserveFragment:si}=ie,Di=si?this.currentUrlTree.fragment:it;let ki=null;switch(jt){case"merge":ki={...this.currentUrlTree.queryParams,...Ge};break;case"preserve":ki=this.currentUrlTree.queryParams;break;default:ki=Ge||null}return null!==ki&&(ki=this.removeEmptyProps(ki)),this.urlCreationStrategy.createUrlTree(Ce,this.routerState,this.currentUrlTree,T,ki,Di??null)}navigateByUrl(T,ie={skipLocationChange:!1}){const Ce=Yi(T)?T:this.parseUrl(T),Ge=this.urlHandlingStrategy.merge(Ce,this.rawUrlTree);return this.scheduleNavigation(Ge,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?{...fs}:!1===ie?{...as}:ie,Yi(T))return ai(this.currentUrlTree,T,Ce);const Ge=this.parseUrl(T);return ai(this.currentUrlTree,Ge,Ce)}removeEmptyProps(T){return Object.keys(T).reduce((ie,Ce)=>{const Ge=T[Ce];return null!=Ge&&(ie[Ce]=Ge),ie},{})}scheduleNavigation(T,ie,Ce,Ge,it){if(this.disposed)return Promise.resolve(!1);let jt,si,Di,ki;return it?(jt=it.resolve,si=it.reject,Di=it.promise):Di=new Promise((Mn,dr)=>{jt=Mn,si=dr}),ki="computed"===this.canceledNavigationResolution?Ce&&Ce.\u0275routerPageId?Ce.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:ki,source:ie,restoredState:Ce,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:T,extras:Ge,resolve:jt,reject:si,promise:Di,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Di.catch(Mn=>Promise.reject(Mn))}setBrowserUrl(T,ie){const Ce=this.urlSerializer.serialize(T);if(this.location.isCurrentPathEqualTo(Ce)||ie.extras.replaceUrl){const it={...ie.extras.state,...this.generateNgRouterState(ie.id,this.browserPageId)};this.location.replaceState(Ce,"",it)}else{const Ge={...ie.extras.state,...this.generateNgRouterState(ie.id,ie.targetPageId)};this.location.go(Ce,"",Ge)}}restoreHistory(T,ie=!1){if("computed"===this.canceledNavigationResolution){const Ge=this.currentPageId-(this.browserPageId??this.currentPageId);0!==Ge?this.location.historyGo(Ge):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Ge&&(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})(),qo=(()=>{class A{constructor(T,ie,Ce,Ge,it,jt){this.router=T,this.route=ie,this.tabIndexAttribute=Ce,this.renderer=Ge,this.el=it,this.locationStrategy=jt,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new j.xQ;const si=it.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===si||"area"===si,this.isAnchorElement?this.subscription=T.events.subscribe(Di=>{Di 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,Ge,it){return!!(null===this.urlTree||this.isAnchorElement&&(0!==T||ie||Ce||Ge||it||"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,Ge=this.el.nativeElement;null!==ie?Ce.setAttribute(Ge,T,ie):Ce.removeAttribute(Ge,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(Vr),n.\u0275\u0275directiveInject(Dr),n.\u0275\u0275injectAttribute("tabindex"),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(F.LocationStrategy))},A.\u0275dir=n.\u0275\u0275defineDirective({type:A,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(T,ie){1&T&&n.\u0275\u0275listener("click",function(Ge){return ie.onClick(Ge.button,Ge.ctrlKey,Ge.shiftKey,Ge.altKey,Ge.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 ta{}let Ps=(()=>{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})(),es=(()=>{class A{constructor(T,ie,Ce,Ge,it){this.router=T,this.injector=Ce,this.preloadingStrategy=Ge,this.loader=it}setUpPreloading(){this.subscription=this.router.events.pipe((0,K.h)(T=>T instanceof ni),(0,Vt.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 Ge of ie){Ge.providers&&!Ge._injector&&(Ge._injector=(0,n.createEnvironmentInjector)(Ge.providers,T,`Route: ${Ge.path}`));const it=Ge._injector??T,jt=Ge._loadedInjector??it;(Ge.loadChildren&&!Ge._loadedRoutes&&void 0===Ge.canLoad||Ge.loadComponent&&!Ge._loadedComponent)&&Ce.push(this.preloadConfig(it,Ge)),(Ge.children||Ge._loadedRoutes)&&Ce.push(this.processRoutes(jt,Ge.children??Ge._loadedRoutes))}return(0,e.D)(Ce).pipe((0,Xe.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 Ge=Ce.pipe((0,N.zg)(it=>null===it?(0,o.of)(void 0):(ie._loadedRoutes=it.routes,ie._loadedInjector=it.injector,this.processRoutes(it.injector??T,it.routes))));if(ie.loadComponent&&!ie._loadedComponent){const it=this.loader.loadComponent(ie);return(0,e.D)([Ge,it]).pipe((0,Xe.J)())}return Ge})}}return A.\u0275fac=function(T){return new(T||A)(n.\u0275\u0275inject(Vr),n.\u0275\u0275inject(n.Compiler),n.\u0275\u0275inject(n.EnvironmentInjector),n.\u0275\u0275inject(ta),n.\u0275\u0275inject(Y))},A.\u0275prov=n.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const Os=new n.InjectionToken("");let ls=(()=>{class A{constructor(T,ie,Ce,Ge,it={}){this.urlSerializer=T,this.transitions=ie,this.viewportScroller=Ce,this.zone=Ge,this.options=it,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},it.scrollPositionRestoration=it.scrollPositionRestoration||"disabled",it.anchorScrolling=it.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 mt?(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 pr&&(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 pr(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 Or=(()=>((Or=Or||{})[Or.COMPLETE=0]="COMPLETE",Or[Or.FAILED=1]="FAILED",Or[Or.REDIRECTING=2]="REDIRECTING",Or))();const Zo=!1;function vo(A,V){return{\u0275kind:A,\u0275providers:V}}const Hs=new n.InjectionToken("",{providedIn:"root",factory:()=>!1});function cs(){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(Vr),Ce=A.get(Fa);1===A.get(ha)&&ie.initialNavigation(),A.get(Zl,null,n.InjectFlags.Optional)?.setUpPreloading(),A.get(Os,null,n.InjectFlags.Optional)?.init(),ie.resetRootComponentType(T.componentTypes[0]),Ce.closed||(Ce.next(),Ce.complete(),Ce.unsubscribe())}}const Fa=new n.InjectionToken(Zo?"bootstrap done indicator":"",{factory:()=>new j.xQ}),ha=new n.InjectionToken(Zo?"initial navigation":"",{providedIn:"root",factory:()=>1});function Ar(){let A=[];return A=Zo?[{provide:n.ENVIRONMENT_INITIALIZER,multi:!0,useFactory:()=>{const V=(0,n.inject)(Vr);return()=>V.events.subscribe(T=>{console.group?.(`Router Event: ${T.constructor.name}`),console.log(function Jr(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?.()})}}]:[],vo(1,A)}const Zl=new n.InjectionToken(Zo?"router preloader":"");function Ql(A){return vo(0,[{provide:Zl,useExisting:es},{provide:ta,useExisting:A}])}const Ks=!1,_s=new n.InjectionToken(Ks?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Ba=[F.Location,{provide:Ee,useClass:Re},Vr,yr,{provide:Dr,useFactory:function As(A){return A.routerState.root},deps:[Vr]},Y,Ks?{provide:Hs,useValue:!0}:[]];function pa(){return new n.NgProbeToken("Router",Vr)}let ia=(()=>{class A{constructor(T){}static forRoot(T,ie){return{ngModule:A,providers:[Ba,Ks&&ie?.enableTracing?Ar().\u0275providers:[],{provide:E,multi:!0,useValue:T},{provide:_s,useFactory:Xl,deps:[[Vr,new n.Optional,new n.SkipSelf]]},{provide:io,useValue:ie||{}},ie?.useHash?{provide:F.LocationStrategy,useClass:F.HashLocationStrategy}:{provide:F.LocationStrategy,useClass:F.PathLocationStrategy},{provide:Os,useFactory:()=>{const A=(0,n.inject)(F.ViewportScroller),V=(0,n.inject)(n.NgZone),T=(0,n.inject)(io),ie=(0,n.inject)(Ht),Ce=(0,n.inject)(Ee);return T.scrollOffset&&A.setOffset(T.scrollOffset),new ls(Ce,ie,A,V,T)}},ie?.preloadingStrategy?Ql(ie.preloadingStrategy).\u0275providers:[],{provide:n.NgProbeToken,multi:!0,useFactory:pa},ie?.initialNavigation?Lo(ie):[],[{provide:na,useFactory:cs},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:na}]]}}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(_s,8))},A.\u0275mod=n.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=n.\u0275\u0275defineInjector({imports:[Kn]}),A})();function Xl(A){if(Ks&&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 Lo(A){return["disabled"===A.initialNavigation?vo(3,[{provide:n.APP_INITIALIZER,multi:!0,useFactory:()=>{const V=(0,n.inject)(Vr);return()=>{V.setUpLocationChangeListener()}}},{provide:ha,useValue:2}]).\u0275providers:[],"enabledBlocking"===A.initialNavigation?vo(2,[{provide:ha,useValue:0},{provide:n.APP_INITIALIZER,multi:!0,deps:[n.Injector],useFactory:V=>{const T=V.get(F.LOCATION_INITIALIZED,Promise.resolve());return()=>T.then(()=>new Promise(ie=>{const Ce=V.get(Vr),Ge=V.get(Fa);(function Ws(A,V){A.events.pipe((0,K.h)(T=>T instanceof ni||T instanceof he||T instanceof Ye||T instanceof je),(0,Z.U)(T=>T instanceof ni||T instanceof je?Or.COMPLETE:T instanceof he&&(0===T.code||1===T.code)?Or.REDIRECTING:Or.FAILED),(0,K.h)(T=>T!==Or.REDIRECTING),(0,q.q)(1)).subscribe(()=>{V()})})(Ce,()=>{ie(!0)}),V.get(Ht).afterPreactivation=()=>(ie(!0),Ge.closed?(0,o.of)(void 0):Ge),Ce.initialNavigation()}))}}]).\u0275providers:[]]}const na=new n.InjectionToken(Ks?"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),I=a(4850),j=a(2198),F=a(7545),Z=a(2536),q=a(2986),X=a(2994),K=a(353),me=a(3489),xe=a(9312);class Qe{constructor(Ae,W){this.delay=Ae,this.scheduler=W}call(Ae,W){return W.subscribe(new Oe(Ae,this.delay,this.scheduler))}}class Oe extends me.L{constructor(Ae,W,z){super(Ae),this.delay=W,this.scheduler=z,this.queue=[],this.active=!1,this.errored=!1}static dispatch(Ae){const W=Ae.source,z=W.queue,He=Ae.scheduler,Te=Ae.destination;for(;z.length>0&&z[0].time-He.now()<=0;)z.shift().notification.observe(Te);if(z.length>0){const Be=Math.max(0,z[0].time-He.now());this.schedule(Ae,Be)}else this.unsubscribe(),W.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 W=this.scheduler,z=new nt(W.now()+this.delay,Ae);this.queue.push(z),!1===this.active&&this._schedule(W)}_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,W){this.time=Ae,this.notification=W}}const Je="Service workers are disabled or not supported by this browser";class ot{constructor(Ae){if(this.serviceWorker=Ae,Ae){const z=(0,v.R)(Ae,"controllerchange").pipe((0,I.U)(()=>Ae.controller)),He=(0,o.P)(()=>(0,d.of)(Ae.controller)),Te=(0,u.z)(He,z);this.worker=Te.pipe((0,j.h)(ht=>!!ht)),this.registration=this.worker.pipe((0,F.w)(()=>Ae.getRegistration()));const Xe=(0,v.R)(Ae,"message").pipe((0,I.U)(ht=>ht.data)).pipe((0,j.h)(ht=>ht&&ht.type)).pipe(function le(Fe){return Fe?(0,Z.O)(()=>new b.xQ,Fe):(0,Z.O)(new b.xQ)}());Xe.connect(),this.events=Xe}else this.worker=this.events=this.registration=function ct(Fe){return(0,o.P)(()=>(0,l._)(new Error(Fe)))}(Je)}postMessage(Ae,W){return this.worker.pipe((0,q.q)(1),(0,X.b)(z=>{z.postMessage({action:Ae,...W})})).toPromise().then(()=>{})}postMessageWithOperation(Ae,W,z){const He=this.waitForOperationCompleted(z),Te=this.postMessage(Ae,W);return Promise.all([Te,He]).then(([,Be])=>Be)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(Ae){let W;return W="string"==typeof Ae?z=>z.type===Ae:z=>Ae.includes(z.type),this.events.pipe((0,j.h)(W))}nextEventOfType(Ae){return this.eventsOfType(Ae).pipe((0,q.q)(1))}waitForOperationCompleted(Ae){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,j.h)(W=>W.nonce===Ae),(0,q.q)(1),(0,I.U)(W=>{if(void 0!==W.result)return W.result;throw new Error(W.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let dt=(()=>{class Fe{get isEnabled(){return this.sw.isEnabled}constructor(W){if(this.sw=W,this.pushManager=null,this.subscriptionChanges=new b.xQ,!W.isEnabled)return this.messages=w,this.notificationClicks=w,void(this.subscription=w);this.messages=this.sw.eventsOfType("PUSH").pipe((0,I.U)(He=>He.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,I.U)(He=>He.data)),this.pushManager=this.sw.registration.pipe((0,I.U)(He=>He.pushManager));const z=this.pushManager.pipe((0,F.w)(He=>He.getSubscription()));this.subscription=(0,f.T)(z,this.subscriptionChanges)}requestSubscription(W){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(Je));const z={userVisibleOnly:!0};let He=this.decodeBase64(W.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 z.applicationServerKey=Te,this.pushManager.pipe((0,F.w)(Be=>Be.subscribe(z)),(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,F.w)(z=>{if(null===z)throw new Error("Not subscribed to push notifications.");return z.unsubscribe().then(He=>{if(!He)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Je))}decodeBase64(W){return atob(W)}}return Fe.\u0275fac=function(W){return new(W||Fe)(e.\u0275\u0275inject(ot))},Fe.\u0275prov=e.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})(),Vt=(()=>{class Fe{get isEnabled(){return this.sw.isEnabled}constructor(W){if(this.sw=W,!W.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)(z=>"VERSION_READY"===z.type),(0,I.U)(z=>({type:"UPDATE_AVAILABLE",current:z.currentVersion,available:z.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(Je));const W=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:W},W)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Je));const W=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:W},W)}}return Fe.\u0275fac=function(W){return new(W||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,W,z){return()=>{if(!(0,n.isPlatformBrowser)(z)||!("serviceWorker"in navigator)||!1===W.enabled)return;let He;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof W.registrationStrategy)He=W.registrationStrategy();else{const[Be,...pt]=(W.registrationStrategy||"registerWhenStable:30000").split(":");switch(Be){case"registerImmediately":He=(0,d.of)(null);break;case"registerWithDelay":He=Yt(+pt[0]||0);break;case"registerWhenStable":He=pt[0]?(0,f.T)(Jt(Fe),Yt(+pt[0])):Jt(Fe);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${W.registrationStrategy}`)}}Fe.get(e.NgZone).runOutsideAngular(()=>He.pipe((0,q.q)(1)).subscribe(()=>navigator.serviceWorker.register(Ae,{scope:W.scope}).catch(Be=>console.error("Service worker registration failed with:",Be))))}}function Yt(Fe){return(0,d.of)(null).pipe(function ne(Fe,Ae=K.P){const z=function N(Fe){return Fe instanceof Date&&!isNaN(+Fe)}(Fe)?+Fe-Ae.now():Math.abs(Fe);return He=>He.lift(new Qe(z,Ae))}(Fe))}function Jt(Fe){return Fe.get(e.ApplicationRef).isStable.pipe((0,j.h)(W=>W))}function lt(Fe,Ae){return new ot((0,n.isPlatformBrowser)(Ae)&&!1!==Fe.enabled?navigator.serviceWorker:void 0)}let _t=(()=>{class Fe{static register(W,z={}){return{ngModule:Fe,providers:[{provide:ti,useValue:W},{provide:zt,useValue:z},{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(W){return new(W||Fe)},Fe.\u0275mod=e.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=e.\u0275\u0275defineInjector({providers:[dt,Vt]}),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 W=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(W.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 N{_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,W,z,He){this.toastId=_t,this.config=Fe,this.message=Ae,this.title=W,this.toastType=z,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 Qe 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 W;return W=Ae.create(_t.injector),this._appRef.attachView(W.hostView),this.setDisposeFn(()=>{this._appRef.detachView(W.hostView),W.destroy()}),Fe?this._hostDomElement.insertBefore(this._getComponentRootNode(W),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(W)),W}_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 Je=(()=>{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 W=this._document.createElement("div");return W.id="toast-container",W.classList.add(Fe),W.classList.add("toast-container"),Ae?Ae.getContainerElement().appendChild(W):this._overlayContainer.getContainerElement().appendChild(W),W}_createPortalHost(Fe){return new Qe(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,W,z,He){this.overlay=Ae,this._injector=W,this.sanitizer=z,this.ngZone=He,this.toastrConfig={...Fe.default,...Fe.config},Fe.config.iconClasses&&(this.toastrConfig.iconClasses={...Fe.default.iconClasses,...Fe.config.iconClasses})}show(Fe,Ae,W={},z=""){return this._preBuildNotification(z,Fe,Ae,this.applyConfig(W))}success(Fe,Ae,W={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Fe,Ae,this.applyConfig(W))}error(Fe,Ae,W={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Fe,Ae,this.applyConfig(W))}info(Fe,Ae,W={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Fe,Ae,this.applyConfig(W))}warning(Fe,Ae,W={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Fe,Ae,this.applyConfig(W))}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 W=this.toasts[this.currentlyActive].toastRef;W.isInactive()||(this.currentlyActive=this.currentlyActive+1,W.activate())}return!0}findDuplicate(Fe="",Ae="",W,z){const{includeTitleDuplicates:He}=this.toastrConfig;for(const Te of this.toasts)if((!He||He&&Te.title===Fe)&&Te.message===Ae)return Te.toastRef.onDuplicate(W,z),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,W,z){return z.onActivateTick?this.ngZone.run(()=>this._buildNotification(Fe,Ae,W,z)):this._buildNotification(Fe,Ae,W,z)}_buildNotification(Fe,Ae,W,z){if(!z.toastComponent)throw new Error("toastComponent required");const He=this.findDuplicate(W,Ae,this.toastrConfig.resetTimeoutOnDuplicate&&z.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&W||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(z.positionClass,this.overlayContainer);this.index=this.index+1;let pt=Ae;Ae&&z.enableHtml&&(pt=this.sanitizer.sanitize(n.SecurityContext.HTML,Ae));const Pe=new N(Be),Xe=new me(this.index,z,pt,W,Fe,Pe),ee=n.Injector.create({providers:[{provide:me,useValue:Xe}],parent:this._injector}),k=new X(z.toastComponent,ee),R=Be.attach(k,z.newestOnTop);Pe.componentInstance=R.instance;const be={toastId:this.index,title:W||"",message:Ae||"",toastRef:Pe,onShown:Pe.afterActivate(),onHidden:Pe.afterClosed(),onTap:Xe.onTap(),onAction:Xe.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(Je),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,W){this.toastrService=Fe,this.toastPackage=Ae,this.ngZone=W,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(z=>{this.duplicatesCount=z}),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,W){1&Ae&&n.\u0275\u0275listener("click",function(){return W.tapToast()})("mouseenter",function(){return W.stickAround()})("mouseleave",function(){return W.delayedHideToast()}),2&Ae&&(n.\u0275\u0275syntheticHostProperty("@flyInOut",W.state),n.\u0275\u0275classMap(W.toastClasses),n.\u0275\u0275styleProp("display",W.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,W){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",W.options.closeButton),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",W.title),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",W.message&&W.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",W.message&&!W.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",W.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})()},Vt=(lt={})=>(0,n.makeEnvironmentProviders)([{provide:ne,useValue:{default:dt,config:lt}}]);let zt=(()=>{class lt{static forRoot(Fe={}){return{ngModule:lt,providers:[Vt(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":"paasala","Jf":"5ea51057cff1d165a21cb971","xS":"5ea28b3024d7c0452aa980df","Xo":{"xY":"https://mapps.appmaker.lk"},"Bv":"Fitness","Qb":"https://chatbackend.appmaker.lk"}')}},G=>{G(G.s=7584)}]);