From 24fe751c642feae32c02a6e8674fb34405506e73 Mon Sep 17 00:00:00 2001 From: Juan Francisco Cisneros Windows Date: Fri, 27 Sep 2024 14:45:46 -0500 Subject: [PATCH] New Features: 1. Save the notification ID New Pages: Bugs Corrected: To Be Corrected: 0. On product delete, delete trace results 1. On product delete, delete flamegraph result 3. On add member do not delete github info --- www/2757.508e833600e6e474.js | 1 - www/2757.89e28904ff3cf268.js | 1 + www/5371.6ea8dd7ee408088a.js | 1 - www/628.8d5c8e57e2a37c54.js | 1 + www/index.html | 2 +- www/main.a3f1afd7f5aa5844.js | 1 - www/main.eb7a97eb9e5d005d.js | 1 + www/runtime.6d5efcb6f6ed5a9f.js | 1 - www/runtime.9493744c86af8f5d.js | 1 + 9 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 www/2757.508e833600e6e474.js create mode 100644 www/2757.89e28904ff3cf268.js delete mode 100644 www/5371.6ea8dd7ee408088a.js create mode 100644 www/628.8d5c8e57e2a37c54.js delete mode 100644 www/main.a3f1afd7f5aa5844.js create mode 100644 www/main.eb7a97eb9e5d005d.js delete mode 100644 www/runtime.6d5efcb6f6ed5a9f.js create mode 100644 www/runtime.9493744c86af8f5d.js diff --git a/www/2757.508e833600e6e474.js b/www/2757.508e833600e6e474.js deleted file mode 100644 index 6f658a2..0000000 --- a/www/2757.508e833600e6e474.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2757],{5553:(v,g,o)=>{o.d(g,{h:()=>s});var c=o(177),r=o(7863),m=o(4438);let s=(()=>{var i;class t{}return(i=t).\u0275fac=function(p){return new(p||i)},i.\u0275mod=m.$C({type:i}),i.\u0275inj=m.G2t({imports:[c.MD,r.bv]}),t})()},8453:(v,g,o)=>{o.d(g,{W:()=>m});var c=o(4438),r=o(7863);let m=(()=>{var s;class i{constructor(){this.title="Title"}ngOnInit(){}}return(s=i).\u0275fac=function(d){return new(d||s)},s.\u0275cmp=c.VBU({type:s,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(d,p){1&d&&(c.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),c.EFF(3),c.k0s()()()),2&d&&(c.R7$(3),c.JRh(p.title))},dependencies:[r.hU,r.ln]}),i})()},2757:(v,g,o)=>{o.r(g),o.d(g,{HomePageModule:()=>x});var c=o(177),r=o(7863),m=o(4341),s=o(7650),i=o(467),t=o(4438),d=o(4796),p=o(6241),P=o(385),M=o(8453);function C(n,a){if(1&n){const u=t.RV6();t.j41(0,"ion-col",6)(1,"ion-card",7),t.bIt("click",function(){const l=t.eBV(u).$implicit,f=t.XpG();return t.Njj(f.goToProduct(l.productObjective))}),t.j41(2,"h1",8),t.EFF(3),t.k0s()()()}if(2&n){const u=a.$implicit;t.R7$(3),t.JRh(u.productObjective)}}const y=[{path:"",component:(()=>{var n;class a{constructor(e,l,f,h){this.authService=e,this.router=l,this.productService=f,this.loadingCtrl=h,this.products=[]}ionViewWillEnter(){var e=this;return(0,i.A)(function*(){try{yield e.showLoading();const l=localStorage.getItem("user");if(!l)return;const h=JSON.parse(l).orgName;e.products=yield e.productService.getProducts(h),0===e.products.length&&e.products.push({productObjective:"No products found"}),console.log(e.products),yield e.hideLoading()}catch(l){console.log(l)}})()}logout(){var e=this;return(0,i.A)(function*(){yield e.authService.logoutUser(),yield e.router.navigate(["/login"])})()}showLoading(){var e=this;return(0,i.A)(function*(){yield(yield e.loadingCtrl.create({})).present()})()}hideLoading(){var e=this;return(0,i.A)(function*(){yield e.loadingCtrl.dismiss()})()}goToProduct(e){this.router.navigate(["/graph-data-for"],{queryParams:{product:e}})}subscribe(){webpushr("fetch_id",function(e){console.log("webpushr subscriber id: "+e)})}}return(n=a).\u0275fac=function(e){return new(e||n)(t.rXU(d.u),t.rXU(s.Ix),t.rXU(p.b),t.rXU(r.Xi))},n.\u0275cmp=t.VBU({type:n,selectors:[["app-home"]],decls:10,vars:4,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4","class","flex flex-row justify-center",4,"ngFor","ngForOf"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-center"],[1,"w-full",3,"click"],["size","12","size-md","4","size-lg","4",1,"flex","flex-row","justify-center"],[1,"w-full","h-60","p-6","flex","flex-col","justify-center","items-center",3,"click"],[1,"text-6xl","font-bold","text-blue-500"]],template:function(e,l){1&e&&(t.nrm(0,"app-header",0),t.j41(1,"ion-content",1)(2,"ion-grid"),t.nrm(3,"app-title",0),t.j41(4,"ion-row",2),t.DNE(5,C,4,1,"ion-col",3),t.k0s(),t.j41(6,"ion-row",2)(7,"ion-col",4)(8,"ion-button",5),t.bIt("click",function(){return l.subscribe()}),t.EFF(9,"Subscribe"),t.k0s()()()()()),2&e&&(t.Y8G("title","Home"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("title","View Analytics Of Product ..."),t.R7$(2),t.Y8G("ngForOf",l.products))},dependencies:[c.Sq,r.Jm,r.b_,r.hU,r.W9,r.lO,r.ln,P.l,M.W],styles:["#container[_ngcontent-%COMP%]{text-align:center;position:absolute;left:0;right:0;top:50%;transform:translateY(-50%)}#container[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:20px;line-height:26px}#container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;color:#8c8c8c;margin:0}#container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}"]}),a})()}];let O=(()=>{var n;class a{}return(n=a).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[s.iI.forChild(y),s.iI]}),a})();var _=o(5553);let x=(()=>{var n;class a{}return(n=a).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[c.MD,m.YN,r.bv,O,_.h]}),a})()}}]); \ No newline at end of file diff --git a/www/2757.89e28904ff3cf268.js b/www/2757.89e28904ff3cf268.js new file mode 100644 index 0000000..4481068 --- /dev/null +++ b/www/2757.89e28904ff3cf268.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2757],{5553:(v,g,e)=>{e.d(g,{h:()=>c});var l=e(177),r=e(7863),m=e(4438);let c=(()=>{var i;class t{}return(i=t).\u0275fac=function(p){return new(p||i)},i.\u0275mod=m.$C({type:i}),i.\u0275inj=m.G2t({imports:[l.MD,r.bv]}),t})()},8453:(v,g,e)=>{e.d(g,{W:()=>m});var l=e(4438),r=e(7863);let m=(()=>{var c;class i{constructor(){this.title="Title"}ngOnInit(){}}return(c=i).\u0275fac=function(d){return new(d||c)},c.\u0275cmp=l.VBU({type:c,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(d,p){1&d&&(l.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),l.EFF(3),l.k0s()()()),2&d&&(l.R7$(3),l.JRh(p.title))},dependencies:[r.hU,r.ln]}),i})()},2757:(v,g,e)=>{e.r(g),e.d(g,{HomePageModule:()=>E});var l=e(177),r=e(7863),m=e(4341),c=e(7650),i=e(467),t=e(4438),d=e(4796),p=e(6241),P=e(385),M=e(8453);function C(n,a){if(1&n){const u=t.RV6();t.j41(0,"ion-col",4)(1,"ion-card",5),t.bIt("click",function(){const s=t.eBV(u).$implicit,f=t.XpG();return t.Njj(f.goToProduct(s.productObjective))}),t.j41(2,"h1",6),t.EFF(3),t.k0s()()()}if(2&n){const u=a.$implicit;t.R7$(3),t.JRh(u.productObjective)}}const y=[{path:"",component:(()=>{var n;class a{constructor(o,s,f,h){this.authService=o,this.router=s,this.productService=f,this.loadingCtrl=h,this.products=[]}ionViewWillEnter(){var o=this;return(0,i.A)(function*(){try{yield o.showLoading();const s=localStorage.getItem("user");if(!s)return;const h=JSON.parse(s).orgName;o.products=yield o.productService.getProducts(h),0===o.products.length&&o.products.push({productObjective:"No products found"}),console.log(o.products),yield o.hideLoading()}catch(s){console.log(s)}})()}logout(){var o=this;return(0,i.A)(function*(){yield o.authService.logoutUser(),yield o.router.navigate(["/login"])})()}showLoading(){var o=this;return(0,i.A)(function*(){yield(yield o.loadingCtrl.create({})).present()})()}hideLoading(){var o=this;return(0,i.A)(function*(){yield o.loadingCtrl.dismiss()})()}goToProduct(o){this.router.navigate(["/graph-data-for"],{queryParams:{product:o}})}}return(n=a).\u0275fac=function(o){return new(o||n)(t.rXU(d.u),t.rXU(c.Ix),t.rXU(p.b),t.rXU(r.Xi))},n.\u0275cmp=t.VBU({type:n,selectors:[["app-home"]],decls:6,vars:4,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4","class","flex flex-row justify-center",4,"ngFor","ngForOf"],["size","12","size-md","4","size-lg","4",1,"flex","flex-row","justify-center"],[1,"w-full","h-60","p-6","flex","flex-col","justify-center","items-center",3,"click"],[1,"text-6xl","font-bold","text-blue-500"]],template:function(o,s){1&o&&(t.nrm(0,"app-header",0),t.j41(1,"ion-content",1)(2,"ion-grid"),t.nrm(3,"app-title",0),t.j41(4,"ion-row",2),t.DNE(5,C,4,1,"ion-col",3),t.k0s()()()),2&o&&(t.Y8G("title","Home"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("title","View Analytics Of Product ..."),t.R7$(2),t.Y8G("ngForOf",s.products))},dependencies:[l.Sq,r.b_,r.hU,r.W9,r.lO,r.ln,P.l,M.W],styles:["#container[_ngcontent-%COMP%]{text-align:center;position:absolute;left:0;right:0;top:50%;transform:translateY(-50%)}#container[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:20px;line-height:26px}#container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;color:#8c8c8c;margin:0}#container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}"]}),a})()}];let O=(()=>{var n;class a{}return(n=a).\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[c.iI.forChild(y),c.iI]}),a})();var x=e(5553);let E=(()=>{var n;class a{}return(n=a).\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[l.MD,m.YN,r.bv,O,x.h]}),a})()}}]); \ No newline at end of file diff --git a/www/5371.6ea8dd7ee408088a.js b/www/5371.6ea8dd7ee408088a.js deleted file mode 100644 index a9f4008..0000000 --- a/www/5371.6ea8dd7ee408088a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5371],{5553:(f,m,o)=>{o.d(m,{h:()=>s});var g=o(177),d=o(7863),i=o(4438);let s=(()=>{var l;class e{}return(l=e).\u0275fac=function(y){return new(y||l)},l.\u0275mod=i.$C({type:l}),l.\u0275inj=i.G2t({imports:[g.MD,d.bv]}),e})()},8453:(f,m,o)=>{o.d(m,{W:()=>i});var g=o(4438),d=o(7863);let i=(()=>{var s;class l{constructor(){this.title="Title"}ngOnInit(){}}return(s=l).\u0275fac=function(u){return new(u||s)},s.\u0275cmp=g.VBU({type:s,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(u,y){1&u&&(g.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),g.EFF(3),g.k0s()()()),2&u&&(g.R7$(3),g.JRh(y.title))},dependencies:[d.hU,d.ln]}),l})()},5371:(f,m,o)=>{o.r(m),o.d(m,{SettingsPageModule:()=>E});var g=o(177),d=o(4341),i=o(7863),s=o(7650),l=o(467),e=o(4438),u=o(4796),y=o(201),M=o(385),v=o(8453);const F=[{path:"",component:(()=>{var r;class h{constructor(t,n,c,a,C){this.authService=t,this.router=n,this.alertCtrl=c,this.githubService=a,this.loadingCtrl=C,this.gitKey="",this.repoName="",this.branchName="",this.owner="",this.user={},this.orgname="",this.version="1.10.200"}ngOnInit(){}ionViewWillEnter(){var t=this;return(0,l.A)(function*(){t.user=localStorage.getItem("user")?JSON.parse(localStorage.getItem("user")||"{}"):null,t.user?(t.orgname=t.user.orgName||"",yield t.getSyncRepo()):yield t.showAlert("No user found","Error")})()}logout(){var t=this;return(0,l.A)(function*(){yield t.authService.logoutUser(),yield t.router.navigate(["/login"])})()}getSyncRepo(){var t=this;return(0,l.A)(function*(){yield t.showLoading();const n=yield t.githubService.getSyncRepo(t.orgname);n&&(t.gitKey=n.key,t.repoName=n.repo,t.branchName=n.branch,t.owner=n.owner),yield t.hideLoading()})()}syncRepo(){var t=this;return(0,l.A)(function*(){yield t.showLoading(),t.gitKey&&t.repoName&&t.branchName&&t.owner&&""!==t.gitKey&&""!==t.repoName&&""!==t.branchName&&""!==t.owner?(yield t.githubService.syncRepo(t.orgname,t.gitKey,t.repoName,t.branchName,t.owner),yield t.hideLoading()):yield t.showAlert("Please fill in all fields","Error")})()}showAlert(t,n){var c=this;return(0,l.A)(function*(){yield(yield c.alertCtrl.create({header:n,message:t,buttons:["OK"]})).present()})()}showLoading(){var t=this;return(0,l.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,l.A)(function*(){yield t.loadingCtrl.dismiss()})()}notify(){Notification.requestPermission().then(function(t){console.log("granted"===t?"Permission granted for notifications":"Permission denied for notifications")})}}return(r=h).\u0275fac=function(t){return new(t||r)(e.rXU(u.u),e.rXU(s.Ix),e.rXU(i.hG),e.rXU(y.p),e.rXU(i.Xi))},r.\u0275cmp=e.VBU({type:r,selectors:[["app-settings"]],decls:64,vars:9,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-center"],["color","danger",1,"min-w-full",3,"click"],["size","12","size-md","12","size-lg","12",1,""],[1,"p-5"],[1,"text-2xl"],[1,"text-white"],["href","https://github.com/settings/tokens",1,"text-blue-500"],["placeholder","Enter your key here...",1,"text-white",3,"ngModelChange","ngModel"],["placeholder","Enter your repo name here...",1,"text-white",3,"ngModelChange","ngModel"],["placeholder","Enter your branch name here...",1,"text-white",3,"ngModelChange","ngModel"],["color","primary",1,"min-w-full",3,"click"],["size","12",1,"flex","flex-row","justify-end","items-center"],[1,"text-sm"]],template:function(t,n){1&t&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"ion-grid"),e.nrm(3,"app-title",0),e.j41(4,"ion-row",2)(5,"ion-col",3)(6,"ion-button",4),e.bIt("click",function(){return n.logout()}),e.EFF(7,"Logout"),e.k0s()()(),e.nrm(8,"app-title",0),e.j41(9,"ion-row",2)(10,"ion-col",5)(11,"ion-card",6)(12,"ion-card",6)(13,"ion-card-title",7),e.EFF(14,"1. Add a GitHub Key"),e.k0s(),e.j41(15,"ion-card-content")(16,"p",8),e.EFF(17," Add a GitHub key to sync with your GitHub repo. You will be able to create tests with DevProbeAI. "),e.j41(18,"a",9),e.EFF(19,"Get A GitHub Key Here !!!"),e.k0s()()(),e.j41(20,"ion-card")(21,"ion-card-content")(22,"ion-label"),e.EFF(23,"GitHub Key"),e.k0s(),e.j41(24,"ion-input",10),e.mxI("ngModelChange",function(a){return e.DH7(n.gitKey,a)||(n.gitKey=a),a}),e.k0s()()()(),e.j41(25,"ion-card",6)(26,"ion-card-title",7),e.EFF(27,"2. Repo Name"),e.k0s(),e.j41(28,"ion-card-content")(29,"p",8),e.EFF(30," Add the name of the repo you want to sync with DevProbeAI. "),e.k0s()(),e.j41(31,"ion-card")(32,"ion-card-content")(33,"ion-label"),e.EFF(34,"Repo Name"),e.k0s(),e.j41(35,"ion-input",11),e.mxI("ngModelChange",function(a){return e.DH7(n.repoName,a)||(n.repoName=a),a}),e.k0s()()()(),e.j41(36,"ion-card",6)(37,"ion-card-title",7),e.EFF(38,"3. Branch Name"),e.k0s(),e.j41(39,"ion-card-content")(40,"p",8),e.EFF(41," Add the name of the branch you want to sync with DevProbeAI. "),e.k0s()(),e.j41(42,"ion-card")(43,"ion-card-content")(44,"ion-label"),e.EFF(45,"Branch Name"),e.k0s(),e.j41(46,"ion-input",12),e.mxI("ngModelChange",function(a){return e.DH7(n.branchName,a)||(n.branchName=a),a}),e.k0s()()()(),e.j41(47,"ion-card",6)(48,"ion-card-title",7),e.EFF(49,"4. Owner Name"),e.k0s(),e.j41(50,"ion-card-content")(51,"p",8),e.EFF(52," Add the name of the owner of the repo you want to sync with DevProbeAI. "),e.k0s()(),e.j41(53,"ion-card")(54,"ion-card-content")(55,"ion-label"),e.EFF(56,"Owner Name"),e.k0s(),e.j41(57,"ion-input",12),e.mxI("ngModelChange",function(a){return e.DH7(n.owner,a)||(n.owner=a),a}),e.k0s()()()(),e.j41(58,"ion-button",13),e.bIt("click",function(){return n.syncRepo()}),e.EFF(59,"Sync Repo"),e.k0s()()()(),e.j41(60,"ion-row")(61,"ion-col",14)(62,"h1",15),e.EFF(63),e.k0s()()()()()),2&t&&(e.Y8G("title","Settings"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Account SingOut"),e.R7$(5),e.Y8G("title","Sync GitHub Repo"),e.R7$(16),e.R50("ngModel",n.gitKey),e.R7$(11),e.R50("ngModel",n.repoName),e.R7$(11),e.R50("ngModel",n.branchName),e.R7$(11),e.R50("ngModel",n.owner),e.R7$(6),e.SpI("Version: ",n.version,""))},dependencies:[d.BC,d.vS,i.Jm,i.b_,i.I9,i.tN,i.hU,i.W9,i.lO,i.$w,i.he,i.ln,i.Gw,M.l,v.W]}),h})()}];let P=(()=>{var r;class h{}return(r=h).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[s.iI.forChild(F),s.iI]}),h})();var S=o(5553);let E=(()=>{var r;class h{}return(r=h).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[g.MD,d.YN,i.bv,P,S.h]}),h})()}}]); \ No newline at end of file diff --git a/www/628.8d5c8e57e2a37c54.js b/www/628.8d5c8e57e2a37c54.js new file mode 100644 index 0000000..318ab47 --- /dev/null +++ b/www/628.8d5c8e57e2a37c54.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[628],{5553:(b,p,i)=>{i.d(p,{h:()=>c});var g=i(177),d=i(7863),s=i(4438);let c=(()=>{var a;class e{}return(a=e).\u0275fac=function(f){return new(f||a)},a.\u0275mod=s.$C({type:a}),a.\u0275inj=s.G2t({imports:[g.MD,d.bv]}),e})()},8453:(b,p,i)=>{i.d(p,{W:()=>s});var g=i(4438),d=i(7863);let s=(()=>{var c;class a{constructor(){this.title="Title"}ngOnInit(){}}return(c=a).\u0275fac=function(h){return new(h||c)},c.\u0275cmp=g.VBU({type:c,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(h,f){1&h&&(g.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),g.EFF(3),g.k0s()()()),2&h&&(g.R7$(3),g.JRh(f.title))},dependencies:[d.hU,d.ln]}),a})()},628:(b,p,i)=>{i.r(p),i.d(p,{SettingsPageModule:()=>C});var g=i(177),d=i(4341),s=i(7863),c=i(7650),a=i(467),e=i(4438),h=i(4796),f=i(201),y=i(4262);let F=(()=>{var o;class u{constructor(t){this.firestore=t}saveNotificationID(t,n){var l=this;return(0,a.A)(function*(){const r=(0,y.H9)(l.firestore,"users",t.uid),v=yield(0,y.x7)(r);if(v.exists()){const S=v.data();return S.notificationID=n,yield(0,y.BN)(r,S),!0}return console.log("No such document!"),!1})()}}return(o=u).\u0275fac=function(t){return new(t||o)(e.KVO(y._7))},o.\u0275prov=e.jDH({token:o,factory:o.\u0275fac,providedIn:"root"}),u})();var M=i(385),w=i(8453);const P=[{path:"",component:(()=>{var o;class u{constructor(t,n,l,r,v,S){this.authService=t,this.router=n,this.alertCtrl=l,this.githubService=r,this.loadingCtrl=v,this.notificationService=S,this.gitKey="",this.repoName="",this.branchName="",this.owner="",this.user={},this.orgname="",this.version="1.10.200"}ngOnInit(){}ionViewWillEnter(){var t=this;return(0,a.A)(function*(){t.user=localStorage.getItem("user")?JSON.parse(localStorage.getItem("user")||"{}"):null,t.user?(t.orgname=t.user.orgName||"",yield t.getSyncRepo()):yield t.showAlert("No user found","Error")})()}logout(){var t=this;return(0,a.A)(function*(){yield t.authService.logoutUser(),yield t.router.navigate(["/login"])})()}getSyncRepo(){var t=this;return(0,a.A)(function*(){yield t.showLoading();const n=yield t.githubService.getSyncRepo(t.orgname);n&&(t.gitKey=n.key,t.repoName=n.repo,t.branchName=n.branch,t.owner=n.owner),yield t.hideLoading()})()}syncRepo(){var t=this;return(0,a.A)(function*(){yield t.showLoading(),t.gitKey&&t.repoName&&t.branchName&&t.owner&&""!==t.gitKey&&""!==t.repoName&&""!==t.branchName&&""!==t.owner?(yield t.githubService.syncRepo(t.orgname,t.gitKey,t.repoName,t.branchName,t.owner),yield t.hideLoading()):yield t.showAlert("Please fill in all fields","Error")})()}showAlert(t,n){var l=this;return(0,a.A)(function*(){yield(yield l.alertCtrl.create({header:n,message:t,buttons:["OK"]})).present()})()}showLoading(){var t=this;return(0,a.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,a.A)(function*(){yield t.loadingCtrl.dismiss()})()}notify(){Notification.requestPermission().then(function(t){console.log("granted"===t?"Permission granted for notifications":"Permission denied for notifications")})}subscribe(){var t=this;return(0,a.A)(function*(){webpushr("fetch_id",function(){var n=(0,a.A)(function*(l){console.log("webpushr subscriber id: "+l),yield t.notificationService.saveNotificationID(t.user,l)});return function(l){return n.apply(this,arguments)}}())})()}}return(o=u).\u0275fac=function(t){return new(t||o)(e.rXU(h.u),e.rXU(c.Ix),e.rXU(s.hG),e.rXU(f.p),e.rXU(s.Xi),e.rXU(F))},o.\u0275cmp=e.VBU({type:o,selectors:[["app-settings"]],decls:72,vars:10,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-center"],["color","danger",1,"min-w-full",3,"click"],["size","12","size-md","12","size-lg","12",1,""],[1,"p-5"],[1,"text-2xl"],[1,"text-white"],["href","https://github.com/settings/tokens",1,"text-blue-500"],["placeholder","Enter your key here...",1,"text-white",3,"ngModelChange","ngModel"],["placeholder","Enter your repo name here...",1,"text-white",3,"ngModelChange","ngModel"],["placeholder","Enter your branch name here...",1,"text-white",3,"ngModelChange","ngModel"],["color","primary",1,"min-w-full",3,"click"],[1,"w-full",3,"click"],["size","12",1,"flex","flex-row","justify-end","items-center"],[1,"text-sm"]],template:function(t,n){1&t&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"ion-grid"),e.nrm(3,"app-title",0),e.j41(4,"ion-row",2)(5,"ion-col",3)(6,"ion-button",4),e.bIt("click",function(){return n.logout()}),e.EFF(7,"Logout"),e.k0s()()(),e.nrm(8,"app-title",0),e.j41(9,"ion-row",2)(10,"ion-col",5)(11,"ion-card",6)(12,"ion-card",6)(13,"ion-card-title",7),e.EFF(14,"1. Add a GitHub Key"),e.k0s(),e.j41(15,"ion-card-content")(16,"p",8),e.EFF(17," Add a GitHub key to sync with your GitHub repo. You will be able to create tests with DevProbeAI. "),e.j41(18,"a",9),e.EFF(19,"Get A GitHub Key Here !!!"),e.k0s()()(),e.j41(20,"ion-card")(21,"ion-card-content")(22,"ion-label"),e.EFF(23,"GitHub Key"),e.k0s(),e.j41(24,"ion-input",10),e.mxI("ngModelChange",function(r){return e.DH7(n.gitKey,r)||(n.gitKey=r),r}),e.k0s()()()(),e.j41(25,"ion-card",6)(26,"ion-card-title",7),e.EFF(27,"2. Repo Name"),e.k0s(),e.j41(28,"ion-card-content")(29,"p",8),e.EFF(30," Add the name of the repo you want to sync with DevProbeAI. "),e.k0s()(),e.j41(31,"ion-card")(32,"ion-card-content")(33,"ion-label"),e.EFF(34,"Repo Name"),e.k0s(),e.j41(35,"ion-input",11),e.mxI("ngModelChange",function(r){return e.DH7(n.repoName,r)||(n.repoName=r),r}),e.k0s()()()(),e.j41(36,"ion-card",6)(37,"ion-card-title",7),e.EFF(38,"3. Branch Name"),e.k0s(),e.j41(39,"ion-card-content")(40,"p",8),e.EFF(41," Add the name of the branch you want to sync with DevProbeAI. "),e.k0s()(),e.j41(42,"ion-card")(43,"ion-card-content")(44,"ion-label"),e.EFF(45,"Branch Name"),e.k0s(),e.j41(46,"ion-input",12),e.mxI("ngModelChange",function(r){return e.DH7(n.branchName,r)||(n.branchName=r),r}),e.k0s()()()(),e.j41(47,"ion-card",6)(48,"ion-card-title",7),e.EFF(49,"4. Owner Name"),e.k0s(),e.j41(50,"ion-card-content")(51,"p",8),e.EFF(52," Add the name of the owner of the repo you want to sync with DevProbeAI. "),e.k0s()(),e.j41(53,"ion-card")(54,"ion-card-content")(55,"ion-label"),e.EFF(56,"Owner Name"),e.k0s(),e.j41(57,"ion-input",12),e.mxI("ngModelChange",function(r){return e.DH7(n.owner,r)||(n.owner=r),r}),e.k0s()()()(),e.j41(58,"ion-button",13),e.bIt("click",function(){return n.syncRepo()}),e.EFF(59,"Sync Repo"),e.k0s()()()(),e.nrm(60,"app-title",0),e.j41(61,"ion-row",2)(62,"ion-col",5)(63,"p"),e.EFF(64,"Receive push notifications when new data is available. Like new tests, incidents, etc."),e.k0s()(),e.j41(65,"ion-col",3)(66,"ion-button",14),e.bIt("click",function(){return n.subscribe()}),e.EFF(67,"Subscribe"),e.k0s()()(),e.j41(68,"ion-row")(69,"ion-col",15)(70,"h1",16),e.EFF(71),e.k0s()()()()()),2&t&&(e.Y8G("title","Settings"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Account SingOut"),e.R7$(5),e.Y8G("title","Sync GitHub Repo"),e.R7$(16),e.R50("ngModel",n.gitKey),e.R7$(11),e.R50("ngModel",n.repoName),e.R7$(11),e.R50("ngModel",n.branchName),e.R7$(11),e.R50("ngModel",n.owner),e.R7$(3),e.Y8G("title","Receive Push Notifications"),e.R7$(11),e.SpI("Version: ",n.version,""))},dependencies:[d.BC,d.vS,s.Jm,s.b_,s.I9,s.tN,s.hU,s.W9,s.lO,s.$w,s.he,s.ln,s.Gw,M.l,w.W]}),u})()}];let _=(()=>{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[c.iI.forChild(P),c.iI]}),u})();var E=i(5553);let C=(()=>{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[g.MD,d.YN,s.bv,_,E.h]}),u})()}}]); \ No newline at end of file diff --git a/www/index.html b/www/index.html index 6730c99..7ba6dec 100644 --- a/www/index.html +++ b/www/index.html @@ -42,6 +42,6 @@ - + diff --git a/www/main.a3f1afd7f5aa5844.js b/www/main.a3f1afd7f5aa5844.js deleted file mode 100644 index 7e59fa6..0000000 --- a/www/main.a3f1afd7f5aa5844.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(Tn,gt,D)=>{"use strict";D.d(gt,{Am:()=>gn,FA:()=>Le,Fy:()=>ge,I9:()=>Sr,Im:()=>ir,Ku:()=>ut,T9:()=>mt,Tj:()=>_t,Uj:()=>Je,XA:()=>Me,ZQ:()=>Ue,bD:()=>Ot,cY:()=>Ye,eX:()=>X,g:()=>ve,hp:()=>Mn,jZ:()=>Fe,lT:()=>tt,lV:()=>vn,nr:()=>we,sr:()=>Rt,tD:()=>mn,u:()=>Se,yU:()=>Et,zW:()=>H});const Oe=function(ce){const Ee=[];let He=0;for(let Lt=0;Lt>6|192,Ee[He++]=63&ie|128):55296==(64512&ie)&&Lt+1>18|240,Ee[He++]=ie>>12&63|128,Ee[He++]=ie>>6&63|128,Ee[He++]=63&ie|128):(Ee[He++]=ie>>12|224,Ee[He++]=ie>>6&63|128,Ee[He++]=63&ie|128)}return Ee},ue={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(ce,Ee){if(!Array.isArray(ce))throw Error("encodeByteArray takes an array as a parameter");this.init_();const He=Ee?this.byteToCharMapWebSafe_:this.byteToCharMap_,Lt=[];for(let ie=0;ie>6,tr=63&_n;tn||(tr=64,lt||(Cn=64)),Lt.push(He[ct>>2],He[(3&ct)<<4|Gt>>4],He[Cn],He[tr])}return Lt.join("")},encodeString(ce,Ee){return this.HAS_NATIVE_SUPPORT&&!Ee?btoa(ce):this.encodeByteArray(Oe(ce),Ee)},decodeString(ce,Ee){return this.HAS_NATIVE_SUPPORT&&!Ee?atob(ce):function(ce){const Ee=[];let He=0,Lt=0;for(;He191&&ie<224){const ct=ce[He++];Ee[Lt++]=String.fromCharCode((31&ie)<<6|63&ct)}else if(ie>239&&ie<365){const tn=((7&ie)<<18|(63&ce[He++])<<12|(63&ce[He++])<<6|63&ce[He++])-65536;Ee[Lt++]=String.fromCharCode(55296+(tn>>10)),Ee[Lt++]=String.fromCharCode(56320+(1023&tn))}else{const ct=ce[He++],lt=ce[He++];Ee[Lt++]=String.fromCharCode((15&ie)<<12|(63&ct)<<6|63<)}}return Ee.join("")}(this.decodeStringToByteArray(ce,Ee))},decodeStringToByteArray(ce,Ee){this.init_();const He=Ee?this.charToByteMapWebSafe_:this.charToByteMap_,Lt=[];for(let ie=0;ie>4),64!==_n&&(Lt.push(Gt<<4&240|_n>>2),64!==hn&&Lt.push(_n<<6&192|hn))}return Lt},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ce=0;ce=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ce)]=ce,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ce)]=ce)}}};class oe extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Je=function(ce){return function(ce){const Ee=Oe(ce);return ue.encodeByteArray(Ee,!0)}(ce).replace(/\./g,"")},Se=function(ce){try{return ue.decodeString(ce,!0)}catch(Ee){console.error("base64Decode failed: ",Ee)}return null},yt=()=>{try{return function qe(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const ce=process.env.__FIREBASE_DEFAULTS__;return ce?JSON.parse(ce):void 0})()||(()=>{if(typeof document>"u")return;let ce;try{ce=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const Ee=ce&&Se(ce[1]);return Ee&&JSON.parse(Ee)})()}catch(ce){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ce}`)}},_t=ce=>{var Ee,He;return null===(He=null===(Ee=yt())||void 0===Ee?void 0:Ee.emulatorHosts)||void 0===He?void 0:He[ce]},Et=ce=>{const Ee=_t(ce);if(!Ee)return;const He=Ee.lastIndexOf(":");if(He<=0||He+1===Ee.length)throw new Error(`Invalid host ${Ee} with no separate hostname and port!`);const Lt=parseInt(Ee.substring(He+1),10);return"["===Ee[0]?[Ee.substring(1,He-1),Lt]:[Ee.substring(0,He),Lt]},mt=()=>{var ce;return null===(ce=yt())||void 0===ce?void 0:ce.config},Me=ce=>{var Ee;return null===(Ee=yt())||void 0===Ee?void 0:Ee[`_${ce}`]};class Ye{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((Ee,He)=>{this.resolve=Ee,this.reject=He})}wrapCallback(Ee){return(He,Lt)=>{He?this.reject(He):this.resolve(Lt),"function"==typeof Ee&&(this.promise.catch(()=>{}),1===Ee.length?Ee(He):Ee(He,Lt))}}}function ge(ce,Ee){if(ce.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Lt=Ee||"demo-project",ie=ce.iat||0,ct=ce.sub||ce.user_id;if(!ct)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const lt=Object.assign({iss:`https://securetoken.google.com/${Lt}`,aud:Lt,iat:ie,exp:ie+3600,auth_time:ie,sub:ct,user_id:ct,firebase:{sign_in_provider:"custom",identities:{}}},ce);return[Je(JSON.stringify({alg:"none",type:"JWT"})),Je(JSON.stringify(lt)),""].join(".")}function Ue(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Fe(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ue())}function Rt(){const ce="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ce&&void 0!==ce.id}function vn(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function tt(){const ce=Ue();return ce.indexOf("MSIE ")>=0||ce.indexOf("Trident/")>=0}function we(){return!function xe(){var ce;const Ee=null===(ce=yt())||void 0===ce?void 0:ce.forceEnvironment;if("node"===Ee)return!0;if("browser"===Ee)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function H(){try{return"object"==typeof indexedDB}catch{return!1}}function X(){return new Promise((ce,Ee)=>{try{let He=!0;const Lt="validate-browser-context-for-indexeddb-analytics-module",ie=self.indexedDB.open(Lt);ie.onsuccess=()=>{ie.result.close(),He||self.indexedDB.deleteDatabase(Lt),ce(!0)},ie.onupgradeneeded=()=>{He=!1},ie.onerror=()=>{var ct;Ee((null===(ct=ie.error)||void 0===ct?void 0:ct.message)||"")}}catch(He){Ee(He)}})}class ve extends Error{constructor(Ee,He,Lt){super(He),this.code=Ee,this.customData=Lt,this.name="FirebaseError",Object.setPrototypeOf(this,ve.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Le.prototype.create)}}class Le{constructor(Ee,He,Lt){this.service=Ee,this.serviceName=He,this.errors=Lt}create(Ee,...He){const Lt=He[0]||{},ie=`${this.service}/${Ee}`,ct=this.errors[Ee],lt=ct?function _e(ce,Ee){return ce.replace(Wt,(He,Lt)=>{const ie=Ee[Lt];return null!=ie?String(ie):`<${Lt}?>`})}(ct,Lt):"Error";return new ve(ie,`${this.serviceName}: ${lt} (${ie}).`,Lt)}}const Wt=/\{\$([^}]+)}/g;function ir(ce){for(const Ee in ce)if(Object.prototype.hasOwnProperty.call(ce,Ee))return!1;return!0}function Ot(ce,Ee){if(ce===Ee)return!0;const He=Object.keys(ce),Lt=Object.keys(Ee);for(const ie of He){if(!Lt.includes(ie))return!1;const ct=ce[ie],lt=Ee[ie];if(zt(ct)&&zt(lt)){if(!Ot(ct,lt))return!1}else if(ct!==lt)return!1}for(const ie of Lt)if(!He.includes(ie))return!1;return!0}function zt(ce){return null!==ce&&"object"==typeof ce}function gn(ce){const Ee=[];for(const[He,Lt]of Object.entries(ce))Array.isArray(Lt)?Lt.forEach(ie=>{Ee.push(encodeURIComponent(He)+"="+encodeURIComponent(ie))}):Ee.push(encodeURIComponent(He)+"="+encodeURIComponent(Lt));return Ee.length?"&"+Ee.join("&"):""}function Sr(ce){const Ee={};return ce.replace(/^\?/,"").split("&").forEach(Lt=>{if(Lt){const[ie,ct]=Lt.split("=");Ee[decodeURIComponent(ie)]=decodeURIComponent(ct)}}),Ee}function Mn(ce){const Ee=ce.indexOf("?");if(!Ee)return"";const He=ce.indexOf("#",Ee);return ce.substring(Ee,He>0?He:void 0)}function mn(ce,Ee){const He=new en(ce,Ee);return He.subscribe.bind(He)}class en{constructor(Ee,He){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=He,this.task.then(()=>{Ee(this)}).catch(Lt=>{this.error(Lt)})}next(Ee){this.forEachObserver(He=>{He.next(Ee)})}error(Ee){this.forEachObserver(He=>{He.error(Ee)}),this.close(Ee)}complete(){this.forEachObserver(Ee=>{Ee.complete()}),this.close()}subscribe(Ee,He,Lt){let ie;if(void 0===Ee&&void 0===He&&void 0===Lt)throw new Error("Missing Observer.");ie=function Ir(ce,Ee){if("object"!=typeof ce||null===ce)return!1;for(const He of Ee)if(He in ce&&"function"==typeof ce[He])return!0;return!1}(Ee,["next","error","complete"])?Ee:{next:Ee,error:He,complete:Lt},void 0===ie.next&&(ie.next=Nr),void 0===ie.error&&(ie.error=Nr),void 0===ie.complete&&(ie.complete=Nr);const ct=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?ie.error(this.finalError):ie.complete()}catch{}}),this.observers.push(ie),ct}unsubscribeOne(Ee){void 0===this.observers||void 0===this.observers[Ee]||(delete this.observers[Ee],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(Ee){if(!this.finalized)for(let He=0;He{if(void 0!==this.observers&&void 0!==this.observers[Ee])try{He(this.observers[Ee])}catch(Lt){typeof console<"u"&&console.error&&console.error(Lt)}})}close(Ee){this.finalized||(this.finalized=!0,void 0!==Ee&&(this.finalError=Ee),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Nr(){}function ut(ce){return ce&&ce._delegate?ce._delegate:ce}},4442:(Tn,gt,D)=>{"use strict";D.d(gt,{L:()=>U,a:()=>ue,b:()=>oe,c:()=>Xe,d:()=>Je,g:()=>dt}),D(5531);const U="ionViewWillEnter",ue="ionViewDidEnter",oe="ionViewWillLeave",Xe="ionViewDidLeave",Je="ionViewWillUnload",dt=we=>we.classList.contains("ion-page")?we:we.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||we},5531:(Tn,gt,D)=>{"use strict";D.d(gt,{a:()=>Se,c:()=>c,g:()=>Je});class h{constructor(){this.m=new Map}reset(we){this.m=new Map(Object.entries(we))}get(we,H){const X=this.m.get(we);return void 0!==X?X:H}getBoolean(we,H=!1){const X=this.m.get(we);return void 0===X?H:"string"==typeof X?"true"===X:!!X}getNumber(we,H){const X=parseFloat(this.m.get(we));return isNaN(X)?void 0!==H?H:NaN:X}set(we,H){this.m.set(we,H)}}const c=new h,Je=dt=>De(dt),Se=(dt,we)=>("string"==typeof dt&&(we=dt,dt=void 0),Je(dt).includes(we)),De=(dt=window)=>{if(typeof dt>"u")return[];dt.Ionic=dt.Ionic||{};let we=dt.Ionic.platforms;return null==we&&(we=dt.Ionic.platforms=Qe(dt),we.forEach(H=>dt.document.documentElement.classList.add(`plt-${H}`))),we},Qe=dt=>{const we=c.get("platform");return Object.keys(vn).filter(H=>{const X=null==we?void 0:we[H];return"function"==typeof X?X(dt):vn[H](dt)})},qe=dt=>!!(rt(dt,/iPad/i)||rt(dt,/Macintosh/i)&&mt(dt)),St=dt=>rt(dt,/android|sink/i),mt=dt=>Rt(dt,"(any-pointer:coarse)"),Ye=dt=>ge(dt)||Ue(dt),ge=dt=>!!(dt.cordova||dt.phonegap||dt.PhoneGap),Ue=dt=>{const we=dt.Capacitor;return!(null==we||!we.isNative)},rt=(dt,we)=>we.test(dt.navigator.userAgent),Rt=(dt,we)=>{var H;return null===(H=dt.matchMedia)||void 0===H?void 0:H.call(dt,we).matches},vn={ipad:qe,iphone:dt=>rt(dt,/iPhone/i),ios:dt=>rt(dt,/iPhone|iPod/i)||qe(dt),android:St,phablet:dt=>{const we=dt.innerWidth,H=dt.innerHeight,X=Math.min(we,H),fe=Math.max(we,H);return X>390&&X<520&&fe>620&&fe<800},tablet:dt=>{const we=dt.innerWidth,H=dt.innerHeight,X=Math.min(we,H),fe=Math.max(we,H);return qe(dt)||(dt=>St(dt)&&!rt(dt,/mobile/i))(dt)||X>460&&X<820&&fe>780&&fe<1400},cordova:ge,capacitor:Ue,electron:dt=>rt(dt,/electron/i),pwa:dt=>{var we;return!!(null!==(we=dt.matchMedia)&&void 0!==we&&we.call(dt,"(display-mode: standalone)").matches||dt.navigator.standalone)},mobile:mt,mobileweb:dt=>mt(dt)&&!Ye(dt),desktop:dt=>!mt(dt),hybrid:Ye}},9986:(Tn,gt,D)=>{"use strict";D.d(gt,{c:()=>ue});var h=D(8476);let c;const Oe=(oe,Xe,Je)=>{const Se=Xe.startsWith("animation")?(oe=>(void 0===c&&(c=void 0===oe.style.animationName&&void 0!==oe.style.webkitAnimationName?"-webkit-":""),c))(oe):"";oe.style.setProperty(Se+Xe,Je)},U=(oe=[],Xe)=>{if(void 0!==Xe){const Je=Array.isArray(Xe)?Xe:[Xe];return[...oe,...Je]}return oe},ue=oe=>{let Xe,Je,Se,De,Qe,Ze,yt,Fe,xe,rt,tt,qe=[],ht=[],Tt=[],St=!1,_t={},Et=[],mt=[],Me={},Ye=0,ge=!1,Ue=!1,Rt=!0,vn=!1,Nt=!0,on=!1;const dt=oe,we=[],H=[],X=[],fe=[],se=[],ve=[],Le=[],_e=[],Wt=[],dn=[],Kt=[],rn="function"==typeof AnimationEffect||void 0!==h.w&&"function"==typeof h.w.AnimationEffect,Ln="function"==typeof Element&&"function"==typeof Element.prototype.animate&&rn,Zn=()=>Kt,ir=(x,te)=>{const Te=te.findIndex(Ge=>Ge.c===x);Te>-1&&te.splice(Te,1)},Ot=(x,te)=>((null!=te&&te.oneTimeCallback?H:we).push({c:x,o:te}),tt),pn=()=>{Ln&&(Kt.forEach(x=>{x.cancel()}),Kt.length=0)},gn=()=>{ve.forEach(x=>{null!=x&&x.parentNode&&x.parentNode.removeChild(x)}),ve.length=0},mr=()=>void 0!==Qe?Qe:yt?yt.getFill():"both",ur=()=>void 0!==Fe?Fe:void 0!==Ze?Ze:yt?yt.getDirection():"normal",Pr=()=>ge?"linear":void 0!==Se?Se:yt?yt.getEasing():"linear",cr=()=>Ue?0:void 0!==xe?xe:void 0!==Je?Je:yt?yt.getDuration():0,kr=()=>void 0!==De?De:yt?yt.getIterations():1,ii=()=>void 0!==rt?rt:void 0!==Xe?Xe:yt?yt.getDelay():0,tn=()=>{0!==Ye&&(Ye--,0===Ye&&((()=>{Wt.forEach(Ct=>Ct()),dn.forEach(Ct=>Ct());const x=Rt?1:0,te=Et,Te=mt,Ge=Me;fe.forEach(Ct=>{const Jt=Ct.classList;te.forEach(ln=>Jt.add(ln)),Te.forEach(ln=>Jt.remove(ln));for(const ln in Ge)Ge.hasOwnProperty(ln)&&Oe(Ct,ln,Ge[ln])}),xe=void 0,Fe=void 0,rt=void 0,we.forEach(Ct=>Ct.c(x,tt)),H.forEach(Ct=>Ct.c(x,tt)),H.length=0,Nt=!0,Rt&&(vn=!0),Rt=!0})(),yt&&yt.animationFinish()))},qn=()=>{(()=>{Le.forEach(Ge=>Ge()),_e.forEach(Ge=>Ge());const x=ht,te=Tt,Te=_t;fe.forEach(Ge=>{const Ct=Ge.classList;x.forEach(Jt=>Ct.add(Jt)),te.forEach(Jt=>Ct.remove(Jt));for(const Jt in Te)Te.hasOwnProperty(Jt)&&Oe(Ge,Jt,Te[Jt])})})(),qe.length>0&&Ln&&(fe.forEach(x=>{const te=x.animate(qe,{id:dt,delay:ii(),duration:cr(),easing:Pr(),iterations:kr(),fill:mr(),direction:ur()});te.pause(),Kt.push(te)}),Kt.length>0&&(Kt[0].onfinish=()=>{tn()})),St=!0},hn=x=>{x=Math.min(Math.max(x,0),.9999),Ln&&Kt.forEach(te=>{te.currentTime=te.effect.getComputedTiming().delay+cr()*x,te.pause()})},Cn=x=>{Kt.forEach(te=>{te.effect.updateTiming({delay:ii(),duration:cr(),easing:Pr(),iterations:kr(),fill:mr(),direction:ur()})}),void 0!==x&&hn(x)},tr=(x=!1,te=!0,Te)=>(x&&se.forEach(Ge=>{Ge.update(x,te,Te)}),Ln&&Cn(Te),tt),Zr=()=>{St&&(Ln?Kt.forEach(x=>{x.pause()}):fe.forEach(x=>{Oe(x,"animation-play-state","paused")}),on=!0)},Ut=x=>new Promise(te=>{null!=x&&x.sync&&(Ue=!0,Ot(()=>Ue=!1,{oneTimeCallback:!0})),St||qn(),vn&&(Ln&&(hn(0),Cn()),vn=!1),Nt&&(Ye=se.length+1,Nt=!1);const Te=()=>{ir(Ge,H),te()},Ge=()=>{ir(Te,X),te()};Ot(Ge,{oneTimeCallback:!0}),((x,te)=>{X.push({c:x,o:{oneTimeCallback:!0}})})(Te),se.forEach(Ct=>{Ct.play()}),Ln?(Kt.forEach(x=>{x.play()}),(0===qe.length||0===fe.length)&&tn()):tn(),on=!1}),ee=(x,te)=>{const Te=qe[0];return void 0===Te||void 0!==Te.offset&&0!==Te.offset?qe=[{offset:0,[x]:te},...qe]:Te[x]=te,tt};return tt={parentAnimation:yt,elements:fe,childAnimations:se,id:dt,animationFinish:tn,from:ee,to:(x,te)=>{const Te=qe[qe.length-1];return void 0===Te||void 0!==Te.offset&&1!==Te.offset?qe=[...qe,{offset:1,[x]:te}]:Te[x]=te,tt},fromTo:(x,te,Te)=>ee(x,te).to(x,Te),parent:x=>(yt=x,tt),play:Ut,pause:()=>(se.forEach(x=>{x.pause()}),Zr(),tt),stop:()=>{se.forEach(x=>{x.stop()}),St&&(pn(),St=!1),ge=!1,Ue=!1,Nt=!0,Fe=void 0,xe=void 0,rt=void 0,Ye=0,vn=!1,Rt=!0,on=!1,X.forEach(x=>x.c(0,tt)),X.length=0},destroy:x=>(se.forEach(te=>{te.destroy(x)}),(x=>{pn(),x&&gn()})(x),fe.length=0,se.length=0,qe.length=0,we.length=0,H.length=0,St=!1,Nt=!0,tt),keyframes:x=>{const te=qe!==x;return qe=x,te&&(x=>{Ln&&Zn().forEach(te=>{const Te=te.effect;if(Te.setKeyframes)Te.setKeyframes(x);else{const Ge=new KeyframeEffect(Te.target,x,Te.getTiming());te.effect=Ge}})})(qe),tt},addAnimation:x=>{if(null!=x)if(Array.isArray(x))for(const te of x)te.parent(tt),se.push(te);else x.parent(tt),se.push(x);return tt},addElement:x=>{if(null!=x)if(1===x.nodeType)fe.push(x);else if(x.length>=0)for(let te=0;te(Qe=x,tr(!0),tt),direction:x=>(Ze=x,tr(!0),tt),iterations:x=>(De=x,tr(!0),tt),duration:x=>(!Ln&&0===x&&(x=1),Je=x,tr(!0),tt),easing:x=>(Se=x,tr(!0),tt),delay:x=>(Xe=x,tr(!0),tt),getWebAnimations:Zn,getKeyframes:()=>qe,getFill:mr,getDirection:ur,getDelay:ii,getIterations:kr,getEasing:Pr,getDuration:cr,afterAddRead:x=>(Wt.push(x),tt),afterAddWrite:x=>(dn.push(x),tt),afterClearStyles:(x=[])=>{for(const te of x)Me[te]="";return tt},afterStyles:(x={})=>(Me=x,tt),afterRemoveClass:x=>(mt=U(mt,x),tt),afterAddClass:x=>(Et=U(Et,x),tt),beforeAddRead:x=>(Le.push(x),tt),beforeAddWrite:x=>(_e.push(x),tt),beforeClearStyles:(x=[])=>{for(const te of x)_t[te]="";return tt},beforeStyles:(x={})=>(_t=x,tt),beforeRemoveClass:x=>(Tt=U(Tt,x),tt),beforeAddClass:x=>(ht=U(ht,x),tt),onFinish:Ot,isRunning:()=>0!==Ye&&!on,progressStart:(x=!1,te)=>(se.forEach(Te=>{Te.progressStart(x,te)}),Zr(),ge=x,St||qn(),tr(!1,!0,te),tt),progressStep:x=>(se.forEach(te=>{te.progressStep(x)}),hn(x),tt),progressEnd:(x,te,Te)=>(ge=!1,se.forEach(Ge=>{Ge.progressEnd(x,te,Te)}),void 0!==Te&&(xe=Te),vn=!1,Rt=!0,0===x?(Fe="reverse"===ur()?"normal":"reverse","reverse"===Fe&&(Rt=!1),Ln?(tr(),hn(1-te)):(rt=(1-te)*cr()*-1,tr(!1,!1))):1===x&&(Ln?(tr(),hn(te)):(rt=te*cr()*-1,tr(!1,!1))),void 0!==x&&!yt&&Ut(),tt)}}},464:(Tn,gt,D)=>{"use strict";D.d(gt,{E:()=>Se,a:()=>h,s:()=>Xe});const h=De=>{try{if(De instanceof oe)return De.value;if(!Oe()||"string"!=typeof De||""===De)return De;if(De.includes("onload="))return"";const Qe=document.createDocumentFragment(),Ze=document.createElement("div");Qe.appendChild(Ze),Ze.innerHTML=De,ue.forEach(St=>{const yt=Qe.querySelectorAll(St);for(let _t=yt.length-1;_t>=0;_t--){const Et=yt[_t];Et.parentNode?Et.parentNode.removeChild(Et):Qe.removeChild(Et);const mt=Z(Et);for(let Me=0;Me{if(De.nodeType&&1!==De.nodeType)return;if(typeof NamedNodeMap<"u"&&!(De.attributes instanceof NamedNodeMap))return void De.remove();for(let Ze=De.attributes.length-1;Ze>=0;Ze--){const qe=De.attributes.item(Ze),ht=qe.name;if(!U.includes(ht.toLowerCase())){De.removeAttribute(ht);continue}const Tt=qe.value,St=De[ht];(null!=Tt&&Tt.toLowerCase().includes("javascript:")||null!=St&&St.toLowerCase().includes("javascript:"))&&De.removeAttribute(ht)}const Qe=Z(De);for(let Ze=0;Zenull!=De.children?De.children:De.childNodes,Oe=()=>{var De;const Qe=window,Ze=null===(De=null==Qe?void 0:Qe.Ionic)||void 0===De?void 0:De.config;return!Ze||(Ze.get?Ze.get("sanitizerEnabled",!0):!0===Ze.sanitizerEnabled||void 0===Ze.sanitizerEnabled)},U=["class","id","href","src","name","slot"],ue=["script","style","iframe","meta","link","object","embed"];class oe{constructor(Qe){this.value=Qe}}const Xe=De=>{const Qe=window,Ze=Qe.Ionic;if(!Ze||!Ze.config||"Object"===Ze.config.constructor.name)return Qe.Ionic=Qe.Ionic||{},Qe.Ionic.config=Object.assign(Object.assign({},Qe.Ionic.config),De),Qe.Ionic.config},Se=!1},8621:(Tn,gt,D)=>{"use strict";D.d(gt,{C:()=>U,a:()=>Z,d:()=>Oe});var h=D(467),c=D(4920);const Z=function(){var ue=(0,h.A)(function*(oe,Xe,Je,Se,De,Qe){var Ze;if(oe)return oe.attachViewToDom(Xe,Je,De,Se);if(!(Qe||"string"==typeof Je||Je instanceof HTMLElement))throw new Error("framework delegate is missing");const qe="string"==typeof Je?null===(Ze=Xe.ownerDocument)||void 0===Ze?void 0:Ze.createElement(Je):Je;return Se&&Se.forEach(ht=>qe.classList.add(ht)),De&&Object.assign(qe,De),Xe.appendChild(qe),yield new Promise(ht=>(0,c.c)(qe,ht)),qe});return function(Xe,Je,Se,De,Qe,Ze){return ue.apply(this,arguments)}}(),Oe=(ue,oe)=>{if(oe){if(ue)return ue.removeViewFromDom(oe.parentElement,oe);oe.remove()}return Promise.resolve()},U=()=>{let ue,oe;return{attachViewToDom:function(){var Se=(0,h.A)(function*(De,Qe,Ze={},qe=[]){var ht,Tt;let St;if(ue=De,Qe){const _t="string"==typeof Qe?null===(ht=ue.ownerDocument)||void 0===ht?void 0:ht.createElement(Qe):Qe;qe.forEach(Et=>_t.classList.add(Et)),Object.assign(_t,Ze),ue.appendChild(_t),St=_t,yield new Promise(Et=>(0,c.c)(_t,Et))}else if(ue.children.length>0&&("ION-MODAL"===ue.tagName||"ION-POPOVER"===ue.tagName)&&!(St=ue.children[0]).classList.contains("ion-delegate-host")){const Et=null===(Tt=ue.ownerDocument)||void 0===Tt?void 0:Tt.createElement("div");Et.classList.add("ion-delegate-host"),qe.forEach(mt=>Et.classList.add(mt)),Et.append(...ue.children),ue.appendChild(Et),St=Et}const yt=document.querySelector("ion-app")||document.body;return oe=document.createComment("ionic teleport"),ue.parentNode.insertBefore(oe,ue),yt.appendChild(ue),null!=St?St:ue});return function(Qe,Ze){return Se.apply(this,arguments)}}(),removeViewFromDom:()=>(ue&&oe&&(oe.parentNode.insertBefore(ue,oe),oe.remove()),Promise.resolve())}}},1970:(Tn,gt,D)=>{"use strict";D.d(gt,{B:()=>Oe,G:()=>U});class c{constructor(oe,Xe,Je,Se,De){this.id=Xe,this.name=Je,this.disableScroll=De,this.priority=1e6*Se+Xe,this.ctrl=oe}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const oe=this.ctrl.capture(this.name,this.id,this.priority);return oe&&this.disableScroll&&this.ctrl.disableScroll(this.id),oe}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class Z{constructor(oe,Xe,Je,Se){this.id=Xe,this.disable=Je,this.disableScroll=Se,this.ctrl=oe}block(){if(this.ctrl){if(this.disable)for(const oe of this.disable)this.ctrl.disableGesture(oe,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const oe of this.disable)this.ctrl.enableGesture(oe,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Oe="backdrop-no-scroll",U=new class h{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(oe){var Xe;return new c(this,this.newID(),oe.name,null!==(Xe=oe.priority)&&void 0!==Xe?Xe:0,!!oe.disableScroll)}createBlocker(oe={}){return new Z(this,this.newID(),oe.disable,!!oe.disableScroll)}start(oe,Xe,Je){return this.canStart(oe)?(this.requestedStart.set(Xe,Je),!0):(this.requestedStart.delete(Xe),!1)}capture(oe,Xe,Je){if(!this.start(oe,Xe,Je))return!1;const Se=this.requestedStart;let De=-1e4;if(Se.forEach(Qe=>{De=Math.max(De,Qe)}),De===Je){this.capturedId=Xe,Se.clear();const Qe=new CustomEvent("ionGestureCaptured",{detail:{gestureName:oe}});return document.dispatchEvent(Qe),!0}return Se.delete(Xe),!1}release(oe){this.requestedStart.delete(oe),this.capturedId===oe&&(this.capturedId=void 0)}disableGesture(oe,Xe){let Je=this.disabledGestures.get(oe);void 0===Je&&(Je=new Set,this.disabledGestures.set(oe,Je)),Je.add(Xe)}enableGesture(oe,Xe){const Je=this.disabledGestures.get(oe);void 0!==Je&&Je.delete(Xe)}disableScroll(oe){this.disabledScroll.add(oe),1===this.disabledScroll.size&&document.body.classList.add(Oe)}enableScroll(oe){this.disabledScroll.delete(oe),0===this.disabledScroll.size&&document.body.classList.remove(Oe)}canStart(oe){return!(void 0!==this.capturedId||this.isDisabled(oe))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(oe){const Xe=this.disabledGestures.get(oe);return!!(Xe&&Xe.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(Tn,gt,D)=>{"use strict";D.r(gt),D.d(gt,{MENU_BACK_BUTTON_PRIORITY:()=>Je,OVERLAY_BACK_BUTTON_PRIORITY:()=>Xe,blockHardwareBackButton:()=>ue,shouldUseCloseWatcher:()=>U,startHardwareBackButton:()=>oe});var h=D(467),c=D(8476),Z=D(3664);D(9672);const U=()=>Z.c.get("experimentalCloseWatcher",!1)&&void 0!==c.w&&"CloseWatcher"in c.w,ue=()=>{document.addEventListener("backbutton",()=>{})},oe=()=>{const Se=document;let De=!1;const Qe=()=>{if(De)return;let Ze=0,qe=[];const ht=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(yt,_t){qe.push({priority:yt,handler:_t,id:Ze++})}}});Se.dispatchEvent(ht);const Tt=function(){var yt=(0,h.A)(function*(_t){try{if(null!=_t&&_t.handler){const Et=_t.handler(St);null!=Et&&(yield Et)}}catch(Et){console.error(Et)}});return function(Et){return yt.apply(this,arguments)}}(),St=()=>{if(qe.length>0){let yt={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};qe.forEach(_t=>{_t.priority>=yt.priority&&(yt=_t)}),De=!0,qe=qe.filter(_t=>_t.id!==yt.id),Tt(yt).then(()=>De=!1)}};St()};if(U()){let Ze;const qe=()=>{null==Ze||Ze.destroy(),Ze=new c.w.CloseWatcher,Ze.onclose=()=>{Qe(),qe()}};qe()}else Se.addEventListener("backbutton",Qe)},Xe=100,Je=99},4920:(Tn,gt,D)=>{"use strict";D.d(gt,{a:()=>Xe,b:()=>Je,c:()=>Z,d:()=>qe,e:()=>_t,f:()=>Ze,g:()=>Se,h:()=>U,i:()=>oe,j:()=>ht,k:()=>Oe,l:()=>Qe,m:()=>Tt,n:()=>yt,o:()=>Et,p:()=>St,r:()=>De,s:()=>mt,t:()=>h});const h=(Me,Ye=0)=>new Promise(ge=>{c(Me,Ye,ge)}),c=(Me,Ye=0,ge)=>{let Ue,Fe;const xe={passive:!0},Rt=()=>{Ue&&Ue()},vn=Nt=>{(void 0===Nt||Me===Nt.target)&&(Rt(),ge(Nt))};return Me&&(Me.addEventListener("webkitTransitionEnd",vn,xe),Me.addEventListener("transitionend",vn,xe),Fe=setTimeout(vn,Ye+500),Ue=()=>{void 0!==Fe&&(clearTimeout(Fe),Fe=void 0),Me.removeEventListener("webkitTransitionEnd",vn,xe),Me.removeEventListener("transitionend",vn,xe)}),Rt},Z=(Me,Ye)=>{Me.componentOnReady?Me.componentOnReady().then(ge=>Ye(ge)):De(()=>Ye(Me))},Oe=Me=>void 0!==Me.componentOnReady,U=(Me,Ye=[])=>{const ge={};return Ye.forEach(Ue=>{Me.hasAttribute(Ue)&&(null!==Me.getAttribute(Ue)&&(ge[Ue]=Me.getAttribute(Ue)),Me.removeAttribute(Ue))}),ge},ue=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","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-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],oe=(Me,Ye)=>{let ge=ue;return Ye&&Ye.length>0&&(ge=ge.filter(Ue=>!Ye.includes(Ue))),U(Me,ge)},Xe=(Me,Ye,ge,Ue)=>{var Fe;if(typeof window<"u"){const xe=window,rt=null===(Fe=null==xe?void 0:xe.Ionic)||void 0===Fe?void 0:Fe.config;if(rt){const Rt=rt.get("_ael");if(Rt)return Rt(Me,Ye,ge,Ue);if(rt._ael)return rt._ael(Me,Ye,ge,Ue)}}return Me.addEventListener(Ye,ge,Ue)},Je=(Me,Ye,ge,Ue)=>{var Fe;if(typeof window<"u"){const xe=window,rt=null===(Fe=null==xe?void 0:xe.Ionic)||void 0===Fe?void 0:Fe.config;if(rt){const Rt=rt.get("_rel");if(Rt)return Rt(Me,Ye,ge,Ue);if(rt._rel)return rt._rel(Me,Ye,ge,Ue)}}return Me.removeEventListener(Ye,ge,Ue)},Se=(Me,Ye=Me)=>Me.shadowRoot||Ye,De=Me=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Me):"function"==typeof requestAnimationFrame?requestAnimationFrame(Me):setTimeout(Me),Qe=Me=>!!Me.shadowRoot&&!!Me.attachShadow,Ze=Me=>{if(Me.focus(),Me.classList.contains("ion-focusable")){const Ye=Me.closest("ion-app");Ye&&Ye.setFocus([Me])}},qe=(Me,Ye,ge,Ue,Fe)=>{if(Me||Qe(Ye)){let xe=Ye.querySelector("input.aux-input");xe||(xe=Ye.ownerDocument.createElement("input"),xe.type="hidden",xe.classList.add("aux-input"),Ye.appendChild(xe)),xe.disabled=Fe,xe.name=ge,xe.value=Ue||""}},ht=(Me,Ye,ge)=>Math.max(Me,Math.min(Ye,ge)),Tt=(Me,Ye)=>{if(!Me){const ge="ASSERT: "+Ye;throw console.error(ge),new Error(ge)}},St=Me=>{if(Me){const Ye=Me.changedTouches;if(Ye&&Ye.length>0){const ge=Ye[0];return{x:ge.clientX,y:ge.clientY}}if(void 0!==Me.pageX)return{x:Me.pageX,y:Me.pageY}}return{x:0,y:0}},yt=Me=>{const Ye="rtl"===document.dir;switch(Me){case"start":return Ye;case"end":return!Ye;default:throw new Error(`"${Me}" is not a valid value for [side]. Use "start" or "end" instead.`)}},_t=(Me,Ye)=>{const ge=Me._original||Me;return{_original:Me,emit:Et(ge.emit.bind(ge),Ye)}},Et=(Me,Ye=0)=>{let ge;return(...Ue)=>{clearTimeout(ge),ge=setTimeout(Me,Ye,...Ue)}},mt=(Me,Ye)=>{if(null!=Me||(Me={}),null!=Ye||(Ye={}),Me===Ye)return!0;const ge=Object.keys(Me);if(ge.length!==Object.keys(Ye).length)return!1;for(const Ue of ge)if(!(Ue in Ye)||Me[Ue]!==Ye[Ue])return!1;return!0}},5465:(Tn,gt,D)=>{"use strict";D.d(gt,{m:()=>Ze});var h=D(467),c=D(8476),Z=D(6411),Oe=D(4929),U=D(4920),ue=D(3664),oe=D(9986);const Xe=qe=>(0,oe.c)().duration(qe?400:300),Je=qe=>{let ht,Tt;const St=qe.width+8,yt=(0,oe.c)(),_t=(0,oe.c)();qe.isEndSide?(ht=St+"px",Tt="0px"):(ht=-St+"px",Tt="0px"),yt.addElement(qe.menuInnerEl).fromTo("transform",`translateX(${ht})`,`translateX(${Tt})`);const mt="ios"===(0,ue.b)(qe),Me=mt?.2:.25;return _t.addElement(qe.backdropEl).fromTo("opacity",.01,Me),Xe(mt).addAnimation([yt,_t])},Se=qe=>{let ht,Tt;const St=(0,ue.b)(qe),yt=qe.width;qe.isEndSide?(ht=-yt+"px",Tt=yt+"px"):(ht=yt+"px",Tt=-yt+"px");const _t=(0,oe.c)().addElement(qe.menuInnerEl).fromTo("transform",`translateX(${Tt})`,"translateX(0px)"),Et=(0,oe.c)().addElement(qe.contentEl).fromTo("transform","translateX(0px)",`translateX(${ht})`),mt=(0,oe.c)().addElement(qe.backdropEl).fromTo("opacity",.01,.32);return Xe("ios"===St).addAnimation([_t,Et,mt])},De=qe=>{const ht=(0,ue.b)(qe),Tt=qe.width*(qe.isEndSide?-1:1)+"px",St=(0,oe.c)().addElement(qe.contentEl).fromTo("transform","translateX(0px)",`translateX(${Tt})`);return Xe("ios"===ht).addAnimation(St)},Ze=(()=>{const qe=new Map,ht=[],Tt=function(){var X=(0,h.A)(function*(fe){const se=yield Ye(fe,!0);return!!se&&se.open()});return function(se){return X.apply(this,arguments)}}(),St=function(){var X=(0,h.A)(function*(fe){const se=yield void 0!==fe?Ye(fe,!0):ge();return void 0!==se&&se.close()});return function(se){return X.apply(this,arguments)}}(),yt=function(){var X=(0,h.A)(function*(fe){const se=yield Ye(fe,!0);return!!se&&se.toggle()});return function(se){return X.apply(this,arguments)}}(),_t=function(){var X=(0,h.A)(function*(fe,se){const ve=yield Ye(se);return ve&&(ve.disabled=!fe),ve});return function(se,ve){return X.apply(this,arguments)}}(),Et=function(){var X=(0,h.A)(function*(fe,se){const ve=yield Ye(se);return ve&&(ve.swipeGesture=fe),ve});return function(se,ve){return X.apply(this,arguments)}}(),mt=function(){var X=(0,h.A)(function*(fe){if(null!=fe){const se=yield Ye(fe);return void 0!==se&&se.isOpen()}return void 0!==(yield ge())});return function(se){return X.apply(this,arguments)}}(),Me=function(){var X=(0,h.A)(function*(fe){const se=yield Ye(fe);return!!se&&!se.disabled});return function(se){return X.apply(this,arguments)}}(),Ye=function(){var X=(0,h.A)(function*(fe,se=!1){if(yield H(),"start"===fe||"end"===fe){const Le=ht.filter(Wt=>Wt.side===fe&&!Wt.disabled);if(Le.length>=1)return Le.length>1&&se&&(0,Oe.p)(`menuController queried for a menu on the "${fe}" side, but ${Le.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,Le.map(Wt=>Wt.el)),Le[0].el;const _e=ht.filter(Wt=>Wt.side===fe);if(_e.length>=1)return _e.length>1&&se&&(0,Oe.p)(`menuController queried for a menu on the "${fe}" side, but ${_e.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,_e.map(Wt=>Wt.el)),_e[0].el}else if(null!=fe)return we(Le=>Le.menuId===fe);return we(Le=>!Le.disabled)||(ht.length>0?ht[0].el:void 0)});return function(se){return X.apply(this,arguments)}}(),ge=function(){var X=(0,h.A)(function*(){return yield H(),tt()});return function(){return X.apply(this,arguments)}}(),Ue=function(){var X=(0,h.A)(function*(){return yield H(),on()});return function(){return X.apply(this,arguments)}}(),Fe=function(){var X=(0,h.A)(function*(){return yield H(),dt()});return function(){return X.apply(this,arguments)}}(),xe=(X,fe)=>{qe.set(X,fe)},vn=function(){var X=(0,h.A)(function*(fe,se,ve){if(dt())return!1;if(se){const Le=yield ge();Le&&fe.el!==Le&&(yield Le.setOpen(!1,!1))}return fe._setOpen(se,ve)});return function(se,ve,Le){return X.apply(this,arguments)}}(),tt=()=>we(X=>X._isOpen),on=()=>ht.map(X=>X.el),dt=()=>ht.some(X=>X.isAnimating),we=X=>{const fe=ht.find(X);if(void 0!==fe)return fe.el},H=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(X=>new Promise(fe=>(0,U.c)(X,fe))));return xe("reveal",De),xe("push",Se),xe("overlay",Je),null==c.d||c.d.addEventListener("ionBackButton",X=>{const fe=tt();fe&&X.detail.register(Z.MENU_BACK_BUTTON_PRIORITY,()=>fe.close())}),{registerAnimation:xe,get:Ye,getMenus:Ue,getOpen:ge,isEnabled:Me,swipeGesture:Et,isAnimating:Fe,isOpen:mt,enable:_t,toggle:yt,close:St,open:Tt,_getOpenSync:tt,_createAnimation:(X,fe)=>{const se=qe.get(X);if(!se)throw new Error("animation not registered");return se(fe)},_register:X=>{ht.indexOf(X)<0&&ht.push(X)},_unregister:X=>{const fe=ht.indexOf(X);fe>-1&&ht.splice(fe,1)},_setOpen:vn}})()},8607:(Tn,gt,D)=>{"use strict";D.r(gt),D.d(gt,{GESTURE_CONTROLLER:()=>h.G,createGesture:()=>Je});var h=D(1970);const c=(Ze,qe,ht,Tt)=>{const St=Z(Ze)?{capture:!!Tt.capture,passive:!!Tt.passive}:!!Tt.capture;let yt,_t;return Ze.__zone_symbol__addEventListener?(yt="__zone_symbol__addEventListener",_t="__zone_symbol__removeEventListener"):(yt="addEventListener",_t="removeEventListener"),Ze[yt](qe,ht,St),()=>{Ze[_t](qe,ht,St)}},Z=Ze=>{if(void 0===Oe)try{const qe=Object.defineProperty({},"passive",{get:()=>{Oe=!0}});Ze.addEventListener("optsTest",()=>{},qe)}catch{Oe=!1}return!!Oe};let Oe;const oe=Ze=>Ze instanceof Document?Ze:Ze.ownerDocument,Je=Ze=>{let qe=!1,ht=!1,Tt=!0,St=!1;const yt=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},Ze),_t=yt.canStart,Et=yt.onWillStart,mt=yt.onStart,Me=yt.onEnd,Ye=yt.notCaptured,ge=yt.onMove,Ue=yt.threshold,Fe=yt.passive,xe=yt.blurOnStart,rt={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},Rt=((Ze,qe,ht)=>{const Tt=ht*(Math.PI/180),St="x"===Ze,yt=Math.cos(Tt),_t=qe*qe;let Et=0,mt=0,Me=!1,Ye=0;return{start(ge,Ue){Et=ge,mt=Ue,Ye=0,Me=!0},detect(ge,Ue){if(!Me)return!1;const Fe=ge-Et,xe=Ue-mt,rt=Fe*Fe+xe*xe;if(rt<_t)return!1;const Rt=Math.sqrt(rt),vn=(St?Fe:xe)/Rt;return Ye=vn>yt?1:vn<-yt?-1:0,Me=!1,!0},isGesture:()=>0!==Ye,getDirection:()=>Ye}})(yt.direction,yt.threshold,yt.maxAngle),vn=h.G.createGesture({name:Ze.gestureName,priority:Ze.gesturePriority,disableScroll:Ze.disableScroll}),on=()=>{qe&&(St=!1,ge&&ge(rt))},dt=()=>!!vn.capture()&&(qe=!0,Tt=!1,rt.startX=rt.currentX,rt.startY=rt.currentY,rt.startTime=rt.currentTime,Et?Et(rt).then(H):H(),!0),H=()=>{xe&&(()=>{if(typeof document<"u"){const Le=document.activeElement;null!=Le&&Le.blur&&Le.blur()}})(),mt&&mt(rt),Tt=!0},X=()=>{qe=!1,ht=!1,St=!1,Tt=!0,vn.release()},fe=Le=>{const _e=qe,Wt=Tt;if(X(),Wt){if(Se(rt,Le),_e)return void(Me&&Me(rt));Ye&&Ye(rt)}},se=((Ze,qe,ht,Tt,St)=>{let yt,_t,Et,mt,Me,Ye,ge,Ue=0;const Fe=we=>{Ue=Date.now()+2e3,qe(we)&&(!_t&&ht&&(_t=c(Ze,"touchmove",ht,St)),Et||(Et=c(we.target,"touchend",rt,St)),mt||(mt=c(we.target,"touchcancel",rt,St)))},xe=we=>{Ue>Date.now()||qe(we)&&(!Ye&&ht&&(Ye=c(oe(Ze),"mousemove",ht,St)),ge||(ge=c(oe(Ze),"mouseup",Rt,St)))},rt=we=>{vn(),Tt&&Tt(we)},Rt=we=>{Nt(),Tt&&Tt(we)},vn=()=>{_t&&_t(),Et&&Et(),mt&&mt(),_t=Et=mt=void 0},Nt=()=>{Ye&&Ye(),ge&&ge(),Ye=ge=void 0},tt=()=>{vn(),Nt()},on=(we=!0)=>{we?(yt||(yt=c(Ze,"touchstart",Fe,St)),Me||(Me=c(Ze,"mousedown",xe,St))):(yt&&yt(),Me&&Me(),yt=Me=void 0,tt())};return{enable:on,stop:tt,destroy:()=>{on(!1),Tt=ht=qe=void 0}}})(yt.el,Le=>{const _e=Qe(Le);return!(ht||!Tt||(De(Le,rt),rt.startX=rt.currentX,rt.startY=rt.currentY,rt.startTime=rt.currentTime=_e,rt.velocityX=rt.velocityY=rt.deltaX=rt.deltaY=0,rt.event=Le,_t&&!1===_t(rt))||(vn.release(),!vn.start()))&&(ht=!0,0===Ue?dt():(Rt.start(rt.startX,rt.startY),!0))},Le=>{qe?!St&&Tt&&(St=!0,Se(rt,Le),requestAnimationFrame(on)):(Se(rt,Le),Rt.detect(rt.currentX,rt.currentY)&&(!Rt.isGesture()||!dt())&&ve())},fe,{capture:!1,passive:Fe}),ve=()=>{X(),se.stop(),Ye&&Ye(rt)};return{enable(Le=!0){Le||(qe&&fe(void 0),X()),se.enable(Le)},destroy(){vn.destroy(),se.destroy()}}},Se=(Ze,qe)=>{if(!qe)return;const ht=Ze.currentX,Tt=Ze.currentY,St=Ze.currentTime;De(qe,Ze);const yt=Ze.currentX,_t=Ze.currentY,mt=(Ze.currentTime=Qe(qe))-St;if(mt>0&&mt<100){const Ye=(_t-Tt)/mt;Ze.velocityX=(yt-ht)/mt*.7+.3*Ze.velocityX,Ze.velocityY=.7*Ye+.3*Ze.velocityY}Ze.deltaX=yt-Ze.startX,Ze.deltaY=_t-Ze.startY,Ze.event=qe},De=(Ze,qe)=>{let ht=0,Tt=0;if(Ze){const St=Ze.changedTouches;if(St&&St.length>0){const yt=St[0];ht=yt.clientX,Tt=yt.clientY}else void 0!==Ze.pageX&&(ht=Ze.pageX,Tt=Ze.pageY)}qe.currentX=ht,qe.currentY=Tt},Qe=Ze=>Ze.timeStamp||Date.now()},9672:(Tn,gt,D)=>{"use strict";D.d(gt,{B:()=>ue,a:()=>$e,b:()=>Tr,c:()=>Wt,d:()=>Ln,e:()=>sr,f:()=>dt,g:()=>dn,h:()=>tt,i:()=>rn,j:()=>tr,k:()=>oe,r:()=>Wn,w:()=>ni});var h=D(467);var Oe=Object.defineProperty,ue={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},oe=z=>{const me=new URL(z,W.$resourcesUrl$);return me.origin!==bt.location.origin?me.href:me.pathname},Xe={},Qe=z=>"object"==(z=typeof z)||"function"===z;function Ze(z){var me,Ne,et;return null!=(et=null==(Ne=null==(me=z.head)?void 0:me.querySelector('meta[name="csp-nonce"]'))?void 0:Ne.getAttribute("content"))?et:void 0}((z,me)=>{for(var Ne in me)Oe(z,Ne,{get:me[Ne],enumerable:!0})})({},{err:()=>Tt,map:()=>St,ok:()=>ht,unwrap:()=>yt,unwrapErr:()=>_t});var ht=z=>({isOk:!0,isErr:!1,value:z}),Tt=z=>({isOk:!1,isErr:!0,value:z});function St(z,me){if(z.isOk){const Ne=me(z.value);return Ne instanceof Promise?Ne.then(et=>ht(et)):ht(Ne)}if(z.isErr)return Tt(z.value);throw"should never get here"}var yt=z=>{if(z.isOk)return z.value;throw z.value},_t=z=>{if(z.isErr)return z.value;throw z.value},Fe="s-id",xe="sty-id",vn="slot-fb{display:contents}slot-fb[hidden]{display:none}",Nt="http://www.w3.org/1999/xlink",tt=(z,me,...Ne)=>{let et=null,wt=null,It=null,Yt=!1,sn=!1;const cn=[],En=jn=>{for(let lr=0;lrjn[lr]).join(" "))}}if("function"==typeof z)return z(null===me?{}:me,cn,H);const Nn=on(z,null);return Nn.$attrs$=me,cn.length>0&&(Nn.$children$=cn),Nn.$key$=wt,Nn.$name$=It,Nn},on=(z,me)=>({$flags$:0,$tag$:z,$text$:me,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),dt={},H={forEach:(z,me)=>z.map(X).forEach(me),map:(z,me)=>z.map(X).map(me).map(fe)},X=z=>({vattrs:z.$attrs$,vchildren:z.$children$,vkey:z.$key$,vname:z.$name$,vtag:z.$tag$,vtext:z.$text$}),fe=z=>{if("function"==typeof z.vtag){const Ne={...z.vattrs};return z.vkey&&(Ne.key=z.vkey),z.vname&&(Ne.name=z.vname),tt(z.vtag,Ne,...z.vchildren||[])}const me=on(z.vtag,z.vtext);return me.$attrs$=z.vattrs,me.$children$=z.vchildren,me.$key$=z.vkey,me.$name$=z.vname,me},ve=(z,me,Ne,et,wt,It,Yt)=>{let sn,cn,En,Nn;if(1===It.nodeType){for(sn=It.getAttribute("c-id"),sn&&(cn=sn.split("."),(cn[0]===Yt||"0"===cn[0])&&(En={$flags$:0,$hostId$:cn[0],$nodeId$:cn[1],$depth$:cn[2],$index$:cn[3],$tag$:It.tagName.toLowerCase(),$elm$:It,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},me.push(En),It.removeAttribute("c-id"),z.$children$||(z.$children$=[]),z.$children$[En.$index$]=En,z=En,et&&"0"===En.$depth$&&(et[En.$index$]=En.$elm$))),Nn=It.childNodes.length-1;Nn>=0;Nn--)ve(z,me,Ne,et,wt,It.childNodes[Nn],Yt);if(It.shadowRoot)for(Nn=It.shadowRoot.childNodes.length-1;Nn>=0;Nn--)ve(z,me,Ne,et,wt,It.shadowRoot.childNodes[Nn],Yt)}else if(8===It.nodeType)cn=It.nodeValue.split("."),(cn[1]===Yt||"0"===cn[1])&&(sn=cn[0],En={$flags$:0,$hostId$:cn[1],$nodeId$:cn[2],$depth$:cn[3],$index$:cn[4],$elm$:It,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===sn?(En.$elm$=It.nextSibling,En.$elm$&&3===En.$elm$.nodeType&&(En.$text$=En.$elm$.textContent,me.push(En),It.remove(),z.$children$||(z.$children$=[]),z.$children$[En.$index$]=En,et&&"0"===En.$depth$&&(et[En.$index$]=En.$elm$))):En.$hostId$===Yt&&("s"===sn?(En.$tag$="slot",It["s-sn"]=cn[5]?En.$name$=cn[5]:"",It["s-sr"]=!0,et&&(En.$elm$=he.createElement(En.$tag$),En.$name$&&En.$elm$.setAttribute("name",En.$name$),It.parentNode.insertBefore(En.$elm$,It),It.remove(),"0"===En.$depth$&&(et[En.$index$]=En.$elm$)),Ne.push(En),z.$children$||(z.$children$=[]),z.$children$[En.$index$]=En):"r"===sn&&(et?It.remove():(wt["s-cr"]=It,It["s-cn"]=!0))));else if(z&&"style"===z.$tag$){const jn=on(null,It.textContent);jn.$elm$=It,jn.$index$="0",z.$children$=[jn]}},Le=(z,me)=>{if(1===z.nodeType){let Ne=0;for(;Neoi.push(z),dn=z=>mi(z).$modeName$,rn=z=>mi(z).$hostElement$,Ln=(z,me,Ne)=>{const et=rn(z);return{emit:wt=>Zn(et,me,{bubbles:!!(4&Ne),composed:!!(2&Ne),cancelable:!!(1&Ne),detail:wt})}},Zn=(z,me,Ne)=>{const et=W.ce(me,Ne);return z.dispatchEvent(et),et},nr=new WeakMap,er=(z,me,Ne)=>{let et=No.get(z);In&&Ne?(et=et||new CSSStyleSheet,"string"==typeof et?et=me:et.replaceSync(me)):et=me,No.set(z,et)},yr=(z,me,Ne)=>{var et;const wt=ir(me,Ne),It=No.get(wt);if(z=11===z.nodeType?z:he,It)if("string"==typeof It){let sn,Yt=nr.get(z=z.head||z);if(Yt||nr.set(z,Yt=new Set),!Yt.has(wt)){if(z.host&&(sn=z.querySelector(`[${xe}="${wt}"]`)))sn.innerHTML=It;else{sn=he.createElement("style"),sn.innerHTML=It;const cn=null!=(et=W.$nonce$)?et:Ze(he);null!=cn&&sn.setAttribute("nonce",cn),z.insertBefore(sn,z.querySelector("link"))}4&me.$flags$&&(sn.innerHTML+=vn),Yt&&Yt.add(wt)}}else z.adoptedStyleSheets.includes(It)||(z.adoptedStyleSheets=[...z.adoptedStyleSheets,It]);return wt},ir=(z,me)=>"sc-"+(me&&32&z.$flags$?z.$tagName$+"-"+me:z.$tagName$),nt=z=>z.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Ot=(z,me,Ne,et,wt,It)=>{if(Ne!==et){let Yt=ao(z,me),sn=me.toLowerCase();if("class"===me){const cn=z.classList,En=pn(Ne),Nn=pn(et);cn.remove(...En.filter(jn=>jn&&!Nn.includes(jn))),cn.add(...Nn.filter(jn=>jn&&!En.includes(jn)))}else if("style"===me){for(const cn in Ne)(!et||null==et[cn])&&(cn.includes("-")?z.style.removeProperty(cn):z.style[cn]="");for(const cn in et)(!Ne||et[cn]!==Ne[cn])&&(cn.includes("-")?z.style.setProperty(cn,et[cn]):z.style[cn]=et[cn])}else if("key"!==me)if("ref"===me)et&&et(z);else if(Yt||"o"!==me[0]||"n"!==me[1]){const cn=Qe(et);if((Yt||cn&&null!==et)&&!wt)try{if(z.tagName.includes("-"))z[me]=et;else{const Nn=null==et?"":et;"list"===me?Yt=!1:(null==Ne||z[me]!=Nn)&&(z[me]=Nn)}}catch{}let En=!1;sn!==(sn=sn.replace(/^xlink\:?/,""))&&(me=sn,En=!0),null==et||!1===et?(!1!==et||""===z.getAttribute(me))&&(En?z.removeAttributeNS(Nt,me):z.removeAttribute(me)):(!Yt||4&It||wt)&&!cn&&(et=!0===et?"":et,En?z.setAttributeNS(Nt,me,et):z.setAttribute(me,et))}else if(me="-"===me[2]?me.slice(3):ao(bt,sn)?sn.slice(2):sn[2]+me.slice(3),Ne||et){const cn=me.endsWith(gn);me=me.replace(Sr,""),Ne&&W.rel(z,me,Ne,cn),et&&W.ael(z,me,et,cn)}}},zt=/\s/,pn=z=>z?z.split(zt):[],gn="Capture",Sr=new RegExp(gn+"$"),Mn=(z,me,Ne)=>{const et=11===me.$elm$.nodeType&&me.$elm$.host?me.$elm$.host:me.$elm$,wt=z&&z.$attrs$||Xe,It=me.$attrs$||Xe;for(const Yt of xn(Object.keys(wt)))Yt in It||Ot(et,Yt,wt[Yt],void 0,Ne,me.$flags$);for(const Yt of xn(Object.keys(It)))Ot(et,Yt,wt[Yt],It[Yt],Ne,me.$flags$)};function xn(z){return z.includes("ref")?[...z.filter(me=>"ref"!==me),"ref"]:z}var mn,en,Er,Ir=!1,Nr=!1,Qn=!1,Dr=!1,Jn=(z,me,Ne,et)=>{var wt;const It=me.$children$[Ne];let sn,cn,En,Yt=0;if(Ir||(Qn=!0,"slot"===It.$tag$&&(mn&&et.classList.add(mn+"-s"),It.$flags$|=It.$children$?2:1)),null!==It.$text$)sn=It.$elm$=he.createTextNode(It.$text$);else if(1&It.$flags$)sn=It.$elm$=he.createTextNode("");else{if(Dr||(Dr="svg"===It.$tag$),sn=It.$elm$=he.createElementNS(Dr?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&It.$flags$?"slot-fb":It.$tag$),Dr&&"foreignObject"===It.$tag$&&(Dr=!1),Mn(null,It,Dr),(z=>null!=z)(mn)&&sn["s-si"]!==mn&&sn.classList.add(sn["s-si"]=mn),It.$children$)for(Yt=0;Yt{W.$flags$|=1;const me=z.closest(Er.toLowerCase());if(null!=me){const Ne=Array.from(me.childNodes).find(wt=>wt["s-cr"]),et=Array.from(z.childNodes);for(const wt of Ne?et.reverse():et)null!=wt["s-sh"]&&(Ee(me,wt,null!=Ne?Ne:null),wt["s-sh"]=void 0,Qn=!0)}W.$flags$&=-2},mr=(z,me)=>{W.$flags$|=1;const Ne=Array.from(z.childNodes);if(z["s-sr"]){let et=z;for(;et=et.nextSibling;)et&&et["s-sn"]===z["s-sn"]&&et["s-sh"]===Er&&Ne.push(et)}for(let et=Ne.length-1;et>=0;et--){const wt=Ne[et];wt["s-hn"]!==Er&&wt["s-ol"]&&(Ee(Ai(wt),wt,ii(wt)),wt["s-ol"].remove(),wt["s-ol"]=void 0,wt["s-sh"]=void 0,Qn=!0),me&&mr(wt,me)}W.$flags$&=-2},ur=(z,me,Ne,et,wt,It)=>{let sn,Yt=z["s-cr"]&&z["s-cr"].parentNode||z;for(Yt.shadowRoot&&Yt.tagName===Er&&(Yt=Yt.shadowRoot);wt<=It;++wt)et[wt]&&(sn=Jn(null,Ne,wt,z),sn&&(et[wt].$elm$=sn,Ee(Yt,sn,ii(me))))},Pr=(z,me,Ne)=>{for(let et=me;et<=Ne;++et){const wt=z[et];if(wt){const It=wt.$elm$;ce(wt),It&&(Nr=!0,It["s-ol"]?It["s-ol"].remove():mr(It,!0),It.remove())}}},kr=(z,me,Ne=!1)=>z.$tag$===me.$tag$&&("slot"===z.$tag$?z.$name$===me.$name$:!!Ne||z.$key$===me.$key$),ii=z=>z&&z["s-ol"]||z,Ai=z=>(z["s-ol"]?z["s-ol"]:z).parentNode,Qr=(z,me,Ne=!1)=>{const et=me.$elm$=z.$elm$,wt=z.$children$,It=me.$children$,Yt=me.$tag$,sn=me.$text$;let cn;null===sn?(Dr="svg"===Yt||"foreignObject"!==Yt&&Dr,"slot"!==Yt||Ir?Mn(z,me,Dr):z.$name$!==me.$name$&&(me.$elm$["s-sn"]=me.$name$||"",Jr(me.$elm$.parentElement)),null!==wt&&null!==It?((z,me,Ne,et,wt=!1)=>{let jr,br,It=0,Yt=0,sn=0,cn=0,En=me.length-1,Nn=me[0],jn=me[En],lr=et.length-1,Vn=et[0],qr=et[lr];for(;It<=En&&Yt<=lr;)if(null==Nn)Nn=me[++It];else if(null==jn)jn=me[--En];else if(null==Vn)Vn=et[++Yt];else if(null==qr)qr=et[--lr];else if(kr(Nn,Vn,wt))Qr(Nn,Vn,wt),Nn=me[++It],Vn=et[++Yt];else if(kr(jn,qr,wt))Qr(jn,qr,wt),jn=me[--En],qr=et[--lr];else if(kr(Nn,qr,wt))("slot"===Nn.$tag$||"slot"===qr.$tag$)&&mr(Nn.$elm$.parentNode,!1),Qr(Nn,qr,wt),Ee(z,Nn.$elm$,jn.$elm$.nextSibling),Nn=me[++It],qr=et[--lr];else if(kr(jn,Vn,wt))("slot"===Nn.$tag$||"slot"===qr.$tag$)&&mr(jn.$elm$.parentNode,!1),Qr(jn,Vn,wt),Ee(z,jn.$elm$,Nn.$elm$),jn=me[--En],Vn=et[++Yt];else{for(sn=-1,cn=It;cn<=En;++cn)if(me[cn]&&null!==me[cn].$key$&&me[cn].$key$===Vn.$key$){sn=cn;break}sn>=0?(br=me[sn],br.$tag$!==Vn.$tag$?jr=Jn(me&&me[Yt],Ne,sn,z):(Qr(br,Vn,wt),me[sn]=void 0,jr=br.$elm$),Vn=et[++Yt]):(jr=Jn(me&&me[Yt],Ne,Yt,z),Vn=et[++Yt]),jr&&Ee(Ai(Nn.$elm$),jr,ii(Nn.$elm$))}It>En?ur(z,null==et[lr+1]?null:et[lr+1].$elm$,Ne,et,Yt,lr):Yt>lr&&Pr(me,It,En)})(et,wt,me,It,Ne):null!==It?(null!==z.$text$&&(et.textContent=""),ur(et,null,me,It,0,It.length-1)):null!==wt&&Pr(wt,0,wt.length-1),Dr&&"svg"===Yt&&(Dr=!1)):(cn=et["s-cr"])?cn.parentNode.textContent=sn:z.$text$!==sn&&(et.data=sn)},pe=z=>{const me=z.childNodes;for(const Ne of me)if(1===Ne.nodeType){if(Ne["s-sr"]){const et=Ne["s-sn"];Ne.hidden=!1;for(const wt of me)if(wt!==Ne)if(wt["s-hn"]!==Ne["s-hn"]||""!==et){if(1===wt.nodeType&&(et===wt.getAttribute("slot")||et===wt["s-sn"])||3===wt.nodeType&&et===wt["s-sn"]){Ne.hidden=!0;break}}else if(1===wt.nodeType||3===wt.nodeType&&""!==wt.textContent.trim()){Ne.hidden=!0;break}}pe(Ne)}},it=[],Mt=z=>{let me,Ne,et;for(const wt of z.childNodes){if(wt["s-sr"]&&(me=wt["s-cr"])&&me.parentNode){Ne=me.parentNode.childNodes;const It=wt["s-sn"];for(et=Ne.length-1;et>=0;et--)if(me=Ne[et],!(me["s-cn"]||me["s-nr"]||me["s-hn"]===wt["s-hn"]||me["s-sh"]&&me["s-sh"]===wt["s-hn"]))if(ut(me,It)){let Yt=it.find(sn=>sn.$nodeToRelocate$===me);Nr=!0,me["s-sn"]=me["s-sn"]||It,Yt?(Yt.$nodeToRelocate$["s-sh"]=wt["s-hn"],Yt.$slotRefNode$=wt):(me["s-sh"]=wt["s-hn"],it.push({$slotRefNode$:wt,$nodeToRelocate$:me})),me["s-sr"]&&it.map(sn=>{ut(sn.$nodeToRelocate$,me["s-sn"])&&(Yt=it.find(cn=>cn.$nodeToRelocate$===me),Yt&&!sn.$slotRefNode$&&(sn.$slotRefNode$=Yt.$slotRefNode$))})}else it.some(Yt=>Yt.$nodeToRelocate$===me)||it.push({$nodeToRelocate$:me})}1===wt.nodeType&&Mt(wt)}},ut=(z,me)=>1===z.nodeType?null===z.getAttribute("slot")&&""===me||z.getAttribute("slot")===me:z["s-sn"]===me||""===me,ce=z=>{z.$attrs$&&z.$attrs$.ref&&z.$attrs$.ref(null),z.$children$&&z.$children$.map(ce)},Ee=(z,me,Ne)=>{const et=null==z?void 0:z.insertBefore(me,Ne);return Lt(me,z),et},He=z=>z?z["s-rsc"]||z["s-si"]||z["s-sc"]||He(z.parentElement):void 0,Lt=(z,me)=>{var Ne,et,wt;if(z&&me){const It=z["s-rsc"],Yt=He(me);It&&null!=(Ne=z.classList)&&Ne.contains(It)&&z.classList.remove(It),Yt&&(z["s-rsc"]=Yt,(null==(et=z.classList)||!et.contains(Yt))&&(null==(wt=z.classList)||wt.add(Yt)))}},ct=(z,me)=>{me&&!z.$onRenderResolve$&&me["s-p"]&&me["s-p"].push(new Promise(Ne=>z.$onRenderResolve$=Ne))},lt=(z,me)=>{if(z.$flags$|=16,!(4&z.$flags$))return ct(z,z.$ancestorComponent$),ni(()=>Gt(z,me));z.$flags$|=512},Gt=(z,me)=>{const et=z.$lazyInstance$;let wt;return me&&(z.$flags$|=256,z.$queuedListeners$&&(z.$queuedListeners$.map(([It,Yt])=>dr(et,It,Yt)),z.$queuedListeners$=void 0),wt=dr(et,"componentWillLoad")),wt=tn(wt,()=>dr(et,"componentWillRender")),tn(wt,()=>qn(z,et,me))},tn=(z,me)=>_n(z)?z.then(me):me(),_n=z=>z instanceof Promise||z&&z.then&&"function"==typeof z.then,qn=function(){var z=(0,h.A)(function*(me,Ne,et){var wt;const It=me.$hostElement$,sn=It["s-rc"];et&&(z=>{const me=z.$cmpMeta$,Ne=z.$hostElement$,et=me.$flags$,It=yr(Ne.shadowRoot?Ne.shadowRoot:Ne.getRootNode(),me,z.$modeName$);10&et&&(Ne["s-sc"]=It,Ne.classList.add(It+"-h"),2&et&&Ne.classList.add(It+"-s"))})(me);hn(me,Ne,It,et),sn&&(sn.map(En=>En()),It["s-rc"]=void 0);{const En=null!=(wt=It["s-p"])?wt:[],Nn=()=>Cn(me);0===En.length?Nn():(Promise.all(En).then(Nn),me.$flags$|=4,En.length=0)}});return function(Ne,et,wt){return z.apply(this,arguments)}}(),hn=(z,me,Ne,et)=>{try{me=me.render&&me.render(),z.$flags$&=-17,z.$flags$|=2,((z,me,Ne=!1)=>{var et,wt,It,Yt,sn;const cn=z.$hostElement$,En=z.$cmpMeta$,Nn=z.$vnode$||on(null,null),jn=(z=>z&&z.$tag$===dt)(me)?me:tt(null,null,me);if(Er=cn.tagName,En.$attrsToReflect$&&(jn.$attrs$=jn.$attrs$||{},En.$attrsToReflect$.map(([lr,Vn])=>jn.$attrs$[Vn]=cn[lr])),Ne&&jn.$attrs$)for(const lr of Object.keys(jn.$attrs$))cn.hasAttribute(lr)&&!["key","ref","style","class"].includes(lr)&&(jn.$attrs$[lr]=cn[lr]);if(jn.$tag$=null,jn.$flags$|=4,z.$vnode$=jn,jn.$elm$=Nn.$elm$=cn.shadowRoot||cn,mn=cn["s-sc"],Ir=!!(1&En.$flags$),en=cn["s-cr"],Nr=!1,Qr(Nn,jn,Ne),W.$flags$|=1,Qn){Mt(jn.$elm$);for(const lr of it){const Vn=lr.$nodeToRelocate$;if(!Vn["s-ol"]){const qr=he.createTextNode("");qr["s-nr"]=Vn,Ee(Vn.parentNode,Vn["s-ol"]=qr,Vn)}}for(const lr of it){const Vn=lr.$nodeToRelocate$,qr=lr.$slotRefNode$;if(qr){const jr=qr.parentNode;let br=qr.nextSibling;if(br&&1===br.nodeType){let wi=null==(et=Vn["s-ol"])?void 0:et.previousSibling;for(;wi;){let Ni=null!=(wt=wi["s-nr"])?wt:null;if(Ni&&Ni["s-sn"]===Vn["s-sn"]&&jr===Ni.parentNode){for(Ni=Ni.nextSibling;Ni===Vn||null!=Ni&&Ni["s-sr"];)Ni=null==Ni?void 0:Ni.nextSibling;if(!Ni||!Ni["s-nr"]){br=Ni;break}}wi=wi.previousSibling}}(!br&&jr!==Vn.parentNode||Vn.nextSibling!==br)&&Vn!==br&&(Ee(jr,Vn,br),1===Vn.nodeType&&(Vn.hidden=null!=(It=Vn["s-ih"])&&It)),Vn&&"function"==typeof qr["s-rf"]&&qr["s-rf"](Vn)}else 1===Vn.nodeType&&(Ne&&(Vn["s-ih"]=null!=(Yt=Vn.hidden)&&Yt),Vn.hidden=!0)}}if(Nr&&pe(jn.$elm$),W.$flags$&=-2,it.length=0,2&En.$flags$)for(const lr of jn.$elm$.childNodes)lr["s-hn"]!==Er&&!lr["s-sh"]&&(Ne&&null==lr["s-ih"]&&(lr["s-ih"]=null!=(sn=lr.hidden)&&sn),lr.hidden=!0);en=void 0})(z,me,et)}catch(wt){ui(wt,z.$hostElement$)}return null},Cn=z=>{const Ne=z.$hostElement$,wt=z.$lazyInstance$,It=z.$ancestorComponent$;dr(wt,"componentDidRender"),64&z.$flags$?dr(wt,"componentDidUpdate"):(z.$flags$|=64,$r(Ne),dr(wt,"componentDidLoad"),z.$onReadyResolve$(Ne),It||Ar()),z.$onInstanceResolve$(Ne),z.$onRenderResolve$&&(z.$onRenderResolve$(),z.$onRenderResolve$=void 0),512&z.$flags$&&ot(()=>lt(z,!1)),z.$flags$&=-517},tr=z=>{{const me=mi(z),Ne=me.$hostElement$.isConnected;return Ne&&2==(18&me.$flags$)&<(me,!1),Ne}},Ar=z=>{$r(he.documentElement),ot(()=>Zn(bt,"appload",{detail:{namespace:"ionic"}}))},dr=(z,me,Ne)=>{if(z&&z[me])try{return z[me](Ne)}catch(et){ui(et)}},$r=z=>z.classList.add("hydrated"),Ri=(z,me,Ne)=>{var et;const wt=z.prototype;if(me.$members$){z.watchers&&(me.$watchers$=z.watchers);const It=Object.entries(me.$members$);if(It.map(([Yt,[sn]])=>{31&sn||2&Ne&&32&sn?Object.defineProperty(wt,Yt,{get(){return((z,me)=>mi(this).$instanceValues$.get(me))(0,Yt)},set(cn){((z,me,Ne,et)=>{const wt=mi(z);if(!wt)throw new Error(`Couldn't find host element for "${et.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const It=wt.$hostElement$,Yt=wt.$instanceValues$.get(me),sn=wt.$flags$,cn=wt.$lazyInstance$;Ne=((z,me)=>null==z||Qe(z)?z:4&me?"false"!==z&&(""===z||!!z):2&me?parseFloat(z):1&me?String(z):z)(Ne,et.$members$[me][0]);const En=Number.isNaN(Yt)&&Number.isNaN(Ne);if((!(8&sn)||void 0===Yt)&&Ne!==Yt&&!En&&(wt.$instanceValues$.set(me,Ne),cn)){if(et.$watchers$&&128&sn){const jn=et.$watchers$[me];jn&&jn.map(lr=>{try{cn[lr](Ne,Yt,me)}catch(Vn){ui(Vn,It)}})}2==(18&sn)&<(wt,!1)}})(this,Yt,cn,me)},configurable:!0,enumerable:!0}):1&Ne&&64&sn&&Object.defineProperty(wt,Yt,{value(...cn){var En;const Nn=mi(this);return null==(En=null==Nn?void 0:Nn.$onInstancePromise$)?void 0:En.then(()=>{var jn;return null==(jn=Nn.$lazyInstance$)?void 0:jn[Yt](...cn)})}})}),1&Ne){const Yt=new Map;wt.attributeChangedCallback=function(sn,cn,En){W.jmp(()=>{var Nn;const jn=Yt.get(sn);if(this.hasOwnProperty(jn))En=this[jn],delete this[jn];else{if(wt.hasOwnProperty(jn)&&"number"==typeof this[jn]&&this[jn]==En)return;if(null==jn){const lr=mi(this),Vn=null==lr?void 0:lr.$flags$;if(Vn&&!(8&Vn)&&128&Vn&&En!==cn){const qr=lr.$lazyInstance$,jr=null==(Nn=me.$watchers$)?void 0:Nn[sn];null==jr||jr.forEach(br=>{null!=qr[br]&&qr[br].call(qr,En,cn,sn)})}return}}this[jn]=(null!==En||"boolean"!=typeof this[jn])&&En})},z.observedAttributes=Array.from(new Set([...Object.keys(null!=(et=me.$watchers$)?et:{}),...It.filter(([sn,cn])=>15&cn[0]).map(([sn,cn])=>{var En;const Nn=cn[1]||sn;return Yt.set(Nn,sn),512&cn[0]&&(null==(En=me.$attrsToReflect$)||En.push([sn,Nn])),Nn})]))}}return z},gi=function(){var z=(0,h.A)(function*(me,Ne,et,wt){let It;if(!(32&Ne.$flags$)){if(Ne.$flags$|=32,et.$lazyBundleId$){if(It=Eo(et),It.then){const Nn=()=>{};It=yield It,Nn()}It.isProxied||(et.$watchers$=It.watchers,Ri(It,et,2),It.isProxied=!0);const En=()=>{};Ne.$flags$|=8;try{new It(Ne)}catch(Nn){ui(Nn)}Ne.$flags$&=-9,Ne.$flags$|=128,En(),pr(Ne.$lazyInstance$)}else It=me.constructor,customElements.whenDefined(et.$tagName$).then(()=>Ne.$flags$|=128);if(It.style){let En=It.style;"string"!=typeof En&&(En=En[Ne.$modeName$=(z=>oi.map(me=>me(z)).find(me=>!!me))(me)]);const Nn=ir(et,Ne.$modeName$);if(!No.has(Nn)){const jn=()=>{};er(Nn,En,!!(1&et.$flags$)),jn()}}}const Yt=Ne.$ancestorComponent$,sn=()=>lt(Ne,!0);Yt&&Yt["s-rc"]?Yt["s-rc"].push(sn):sn()});return function(Ne,et,wt,It){return z.apply(this,arguments)}}(),pr=z=>{dr(z,"connectedCallback")},ne=z=>{const me=z["s-cr"]=he.createComment("");me["s-cn"]=!0,Ee(z,me,z.firstChild)},ee=z=>{dr(z,"disconnectedCallback")},je=function(){var z=(0,h.A)(function*(me){if(!(1&W.$flags$)){const Ne=mi(me);Ne.$rmListeners$&&(Ne.$rmListeners$.map(et=>et()),Ne.$rmListeners$=void 0),null!=Ne&&Ne.$lazyInstance$?ee(Ne.$lazyInstance$):null!=Ne&&Ne.$onReadyPromise$&&Ne.$onReadyPromise$.then(()=>ee(Ne.$lazyInstance$))}});return function(Ne){return z.apply(this,arguments)}}(),x=z=>{const me=z.cloneNode;z.cloneNode=function(Ne){const et=this,wt=et.shadowRoot&&Ve,It=me.call(et,!!wt&&Ne);if(!wt&&Ne){let sn,cn,Yt=0;const En=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-rsc"];for(;Yt!et.childNodes[Yt][Nn]),sn&&(It.__appendChild?It.__appendChild(sn.cloneNode(!0)):It.appendChild(sn.cloneNode(!0))),cn&&It.appendChild(et.childNodes[Yt].cloneNode(!0))}return It}},te=z=>{z.__appendChild=z.appendChild,z.appendChild=function(me){const Ne=me["s-sn"]=Fr(me),et=Or(this.childNodes,Ne,this.tagName);if(et){const wt=zr(et,Ne),It=wt[wt.length-1],Yt=Ee(It.parentNode,me,It.nextSibling);return pe(this),Yt}return this.__appendChild(me)}},Te=z=>{z.__removeChild=z.removeChild,z.removeChild=function(me){if(me&&typeof me["s-sn"]<"u"){const Ne=Or(this.childNodes,me["s-sn"],this.tagName);if(Ne){const wt=zr(Ne,me["s-sn"]).find(It=>It===me);if(wt)return wt.remove(),void pe(this)}}return this.__removeChild(me)}},Ge=z=>{const me=z.prepend;z.prepend=function(...Ne){Ne.forEach(et=>{"string"==typeof et&&(et=this.ownerDocument.createTextNode(et));const wt=et["s-sn"]=Fr(et),It=Or(this.childNodes,wt,this.tagName);if(It){const Yt=document.createTextNode("");Yt["s-nr"]=et,It["s-cr"].parentNode.__appendChild(Yt),et["s-ol"]=Yt;const cn=zr(It,wt)[0];return Ee(cn.parentNode,et,cn.nextSibling)}return 1===et.nodeType&&et.getAttribute("slot")&&(et.hidden=!0),me.call(this,et)})}},Ct=z=>{z.append=function(...me){me.forEach(Ne=>{"string"==typeof Ne&&(Ne=this.ownerDocument.createTextNode(Ne)),this.appendChild(Ne)})}},Jt=z=>{const me=z.insertAdjacentHTML;z.insertAdjacentHTML=function(Ne,et){if("afterbegin"!==Ne&&"beforeend"!==Ne)return me.call(this,Ne,et);const wt=this.ownerDocument.createElement("_");let It;if(wt.innerHTML=et,"afterbegin"===Ne)for(;It=wt.firstChild;)this.prepend(It);else if("beforeend"===Ne)for(;It=wt.firstChild;)this.append(It)}},ln=z=>{z.insertAdjacentText=function(me,Ne){this.insertAdjacentHTML(me,Ne)}},or=z=>{const me=z.insertAdjacentElement;z.insertAdjacentElement=function(Ne,et){return"afterbegin"!==Ne&&"beforeend"!==Ne?me.call(this,Ne,et):"afterbegin"===Ne?(this.prepend(et),et):("beforeend"===Ne&&this.append(et),et)}},Un=z=>{const me=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(z,"__textContent",me),Object.defineProperty(z,"textContent",{get(){return" "+On(this.childNodes).map(wt=>{var It,Yt;const sn=[];let cn=wt.nextSibling;for(;cn&&cn["s-sn"]===wt["s-sn"];)(3===cn.nodeType||1===cn.nodeType)&&sn.push(null!=(Yt=null==(It=cn.textContent)?void 0:It.trim())?Yt:""),cn=cn.nextSibling;return sn.filter(En=>""!==En).join(" ")}).filter(wt=>""!==wt).join(" ")+" "},set(Ne){On(this.childNodes).forEach(wt=>{let It=wt.nextSibling;for(;It&&It["s-sn"]===wt["s-sn"];){const Yt=It;It=It.nextSibling,Yt.remove()}if(""===wt["s-sn"]){const Yt=this.ownerDocument.createTextNode(Ne);Yt["s-sn"]="",Ee(wt.parentElement,Yt,wt.nextSibling)}else wt.remove()})}})},xr=(z,me)=>{class Ne extends Array{item(wt){return this[wt]}}if(8&me.$flags$){const et=z.__lookupGetter__("childNodes");Object.defineProperty(z,"children",{get(){return this.childNodes.map(wt=>1===wt.nodeType)}}),Object.defineProperty(z,"childElementCount",{get:()=>z.children.length}),Object.defineProperty(z,"childNodes",{get(){const wt=et.call(this);if(!(1&W.$flags$)&&2&mi(this).$flags$){const It=new Ne;for(let Yt=0;Yt{const me=[];for(const Ne of Array.from(z))Ne["s-sr"]&&me.push(Ne),me.push(...On(Ne.childNodes));return me},Fr=z=>z["s-sn"]||1===z.nodeType&&z.getAttribute("slot")||"",Or=(z,me,Ne)=>{let wt,et=0;for(;et{const Ne=[z];for(;(z=z.nextSibling)&&z["s-sn"]===me;)Ne.push(z);return Ne},Tr=(z,me={})=>{var Ne;const wt=[],It=me.exclude||[],Yt=bt.customElements,sn=he.head,cn=sn.querySelector("meta[charset]"),En=he.createElement("style"),Nn=[],jn=he.querySelectorAll(`[${xe}]`);let lr,Vn=!0,qr=0;for(Object.assign(W,me),W.$resourcesUrl$=new URL(me.resourcesUrl||"./",he.baseURI).href,W.$flags$|=2;qr{br[1].map(wi=>{var Ni;const ki={$flags$:wi[0],$tagName$:wi[1],$members$:wi[2],$listeners$:wi[3]};4&ki.$flags$&&(jr=!0),ki.$members$=wi[2],ki.$listeners$=wi[3],ki.$attrsToReflect$=[],ki.$watchers$=null!=(Ni=wi[4])?Ni:{};const ho=ki.$tagName$,as=class extends HTMLElement{constructor(Ur){super(Ur),Hn(Ur=this,ki),1&ki.$flags$&&Ur.attachShadow({mode:"open",delegatesFocus:!!(16&ki.$flags$)})}connectedCallback(){lr&&(clearTimeout(lr),lr=null),Vn?Nn.push(this):W.jmp(()=>(z=>{if(!(1&W.$flags$)){const me=mi(z),Ne=me.$cmpMeta$,et=()=>{};if(1&me.$flags$)Gn(z,me,Ne.$listeners$),null!=me&&me.$lazyInstance$?pr(me.$lazyInstance$):null!=me&&me.$onReadyPromise$&&me.$onReadyPromise$.then(()=>pr(me.$lazyInstance$));else{let wt;if(me.$flags$|=1,wt=z.getAttribute(Fe),wt){if(1&Ne.$flags$){const It=yr(z.shadowRoot,Ne,z.getAttribute("s-mode"));z.classList.remove(It+"-h",It+"-s")}((z,me,Ne,et)=>{const It=z.shadowRoot,Yt=[],cn=It?[]:null,En=et.$vnode$=on(me,null);W.$orgLocNodes$||Le(he.body,W.$orgLocNodes$=new Map),z[Fe]=Ne,z.removeAttribute(Fe),ve(En,Yt,[],cn,z,z,Ne),Yt.map(Nn=>{const jn=Nn.$hostId$+"."+Nn.$nodeId$,lr=W.$orgLocNodes$.get(jn),Vn=Nn.$elm$;lr&&Ve&&""===lr["s-en"]&&lr.parentNode.insertBefore(Vn,lr.nextSibling),It||(Vn["s-hn"]=me,lr&&(Vn["s-ol"]=lr,Vn["s-ol"]["s-nr"]=Vn)),W.$orgLocNodes$.delete(jn)}),It&&cn.map(Nn=>{Nn&&It.appendChild(Nn)})})(z,Ne.$tagName$,wt,me)}wt||12&Ne.$flags$&&ne(z);{let It=z;for(;It=It.parentNode||It.host;)if(1===It.nodeType&&It.hasAttribute("s-id")&&It["s-p"]||It["s-p"]){ct(me,me.$ancestorComponent$=It);break}}Ne.$members$&&Object.entries(Ne.$members$).map(([It,[Yt]])=>{if(31&Yt&&z.hasOwnProperty(It)){const sn=z[It];delete z[It],z[It]=sn}}),gi(z,me,Ne)}et()}})(this))}disconnectedCallback(){W.jmp(()=>je(this))}componentOnReady(){return mi(this).$onReadyPromise$}};2&ki.$flags$&&((z,me)=>{x(z),te(z),Ct(z),Ge(z),or(z),Jt(z),ln(z),Un(z),xr(z,me),Te(z)})(as.prototype,ki),ki.$lazyBundleId$=br[0],!It.includes(ho)&&!Yt.get(ho)&&(wt.push(ho),Yt.define(ho,Ri(as,ki,1)))})}),wt.length>0&&(jr&&(En.textContent+=vn),En.textContent+=wt+"{visibility:hidden}.hydrated{visibility:inherit}",En.innerHTML.length)){En.setAttribute("data-styles","");const br=null!=(Ne=W.$nonce$)?Ne:Ze(he);null!=br&&En.setAttribute("nonce",br),sn.insertBefore(En,cn?cn.nextSibling:sn.firstChild)}Vn=!1,Nn.length?Nn.map(br=>br.connectedCallback()):W.jmp(()=>lr=setTimeout(Ar,30))},Gn=(z,me,Ne,et)=>{Ne&&Ne.map(([wt,It,Yt])=>{const sn=ai(z,wt),cn=Cr(me,Yt),En=li(wt);W.ael(sn,It,cn,En),(me.$rmListeners$=me.$rmListeners$||[]).push(()=>W.rel(sn,It,cn,En))})},Cr=(z,me)=>Ne=>{try{256&z.$flags$?z.$lazyInstance$[me](Ne):(z.$queuedListeners$=z.$queuedListeners$||[]).push([me,Ne])}catch(et){ui(et)}},ai=(z,me)=>4&me?he:8&me?bt:16&me?he.body:z,li=z=>st?{passive:!!(1&z),capture:!!(2&z)}:!!(2&z),Lr=new WeakMap,mi=z=>Lr.get(z),Wn=(z,me)=>Lr.set(me.$lazyInstance$=z,me),Hn=(z,me)=>{const Ne={$flags$:0,$hostElement$:z,$cmpMeta$:me,$instanceValues$:new Map};return Ne.$onInstancePromise$=new Promise(et=>Ne.$onInstanceResolve$=et),Ne.$onReadyPromise$=new Promise(et=>Ne.$onReadyResolve$=et),z["s-p"]=[],z["s-rc"]=[],Gn(z,Ne,me.$listeners$),Lr.set(z,Ne)},ao=(z,me)=>me in z,ui=(z,me)=>(0,console.error)(z,me),Ci=new Map,Eo=(z,me,Ne)=>{const et=z.$tagName$.replace(/-/g,"_"),wt=z.$lazyBundleId$,It=Ci.get(wt);return It?It[et]:D(8996)(`./${wt}.entry.js`).then(Yt=>(Ci.set(wt,Yt),Yt[et]),ui)},No=new Map,oi=[],bt=typeof window<"u"?window:{},he=bt.document||{head:{}},W={$flags$:0,$resourcesUrl$:"",jmp:z=>z(),raf:z=>requestAnimationFrame(z),ael:(z,me,Ne,et)=>z.addEventListener(me,Ne,et),rel:(z,me,Ne,et)=>z.removeEventListener(me,Ne,et),ce:(z,me)=>new CustomEvent(z,me)},$e=z=>{Object.assign(W,z)},Ve=!0,st=(()=>{let z=!1;try{he.addEventListener("e",null,Object.defineProperty({},"passive",{get(){z=!0}}))}catch{}return z})(),In=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Fn=!1,w=[],j=[],re=(z,me)=>Ne=>{z.push(Ne),Fn||(Fn=!0,me&&4&W.$flags$?ot(Ie):W.raf(Ie))},P=z=>{for(let me=0;me{P(w),P(j),(Fn=w.length>0)&&W.raf(Ie)},ot=z=>Promise.resolve(void 0).then(z),sr=re(w,!1),ni=re(j,!0)},2725:(Tn,gt,D)=>{"use strict";D.d(gt,{b:()=>Xe,c:()=>Je,d:()=>Se,e:()=>tt,g:()=>we,l:()=>vn,s:()=>on,t:()=>yt,w:()=>Nt});var h=D(467),c=D(3664),Z=D(9672),Oe=D(4929),U=D(4920);const Xe="ionViewWillLeave",Je="ionViewDidLeave",Se="ionViewWillUnload",De=H=>{H.tabIndex=-1,H.focus()},Qe=H=>null!==H.offsetParent,qe="ion-last-focus",St_saveViewFocus=fe=>{if(c.c.get("focusManagerPriority",!1)){const ve=document.activeElement;null!==ve&&null!=fe&&fe.contains(ve)&&ve.setAttribute(qe,"true")}},St_setViewFocus=fe=>{const se=c.c.get("focusManagerPriority",!1);if(Array.isArray(se)&&!fe.contains(document.activeElement)){const ve=fe.querySelector(`[${qe}]`);if(ve&&Qe(ve))return void De(ve);for(const Le of se)switch(Le){case"content":const _e=fe.querySelector('main, [role="main"]');if(_e&&Qe(_e))return void De(_e);break;case"heading":const Wt=fe.querySelector('h1, [role="heading"][aria-level="1"]');if(Wt&&Qe(Wt))return void De(Wt);break;case"banner":const dn=fe.querySelector('header, [role="banner"]');if(dn&&Qe(dn))return void De(dn);break;default:(0,Oe.p)(`Unrecognized focus manager priority value ${Le}`)}De(fe)}},yt=H=>new Promise((X,fe)=>{(0,Z.w)(()=>{_t(H),Et(H).then(se=>{se.animation&&se.animation.destroy(),mt(H),X(se)},se=>{mt(H),fe(se)})})}),_t=H=>{const X=H.enteringEl,fe=H.leavingEl;St_saveViewFocus(fe),dt(X,fe,H.direction),H.showGoBack?X.classList.add("can-go-back"):X.classList.remove("can-go-back"),on(X,!1),X.style.setProperty("pointer-events","none"),fe&&(on(fe,!1),fe.style.setProperty("pointer-events","none"))},Et=function(){var H=(0,h.A)(function*(X){const fe=yield Me(X);return fe&&Z.B.isBrowser?Ye(fe,X):ge(X)});return function(fe){return H.apply(this,arguments)}}(),mt=H=>{const X=H.enteringEl,fe=H.leavingEl;X.classList.remove("ion-page-invisible"),X.style.removeProperty("pointer-events"),void 0!==fe&&(fe.classList.remove("ion-page-invisible"),fe.style.removeProperty("pointer-events")),St_setViewFocus(X)},Me=function(){var H=(0,h.A)(function*(X){return X.leavingEl&&X.animated&&0!==X.duration?X.animationBuilder?X.animationBuilder:"ios"===X.mode?(yield Promise.resolve().then(D.bind(D,8454))).iosTransitionAnimation:(yield Promise.resolve().then(D.bind(D,3314))).mdTransitionAnimation:void 0});return function(fe){return H.apply(this,arguments)}}(),Ye=function(){var H=(0,h.A)(function*(X,fe){yield Ue(fe,!0);const se=X(fe.baseEl,fe);rt(fe.enteringEl,fe.leavingEl);const ve=yield xe(se,fe);return fe.progressCallback&&fe.progressCallback(void 0),ve&&Rt(fe.enteringEl,fe.leavingEl),{hasCompleted:ve,animation:se}});return function(fe,se){return H.apply(this,arguments)}}(),ge=function(){var H=(0,h.A)(function*(X){const fe=X.enteringEl,se=X.leavingEl,ve=c.c.get("focusManagerPriority",!1);return yield Ue(X,ve),rt(fe,se),Rt(fe,se),{hasCompleted:!0}});return function(fe){return H.apply(this,arguments)}}(),Ue=function(){var H=(0,h.A)(function*(X,fe){(void 0!==X.deepWait?X.deepWait:fe)&&(yield Promise.all([tt(X.enteringEl),tt(X.leavingEl)])),yield Fe(X.viewIsReady,X.enteringEl)});return function(fe,se){return H.apply(this,arguments)}}(),Fe=function(){var H=(0,h.A)(function*(X,fe){X&&(yield X(fe))});return function(fe,se){return H.apply(this,arguments)}}(),xe=(H,X)=>{const fe=X.progressCallback,se=new Promise(ve=>{H.onFinish(Le=>ve(1===Le))});return fe?(H.progressStart(!0),fe(H)):H.play(),se},rt=(H,X)=>{vn(X,Xe),vn(H,"ionViewWillEnter")},Rt=(H,X)=>{vn(H,"ionViewDidEnter"),vn(X,Je)},vn=(H,X)=>{if(H){const fe=new CustomEvent(X,{bubbles:!1,cancelable:!1});H.dispatchEvent(fe)}},Nt=()=>new Promise(H=>(0,U.r)(()=>(0,U.r)(()=>H()))),tt=function(){var H=(0,h.A)(function*(X){const fe=X;if(fe){if(null!=fe.componentOnReady){if(null!=(yield fe.componentOnReady()))return}else if(null!=fe.__registerHost)return void(yield new Promise(ve=>(0,U.r)(ve)));yield Promise.all(Array.from(fe.children).map(tt))}});return function(fe){return H.apply(this,arguments)}}(),on=(H,X)=>{X?(H.setAttribute("aria-hidden","true"),H.classList.add("ion-page-hidden")):(H.hidden=!1,H.removeAttribute("aria-hidden"),H.classList.remove("ion-page-hidden"))},dt=(H,X,fe)=>{void 0!==H&&(H.style.zIndex="back"===fe?"99":"101"),void 0!==X&&(X.style.zIndex="100")},we=H=>H.classList.contains("ion-page")?H:H.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||H},4929:(Tn,gt,D)=>{"use strict";D.d(gt,{a:()=>c,b:()=>Z,p:()=>h});const h=(Oe,...U)=>console.warn(`[Ionic Warning]: ${Oe}`,...U),c=(Oe,...U)=>console.error(`[Ionic Error]: ${Oe}`,...U),Z=(Oe,...U)=>console.error(`<${Oe.tagName.toLowerCase()}> must be used inside ${U.join(" or ")}.`)},8476:(Tn,gt,D)=>{"use strict";D.d(gt,{d:()=>c,w:()=>h});const h=typeof window<"u"?window:void 0,c=typeof document<"u"?document:void 0},3664:(Tn,gt,D)=>{"use strict";D.d(gt,{a:()=>De,b:()=>on,c:()=>Z,i:()=>dt});var h=D(9672);class c{constructor(){this.m=new Map}reset(H){this.m=new Map(Object.entries(H))}get(H,X){const fe=this.m.get(H);return void 0!==fe?fe:X}getBoolean(H,X=!1){const fe=this.m.get(H);return void 0===fe?X:"string"==typeof fe?"true"===fe:!!fe}getNumber(H,X){const fe=parseFloat(this.m.get(H));return isNaN(fe)?void 0!==X?X:NaN:fe}set(H,X){this.m.set(H,X)}}const Z=new c,Je="ionic-persist-config",De=(we,H)=>("string"==typeof we&&(H=we,we=void 0),(we=>Qe(we))(we).includes(H)),Qe=(we=window)=>{if(typeof we>"u")return[];we.Ionic=we.Ionic||{};let H=we.Ionic.platforms;return null==H&&(H=we.Ionic.platforms=Ze(we),H.forEach(X=>we.document.documentElement.classList.add(`plt-${X}`))),H},Ze=we=>{const H=Z.get("platform");return Object.keys(Nt).filter(X=>{const fe=null==H?void 0:H[X];return"function"==typeof fe?fe(we):Nt[X](we)})},ht=we=>!!(Rt(we,/iPad/i)||Rt(we,/Macintosh/i)&&Me(we)),yt=we=>Rt(we,/android|sink/i),Me=we=>vn(we,"(any-pointer:coarse)"),ge=we=>Ue(we)||Fe(we),Ue=we=>!!(we.cordova||we.phonegap||we.PhoneGap),Fe=we=>{const H=we.Capacitor;return!(null==H||!H.isNative)},Rt=(we,H)=>H.test(we.navigator.userAgent),vn=(we,H)=>{var X;return null===(X=we.matchMedia)||void 0===X?void 0:X.call(we,H).matches},Nt={ipad:ht,iphone:we=>Rt(we,/iPhone/i),ios:we=>Rt(we,/iPhone|iPod/i)||ht(we),android:yt,phablet:we=>{const H=we.innerWidth,X=we.innerHeight,fe=Math.min(H,X),se=Math.max(H,X);return fe>390&&fe<520&&se>620&&se<800},tablet:we=>{const H=we.innerWidth,X=we.innerHeight,fe=Math.min(H,X),se=Math.max(H,X);return ht(we)||(we=>yt(we)&&!Rt(we,/mobile/i))(we)||fe>460&&fe<820&&se>780&&se<1400},cordova:Ue,capacitor:Fe,electron:we=>Rt(we,/electron/i),pwa:we=>{var H;return!!(null!==(H=we.matchMedia)&&void 0!==H&&H.call(we,"(display-mode: standalone)").matches||we.navigator.standalone)},mobile:Me,mobileweb:we=>Me(we)&&!ge(we),desktop:we=>!Me(we),hybrid:ge};let tt;const on=we=>we&&(0,h.g)(we)||tt,dt=(we={})=>{if(typeof window>"u")return;const H=window.document,X=window,fe=X.Ionic=X.Ionic||{},se={};we._ael&&(se.ael=we._ael),we._rel&&(se.rel=we._rel),we._ce&&(se.ce=we._ce),(0,h.a)(se);const ve=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(we=>{try{const H=we.sessionStorage.getItem(Je);return null!==H?JSON.parse(H):{}}catch{return{}}})(X)),{persistConfig:!1}),fe.config),(we=>{const H={};return we.location.search.slice(1).split("&").map(X=>X.split("=")).map(([X,fe])=>{try{return[decodeURIComponent(X),decodeURIComponent(fe)]}catch{return["",""]}}).filter(([X])=>((we,H)=>we.substr(0,H.length)===H)(X,"ionic:")).map(([X,fe])=>[X.slice(6),fe]).forEach(([X,fe])=>{H[X]=fe}),H})(X)),we);Z.reset(ve),Z.getBoolean("persistConfig")&&((we,H)=>{try{we.sessionStorage.setItem(Je,JSON.stringify(H))}catch{return}})(X,ve),Qe(X),fe.config=Z,fe.mode=tt=Z.get("mode",H.documentElement.getAttribute("mode")||(De(X,"ios")?"ios":"md")),Z.set("mode",tt),H.documentElement.setAttribute("mode",tt),H.documentElement.classList.add(tt),Z.getBoolean("_testing")&&Z.set("animated",!1);const Le=Wt=>{var dn;return null===(dn=Wt.tagName)||void 0===dn?void 0:dn.startsWith("ION-")},_e=Wt=>["ios","md"].includes(Wt);(0,h.c)(Wt=>{for(;Wt;){const dn=Wt.mode||Wt.getAttribute("mode");if(dn){if(_e(dn))return dn;Le(Wt)&&console.warn('Invalid ionic mode: "'+dn+'", expected: "ios" or "md"')}Wt=Wt.parentElement}return tt})}},8454:(Tn,gt,D)=>{"use strict";D.r(gt),D.d(gt,{iosTransitionAnimation:()=>qe,shadow:()=>Xe});var h=D(9986),c=D(2725);D(8476),D(3664),D(9672);const oe=Tt=>document.querySelector(`${Tt}.ion-cloned-element`),Xe=Tt=>Tt.shadowRoot||Tt,Je=Tt=>{const St="ION-TABS"===Tt.tagName?Tt:Tt.querySelector("ion-tabs"),yt="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=St){const _t=St.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=_t?_t.querySelector(yt):null}return Tt.querySelector(yt)},Se=(Tt,St)=>{const yt="ION-TABS"===Tt.tagName?Tt:Tt.querySelector("ion-tabs");let _t=[];if(null!=yt){const Et=yt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=Et&&(_t=Et.querySelectorAll("ion-buttons"))}else _t=Tt.querySelectorAll("ion-buttons");for(const Et of _t){const mt=Et.closest("ion-header"),Me=mt&&!mt.classList.contains("header-collapse-condense-inactive"),Ye=Et.querySelector("ion-back-button"),ge=Et.classList.contains("buttons-collapse");if(null!==Ye&&("start"===Et.slot||""===Et.slot)&&(ge&&Me&&St||!ge))return Ye}return null},Qe=(Tt,St,yt,_t,Et,mt,Me,Ye,ge)=>{var Ue,Fe;const xe=St?`calc(100% - ${Et.right+4}px)`:Et.left-4+"px",rt=St?"right":"left",Rt=St?"left":"right",vn=St?"right":"left";let Nt=1,tt=1,on=`scale(${tt})`;const dt="scale(1)";if(mt&&Me){const zt=(null===(Ue=mt.textContent)||void 0===Ue?void 0:Ue.trim())===(null===(Fe=Ye.textContent)||void 0===Fe?void 0:Fe.trim());Nt=ge.width/Me.width,tt=(ge.height-ht)/Me.height,on=zt?`scale(${Nt}, ${tt})`:`scale(${tt})`}const H=Xe(_t).querySelector("ion-icon").getBoundingClientRect(),X=St?H.width/2-(H.right-Et.right)+"px":Et.left-H.width/2+"px",fe=St?`-${window.innerWidth-Et.right}px`:`${Et.left}px`,se=`${ge.top}px`,ve=`${Et.top}px`,Wt=yt?[{offset:0,transform:`translate3d(${fe}, ${ve}, 0)`},{offset:1,transform:`translate3d(${X}, ${se}, 0)`}]:[{offset:0,transform:`translate3d(${X}, ${se}, 0)`},{offset:1,transform:`translate3d(${fe}, ${ve}, 0)`}],rn=yt?[{offset:0,opacity:1,transform:dt},{offset:1,opacity:0,transform:on}]:[{offset:0,opacity:0,transform:on},{offset:1,opacity:1,transform:dt}],nr=yt?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],er=(0,h.c)(),yr=(0,h.c)(),rr=(0,h.c)(),ir=oe("ion-back-button"),nt=Xe(ir).querySelector(".button-text"),Ot=Xe(ir).querySelector("ion-icon");ir.text=_t.text,ir.mode=_t.mode,ir.icon=_t.icon,ir.color=_t.color,ir.disabled=_t.disabled,ir.style.setProperty("display","block"),ir.style.setProperty("position","fixed"),yr.addElement(Ot),er.addElement(nt),rr.addElement(ir),rr.beforeStyles({position:"absolute",top:"0px",[vn]:"0px"}).beforeAddWrite(()=>{_t.style.setProperty("display","none"),ir.style.setProperty(rt,xe)}).afterAddWrite(()=>{_t.style.setProperty("display",""),ir.style.setProperty("display","none"),ir.style.removeProperty(rt)}).keyframes(Wt),er.beforeStyles({"transform-origin":`${rt} top`}).keyframes(rn),yr.beforeStyles({"transform-origin":`${Rt} center`}).keyframes(nr),Tt.addAnimation([er,yr,rr])},Ze=(Tt,St,yt,_t,Et,mt,Me,Ye,ge)=>{var Ue,Fe;const xe=St?"right":"left",rt=St?`calc(100% - ${Et.right}px)`:`${Et.left}px`,vn=`${Et.top}px`;let tt=St?`-${window.innerWidth-Me.right-8}px`:`${Me.x+8}px`,on=.5;const dt="scale(1)";let we=`scale(${on})`;if(Ye&&ge){tt=St?`-${window.innerWidth-ge.right-8}px`:ge.x-8+"px";const dn=(null===(Ue=Ye.textContent)||void 0===Ue?void 0:Ue.trim())===(null===(Fe=_t.textContent)||void 0===Fe?void 0:Fe.trim());on=ge.height/(mt.height-ht),we=dn?`scale(${ge.width/mt.width}, ${on})`:`scale(${on})`}const fe=Me.top+Me.height/2-Et.height*on/2+"px",Le=yt?[{offset:0,opacity:0,transform:`translate3d(${tt}, ${fe}, 0) ${we}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${vn}, 0) ${dt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${vn}, 0) ${dt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${tt}, ${fe}, 0) ${we}`}],_e=oe("ion-title"),Wt=(0,h.c)();_e.innerText=_t.innerText,_e.size=_t.size,_e.color=_t.color,Wt.addElement(_e),Wt.beforeStyles({"transform-origin":`${xe} top`,height:`${Et.height}px`,display:"",position:"relative",[xe]:rt}).beforeAddWrite(()=>{_t.style.setProperty("opacity","0")}).afterAddWrite(()=>{_t.style.setProperty("opacity",""),_e.style.setProperty("display","none")}).keyframes(Le),Tt.addAnimation(Wt)},qe=(Tt,St)=>{var yt;try{const _t="cubic-bezier(0.32,0.72,0,1)",Et="opacity",mt="transform",Me="0%",ge="rtl"===Tt.ownerDocument.dir,Ue=ge?"-99.5%":"99.5%",Fe=ge?"33%":"-33%",xe=St.enteringEl,rt=St.leavingEl,Rt="back"===St.direction,vn=xe.querySelector(":scope > ion-content"),Nt=xe.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),tt=xe.querySelectorAll(":scope > ion-header > ion-toolbar"),on=(0,h.c)(),dt=(0,h.c)();if(on.addElement(xe).duration((null!==(yt=St.duration)&&void 0!==yt?yt:0)||540).easing(St.easing||_t).fill("both").beforeRemoveClass("ion-page-invisible"),rt&&null!=Tt){const fe=(0,h.c)();fe.addElement(Tt),on.addAnimation(fe)}if(vn||0!==tt.length||0!==Nt.length?(dt.addElement(vn),dt.addElement(Nt)):dt.addElement(xe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),on.addAnimation(dt),Rt?dt.beforeClearStyles([Et]).fromTo("transform",`translateX(${Fe})`,`translateX(${Me})`).fromTo(Et,.8,1):dt.beforeClearStyles([Et]).fromTo("transform",`translateX(${Ue})`,`translateX(${Me})`),vn){const fe=Xe(vn).querySelector(".transition-effect");if(fe){const se=fe.querySelector(".transition-cover"),ve=fe.querySelector(".transition-shadow"),Le=(0,h.c)(),_e=(0,h.c)(),Wt=(0,h.c)();Le.addElement(fe).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),_e.addElement(se).beforeClearStyles([Et]).fromTo(Et,0,.1),Wt.addElement(ve).beforeClearStyles([Et]).fromTo(Et,.03,.7),Le.addAnimation([_e,Wt]),dt.addAnimation([Le])}}const we=xe.querySelector("ion-header.header-collapse-condense"),{forward:H,backward:X}=((Tt,St,yt,_t,Et)=>{const mt=Se(_t,yt),Me=Je(Et),Ye=Je(_t),ge=Se(Et,yt),Ue=null!==mt&&null!==Me&&!yt,Fe=null!==Ye&&null!==ge&&yt;if(Ue){const xe=Me.getBoundingClientRect(),rt=mt.getBoundingClientRect(),Rt=Xe(mt).querySelector(".button-text"),vn=null==Rt?void 0:Rt.getBoundingClientRect(),tt=Xe(Me).querySelector(".toolbar-title").getBoundingClientRect();Ze(Tt,St,yt,Me,xe,tt,rt,Rt,vn),Qe(Tt,St,yt,mt,rt,Rt,vn,Me,tt)}else if(Fe){const xe=Ye.getBoundingClientRect(),rt=ge.getBoundingClientRect(),Rt=Xe(ge).querySelector(".button-text"),vn=null==Rt?void 0:Rt.getBoundingClientRect(),tt=Xe(Ye).querySelector(".toolbar-title").getBoundingClientRect();Ze(Tt,St,yt,Ye,xe,tt,rt,Rt,vn),Qe(Tt,St,yt,ge,rt,Rt,vn,Ye,tt)}return{forward:Ue,backward:Fe}})(on,ge,Rt,xe,rt);if(tt.forEach(fe=>{const se=(0,h.c)();se.addElement(fe),on.addAnimation(se);const ve=(0,h.c)();ve.addElement(fe.querySelector("ion-title"));const Le=(0,h.c)(),_e=Array.from(fe.querySelectorAll("ion-buttons,[menuToggle]")),Wt=fe.closest("ion-header"),dn=null==Wt?void 0:Wt.classList.contains("header-collapse-condense-inactive");let Kt;Kt=_e.filter(Rt?er=>{const yr=er.classList.contains("buttons-collapse");return yr&&!dn||!yr}:er=>!er.classList.contains("buttons-collapse")),Le.addElement(Kt);const rn=(0,h.c)();rn.addElement(fe.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Ln=(0,h.c)();Ln.addElement(Xe(fe).querySelector(".toolbar-background"));const Zn=(0,h.c)(),nr=fe.querySelector("ion-back-button");if(nr&&Zn.addElement(nr),se.addAnimation([ve,Le,rn,Ln,Zn]),Le.fromTo(Et,.01,1),rn.fromTo(Et,.01,1),Rt)dn||ve.fromTo("transform",`translateX(${Fe})`,`translateX(${Me})`).fromTo(Et,.01,1),rn.fromTo("transform",`translateX(${Fe})`,`translateX(${Me})`),Zn.fromTo(Et,.01,1);else if(we||ve.fromTo("transform",`translateX(${Ue})`,`translateX(${Me})`).fromTo(Et,.01,1),rn.fromTo("transform",`translateX(${Ue})`,`translateX(${Me})`),Ln.beforeClearStyles([Et,"transform"]),(null==Wt?void 0:Wt.translucent)?Ln.fromTo("transform",ge?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Ln.fromTo(Et,.01,"var(--opacity)"),H||Zn.fromTo(Et,.01,1),nr&&!H){const yr=(0,h.c)();yr.addElement(Xe(nr).querySelector(".button-text")).fromTo("transform",ge?"translateX(-100px)":"translateX(100px)","translateX(0px)"),se.addAnimation(yr)}}),rt){const fe=(0,h.c)(),se=rt.querySelector(":scope > ion-content"),ve=rt.querySelectorAll(":scope > ion-header > ion-toolbar"),Le=rt.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(se||0!==ve.length||0!==Le.length?(fe.addElement(se),fe.addElement(Le)):fe.addElement(rt.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),on.addAnimation(fe),Rt){fe.beforeClearStyles([Et]).fromTo("transform",`translateX(${Me})`,ge?"translateX(-100%)":"translateX(100%)");const _e=(0,c.g)(rt);on.afterAddWrite(()=>{"normal"===on.getDirection()&&_e.style.setProperty("display","none")})}else fe.fromTo("transform",`translateX(${Me})`,`translateX(${Fe})`).fromTo(Et,1,.8);if(se){const _e=Xe(se).querySelector(".transition-effect");if(_e){const Wt=_e.querySelector(".transition-cover"),dn=_e.querySelector(".transition-shadow"),Kt=(0,h.c)(),rn=(0,h.c)(),Ln=(0,h.c)();Kt.addElement(_e).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),rn.addElement(Wt).beforeClearStyles([Et]).fromTo(Et,.1,0),Ln.addElement(dn).beforeClearStyles([Et]).fromTo(Et,.7,.03),Kt.addAnimation([rn,Ln]),fe.addAnimation([Kt])}}ve.forEach(_e=>{const Wt=(0,h.c)();Wt.addElement(_e);const dn=(0,h.c)();dn.addElement(_e.querySelector("ion-title"));const Kt=(0,h.c)(),rn=_e.querySelectorAll("ion-buttons,[menuToggle]"),Ln=_e.closest("ion-header"),Zn=null==Ln?void 0:Ln.classList.contains("header-collapse-condense-inactive"),nr=Array.from(rn).filter(Ot=>{const zt=Ot.classList.contains("buttons-collapse");return zt&&!Zn||!zt});Kt.addElement(nr);const er=(0,h.c)(),yr=_e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");yr.length>0&&er.addElement(yr);const rr=(0,h.c)();rr.addElement(Xe(_e).querySelector(".toolbar-background"));const ir=(0,h.c)(),nt=_e.querySelector("ion-back-button");if(nt&&ir.addElement(nt),Wt.addAnimation([dn,Kt,er,ir,rr]),on.addAnimation(Wt),ir.fromTo(Et,.99,0),Kt.fromTo(Et,.99,0),er.fromTo(Et,.99,0),Rt){if(Zn||dn.fromTo("transform",`translateX(${Me})`,ge?"translateX(-100%)":"translateX(100%)").fromTo(Et,.99,0),er.fromTo("transform",`translateX(${Me})`,ge?"translateX(-100%)":"translateX(100%)"),rr.beforeClearStyles([Et,"transform"]),(null==Ln?void 0:Ln.translucent)?rr.fromTo("transform","translateX(0px)",ge?"translateX(-100%)":"translateX(100%)"):rr.fromTo(Et,"var(--opacity)",0),nt&&!X){const zt=(0,h.c)();zt.addElement(Xe(nt).querySelector(".button-text")).fromTo("transform",`translateX(${Me})`,`translateX(${(ge?-124:124)+"px"})`),Wt.addAnimation(zt)}}else Zn||dn.fromTo("transform",`translateX(${Me})`,`translateX(${Fe})`).fromTo(Et,.99,0).afterClearStyles([mt,Et]),er.fromTo("transform",`translateX(${Me})`,`translateX(${Fe})`).afterClearStyles([mt,Et]),ir.afterClearStyles([Et]),dn.afterClearStyles([Et]),Kt.afterClearStyles([Et])})}return on}catch(_t){throw _t}},ht=10},3314:(Tn,gt,D)=>{"use strict";D.r(gt),D.d(gt,{mdTransitionAnimation:()=>ue});var h=D(9986),c=D(2725);D(8476),D(3664),D(9672);const ue=(oe,Xe)=>{var Je,Se,De;const qe="back"===Xe.direction,Tt=Xe.leavingEl,St=(0,c.g)(Xe.enteringEl),yt=St.querySelector("ion-toolbar"),_t=(0,h.c)();if(_t.addElement(St).fill("both").beforeRemoveClass("ion-page-invisible"),qe?_t.duration((null!==(Je=Xe.duration)&&void 0!==Je?Je:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):_t.duration((null!==(Se=Xe.duration)&&void 0!==Se?Se:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),yt){const Et=(0,h.c)();Et.addElement(yt),_t.addAnimation(Et)}if(Tt&&qe){_t.duration((null!==(De=Xe.duration)&&void 0!==De?De:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const Et=(0,h.c)();Et.addElement((0,c.g)(Tt)).onFinish(mt=>{1===mt&&Et.elements.length>0&&Et.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),_t.addAnimation(Et)}return _t}},6002:(Tn,gt,D)=>{"use strict";D.d(gt,{B:()=>rn,F:()=>ir,G:()=>Ln,O:()=>Zn,a:()=>St,b:()=>yt,c:()=>Me,d:()=>nr,e:()=>er,f:()=>H,g:()=>fe,h:()=>Le,i:()=>Wt,j:()=>ge,k:()=>Ue,l:()=>_t,m:()=>Et,n:()=>Se,o:()=>dt,q:()=>De,s:()=>Kt});var h=D(467),c=D(8476),Z=D(4920),Oe=D(6411),U=D(3664),ue=D(8621),oe=D(1970),Xe=D(4929);const Je='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',Se=(nt,Ot)=>{const zt=nt.querySelector(Je);Qe(zt,null!=Ot?Ot:nt)},De=(nt,Ot)=>{const zt=Array.from(nt.querySelectorAll(Je));Qe(zt.length>0?zt[zt.length-1]:null,null!=Ot?Ot:nt)},Qe=(nt,Ot)=>{let zt=nt;const pn=null==nt?void 0:nt.shadowRoot;pn&&(zt=pn.querySelector(Je)||nt),zt?(0,Z.f)(zt):Ot.focus()};let Ze=0,qe=0;const ht=new WeakMap,Tt=nt=>({create:Ot=>Fe(nt,Ot),dismiss:(Ot,zt,pn)=>Nt(document,Ot,zt,nt,pn),getTop:()=>(0,h.A)(function*(){return dt(document,nt)})()}),St=Tt("ion-alert"),yt=Tt("ion-action-sheet"),_t=Tt("ion-loading"),Et=Tt("ion-modal"),Me=Tt("ion-popover"),ge=nt=>{typeof document<"u"&&vn(document);const Ot=Ze++;nt.overlayIndex=Ot},Ue=nt=>(nt.hasAttribute("id")||(nt.id="ion-overlay-"+ ++qe),nt.id),Fe=(nt,Ot)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(nt).then(()=>{const zt=document.createElement(nt);return zt.classList.add("overlay-hidden"),Object.assign(zt,Object.assign(Object.assign({},Ot),{hasController:!0})),se(document).appendChild(zt),new Promise(pn=>(0,Z.c)(zt,pn))}):Promise.resolve(),rt=(nt,Ot)=>{let zt=nt;const pn=null==nt?void 0:nt.shadowRoot;pn&&(zt=pn.querySelector(Je)||nt),zt?(0,Z.f)(zt):Ot.focus()},vn=nt=>{0===Ze&&(Ze=1,nt.addEventListener("focus",Ot=>{((nt,Ot)=>{const zt=dt(Ot,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),pn=nt.target;zt&&pn&&!zt.classList.contains(ir)&&(zt.shadowRoot?(()=>{if(zt.contains(pn))zt.lastFocus=pn;else if("ION-TOAST"===pn.tagName)rt(zt.lastFocus,zt);else{const Mn=zt.lastFocus;Se(zt),Mn===Ot.activeElement&&De(zt),zt.lastFocus=Ot.activeElement}})():(()=>{if(zt===pn)zt.lastFocus=void 0;else if("ION-TOAST"===pn.tagName)rt(zt.lastFocus,zt);else{const Mn=(0,Z.g)(zt);if(!Mn.contains(pn))return;const xn=Mn.querySelector(".ion-overlay-wrapper");if(!xn)return;if(xn.contains(pn)||pn===Mn.querySelector("ion-backdrop"))zt.lastFocus=pn;else{const mn=zt.lastFocus;Se(xn,zt),mn===Ot.activeElement&&De(xn,zt),zt.lastFocus=Ot.activeElement}}})())})(Ot,nt)},!0),nt.addEventListener("ionBackButton",Ot=>{const zt=dt(nt);null!=zt&&zt.backdropDismiss&&Ot.detail.register(Oe.OVERLAY_BACK_BUTTON_PRIORITY,()=>{zt.dismiss(void 0,rn)})}),(0,Oe.shouldUseCloseWatcher)()||nt.addEventListener("keydown",Ot=>{if("Escape"===Ot.key){const zt=dt(nt);null!=zt&&zt.backdropDismiss&&zt.dismiss(void 0,rn)}}))},Nt=(nt,Ot,zt,pn,gn)=>{const Sr=dt(nt,pn,gn);return Sr?Sr.dismiss(Ot,zt):Promise.reject("overlay does not exist")},on=(nt,Ot)=>((nt,Ot)=>(void 0===Ot&&(Ot="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(nt.querySelectorAll(Ot)).filter(zt=>zt.overlayIndex>0)))(nt,Ot).filter(zt=>!(nt=>nt.classList.contains("overlay-hidden"))(zt)),dt=(nt,Ot,zt)=>{const pn=on(nt,Ot);return void 0===zt?pn[pn.length-1]:pn.find(gn=>gn.id===zt)},we=(nt=!1)=>{const zt=se(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");zt&&(nt?zt.setAttribute("aria-hidden","true"):zt.removeAttribute("aria-hidden"))},H=function(){var nt=(0,h.A)(function*(Ot,zt,pn,gn,Sr){var Mn,xn;if(Ot.presented)return;we(!0),document.body.classList.add(oe.B),yr(Ot.el),Ot.presented=!0,Ot.willPresent.emit(),null===(Mn=Ot.willPresentShorthand)||void 0===Mn||Mn.emit();const mn=(0,U.b)(Ot),en=Ot.enterAnimation?Ot.enterAnimation:U.c.get(zt,"ios"===mn?pn:gn);(yield ve(Ot,en,Ot.el,Sr))&&(Ot.didPresent.emit(),null===(xn=Ot.didPresentShorthand)||void 0===xn||xn.emit()),"ION-TOAST"!==Ot.el.tagName&&X(Ot.el),Ot.keyboardClose&&(null===document.activeElement||!Ot.el.contains(document.activeElement))&&Ot.el.focus(),Ot.el.removeAttribute("aria-hidden")});return function(zt,pn,gn,Sr,Mn){return nt.apply(this,arguments)}}(),X=function(){var nt=(0,h.A)(function*(Ot){let zt=document.activeElement;if(!zt)return;const pn=null==zt?void 0:zt.shadowRoot;pn&&(zt=pn.querySelector(Je)||zt),yield Ot.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&zt.focus()});return function(zt){return nt.apply(this,arguments)}}(),fe=function(){var nt=(0,h.A)(function*(Ot,zt,pn,gn,Sr,Mn,xn){var mn,en;if(!Ot.presented)return!1;void 0!==c.d&&1===on(c.d).length&&(we(!1),document.body.classList.remove(oe.B)),Ot.presented=!1;try{Ot.el.style.setProperty("pointer-events","none"),Ot.willDismiss.emit({data:zt,role:pn}),null===(mn=Ot.willDismissShorthand)||void 0===mn||mn.emit({data:zt,role:pn});const Ir=(0,U.b)(Ot),Nr=Ot.leaveAnimation?Ot.leaveAnimation:U.c.get(gn,"ios"===Ir?Sr:Mn);pn!==Ln&&(yield ve(Ot,Nr,Ot.el,xn)),Ot.didDismiss.emit({data:zt,role:pn}),null===(en=Ot.didDismissShorthand)||void 0===en||en.emit({data:zt,role:pn}),(ht.get(Ot)||[]).forEach(Dr=>Dr.destroy()),ht.delete(Ot),Ot.el.classList.add("overlay-hidden"),Ot.el.style.removeProperty("pointer-events"),void 0!==Ot.el.lastFocus&&(Ot.el.lastFocus=void 0)}catch(Ir){console.error(Ir)}return Ot.el.remove(),rr(),!0});return function(zt,pn,gn,Sr,Mn,xn,mn){return nt.apply(this,arguments)}}(),se=nt=>nt.querySelector("ion-app")||nt.body,ve=function(){var nt=(0,h.A)(function*(Ot,zt,pn,gn){pn.classList.remove("overlay-hidden");const Mn=zt(Ot.el,gn);(!Ot.animated||!U.c.getBoolean("animated",!0))&&Mn.duration(0),Ot.keyboardClose&&Mn.beforeAddWrite(()=>{const mn=pn.ownerDocument.activeElement;null!=mn&&mn.matches("input,ion-input, ion-textarea")&&mn.blur()});const xn=ht.get(Ot)||[];return ht.set(Ot,[...xn,Mn]),yield Mn.play(),!0});return function(zt,pn,gn,Sr){return nt.apply(this,arguments)}}(),Le=(nt,Ot)=>{let zt;const pn=new Promise(gn=>zt=gn);return _e(nt,Ot,gn=>{zt(gn.detail)}),pn},_e=(nt,Ot,zt)=>{const pn=gn=>{(0,Z.b)(nt,Ot,pn),zt(gn)};(0,Z.a)(nt,Ot,pn)},Wt=nt=>"cancel"===nt||nt===rn,dn=nt=>nt(),Kt=(nt,Ot)=>{if("function"==typeof nt)return U.c.get("_zoneGate",dn)(()=>{try{return nt(Ot)}catch(pn){throw pn}})},rn="backdrop",Ln="gesture",Zn=39,nr=nt=>{let zt,Ot=!1;const pn=(0,ue.C)(),gn=(xn=!1)=>{if(zt&&!xn)return{delegate:zt,inline:Ot};const{el:mn,hasController:en,delegate:Er}=nt;return Ot=null!==mn.parentNode&&!en,zt=Ot?Er||pn:Er,{inline:Ot,delegate:zt}};return{attachViewToDom:function(){var xn=(0,h.A)(function*(mn){const{delegate:en}=gn(!0);if(en)return yield en.attachViewToDom(nt.el,mn);const{hasController:Er}=nt;if(Er&&void 0!==mn)throw new Error("framework delegate is missing");return null});return function(en){return xn.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:xn}=gn();xn&&void 0!==nt.el&&xn.removeViewFromDom(nt.el.parentElement,nt.el)}}},er=()=>{let nt;const Ot=()=>{nt&&(nt(),nt=void 0)};return{addClickListener:(pn,gn)=>{Ot();const Sr=void 0!==gn?document.getElementById(gn):null;Sr?nt=((xn,mn)=>{const en=()=>{mn.present()};return xn.addEventListener("click",en),()=>{xn.removeEventListener("click",en)}})(Sr,pn):(0,Xe.p)(`A trigger element with the ID "${gn}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,pn)},removeClickListener:Ot}},yr=nt=>{var Ot;if(void 0===c.d)return;const zt=on(c.d);for(let pn=zt.length-1;pn>=0;pn--){const gn=zt[pn],Sr=null!==(Ot=zt[pn+1])&&void 0!==Ot?Ot:nt;(Sr.hasAttribute("aria-hidden")||"ION-TOAST"!==Sr.tagName)&&gn.setAttribute("aria-hidden","true")}},rr=()=>{if(void 0===c.d)return;const nt=on(c.d);for(let Ot=nt.length-1;Ot>=0;Ot--){const zt=nt[Ot];if(zt.removeAttribute("aria-hidden"),"ION-TOAST"!==zt.tagName)break}},ir="ion-disable-focus-trap"},63:(Tn,gt,D)=>{"use strict";var h=D(345),c=D(4438),Z=D(7650),Oe=D(2872),U=D(7863),ue=D(177);function oe(_e,Wt){if(1&_e){const dn=c.RV6();c.j41(0,"ion-item",6),c.bIt("click",function(){c.eBV(dn);const rn=c.XpG().$implicit,Ln=c.XpG();return c.Njj(Ln.navigate(rn))}),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()}if(2&_e){const dn=c.XpG().$implicit;c.R7$(),c.Y8G("name",dn.icon),c.R7$(2),c.JRh(dn.title)}}function Xe(_e,Wt){if(1&_e&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()),2&_e){const dn=c.XpG().$implicit;c.Y8G("routerLink",dn.url),c.R7$(),c.Y8G("name",dn.icon),c.R7$(2),c.JRh(dn.title)}}function Je(_e,Wt){if(1&_e&&(c.j41(0,"ion-menu-toggle",5),c.DNE(1,oe,4,2,"ion-item")(2,Xe,4,3),c.k0s()),2&_e){const dn=Wt.$implicit;c.R7$(),c.vxM(1,dn.params?1:2)}}let Se=(()=>{var _e;class Wt{constructor(Kt,rn){this.router=Kt,this.menuController=rn,this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"Latency Test",url:"/latency-chooser",icon:"pulse"},{title:"Trace Test",url:"/trace-chooser",icon:"globe"},{title:"CPU Usage",url:"/flame-graph-for",params:{usage_type:"cpu"},icon:"stats-chart"},{title:"Memory Usage",url:"/flame-graph-for",params:{usage_type:"memory_usage"},icon:"swap-horizontal"},{title:"Software Testing",url:"/software-testing",icon:"flask"},{title:"Load Test",url:"/load-test-chooser",icon:"barbell"},{title:"Incident Manager",url:"/incident-manager-chooser",icon:"alert-circle"},{title:"My Team",url:"/myteam",icon:"people"},{title:"Settings",url:"/settings",icon:"settings"}]}ngOnInit(){this.router.events.subscribe(Kt=>{Kt instanceof Z.wF&&(Kt.urlAfterRedirects.includes("/login")||Kt.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))})}navigate(Kt){this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate([Kt.url],{queryParams:Kt.params||{}})})}}return(_e=Wt).\u0275fac=function(Kt){return new(Kt||_e)(c.rXU(Z.Ix),c.rXU(U._t))},_e.\u0275cmp=c.VBU({type:_e,selectors:[["app-root"]],decls:11,vars:1,consts:[["when","md","contentId","menu-content"],["content-id","menu-content","menu-id","menu-id","side","start","type","overlay"],[1,"h-full"],["auto-hide","false",4,"ngFor","ngForOf"],["id","menu-content"],["auto-hide","false"],[3,"click"],["slot","start",3,"name"],["color","primary"],[3,"routerLink"]],template:function(Kt,rn){1&Kt&&(c.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),c.EFF(6," Menu "),c.k0s()()(),c.j41(7,"ion-content")(8,"ion-list",2),c.DNE(9,Je,3,1,"ion-menu-toggle",3),c.k0s()()(),c.nrm(10,"ion-router-outlet",4),c.k0s()()),2&Kt&&(c.R7$(9),c.Y8G("ngForOf",rn.menuItems))},dependencies:[ue.Sq,U.U1,U.W9,U.eU,U.iq,U.uz,U.he,U.nf,U.oS,U.cA,U.HP,U.BC,U.ai,U.Rg,U.N7,Z.Wk]}),Wt})();var De=D(9842),Qe=D(8737),Ze=D(1203),qe=D(6354),ht=D(6697);D(2214);const St=(0,qe.T)(_e=>!!_e);let yt=(()=>{var _e;class Wt{constructor(Kt,rn){(0,De.A)(this,"router",void 0),(0,De.A)(this,"auth",void 0),(0,De.A)(this,"canActivate",(Ln,Zn)=>{const nr=Ln.data.authGuardPipe||(()=>St);return(0,Qe.kQ)(this.auth).pipe((0,ht.s)(1),nr(Ln,Zn),(0,qe.T)(er=>"boolean"==typeof er?er:Array.isArray(er)?this.router.createUrlTree(er):this.router.parseUrl(er)))}),this.router=Kt,this.auth=rn}}return _e=Wt,(0,De.A)(Wt,"\u0275fac",function(Kt){return new(Kt||_e)(c.KVO(Z.Ix),c.KVO(Qe.Nj))}),(0,De.A)(Wt,"\u0275prov",c.jDH({token:_e,factory:_e.\u0275fac,providedIn:"any"})),Wt})();const _t=_e=>({canActivate:[yt],data:{authGuardPipe:_e}}),rt=()=>{return _e=[""],(0,Ze.F)(St,(0,qe.T)(Wt=>Wt||_e));var _e},Rt=()=>{return _e=["home"],(0,Ze.F)(St,(0,qe.T)(Wt=>Wt&&_e||!0));var _e},vn=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([D.e(2076),D.e(2757)]).then(D.bind(D,2757)).then(_e=>_e.HomePageModule),..._t(rt)},{path:"register",loadChildren:()=>Promise.all([D.e(2076),D.e(5995)]).then(D.bind(D,5995)).then(_e=>_e.RegisterPageModule),..._t(Rt)},{path:"login",loadChildren:()=>Promise.all([D.e(2076),D.e(6536)]).then(D.bind(D,6536)).then(_e=>_e.LoginPageModule),..._t(Rt)},{path:"myteam",loadChildren:()=>Promise.all([D.e(2076),D.e(461)]).then(D.bind(D,461)).then(_e=>_e.MyteamPageModule),..._t(rt)},{path:"model-product",loadChildren:()=>Promise.all([D.e(2076),D.e(4914)]).then(D.bind(D,4914)).then(_e=>_e.ModelProductPageModule),..._t(rt)},{path:"new-product",loadChildren:()=>Promise.all([D.e(2076),D.e(3646)]).then(D.bind(D,3646)).then(_e=>_e.NewProductPageModule),..._t(rt)},{path:"view-product",loadChildren:()=>Promise.all([D.e(2076),D.e(1313)]).then(D.bind(D,1313)).then(_e=>_e.ViewProductPageModule),..._t(rt)},{path:"show-map",loadChildren:()=>Promise.all([D.e(9273),D.e(2076),D.e(9070)]).then(D.bind(D,9070)).then(_e=>_e.ShowMapPageModule),..._t(rt)},{path:"latency-test",loadChildren:()=>Promise.all([D.e(2076),D.e(9456)]).then(D.bind(D,9456)).then(_e=>_e.LatencyTestPageModule),..._t(rt)},{path:"latency-chooser",loadChildren:()=>Promise.all([D.e(2076),D.e(8886)]).then(D.bind(D,8886)).then(_e=>_e.LatencyChooserPageModule),..._t(rt)},{path:"latency-results",loadChildren:()=>Promise.all([D.e(2076),D.e(8984)]).then(D.bind(D,8984)).then(_e=>_e.LatencyResultsPageModule),..._t(rt)},{path:"graph-latency",loadChildren:()=>Promise.all([D.e(2076),D.e(6975)]).then(D.bind(D,6975)).then(_e=>_e.GraphPageModule),..._t(rt)},{path:"trace-chooser",loadChildren:()=>Promise.all([D.e(2076),D.e(4839)]).then(D.bind(D,4839)).then(_e=>_e.TraceChooserPageModule),..._t(rt)},{path:"trace-test",loadChildren:()=>Promise.all([D.e(2076),D.e(3451)]).then(D.bind(D,3451)).then(_e=>_e.TraceTestPageModule),..._t(rt)},{path:"trace-results",loadChildren:()=>Promise.all([D.e(2076),D.e(7762)]).then(D.bind(D,7762)).then(_e=>_e.TraceResultsPageModule),..._t(rt)},{path:"show-map-trace",loadChildren:()=>Promise.all([D.e(9273),D.e(2076),D.e(8566)]).then(D.bind(D,8566)).then(_e=>_e.ShowMapTracePageModule),..._t(rt)},{path:"graph-data-for",loadChildren:()=>D.e(1081).then(D.bind(D,1081)).then(_e=>_e.GraphDataForPageModule),..._t(rt)},{path:"graph-trace",loadChildren:()=>Promise.all([D.e(2076),D.e(6303)]).then(D.bind(D,6303)).then(_e=>_e.GraphTracePageModule),..._t(rt)},{path:"ai",loadChildren:()=>D.e(4348).then(D.bind(D,4348)).then(_e=>_e.AiPageModule),..._t(rt)},{path:"flame-graph",loadChildren:()=>Promise.all([D.e(2076),D.e(5054)]).then(D.bind(D,5054)).then(_e=>_e.FlameGraphPageModule),..._t(rt)},{path:"flame-graph-for",loadChildren:()=>Promise.all([D.e(2076),D.e(5399)]).then(D.bind(D,5399)).then(_e=>_e.FlameGraphForPageModule),..._t(rt)},{path:"flame-graph-date",loadChildren:()=>Promise.all([D.e(2076),D.e(6480)]).then(D.bind(D,6480)).then(_e=>_e.FlameGraphDatePageModule),..._t(rt)},{path:"flame-graph-compare",loadChildren:()=>Promise.all([D.e(2076),D.e(3100)]).then(D.bind(D,3100)).then(_e=>_e.FlameGraphComparePageModule),..._t(rt)},{path:"software-testing",loadChildren:()=>Promise.all([D.e(2076),D.e(1015)]).then(D.bind(D,1015)).then(_e=>_e.SoftwareTestingPageModule),..._t(rt)},{path:"software-testing-chooser",loadChildren:()=>Promise.all([D.e(2076),D.e(8711)]).then(D.bind(D,8711)).then(_e=>_e.SoftwareTestingChooserPageModule),..._t(rt)},{path:"create-system-test",loadChildren:()=>Promise.all([D.e(2076),D.e(1143)]).then(D.bind(D,1143)).then(_e=>_e.CreateSystemTestPageModule),..._t(rt)},{path:"execute-system-test",loadChildren:()=>Promise.all([D.e(2076),D.e(1010)]).then(D.bind(D,1010)).then(_e=>_e.ExecuteSystemTestPageModule),..._t(rt)},{path:"board",loadChildren:()=>Promise.all([D.e(6982),D.e(2076),D.e(3728)]).then(D.bind(D,3728)).then(_e=>_e.BoardPageModule),..._t(rt)},{path:"view-history-system-test",loadChildren:()=>Promise.all([D.e(2076),D.e(9546)]).then(D.bind(D,9546)).then(_e=>_e.ViewHistorySystemTestPageModule),..._t(rt)},{path:"view-system-test",loadChildren:()=>Promise.all([D.e(2076),D.e(7056)]).then(D.bind(D,7056)).then(_e=>_e.ViewSystemTestPageModule),..._t(rt)},{path:"create-unit-test",loadChildren:()=>Promise.all([D.e(2076),D.e(6695)]).then(D.bind(D,6695)).then(_e=>_e.CreateUnitTestPageModule),..._t(rt)},{path:"settings",loadChildren:()=>Promise.all([D.e(2076),D.e(5371)]).then(D.bind(D,5371)).then(_e=>_e.SettingsPageModule),..._t(rt)},{path:"create-integration-test",loadChildren:()=>Promise.all([D.e(2076),D.e(2494)]).then(D.bind(D,2494)).then(_e=>_e.CreateIntegrationTestPageModule),..._t(rt)},{path:"load-test-chooser",loadChildren:()=>Promise.all([D.e(2076),D.e(4163)]).then(D.bind(D,4163)).then(_e=>_e.LoadTestChooserPageModule),..._t(rt)},{path:"load-test",loadChildren:()=>Promise.all([D.e(2076),D.e(4559)]).then(D.bind(D,4559)).then(_e=>_e.LoadTestPageModule),..._t(rt)},{path:"load-test-history",loadChildren:()=>Promise.all([D.e(2076),D.e(4304)]).then(D.bind(D,4304)).then(_e=>_e.LoadTestHistoryPageModule),..._t(rt)},{path:"incident-manager-chooser",loadChildren:()=>Promise.all([D.e(2076),D.e(1133)]).then(D.bind(D,1133)).then(_e=>_e.IncidentManagerChooserPageModule),..._t(rt)},{path:"incident-manager",loadChildren:()=>D.e(3675).then(D.bind(D,3675)).then(_e=>_e.IncidentManagerPageModule)},{path:"new-incident",loadChildren:()=>Promise.all([D.e(6982),D.e(2076),D.e(7551)]).then(D.bind(D,7551)).then(_e=>_e.NewIncidentPageModule)}];let Nt=(()=>{var _e;class Wt{}return(_e=Wt).\u0275fac=function(Kt){return new(Kt||_e)},_e.\u0275mod=c.$C({type:_e}),_e.\u0275inj=c.G2t({imports:[Z.iI.forRoot(vn,{preloadingStrategy:Z.Kp}),Z.iI]}),Wt})();var tt=D(7440),on=D(4262);const dt_firebase={projectId:"devprobe-89481",appId:"1:405563293900:web:ba12c0bd15401fd708c269",storageBucket:"devprobe-89481.appspot.com",apiKey:"AIzaSyAORx8ZNhFZwo_uR4tPEcmF8pKm4GAqi5A",authDomain:"devprobe-89481.firebaseapp.com",messagingSenderId:"405563293900"};var we=D(1626),H=D(2820),X=D(9032),fe=D(7616),se=D(9549);let ve=(()=>{var _e;class Wt{}return(_e=Wt).\u0275fac=function(Kt){return new(Kt||_e)},_e.\u0275mod=c.$C({type:_e,bootstrap:[Se]}),_e.\u0275inj=c.G2t({providers:[{provide:Z.b,useClass:Oe.jM},(0,tt.MW)(()=>(0,tt.Wp)(dt_firebase)),(0,on.hV)(()=>(0,on.aU)()),(0,Qe._q)(()=>(0,Qe.xI)()),(0,X.cw)(()=>(0,X.v_)()),we.q1,(0,H.eS)()],imports:[h.Bb,U.bv.forRoot(),Nt,we.q1,H.sN.forRoot({echarts:()=>D.e(9697).then(D.bind(D,9697))}),fe.n,se.y2.forRoot()]}),Wt})();(0,c.SmG)(),h.sG().bootstrapModule(ve).catch(_e=>console.log(_e))},4412:(Tn,gt,D)=>{"use strict";D.d(gt,{t:()=>c});var h=D(1413);class c extends h.B{constructor(Oe){super(),this._value=Oe}get value(){return this.getValue()}_subscribe(Oe){const U=super._subscribe(Oe);return!U.closed&&Oe.next(this._value),U}getValue(){const{hasError:Oe,thrownError:U,_value:ue}=this;if(Oe)throw U;return this._throwIfClosed(),ue}next(Oe){super.next(this._value=Oe)}}},1985:(Tn,gt,D)=>{"use strict";D.d(gt,{c:()=>Xe});var h=D(7707),c=D(8359),Z=D(3494),Oe=D(1203),U=D(1026),ue=D(8071),oe=D(9786);let Xe=(()=>{class Qe{constructor(qe){qe&&(this._subscribe=qe)}lift(qe){const ht=new Qe;return ht.source=this,ht.operator=qe,ht}subscribe(qe,ht,Tt){const St=function De(Qe){return Qe&&Qe instanceof h.vU||function Se(Qe){return Qe&&(0,ue.T)(Qe.next)&&(0,ue.T)(Qe.error)&&(0,ue.T)(Qe.complete)}(Qe)&&(0,c.Uv)(Qe)}(qe)?qe:new h.Ms(qe,ht,Tt);return(0,oe.Y)(()=>{const{operator:yt,source:_t}=this;St.add(yt?yt.call(St,_t):_t?this._subscribe(St):this._trySubscribe(St))}),St}_trySubscribe(qe){try{return this._subscribe(qe)}catch(ht){qe.error(ht)}}forEach(qe,ht){return new(ht=Je(ht))((Tt,St)=>{const yt=new h.Ms({next:_t=>{try{qe(_t)}catch(Et){St(Et),yt.unsubscribe()}},error:St,complete:Tt});this.subscribe(yt)})}_subscribe(qe){var ht;return null===(ht=this.source)||void 0===ht?void 0:ht.subscribe(qe)}[Z.s](){return this}pipe(...qe){return(0,Oe.m)(qe)(this)}toPromise(qe){return new(qe=Je(qe))((ht,Tt)=>{let St;this.subscribe(yt=>St=yt,yt=>Tt(yt),()=>ht(St))})}}return Qe.create=Ze=>new Qe(Ze),Qe})();function Je(Qe){var Ze;return null!==(Ze=null!=Qe?Qe:U.$.Promise)&&void 0!==Ze?Ze:Promise}},2771:(Tn,gt,D)=>{"use strict";D.d(gt,{m:()=>Z});var h=D(1413),c=D(6129);class Z extends h.B{constructor(U=1/0,ue=1/0,oe=c.U){super(),this._bufferSize=U,this._windowTime=ue,this._timestampProvider=oe,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ue===1/0,this._bufferSize=Math.max(1,U),this._windowTime=Math.max(1,ue)}next(U){const{isStopped:ue,_buffer:oe,_infiniteTimeWindow:Xe,_timestampProvider:Je,_windowTime:Se}=this;ue||(oe.push(U),!Xe&&oe.push(Je.now()+Se)),this._trimBuffer(),super.next(U)}_subscribe(U){this._throwIfClosed(),this._trimBuffer();const ue=this._innerSubscribe(U),{_infiniteTimeWindow:oe,_buffer:Xe}=this,Je=Xe.slice();for(let Se=0;Se{"use strict";D.d(gt,{B:()=>oe});var h=D(1985),c=D(8359);const Oe=(0,D(1853).L)(Je=>function(){Je(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var U=D(7908),ue=D(9786);let oe=(()=>{class Je extends h.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(De){const Qe=new Xe(this,this);return Qe.operator=De,Qe}_throwIfClosed(){if(this.closed)throw new Oe}next(De){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Qe of this.currentObservers)Qe.next(De)}})}error(De){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=De;const{observers:Qe}=this;for(;Qe.length;)Qe.shift().error(De)}})}complete(){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:De}=this;for(;De.length;)De.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var De;return(null===(De=this.observers)||void 0===De?void 0:De.length)>0}_trySubscribe(De){return this._throwIfClosed(),super._trySubscribe(De)}_subscribe(De){return this._throwIfClosed(),this._checkFinalizedStatuses(De),this._innerSubscribe(De)}_innerSubscribe(De){const{hasError:Qe,isStopped:Ze,observers:qe}=this;return Qe||Ze?c.Kn:(this.currentObservers=null,qe.push(De),new c.yU(()=>{this.currentObservers=null,(0,U.o)(qe,De)}))}_checkFinalizedStatuses(De){const{hasError:Qe,thrownError:Ze,isStopped:qe}=this;Qe?De.error(Ze):qe&&De.complete()}asObservable(){const De=new h.c;return De.source=this,De}}return Je.create=(Se,De)=>new Xe(Se,De),Je})();class Xe extends oe{constructor(Se,De){super(),this.destination=Se,this.source=De}next(Se){var De,Qe;null===(Qe=null===(De=this.destination)||void 0===De?void 0:De.next)||void 0===Qe||Qe.call(De,Se)}error(Se){var De,Qe;null===(Qe=null===(De=this.destination)||void 0===De?void 0:De.error)||void 0===Qe||Qe.call(De,Se)}complete(){var Se,De;null===(De=null===(Se=this.destination)||void 0===Se?void 0:Se.complete)||void 0===De||De.call(Se)}_subscribe(Se){var De,Qe;return null!==(Qe=null===(De=this.source)||void 0===De?void 0:De.subscribe(Se))&&void 0!==Qe?Qe:c.Kn}}},7707:(Tn,gt,D)=>{"use strict";D.d(gt,{Ms:()=>Tt,vU:()=>Qe});var h=D(8071),c=D(8359),Z=D(1026),Oe=D(5334),U=D(5343);const ue=Je("C",void 0,void 0);function Je(mt,Me,Ye){return{kind:mt,value:Me,error:Ye}}var Se=D(9270),De=D(9786);class Qe extends c.yU{constructor(Me){super(),this.isStopped=!1,Me?(this.destination=Me,(0,c.Uv)(Me)&&Me.add(this)):this.destination=Et}static create(Me,Ye,ge){return new Tt(Me,Ye,ge)}next(Me){this.isStopped?_t(function Xe(mt){return Je("N",mt,void 0)}(Me),this):this._next(Me)}error(Me){this.isStopped?_t(function oe(mt){return Je("E",void 0,mt)}(Me),this):(this.isStopped=!0,this._error(Me))}complete(){this.isStopped?_t(ue,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Me){this.destination.next(Me)}_error(Me){try{this.destination.error(Me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ze=Function.prototype.bind;function qe(mt,Me){return Ze.call(mt,Me)}class ht{constructor(Me){this.partialObserver=Me}next(Me){const{partialObserver:Ye}=this;if(Ye.next)try{Ye.next(Me)}catch(ge){St(ge)}}error(Me){const{partialObserver:Ye}=this;if(Ye.error)try{Ye.error(Me)}catch(ge){St(ge)}else St(Me)}complete(){const{partialObserver:Me}=this;if(Me.complete)try{Me.complete()}catch(Ye){St(Ye)}}}class Tt extends Qe{constructor(Me,Ye,ge){let Ue;if(super(),(0,h.T)(Me)||!Me)Ue={next:null!=Me?Me:void 0,error:null!=Ye?Ye:void 0,complete:null!=ge?ge:void 0};else{let Fe;this&&Z.$.useDeprecatedNextContext?(Fe=Object.create(Me),Fe.unsubscribe=()=>this.unsubscribe(),Ue={next:Me.next&&qe(Me.next,Fe),error:Me.error&&qe(Me.error,Fe),complete:Me.complete&&qe(Me.complete,Fe)}):Ue=Me}this.destination=new ht(Ue)}}function St(mt){Z.$.useDeprecatedSynchronousErrorHandling?(0,De.l)(mt):(0,Oe.m)(mt)}function _t(mt,Me){const{onStoppedNotification:Ye}=Z.$;Ye&&Se.f.setTimeout(()=>Ye(mt,Me))}const Et={closed:!0,next:U.l,error:function yt(mt){throw mt},complete:U.l}},8359:(Tn,gt,D)=>{"use strict";D.d(gt,{Kn:()=>ue,yU:()=>U,Uv:()=>oe});var h=D(8071);const Z=(0,D(1853).L)(Je=>function(De){Je(this),this.message=De?`${De.length} errors occurred during unsubscription:\n${De.map((Qe,Ze)=>`${Ze+1}) ${Qe.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=De});var Oe=D(7908);class U{constructor(Se){this.initialTeardown=Se,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Se;if(!this.closed){this.closed=!0;const{_parentage:De}=this;if(De)if(this._parentage=null,Array.isArray(De))for(const qe of De)qe.remove(this);else De.remove(this);const{initialTeardown:Qe}=this;if((0,h.T)(Qe))try{Qe()}catch(qe){Se=qe instanceof Z?qe.errors:[qe]}const{_finalizers:Ze}=this;if(Ze){this._finalizers=null;for(const qe of Ze)try{Xe(qe)}catch(ht){Se=null!=Se?Se:[],ht instanceof Z?Se=[...Se,...ht.errors]:Se.push(ht)}}if(Se)throw new Z(Se)}}add(Se){var De;if(Se&&Se!==this)if(this.closed)Xe(Se);else{if(Se instanceof U){if(Se.closed||Se._hasParent(this))return;Se._addParent(this)}(this._finalizers=null!==(De=this._finalizers)&&void 0!==De?De:[]).push(Se)}}_hasParent(Se){const{_parentage:De}=this;return De===Se||Array.isArray(De)&&De.includes(Se)}_addParent(Se){const{_parentage:De}=this;this._parentage=Array.isArray(De)?(De.push(Se),De):De?[De,Se]:Se}_removeParent(Se){const{_parentage:De}=this;De===Se?this._parentage=null:Array.isArray(De)&&(0,Oe.o)(De,Se)}remove(Se){const{_finalizers:De}=this;De&&(0,Oe.o)(De,Se),Se instanceof U&&Se._removeParent(this)}}U.EMPTY=(()=>{const Je=new U;return Je.closed=!0,Je})();const ue=U.EMPTY;function oe(Je){return Je instanceof U||Je&&"closed"in Je&&(0,h.T)(Je.remove)&&(0,h.T)(Je.add)&&(0,h.T)(Je.unsubscribe)}function Xe(Je){(0,h.T)(Je)?Je():Je.unsubscribe()}},1026:(Tn,gt,D)=>{"use strict";D.d(gt,{$:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(Tn,gt,D)=>{"use strict";D.d(gt,{z:()=>Se});var h=D(1985),c=D(3073),Z=D(8455),Oe=D(3669),U=D(6450),ue=D(9326),oe=D(8496),Xe=D(4360),Je=D(5225);function Se(...Ze){const qe=(0,ue.lI)(Ze),ht=(0,ue.ms)(Ze),{args:Tt,keys:St}=(0,c.D)(Ze);if(0===Tt.length)return(0,Z.H)([],qe);const yt=new h.c(function De(Ze,qe,ht=Oe.D){return Tt=>{Qe(qe,()=>{const{length:St}=Ze,yt=new Array(St);let _t=St,Et=St;for(let mt=0;mt{const Me=(0,Z.H)(Ze[mt],qe);let Ye=!1;Me.subscribe((0,Xe._)(Tt,ge=>{yt[mt]=ge,Ye||(Ye=!0,Et--),Et||Tt.next(ht(yt.slice()))},()=>{--_t||Tt.complete()}))},Tt)},Tt)}}(Tt,qe,St?_t=>(0,oe.e)(St,_t):Oe.D));return ht?yt.pipe((0,U.I)(ht)):yt}function Qe(Ze,qe,ht){Ze?(0,Je.N)(ht,Ze,qe):qe()}},8793:(Tn,gt,D)=>{"use strict";D.d(gt,{x:()=>U});var h=D(6365),Z=D(9326),Oe=D(8455);function U(...ue){return function c(){return(0,h.U)(1)}()((0,Oe.H)(ue,(0,Z.lI)(ue)))}},983:(Tn,gt,D)=>{"use strict";D.d(gt,{w:()=>c});const c=new(D(1985).c)(U=>U.complete())},8455:(Tn,gt,D)=>{"use strict";D.d(gt,{H:()=>Me});var h=D(8750),c=D(941),Z=D(6745),ue=D(1985),Xe=D(4761),Je=D(8071),Se=D(5225);function Qe(Ye,ge){if(!Ye)throw new Error("Iterable cannot be null");return new ue.c(Ue=>{(0,Se.N)(Ue,ge,()=>{const Fe=Ye[Symbol.asyncIterator]();(0,Se.N)(Ue,ge,()=>{Fe.next().then(xe=>{xe.done?Ue.complete():Ue.next(xe.value)})},0,!0)})})}var Ze=D(5055),qe=D(9858),ht=D(7441),Tt=D(5397),St=D(7953),yt=D(591),_t=D(5196);function Me(Ye,ge){return ge?function mt(Ye,ge){if(null!=Ye){if((0,Ze.l)(Ye))return function Oe(Ye,ge){return(0,h.Tg)(Ye).pipe((0,Z._)(ge),(0,c.Q)(ge))}(Ye,ge);if((0,ht.X)(Ye))return function oe(Ye,ge){return new ue.c(Ue=>{let Fe=0;return ge.schedule(function(){Fe===Ye.length?Ue.complete():(Ue.next(Ye[Fe++]),Ue.closed||this.schedule())})})}(Ye,ge);if((0,qe.y)(Ye))return function U(Ye,ge){return(0,h.Tg)(Ye).pipe((0,Z._)(ge),(0,c.Q)(ge))}(Ye,ge);if((0,St.T)(Ye))return Qe(Ye,ge);if((0,Tt.x)(Ye))return function De(Ye,ge){return new ue.c(Ue=>{let Fe;return(0,Se.N)(Ue,ge,()=>{Fe=Ye[Xe.l](),(0,Se.N)(Ue,ge,()=>{let xe,rt;try{({value:xe,done:rt}=Fe.next())}catch(Rt){return void Ue.error(Rt)}rt?Ue.complete():Ue.next(xe)},0,!0)}),()=>(0,Je.T)(null==Fe?void 0:Fe.return)&&Fe.return()})}(Ye,ge);if((0,_t.U)(Ye))return function Et(Ye,ge){return Qe((0,_t.C)(Ye),ge)}(Ye,ge)}throw(0,yt.L)(Ye)}(Ye,ge):(0,h.Tg)(Ye)}},3726:(Tn,gt,D)=>{"use strict";D.d(gt,{R:()=>Se});var h=D(8750),c=D(1985),Z=D(1397),Oe=D(7441),U=D(8071),ue=D(6450);const oe=["addListener","removeListener"],Xe=["addEventListener","removeEventListener"],Je=["on","off"];function Se(ht,Tt,St,yt){if((0,U.T)(St)&&(yt=St,St=void 0),yt)return Se(ht,Tt,St).pipe((0,ue.I)(yt));const[_t,Et]=function qe(ht){return(0,U.T)(ht.addEventListener)&&(0,U.T)(ht.removeEventListener)}(ht)?Xe.map(mt=>Me=>ht[mt](Tt,Me,St)):function Qe(ht){return(0,U.T)(ht.addListener)&&(0,U.T)(ht.removeListener)}(ht)?oe.map(De(ht,Tt)):function Ze(ht){return(0,U.T)(ht.on)&&(0,U.T)(ht.off)}(ht)?Je.map(De(ht,Tt)):[];if(!_t&&(0,Oe.X)(ht))return(0,Z.Z)(mt=>Se(mt,Tt,St))((0,h.Tg)(ht));if(!_t)throw new TypeError("Invalid event target");return new c.c(mt=>{const Me=(...Ye)=>mt.next(1Et(Me)})}function De(ht,Tt){return St=>yt=>ht[St](Tt,yt)}},8750:(Tn,gt,D)=>{"use strict";D.d(gt,{Tg:()=>Ze});var h=D(1635),c=D(7441),Z=D(9858),Oe=D(1985),U=D(5055),ue=D(7953),oe=D(591),Xe=D(5397),Je=D(5196),Se=D(8071),De=D(5334),Qe=D(3494);function Ze(mt){if(mt instanceof Oe.c)return mt;if(null!=mt){if((0,U.l)(mt))return function qe(mt){return new Oe.c(Me=>{const Ye=mt[Qe.s]();if((0,Se.T)(Ye.subscribe))return Ye.subscribe(Me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(mt);if((0,c.X)(mt))return function ht(mt){return new Oe.c(Me=>{for(let Ye=0;Ye{mt.then(Ye=>{Me.closed||(Me.next(Ye),Me.complete())},Ye=>Me.error(Ye)).then(null,De.m)})}(mt);if((0,ue.T)(mt))return yt(mt);if((0,Xe.x)(mt))return function St(mt){return new Oe.c(Me=>{for(const Ye of mt)if(Me.next(Ye),Me.closed)return;Me.complete()})}(mt);if((0,Je.U)(mt))return function _t(mt){return yt((0,Je.C)(mt))}(mt)}throw(0,oe.L)(mt)}function yt(mt){return new Oe.c(Me=>{(function Et(mt,Me){var Ye,ge,Ue,Fe;return(0,h.sH)(this,void 0,void 0,function*(){try{for(Ye=(0,h.xN)(mt);!(ge=yield Ye.next()).done;)if(Me.next(ge.value),Me.closed)return}catch(xe){Ue={error:xe}}finally{try{ge&&!ge.done&&(Fe=Ye.return)&&(yield Fe.call(Ye))}finally{if(Ue)throw Ue.error}}Me.complete()})})(mt,Me).catch(Ye=>Me.error(Ye))})}},7786:(Tn,gt,D)=>{"use strict";D.d(gt,{h:()=>ue});var h=D(6365),c=D(8750),Z=D(983),Oe=D(9326),U=D(8455);function ue(...oe){const Xe=(0,Oe.lI)(oe),Je=(0,Oe.R0)(oe,1/0),Se=oe;return Se.length?1===Se.length?(0,c.Tg)(Se[0]):(0,h.U)(Je)((0,U.H)(Se,Xe)):Z.w}},7673:(Tn,gt,D)=>{"use strict";D.d(gt,{of:()=>Z});var h=D(9326),c=D(8455);function Z(...Oe){const U=(0,h.lI)(Oe);return(0,c.H)(Oe,U)}},1584:(Tn,gt,D)=>{"use strict";D.d(gt,{O:()=>U});var h=D(1985),c=D(3236),Z=D(9470);function U(ue=0,oe,Xe=c.b){let Je=-1;return null!=oe&&((0,Z.m)(oe)?Xe=oe:Je=oe),new h.c(Se=>{let De=function Oe(ue){return ue instanceof Date&&!isNaN(ue)}(ue)?+ue-Xe.now():ue;De<0&&(De=0);let Qe=0;return Xe.schedule(function(){Se.closed||(Se.next(Qe++),0<=Je?this.schedule(void 0,Je):Se.complete())},De)})}},4360:(Tn,gt,D)=>{"use strict";D.d(gt,{_:()=>c});var h=D(7707);function c(Oe,U,ue,oe,Xe){return new Z(Oe,U,ue,oe,Xe)}class Z extends h.vU{constructor(U,ue,oe,Xe,Je,Se){super(U),this.onFinalize=Je,this.shouldUnsubscribe=Se,this._next=ue?function(De){try{ue(De)}catch(Qe){U.error(Qe)}}:super._next,this._error=Xe?function(De){try{Xe(De)}catch(Qe){U.error(Qe)}finally{this.unsubscribe()}}:super._error,this._complete=oe?function(){try{oe()}catch(De){U.error(De)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var U;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ue}=this;super.unsubscribe(),!ue&&(null===(U=this.onFinalize)||void 0===U||U.call(this))}}}},274:(Tn,gt,D)=>{"use strict";D.d(gt,{H:()=>Z});var h=D(1397),c=D(8071);function Z(Oe,U){return(0,c.T)(U)?(0,h.Z)(Oe,U,1):(0,h.Z)(Oe,1)}},9901:(Tn,gt,D)=>{"use strict";D.d(gt,{U:()=>Z});var h=D(9974),c=D(4360);function Z(Oe){return(0,h.N)((U,ue)=>{let oe=!1;U.subscribe((0,c._)(ue,Xe=>{oe=!0,ue.next(Xe)},()=>{oe||ue.next(Oe),ue.complete()}))})}},3294:(Tn,gt,D)=>{"use strict";D.d(gt,{F:()=>Oe});var h=D(3669),c=D(9974),Z=D(4360);function Oe(ue,oe=h.D){return ue=null!=ue?ue:U,(0,c.N)((Xe,Je)=>{let Se,De=!0;Xe.subscribe((0,Z._)(Je,Qe=>{const Ze=oe(Qe);(De||!ue(Se,Ze))&&(De=!1,Se=Ze,Je.next(Qe))}))})}function U(ue,oe){return ue===oe}},5964:(Tn,gt,D)=>{"use strict";D.d(gt,{p:()=>Z});var h=D(9974),c=D(4360);function Z(Oe,U){return(0,h.N)((ue,oe)=>{let Xe=0;ue.subscribe((0,c._)(oe,Je=>Oe.call(U,Je,Xe++)&&oe.next(Je)))})}},980:(Tn,gt,D)=>{"use strict";D.d(gt,{j:()=>c});var h=D(9974);function c(Z){return(0,h.N)((Oe,U)=>{try{Oe.subscribe(U)}finally{U.add(Z)}})}},1594:(Tn,gt,D)=>{"use strict";D.d(gt,{$:()=>oe});var h=D(9350),c=D(5964),Z=D(6697),Oe=D(9901),U=D(3774),ue=D(3669);function oe(Xe,Je){const Se=arguments.length>=2;return De=>De.pipe(Xe?(0,c.p)((Qe,Ze)=>Xe(Qe,Ze,De)):ue.D,(0,Z.s)(1),Se?(0,Oe.U)(Je):(0,U.v)(()=>new h.G))}},6354:(Tn,gt,D)=>{"use strict";D.d(gt,{T:()=>Z});var h=D(9974),c=D(4360);function Z(Oe,U){return(0,h.N)((ue,oe)=>{let Xe=0;ue.subscribe((0,c._)(oe,Je=>{oe.next(Oe.call(U,Je,Xe++))}))})}},3703:(Tn,gt,D)=>{"use strict";D.d(gt,{u:()=>c});var h=D(6354);function c(Z){return(0,h.T)(()=>Z)}},6365:(Tn,gt,D)=>{"use strict";D.d(gt,{U:()=>Z});var h=D(1397),c=D(3669);function Z(Oe=1/0){return(0,h.Z)(c.D,Oe)}},1397:(Tn,gt,D)=>{"use strict";D.d(gt,{Z:()=>Xe});var h=D(6354),c=D(8750),Z=D(9974),Oe=D(5225),U=D(4360),oe=D(8071);function Xe(Je,Se,De=1/0){return(0,oe.T)(Se)?Xe((Qe,Ze)=>(0,h.T)((qe,ht)=>Se(Qe,qe,Ze,ht))((0,c.Tg)(Je(Qe,Ze))),De):("number"==typeof Se&&(De=Se),(0,Z.N)((Qe,Ze)=>function ue(Je,Se,De,Qe,Ze,qe,ht,Tt){const St=[];let yt=0,_t=0,Et=!1;const mt=()=>{Et&&!St.length&&!yt&&Se.complete()},Me=ge=>yt{qe&&Se.next(ge),yt++;let Ue=!1;(0,c.Tg)(De(ge,_t++)).subscribe((0,U._)(Se,Fe=>{null==Ze||Ze(Fe),qe?Me(Fe):Se.next(Fe)},()=>{Ue=!0},void 0,()=>{if(Ue)try{for(yt--;St.length&&ytYe(Fe)):Ye(Fe)}mt()}catch(Fe){Se.error(Fe)}}))};return Je.subscribe((0,U._)(Se,Me,()=>{Et=!0,mt()})),()=>{null==Tt||Tt()}}(Qe,Ze,Je,De)))}},941:(Tn,gt,D)=>{"use strict";D.d(gt,{Q:()=>Oe});var h=D(5225),c=D(9974),Z=D(4360);function Oe(U,ue=0){return(0,c.N)((oe,Xe)=>{oe.subscribe((0,Z._)(Xe,Je=>(0,h.N)(Xe,U,()=>Xe.next(Je),ue),()=>(0,h.N)(Xe,U,()=>Xe.complete(),ue),Je=>(0,h.N)(Xe,U,()=>Xe.error(Je),ue)))})}},9172:(Tn,gt,D)=>{"use strict";D.d(gt,{Z:()=>Oe});var h=D(8793),c=D(9326),Z=D(9974);function Oe(...U){const ue=(0,c.lI)(U);return(0,Z.N)((oe,Xe)=>{(ue?(0,h.x)(U,oe,ue):(0,h.x)(U,oe)).subscribe(Xe)})}},6745:(Tn,gt,D)=>{"use strict";D.d(gt,{_:()=>c});var h=D(9974);function c(Z,Oe=0){return(0,h.N)((U,ue)=>{ue.add(Z.schedule(()=>U.subscribe(ue),Oe))})}},5558:(Tn,gt,D)=>{"use strict";D.d(gt,{n:()=>Oe});var h=D(8750),c=D(9974),Z=D(4360);function Oe(U,ue){return(0,c.N)((oe,Xe)=>{let Je=null,Se=0,De=!1;const Qe=()=>De&&!Je&&Xe.complete();oe.subscribe((0,Z._)(Xe,Ze=>{null==Je||Je.unsubscribe();let qe=0;const ht=Se++;(0,h.Tg)(U(Ze,ht)).subscribe(Je=(0,Z._)(Xe,Tt=>Xe.next(ue?ue(Ze,Tt,ht,qe++):Tt),()=>{Je=null,Qe()}))},()=>{De=!0,Qe()}))})}},6697:(Tn,gt,D)=>{"use strict";D.d(gt,{s:()=>Oe});var h=D(983),c=D(9974),Z=D(4360);function Oe(U){return U<=0?()=>h.w:(0,c.N)((ue,oe)=>{let Xe=0;ue.subscribe((0,Z._)(oe,Je=>{++Xe<=U&&(oe.next(Je),U<=Xe&&oe.complete())}))})}},6977:(Tn,gt,D)=>{"use strict";D.d(gt,{Q:()=>U});var h=D(9974),c=D(4360),Z=D(8750),Oe=D(5343);function U(ue){return(0,h.N)((oe,Xe)=>{(0,Z.Tg)(ue).subscribe((0,c._)(Xe,()=>Xe.complete(),Oe.l)),!Xe.closed&&oe.subscribe(Xe)})}},8141:(Tn,gt,D)=>{"use strict";D.d(gt,{M:()=>U});var h=D(8071),c=D(9974),Z=D(4360),Oe=D(3669);function U(ue,oe,Xe){const Je=(0,h.T)(ue)||oe||Xe?{next:ue,error:oe,complete:Xe}:ue;return Je?(0,c.N)((Se,De)=>{var Qe;null===(Qe=Je.subscribe)||void 0===Qe||Qe.call(Je);let Ze=!0;Se.subscribe((0,Z._)(De,qe=>{var ht;null===(ht=Je.next)||void 0===ht||ht.call(Je,qe),De.next(qe)},()=>{var qe;Ze=!1,null===(qe=Je.complete)||void 0===qe||qe.call(Je),De.complete()},qe=>{var ht;Ze=!1,null===(ht=Je.error)||void 0===ht||ht.call(Je,qe),De.error(qe)},()=>{var qe,ht;Ze&&(null===(qe=Je.unsubscribe)||void 0===qe||qe.call(Je)),null===(ht=Je.finalize)||void 0===ht||ht.call(Je)}))}):Oe.D}},3774:(Tn,gt,D)=>{"use strict";D.d(gt,{v:()=>Oe});var h=D(9350),c=D(9974),Z=D(4360);function Oe(ue=U){return(0,c.N)((oe,Xe)=>{let Je=!1;oe.subscribe((0,Z._)(Xe,Se=>{Je=!0,Xe.next(Se)},()=>Je?Xe.complete():Xe.error(ue())))})}function U(){return new h.G}},6780:(Tn,gt,D)=>{"use strict";D.d(gt,{R:()=>U});var h=D(8359);class c extends h.yU{constructor(oe,Xe){super()}schedule(oe,Xe=0){return this}}const Z={setInterval(ue,oe,...Xe){const{delegate:Je}=Z;return null!=Je&&Je.setInterval?Je.setInterval(ue,oe,...Xe):setInterval(ue,oe,...Xe)},clearInterval(ue){const{delegate:oe}=Z;return((null==oe?void 0:oe.clearInterval)||clearInterval)(ue)},delegate:void 0};var Oe=D(7908);class U extends c{constructor(oe,Xe){super(oe,Xe),this.scheduler=oe,this.work=Xe,this.pending=!1}schedule(oe,Xe=0){var Je;if(this.closed)return this;this.state=oe;const Se=this.id,De=this.scheduler;return null!=Se&&(this.id=this.recycleAsyncId(De,Se,Xe)),this.pending=!0,this.delay=Xe,this.id=null!==(Je=this.id)&&void 0!==Je?Je:this.requestAsyncId(De,this.id,Xe),this}requestAsyncId(oe,Xe,Je=0){return Z.setInterval(oe.flush.bind(oe,this),Je)}recycleAsyncId(oe,Xe,Je=0){if(null!=Je&&this.delay===Je&&!1===this.pending)return Xe;null!=Xe&&Z.clearInterval(Xe)}execute(oe,Xe){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Je=this._execute(oe,Xe);if(Je)return Je;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(oe,Xe){let Se,Je=!1;try{this.work(oe)}catch(De){Je=!0,Se=De||new Error("Scheduled action threw falsy error")}if(Je)return this.unsubscribe(),Se}unsubscribe(){if(!this.closed){const{id:oe,scheduler:Xe}=this,{actions:Je}=Xe;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Oe.o)(Je,this),null!=oe&&(this.id=this.recycleAsyncId(Xe,oe,null)),this.delay=null,super.unsubscribe()}}}},9687:(Tn,gt,D)=>{"use strict";D.d(gt,{q:()=>Z});var h=D(6129);class c{constructor(U,ue=c.now){this.schedulerActionCtor=U,this.now=ue}schedule(U,ue=0,oe){return new this.schedulerActionCtor(this,U).schedule(oe,ue)}}c.now=h.U.now;class Z extends c{constructor(U,ue=c.now){super(U,ue),this.actions=[],this._active=!1}flush(U){const{actions:ue}=this;if(this._active)return void ue.push(U);let oe;this._active=!0;do{if(oe=U.execute(U.state,U.delay))break}while(U=ue.shift());if(this._active=!1,oe){for(;U=ue.shift();)U.unsubscribe();throw oe}}}},3236:(Tn,gt,D)=>{"use strict";D.d(gt,{E:()=>Z,b:()=>Oe});var h=D(6780);const Z=new(D(9687).q)(h.R),Oe=Z},6129:(Tn,gt,D)=>{"use strict";D.d(gt,{U:()=>h});const h={now:()=>(h.delegate||Date).now(),delegate:void 0}},9270:(Tn,gt,D)=>{"use strict";D.d(gt,{f:()=>h});const h={setTimeout(c,Z,...Oe){const{delegate:U}=h;return null!=U&&U.setTimeout?U.setTimeout(c,Z,...Oe):setTimeout(c,Z,...Oe)},clearTimeout(c){const{delegate:Z}=h;return((null==Z?void 0:Z.clearTimeout)||clearTimeout)(c)},delegate:void 0}},4761:(Tn,gt,D)=>{"use strict";D.d(gt,{l:()=>c});const c=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Tn,gt,D)=>{"use strict";D.d(gt,{s:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Tn,gt,D)=>{"use strict";D.d(gt,{G:()=>c});const c=(0,D(1853).L)(Z=>function(){Z(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Tn,gt,D)=>{"use strict";D.d(gt,{R0:()=>ue,lI:()=>U,ms:()=>Oe});var h=D(8071),c=D(9470);function Z(oe){return oe[oe.length-1]}function Oe(oe){return(0,h.T)(Z(oe))?oe.pop():void 0}function U(oe){return(0,c.m)(Z(oe))?oe.pop():void 0}function ue(oe,Xe){return"number"==typeof Z(oe)?oe.pop():Xe}},3073:(Tn,gt,D)=>{"use strict";D.d(gt,{D:()=>U});const{isArray:h}=Array,{getPrototypeOf:c,prototype:Z,keys:Oe}=Object;function U(oe){if(1===oe.length){const Xe=oe[0];if(h(Xe))return{args:Xe,keys:null};if(function ue(oe){return oe&&"object"==typeof oe&&c(oe)===Z}(Xe)){const Je=Oe(Xe);return{args:Je.map(Se=>Xe[Se]),keys:Je}}}return{args:oe,keys:null}}},7908:(Tn,gt,D)=>{"use strict";function h(c,Z){if(c){const Oe=c.indexOf(Z);0<=Oe&&c.splice(Oe,1)}}D.d(gt,{o:()=>h})},1853:(Tn,gt,D)=>{"use strict";function h(c){const Oe=c(U=>{Error.call(U),U.stack=(new Error).stack});return Oe.prototype=Object.create(Error.prototype),Oe.prototype.constructor=Oe,Oe}D.d(gt,{L:()=>h})},8496:(Tn,gt,D)=>{"use strict";function h(c,Z){return c.reduce((Oe,U,ue)=>(Oe[U]=Z[ue],Oe),{})}D.d(gt,{e:()=>h})},9786:(Tn,gt,D)=>{"use strict";D.d(gt,{Y:()=>Z,l:()=>Oe});var h=D(1026);let c=null;function Z(U){if(h.$.useDeprecatedSynchronousErrorHandling){const ue=!c;if(ue&&(c={errorThrown:!1,error:null}),U(),ue){const{errorThrown:oe,error:Xe}=c;if(c=null,oe)throw Xe}}else U()}function Oe(U){h.$.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=U)}},5225:(Tn,gt,D)=>{"use strict";function h(c,Z,Oe,U=0,ue=!1){const oe=Z.schedule(function(){Oe(),ue?c.add(this.schedule(null,U)):this.unsubscribe()},U);if(c.add(oe),!ue)return oe}D.d(gt,{N:()=>h})},3669:(Tn,gt,D)=>{"use strict";function h(c){return c}D.d(gt,{D:()=>h})},7441:(Tn,gt,D)=>{"use strict";D.d(gt,{X:()=>h});const h=c=>c&&"number"==typeof c.length&&"function"!=typeof c},7953:(Tn,gt,D)=>{"use strict";D.d(gt,{T:()=>c});var h=D(8071);function c(Z){return Symbol.asyncIterator&&(0,h.T)(null==Z?void 0:Z[Symbol.asyncIterator])}},8071:(Tn,gt,D)=>{"use strict";function h(c){return"function"==typeof c}D.d(gt,{T:()=>h})},5055:(Tn,gt,D)=>{"use strict";D.d(gt,{l:()=>Z});var h=D(3494),c=D(8071);function Z(Oe){return(0,c.T)(Oe[h.s])}},5397:(Tn,gt,D)=>{"use strict";D.d(gt,{x:()=>Z});var h=D(4761),c=D(8071);function Z(Oe){return(0,c.T)(null==Oe?void 0:Oe[h.l])}},4402:(Tn,gt,D)=>{"use strict";D.d(gt,{A:()=>Z});var h=D(1985),c=D(8071);function Z(Oe){return!!Oe&&(Oe instanceof h.c||(0,c.T)(Oe.lift)&&(0,c.T)(Oe.subscribe))}},9858:(Tn,gt,D)=>{"use strict";D.d(gt,{y:()=>c});var h=D(8071);function c(Z){return(0,h.T)(null==Z?void 0:Z.then)}},5196:(Tn,gt,D)=>{"use strict";D.d(gt,{C:()=>Z,U:()=>Oe});var h=D(1635),c=D(8071);function Z(U){return(0,h.AQ)(this,arguments,function*(){const oe=U.getReader();try{for(;;){const{value:Xe,done:Je}=yield(0,h.N3)(oe.read());if(Je)return yield(0,h.N3)(void 0);yield yield(0,h.N3)(Xe)}}finally{oe.releaseLock()}})}function Oe(U){return(0,c.T)(null==U?void 0:U.getReader)}},9470:(Tn,gt,D)=>{"use strict";D.d(gt,{m:()=>c});var h=D(8071);function c(Z){return Z&&(0,h.T)(Z.schedule)}},9974:(Tn,gt,D)=>{"use strict";D.d(gt,{N:()=>Z,S:()=>c});var h=D(8071);function c(Oe){return(0,h.T)(null==Oe?void 0:Oe.lift)}function Z(Oe){return U=>{if(c(U))return U.lift(function(ue){try{return Oe(ue,this)}catch(oe){this.error(oe)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Tn,gt,D)=>{"use strict";D.d(gt,{I:()=>Oe});var h=D(6354);const{isArray:c}=Array;function Oe(U){return(0,h.T)(ue=>function Z(U,ue){return c(ue)?U(...ue):U(ue)}(U,ue))}},5343:(Tn,gt,D)=>{"use strict";function h(){}D.d(gt,{l:()=>h})},1203:(Tn,gt,D)=>{"use strict";D.d(gt,{F:()=>c,m:()=>Z});var h=D(3669);function c(...Oe){return Z(Oe)}function Z(Oe){return 0===Oe.length?h.D:1===Oe.length?Oe[0]:function(ue){return Oe.reduce((oe,Xe)=>Xe(oe),ue)}}},5334:(Tn,gt,D)=>{"use strict";D.d(gt,{m:()=>Z});var h=D(1026),c=D(9270);function Z(Oe){c.f.setTimeout(()=>{const{onUnhandledError:U}=h.$;if(!U)throw Oe;U(Oe)})}},591:(Tn,gt,D)=>{"use strict";function h(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}D.d(gt,{L:()=>h})},8996:(Tn,gt,D)=>{var h={"./ion-accordion_2.entry.js":[2375,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[4591,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,1293,7428],"./ion-datetime_3.entry.js":[2885,1293,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input-password-toggle.entry.js":[6521,2076,6521],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-option.entry.js":[9013,9013],"./ion-picker-column.entry.js":[1459,2076,1459],"./ion-picker.entry.js":[6840,6840],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function c(Z){if(!D.o(h,Z))return Promise.resolve().then(()=>{var ue=new Error("Cannot find module '"+Z+"'");throw ue.code="MODULE_NOT_FOUND",ue});var Oe=h[Z],U=Oe[0];return Promise.all(Oe.slice(1).map(D.e)).then(()=>D(U))}c.keys=()=>Object.keys(h),c.id=8996,Tn.exports=c},177:(Tn,gt,D)=>{"use strict";D.d(gt,{AJ:()=>Yt,Jj:()=>bt,MD:()=>It,N0:()=>ki,QT:()=>Z,QX:()=>sr,Sm:()=>Tt,Sq:()=>or,T3:()=>Hn,UE:()=>Nn,VF:()=>U,Vy:()=>jn,Xr:()=>jr,ZD:()=>Oe,_b:()=>x,aZ:()=>yt,bT:()=>On,fw:()=>St,hb:()=>qe,hj:()=>Je,qQ:()=>oe});var h=D(4438);let c=null;function Z(){return c}function Oe(C){var $;null!==($=c)&&void 0!==$||(c=C)}class U{}const oe=new h.nKC("");let Xe=(()=>{var C;class ${historyGo(F){throw new Error("")}}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275prov=h.jDH({token:C,factory:()=>(0,h.WQX)(Se),providedIn:"platform"}),$})();const Je=new h.nKC("");let Se=(()=>{var C;class $ extends Xe{constructor(){super(),this._doc=(0,h.WQX)(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Z().getBaseHref(this._doc)}onPopState(F){const Ae=Z().getGlobalEventTarget(this._doc,"window");return Ae.addEventListener("popstate",F,!1),()=>Ae.removeEventListener("popstate",F)}onHashChange(F){const Ae=Z().getGlobalEventTarget(this._doc,"window");return Ae.addEventListener("hashchange",F,!1),()=>Ae.removeEventListener("hashchange",F)}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(F){this._location.pathname=F}pushState(F,Ae,Ke){this._history.pushState(F,Ae,Ke)}replaceState(F,Ae,Ke){this._history.replaceState(F,Ae,Ke)}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275prov=h.jDH({token:C,factory:()=>new C,providedIn:"platform"}),$})();function De(C,$){if(0==C.length)return $;if(0==$.length)return C;let Be=0;return C.endsWith("/")&&Be++,$.startsWith("/")&&Be++,2==Be?C+$.substring(1):1==Be?C+$:C+"/"+$}function Qe(C){const $=C.match(/#|\?|$/),Be=$&&$.index||C.length;return C.slice(0,Be-("/"===C[Be-1]?1:0))+C.slice(Be)}function Ze(C){return C&&"?"!==C[0]?"?"+C:C}let qe=(()=>{var C;class ${historyGo(F){throw new Error("")}}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275prov=h.jDH({token:C,factory:()=>(0,h.WQX)(Tt),providedIn:"root"}),$})();const ht=new h.nKC("");let Tt=(()=>{var C;class $ extends qe{constructor(F,Ae){var Ke,Qt,wn;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==(Ke=null!==(Qt=null!=Ae?Ae:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Qt?Qt:null===(wn=(0,h.WQX)(oe).location)||void 0===wn?void 0:wn.origin)&&void 0!==Ke?Ke:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return De(this._baseHref,F)}path(F=!1){const Ae=this._platformLocation.pathname+Ze(this._platformLocation.search),Ke=this._platformLocation.hash;return Ke&&F?`${Ae}${Ke}`:Ae}pushState(F,Ae,Ke,Qt){const wn=this.prepareExternalUrl(Ke+Ze(Qt));this._platformLocation.pushState(F,Ae,wn)}replaceState(F,Ae,Ke,Qt){const wn=this.prepareExternalUrl(Ke+Ze(Qt));this._platformLocation.replaceState(F,Ae,wn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var Ae,Ke;null===(Ae=(Ke=this._platformLocation).historyGo)||void 0===Ae||Ae.call(Ke,F)}}return(C=$).\u0275fac=function(F){return new(F||C)(h.KVO(Xe),h.KVO(ht,8))},C.\u0275prov=h.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}),$})(),St=(()=>{var C;class $ extends qe{constructor(F,Ae){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=Ae&&(this._baseHref=Ae)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){var Ae;const Ke=null!==(Ae=this._platformLocation.hash)&&void 0!==Ae?Ae:"#";return Ke.length>0?Ke.substring(1):Ke}prepareExternalUrl(F){const Ae=De(this._baseHref,F);return Ae.length>0?"#"+Ae:Ae}pushState(F,Ae,Ke,Qt){let wn=this.prepareExternalUrl(Ke+Ze(Qt));0==wn.length&&(wn=this._platformLocation.pathname),this._platformLocation.pushState(F,Ae,wn)}replaceState(F,Ae,Ke,Qt){let wn=this.prepareExternalUrl(Ke+Ze(Qt));0==wn.length&&(wn=this._platformLocation.pathname),this._platformLocation.replaceState(F,Ae,wn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var Ae,Ke;null===(Ae=(Ke=this._platformLocation).historyGo)||void 0===Ae||Ae.call(Ke,F)}}return(C=$).\u0275fac=function(F){return new(F||C)(h.KVO(Xe),h.KVO(ht,8))},C.\u0275prov=h.jDH({token:C,factory:C.\u0275fac}),$})(),yt=(()=>{var C;class ${constructor(F){this._subject=new h.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const Ae=this._locationStrategy.getBaseHref();this._basePath=function Me(C){if(new RegExp("^(https?:)?//").test(C)){const[,Be]=C.split(/\/\/[^\/]+/);return Be}return C}(Qe(mt(Ae))),this._locationStrategy.onPopState(Ke=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ke.state,type:Ke.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,Ae=""){return this.path()==this.normalize(F+Ze(Ae))}normalize(F){return $.stripTrailingSlash(function Et(C,$){if(!C||!$.startsWith(C))return $;const Be=$.substring(C.length);return""===Be||["/",";","?","#"].includes(Be[0])?Be:$}(this._basePath,mt(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,Ae="",Ke=null){this._locationStrategy.pushState(Ke,"",F,Ae),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+Ze(Ae)),Ke)}replaceState(F,Ae="",Ke=null){this._locationStrategy.replaceState(Ke,"",F,Ae),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+Ze(Ae)),Ke)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var Ae,Ke;null===(Ae=(Ke=this._locationStrategy).historyGo)||void 0===Ae||Ae.call(Ke,F)}onUrlChange(F){var Ae;return this._urlChangeListeners.push(F),null!==(Ae=this._urlChangeSubscription)&&void 0!==Ae||(this._urlChangeSubscription=this.subscribe(Ke=>{this._notifyUrlChangeListeners(Ke.url,Ke.state)})),()=>{const Ke=this._urlChangeListeners.indexOf(F);var Qt;this._urlChangeListeners.splice(Ke,1),0===this._urlChangeListeners.length&&(null===(Qt=this._urlChangeSubscription)||void 0===Qt||Qt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",Ae){this._urlChangeListeners.forEach(Ke=>Ke(F,Ae))}subscribe(F,Ae,Ke){return this._subject.subscribe({next:F,error:Ae,complete:Ke})}}return(C=$).normalizeQueryParams=Ze,C.joinWithSlash=De,C.stripTrailingSlash=Qe,C.\u0275fac=function(F){return new(F||C)(h.KVO(qe))},C.\u0275prov=h.jDH({token:C,factory:()=>function _t(){return new yt((0,h.KVO)(qe))}(),providedIn:"root"}),$})();function mt(C){return C.replace(/\/index.html$/,"")}var ge=function(C){return C[C.Decimal=0]="Decimal",C[C.Percent=1]="Percent",C[C.Currency=2]="Currency",C[C.Scientific=3]="Scientific",C}(ge||{});const Rt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Le(C,$){const Be=(0,h.H5H)(C),F=Be[h.KH2.NumberSymbols][$];if(typeof F>"u"){if($===Rt.CurrencyDecimal)return Be[h.KH2.NumberSymbols][Rt.Decimal];if($===Rt.CurrencyGroup)return Be[h.KH2.NumberSymbols][Rt.Group]}return F}const ct=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Ut(C){const $=parseInt(C);if(isNaN($))throw new Error("Invalid integer literal when parsing "+C);return $}function x(C,$){$=encodeURIComponent($);for(const Be of C.split(";")){const F=Be.indexOf("="),[Ae,Ke]=-1==F?[Be,""]:[Be.slice(0,F),Be.slice(F+1)];if(Ae.trim()===$)return decodeURIComponent(Ke)}return null}class ln{constructor($,Be,F,Ae){this.$implicit=$,this.ngForOf=Be,this.index=F,this.count=Ae}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 or=(()=>{var C;class ${set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}constructor(F,Ae,Ke){this._viewContainer=F,this._template=Ae,this._differs=Ke,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const Ae=this._viewContainer;F.forEachOperation((Ke,Qt,wn)=>{if(null==Ke.previousIndex)Ae.createEmbeddedView(this._template,new ln(Ke.item,this._ngForOf,-1,-1),null===wn?void 0:wn);else if(null==wn)Ae.remove(null===Qt?void 0:Qt);else if(null!==Qt){const ar=Ae.get(Qt);Ae.move(ar,wn),Un(ar,Ke)}});for(let Ke=0,Qt=Ae.length;Ke{Un(Ae.get(Ke.currentIndex),Ke)})}static ngTemplateContextGuard(F,Ae){return!0}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.c1b),h.rXU(h.C4Q),h.rXU(h._q3))},C.\u0275dir=h.FsC({type:C,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),$})();function Un(C,$){C.context.$implicit=$.item}let On=(()=>{var C;class ${constructor(F,Ae){this._viewContainer=F,this._context=new Fr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ae}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){Or("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){Or("ngIfElse",F),this._elseTemplateRef=F,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(F,Ae){return!0}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.c1b),h.rXU(h.C4Q))},C.\u0275dir=h.FsC({type:C,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),$})();class Fr{constructor(){this.$implicit=null,this.ngIf=null}}function Or(C,$){if($&&!$.createEmbeddedView)throw new Error(`${C} must be a TemplateRef, but received '${(0,h.Tbb)($)}'.`)}let Hn=(()=>{var C;class ${constructor(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(F){if(this._shouldRecreateView(F)){var Ae;const Ke=this._viewContainerRef;if(this._viewRef&&Ke.remove(Ke.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Qt=this._createContextForwardProxy();this._viewRef=Ke.createEmbeddedView(this.ngTemplateOutlet,Qt,{injector:null!==(Ae=this.ngTemplateOutletInjector)&&void 0!==Ae?Ae:void 0})}}_shouldRecreateView(F){return!!F.ngTemplateOutlet||!!F.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(F,Ae,Ke)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Ae,Ke),get:(F,Ae,Ke)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Ae,Ke)}})}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.c1b))},C.\u0275dir=h.FsC({type:C,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[h.OA$]}),$})();function ui(C,$){return new h.wOt(2100,!1)}class Ci{createSubscription($,Be){return(0,h.O8t)(()=>$.subscribe({next:Be,error:F=>{throw F}}))}dispose($){(0,h.O8t)(()=>$.unsubscribe())}}class Eo{createSubscription($,Be){return $.then(Be,F=>{throw F})}dispose($){}}const No=new Eo,oi=new Ci;let bt=(()=>{var C;class ${constructor(F){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=F}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(F){if(!this._obj){if(F)try{this.markForCheckOnValueUpdate=!1,this._subscribe(F)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,Ae=>this._updateLatestValue(F,Ae))}_selectStrategy(F){if((0,h.jNT)(F))return No;if((0,h.zjR)(F))return oi;throw ui()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,Ae){var Ke;F===this._obj&&(this._latestValue=Ae,this.markForCheckOnValueUpdate)&&(null===(Ke=this._ref)||void 0===Ke||Ke.markForCheck())}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.gRc,16))},C.\u0275pipe=h.EJ8({name:"async",type:C,pure:!1,standalone:!0}),$})(),sr=(()=>{var C;class ${constructor(F){this._locale=F}transform(F,Ae,Ke){if(!function me(C){return!(null==C||""===C||C!=C)}(F))return null;Ke||(Ke=this._locale);try{return function Zr(C,$,Be){return function Ar(C,$,Be,F,Ae,Ke,Qt=!1){let wn="",ar=!1;if(isFinite(C)){let Yn=function gi(C){let F,Ae,Ke,Qt,wn,$=Math.abs(C)+"",Be=0;for((Ae=$.indexOf("."))>-1&&($=$.replace(".","")),(Ke=$.search(/e/i))>0?(Ae<0&&(Ae=Ke),Ae+=+$.slice(Ke+1),$=$.substring(0,Ke)):Ae<0&&(Ae=$.length),Ke=0;"0"===$.charAt(Ke);Ke++);if(Ke===(wn=$.length))F=[0],Ae=1;else{for(wn--;"0"===$.charAt(wn);)wn--;for(Ae-=Ke,F=[],Qt=0;Ke<=wn;Ke++,Qt++)F[Qt]=Number($.charAt(Ke))}return Ae>22&&(F=F.splice(0,21),Be=Ae-1,Ae=1),{digits:F,exponent:Be,integerLen:Ae}}(C);Qt&&(Yn=function Ri(C){if(0===C.digits[0])return C;const $=C.digits.length-C.integerLen;return C.exponent?C.exponent+=2:(0===$?C.digits.push(0,0):1===$&&C.digits.push(0),C.integerLen+=2),C}(Yn));let pi=$.minInt,Xr=$.minFrac,ci=$.maxFrac;if(Ke){const Di=Ke.match(ct);if(null===Di)throw new Error(`${Ke} is not a valid digit info`);const qi=Di[1],Si=Di[3],Qi=Di[5];null!=qi&&(pi=Ut(qi)),null!=Si&&(Xr=Ut(Si)),null!=Qi?ci=Ut(Qi):null!=Si&&Xr>ci&&(ci=Xr)}!function pr(C,$,Be){if($>Be)throw new Error(`The minimum number of digits after fraction (${$}) is higher than the maximum (${Be}).`);let F=C.digits,Ae=F.length-C.integerLen;const Ke=Math.min(Math.max($,Ae),Be);let Qt=Ke+C.integerLen,wn=F[Qt];if(Qt>0){F.splice(Math.max(C.integerLen,Qt));for(let Xr=Qt;Xr=5)if(Qt-1<0){for(let Xr=0;Xr>Qt;Xr--)F.unshift(0),C.integerLen++;F.unshift(1),C.integerLen++}else F[Qt-1]++;for(;Ae=Yn?Hi.pop():ar=!1),ci>=10?1:0},0);pi&&(F.unshift(pi),C.integerLen++)}(Yn,Xr,ci);let ri=Yn.digits,Hi=Yn.integerLen;const vi=Yn.exponent;let Rn=[];for(ar=ri.every(Di=>!Di);Hi0?Rn=ri.splice(Hi,ri.length):(Rn=ri,ri=[0]);const Kn=[];for(ri.length>=$.lgSize&&Kn.unshift(ri.splice(-$.lgSize,ri.length).join(""));ri.length>$.gSize;)Kn.unshift(ri.splice(-$.gSize,ri.length).join(""));ri.length&&Kn.unshift(ri.join("")),wn=Kn.join(Le(Be,F)),Rn.length&&(wn+=Le(Be,Ae)+Rn.join("")),vi&&(wn+=Le(Be,Rt.Exponential)+"+"+vi)}else wn=Le(Be,Rt.Infinity);return wn=C<0&&!ar?$.negPre+wn+$.negSuf:$.posPre+wn+$.posSuf,wn}(C,function fr(C,$="-"){const Be={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},F=C.split(";"),Ae=F[0],Ke=F[1],Qt=-1!==Ae.indexOf(".")?Ae.split("."):[Ae.substring(0,Ae.lastIndexOf("0")+1),Ae.substring(Ae.lastIndexOf("0")+1)],wn=Qt[0],ar=Qt[1]||"";Be.posPre=wn.substring(0,wn.indexOf("#"));for(let pi=0;pi{var C;class ${}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275mod=h.$C({type:C}),C.\u0275inj=h.G2t({}),$})();const Yt="browser",sn="server";function Nn(C){return C===Yt}function jn(C){return C===sn}let jr=(()=>{var C;class ${}return(C=$).\u0275prov=(0,h.jDH)({token:C,providedIn:"root",factory:()=>Nn((0,h.WQX)(h.Agw))?new br((0,h.WQX)(oe),window):new Ni}),$})();class br{constructor($,Be){this.document=$,this.window=Be,this.offset=()=>[0,0]}setOffset($){this.offset=Array.isArray($)?()=>$:$}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition($){this.window.scrollTo($[0],$[1])}scrollToAnchor($){const Be=function wi(C,$){const Be=C.getElementById($)||C.getElementsByName($)[0];if(Be)return Be;if("function"==typeof C.createTreeWalker&&C.body&&"function"==typeof C.body.attachShadow){const F=C.createTreeWalker(C.body,NodeFilter.SHOW_ELEMENT);let Ae=F.currentNode;for(;Ae;){const Ke=Ae.shadowRoot;if(Ke){const Qt=Ke.getElementById($)||Ke.querySelector(`[name="${$}"]`);if(Qt)return Qt}Ae=F.nextNode()}}return null}(this.document,$);Be&&(this.scrollToElement(Be),Be.focus())}setHistoryScrollRestoration($){this.window.history.scrollRestoration=$}scrollToElement($){const Be=$.getBoundingClientRect(),F=Be.left+this.window.pageXOffset,Ae=Be.top+this.window.pageYOffset,Ke=this.offset();this.window.scrollTo(F-Ke[0],Ae-Ke[1])}}class Ni{setOffset($){}getScrollPosition(){return[0,0]}scrollToPosition($){}scrollToAnchor($){}setHistoryScrollRestoration($){}}class ki{}},1626:(Tn,gt,D)=>{"use strict";D.d(gt,{Qq:()=>fe,q1:()=>_n}),D(467);var c=D(4438),Z=D(7673),Oe=D(1985),U=D(8455),ue=D(274),oe=D(5964),Xe=D(6354),Je=D(980),Se=D(5558),De=D(177);class Qe{}class Ze{}class qe{constructor(x){this.normalizedNames=new Map,this.lazyUpdate=null,x?"string"==typeof x?this.lazyInit=()=>{this.headers=new Map,x.split("\n").forEach(te=>{const Te=te.indexOf(":");if(Te>0){const Ge=te.slice(0,Te),Ct=Ge.toLowerCase(),Jt=te.slice(Te+1).trim();this.maybeSetNormalizedName(Ge,Ct),this.headers.has(Ct)?this.headers.get(Ct).push(Jt):this.headers.set(Ct,[Jt])}})}:typeof Headers<"u"&&x instanceof Headers?(this.headers=new Map,x.forEach((te,Te)=>{this.setHeaderEntries(Te,te)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(x).forEach(([te,Te])=>{this.setHeaderEntries(te,Te)})}:this.headers=new Map}has(x){return this.init(),this.headers.has(x.toLowerCase())}get(x){this.init();const te=this.headers.get(x.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(x){return this.init(),this.headers.get(x.toLowerCase())||null}append(x,te){return this.clone({name:x,value:te,op:"a"})}set(x,te){return this.clone({name:x,value:te,op:"s"})}delete(x,te){return this.clone({name:x,value:te,op:"d"})}maybeSetNormalizedName(x,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,x)}init(){this.lazyInit&&(this.lazyInit instanceof qe?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(x=>this.applyUpdate(x)),this.lazyUpdate=null))}copyFrom(x){x.init(),Array.from(x.headers.keys()).forEach(te=>{this.headers.set(te,x.headers.get(te)),this.normalizedNames.set(te,x.normalizedNames.get(te))})}clone(x){const te=new qe;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof qe?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([x]),te}applyUpdate(x){const te=x.name.toLowerCase();switch(x.op){case"a":case"s":let Te=x.value;if("string"==typeof Te&&(Te=[Te]),0===Te.length)return;this.maybeSetNormalizedName(x.name,te);const Ge=("a"===x.op?this.headers.get(te):void 0)||[];Ge.push(...Te),this.headers.set(te,Ge);break;case"d":const Ct=x.value;if(Ct){let Jt=this.headers.get(te);if(!Jt)return;Jt=Jt.filter(ln=>-1===Ct.indexOf(ln)),0===Jt.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,Jt)}else this.headers.delete(te),this.normalizedNames.delete(te)}}setHeaderEntries(x,te){const Te=(Array.isArray(te)?te:[te]).map(Ct=>Ct.toString()),Ge=x.toLowerCase();this.headers.set(Ge,Te),this.maybeSetNormalizedName(x,Ge)}forEach(x){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>x(this.normalizedNames.get(te),this.headers.get(te)))}}class Tt{encodeKey(x){return Et(x)}encodeValue(x){return Et(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}}const yt=/%(\d[a-f0-9])/gi,_t={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Et(M){return encodeURIComponent(M).replace(yt,(x,te)=>{var Te;return null!==(Te=_t[te])&&void 0!==Te?Te:x})}function mt(M){return`${M}`}class Me{constructor(x={}){if(this.updates=null,this.cloneFrom=null,this.encoder=x.encoder||new Tt,x.fromString){if(x.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function St(M,x){const te=new Map;return M.length>0&&M.replace(/^\?/,"").split("&").forEach(Ge=>{const Ct=Ge.indexOf("="),[Jt,ln]=-1==Ct?[x.decodeKey(Ge),""]:[x.decodeKey(Ge.slice(0,Ct)),x.decodeValue(Ge.slice(Ct+1))],or=te.get(Jt)||[];or.push(ln),te.set(Jt,or)}),te}(x.fromString,this.encoder)}else x.fromObject?(this.map=new Map,Object.keys(x.fromObject).forEach(te=>{const Te=x.fromObject[te],Ge=Array.isArray(Te)?Te.map(mt):[mt(Te)];this.map.set(te,Ge)})):this.map=null}has(x){return this.init(),this.map.has(x)}get(x){this.init();const te=this.map.get(x);return te?te[0]:null}getAll(x){return this.init(),this.map.get(x)||null}keys(){return this.init(),Array.from(this.map.keys())}append(x,te){return this.clone({param:x,value:te,op:"a"})}appendAll(x){const te=[];return Object.keys(x).forEach(Te=>{const Ge=x[Te];Array.isArray(Ge)?Ge.forEach(Ct=>{te.push({param:Te,value:Ct,op:"a"})}):te.push({param:Te,value:Ge,op:"a"})}),this.clone(te)}set(x,te){return this.clone({param:x,value:te,op:"s"})}delete(x,te){return this.clone({param:x,value:te,op:"d"})}toString(){return this.init(),this.keys().map(x=>{const te=this.encoder.encodeKey(x);return this.map.get(x).map(Te=>te+"="+this.encoder.encodeValue(Te)).join("&")}).filter(x=>""!==x).join("&")}clone(x){const te=new Me({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(x),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(x=>this.map.set(x,this.cloneFrom.map.get(x))),this.updates.forEach(x=>{switch(x.op){case"a":case"s":const te=("a"===x.op?this.map.get(x.param):void 0)||[];te.push(mt(x.value)),this.map.set(x.param,te);break;case"d":if(void 0===x.value){this.map.delete(x.param);break}{let Te=this.map.get(x.param)||[];const Ge=Te.indexOf(mt(x.value));-1!==Ge&&Te.splice(Ge,1),Te.length>0?this.map.set(x.param,Te):this.map.delete(x.param)}}}),this.cloneFrom=this.updates=null)}}class ge{constructor(){this.map=new Map}set(x,te){return this.map.set(x,te),this}get(x){return this.map.has(x)||this.map.set(x,x.defaultValue()),this.map.get(x)}delete(x){return this.map.delete(x),this}has(x){return this.map.has(x)}keys(){return this.map.keys()}}function Fe(M){return typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer}function xe(M){return typeof Blob<"u"&&M instanceof Blob}function rt(M){return typeof FormData<"u"&&M instanceof FormData}class vn{constructor(x,te,Te,Ge){var Ct,Jt;let ln;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=x.toUpperCase(),function Ue(M){switch(M){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ge?(this.body=void 0!==Te?Te:null,ln=Ge):ln=Te,ln&&(this.reportProgress=!!ln.reportProgress,this.withCredentials=!!ln.withCredentials,ln.responseType&&(this.responseType=ln.responseType),ln.headers&&(this.headers=ln.headers),ln.context&&(this.context=ln.context),ln.params&&(this.params=ln.params),this.transferCache=ln.transferCache),null!==(Ct=this.headers)&&void 0!==Ct||(this.headers=new qe),null!==(Jt=this.context)&&void 0!==Jt||(this.context=new ge),this.params){const or=this.params.toString();if(0===or.length)this.urlWithParams=te;else{const Un=te.indexOf("?");this.urlWithParams=te+(-1===Un?"?":UnGn.set(Cr,x.setHeaders[Cr]),Or)),x.setParams&&(zr=Object.keys(x.setParams).reduce((Gn,Cr)=>Gn.set(Cr,x.setParams[Cr]),zr)),new vn(Jt,ln,xr,{params:zr,headers:Or,context:Tr,reportProgress:Fr,responseType:or,withCredentials:On,transferCache:Un})}}var Nt=function(M){return M[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M}(Nt||{});class tt{constructor(x,te=H.Ok,Te="OK"){this.headers=x.headers||new qe,this.status=void 0!==x.status?x.status:te,this.statusText=x.statusText||Te,this.url=x.url||null,this.ok=this.status>=200&&this.status<300}}class on extends tt{constructor(x={}){super(x),this.type=Nt.ResponseHeader}clone(x={}){return new on({headers:x.headers||this.headers,status:void 0!==x.status?x.status:this.status,statusText:x.statusText||this.statusText,url:x.url||this.url||void 0})}}class dt extends tt{constructor(x={}){super(x),this.type=Nt.Response,this.body=void 0!==x.body?x.body:null}clone(x={}){return new dt({body:void 0!==x.body?x.body:this.body,headers:x.headers||this.headers,status:void 0!==x.status?x.status:this.status,statusText:x.statusText||this.statusText,url:x.url||this.url||void 0})}}class we extends tt{constructor(x){super(x,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${x.url||"(unknown url)"}`:`Http failure response for ${x.url||"(unknown url)"}: ${x.status} ${x.statusText}`,this.error=x.error||null}}var H=function(M){return M[M.Continue=100]="Continue",M[M.SwitchingProtocols=101]="SwitchingProtocols",M[M.Processing=102]="Processing",M[M.EarlyHints=103]="EarlyHints",M[M.Ok=200]="Ok",M[M.Created=201]="Created",M[M.Accepted=202]="Accepted",M[M.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",M[M.NoContent=204]="NoContent",M[M.ResetContent=205]="ResetContent",M[M.PartialContent=206]="PartialContent",M[M.MultiStatus=207]="MultiStatus",M[M.AlreadyReported=208]="AlreadyReported",M[M.ImUsed=226]="ImUsed",M[M.MultipleChoices=300]="MultipleChoices",M[M.MovedPermanently=301]="MovedPermanently",M[M.Found=302]="Found",M[M.SeeOther=303]="SeeOther",M[M.NotModified=304]="NotModified",M[M.UseProxy=305]="UseProxy",M[M.Unused=306]="Unused",M[M.TemporaryRedirect=307]="TemporaryRedirect",M[M.PermanentRedirect=308]="PermanentRedirect",M[M.BadRequest=400]="BadRequest",M[M.Unauthorized=401]="Unauthorized",M[M.PaymentRequired=402]="PaymentRequired",M[M.Forbidden=403]="Forbidden",M[M.NotFound=404]="NotFound",M[M.MethodNotAllowed=405]="MethodNotAllowed",M[M.NotAcceptable=406]="NotAcceptable",M[M.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",M[M.RequestTimeout=408]="RequestTimeout",M[M.Conflict=409]="Conflict",M[M.Gone=410]="Gone",M[M.LengthRequired=411]="LengthRequired",M[M.PreconditionFailed=412]="PreconditionFailed",M[M.PayloadTooLarge=413]="PayloadTooLarge",M[M.UriTooLong=414]="UriTooLong",M[M.UnsupportedMediaType=415]="UnsupportedMediaType",M[M.RangeNotSatisfiable=416]="RangeNotSatisfiable",M[M.ExpectationFailed=417]="ExpectationFailed",M[M.ImATeapot=418]="ImATeapot",M[M.MisdirectedRequest=421]="MisdirectedRequest",M[M.UnprocessableEntity=422]="UnprocessableEntity",M[M.Locked=423]="Locked",M[M.FailedDependency=424]="FailedDependency",M[M.TooEarly=425]="TooEarly",M[M.UpgradeRequired=426]="UpgradeRequired",M[M.PreconditionRequired=428]="PreconditionRequired",M[M.TooManyRequests=429]="TooManyRequests",M[M.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",M[M.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",M[M.InternalServerError=500]="InternalServerError",M[M.NotImplemented=501]="NotImplemented",M[M.BadGateway=502]="BadGateway",M[M.ServiceUnavailable=503]="ServiceUnavailable",M[M.GatewayTimeout=504]="GatewayTimeout",M[M.HttpVersionNotSupported=505]="HttpVersionNotSupported",M[M.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",M[M.InsufficientStorage=507]="InsufficientStorage",M[M.LoopDetected=508]="LoopDetected",M[M.NotExtended=510]="NotExtended",M[M.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",M}(H||{});function X(M,x){return{body:x,headers:M.headers,context:M.context,observe:M.observe,params:M.params,reportProgress:M.reportProgress,responseType:M.responseType,withCredentials:M.withCredentials,transferCache:M.transferCache}}let fe=(()=>{var M;class x{constructor(Te){this.handler=Te}request(Te,Ge,Ct={}){let Jt;if(Te instanceof vn)Jt=Te;else{let Un,xr;Un=Ct.headers instanceof qe?Ct.headers:new qe(Ct.headers),Ct.params&&(xr=Ct.params instanceof Me?Ct.params:new Me({fromObject:Ct.params})),Jt=new vn(Te,Ge,void 0!==Ct.body?Ct.body:null,{headers:Un,context:Ct.context,params:xr,reportProgress:Ct.reportProgress,responseType:Ct.responseType||"json",withCredentials:Ct.withCredentials,transferCache:Ct.transferCache})}const ln=(0,Z.of)(Jt).pipe((0,ue.H)(Un=>this.handler.handle(Un)));if(Te instanceof vn||"events"===Ct.observe)return ln;const or=ln.pipe((0,oe.p)(Un=>Un instanceof dt));switch(Ct.observe||"body"){case"body":switch(Jt.responseType){case"arraybuffer":return or.pipe((0,Xe.T)(Un=>{if(null!==Un.body&&!(Un.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Un.body}));case"blob":return or.pipe((0,Xe.T)(Un=>{if(null!==Un.body&&!(Un.body instanceof Blob))throw new Error("Response is not a Blob.");return Un.body}));case"text":return or.pipe((0,Xe.T)(Un=>{if(null!==Un.body&&"string"!=typeof Un.body)throw new Error("Response is not a string.");return Un.body}));default:return or.pipe((0,Xe.T)(Un=>Un.body))}case"response":return or;default:throw new Error(`Unreachable: unhandled observe type ${Ct.observe}}`)}}delete(Te,Ge={}){return this.request("DELETE",Te,Ge)}get(Te,Ge={}){return this.request("GET",Te,Ge)}head(Te,Ge={}){return this.request("HEAD",Te,Ge)}jsonp(Te,Ge){return this.request("JSONP",Te,{params:(new Me).append(Ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Te,Ge={}){return this.request("OPTIONS",Te,Ge)}patch(Te,Ge,Ct={}){return this.request("PATCH",Te,X(Ct,Ge))}post(Te,Ge,Ct={}){return this.request("POST",Te,X(Ct,Ge))}put(Te,Ge,Ct={}){return this.request("PUT",Te,X(Ct,Ge))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Qe))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();function rn(M,x){return x(M)}function Ln(M,x){return(te,Te)=>x.intercept(te,{handle:Ge=>M(Ge,Te)})}const nr=new c.nKC(""),er=new c.nKC(""),yr=new c.nKC(""),rr=new c.nKC("");function ir(){let M=null;return(x,te)=>{var Te;null===M&&(M=(null!==(Te=(0,c.WQX)(nr,{optional:!0}))&&void 0!==Te?Te:[]).reduceRight(Ln,rn));const Ge=(0,c.WQX)(c.TgB),Ct=Ge.add();return M(x,te).pipe((0,Je.j)(()=>Ge.remove(Ct)))}}let zt=(()=>{var M;class x extends Qe{constructor(Te,Ge){super(),this.backend=Te,this.injector=Ge,this.chain=null,this.pendingTasks=(0,c.WQX)(c.TgB);const Ct=(0,c.WQX)(rr,{optional:!0});this.backend=null!=Ct?Ct:Te}handle(Te){if(null===this.chain){const Ct=Array.from(new Set([...this.injector.get(er),...this.injector.get(yr,[])]));this.chain=Ct.reduceRight((Jt,ln)=>function Zn(M,x,te){return(Te,Ge)=>(0,c.N4e)(te,()=>x(Te,Ct=>M(Ct,Ge)))}(Jt,ln,this.injector),rn)}const Ge=this.pendingTasks.add();return this.chain(Te,Ct=>this.backend.handle(Ct)).pipe((0,Je.j)(()=>this.pendingTasks.remove(Ge)))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Ze),c.KVO(c.uvJ))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();const Dr=/^\)\]\}',?\n/;let Jr=(()=>{var M;class x{constructor(Te){this.xhrFactory=Te}handle(Te){if("JSONP"===Te.method)throw new c.wOt(-2800,!1);const Ge=this.xhrFactory;return(Ge.\u0275loadImpl?(0,U.H)(Ge.\u0275loadImpl()):(0,Z.of)(null)).pipe((0,Se.n)(()=>new Oe.c(Jt=>{const ln=Ge.build();if(ln.open(Te.method,Te.urlWithParams),Te.withCredentials&&(ln.withCredentials=!0),Te.headers.forEach((Gn,Cr)=>ln.setRequestHeader(Gn,Cr.join(","))),Te.headers.has("Accept")||ln.setRequestHeader("Accept","application/json, text/plain, */*"),!Te.headers.has("Content-Type")){const Gn=Te.detectContentTypeHeader();null!==Gn&&ln.setRequestHeader("Content-Type",Gn)}if(Te.responseType){const Gn=Te.responseType.toLowerCase();ln.responseType="json"!==Gn?Gn:"text"}const or=Te.serializeBody();let Un=null;const xr=()=>{if(null!==Un)return Un;const Gn=ln.statusText||"OK",Cr=new qe(ln.getAllResponseHeaders()),ai=function Jn(M){return"responseURL"in M&&M.responseURL?M.responseURL:/^X-Request-URL:/m.test(M.getAllResponseHeaders())?M.getResponseHeader("X-Request-URL"):null}(ln)||Te.url;return Un=new on({headers:Cr,status:ln.status,statusText:Gn,url:ai}),Un},On=()=>{let{headers:Gn,status:Cr,statusText:ai,url:li}=xr(),ei=null;Cr!==H.NoContent&&(ei=typeof ln.response>"u"?ln.responseText:ln.response),0===Cr&&(Cr=ei?H.Ok:0);let Lr=Cr>=200&&Cr<300;if("json"===Te.responseType&&"string"==typeof ei){const mi=ei;ei=ei.replace(Dr,"");try{ei=""!==ei?JSON.parse(ei):null}catch(Wn){ei=mi,Lr&&(Lr=!1,ei={error:Wn,text:ei})}}Lr?(Jt.next(new dt({body:ei,headers:Gn,status:Cr,statusText:ai,url:li||void 0})),Jt.complete()):Jt.error(new we({error:ei,headers:Gn,status:Cr,statusText:ai,url:li||void 0}))},Fr=Gn=>{const{url:Cr}=xr(),ai=new we({error:Gn,status:ln.status||0,statusText:ln.statusText||"Unknown Error",url:Cr||void 0});Jt.error(ai)};let Or=!1;const zr=Gn=>{Or||(Jt.next(xr()),Or=!0);let Cr={type:Nt.DownloadProgress,loaded:Gn.loaded};Gn.lengthComputable&&(Cr.total=Gn.total),"text"===Te.responseType&&ln.responseText&&(Cr.partialText=ln.responseText),Jt.next(Cr)},Tr=Gn=>{let Cr={type:Nt.UploadProgress,loaded:Gn.loaded};Gn.lengthComputable&&(Cr.total=Gn.total),Jt.next(Cr)};return ln.addEventListener("load",On),ln.addEventListener("error",Fr),ln.addEventListener("timeout",Fr),ln.addEventListener("abort",Fr),Te.reportProgress&&(ln.addEventListener("progress",zr),null!==or&&ln.upload&&ln.upload.addEventListener("progress",Tr)),ln.send(or),Jt.next({type:Nt.Sent}),()=>{ln.removeEventListener("error",Fr),ln.removeEventListener("abort",Fr),ln.removeEventListener("load",On),ln.removeEventListener("timeout",Fr),Te.reportProgress&&(ln.removeEventListener("progress",zr),null!==or&&ln.upload&&ln.upload.removeEventListener("progress",Tr)),ln.readyState!==ln.DONE&&ln.abort()}})))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(De.N0))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();const mr=new c.nKC(""),Pr=new c.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),kr=new c.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class ii{}let Ai=(()=>{var M;class x{constructor(Te,Ge,Ct){this.doc=Te,this.platform=Ge,this.cookieName=Ct,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Te=this.doc.cookie||"";return Te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,De._b)(Te,this.cookieName),this.lastCookieString=Te),this.lastToken}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(De.qQ),c.KVO(c.Agw),c.KVO(Pr))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();function Qr(M,x){const te=M.url.toLowerCase();if(!(0,c.WQX)(mr)||"GET"===M.method||"HEAD"===M.method||te.startsWith("http://")||te.startsWith("https://"))return x(M);const Te=(0,c.WQX)(ii).getToken(),Ge=(0,c.WQX)(kr);return null!=Te&&!M.headers.has(Ge)&&(M=M.clone({headers:M.headers.set(Ge,Te)})),x(M)}var it=function(M){return M[M.Interceptors=0]="Interceptors",M[M.LegacyInterceptors=1]="LegacyInterceptors",M[M.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",M[M.NoXsrfProtection=3]="NoXsrfProtection",M[M.JsonpSupport=4]="JsonpSupport",M[M.RequestsMadeViaParent=5]="RequestsMadeViaParent",M[M.Fetch=6]="Fetch",M}(it||{});function Mt(M,x){return{\u0275kind:M,\u0275providers:x}}function ut(...M){const x=[fe,Jr,zt,{provide:Qe,useExisting:zt},{provide:Ze,useExisting:Jr},{provide:er,useValue:Qr,multi:!0},{provide:mr,useValue:!0},{provide:ii,useClass:Ai}];for(const te of M)x.push(...te.\u0275providers);return(0,c.EmA)(x)}const Ee=new c.nKC("");let _n=(()=>{var M;class x{}return(M=x).\u0275fac=function(Te){return new(Te||M)},M.\u0275mod=c.$C({type:M}),M.\u0275inj=c.G2t({providers:[ut(Mt(it.LegacyInterceptors,[{provide:Ee,useFactory:ir},{provide:er,useExisting:Ee,multi:!0}]))]}),x})()},4438:(Tn,gt,D)=>{"use strict";D.d(gt,{iLQ:()=>GE,sZ2:()=>yv,hnV:()=>sT,Hbi:()=>Z1,o8S:()=>Cd,BIS:()=>Ay,gRc:()=>yT,Ql9:()=>T1,Ocv:()=>O1,Z63:()=>fo,aKT:()=>Yu,uvJ:()=>Lo,zcH:()=>Za,bkB:()=>Bs,$GK:()=>bt,nKC:()=>Ge,zZn:()=>ps,_q3:()=>ZE,MKu:()=>eI,xe9:()=>uy,Co$:()=>xi,Vns:()=>so,SKi:()=>bo,Xx1:()=>Nn,Agw:()=>eh,PLl:()=>Ev,rOR:()=>Ju,sFG:()=>vm,_9s:()=>up,czy:()=>Yg,WPN:()=>oc,kdw:()=>lr,C4Q:()=>ap,NYb:()=>_1,giA:()=>iT,xvI:()=>WR,RxE:()=>YD,c1b:()=>pd,gXe:()=>ls,mal:()=>d_,L39:()=>SM,a0P:()=>FM,Ol2:()=>Q0,w6W:()=>ss,oH4:()=>gT,QZP:()=>QT,SmG:()=>V1,Rfq:()=>Qr,WQX:()=>Ne,Hps:()=>Lm,QuC:()=>po,EmA:()=>dl,Udg:()=>RM,fpN:()=>J1,HJs:()=>LM,N4e:()=>lo,vPA:()=>_d,O8t:()=>PM,H3F:()=>JD,H8p:()=>zl,KH2:()=>Qp,TgB:()=>Pp,wOt:()=>nt,WHO:()=>nT,e01:()=>rT,lNU:()=>ir,h9k:()=>$g,$MX:()=>Bi,ZF7:()=>uo,Kcf:()=>nl,e5t:()=>aI,UyX:()=>sI,cWb:()=>Py,osQ:()=>xv,H5H:()=>AE,Zy3:()=>Ot,mq5:()=>hC,JZv:()=>Jn,LfX:()=>Ut,plB:()=>il,jNT:()=>zE,zjR:()=>oT,TL$:()=>Tg,Tbb:()=>cr,rcV:()=>Rl,Vt3:()=>wp,Mj6:()=>us,GFd:()=>Wi,OA$:()=>Zi,Jv_:()=>DD,aNF:()=>TD,R7$:()=>a0,BMQ:()=>aE,AVh:()=>pE,vxM:()=>rC,wni:()=>eD,VBU:()=>_s,FsC:()=>$o,jDH:()=>fr,G2t:()=>gi,$C:()=>ul,EJ8:()=>Jo,rXU:()=>sd,nrm:()=>EE,eu8:()=>IE,bVm:()=>J_,qex:()=>Y_,k0s:()=>Q_,j41:()=>q_,RV6:()=>uC,xGo:()=>hf,KVO:()=>z,kS0:()=>$c,QTQ:()=>l0,bIt:()=>TE,lsd:()=>rD,qSk:()=>ef,XpG:()=>zC,nI1:()=>OD,bMT:()=>ND,i5U:()=>kD,SdG:()=>GC,NAR:()=>HC,Y8G:()=>dE,FS9:()=>wE,Mz_:()=>ry,lJ4:()=>wD,mGM:()=>nD,Dyx:()=>sC,Z7z:()=>oC,fX1:()=>iC,Njj:()=>bc,eBV:()=>Md,$dS:()=>fh,n$t:()=>Hf,xc7:()=>fE,DNE:()=>xp,EFF:()=>fD,JRh:()=>SE,SpI:()=>iy,Lme:()=>RE,DH7:()=>AD,mxI:()=>PE,R50:()=>ME,GBs:()=>tD}),D(467);let Z=null,Oe=!1,U=1;const ue=Symbol("SIGNAL");function oe(e){const t=Z;return Z=e,t}const De={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Qe(e){if(Oe)throw new Error("");if(null===Z)return;Z.consumerOnSignalRead(e);const t=Z.nextProducerIndex++;Ue(Z),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Et(e){Ue(e);for(let t=0;t0}function Ue(e){var t,r,o;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(r=e.producerIndexOfThis)&&void 0!==r||(e.producerIndexOfThis=[]),null!==(o=e.producerLastReadVersion)&&void 0!==o||(e.producerLastReadVersion=[])}function Fe(e){var t,r;null!==(t=e.liveConsumerNode)&&void 0!==t||(e.liveConsumerNode=[]),null!==(r=e.liveConsumerIndexOfThis)&&void 0!==r||(e.liveConsumerIndexOfThis=[])}let on=function tt(){throw new Error};function dt(){on()}let H=null;function ve(e,t){Tt()||dt(),e.equal(e.value,t)||(e.value=t,function Wt(e){var t;e.version++,function Ze(){U++}(),ht(e),null===(t=H)||void 0===t||t()}(e))}const _e={...De,equal:function c(e,t){return Object.is(e,t)},value:void 0};const Kt=()=>{},rn={...De,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Kt};var Zn=D(1413),nr=D(8359),er=D(4412),yr=D(6354);const ir="https://g.co/ng/security#xss";class nt extends Error{constructor(t,r){super(Ot(t,r)),this.code=t}}function Ot(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function xn(e){return{toString:e}.toString()}const en="__parameters__";function Qn(e,t,r){return xn(()=>{const o=function Nr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...d){if(this instanceof a)return o.apply(this,d),this;const g=new a(...d);return y.annotation=g,y;function y(A,B,Y){const de=A.hasOwnProperty(en)?A[en]:Object.defineProperty(A,en,{value:[]})[en];for(;de.length<=Y;)de.push(null);return(de[Y]=de[Y]||[]).push(g),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Jn=globalThis;function ur(e){for(let t in e)if(e[t]===ur)return t;throw Error("Could not find renamed property on target object.")}function Pr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function cr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(cr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function kr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Ai=ur({__forward_ref__:ur});function Qr(e){return e.__forward_ref__=Qr,e.toString=function(){return cr(this())},e}function pe(e){return it(e)?e():e}function it(e){return"function"==typeof e&&e.hasOwnProperty(Ai)&&e.__forward_ref__===Qr}function fr(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function gi(e){return{providers:e.providers||[],imports:e.imports||[]}}function pr(e){return ne(e,M)||ne(e,te)}function Ut(e){return null!==pr(e)}function ne(e,t){return e.hasOwnProperty(t)?e[t]:null}function je(e){return e&&(e.hasOwnProperty(x)||e.hasOwnProperty(Te))?e[x]:null}const M=ur({\u0275prov:ur}),x=ur({\u0275inj:ur}),te=ur({ngInjectableDef:ur}),Te=ur({ngInjectorDef:ur});class Ge{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=fr({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Tr(e){return e&&!!e.\u0275providers}const Gn=ur({\u0275cmp:ur}),Cr=ur({\u0275dir:ur}),ai=ur({\u0275pipe:ur}),li=ur({\u0275mod:ur}),ei=ur({\u0275fac:ur}),Lr=ur({__NG_ELEMENT_ID__:ur}),mi=ur({__NG_ENV_ID__:ur});function Wn(e){return"string"==typeof e?e:null==e?"":String(e)}function oi(e,t){throw new nt(-201,!1)}var bt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(bt||{});let he;function le(){return he}function W(e){const t=he;return he=e,t}function $e(e,t,r){const o=pr(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&bt.Optional?null:void 0!==t?t:void oi()}const jt={},In="__NG_DI_FLAG__",Fn="ngTempTokenPath",j=/\n/gm,P="__source";let Ie;function sr(e){const t=Ie;return Ie=e,t}function ni(e,t=bt.Default){if(void 0===Ie)throw new nt(-203,!1);return null===Ie?$e(e,void 0,t):Ie.get(e,t&bt.Optional?null:void 0,t)}function z(e,t=bt.Default){return(le()||ni)(pe(e),t)}function Ne(e,t=bt.Default){return z(e,et(t))}function et(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function wt(e){const t=[];for(let r=0;rArray.isArray(r)?wi(r,t):t(r))}function Ni(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ki(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ji(e,t,r){let o=Io(e,t);return o>=0?e[1|o]=r:(o=~o,function Ti(e,t,r,o){let a=e.length;if(a==t)e.push(r,o);else if(1===a)e.push(o,e[0]),e[0]=r;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=r,e[t+1]=o}}(e,o,t,r)),o}function Bo(e,t){const r=Io(e,t);if(r>=0)return e[1|r]}function Io(e,t){return function no(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const d=o+(a-o>>1),g=e[d<t?a=d:o=d+1}return~(a<t){g=d-1;break}}}for(;d-1){let d;for(;++ad?"":a[Y+1].toLowerCase(),2&o&&B!==de){if(Ce(o))return!1;g=!0}}}}else{if(!g&&!Ce(o)&&!Ce(A))return!1;if(g&&Ce(A))continue;g=!1,o=A|1&o}}return Ce(o)||g}function Ce(e){return!(1&e)}function G(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let d=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+g:4&o&&(a+=" "+g);else""!==a&&!Ce(g)&&(t+=wo(d,a),a=""),o=g,d=d||!Ce(o);r++}return""!==a&&(t+=wo(d,a)),t}function _s(e){return xn(()=>{var t;const r=La(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ms.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||ls.Emulated,styles:e.styles||Kr,_:null,schemas:e.schemas||null,tView:null,id:""};jo(o);const a=e.dependencies;return o.directiveDefs=ys(a,!1),o.pipeDefs=ys(a,!0),o.id=function Hr(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of r)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(o),o})}function Gs(e){return Rr(e)||ji(e)}function fa(e){return null!==e}function ul(e){return xn(()=>({type:e.type,bootstrap:e.bootstrap||Kr,declarations:e.declarations||Kr,imports:e.imports||Kr,exports:e.exports||Kr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function pa(e,t){if(null==e)return ko;const r={};for(const a in e)if(e.hasOwnProperty(a)){const d=e[a];let g,y,A=us.None;var o;Array.isArray(d)?(A=d[0],g=d[1],y=null!==(o=d[2])&&void 0!==o?o:g):(g=d,y=d),t?(r[g]=A!==us.None?[a,A]:a,t[g]=y):r[g]=a}return r}function $o(e){return xn(()=>{const t=La(e);return jo(t),t})}function Jo(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Rr(e){return e[Gn]||null}function ji(e){return e[Cr]||null}function zi(e){return e[ai]||null}function po(e){const t=Rr(e)||ji(e)||zi(e);return null!==t&&t.standalone}function bi(e,t){const r=e[li]||null;if(!r&&!0===t)throw new Error(`Type ${cr(e)} does not have '\u0275mod' property.`);return r}function La(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||ko,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Kr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:pa(e.inputs,t),outputs:pa(e.outputs),debugInfo:null}}function jo(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function ys(e,t){if(!e)return null;const r=t?zi:Gs;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(fa)}function dl(e){return{\u0275providers:e}}function Ws(...e){return{\u0275providers:Va(0,e),\u0275fromNgModule:!0}}function Va(e,...t){const r=[],o=new Set;let a;const d=g=>{r.push(g)};return wi(t,g=>{const y=g;hl(y,d,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&Es(a,d),r}function Es(e,t){for(let r=0;r{t(d,o)})}}function hl(e,t,r,o){if(!(e=pe(e)))return!1;let a=null,d=je(e);const g=!d&&Rr(e);if(d||g){if(g&&!g.standalone)return!1;a=e}else{const A=e.ngModule;if(d=je(A),!d)return!1;a=A}const y=o.has(a);if(g){if(y)return!1;if(o.add(a),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const B of A)hl(B,t,r,o)}}else{if(!d)return!1;{if(null!=d.imports&&!y){let B;o.add(a);try{wi(d.imports,Y=>{hl(Y,t,r,o)&&(B||(B=[]),B.push(Y))})}finally{}void 0!==B&&Es(B,t)}if(!y){const B=qr(a)||(()=>new a);t({provide:a,useFactory:B,deps:Kr},a),t({provide:Rs,useValue:a,multi:!0},a),t({provide:fo,useValue:()=>z(a),multi:!0},a)}const A=d.providers;if(null!=A&&!y){const B=e;Ul(A,Y=>{t(Y,B)})}}}return a!==e&&void 0!==e.providers}function Ul(e,t){for(let r of e)Tr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ul(r,t):t(r)}const $l=ur({provide:String,useValue:ur});function jl(e){return null!==e&&"object"==typeof e&&$l in e}function Zo(e){return"function"==typeof e}const zl=new Ge(""),es={},Su={};let Hl;function ts(){return void 0===Hl&&(Hl=new Hs),Hl}class Lo{}class Ns extends Lo{get destroyed(){return this._destroyed}constructor(t,r,o,a){super(),this.parent=r,this.source=o,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ks(t,g=>this.processProvider(g)),this.records.set(ka,$a(void 0,this)),a.has("environment")&&this.records.set(Lo,$a(void 0,this));const d=this.records.get(zl);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Rs,Kr,bt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=oe(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of r)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),oe(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=sr(this),o=W(void 0);try{return t()}finally{sr(r),W(o)}}get(t,r=jt,o=bt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(mi))return t[mi](this);o=et(o);const d=sr(this),g=W(void 0);try{if(!(o&bt.SkipSelf)){let A=this.records.get(t);if(void 0===A){const B=function _a(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ge}(t)&&pr(t);A=B&&this.injectableDefInScope(B)?$a(Ui(t),es):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&bt.Self?ts():this.parent).get(t,r=o&bt.Optional&&r===jt?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Fn]=y[Fn]||[]).unshift(cr(t)),d)throw y;return function sn(e,t,r,o){const a=e[Fn];throw t[P]&&a.unshift(t[P]),e.message=function cn(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=cr(t);if(Array.isArray(t))a=t.map(cr).join(" -> ");else if("object"==typeof t){let d=[];for(let g in t)if(t.hasOwnProperty(g)){let y=t[g];d.push(g+":"+("string"==typeof y?JSON.stringify(y):cr(y)))}a=`{${d.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(j,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Fn]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{W(g),sr(d)}}resolveInjectorInitializers(){const t=oe(null),r=sr(this),o=W(void 0);try{const d=this.get(fo,Kr,bt.Self);for(const g of d)g()}finally{sr(r),W(o),oe(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(cr(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new nt(205,!1)}processProvider(t){let r=Zo(t=pe(t))?t:pe(t&&t.provide);const o=function Ua(e){return jl(e)?$a(void 0,e.useValue):$a(ma(e),es)}(t);if(!Zo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=$a(void 0,es,!0),a.factory=()=>wt(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=oe(null);try{return r.value===es&&(r.value=Su,r.value=r.factory()),"object"==typeof r.value&&r.value&&function va(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{oe(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=pe(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Ui(e){const t=pr(e),r=null!==t?t.factory:qr(e);if(null!==r)return r;if(e instanceof Ge)throw new nt(204,!1);if(e instanceof Function)return function ga(e){if(e.length>0)throw new nt(204,!1);const r=function ee(e){return e&&(e[M]||e[te])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new nt(204,!1)}function ma(e,t,r){let o;if(Zo(e)){const a=pe(e);return qr(a)||Ui(a)}if(jl(e))o=()=>pe(e.useValue);else if(function Os(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...wt(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>z(pe(e.useExisting));else{const a=pe(e&&(e.useClass||e.provide));if(!function zo(e){return!!e.deps}(e))return qr(a)||Ui(a);o=()=>new a(...wt(e.deps))}return o}function $a(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Ks(e,t){for(const r of e)Array.isArray(r)?Ks(r,t):r&&Tr(r)?Ks(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Ns&&e.assertNotDestroyed();const o=sr(e),a=W(void 0);try{return t()}finally{sr(o),W(a)}}function Gl(){return void 0!==le()||null!=function ot(){return Ie}()}function ya(e){if(!Gl())throw new nt(-203,!1)}const vi=0,Rn=1,Kn=2,Di=3,qi=4,Si=5,Qi=6,Ho=7,_i=8,Ki=9,ks=10,Br=11,Xs=12,vc=13,fl=14,Gi=15,Co=16,Cs=17,Go=18,qs=19,_c=20,Mi=21,Qs=22,cs=23,Gr=25,Ea=1,Wo=7,Ia=9,Xi=10;var Ru=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ru||{});function di(e){return Array.isArray(e)&&"object"==typeof e[Ea]}function Do(e){return Array.isArray(e)&&!0===e[Ea]}function Wl(e){return!!(4&e.flags)}function rs(e){return e.componentOffset>-1}function Ys(e){return!(1&~e.flags)}function ds(e){return!!e.template}function Kl(e){return!!(512&e[Kn])}class $i{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function yi(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function Zi(){return Js}function Js(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ga),Ha}function Ha(){const e=hs(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===ko)e.previous=t;else for(let o in t)r[o]=t[o];e.current=null,this.ngOnChanges(t)}}function Ga(e,t,r,o,a){const d=this.declaredInputs[o],g=hs(e)||function Ta(e,t){return e[Fs]=t}(e,{previous:ko,current:null}),y=g.current||(g.current={}),A=g.previous,B=A[d];y[d]=new $i(B&&B.currentValue,r,A===ko),yi(e,t,a,r)}Zi.ngInherit=!0;const Fs="__ngSimpleChanges__";function hs(e){return e[Fs]||null}const Ds=function(e,t,r){},ng="svg";let Pu=!1;function Pi(e){for(;Array.isArray(e);)e=e[vi];return e}function Ka(e,t){return Pi(t[e])}function is(e,t){return Pi(t[e.index])}function Ql(e,t){return e.data[t]}function fs(e,t){return e[t]}function Ro(e,t){const r=t[e];return di(r)?r:r[vi]}function Ic(e){return!(128&~e[Kn])}function Ts(e,t){return null==t?null:e[t]}function Cc(e){e[Cs]=0}function Sd(e){1024&e[Kn]||(e[Kn]|=1024,Ic(e)&&Ls(e))}function Yl(e){var t;return!!(9216&e[Kn]||null!==(t=e[cs])&&void 0!==t&&t.dirty)}function ml(e){var t;if(null===(t=e[ks].changeDetectionScheduler)||void 0===t||t.notify(1),Yl(e))Ls(e);else if(64&e[Kn])if(function ba(){return Pu}())e[Kn]|=1024,Ls(e);else{var r;null===(r=e[ks].changeDetectionScheduler)||void 0===r||r.notify()}}function Ls(e){var t;null===(t=e[ks].changeDetectionScheduler)||void 0===t||t.notify();let r=Zs(e);for(;null!==r&&!(8192&r[Kn])&&(r[Kn]|=8192,Ic(r));)r=Zs(r)}function Xa(e,t){if(!(256&~e[Kn]))throw new nt(911,!1);null===e[Mi]&&(e[Mi]=[]),e[Mi].push(t)}function Zs(e){const t=e[Di];return Do(t)?t[Di]:t}const gr={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function wa(){return gr.bindingsEnabled}function Zl(){return null!==gr.skipHydrationRootTNode}function an(){return gr.lFrame.lView}function Ei(){return gr.lFrame.tView}function Md(e){return gr.lFrame.contextLView=e,e[_i]}function bc(e){return gr.lFrame.contextLView=null,e}function Vi(){let e=Qh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Qh(){return gr.lFrame.currentTNode}function na(e,t){const r=gr.lFrame;r.currentTNode=e,r.isParent=t}function Ou(){return gr.lFrame.isParent}function Nu(){gr.lFrame.isParent=!1}function go(){const e=gr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function bs(){return gr.lFrame.bindingIndex++}function oa(e){const t=gr.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function xd(e,t){const r=gr.lFrame;r.bindingIndex=r.bindingRootIndex=e,Od(t)}function Od(e){gr.lFrame.currentDirectiveIndex=e}function Nd(){return gr.lFrame.currentQueryIndex}function Rc(e){gr.lFrame.currentQueryIndex=e}function Mc(e){const t=e[Rn];return 2===t.type?t.declTNode:1===t.type?e[Si]:null}function Jh(e,t,r){if(r&bt.SkipSelf){let a=t,d=e;for(;!(a=a.parent,null!==a||r&bt.Host||(a=Mc(d),null===a||(d=d[fl],10&a.type))););if(null===a)return!1;t=a,e=d}const o=gr.lFrame=Fu();return o.currentTNode=t,o.lView=e,!0}function Sa(e){const t=Fu(),r=e[Rn];gr.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Fu(){const e=gr.lFrame,t=null===e?null:e.child;return null===t?Zh(e):t}function Zh(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function kd(){const e=gr.lFrame;return gr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Pc=kd;function Lu(){const e=kd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mo(){return gr.lFrame.selectedIndex}function Ra(e){gr.lFrame.selectedIndex=e}function Fi(){const e=gr.lFrame;return Ql(e.tView,e.selectedIndex)}function ef(){gr.lFrame.currentNamespace=ng}let Bu=!0;function Uu(){return Bu}function Vs(e){Bu=e}function $u(e,t){for(let B=t.directiveStart,Y=t.directiveEnd;B=o)break}else t[A]<0&&(e[Cs]+=65536),(y>14>16&&(3&e[Kn])===t&&(e[Kn]+=16384,El(y,d)):El(y,d)}const Il=-1;class Al{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Cl(e){return e!==Il}function Ma(e){return 32767&e}function Dl(e,t){let r=function Fc(e){return e>>16}(e),o=t;for(;r>0;)o=o[fl],r--;return o}let zu=!0;function eu(e){const t=zu;return zu=e,t}const lf=255,Bd=5;let Lc=0;const ws={};function Hu(e,t){const r=Ud(e,t);if(-1!==r)return r;const o=t[Rn];o.firstCreatePass&&(e.injectorIndex=t.length,Mo(o.data,e),Mo(t,null),Mo(o.blueprint,null));const a=Qa(e,t),d=e.injectorIndex;if(Cl(a)){const g=Ma(a),y=Dl(a,t),A=y[Rn].data;for(let B=0;B<8;B++)t[d+B]=y[g+B]|A[g+B]}return t[d+8]=a,d}function Mo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ud(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Qa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,o=null,a=t;for(;null!==a;){if(o=Ja(a),null===o)return Il;if(r++,a=a[fl],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return Il}function Tl(e,t,r){!function hv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(Lr)&&(o=r[Lr]),null==o&&(o=r[Lr]=Lc++);const a=o&lf;t.data[e+(a>>Bd)]|=1<=0?t&lf:df:t}(r);if("function"==typeof d){if(!Jh(t,e,o))return o&bt.Host?tu(a,0,o):$d(t,r,o,a);try{let g;if(g=d(o),null!=g||o&bt.Optional)return g;oi()}finally{Pc()}}else if("number"==typeof d){let g=null,y=Ud(e,t),A=Il,B=o&bt.Host?t[Gi][Si]:null;for((-1===y||o&bt.SkipSelf)&&(A=-1===y?Qa(e,t):t[y+8],A!==Il&&nu(o,!1)?(g=t[Rn],y=Ma(A),t=Dl(A,t)):y=-1);-1!==y;){const Y=t[Rn];if(Uc(d,y,Y.data)){const de=lg(y,t,r,g,o,B);if(de!==ws)return de}A=t[y+8],A!==Il&&nu(o,t[Rn].data[y+8]===B)&&Uc(d,y,t)?(g=Y,y=Ma(A),t=Dl(A,t)):y=-1}}return a}function lg(e,t,r,o,a,d){const g=t[Rn],y=g.data[e+8],Y=jd(y,g,r,null==o?rs(y)&&zu:o!=g&&!!(3&y.type),a&bt.Host&&d===y);return null!==Y?bl(t,g,Y,y):ws}function jd(e,t,r,o,a){const d=e.providerIndexes,g=t.data,y=1048575&d,A=e.directiveStart,Y=d>>20,We=a?y+Y:e.directiveEnd;for(let ft=o?y:y+Y;ft=A&&Ft.type===r)return ft}if(a){const ft=g[A];if(ft&&ds(ft)&&ft.type===r)return A}return null}function bl(e,t,r,o){let a=e[r];const d=t.data;if(function sf(e){return e instanceof Al}(a)){const g=a;g.resolving&&function Ci(e,t){throw t&&t.join(" > "),new nt(-200,e)}(function Hn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Wn(e)}(d[r]));const y=eu(g.canSeeViewProviders);g.resolving=!0;const B=g.injectImpl?W(g.injectImpl):null;Jh(e,o,bt.Default);try{a=e[r]=g.factory(void 0,d,e,o),t.firstCreatePass&&r>=o.directiveStart&&function ag(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:d}=t.type.prototype;if(o){var g,y;const de=Js(t);(null!==(g=r.preOrderHooks)&&void 0!==g?g:r.preOrderHooks=[]).push(e,de),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,de)}var A,B,Y;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),d&&((null!==(B=r.preOrderHooks)&&void 0!==B?B:r.preOrderHooks=[]).push(e,d),(null!==(Y=r.preOrderCheckHooks)&&void 0!==Y?Y:r.preOrderCheckHooks=[]).push(e,d))}(r,d[r],t)}finally{null!==B&&W(B),eu(y),g.resolving=!1,Pc()}}return a}function Uc(e,t,r){return!!(r[t+(e>>Bd)]&1<{const t=e.prototype.constructor,r=t[ei]||Gu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const d=a[ei]||Gu(a);if(d&&d!==r)return d;a=Object.getPrototypeOf(a)}return d=>new d})}function Gu(e){return it(e)?()=>{const t=Gu(pe(e));return t&&t()}:qr(e)}function Ja(e){const t=e[Rn],r=t.type;return 2===r?t.declTNode:1===r?e[Si]:null}function $c(e){return function Vc(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const o=r.length;let a=0;for(;a{var e;class t{static create(o,a){if(Array.isArray(o))return dg({name:""},a,o,"");{var d;const g=null!==(d=o.name)&&void 0!==d?d:"";return dg({name:g},o.parent,o.providers,g)}}}return(e=t).THROW_IF_NOT_FOUND=jt,e.NULL=new Hs,e.\u0275prov=fr({token:e,providedIn:"any",factory:()=>z(ka)}),e.__NG_ELEMENT_ID__=-1,t})();function zc(e){return e.ngOriginalError}class Za{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&zc(t);for(;r&&zc(r);)r=zc(r);return r||null}}const Gd=new Ge("",{providedIn:"root",factory:()=>Ne(Za).handleError.bind(void 0)});let Xu=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=hg,e.__NG_ENV_ID__=r=>r,t})();class If extends Xu{constructor(t){super(),this._lView=t}onDestroy(t){return Xa(this._lView,t),()=>function Jl(e,t){if(null===e[Mi])return;const r=e[Mi].indexOf(t);-1!==r&&e[Mi].splice(r,1)}(this._lView,t)}}function hg(){return new If(an())}function Qu(){return la(Vi(),an())}function la(e,t){return new Yu(is(e,t))}let Yu=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Qu,t})();function iu(e){return e instanceof Yu?e.nativeElement:e}function Af(e){return t=>{setTimeout(e,void 0,t)}}const Bs=class pv extends Zn.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Gl()&&(this.destroyRef=null!==(r=Ne(Xu,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=oe(null);try{super.next(t)}finally{oe(r)}}subscribe(t,r,o){let a=t,d=r||(()=>null),g=o;if(t&&"object"==typeof t){var y,A,B;const de=t;a=null===(y=de.next)||void 0===y?void 0:y.bind(de),d=null===(A=de.error)||void 0===A?void 0:A.bind(de),g=null===(B=de.complete)||void 0===B?void 0:B.bind(de)}this.__isAsync&&(d=Af(d),a&&(a=Af(a)),g&&(g=Af(g)));const Y=super.subscribe({next:a,error:d,complete:g});return t instanceof nr.yU&&t.add(Y),Y}};function Cf(){return this._results[Symbol.iterator]()}class Ju{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Bs}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const r=Ju.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Cf)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const o=function br(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function jr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;obg}),bg="ng",Ev=new Ge(""),eh=new Ge("",{providedIn:"platform",factory:()=>"unknown"}),Ay=new Ge("",{providedIn:"root",factory:()=>{var e;return(null===(e=function lu(){if(void 0!==Dg)return Dg;if(typeof document<"u")return document;throw new nt(210,!1)}().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Dv=()=>null;function oh(e,t,r=!1){return Dv(e,t,r)}const Ng=new Ge("",{providedIn:"root",factory:()=>!1});let Lf,uh;function Qc(e){var t;return(null===(t=function kg(){if(void 0===Lf&&(Lf=null,Jn.trustedTypes))try{Lf=Jn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Lf}())||void 0===t?void 0:t.createHTML(e))||e}function Fg(e){var t;return(null===(t=function Vf(){if(void 0===uh&&(uh=null,Jn.trustedTypes))try{uh=Jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return uh}())||void 0===t?void 0:t.createScriptURL(e))||e}class du{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ir})`}}class Uf extends du{getTypeName(){return"HTML"}}class Ii extends du{getTypeName(){return"Style"}}class Mv extends du{getTypeName(){return"Script"}}class Pv extends du{getTypeName(){return"URL"}}class ch extends du{getTypeName(){return"ResourceURL"}}function Rl(e){return e instanceof du?e.changingThisBreaksApplicationSecurity:e}function uo(e,t){const r=function vo(e){return e instanceof du&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${ir})`)}return r===t}function nl(e){return new Uf(e)}function Py(e){return new Ii(e)}function sI(e){return new Mv(e)}function xv(e){return new Pv(e)}function aI(e){return new ch(e)}class xy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const r=(new window.DOMParser).parseFromString(Qc(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}}class Vg{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=Qc(t),r}}const lI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bi(e){return(e=String(e)).match(lI)?e:"unsafe:"+e}function hu(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function dh(...e){const t={};for(const r of e)for(const o in r)r.hasOwnProperty(o)&&(t[o]=!0);return t}const ro=hu("area,br,col,hr,img,wbr"),Bg=hu("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ny=hu("rp,rt"),Ov=dh(ro,dh(Bg,hu("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")),dh(Ny,hu("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")),dh(Ny,Bg)),Nv=hu("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fy=dh(Nv,hu("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"),hu("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")),uI=hu("script,style,template");class kv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,o=!0,a=[];for(;r;)if(r.nodeType===Node.ELEMENT_NODE?o=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,o&&r.firstChild)a.push(r),r=ic(r);else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let d=Ly(r);if(d){r=d;break}r=a.pop()}return this.buf.join("")}startElement(t){const r=fu(t).toLowerCase();if(!Ov.hasOwnProperty(r))return this.sanitizedSomething=!0,!uI.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const o=t.attributes;for(let a=0;a"),!0}endElement(t){const r=fu(t).toLowerCase();Ov.hasOwnProperty(r)&&!ro.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Fv(t))}}function Ly(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Vy(t);return t}function ic(e){const t=e.firstChild;if(t&&function hh(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Vy(t);return t}function fu(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Vy(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Yc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ug=/([^\#-~ |!])/g;function Fv(e){return e.replace(/&/g,"&").replace(Yc,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ug,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let $f;function $g(e,t){let r=null;try{$f=$f||function Lg(e){const t=new Vg(e);return function Oy(){try{return!!(new window.DOMParser).parseFromString(Qc(""),"text/html")}catch{return!1}}()?new xy(t):t}(e);let o=t?String(t):"";r=$f.getInertBodyElement(o);let a=5,d=o;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,o=d,d=r.innerHTML,r=$f.getInertBodyElement(o)}while(o!==d);return Qc((new kv).sanitizeChildren(jf(r)||r))}finally{if(r){const o=jf(r)||r;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function jf(e){return"content"in e&&function zf(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var oc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(oc||{});function fh(e){const t=Pa();return t?t.sanitize(oc.STYLE,e)||"":uo(e,"Style")?Rl(e):Wn(e)}function Jc(e){const t=Pa();return t?t.sanitize(oc.URL,e)||"":uo(e,"URL")?Rl(e):Bi(Wn(e))}function jg(e){const t=Pa();if(t)return Fg(t.sanitize(oc.RESOURCE_URL,e)||"");if(uo(e,"ResourceURL"))return Fg(Rl(e));throw new nt(904,!1)}function Hf(e,t,r){return function Wg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?jg:Jc}(t,r)(e)}function Pa(){const e=an();return e&&e[ks].sanitizer}const Vv=/^>|^->||--!>|)/g,Kg="\u200b$1\u200b";function ca(e){return e instanceof Function?e():e}var Yg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Yg||{});let zv;function Jg(e,t){return zv(e,t)}function vh(e,t,r,o,a){if(null!=o){let d,g=!1;Do(o)?d=o:di(o)&&(g=!0,o=o[vi]);const y=Pi(o);0===e&&null!==r?null==a?od(t,r,y):id(t,r,y,a||null,!0):1===e&&null!==r?id(t,r,y,a||null,!0):2===e?function Jf(e,t,r){const o=Yf(e,t);o&&function vI(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,g):3===e&&t.destroyNode(y),null!=d&&function yI(e,t,r,o,a){const d=r[Wo];d!==Pi(r)&&vh(t,e,o,d,a);for(let y=Xi;yt.replace(Bv,Kg))}(t))}function xl(e,t,r){return e.createElement(t,r)}function Hv(e,t){var r;null===(r=t[ks].changeDetectionScheduler)||void 0===r||r.notify(1),xa(e,t,t[Br],2,null,null)}function Gv(e,t){const r=e[Ia],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=Xi)return;const r=Xi+t,o=e[r];if(o){const a=o[Co];null!==a&&a!==e&&Gv(a,o),t>0&&(e[r-1][qi]=o[qi]);const d=ki(e,Xi+t);!function qy(e,t){Hv(e,t),t[vi]=null,t[Si]=null}(o[Rn],o);const g=d[Go];null!==g&&g.detachView(d[Rn]),o[Di]=null,o[qi]=null,o[Kn]&=-129}return o}function Zg(e,t){if(!(256&t[Kn])){const r=t[Br];r.destroyNode&&xa(e,t,r,3,null,null),function pu(e){let t=e[Xs];if(!t)return em(e[Rn],e);for(;t;){let r=null;if(di(t))r=t[Xs];else{const o=t[Xi];o&&(r=o)}if(!r){for(;t&&!t[qi]&&t!==e;)di(t)&&em(t[Rn],t),t=t[Di];null===t&&(t=e),di(t)&&em(t[Rn],t),r=t&&t[qi]}t=r}}(t)}}function em(e,t){if(256&t[Kn])return;const r=oe(null);try{t[Kn]&=-129,t[Kn]|=256,t[cs]&&mt(t[cs]),function Yy(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let o=0;o=0?o[g]():o[-g].unsubscribe(),d+=2}else r[d].call(o[r[d+1]]);null!==o&&(t[Ho]=null);const a=t[Mi];if(null!==a){t[Mi]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[o.directiveStart+a];if(d===ls.None||d===ls.Emulated)return null}return is(o,r)}}(e,t.parent,r)}function id(e,t,r,o,a){e.insertBefore(t,r,o,a)}function od(e,t,r){e.appendChild(t,r)}function Qf(e,t,r,o,a){null!==o?id(e,t,r,o,a):od(e,t,r)}function Yf(e,t){return e.parentNode(t)}function Kv(e,t,r){return e0(e,t,r)}let qv,e0=function Xv(e,t,r){return 40&e.type?is(e,r):null};function tm(e,t,r,o){const a=Wv(e,o,t),d=t[Br],y=Kv(o.parent||t[Si],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;AGr&&im(e,t,Gr,!1),Ds(g?2:0,a),r(o,a)}finally{Ra(d),Ds(g?3:1,a)}}function Jv(e,t,r){if(Wl(t)){const o=oe(null);try{const d=t.directiveEnd;for(let g=t.directiveStart;gnull;function e_(e,t,r,o,a){for(let g in t){var d;if(!t.hasOwnProperty(g))continue;const y=t[g];if(void 0===y)continue;null!==(d=o)&&void 0!==d||(o={});let A,B=us.None;Array.isArray(y)?(A=y[0],B=y[1]):A=y;let Y=g;if(null!==a){if(!a.hasOwnProperty(g))continue;Y=a[g]}0===e?g0(o,r,Y,A,B):g0(o,r,Y,A)}return o}function g0(e,t,r,o,a){let d;e.hasOwnProperty(r)?(d=e[r]).push(t,o):d=e[r]=[t,o],void 0!==a&&d.push(a)}function Us(e,t,r,o,a,d,g,y){const A=is(t,r);let Y,B=t.inputs;!y&&null!=B&&(Y=B[o])?(i_(e,r,Y,o,a),rs(t)&&function wI(e,t){const r=Ro(t,e);16&r[Kn]||(r[Kn]|=64)}(r,t.index)):3&t.type&&(o=function bI(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),a=null!=g?g(a,t.value||"",o):a,d.setProperty(A,o,a))}function t_(e,t,r,o){if(wa()){const a=null===o?null:{"":-1},d=function OI(e,t){const r=e.directiveRegistry;let o=null,a=null;if(r)for(let g=0;g0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(g)!=y&&g.push(y),g.push(r,o,d)}}(e,t,o,ep(e,r,a.hostVars,ti),a)}function Ol(e,t,r,o,a,d){const g=is(e,t);!function r_(e,t,r,o,a,d,g){if(null==d)e.removeAttribute(t,a,r);else{const y=null==g?Wn(d):g(d,o||"",a);e.setAttribute(t,a,y,r)}}(t[Br],g,d,e.value,r,o,a)}function VI(e,t,r,o,a,d){const g=d[t];if(null!==g)for(let y=0;y0&&(r[a-1][qi]=t),o{Ls(e.lView)},consumerOnSignalRead(){this.lView[cs]=this}},w0=100;function hm(e,t=!0,r=0){const o=e[ks],a=o.rendererFactory;var g;null===(g=a.begin)||void 0===g||g.call(a);try{!function WI(e,t){s_(e,t);let r=0;for(;Yl(e);){if(r===w0)throw new nt(103,!1);r++,s_(e,1)}}(e,r)}catch(B){throw t&&um(e,B),B}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function KI(e,t,r,o){var a;const d=t[Kn];if(!(256&~d))return;null===(a=t[ks].inlineEffectRunner)||void 0===a||a.flush(),Sa(t);let y=null,A=null;(function XI(e){return 2!==e.type})(e)&&(A=function jI(e){var t;return null!==(t=e[cs])&&void 0!==t?t:function zI(e){var t;const r=null!==(t=b0.pop())&&void 0!==t?t:Object.create(GI);return r.lView=e,r}(e)}(t),y=yt(A));try{Cc(t),function wc(e){return gr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&c0(e,t,r,2,o);const B=!(3&~d);if(B){const We=e.preOrderCheckHooks;null!==We&&xc(t,We,null)}else{const We=e.preOrderHooks;null!==We&&sa(t,We,0,null),aa(t,0)}if(function qI(e){for(let t=vg(e);null!==t;t=bf(t)){if(!(t[Kn]&Ru.HasTransplantedViews))continue;const r=t[Ia];for(let o=0;o-1&&(qf(t,o),ki(r,o))}this._attachedToViewContainer=!1}Zg(this._lView[Rn],this._lView)}onDestroy(t){Xa(this._lView,t)}markForCheck(){op(this._cdRefInjectingView||this._lView)}detach(){this._lView[Kn]&=-129}reattach(){ml(this._lView),this._lView[Kn]|=128}detectChanges(){this._lView[Kn]|=1024,hm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Hv(this._lView[Rn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new nt(902,!1);this._appRef=t,ml(this._lView)}}let ap=(()=>{class t{}return t.__NG_ELEMENT_ID__=JI,t})();const P0=ap,YI=class extends P0{constructor(t,r,o){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=o}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,o){const a=np(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new sp(a)}};function JI(){return fm(Vi(),an())}function fm(e,t){return 4&e.type?new YI(t,e,la(e,t)):null}let gm=()=>null;function _o(e,t){return gm(e,t)}class mm{}class Ch{}class l_{}class lp{resolveComponentFactory(t){throw function Dh(e){const t=Error(`No component factory found for ${cr(e)}.`);return t.ngComponent=e,t}(t)}}let dc=(()=>{class t{}return t.NULL=new lp,t})();class up{}let vm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function _m(){const e=an(),r=Ro(Vi().index,e);return(di(r)?r:e)[Br]}(),t})(),ym=(()=>{var e;class t{}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>null}),t})();const cp={},c_=new Set;function Oa(e){var t,r;c_.has(e)||(c_.add(e),null===(t=performance)||void 0===t||null===(r=t.mark)||void 0===r||r.call(t,"mark_feature_usage",{detail:{feature:e}}))}function Em(...e){}class bo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Bs(!1),this.onMicrotaskEmpty=new Bs(!1),this.onStable=new Bs(!1),this.onError=new Bs(!1),typeof Zone>"u")throw new nt(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&r,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function Im(){const e="function"==typeof Jn.requestAnimationFrame;let t=Jn[e?"requestAnimationFrame":"setTimeout"],r=Jn[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function os(e){const t=()=>{!function Cm(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Jn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ko(e),e.isCheckStableRunning=!0,Th(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ko(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,d,g,y)=>{if(function L0(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(y))return r.invokeTask(a,d,g,y);try{return bh(e),r.invokeTask(a,d,g,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),Dm(e)}},onInvoke:(r,o,a,d,g,y,A)=>{try{return bh(e),r.invoke(a,d,g,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Dm(e)}},onHasTask:(r,o,a,d)=>{r.hasTask(a,d),o===a&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,Ko(e),Th(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(r,o,a,d)=>(r.handleError(a,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!bo.isInAngularZone())throw new nt(909,!1)}static assertNotInAngularZone(){if(bo.isInAngularZone())throw new nt(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const d=this._inner,g=d.scheduleEventTask("NgZoneEvent: "+a,t,Am,Em,Em);try{return d.runTask(g,r,o)}finally{d.cancelTask(g)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Am={};function Th(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ko(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Dm(e){e._nesting--,Th(e)}class Tm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bs,this.onMicrotaskEmpty=new Bs,this.onStable=new Bs,this.onError=new Bs}run(t,r,o){return t.apply(r,o)}runGuarded(t,r,o){return t.apply(r,o)}runOutsideAngular(t){return t()}runTask(t,r,o,a){return t.apply(r,o)}}var vu=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(vu||{});const bm={destroy(){}};function d_(e,t){var r,o,a;!t&&ya();const d=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ne(ps);if(!function rl(e){return"browser"===(null!=e?e:Ne(ps)).get(eh)}(d))return bm;Oa("NgAfterNextRender");const g=d.get(ud),y=null!==(o=g.handler)&&void 0!==o?o:g.handler=new wm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:vu.MixedReadWrite,B=()=>{y.unregister(de),Y()},Y=d.get(Xu).onDestroy(B),de=lo(d,()=>new dp(A,()=>{B(),e()}));return y.register(de),{destroy:B}}class dp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Ne(bo),this.errorHandler=Ne(Za,{optional:!0}),null===(o=Ne(mm,{optional:!0}))||void 0===o||o.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(r){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(r)}}}class wm{constructor(){this.executingCallbacks=!1,this.buckets={[vu.EarlyRead]:new Set,[vu.Write]:new Set,[vu.MixedReadWrite]:new Set,[vu.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const r of t)r.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let ud=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var o;this.executeInternalCallbacks(),null===(o=this.handler)||void 0===o||o.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of o)a()}ngOnDestroy(){var o;null===(o=this.handler)||void 0===o||o.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>new e}),t})();function il(e){return!!bi(e)}function yu(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,d=0;if(null!==t)for(let g=0;g0&&o0(e,r,d.join(" "))}}(Zt,Bl,Pn,o),void 0!==r&&function v_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=__,t})();function __(){return _p(Vi(),an())}const y_=pd,E_=class extends y_{constructor(t,r,o){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=o}get element(){return la(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Qa(this._hostTNode,this._hostLView);if(Cl(t)){const r=Dl(t,this._hostLView),o=Ma(t);return new eo(r[Rn].data[o+8],r)}return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=Mh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-Xi}createEmbeddedView(t,r,o){let a,d;"number"==typeof o?a=o:null!=o&&(a=o.index,d=o.injector);const g=_o(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},d,g);return this.insertImpl(y,a,Ih(this._hostTNode,g)),y}createComponent(t,r,o,a,d){var g,y,A;const B=t&&!function Qt(e){return"function"==typeof e}(t);let Y;if(B)Y=r;else{const Pn=r||{};Y=Pn.index,o=Pn.injector,a=Pn.projectableNodes,d=Pn.environmentInjector||Pn.ngModuleRef}const de=B?t:new Rh(Rr(t)),We=o||this.parentInjector;if(!d&&null==de.ngModule){const un=(B?We:this.parentInjector).get(Lo,null);un&&(d=un)}const ft=Rr(null!==(g=de.componentType)&&void 0!==g?g:{}),Ft=_o(this._lContainer,null!==(y=null==ft?void 0:ft.id)&&void 0!==y?y:null),Zt=null!==(A=null==Ft?void 0:Ft.firstChild)&&void 0!==A?A:null,bn=de.create(We,a,Zt,d);return this.insertImpl(bn.hostView,Y,Ih(this._hostTNode,Ft)),bn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function Ac(e){return Do(e[Di])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Di],B=new E_(A,A[Si],A[Di]);B.detach(B.indexOf(t))}}const d=this._adjustIndex(r),g=this._lContainer;return rp(g,a,d,o),t.attachToViewContainerRef(),Ni(vp(g),d,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=Mh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);o&&(ki(vp(this._lContainer),r),Zg(o[Rn],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=ki(vp(this._lContainer),r)?new sp(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function Mh(e){return e[8]}function vp(e){return e[8]||(e[8]=[])}function _p(e,t){let r;const o=t[e.index];return Do(o)?r=o:(r=E0(o,t,null,e),t[e.index]=r,am(t,r)),Iu(r,t,e,o),new E_(r,e,t)}let Iu=function Pm(e,t,r,o){if(e[Wo])return;let a;a=8&r.type?Pi(o):function Ph(e,t){const r=e[Br],o=r.createComment(""),a=is(t,e);return id(r,Yf(r,a),o,function Zy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[Wo]=a},xh=()=>!1;class Oh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Oh(this.queryList)}setDirty(){this.queryList.setDirty()}}class yp{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const o=null!==t.contentQueries?t.contentQueries[0]:r.length,a=[];for(let d=0;dt.trim())}(t):t}}class Nm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(g[y/2]);else{const B=d[y+1],Y=t[-A];for(let de=Xi;de(Qe(t),t.value);return r[ue]=t,r}(e),o=r[ue];return null!=t&&t.equal&&(o.equal=t.equal),r.set=a=>ve(o,a),r.update=a=>function Le(e,t){Tt()||dt(),ve(e,t(e.value))}(o,a),r.asReadonly=kl.bind(r),r}function kl(){const e=this[ue];if(void 0===e.readonlyFn){const t=()=>this();t[ue]=e,e.readonlyFn=t}return e.readonlyFn}function Vm(e){return Lm(e)&&"function"==typeof e.set}function wp(e){let t=function Cu(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),r=!0;const o=[e];for(;t;){let a;if(ds(e))a=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new nt(903,!1);a=t.\u0275dir}if(a){if(r){o.push(a);const g=e;g.inputs=Uh(e.inputs),g.inputTransforms=Uh(e.inputTransforms),g.declaredInputs=Uh(e.declaredInputs),g.outputs=Uh(e.outputs);const y=a.hostBindings;y&&L_(e,y);const A=a.viewQuery,B=a.contentQueries;if(A&&Sp(e,A),B&&$s(e,B),k_(e,a),Pr(e.outputs,a.outputs),ds(a)&&a.data.animation){const Y=e.data;Y.animation=(Y.animation||[]).concat(a.data.animation)}}const d=a.features;if(d)for(let g=0;g=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Ao(a.hostAttrs,r=Ao(r,a.hostAttrs))}}(o)}function k_(e,t){for(const o in t.inputs){if(!t.inputs.hasOwnProperty(o)||e.inputs.hasOwnProperty(o))continue;const a=t.inputs[o];if(void 0!==a&&(e.inputs[o]=a,e.declaredInputs[o]=t.declaredInputs[o],null!==t.inputTransforms)){var r;const d=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(d))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[d]=t.inputTransforms[d]}}}function Uh(e){return e===ko?{}:e===Kr?[]:e}function Sp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function $s(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,d)=>{t(o,a,d),r(o,a,d)}:t}function L_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function Wi(e){const t=e.inputConfig,r={};for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];Array.isArray(a)&&a[3]&&(r[o]=a[3])}e.inputTransforms=r}class so{}class xi{}function ss(e,t){return new Du(e,null!=t?t:null,[])}class Du extends so{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new f_(this);const a=bi(t);this._bootstrapComponents=ca(a.bootstrap),this._r3Injector=Ef(t,r,[{provide:so,useValue:this},{provide:dc,useValue:this.componentFactoryResolver},...o],cr(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class js extends xi{constructor(t){super(),this.moduleType=t}create(t){return new Du(this.moduleType,t,[])}}class Mp extends so{constructor(t){super(),this.componentFactoryResolver=new f_(this),this.instance=null;const r=new Ns([...t.providers,{provide:so,useValue:this},{provide:dc,useValue:this.componentFactoryResolver}],t.parent||ts(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Q0(e,t,r=null){return new Mp({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let Pp=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new er.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function U_(e){return!!Y0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Y0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Tu(e,t,r){return e[t]=r}function Po(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function $h(e,t,r,o){const a=Po(e,t,r);return Po(e,t+1,o)||a}function xp(e,t,r,o,a,d,g,y){const A=an(),B=Ei(),Y=e+Gr,de=B.firstCreatePass?function gb(e,t,r,o,a,d,g,y,A){const B=t.consts,Y=uc(t,e,4,g||null,Ts(B,y));t_(t,r,Y,Ts(B,A)),$u(t,Y);const de=Y.tView=tp(2,Y,o,a,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,B,null);return null!==t.queries&&(t.queries.template(t,Y),de.queries=t.queries.embeddedTView(Y)),Y}(Y,B,A,t,r,o,a,d,g):B.data[Y];na(de,!1);const We=uA(B,A,de,e);Uu()&&tm(B,A,We,de),to(We,A);const ft=E0(We,A,We,de);return A[Y]=ft,am(A,ft),function I_(e,t,r){return xh(e,t,r)}(ft,de,A),Ys(de)&&yh(B,A,de),null!=g&&ad(A,de,y),xp}let uA=function cA(e,t,r,o){return Vs(!0),t[Br].createComment("")};function aE(e,t,r,o){const a=an();return Po(a,bs(),t)&&(Ei(),Ol(Fi(),a,e,t,r,o)),aE}function Up(e,t,r,o){return Po(e,bs(),r)?t+Wn(r)+o:ti}function $p(e,t,r,o,a,d){const y=$h(e,function ia(){return gr.lFrame.bindingIndex}(),r,a);return oa(2),y?t+Wn(r)+o+Wn(a)+d:ti}function K_(e,t){return e<<17|t<<2}function Ad(e){return e>>17&32767}function lE(e){return 2|e}function zh(e){return(131068&e)>>2}function uE(e,t){return-131069&e|t<<2}function cE(e){return 1|e}function $A(e,t,r,o){const a=e[r+1],d=null===t;let g=o?Ad(a):zh(a),y=!1;for(;0!==g&&(!1===y||d);){const B=e[g+1];tw(e[g],t)&&(y=!0,e[g+1]=o?cE(B):lE(B)),g=o?Ad(B):zh(B)}y&&(e[r+1]=o?lE(a):cE(a))}function tw(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Io(e,t)>=0}function dE(e,t,r){const o=an();return Po(o,bs(),t)&&Us(Ei(),Fi(),o,e,t,o[Br],r,!1),dE}function hE(e,t,r,o,a){const g=a?"class":"style";i_(e,r,t.inputs[g],g,o)}function fE(e,t,r){return Ll(e,t,r,!1),fE}function pE(e,t){return Ll(e,t,null,!0),pE}function Ll(e,t,r,o){const a=an(),d=Ei(),g=oa(2);d.firstUpdatePass&&function qA(e,t,r,o){const a=e.data;if(null===a[r+1]){const d=a[mo()],g=function XA(e,t){return t>=e.expandoStartIndex}(e,r);(function ZA(e,t){return!!(e.flags&(t?8:16))})(d,o)&&null===t&&!g&&(t=!1),t=function cw(e,t,r,o){const a=function ku(e){const t=gr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let d=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=Ym(r=gE(null,e,t,r,o),t.attrs,o),d=null);else{const g=t.directiveStylingLast;if(-1===g||e[g]!==a)if(r=gE(a,e,t,r,o),null===d){let A=function dw(e,t,r){const o=r?t.classBindings:t.styleBindings;if(0!==zh(o))return e[Ad(o)]}(e,t,o);void 0!==A&&Array.isArray(A)&&(A=gE(null,e,t,A[1],o),A=Ym(A,t.attrs,o),function hw(e,t,r,o){e[Ad(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else d=function fw(e,t,r){let o;const a=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(B=!0)):Y=r,a)if(0!==A){const We=Ad(e[y+1]);e[o+1]=K_(We,y),0!==We&&(e[We+1]=uE(e[We+1],o)),e[y+1]=function Yb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=K_(y,0),0!==y&&(e[y+1]=uE(e[y+1],o)),y=o;else e[o+1]=K_(A,0),0===y?y=o:e[A+1]=uE(e[A+1],o),A=o;B&&(e[o+1]=lE(e[o+1])),$A(e,Y,o,!0),$A(e,Y,o,!1),function ew(e,t,r,o,a){const d=a?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&Io(d,t)>=0&&(r[o+1]=cE(r[o+1]))}(t,Y,e,o,d),g=K_(y,A),d?t.classBindings=g:t.styleBindings=g}(a,d,t,r,g,o)}}(d,e,g,o),t!==ti&&Po(a,g,t)&&function YA(e,t,r,o,a,d,g,y){if(!(3&t.type))return;const A=e.data,B=A[y+1],Y=function Jb(e){return!(1&~e)}(B)?JA(A,t,r,a,zh(B),g):void 0;X_(Y)||(X_(d)||function Qb(e){return!(2&~e)}(B)&&(d=JA(A,null,r,a,y,g)),function EI(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let d=-1===o.indexOf("-")?void 0:Yg.DashCase;null==a?e.removeStyle(r,o,d):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),d|=Yg.Important),e.setStyle(r,o,a,d))}}(o,g,Ka(mo(),r),a,d))}(d,d.data[mo()],a,a[Br],e,a[g+1]=function vw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=cr(Rl(e)))),e}(t,r),o,g)}function gE(e,t,r,o,a){let d=null;const g=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],B=Array.isArray(A),Y=B?A[1]:A,de=null===Y;let We=r[a+1];We===ti&&(We=de?Kr:void 0);let ft=de?Bo(We,o):Y===o?We:void 0;if(B&&!X_(ft)&&(ft=Bo(A,o)),X_(ft)&&(y=ft,g))return y;const Ft=e[a+1];a=g?Ad(Ft):zh(Ft)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(y=Bo(A,o))}return y}function X_(e){return void 0!==e}class Sw{destroy(t){}updateValue(t,r){}swap(t,r){const o=Math.min(t,r),a=Math.max(t,r),d=this.detach(a);if(a-o>1){const g=this.detach(o);this.attach(o,d),this.attach(a,g)}else this.attach(o,d)}move(t,r){this.attach(r,this.detach(t))}}function mE(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function vE(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function eC(e,t,r,o,a){if(vE(e,t,o,r(o,a)))e.updateValue(o,a);else{const d=e.create(o,a);e.attach(o,d)}}function tC(e,t,r,o){const a=new Set;for(let d=t;d<=r;d++)a.add(o(d,e.at(d)));return a}class nC{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const r=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(t,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,r){if(this.kvMap.has(t)){let o=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const a=this._vMap;for(;a.has(o);)o=a.get(o);a.set(o,r)}else this.kvMap.set(t,r)}forEach(t){for(let[r,o]of this.kvMap)if(t(o,r),void 0!==this._vMap){const a=this._vMap;for(;a.has(o);)o=a.get(o),t(o,r)}}}function rC(e,t,r){Oa("NgControlFlow");const o=an(),a=bs(),d=_E(o,Gr+e);if(Po(o,a,t)){const y=oe(null);try{if(dm(d,0),-1!==t){const A=yE(o[Rn],Gr+t),B=_o(d,A.tView.ssrId);rp(d,np(o,A,r,{dehydratedView:B}),0,Ih(A,B))}}finally{oe(y)}}else{const y=o_(d,0);void 0!==y&&(y[_i]=r)}}class Mw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-Xi}}function iC(e,t){return t}class xw{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function oC(e,t,r,o,a,d,g,y,A,B,Y,de,We){Oa("NgControlFlow");const ft=void 0!==A,Ft=an(),Zt=y?g.bind(Ft[Gi][_i]):g,bn=new xw(ft,Zt);Ft[Gr+e]=bn,xp(e+1,t,r,o,a,d),ft&&xp(e+2,A,B,Y,de,We)}class Ow extends Sw{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Xi}at(t){return this.getLView(t)[_i].$implicit}attach(t,r){const o=r[Qi];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),rp(this.lContainer,r,t,Ih(this.templateTNode,o))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function Nw(e,t){return qf(e,t)}(this.lContainer,t)}create(t,r){const o=_o(this.lContainer,this.templateTNode.tView.ssrId);return np(this.hostLView,this.templateTNode,new Mw(this.lContainer,r,t),{dehydratedView:o})}destroy(t){Zg(t[Rn],t)}updateValue(t,r){this.getLView(t)[_i].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(We)})}(g,e,d.trackByFn),g.updateIndexes(),d.hasEmptyBlock){const y=bs(),A=0===g.length;if(Po(o,y,A)){const B=r+2,Y=_E(o,B);if(A){const de=yE(a,B),We=_o(Y,de.tView.ssrId);rp(Y,np(o,de,void 0,{dehydratedView:We}),0,Ih(de,We))}else dm(Y,0)}}}finally{oe(t)}}function _E(e,t){return e[t]}function yE(e,t){return Ql(e,t)}function q_(e,t,r,o){const a=an(),d=Ei(),g=Gr+e,y=a[Br],A=d.firstCreatePass?function Fw(e,t,r,o,a,d){const g=t.consts,A=uc(t,e,2,o,Ts(g,a));return t_(t,r,A,Ts(g,d)),null!==A.attrs&&yu(A,A.attrs,!1),null!==A.mergedAttrs&&yu(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(g,d,a,t,r,o):d.data[g],B=aC(d,a,A,y,t,e);a[g]=B;const Y=Ys(A);return na(A,!0),s0(y,B,A),!function Km(e){return!(32&~e.flags)}(A)&&Uu()&&tm(d,a,B,A),0===function Dc(){return gr.lFrame.elementDepthCount}()&&to(B,a),function Tc(){gr.lFrame.elementDepthCount++}(),Y&&(yh(d,a,A),Jv(d,A,a)),null!==o&&ad(a,A),q_}function Q_(){let e=Vi();Ou()?Nu():(e=e.parent,na(e,!1));const t=e;(function _l(e){return gr.skipHydrationRootTNode===e})(t)&&function qa(){gr.skipHydrationRootTNode=null}(),function ea(){gr.lFrame.elementDepthCount--}();const r=Ei();return r.firstCreatePass&&($u(r,e),Wl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function ju(e){return!!(8&e.flags)}(t)&&hE(r,t,an(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Ld(e){return!!(16&e.flags)}(t)&&hE(r,t,an(),t.stylesWithoutHost,!1),Q_}function EE(e,t,r,o){return q_(e,t,r,o),Q_(),EE}let aC=(e,t,r,o,a,d)=>(Vs(!0),xl(o,a,function Fd(){return gr.lFrame.currentNamespace}()));function Y_(e,t,r){const o=an(),a=Ei(),d=e+Gr,g=a.firstCreatePass?function Bw(e,t,r,o,a){const d=t.consts,g=Ts(d,o),y=uc(t,e,8,"ng-container",g);return null!==g&&yu(y,g,!0),t_(t,r,y,Ts(d,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(d,a,o,t,r):a.data[d];na(g,!0);const y=lC(a,o,g,e);return o[d]=y,Uu()&&tm(a,o,y,g),to(y,o),Ys(g)&&(yh(a,o,g),Jv(a,g,o)),null!=r&&ad(o,g),Y_}function J_(){let e=Vi();const t=Ei();return Ou()?Nu():(e=e.parent,na(e,!1)),t.firstCreatePass&&($u(t,e),Wl(e)&&t.queries.elementEnd(e)),J_}function IE(e,t,r){return Y_(e,t,r),J_(),IE}let lC=(e,t,r,o)=>(Vs(!0),rd(t[Br],""));function uC(){return an()}const Hh=void 0;var zw=["en",[["a","p"],["AM","PM"],Hh],[["AM","PM"],Hh,Hh],[["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"]],Hh,[["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"]],Hh,[["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}",Hh,"{1} 'at' {0}",Hh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function AE(e){const t=function Hw(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=fC(t);if(r)return r;const o=t.split("-")[0];if(r=fC(o),r)return r;if("en"===o)return zw;throw new nt(701,!1)}function hC(e){return AE(e)[Qp.PluralCase]}function fC(e){return e in qp||(qp[e]=Jn.ng&&Jn.ng.common&&Jn.ng.common.locales&&Jn.ng.common.locales[e]),qp[e]}var Qp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Qp||{});const Yp="en-US";let pC=Yp;function TE(e,t,r,o){const a=an(),d=Ei(),g=Vi();return bE(d,a,a[Br],g,e,t,o),TE}function bE(e,t,r,o,a,d,g){const y=Ys(o),B=e.firstCreatePass&&C0(e),Y=t[_i],de=A0(t);let We=!0;if(3&o.type||g){const Zt=is(o,t),bn=g?g(Zt):Zt,Pn=de.length,un=g?si=>g(Pi(si[o.index])):o.index;let Wr=null;if(!g&&y&&(Wr=function US(e,t,r,o){const a=e.cleanup;if(null!=a)for(let d=0;dA?y[A]:null}"string"==typeof g&&(d+=2)}return null}(e,t,a,o.index)),null!==Wr)(Wr.__ngLastListenerFn__||Wr).__ngNextListenerFn__=d,Wr.__ngLastListenerFn__=d,We=!1;else{d=jC(o,t,Y,d,!1);const si=r.listen(bn,a,d);de.push(d,si),B&&B.push(a,un,Pn,Pn+1)}}else d=jC(o,t,Y,d,!1);const ft=o.outputs;let Ft;if(We&&null!==ft&&(Ft=ft[a])){const Zt=Ft.length;if(Zt)for(let bn=0;bn-1?Ro(e.index,t):t);let A=$C(t,r,o,g),B=d.__ngNextListenerFn__;for(;B;)A=$C(t,r,B,g)&&A,B=B.__ngNextListenerFn__;return a&&!1===A&&g.preventDefault(),A}}function zC(e=1){return function Vu(e){return(gr.lFrame.contextLView=function rg(e,t){for(;e>0;)t=t[fl],e--;return t}(e,gr.lFrame.contextLView))[_i]}(e)}function $S(e,t){let r=null;const o=function yn(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let a=0;a(Vs(!0),function Pl(e,t){return e.createText(t)}(t[Br],o));function SE(e){return iy("",e,""),SE}function iy(e,t,r){const o=an(),a=Up(o,e,t,r);return a!==ti&&gu(o,mo(),a),iy}function RE(e,t,r,o,a){const d=an(),g=$p(d,e,t,r,o,a);return g!==ti&&gu(d,mo(),g),RE}function ME(e,t,r){Vm(t)&&(t=t());const o=an();return Po(o,bs(),t)&&Us(Ei(),Fi(),o,e,t,o[Br],r,!1),ME}function AD(e,t){const r=Vm(e);return r&&e.set(t),r}function PE(e,t){const r=an(),o=Ei(),a=Vi();return bE(o,r,r[Br],a,e,t),PE}function xE(e,t,r,o,a){if(e=pe(e),Array.isArray(e))for(let d=0;d>20;if(Zo(e)||!e.multi){const ft=new Al(B,a,sd),Ft=NE(A,t,a?Y:Y+We,de);-1===Ft?(Tl(Hu(y,g),d,A),OE(d,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(ft),g.push(ft)):(r[Ft]=ft,g[Ft]=ft)}else{const ft=NE(A,t,Y+We,de),Ft=NE(A,t,Y,Y+We),bn=Ft>=0&&r[Ft];if(a&&!bn||!a&&!(ft>=0&&r[ft])){Tl(Hu(y,g),d,A);const Pn=function aR(e,t,r,o,a){const d=new Al(e,r,sd);return d.multi=[],d.index=t,d.componentProviders=0,CD(d,a,o&&!r),d}(a?sR:oR,r.length,a,o,B);!a&&bn&&(r[Ft].providerFactory=Pn),OE(d,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Pn),g.push(Pn)}else OE(d,e,ft>-1?ft:Ft,CD(r[a?Ft:ft],B,!a&&o));!a&&o&&bn&&r[Ft].componentProviders++}}}function OE(e,t,r,o){const a=Zo(t),d=function As(e){return!!e.useClass}(t);if(a||d){const A=(d?pe(t.useClass):t).prototype.ngOnDestroy;if(A){const B=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const Y=B.indexOf(r);-1===Y?B.push(r,[o,A]):B[Y+1].push(o,A)}else B.push(r,A)}}}function CD(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function NE(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function iR(e,t,r){const o=Ei();if(o.firstCreatePass){const a=ds(e);xE(r,o.data,o.blueprint,a,!0),xE(t,o.data,o.blueprint,a,!1)}}(o,a?a(e):e,t)}}let lR=(()=>{var e;class t{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const a=Va(0,o.type),d=a.length>0?Q0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,d)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=fr({token:e,providedIn:"environment",factory:()=>new e(z(Lo))}),t})();function TD(e){Oa("NgStandalone"),e.getStandaloneInjector=t=>t.get(lR).getOrCreateStandaloneInjector(e)}function wD(e,t,r){const o=go()+e,a=an();return a[o]===ti?Tu(a,o,r?t.call(r):t()):function Wm(e,t){return e[t]}(a,o)}function iv(e,t){const r=e[t];return r===ti?void 0:r}function OD(e,t){const r=Ei();let o;const a=e+Gr;var d;r.firstCreatePass?(o=function ER(e,t){if(t)for(let r=t.length-1;r>=0;r--){const o=t[r];if(e===o.name)return o}}(t,r.pipeRegistry),r.data[a]=o,o.onDestroy&&(null!==(d=r.destroyHooks)&&void 0!==d?d:r.destroyHooks=[]).push(a,o.onDestroy)):o=r.data[a];const g=o.factory||(o.factory=qr(o.type)),A=W(sd);try{const B=eu(!1),Y=g();return eu(B),function GS(e,t,r,o){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=o}(r,an(),a,Y),Y}finally{W(A)}}function ND(e,t,r){const o=e+Gr,a=an(),d=fs(a,o);return ov(a,o)?function SD(e,t,r,o,a,d){const g=t+r;return Po(e,g,a)?Tu(e,g+1,d?o.call(d,a):o(a)):iv(e,g+1)}(a,go(),t,d.transform,r,d):d.transform(r)}function kD(e,t,r,o){const a=e+Gr,d=an(),g=fs(d,a);return ov(d,a)?function RD(e,t,r,o,a,d,g){const y=t+r;return $h(e,y,a,d)?Tu(e,y+2,g?o.call(g,a,d):o(a,d)):iv(e,y+2)}(d,go(),t,g.transform,r,o,g):g.transform(r,o)}function ov(e,t){return e[Rn].data[t].pure}class YD{constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}const WR=new YD("17.3.10");let JD=(()=>{var e;class t{log(o){console.log(o)}warn(o){console.warn(o)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const nT=new Ge(""),rT=new Ge("");let jE,_1=(()=>{var e;class t{constructor(o,a,d){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,jE||(function y1(e){jE=e}(d),d.addToWindow(a)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{bo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(o)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,a,d){let g=-1;a&&a>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==g),o()},a)),this._callbacks.push({doneCb:o,timeoutId:g,updateCb:d})}whenStable(o,a,d){if(d&&!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(o,a,d),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,d){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(z(bo),z(iT),z(rT))},e.\u0275prov=fr({token:e,factory:e.\u0275fac}),t})(),iT=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(o,a){this._applications.set(o,a)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,a=!0){var d,g;return null!==(d=null===(g=jE)||void 0===g?void 0:g.findTestabilityInTree(this,o,a))&&void 0!==d?d:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function zE(e){return!!e&&"function"==typeof e.then}function oT(e){return!!e&&"function"==typeof e.subscribe}const sT=new Ge("");let HE=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,d)=>{this.resolve=a,this.reject=d}),this.appInits=null!==(o=Ne(sT,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const d of this.appInits){const g=d();if(zE(g))o.push(g);else if(oT(g)){const y=new Promise((A,B)=>{g.subscribe({complete:A,error:B})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(d=>{this.reject(d)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const GE=new Ge("");function uT(e,t){return Array.isArray(t)?t.reduce(uT,e):{...e,...t}}let Cd=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ne(Gd),this.afterRenderEffectManager=Ne(ud),this.externalTestViews=new Set,this.beforeRender=new Zn.B,this.afterTick=new Zn.B,this.componentTypes=[],this.components=[],this.isStable=Ne(Pp).hasPendingTasks.pipe((0,yr.T)(o=>!o)),this._injector=Ne(Lo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const d=o instanceof l_;if(!this._injector.get(HE).done)throw!d&&po(o),new nt(405,!1);let y;y=d?o:this._injector.get(dc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function E1(e){return e.isBoundToModule}(y)?void 0:this._injector.get(so),Y=y.create(ps.NULL,[],a||y.selector,A),de=Y.location.nativeElement,We=Y.injector.get(nT,null);return null==We||We.registerApplication(de),Y.onDestroy(()=>{this.detachView(Y.hostView),ly(this.components,Y),null==We||We.unregisterApplication(de)}),this._loadComponent(Y),Y}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new nt(101,!1);const a=oe(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(d){this.internalErrorHandler(d)}finally{this.afterTick.next(),this._runningTick=!1,oe(a)}}detectChangesInAttachedViews(o){let a=0;const d=this.afterRenderEffectManager;for(;;){if(a===w0)throw new nt(103,!1);if(o){const g=0===a;this.beforeRender.next(g);for(let{_lView:y,notifyErrorHandler:A}of this._views)A1(y,g,A)}if(a++,d.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))&&(d.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;ly(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(GE,[]);[...this._bootstrapListeners,...a].forEach(d=>d(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>ly(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new nt(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ly(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function A1(e,t,r){!t&&!WE(e)||function C1(e,t,r){let o;r?(o=0,e[Kn]|=1024):o=64&e[Kn]?0:1,hm(e,t,o)}(e,r,t)}function WE(e){return Yl(e)}class D1{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let T1=(()=>{var e;class t{compileModuleSync(o){return new js(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),g=ca(bi(o).declarations).reduce((y,A)=>{const B=Rr(A);return B&&y.push(new Rh(B)),y},[]);return new D1(a,g)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),S1=(()=>{var e;class t{constructor(){this.zone=Ne(bo),this.applicationRef=Ne(Cd)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var o;null===(o=this._onMicrotaskEmptySubscription)||void 0===o||o.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function R1(){const e=Ne(bo),t=Ne(Za);return r=>e.runOutsideAngular(()=>t.handleError(r))}let P1=(()=>{var e;class t{constructor(){this.subscription=new nr.yU,this.initialized=!1,this.zone=Ne(bo),this.pendingTasks=Ne(Pp)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{bo.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var a;bo.assertInAngularZone(),null!==(a=o)&&void 0!==a||(o=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const uy=new Ge("",{providedIn:"root",factory:()=>Ne(uy,bt.Optional|bt.SkipSelf)||function x1(){return typeof $localize<"u"&&$localize.locale||Yp}()}),O1=new Ge("",{providedIn:"root",factory:()=>"USD"}),KE=new Ge("");let fT=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const d=function wh(e="zone.js",t){return"noop"===e?new Tm:"zone.js"===e?new bo(t):e}(null==a?void 0:a.ngZone,function hT(e){var t,r;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(r=null==e?void 0:e.runCoalescing)&&void 0!==r&&r}}({eventCoalescing:null==a?void 0:a.ngZoneEventCoalescing,runCoalescing:null==a?void 0:a.ngZoneRunCoalescing}));return d.run(()=>{const g=function Rp(e,t,r){return new Du(e,t,r)}(o.moduleType,this.injector,function dT(e){return[{provide:bo,useFactory:e},{provide:fo,multi:!0,useFactory:()=>{const t=Ne(S1,{optional:!0});return()=>t.initialize()}},{provide:fo,multi:!0,useFactory:()=>{const t=Ne(P1);return()=>{t.initialize()}}},{provide:Gd,useFactory:R1}]}(()=>d)),y=g.injector.get(Za,null);return d.runOutsideAngular(()=>{const A=d.onError.subscribe({next:B=>{y.handleError(B)}});g.onDestroy(()=>{ly(this._modules,g),A.unsubscribe()})}),function lT(e,t,r){try{const o=r();return zE(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,d,()=>{const A=g.injector.get(HE);return A.runInitializers(),A.donePromise.then(()=>(function gC(e){"string"==typeof e&&(pC=e.toLowerCase().replace(/_/g,"-"))}(g.injector.get(uy,Yp)||Yp),this._moduleDoBootstrap(g),g))})})}bootstrapModule(o,a=[]){const d=uT({},a);return function w1(e,t,r){const o=new js(r);return Promise.resolve(o)}(0,0,o).then(g=>this.bootstrapModuleFactory(g,d))}_moduleDoBootstrap(o){const a=o.injector.get(Cd);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(d=>a.bootstrap(d));else{if(!o.instance.ngDoBootstrap)throw new nt(-403,!1);o.instance.ngDoBootstrap(a)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new nt(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(KE,null);o&&(o.forEach(a=>a()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(o){return new(o||e)(z(ps))},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Dd=null;const pT=new Ge("");function gT(e,t,r=[]){const o=`Platform: ${t}`,a=new Ge(o);return(d=[])=>{let g=XE();if(!g||g.injector.get(pT,!1)){const y=[...r,...d,{provide:a,useValue:!0}];e?e(y):function k1(e){if(Dd&&!Dd.get(pT,!1))throw new nt(400,!1);(function aT(){!function we(e){on=e}(()=>{throw new nt(600,!1)})})(),Dd=e;const t=e.get(fT);(function vT(e){const t=e.get(Ev,null);null==t||t.forEach(r=>r())})(e)}(function mT(e=[],t){return ps.create({name:t,providers:[{provide:zl,useValue:"platform"},{provide:KE,useValue:new Set([()=>Dd=null])},...e]})}(y,o))}return function F1(e){const t=XE();if(!t)throw new nt(401,!1);return t}()}}function XE(){var e,t;return null!==(e=null===(t=Dd)||void 0===t?void 0:t.get(fT))&&void 0!==e?e:null}function V1(){}let yT=(()=>{class t{}return t.__NG_ELEMENT_ID__=B1,t})();function B1(e){return function U1(e,t,r){if(rs(e)&&!r){const o=Ro(e.index,t);return new sp(o,o)}return 47&e.type?new sp(t[Gi],t):null}(Vi(),an(),!(16&~e))}class CT{constructor(){}supports(t){return U_(t)}create(t){return new G1(t)}}const H1=(e,t)=>t;class G1{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||H1}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,o=this._removalsHead,a=0,d=null;for(;r||o;){const g=!o||r&&r.currentIndex{g=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,g)?(o&&(r=this._verifyReinsertion(r,y,g,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,g,a),o=!0),r=r._next,a++}),this.length=a;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,o,a){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,d,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,d,a)):t=this._addAfter(new W1(r,o),d,a),t}_verifyReinsertion(t,r,o,a){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==d?t=this._reinsertAfter(d,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=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(t,r,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,d=t._nextRemoved;return null===a?this._removalsHead=d:a._nextRemoved=d,null===d?this._removalsTail=a:d._prevRemoved=a,this._insertAfter(t,r,o),this._addToMoves(t,o),t}_moveAfter(t,r,o){return this._unlink(t),this._insertAfter(t,r,o),this._addToMoves(t,o),t}_addAfter(t,r,o){return this._insertAfter(t,r,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,o){const a=null===r?this._itHead:r._next;return t._next=a,t._prev=r,null===a?this._itTail=t:a._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new DT),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,o=t._next;return null===r?this._itHead=o:r._next=o,null===o?this._itTail=r:o._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new DT),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class W1{constructor(t,r){this.item=t,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 K1{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===r||r<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const r=t._prevDup,o=t._nextDup;return null===r?this._head=o:r._nextDup=o,null===o?this._tail=r:o._prevDup=r,null===this._head}}class DT{constructor(){this.map=new Map}put(t){const r=t.trackById;let o=this.map.get(r);o||(o=new K1,this.map.set(r,o)),o.add(t)}get(t,r){const a=this.map.get(t);return a?a.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function TT(e,t,r){const o=e.previousIndex;if(null===o)return o;let a=0;return r&&o{if(r&&r.key===a)this._maybeAddToChanges(r,o),this._appendAfter=r,r=r._next;else{const d=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,d)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let o=r;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const o=t._prev;return r._next=t,r._prev=o,t._prev=r,o&&(o._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,r);const d=a._prev,g=a._next;return d&&(d._next=g),g&&(g._prev=d),a._next=null,a._prev=null,a}const o=new q1(t);return this._records.set(t,o),o.currentValue=r,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(o=>r(t[o],o))}}class q1{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function wT(){return new ZE([new CT])}let ZE=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||wT()),deps:[[t,new lr,new Nn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(null!=a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:wT}),t})();function ST(){return new eI([new bT])}let eI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||ST()),deps:[[t,new lr,new Nn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:ST}),t})();const J1=gT(null,"core",[]);let Z1=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(z(Cd))},e.\u0275mod=ul({type:e}),e.\u0275inj=gi({}),t})();function SM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RM(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function PM(e){const t=oe(null);try{return e()}finally{oe(t)}}const xM=new Ge("",{providedIn:"root",factory:()=>Ne(OM)});let OM=(()=>{var e;class t{}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>new NM}),t})();class NM{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Ne(Pp),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(t){const r=t.creationZone;this.queues.has(r)||this.queues.set(r,new Set);const o=this.queues.get(r);o.has(t)||(this.queuedEffectCount++,o.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,r]of this.queues)null===t?this.flushQueue(r):t.run(()=>this.flushQueue(r))}flushQueue(t){for(const r of t)t.delete(r),this.queuedEffectCount--,r.run()}}class kM{constructor(t,r,o,a,d,g){this.scheduler=t,this.effectFn=r,this.creationZone=o,this.injector=d,this.watcher=function dn(e,t,r){const o=Object.create(rn);r&&(o.consumerAllowSignalWrites=!0),o.fn=e,o.schedule=t;const a=A=>{o.cleanupFn=A};return o.ref={notify:()=>St(o),run:()=>{if(null===o.fn)return;if(function Je(){return Oe}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(o.dirty=!1,o.hasRun&&!Et(o))return;o.hasRun=!0;const A=yt(o);try{o.cleanupFn(),o.cleanupFn=Kt,o.fn(a)}finally{_t(o,A)}},cleanup:()=>o.cleanupFn(),destroy:()=>function g(A){(function d(A){return null===A.fn&&null===A.schedule})(A)||(mt(A),A.cleanupFn(),A.fn=null,A.schedule=null,A.cleanupFn=Kt)}(o),[ue]:o},o.ref}(y=>this.runEffect(y),()=>this.schedule(),g),this.unregisterOnDestroy=null==a?void 0:a.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(r){const o=this.injector.get(Za,null,{optional:!0});null==o||o.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){var t;this.watcher.destroy(),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}function QT(e,t){var r,o;Oa("NgSignals"),(null==t||!t.injector)&&ya();const a=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ne(ps),d=!0!==(null==t?void 0:t.manualCleanup)?a.get(Xu):null,g=new kM(a.get(xM),e,typeof Zone>"u"?null:Zone.current,d,a,null!==(o=null==t?void 0:t.allowSignalWrites)&&void 0!==o&&o),y=a.get(yT,null,{optional:!0});var A,B;return y&&8&y._lView[Kn]?(null!==(B=(A=y._lView)[Qs])&&void 0!==B?B:A[Qs]=[]).push(g.watcher.notify):g.watcher.notify(),g}function FM(e,t){const r=Rr(e),o=t.elementInjector||ts();return new Rh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function LM(e){const t=Rr(e);if(!t)return null;const r=new Rh(t);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 t.standalone},get isSignal(){return t.signals}}}},7440:(Tn,gt,D)=>{"use strict";D.d(gt,{MW:()=>Ze,Wp:()=>St,XU:()=>Oe,gL:()=>U});var h=D(2214),c=D(4438),Z=D(5407);class Oe{constructor(Ye){return Ye}}class U{constructor(){return(0,h.Dk)()}}const Xe=new c.nKC("angularfire2._apps"),Je={provide:Oe,useFactory:function oe(Me){return Me&&1===Me.length?Me[0]:new Oe((0,h.Sx)())},deps:[[new c.Xx1,Xe]]},Se={provide:U,deps:[[new c.Xx1,Xe]]};function De(Me){return(Ye,ge)=>{const Ue=ge.get(c.Agw);(0,h.KO)("angularfire",Z.xv.full,"core"),(0,h.KO)("angularfire",Z.xv.full,"app"),(0,h.KO)("angular",c.xvI.full,Ue.toString());const Fe=Ye.runOutsideAngular(()=>Me(ge));return new Oe(Fe)}}function Ze(Me,...Ye){return(0,c.EmA)([Je,Se,{provide:Xe,useFactory:De(Me),multi:!0,deps:[c.SKi,c.zZn,Z.u0,...Ye]}])}const St=(0,Z.S3)(h.Wp,!0)},8737:(Tn,gt,D)=>{"use strict";D.d(gt,{Nj:()=>Qa,DF:()=>Tl,eJ:()=>Gu,xI:()=>ug,_q:()=>bl,x9:()=>qu,kQ:()=>Uc});var h=D(5407),c=D(4438),Z=D(7440),Oe=D(2214),U=D(467),ue=D(7852),oe=D(1076),Xe=D(8041),Je=D(1635),Se=D(1362);const _t=function St(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},Et=new oe.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Me=new Xe.Vy("@firebase/auth");function ge(I,...f){Me.logLevel<=Xe.$b.ERROR&&Me.error(`Auth (${ue.MF}): ${I}`,...f)}function Ue(I,...f){throw vn(I,...f)}function Fe(I,...f){return vn(I,...f)}function xe(I,f,v){const S=Object.assign(Object.assign({},_t()),{[f]:v});return new oe.FA("auth","Firebase",S).create(f,{appName:I.name})}function rt(I){return xe(I,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function vn(I,...f){if("string"!=typeof I){const v=f[0],S=[...f.slice(1)];return S[0]&&(S[0].appName=I.name),I._errorFactory.create(v,...S)}return Et.create(I,...f)}function Nt(I,f,...v){if(!I)throw vn(f,...v)}function tt(I){const f="INTERNAL ASSERTION FAILED: "+I;throw ge(f),new Error(f)}function on(I,f){I||tt(f)}function dt(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.href)||""}function H(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.protocol)||null}class se{constructor(f,v){this.shortDelay=f,this.longDelay=v,on(v>f,"Short delay should be less than long delay!"),this.isMobile=(0,oe.jZ)()||(0,oe.lV)()}get(){return function X(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function we(){return"http:"===H()||"https:"===H()}()||(0,oe.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ve(I,f){on(I.emulator,"Emulator should always be set here");const{url:v}=I.emulator;return f?`${v}${f.startsWith("/")?f.slice(1):f}`:v}class Le{static initialize(f,v,S){this.fetchImpl=f,v&&(this.headersImpl=v),S&&(this.responseImpl=S)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void tt("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void tt("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void tt("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const _e={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},Wt=new se(3e4,6e4);function dn(I,f){return I.tenantId&&!f.tenantId?Object.assign(Object.assign({},f),{tenantId:I.tenantId}):f}function Kt(I,f,v,S){return rn.apply(this,arguments)}function rn(){return(rn=(0,U.A)(function*(I,f,v,S,J={}){return Ln(I,J,(0,U.A)(function*(){let be={},Dt={};S&&("GET"===f?Dt=S:be={body:JSON.stringify(S)});const Xt=(0,oe.Am)(Object.assign({key:I.config.apiKey},Dt)).slice(1),Dn=yield I._getAdditionalHeaders();return Dn["Content-Type"]="application/json",I.languageCode&&(Dn["X-Firebase-Locale"]=I.languageCode),Le.fetch()(yr(I,I.config.apiHost,v,Xt),Object.assign({method:f,headers:Dn,referrerPolicy:"no-referrer"},be))}))})).apply(this,arguments)}function Ln(I,f,v){return Zn.apply(this,arguments)}function Zn(){return(Zn=(0,U.A)(function*(I,f,v){I._canInitEmulator=!1;const S=Object.assign(Object.assign({},_e),f);try{const J=new ir(I),be=yield Promise.race([v(),J.promise]);J.clearNetworkTimeout();const Dt=yield be.json();if("needConfirmation"in Dt)throw nt(I,"account-exists-with-different-credential",Dt);if(be.ok&&!("errorMessage"in Dt))return Dt;{const Xt=be.ok?Dt.errorMessage:Dt.error.message,[Dn,$n]=Xt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Dn)throw nt(I,"credential-already-in-use",Dt);if("EMAIL_EXISTS"===Dn)throw nt(I,"email-already-in-use",Dt);if("USER_DISABLED"===Dn)throw nt(I,"user-disabled",Dt);const vr=S[Dn]||Dn.toLowerCase().replace(/[_\s]+/g,"-");if($n)throw xe(I,vr,$n);Ue(I,vr)}}catch(J){if(J instanceof oe.g)throw J;Ue(I,"network-request-failed",{message:String(J)})}})).apply(this,arguments)}function nr(I,f,v,S){return er.apply(this,arguments)}function er(){return(er=(0,U.A)(function*(I,f,v,S,J={}){const be=yield Kt(I,f,v,S,J);return"mfaPendingCredential"in be&&Ue(I,"multi-factor-auth-required",{_serverResponse:be}),be})).apply(this,arguments)}function yr(I,f,v,S){const J=`${f}${v}?${S}`;return I.config.emulator?ve(I.config,J):`${I.config.apiScheme}://${J}`}function rr(I){switch(I){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class ir{constructor(f){this.auth=f,this.timer=null,this.promise=new Promise((v,S)=>{this.timer=setTimeout(()=>S(Fe(this.auth,"network-request-failed")),Wt.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function nt(I,f,v){const S={appName:I.name};v.email&&(S.email=v.email),v.phoneNumber&&(S.phoneNumber=v.phoneNumber);const J=Fe(I,f,S);return J.customData._tokenResponse=v,J}function zt(I){return void 0!==I&&void 0!==I.enterprise}class pn{constructor(f){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===f.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=f.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=f.recaptchaEnforcementState}getProviderEnforcementState(f){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===f)return rr(v.enforcementState);return null}isProviderEnabled(f){return"ENFORCE"===this.getProviderEnforcementState(f)||"AUDIT"===this.getProviderEnforcementState(f)}}function Mn(I,f){return xn.apply(this,arguments)}function xn(){return(xn=(0,U.A)(function*(I,f){return Kt(I,"GET","/v2/recaptchaConfig",dn(I,f))})).apply(this,arguments)}function en(){return(en=(0,U.A)(function*(I,f){return Kt(I,"POST","/v1/accounts:delete",f)})).apply(this,arguments)}function Nr(I,f){return Qn.apply(this,arguments)}function Qn(){return(Qn=(0,U.A)(function*(I,f){return Kt(I,"POST","/v1/accounts:lookup",f)})).apply(this,arguments)}function Dr(I){if(I)try{const f=new Date(Number(I));if(!isNaN(f.getTime()))return f.toUTCString()}catch{}}function mr(){return(mr=(0,U.A)(function*(I,f=!1){const v=(0,oe.Ku)(I),S=yield v.getIdToken(f),J=Pr(S);Nt(J&&J.exp&&J.auth_time&&J.iat,v.auth,"internal-error");const be="object"==typeof J.firebase?J.firebase:void 0,Dt=null==be?void 0:be.sign_in_provider;return{claims:J,token:S,authTime:Dr(ur(J.auth_time)),issuedAtTime:Dr(ur(J.iat)),expirationTime:Dr(ur(J.exp)),signInProvider:Dt||null,signInSecondFactor:(null==be?void 0:be.sign_in_second_factor)||null}})).apply(this,arguments)}function ur(I){return 1e3*Number(I)}function Pr(I){const[f,v,S]=I.split(".");if(void 0===f||void 0===v||void 0===S)return ge("JWT malformed, contained fewer than 3 sections"),null;try{const J=(0,oe.u)(v);return J?JSON.parse(J):(ge("Failed to decode base64 JWT payload"),null)}catch(J){return ge("Caught error parsing JWT payload as JSON",null==J?void 0:J.toString()),null}}function cr(I){const f=Pr(I);return Nt(f,"internal-error"),Nt(typeof f.exp<"u","internal-error"),Nt(typeof f.iat<"u","internal-error"),Number(f.exp)-Number(f.iat)}function kr(I,f){return ii.apply(this,arguments)}function ii(){return(ii=(0,U.A)(function*(I,f,v=!1){if(v)return f;try{return yield f}catch(S){throw S instanceof oe.g&&function Ai({code:I}){return"auth/user-disabled"===I||"auth/user-token-expired"===I}(S)&&I.auth.currentUser===I&&(yield I.auth.signOut()),S}})).apply(this,arguments)}class Qr{constructor(f){this.user=f,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(f){var v;if(f){const S=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),S}{this.errorBackoff=3e4;const J=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,J)}}schedule(f=!1){var v=this;if(!this.isRunning)return;const S=this.getInterval(f);this.timerId=setTimeout((0,U.A)(function*(){yield v.iteration()}),S)}iteration(){var f=this;return(0,U.A)(function*(){try{yield f.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&f.schedule(!0))}f.schedule()})()}}class pe{constructor(f,v){this.createdAt=f,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=Dr(this.lastLoginAt),this.creationTime=Dr(this.createdAt)}_copy(f){this.createdAt=f.createdAt,this.lastLoginAt=f.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function it(I){return Mt.apply(this,arguments)}function Mt(){return(Mt=(0,U.A)(function*(I){var f;const v=I.auth,S=yield I.getIdToken(),J=yield kr(I,Nr(v,{idToken:S}));Nt(null==J?void 0:J.users.length,v,"internal-error");const be=J.users[0];I._notifyReloadListener(be);const Dt=null!==(f=be.providerUserInfo)&&void 0!==f&&f.length?He(be.providerUserInfo):[],Xt=function Ee(I,f){return[...I.filter(S=>!f.some(J=>J.providerId===S.providerId)),...f]}(I.providerData,Dt),vr=!!I.isAnonymous&&!(I.email&&be.passwordHash||null!=Xt&&Xt.length),hi={uid:be.localId,displayName:be.displayName||null,photoURL:be.photoUrl||null,email:be.email||null,emailVerified:be.emailVerified||!1,phoneNumber:be.phoneNumber||null,tenantId:be.tenantId||null,providerData:Xt,metadata:new pe(be.createdAt,be.lastLoginAt),isAnonymous:vr};Object.assign(I,hi)})).apply(this,arguments)}function ce(){return(ce=(0,U.A)(function*(I){const f=(0,oe.Ku)(I);yield it(f),yield f.auth._persistUserIfCurrent(f),f.auth._notifyListenersIfCurrent(f)})).apply(this,arguments)}function He(I){return I.map(f=>{var{providerId:v}=f,S=(0,Je.Tt)(f,["providerId"]);return{providerId:v,uid:S.rawId||"",displayName:S.displayName||null,email:S.email||null,phoneNumber:S.phoneNumber||null,photoURL:S.photoUrl||null}})}function ie(){return(ie=(0,U.A)(function*(I,f){const v=yield Ln(I,{},(0,U.A)(function*(){const S=(0,oe.Am)({grant_type:"refresh_token",refresh_token:f}).slice(1),{tokenApiHost:J,apiKey:be}=I.config,Dt=yr(I,J,"/v1/token",`key=${be}`),Xt=yield I._getAdditionalHeaders();return Xt["Content-Type"]="application/x-www-form-urlencoded",Le.fetch()(Dt,{method:"POST",headers:Xt,body:S})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function lt(){return(lt=(0,U.A)(function*(I,f){return Kt(I,"POST","/v2/accounts:revokeToken",dn(I,f))})).apply(this,arguments)}class Gt{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(f){Nt(f.idToken,"internal-error"),Nt(typeof f.idToken<"u","internal-error"),Nt(typeof f.refreshToken<"u","internal-error");const v="expiresIn"in f&&typeof f.expiresIn<"u"?Number(f.expiresIn):cr(f.idToken);this.updateTokensAndExpiration(f.idToken,f.refreshToken,v)}updateFromIdToken(f){Nt(0!==f.length,"internal-error");const v=cr(f);this.updateTokensAndExpiration(f,null,v)}getToken(f,v=!1){var S=this;return(0,U.A)(function*(){return v||!S.accessToken||S.isExpired?(Nt(S.refreshToken,f,"user-token-expired"),S.refreshToken?(yield S.refresh(f,S.refreshToken),S.accessToken):null):S.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(f,v){var S=this;return(0,U.A)(function*(){const{accessToken:J,refreshToken:be,expiresIn:Dt}=yield function Lt(I,f){return ie.apply(this,arguments)}(f,v);S.updateTokensAndExpiration(J,be,Number(Dt))})()}updateTokensAndExpiration(f,v,S){this.refreshToken=v||null,this.accessToken=f||null,this.expirationTime=Date.now()+1e3*S}static fromJSON(f,v){const{refreshToken:S,accessToken:J,expirationTime:be}=v,Dt=new Gt;return S&&(Nt("string"==typeof S,"internal-error",{appName:f}),Dt.refreshToken=S),J&&(Nt("string"==typeof J,"internal-error",{appName:f}),Dt.accessToken=J),be&&(Nt("number"==typeof be,"internal-error",{appName:f}),Dt.expirationTime=be),Dt}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(f){this.accessToken=f.accessToken,this.refreshToken=f.refreshToken,this.expirationTime=f.expirationTime}_clone(){return Object.assign(new Gt,this.toJSON())}_performRefresh(){return tt("not implemented")}}function tn(I,f){Nt("string"==typeof I||typeof I>"u","internal-error",{appName:f})}class _n{constructor(f){var{uid:v,auth:S,stsTokenManager:J}=f,be=(0,Je.Tt)(f,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Qr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=S,this.stsTokenManager=J,this.accessToken=J.accessToken,this.displayName=be.displayName||null,this.email=be.email||null,this.emailVerified=be.emailVerified||!1,this.phoneNumber=be.phoneNumber||null,this.photoURL=be.photoURL||null,this.isAnonymous=be.isAnonymous||!1,this.tenantId=be.tenantId||null,this.providerData=be.providerData?[...be.providerData]:[],this.metadata=new pe(be.createdAt||void 0,be.lastLoginAt||void 0)}getIdToken(f){var v=this;return(0,U.A)(function*(){const S=yield kr(v,v.stsTokenManager.getToken(v.auth,f));return Nt(S,v.auth,"internal-error"),v.accessToken!==S&&(v.accessToken=S,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),S})()}getIdTokenResult(f){return function Jr(I){return mr.apply(this,arguments)}(this,f)}reload(){return function ut(I){return ce.apply(this,arguments)}(this)}_assign(f){this!==f&&(Nt(this.uid===f.uid,this.auth,"internal-error"),this.displayName=f.displayName,this.photoURL=f.photoURL,this.email=f.email,this.emailVerified=f.emailVerified,this.phoneNumber=f.phoneNumber,this.isAnonymous=f.isAnonymous,this.tenantId=f.tenantId,this.providerData=f.providerData.map(v=>Object.assign({},v)),this.metadata._copy(f.metadata),this.stsTokenManager._assign(f.stsTokenManager))}_clone(f){const v=new _n(Object.assign(Object.assign({},this),{auth:f,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(f){Nt(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=f,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(f){this.reloadListener?this.reloadListener(f):this.reloadUserInfo=f}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(f,v=!1){var S=this;return(0,U.A)(function*(){let J=!1;f.idToken&&f.idToken!==S.stsTokenManager.accessToken&&(S.stsTokenManager.updateFromServerResponse(f),J=!0),v&&(yield it(S)),yield S.auth._persistUserIfCurrent(S),J&&S.auth._notifyListenersIfCurrent(S)})()}delete(){var f=this;return(0,U.A)(function*(){if((0,ue.xZ)(f.auth.app))return Promise.reject(rt(f.auth));const v=yield f.getIdToken();return yield kr(f,function mn(I,f){return en.apply(this,arguments)}(f.auth,{idToken:v})),f.stsTokenManager.clearRefreshToken(),f.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(f=>Object.assign({},f)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(f,v){var S,J,be,Dt,Xt,Dn,$n,vr;const hi=null!==(S=v.displayName)&&void 0!==S?S:void 0,Vo=null!==(J=v.email)&&void 0!==J?J:void 0,to=null!==(be=v.phoneNumber)&&void 0!==be?be:void 0,ua=null!==(Dt=v.photoURL)&&void 0!==Dt?Dt:void 0,Xd=null!==(Xt=v.tenantId)&&void 0!==Xt?Xt:void 0,su=null!==(Dn=v._redirectEventId)&&void 0!==Dn?Dn:void 0,qd=null!==($n=v.createdAt)&&void 0!==$n?$n:void 0,Zu=null!==(vr=v.lastLoginAt)&&void 0!==vr?vr:void 0,{uid:ec,emailVerified:tc,isAnonymous:Df,providerData:au,stsTokenManager:Tf}=v;Nt(ec&&Tf,f,"internal-error");const Qd=Gt.fromJSON(this.name,Tf);Nt("string"==typeof ec,f,"internal-error"),tn(hi,f.name),tn(Vo,f.name),Nt("boolean"==typeof tc,f,"internal-error"),Nt("boolean"==typeof Df,f,"internal-error"),tn(to,f.name),tn(ua,f.name),tn(Xd,f.name),tn(su,f.name),tn(qd,f.name),tn(Zu,f.name);const Yd=new _n({uid:ec,auth:f,email:Vo,emailVerified:tc,displayName:hi,isAnonymous:Df,photoURL:ua,phoneNumber:to,tenantId:Xd,stsTokenManager:Qd,createdAt:qd,lastLoginAt:Zu});return au&&Array.isArray(au)&&(Yd.providerData=au.map(Jd=>Object.assign({},Jd))),su&&(Yd._redirectEventId=su),Yd}static _fromIdTokenResponse(f,v,S=!1){return(0,U.A)(function*(){const J=new Gt;J.updateFromServerResponse(v);const be=new _n({uid:v.localId,auth:f,stsTokenManager:J,isAnonymous:S});return yield it(be),be})()}static _fromGetAccountInfoResponse(f,v,S){return(0,U.A)(function*(){const J=v.users[0];Nt(void 0!==J.localId,"internal-error");const be=void 0!==J.providerUserInfo?He(J.providerUserInfo):[],Dt=!(J.email&&J.passwordHash||null!=be&&be.length),Xt=new Gt;Xt.updateFromIdToken(S);const Dn=new _n({uid:J.localId,auth:f,stsTokenManager:Xt,isAnonymous:Dt}),$n={uid:J.localId,displayName:J.displayName||null,photoURL:J.photoUrl||null,email:J.email||null,emailVerified:J.emailVerified||!1,phoneNumber:J.phoneNumber||null,tenantId:J.tenantId||null,providerData:be,metadata:new pe(J.createdAt,J.lastLoginAt),isAnonymous:!(J.email&&J.passwordHash||null!=be&&be.length)};return Object.assign(Dn,$n),Dn})()}}const qn=new Map;function hn(I){on(I instanceof Function,"Expected a class definition");let f=qn.get(I);return f?(on(f instanceof I,"Instance stored in cache mismatched with class"),f):(f=new I,qn.set(I,f),f)}const tr=(()=>{class I{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,U.A)(function*(){return!0})()}_set(v,S){var J=this;return(0,U.A)(function*(){J.storage[v]=S})()}_get(v){var S=this;return(0,U.A)(function*(){const J=S.storage[v];return void 0===J?null:J})()}_remove(v){var S=this;return(0,U.A)(function*(){delete S.storage[v]})()}_addListener(v,S){}_removeListener(v,S){}}return I.type="NONE",I})();function Ar(I,f,v){return`firebase:${I}:${f}:${v}`}class dr{constructor(f,v,S){this.persistence=f,this.auth=v,this.userKey=S;const{config:J,name:be}=this.auth;this.fullUserKey=Ar(this.userKey,J.apiKey,be),this.fullPersistenceKey=Ar("persistence",J.apiKey,be),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(f){return this.persistence._set(this.fullUserKey,f.toJSON())}getCurrentUser(){var f=this;return(0,U.A)(function*(){const v=yield f.persistence._get(f.fullUserKey);return v?_n._fromJSON(f.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(f){var v=this;return(0,U.A)(function*(){if(v.persistence===f)return;const S=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=f,S?v.setCurrentUser(S):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(f,v,S="authUser"){return(0,U.A)(function*(){if(!v.length)return new dr(hn(tr),f,S);const J=(yield Promise.all(v.map(function(){var $n=(0,U.A)(function*(vr){if(yield vr._isAvailable())return vr});return function(vr){return $n.apply(this,arguments)}}()))).filter($n=>$n);let be=J[0]||hn(tr);const Dt=Ar(S,f.config.apiKey,f.name);let Xt=null;for(const $n of v)try{const vr=yield $n._get(Dt);if(vr){const hi=_n._fromJSON(f,vr);$n!==be&&(Xt=hi),be=$n;break}}catch{}const Dn=J.filter($n=>$n._shouldAllowMigration);return be._shouldAllowMigration&&Dn.length?(be=Dn[0],Xt&&(yield be._set(Dt,Xt.toJSON())),yield Promise.all(v.map(function(){var $n=(0,U.A)(function*(vr){if(vr!==be)try{yield vr._remove(Dt)}catch{}});return function(vr){return $n.apply(this,arguments)}}())),new dr(be,f,S)):new dr(be,f,S)})()}}function $r(I){const f=I.toLowerCase();if(f.includes("opera/")||f.includes("opr/")||f.includes("opios/"))return"Opera";if(gi(f))return"IEMobile";if(f.includes("msie")||f.includes("trident/"))return"IE";if(f.includes("edge/"))return"Edge";if(Zr(f))return"Firefox";if(f.includes("silk/"))return"Silk";if(Ut(f))return"Blackberry";if(ne(f))return"Webos";if(fr(f))return"Safari";if((f.includes("chrome/")||Ri(f))&&!f.includes("edge/"))return"Chrome";if(pr(f))return"Android";{const S=I.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==S?void 0:S.length))return S[1]}return"Other"}function Zr(I=(0,oe.ZQ)()){return/firefox\//i.test(I)}function fr(I=(0,oe.ZQ)()){const f=I.toLowerCase();return f.includes("safari/")&&!f.includes("chrome/")&&!f.includes("crios/")&&!f.includes("android")}function Ri(I=(0,oe.ZQ)()){return/crios\//i.test(I)}function gi(I=(0,oe.ZQ)()){return/iemobile/i.test(I)}function pr(I=(0,oe.ZQ)()){return/android/i.test(I)}function Ut(I=(0,oe.ZQ)()){return/blackberry/i.test(I)}function ne(I=(0,oe.ZQ)()){return/webos/i.test(I)}function ee(I=(0,oe.ZQ)()){return/iphone|ipad|ipod/i.test(I)||/macintosh/i.test(I)&&/mobile/i.test(I)}function te(I=(0,oe.ZQ)()){return ee(I)||pr(I)||ne(I)||Ut(I)||/windows phone/i.test(I)||gi(I)}function Ge(I,f=[]){let v;switch(I){case"Browser":v=$r((0,oe.ZQ)());break;case"Worker":v=`${$r((0,oe.ZQ)())}-${I}`;break;default:v=I}const S=f.length?f.join(","):"FirebaseCore-web";return`${v}/JsCore/${ue.MF}/${S}`}class Ct{constructor(f){this.auth=f,this.queue=[]}pushCallback(f,v){const S=be=>new Promise((Dt,Xt)=>{try{Dt(f(be))}catch(Dn){Xt(Dn)}});S.onAbort=v,this.queue.push(S);const J=this.queue.length-1;return()=>{this.queue[J]=()=>Promise.resolve()}}runMiddleware(f){var v=this;return(0,U.A)(function*(){if(v.auth.currentUser===f)return;const S=[];try{for(const J of v.queue)yield J(f),J.onAbort&&S.push(J.onAbort)}catch(J){S.reverse();for(const be of S)try{be()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==J?void 0:J.message})}})()}}function ln(){return(ln=(0,U.A)(function*(I,f={}){return Kt(I,"GET","/v2/passwordPolicy",dn(I,f))})).apply(this,arguments)}class Un{constructor(f){var v,S,J,be;const Dt=f.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=Dt.minPasswordLength)&&void 0!==v?v:6,Dt.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=Dt.maxPasswordLength),void 0!==Dt.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=Dt.containsLowercaseCharacter),void 0!==Dt.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=Dt.containsUppercaseCharacter),void 0!==Dt.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=Dt.containsNumericCharacter),void 0!==Dt.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=Dt.containsNonAlphanumericCharacter),this.enforcementState=f.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(J=null===(S=f.allowedNonAlphanumericCharacters)||void 0===S?void 0:S.join(""))&&void 0!==J?J:"",this.forceUpgradeOnSignin=null!==(be=f.forceUpgradeOnSignin)&&void 0!==be&&be,this.schemaVersion=f.schemaVersion}validatePassword(f){var v,S,J,be,Dt,Xt;const Dn={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(f,Dn),this.validatePasswordCharacterOptions(f,Dn),Dn.isValid&&(Dn.isValid=null===(v=Dn.meetsMinPasswordLength)||void 0===v||v),Dn.isValid&&(Dn.isValid=null===(S=Dn.meetsMaxPasswordLength)||void 0===S||S),Dn.isValid&&(Dn.isValid=null===(J=Dn.containsLowercaseLetter)||void 0===J||J),Dn.isValid&&(Dn.isValid=null===(be=Dn.containsUppercaseLetter)||void 0===be||be),Dn.isValid&&(Dn.isValid=null===(Dt=Dn.containsNumericCharacter)||void 0===Dt||Dt),Dn.isValid&&(Dn.isValid=null===(Xt=Dn.containsNonAlphanumericCharacter)||void 0===Xt||Xt),Dn}validatePasswordLengthOptions(f,v){const S=this.customStrengthOptions.minPasswordLength,J=this.customStrengthOptions.maxPasswordLength;S&&(v.meetsMinPasswordLength=f.length>=S),J&&(v.meetsMaxPasswordLength=f.length<=J)}validatePasswordCharacterOptions(f,v){let S;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let J=0;J="a"&&S<="z",S>="A"&&S<="Z",S>="0"&&S<="9",this.allowedNonAlphanumericCharacters.includes(S))}updatePasswordCharacterOptionsStatuses(f,v,S,J,be){this.customStrengthOptions.containsLowercaseLetter&&(f.containsLowercaseLetter||(f.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(f.containsUppercaseLetter||(f.containsUppercaseLetter=S)),this.customStrengthOptions.containsNumericCharacter&&(f.containsNumericCharacter||(f.containsNumericCharacter=J)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(f.containsNonAlphanumericCharacter||(f.containsNonAlphanumericCharacter=be))}}class xr{constructor(f,v,S,J){this.app=f,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=S,this.config=J,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Fr(this),this.idTokenSubscription=new Fr(this),this.beforeStateQueue=new Ct(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Et,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=f.name,this.clientVersion=J.sdkClientVersion}_initializeWithPersistence(f,v){var S=this;return v&&(this._popupRedirectResolver=hn(v)),this._initializationPromise=this.queue((0,U.A)(function*(){var J,be;if(!S._deleted&&(S.persistenceManager=yield dr.create(S,f),!S._deleted)){if(null!==(J=S._popupRedirectResolver)&&void 0!==J&&J._shouldInitProactively)try{yield S._popupRedirectResolver._initialize(S)}catch{}yield S.initializeCurrentUser(v),S.lastNotifiedUid=(null===(be=S.currentUser)||void 0===be?void 0:be.uid)||null,!S._deleted&&(S._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var f=this;return(0,U.A)(function*(){if(f._deleted)return;const v=yield f.assertedPersistence.getCurrentUser();if(f.currentUser||v){if(f.currentUser&&v&&f.currentUser.uid===v.uid)return f._currentUser._assign(v),void(yield f.currentUser.getIdToken());yield f._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(f){var v=this;return(0,U.A)(function*(){try{const S=yield Nr(v,{idToken:f}),J=yield _n._fromGetAccountInfoResponse(v,S,f);yield v.directlySetCurrentUser(J)}catch(S){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",S),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(f){var v=this;return(0,U.A)(function*(){var S;if((0,ue.xZ)(v.app)){const Xt=v.app.settings.authIdToken;return Xt?new Promise(Dn=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Xt).then(Dn,Dn))}):v.directlySetCurrentUser(null)}const J=yield v.assertedPersistence.getCurrentUser();let be=J,Dt=!1;if(f&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Xt=null===(S=v.redirectUser)||void 0===S?void 0:S._redirectEventId,Dn=null==be?void 0:be._redirectEventId,$n=yield v.tryRedirectSignIn(f);(!Xt||Xt===Dn)&&null!=$n&&$n.user&&(be=$n.user,Dt=!0)}if(!be)return v.directlySetCurrentUser(null);if(!be._redirectEventId){if(Dt)try{yield v.beforeStateQueue.runMiddleware(be)}catch(Xt){be=J,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Xt))}return be?v.reloadAndSetCurrentUserOrClear(be):v.directlySetCurrentUser(null)}return Nt(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===be._redirectEventId?v.directlySetCurrentUser(be):v.reloadAndSetCurrentUserOrClear(be)})()}tryRedirectSignIn(f){var v=this;return(0,U.A)(function*(){let S=null;try{S=yield v._popupRedirectResolver._completeRedirectFn(v,f,!0)}catch{yield v._setRedirectUser(null)}return S})()}reloadAndSetCurrentUserOrClear(f){var v=this;return(0,U.A)(function*(){try{yield it(f)}catch(S){if("auth/network-request-failed"!==(null==S?void 0:S.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(f)})()}useDeviceLanguage(){this.languageCode=function fe(){if(typeof navigator>"u")return null;const I=navigator;return I.languages&&I.languages[0]||I.language||null}()}_delete(){var f=this;return(0,U.A)(function*(){f._deleted=!0})()}updateCurrentUser(f){var v=this;return(0,U.A)(function*(){if((0,ue.xZ)(v.app))return Promise.reject(rt(v));const S=f?(0,oe.Ku)(f):null;return S&&Nt(S.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(S&&S._clone(v))})()}_updateCurrentUser(f,v=!1){var S=this;return(0,U.A)(function*(){if(!S._deleted)return f&&Nt(S.tenantId===f.tenantId,S,"tenant-id-mismatch"),v||(yield S.beforeStateQueue.runMiddleware(f)),S.queue((0,U.A)(function*(){yield S.directlySetCurrentUser(f),S.notifyAuthListeners()}))})()}signOut(){var f=this;return(0,U.A)(function*(){return(0,ue.xZ)(f.app)?Promise.reject(rt(f)):(yield f.beforeStateQueue.runMiddleware(null),(f.redirectPersistenceManager||f._popupRedirectResolver)&&(yield f._setRedirectUser(null)),f._updateCurrentUser(null,!0))})()}setPersistence(f){var v=this;return(0,ue.xZ)(this.app)?Promise.reject(rt(this)):this.queue((0,U.A)(function*(){yield v.assertedPersistence.setPersistence(hn(f))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(f){var v=this;return(0,U.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const S=v._getPasswordPolicyInternal();return S.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):S.validatePassword(f)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var f=this;return(0,U.A)(function*(){const v=yield function Jt(I){return ln.apply(this,arguments)}(f),S=new Un(v);null===f.tenantId?f._projectPasswordPolicy=S:f._tenantPasswordPolicies[f.tenantId]=S})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(f){this._errorFactory=new oe.FA("auth","Firebase",f())}onAuthStateChanged(f,v,S){return this.registerStateListener(this.authStateSubscription,f,v,S)}beforeAuthStateChanged(f,v){return this.beforeStateQueue.pushCallback(f,v)}onIdTokenChanged(f,v,S){return this.registerStateListener(this.idTokenSubscription,f,v,S)}authStateReady(){return new Promise((f,v)=>{if(this.currentUser)f();else{const S=this.onAuthStateChanged(()=>{S(),f()},v)}})}revokeAccessToken(f){var v=this;return(0,U.A)(function*(){if(v.currentUser){const S=yield v.currentUser.getIdToken(),J={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:f,idToken:S};null!=v.tenantId&&(J.tenantId=v.tenantId),yield function ct(I,f){return lt.apply(this,arguments)}(v,J)}})()}toJSON(){var f;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(f=this._currentUser)||void 0===f?void 0:f.toJSON()}}_setRedirectUser(f,v){var S=this;return(0,U.A)(function*(){const J=yield S.getOrInitRedirectPersistenceManager(v);return null===f?J.removeCurrentUser():J.setCurrentUser(f)})()}getOrInitRedirectPersistenceManager(f){var v=this;return(0,U.A)(function*(){if(!v.redirectPersistenceManager){const S=f&&hn(f)||v._popupRedirectResolver;Nt(S,v,"argument-error"),v.redirectPersistenceManager=yield dr.create(v,[hn(S._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(f){var v=this;return(0,U.A)(function*(){var S,J;return v._isInitialized&&(yield v.queue((0,U.A)(function*(){}))),(null===(S=v._currentUser)||void 0===S?void 0:S._redirectEventId)===f?v._currentUser:(null===(J=v.redirectUser)||void 0===J?void 0:J._redirectEventId)===f?v.redirectUser:null})()}_persistUserIfCurrent(f){var v=this;return(0,U.A)(function*(){if(f===v.currentUser)return v.queue((0,U.A)(function*(){return v.directlySetCurrentUser(f)}))})()}_notifyListenersIfCurrent(f){f===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var f,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const S=null!==(v=null===(f=this.currentUser)||void 0===f?void 0:f.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==S&&(this.lastNotifiedUid=S,this.authStateSubscription.next(this.currentUser))}registerStateListener(f,v,S,J){if(this._deleted)return()=>{};const be="function"==typeof v?v:v.next.bind(v);let Dt=!1;const Xt=this._isInitialized?Promise.resolve():this._initializationPromise;if(Nt(Xt,this,"internal-error"),Xt.then(()=>{Dt||be(this.currentUser)}),"function"==typeof v){const Dn=f.addObserver(v,S,J);return()=>{Dt=!0,Dn()}}{const Dn=f.addObserver(v);return()=>{Dt=!0,Dn()}}}directlySetCurrentUser(f){var v=this;return(0,U.A)(function*(){v.currentUser&&v.currentUser!==f&&v._currentUser._stopProactiveRefresh(),f&&v.isProactiveRefreshEnabled&&f._startProactiveRefresh(),v.currentUser=f,f?yield v.assertedPersistence.setCurrentUser(f):yield v.assertedPersistence.removeCurrentUser()})()}queue(f){return this.operations=this.operations.then(f,f),this.operations}get assertedPersistence(){return Nt(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(f){!f||this.frameworks.includes(f)||(this.frameworks.push(f),this.frameworks.sort(),this.clientVersion=Ge(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var f=this;return(0,U.A)(function*(){var v;const S={"X-Client-Version":f.clientVersion};f.app.options.appId&&(S["X-Firebase-gmpid"]=f.app.options.appId);const J=yield null===(v=f.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();J&&(S["X-Firebase-Client"]=J);const be=yield f._getAppCheckToken();return be&&(S["X-Firebase-AppCheck"]=be),S})()}_getAppCheckToken(){var f=this;return(0,U.A)(function*(){var v;const S=yield null===(v=f.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=S&&S.error&&function Ye(I,...f){Me.logLevel<=Xe.$b.WARN&&Me.warn(`Auth (${ue.MF}): ${I}`,...f)}(`Error while retrieving App Check token: ${S.error}`),null==S?void 0:S.token})()}}function On(I){return(0,oe.Ku)(I)}class Fr{constructor(f){this.auth=f,this.observer=null,this.addObserver=(0,oe.tD)(v=>this.observer=v)}get next(){return Nt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Or={loadJS:()=>(0,U.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Tr(I){return Or.loadJS(I)}function li(I){return`__${I}${Math.floor(1e6*Math.random())}`}class mi{constructor(f){this.type="recaptcha-enterprise",this.auth=On(f)}verify(f="verify",v=!1){var S=this;return(0,U.A)(function*(){function be(){return be=(0,U.A)(function*(Xt){if(!v){if(null==Xt.tenantId&&null!=Xt._agentRecaptchaConfig)return Xt._agentRecaptchaConfig.siteKey;if(null!=Xt.tenantId&&void 0!==Xt._tenantRecaptchaConfigs[Xt.tenantId])return Xt._tenantRecaptchaConfigs[Xt.tenantId].siteKey}return new Promise(function(){var Dn=(0,U.A)(function*($n,vr){Mn(Xt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(hi=>{if(void 0!==hi.recaptchaKey){const Vo=new pn(hi);return null==Xt.tenantId?Xt._agentRecaptchaConfig=Vo:Xt._tenantRecaptchaConfigs[Xt.tenantId]=Vo,$n(Vo.siteKey)}vr(new Error("recaptcha Enterprise site key undefined"))}).catch(hi=>{vr(hi)})});return function($n,vr){return Dn.apply(this,arguments)}}())}),be.apply(this,arguments)}function Dt(Xt,Dn,$n){const vr=window.grecaptcha;zt(vr)?vr.enterprise.ready(()=>{vr.enterprise.execute(Xt,{action:f}).then(hi=>{Dn(hi)}).catch(()=>{Dn("NO_RECAPTCHA")})}):$n(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Xt,Dn)=>{(function J(Xt){return be.apply(this,arguments)})(S.auth).then($n=>{if(!v&&zt(window.grecaptcha))Dt($n,Xt,Dn);else{if(typeof window>"u")return void Dn(new Error("RecaptchaVerifier is only supported in browser"));let vr=function Cr(){return Or.recaptchaEnterpriseScript}();0!==vr.length&&(vr+=$n),Tr(vr).then(()=>{Dt($n,Xt,Dn)}).catch(hi=>{Dn(hi)})}}).catch($n=>{Dn($n)})})})()}}function Wn(I,f,v){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,U.A)(function*(I,f,v,S=!1){const J=new mi(I);let be;try{be=yield J.verify(v)}catch{be=yield J.verify(v,!0)}const Dt=Object.assign({},f);return Object.assign(Dt,S?{captchaResp:be}:{captchaResponse:be}),Object.assign(Dt,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(Dt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),Dt})).apply(this,arguments)}function ao(I,f,v,S){return ui.apply(this,arguments)}function ui(){return ui=(0,U.A)(function*(I,f,v,S){var J;if(null!==(J=I._getRecaptchaConfig())&&void 0!==J&&J.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const be=yield Wn(I,f,v,"getOobCode"===v);return S(I,be)}return S(I,f).catch(function(){var be=(0,U.A)(function*(Dt){if("auth/missing-recaptcha-token"===Dt.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Xt=yield Wn(I,f,v,"getOobCode"===v);return S(I,Xt)}return Promise.reject(Dt)});return function(Dt){return be.apply(this,arguments)}}())}),ui.apply(this,arguments)}function he(I){const f=I.indexOf(":");return f<0?"":I.substr(0,f+1)}function W(I){if(!I)return null;const f=Number(I);return isNaN(f)?null:f}class Ve{constructor(f,v){this.providerId=f,this.signInMethod=v}toJSON(){return tt("not implemented")}_getIdTokenResponse(f){return tt("not implemented")}_linkToIdToken(f,v){return tt("not implemented")}_getReauthenticationResolver(f){return tt("not implemented")}}function w(I,f){return j.apply(this,arguments)}function j(){return(j=(0,U.A)(function*(I,f){return Kt(I,"POST","/v1/accounts:signUp",f)})).apply(this,arguments)}function Ie(I,f){return ot.apply(this,arguments)}function ot(){return(ot=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithPassword",dn(I,f))})).apply(this,arguments)}function En(){return(En=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithEmailLink",dn(I,f))})).apply(this,arguments)}function jn(){return(jn=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithEmailLink",dn(I,f))})).apply(this,arguments)}class lr extends Ve{constructor(f,v,S,J=null){super("password",S),this._email=f,this._password=v,this._tenantId=J}static _fromEmailAndPassword(f,v){return new lr(f,v,"password")}static _fromEmailAndCode(f,v,S=null){return new lr(f,v,"emailLink",S)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(f){const v="string"==typeof f?JSON.parse(f):f;if(null!=v&&v.email&&null!=v&&v.password){if("password"===v.signInMethod)return this._fromEmailAndPassword(v.email,v.password);if("emailLink"===v.signInMethod)return this._fromEmailAndCode(v.email,v.password,v.tenantId)}return null}_getIdTokenResponse(f){var v=this;return(0,U.A)(function*(){switch(v.signInMethod){case"password":return ao(f,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Ie);case"emailLink":return function cn(I,f){return En.apply(this,arguments)}(f,{email:v._email,oobCode:v._password});default:Ue(f,"internal-error")}})()}_linkToIdToken(f,v){var S=this;return(0,U.A)(function*(){switch(S.signInMethod){case"password":return ao(f,{idToken:v,returnSecureToken:!0,email:S._email,password:S._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",w);case"emailLink":return function Nn(I,f){return jn.apply(this,arguments)}(f,{idToken:v,email:S._email,oobCode:S._password});default:Ue(f,"internal-error")}})()}_getReauthenticationResolver(f){return this._getIdTokenResponse(f)}}function Vn(I,f){return qr.apply(this,arguments)}function qr(){return(qr=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithIdp",dn(I,f))})).apply(this,arguments)}class no{constructor(f){var v,S,J,be,Dt,Xt;const Dn=(0,oe.I9)((0,oe.hp)(f)),$n=null!==(v=Dn.apiKey)&&void 0!==v?v:null,vr=null!==(S=Dn.oobCode)&&void 0!==S?S:null,hi=function Io(I){switch(I){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(J=Dn.mode)&&void 0!==J?J:null);Nt($n&&vr&&hi,"argument-error"),this.apiKey=$n,this.operation=hi,this.code=vr,this.continueUrl=null!==(be=Dn.continueUrl)&&void 0!==be?be:null,this.languageCode=null!==(Dt=Dn.languageCode)&&void 0!==Dt?Dt:null,this.tenantId=null!==(Xt=Dn.tenantId)&&void 0!==Xt?Xt:null}static parseLink(f){const v=function Ss(I){const f=(0,oe.I9)((0,oe.hp)(I)).link,v=f?(0,oe.I9)((0,oe.hp)(f)).deep_link_id:null,S=(0,oe.I9)((0,oe.hp)(I)).deep_link_id;return(S?(0,oe.I9)((0,oe.hp)(S)).link:null)||S||v||f||I}(f);try{return new no(v)}catch{return null}}}let Kr=(()=>{class I{constructor(){this.providerId=I.PROVIDER_ID}static credential(v,S){return lr._fromEmailAndPassword(v,S)}static credentialWithLink(v,S){const J=no.parseLink(S);return Nt(J,"argument-error"),lr._fromEmailAndCode(v,J.code,J.tenantId)}}return I.PROVIDER_ID="password",I.EMAIL_PASSWORD_SIGN_IN_METHOD="password",I.EMAIL_LINK_SIGN_IN_METHOD="emailLink",I})();class fo{constructor(f){this.providerId=f,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(f){this.defaultLanguageCode=f}setCustomParameters(f){return this.customParameters=f,this}getCustomParameters(){return this.customParameters}}class ka extends fo{constructor(){super(...arguments),this.scopes=[]}addScope(f){return this.scopes.includes(f)||this.scopes.push(f),this}getScopes(){return[...this.scopes]}}function Ao(I,f){return Fo.apply(this,arguments)}function Fo(){return(Fo=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signUp",dn(I,f))})).apply(this,arguments)}class io{constructor(f){this.user=f.user,this.providerId=f.providerId,this._tokenResponse=f._tokenResponse,this.operationType=f.operationType}static _fromIdTokenResponse(f,v,S,J=!1){return(0,U.A)(function*(){const be=yield _n._fromIdTokenResponse(f,S,J),Dt=ha(S);return new io({user:be,providerId:Dt,_tokenResponse:S,operationType:v})})()}static _forOperation(f,v,S){return(0,U.A)(function*(){yield f._updateTokensIfNecessary(S,!0);const J=ha(S);return new io({user:f,providerId:J,_tokenResponse:S,operationType:v})})()}}function ha(I){return I.providerId?I.providerId:"phoneNumber"in I?"phone":null}class N extends oe.g{constructor(f,v,S,J){var be;super(v.code,v.message),this.operationType=S,this.user=J,Object.setPrototypeOf(this,N.prototype),this.customData={appName:f.name,tenantId:null!==(be=f.tenantId)&&void 0!==be?be:void 0,_serverResponse:v.customData._serverResponse,operationType:S}}static _fromErrorAndOperation(f,v,S,J){return new N(f,v,S,J)}}function Ce(I,f,v,S){return("reauthenticate"===f?v._getReauthenticationResolver(I):v._getIdTokenResponse(I)).catch(be=>{throw"auth/multi-factor-auth-required"===be.code?N._fromErrorAndOperation(I,be,f,S):be})}function wr(){return(wr=(0,U.A)(function*(I,f,v=!1){const S=yield kr(I,f._linkToIdToken(I.auth,yield I.getIdToken()),v);return io._forOperation(I,"link",S)})).apply(this,arguments)}function Yo(){return(Yo=(0,U.A)(function*(I,f,v=!1){const{auth:S}=I;if((0,ue.xZ)(S.app))return Promise.reject(rt(S));const J="reauthenticate";try{const be=yield kr(I,Ce(S,J,f,I),v);Nt(be.idToken,S,"internal-error");const Dt=Pr(be.idToken);Nt(Dt,S,"internal-error");const{sub:Xt}=Dt;return Nt(I.uid===Xt,S,"user-mismatch"),io._forOperation(I,J,be)}catch(be){throw"auth/user-not-found"===(null==be?void 0:be.code)&&Ue(S,"user-mismatch"),be}})).apply(this,arguments)}function Fa(I,f){return _s.apply(this,arguments)}function _s(){return(_s=(0,U.A)(function*(I,f,v=!1){if((0,ue.xZ)(I.app))return Promise.reject(rt(I));const S="signIn",J=yield Ce(I,S,f),be=yield io._fromIdTokenResponse(I,S,J);return v||(yield I._updateCurrentUser(be.user)),be})).apply(this,arguments)}function fa(){return(fa=(0,U.A)(function*(I,f){return Fa(On(I),f)})).apply(this,arguments)}function cl(I){return Hr.apply(this,arguments)}function Hr(){return(Hr=(0,U.A)(function*(I){const f=On(I);f._getPasswordPolicyInternal()&&(yield f._updatePasswordPolicy())})).apply(this,arguments)}function Os(I,f,v){return Zo.apply(this,arguments)}function Zo(){return(Zo=(0,U.A)(function*(I,f,v){if((0,ue.xZ)(I.app))return Promise.reject(rt(I));const S=On(I),Dt=yield ao(S,{returnSecureToken:!0,email:f,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Ao).catch(Dn=>{throw"auth/password-does-not-meet-requirements"===Dn.code&&cl(I),Dn}),Xt=yield io._fromIdTokenResponse(S,"signIn",Dt);return yield S._updateCurrentUser(Xt.user),Xt})).apply(this,arguments)}function As(I,f,v){return(0,ue.xZ)(I.app)?Promise.reject(rt(I)):function Gs(I,f){return fa.apply(this,arguments)}((0,oe.Ku)(I),Kr.credential(f,v)).catch(function(){var S=(0,U.A)(function*(J){throw"auth/password-does-not-meet-requirements"===J.code&&cl(I),J});return function(J){return S.apply(this,arguments)}}())}function Hi(I,f,v,S){return(0,oe.Ku)(I).onIdTokenChanged(f,v,S)}const qs="__sak";class _c{constructor(f,v){this.storageRetriever=f,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(qs,"1"),this.storage.removeItem(qs),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(f,v){return this.storage.setItem(f,JSON.stringify(v)),Promise.resolve()}_get(f){const v=this.storage.getItem(f);return Promise.resolve(v?JSON.parse(v):null)}_remove(f){return this.storage.removeItem(f),Promise.resolve()}get storage(){return this.storageRetriever()}}const Ea=(()=>{class I extends _c{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,S)=>this.onStorageEvent(v,S),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Mi(){const I=(0,oe.ZQ)();return fr(I)||ee(I)}()&&function Te(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=te(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const S of Object.keys(this.listeners)){const J=this.storage.getItem(S),be=this.localCache[S];J!==be&&v(S,be,J)}}onStorageEvent(v,S=!1){if(!v.key)return void this.forAllChangedKeys((Xt,Dn,$n)=>{this.notifyListeners(Xt,$n)});const J=v.key;if(S?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Xt=this.storage.getItem(J);if(v.newValue!==Xt)null!==v.newValue?this.storage.setItem(J,v.newValue):this.storage.removeItem(J);else if(this.localCache[J]===v.newValue&&!S)return}const be=()=>{const Xt=this.storage.getItem(J);!S&&this.localCache[J]===Xt||this.notifyListeners(J,Xt)},Dt=this.storage.getItem(J);!function x(){return(0,oe.lT)()&&10===document.documentMode}()||Dt===v.newValue||v.newValue===v.oldValue?be():setTimeout(be,10)}notifyListeners(v,S){this.localCache[v]=S;const J=this.listeners[v];if(J)for(const be of Array.from(J))be(S&&JSON.parse(S))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,S,J)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:S,newValue:J}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(v,S){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[v]||(this.listeners[v]=new Set,this.localCache[v]=this.storage.getItem(v)),this.listeners[v].add(S)}_removeListener(v,S){this.listeners[v]&&(this.listeners[v].delete(S),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,S){var J=()=>super._set,be=this;return(0,U.A)(function*(){yield J().call(be,v,S),be.localCache[v]=JSON.stringify(S)})()}_get(v){var S=()=>super._get,J=this;return(0,U.A)(function*(){const be=yield S().call(J,v);return J.localCache[v]=JSON.stringify(be),be})()}_remove(v){var S=()=>super._remove,J=this;return(0,U.A)(function*(){yield S().call(J,v),delete J.localCache[v]})()}}return I.type="LOCAL",I})(),Wo=(()=>{class I extends _c{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,S){}_removeListener(v,S){}}return I.type="SESSION",I})();let Ia=(()=>{class I{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const S=this.receivers.find(be=>be.isListeningto(v));if(S)return S;const J=new I(v);return this.receivers.push(J),J}isListeningto(v){return this.eventTarget===v}handleEvent(v){var S=this;return(0,U.A)(function*(){const J=v,{eventId:be,eventType:Dt,data:Xt}=J.data,Dn=S.handlersMap[Dt];if(null==Dn||!Dn.size)return;J.ports[0].postMessage({status:"ack",eventId:be,eventType:Dt});const $n=Array.from(Dn).map(function(){var hi=(0,U.A)(function*(Vo){return Vo(J.origin,Xt)});return function(Vo){return hi.apply(this,arguments)}}()),vr=yield function pl(I){return Promise.all(I.map(function(){var f=(0,U.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(S){return{fulfilled:!1,reason:S}}});return function(v){return f.apply(this,arguments)}}()))}($n);J.ports[0].postMessage({status:"done",eventId:be,eventType:Dt,response:vr})})()}_subscribe(v,S){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(S)}_unsubscribe(v,S){this.handlersMap[v]&&S&&this.handlersMap[v].delete(S),(!S||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return I.receivers=[],I})();function Xi(I="",f=10){let v="";for(let S=0;S{const vr=Xi("",20);be.port1.start();const hi=setTimeout(()=>{$n(new Error("unsupported_event"))},S);Xt={messageChannel:be,onMessage(Vo){const to=Vo;if(to.data.eventId===vr)switch(to.data.status){case"ack":clearTimeout(hi),Dt=setTimeout(()=>{$n(new Error("timeout"))},3e3);break;case"done":clearTimeout(Dt),Dn(to.data.response);break;default:clearTimeout(hi),clearTimeout(Dt),$n(new Error("invalid_response"))}}},J.handlers.add(Xt),be.port1.addEventListener("message",Xt.onMessage),J.target.postMessage({eventType:f,eventId:vr,data:v},[be.port2])}).finally(()=>{Xt&&J.removeMessageHandler(Xt)})})()}}function di(){return window}function Wl(){return typeof di().WorkerGlobalScope<"u"&&"function"==typeof di().importScripts}function Ys(){return(Ys=(0,U.A)(function*(){if(null==navigator||!navigator.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const gl="firebaseLocalStorageDb",Aa="firebaseLocalStorage",Mu="fbase_key";class Ca{constructor(f){this.request=f}toPromise(){return new Promise((f,v)=>{this.request.addEventListener("success",()=>{f(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function ja(I,f){return I.transaction([Aa],f?"readwrite":"readonly").objectStore(Aa)}function Td(){const I=indexedDB.open(gl,1);return new Promise((f,v)=>{I.addEventListener("error",()=>{v(I.error)}),I.addEventListener("upgradeneeded",()=>{const S=I.result;try{S.createObjectStore(Aa,{keyPath:Mu})}catch(J){v(J)}}),I.addEventListener("success",(0,U.A)(function*(){const S=I.result;S.objectStoreNames.contains(Aa)?f(S):(S.close(),yield function tg(){const I=indexedDB.deleteDatabase(gl);return new Ca(I).toPromise()}(),f(yield Td()))}))})}function Da(I,f,v){return za.apply(this,arguments)}function za(){return(za=(0,U.A)(function*(I,f,v){const S=ja(I,!0).put({[Mu]:f,value:v});return new Ca(S).toPromise()})).apply(this,arguments)}function bd(){return(bd=(0,U.A)(function*(I,f){const v=ja(I,!1).get(f),S=yield new Ca(v).toPromise();return void 0===S?null:S.value})).apply(this,arguments)}function E(I,f){const v=ja(I,!0).delete(f);return new Ca(v).toPromise()}const L=(()=>{class I{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var v=this;return(0,U.A)(function*(){return v.db||(v.db=yield Td()),v.db})()}_withRetries(v){var S=this;return(0,U.A)(function*(){let J=0;for(;;)try{const be=yield S._openDb();return yield v(be)}catch(be){if(J++>3)throw be;S.db&&(S.db.close(),S.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,U.A)(function*(){return Wl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,U.A)(function*(){v.receiver=Ia._getInstance(function Kl(){return Wl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var S=(0,U.A)(function*(J,be){return{keyProcessed:(yield v._poll()).includes(be.key)}});return function(J,be){return S.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var S=(0,U.A)(function*(J,be){return["keyChanged"]});return function(J,be){return S.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,U.A)(function*(){var S,J;if(v.activeServiceWorker=yield function rs(){return Ys.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Ru(v.activeServiceWorker);const be=yield v.sender._send("ping",{},800);be&&null!==(S=be[0])&&void 0!==S&&S.fulfilled&&null!==(J=be[0])&&void 0!==J&&J.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var S=this;return(0,U.A)(function*(){if(S.sender&&S.activeServiceWorker&&function ds(){var I;return(null===(I=null==navigator?void 0:navigator.serviceWorker)||void 0===I?void 0:I.controller)||null}()===S.activeServiceWorker)try{yield S.sender._send("keyChanged",{key:v},S.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,U.A)(function*(){try{if(!indexedDB)return!1;const v=yield Td();return yield Da(v,qs,"1"),yield E(v,qs),!0}catch{}return!1})()}_withPendingWrite(v){var S=this;return(0,U.A)(function*(){S.pendingWrites++;try{yield v()}finally{S.pendingWrites--}})()}_set(v,S){var J=this;return(0,U.A)(function*(){return J._withPendingWrite((0,U.A)(function*(){return yield J._withRetries(be=>Da(be,v,S)),J.localCache[v]=S,J.notifyServiceWorker(v)}))})()}_get(v){var S=this;return(0,U.A)(function*(){const J=yield S._withRetries(be=>function Kh(I,f){return bd.apply(this,arguments)}(be,v));return S.localCache[v]=J,J})()}_remove(v){var S=this;return(0,U.A)(function*(){return S._withPendingWrite((0,U.A)(function*(){return yield S._withRetries(J=>E(J,v)),delete S.localCache[v],S.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,U.A)(function*(){const S=yield v._withRetries(Dt=>{const Xt=ja(Dt,!1).getAll();return new Ca(Xt).toPromise()});if(!S)return[];if(0!==v.pendingWrites)return[];const J=[],be=new Set;if(0!==S.length)for(const{fbase_key:Dt,value:Xt}of S)be.add(Dt),JSON.stringify(v.localCache[Dt])!==JSON.stringify(Xt)&&(v.notifyListeners(Dt,Xt),J.push(Dt));for(const Dt of Object.keys(v.localCache))v.localCache[Dt]&&!be.has(Dt)&&(v.notifyListeners(Dt,null),J.push(Dt));return J})()}notifyListeners(v,S){this.localCache[v]=S;const J=this.listeners[v];if(J)for(const be of Array.from(J))be(S)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,U.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,S){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(S)}_removeListener(v,S){this.listeners[v]&&(this.listeners[v].delete(S),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return I.type="LOCAL",I})();li("rcb"),new se(3e4,6e4);class Ro extends Ve{constructor(f){super("custom","custom"),this.params=f}_getIdTokenResponse(f){return Vn(f,this._buildIdpRequest())}_linkToIdToken(f,v){return Vn(f,this._buildIdpRequest(v))}_getReauthenticationResolver(f){return Vn(f,this._buildIdpRequest())}_buildIdpRequest(f){const v={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return f&&(v.idToken=f),v}}function wd(I){return Fa(I.auth,new Ro(I),I.bypassAuthState)}function Ic(I){const{auth:f,user:v}=I;return Nt(v,f,"internal-error"),function So(I,f){return Yo.apply(this,arguments)}(v,new Ro(I),I.bypassAuthState)}function Ac(I){return Ts.apply(this,arguments)}function Ts(){return(Ts=(0,U.A)(function*(I){const{auth:f,user:v}=I;return Nt(v,f,"internal-error"),function Xn(I,f){return wr.apply(this,arguments)}(v,new Ro(I),I.bypassAuthState)})).apply(this,arguments)}class Cc{constructor(f,v,S,J,be=!1){this.auth=f,this.resolver=S,this.user=J,this.bypassAuthState=be,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var f=this;return new Promise(function(){var v=(0,U.A)(function*(S,J){f.pendingPromise={resolve:S,reject:J};try{f.eventManager=yield f.resolver._initialize(f.auth),yield f.onExecution(),f.eventManager.registerConsumer(f)}catch(be){f.reject(be)}});return function(S,J){return v.apply(this,arguments)}}())}onAuthEvent(f){var v=this;return(0,U.A)(function*(){const{urlResponse:S,sessionId:J,postBody:be,tenantId:Dt,error:Xt,type:Dn}=f;if(Xt)return void v.reject(Xt);const $n={auth:v.auth,requestUri:S,sessionId:J,tenantId:Dt||void 0,postBody:be||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(Dn)($n))}catch(vr){v.reject(vr)}})()}onError(f){this.reject(f)}getIdpTask(f){switch(f){case"signInViaPopup":case"signInViaRedirect":return wd;case"linkViaPopup":case"linkViaRedirect":return Ac;case"reauthViaPopup":case"reauthViaRedirect":return Ic;default:Ue(this.auth,"internal-error")}}resolve(f){on(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(f),this.unregisterAndCleanUp()}reject(f){on(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(f),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new se(2e3,1e4);const gr="pendingRedirect",vl=new Map;class Rd extends Cc{constructor(f,v,S=!1){super(f,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,S),this.eventId=null}execute(){var f=()=>super.execute,v=this;return(0,U.A)(function*(){let S=vl.get(v.auth._key());if(!S){try{const be=(yield function Dc(I,f){return Tc.apply(this,arguments)}(v.resolver,v.auth))?yield f().call(v):null;S=()=>Promise.resolve(be)}catch(J){S=()=>Promise.reject(J)}vl.set(v.auth._key(),S)}return v.bypassAuthState||vl.set(v.auth._key(),()=>Promise.resolve(null)),S()})()}onAuthEvent(f){var v=()=>super.onAuthEvent,S=this;return(0,U.A)(function*(){if("signInViaRedirect"===f.type)return v().call(S,f);if("unknown"!==f.type){if(f.eventId){const J=yield S.auth._redirectUserForId(f.eventId);if(J)return S.user=J,v().call(S,f);S.resolve(null)}}else S.resolve(null)})()}onExecution(){return(0,U.A)(function*(){})()}cleanUp(){}}function Tc(){return(Tc=(0,U.A)(function*(I,f){const v=function yl(I){return Ar(gr,I.config.apiKey,I.name)}(f),S=function qh(I){return hn(I._redirectPersistence)}(I);if(!(yield S._isAvailable()))return!1;const J="true"===(yield S._get(v));return yield S._remove(v),J})).apply(this,arguments)}function _l(I,f){vl.set(I._key(),f)}function Nu(I,f){return Pd.apply(this,arguments)}function Pd(){return(Pd=(0,U.A)(function*(I,f,v=!1){if((0,ue.xZ)(I.app))return Promise.reject(rt(I));const S=On(I),J=function fs(I,f){return f?hn(f):(Nt(I._popupRedirectResolver,I,"argument-error"),I._popupRedirectResolver)}(S,f),Dt=yield new Rd(S,J,v).execute();return Dt&&!v&&(delete Dt.user._redirectEventId,yield S._persistUserIfCurrent(Dt.user),yield S._setRedirectUser(null,f)),Dt})).apply(this,arguments)}class ia{constructor(f){this.auth=f,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(f){this.consumers.add(f),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,f)&&(this.sendToConsumer(this.queuedRedirectEvent,f),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(f){this.consumers.delete(f)}onEvent(f){if(this.hasEventBeenHandled(f))return!1;let v=!1;return this.consumers.forEach(S=>{this.isEventForConsumer(f,S)&&(v=!0,this.sendToConsumer(f,S),this.saveEventToCache(f))}),this.hasHandledPotentialRedirect||!function oa(I){switch(I.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return bs(I);default:return!1}}(f)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=f,v=!0)),v}sendToConsumer(f,v){var S;if(f.error&&!bs(f)){const J=(null===(S=f.error.code)||void 0===S?void 0:S.split("auth/")[1])||"internal-error";v.onError(Fe(this.auth,J))}else v.onAuthEvent(f)}isEventForConsumer(f,v){const S=null===v.eventId||!!f.eventId&&f.eventId===v.eventId;return v.filter.includes(f.type)&&S}hasEventBeenHandled(f){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(wc(f))}saveEventToCache(f){this.cachedEventUids.add(wc(f)),this.lastProcessedEventTime=Date.now()}}function wc(I){return[I.type,I.eventId,I.sessionId,I.tenantId].filter(f=>f).join("-")}function bs({type:I,error:f}){return"unknown"===I&&"auth/no-auth-event"===(null==f?void 0:f.code)}function Sc(){return(Sc=(0,U.A)(function*(I,f={}){return Kt(I,"GET","/v1/projects",f)})).apply(this,arguments)}const xd=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,To=/^https?/;function ku(){return ku=(0,U.A)(function*(I){if(I.config.emulator)return;const{authorizedDomains:f}=yield function og(I){return Sc.apply(this,arguments)}(I);for(const v of f)try{if(Nd(v))return}catch{}Ue(I,"unauthorized-domain")}),ku.apply(this,arguments)}function Nd(I){const f=dt(),{protocol:v,hostname:S}=new URL(f);if(I.startsWith("chrome-extension://")){const Dt=new URL(I);return""===Dt.hostname&&""===S?"chrome-extension:"===v&&I.replace("chrome-extension://","")===f.replace("chrome-extension://",""):"chrome-extension:"===v&&Dt.hostname===S}if(!To.test(v))return!1;if(xd.test(I))return S===I;const J=I.replace(/\./g,"\\.");return new RegExp("^(.+\\."+J+"|"+J+")$","i").test(S)}const Rc=new se(3e4,6e4);function Mc(){const I=di().___jsl;if(null!=I&&I.H)for(const f of Object.keys(I.H))if(I.H[f].r=I.H[f].r||[],I.H[f].L=I.H[f].L||[],I.H[f].r=[...I.H[f].L],I.CP)for(let v=0;v{var S,J,be;function Dt(){Mc(),gapi.load("gapi.iframes",{callback:()=>{f(gapi.iframes.getContext())},ontimeout:()=>{Mc(),v(Fe(I,"network-request-failed"))},timeout:Rc.get()})}if(null!==(J=null===(S=di().gapi)||void 0===S?void 0:S.iframes)&&void 0!==J&&J.Iframe)f(gapi.iframes.getContext());else{if(null===(be=di().gapi)||void 0===be||!be.load){const Xt=li("iframefcb");return di()[Xt]=()=>{gapi.load?Dt():v(Fe(I,"network-request-failed"))},Tr(`${function ai(){return Or.gapiScript}()}?onload=${Xt}`).catch(Dn=>v(Dn))}Dt()}}).catch(f=>{throw Sa=null,f})}(I),Sa}(I),v=di().gapi;return Nt(v,I,"internal-error"),f.open({where:document.body,url:mo(I),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Lu,dontclear:!0},S=>new Promise(function(){var J=(0,U.A)(function*(be,Dt){yield S.restyle({setHideOnLeave:!1});const Xt=Fe(I,"network-request-failed"),Dn=di().setTimeout(()=>{Dt(Xt)},Zh.get());function $n(){di().clearTimeout(Dn),be(S)}S.ping($n).then($n,()=>{Dt(Xt)})});return function(be,Dt){return J.apply(this,arguments)}}()))}),Fi.apply(this,arguments)}const ef={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Bu{constructor(f){this.window=f,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const ag="__/auth/handler",$u="emulator/auth/handler",xc=encodeURIComponent("fac");function sa(I,f,v,S,J,be){return aa.apply(this,arguments)}function aa(){return(aa=(0,U.A)(function*(I,f,v,S,J,be){Nt(I.config.authDomain,I,"auth-domain-config-required"),Nt(I.config.apiKey,I,"invalid-api-key");const Dt={apiKey:I.config.apiKey,appName:I.name,authType:v,redirectUrl:S,v:ue.MF,eventId:J};if(f instanceof fo){f.setDefaultLanguage(I.languageCode),Dt.providerId=f.providerId||"",(0,oe.Im)(f.getCustomParameters())||(Dt.customParameters=JSON.stringify(f.getCustomParameters()));for(const[vr,hi]of Object.entries(be||{}))Dt[vr]=hi}if(f instanceof ka){const vr=f.getScopes().filter(hi=>""!==hi);vr.length>0&&(Dt.scopes=vr.join(","))}I.tenantId&&(Dt.tid=I.tenantId);const Xt=Dt;for(const vr of Object.keys(Xt))void 0===Xt[vr]&&delete Xt[vr];const Dn=yield I._getAppCheckToken(),$n=Dn?`#${xc}=${encodeURIComponent(Dn)}`:"";return`${function Oc({config:I}){return I.emulator?ve(I,$u):`https://${I.authDomain}/${ag}`}(I)}?${(0,oe.Am)(Xt).slice(1)}${$n}`})).apply(this,arguments)}const El="webStorageSupport",Il=class rf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Wo,this._completeRedirectFn=Nu,this._overrideRedirectResult=_l}_openPopup(f,v,S,J){var be=this;return(0,U.A)(function*(){var Dt;on(null===(Dt=be.eventManagers[f._key()])||void 0===Dt?void 0:Dt.manager,"_initialize() not called before _openPopup()");const Xt=yield sa(f,v,S,dt(),J);return function Uu(I,f,v,S=500,J=600){const be=Math.max((window.screen.availHeight-J)/2,0).toString(),Dt=Math.max((window.screen.availWidth-S)/2,0).toString();let Xt="";const Dn=Object.assign(Object.assign({},ef),{width:S.toString(),height:J.toString(),top:be,left:Dt}),$n=(0,oe.ZQ)().toLowerCase();v&&(Xt=Ri($n)?"_blank":v),Zr($n)&&(f=f||"http://localhost",Dn.scrollbars="yes");const vr=Object.entries(Dn).reduce((Vo,[to,ua])=>`${Vo}${to}=${ua},`,"");if(function M(I=(0,oe.ZQ)()){var f;return ee(I)&&!(null===(f=window.navigator)||void 0===f||!f.standalone)}($n)&&"_self"!==Xt)return function Vs(I,f){const v=document.createElement("a");v.href=I,v.target=f;const S=document.createEvent("MouseEvent");S.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(S)}(f||"",Xt),new Bu(null);const hi=window.open(f||"",Xt,vr);Nt(hi,I,"popup-blocked");try{hi.focus()}catch{}return new Bu(hi)}(f,Xt,Xi())})()}_openRedirect(f,v,S,J){var be=this;return(0,U.A)(function*(){return yield be._originValidation(f),function Do(I){di().location.href=I}(yield sa(f,v,S,dt(),J)),new Promise(()=>{})})()}_initialize(f){const v=f._key();if(this.eventManagers[v]){const{manager:J,promise:be}=this.eventManagers[v];return J?Promise.resolve(J):(on(be,"If manager is not set, promise should be"),be)}const S=this.initAndGetManager(f);return this.eventManagers[v]={promise:S},S.catch(()=>{delete this.eventManagers[v]}),S}initAndGetManager(f){var v=this;return(0,U.A)(function*(){const S=yield function Ra(I){return Fi.apply(this,arguments)}(f),J=new ia(f);return S.register("authEvent",be=>(Nt(null==be?void 0:be.authEvent,f,"invalid-auth-event"),{status:J.onEvent(be.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[f._key()]={manager:J},v.iframes[f._key()]=S,J})()}_isIframeWebStorageSupported(f,v){this.iframes[f._key()].send(El,{type:El},J=>{var be;const Dt=null===(be=null==J?void 0:J[0])||void 0===be?void 0:be[El];void 0!==Dt&&v(!!Dt),Ue(f,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(f){const v=f._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Od(I){return ku.apply(this,arguments)}(f)),this.originValidationPromises[v]}get _shouldInitProactively(){return te()||fr()||ee()}};var Vd="@firebase/auth";class Ma{constructor(f){this.auth=f,this.internalListeners=new Map}getUid(){var f;return this.assertAuthConfigured(),(null===(f=this.auth.currentUser)||void 0===f?void 0:f.uid)||null}getToken(f){var v=this;return(0,U.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(f)}:null})()}addAuthTokenListener(f){if(this.assertAuthConfigured(),this.internalListeners.has(f))return;const v=this.auth.onIdTokenChanged(S=>{f((null==S?void 0:S.stsTokenManager.accessToken)||null)});this.internalListeners.set(f,v),this.updateProactiveRefresh()}removeAuthTokenListener(f){this.assertAuthConfigured();const v=this.internalListeners.get(f);v&&(this.internalListeners.delete(f),v(),this.updateProactiveRefresh())}assertAuthConfigured(){Nt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const eu=(0,oe.XA)("authIdTokenMaxAge")||300;let af=null;const lf=I=>function(){var f=(0,U.A)(function*(v){const S=v&&(yield v.getIdTokenResult()),J=S&&((new Date).getTime()-Date.parse(S.issuedAtTime))/1e3;if(J&&J>eu)return;const be=null==S?void 0:S.token;af!==be&&(af=be,yield fetch(I,{method:be?"POST":"DELETE",headers:be?{Authorization:`Bearer ${be}`}:{}}))});return function(v){return f.apply(this,arguments)}}();function Bd(I=(0,ue.Sx)()){const f=(0,ue.j6)(I,"auth");if(f.isInitialized())return f.getImmediate();const v=function No(I,f){const v=(0,ue.j6)(I,"auth");if(v.isInitialized()){const J=v.getImmediate(),be=v.getOptions();if((0,oe.bD)(be,null!=f?f:{}))return J;Ue(J,"already-initialized")}return v.initialize({options:f})}(I,{popupRedirectResolver:Il,persistence:[L,Ea,Wo]}),S=(0,oe.XA)("authTokenSyncURL");if(S&&"boolean"==typeof isSecureContext&&isSecureContext){const be=new URL(S,location.origin);if(location.origin===be.origin){const Dt=lf(be.toString());(function vi(I,f,v){(0,oe.Ku)(I).beforeAuthStateChanged(f,v)})(v,Dt,()=>Dt(v.currentUser)),Hi(v,Xt=>Dt(Xt))}}const J=(0,oe.Tj)("auth");return J&&function bt(I,f,v){const S=On(I);Nt(S._canInitEmulator,S,"emulator-config-failed"),Nt(/^https?:\/\//.test(f),S,"invalid-emulator-scheme");const J=!(null==v||!v.disableWarnings),be=he(f),{host:Dt,port:Xt}=function le(I){const f=he(I),v=/(\/\/)?([^?#/]+)/.exec(I.substr(f.length));if(!v)return{host:"",port:null};const S=v[2].split("@").pop()||"",J=/^(\[[^\]]+\])(:|$)/.exec(S);if(J){const be=J[1];return{host:be,port:W(S.substr(be.length+1))}}{const[be,Dt]=S.split(":");return{host:be,port:W(Dt)}}}(f);S.config.emulator={url:`${be}//${Dt}${null===Xt?"":`:${Xt}`}/`},S.settings.appVerificationDisabledForTesting=!0,S.emulatorConfig=Object.freeze({host:Dt,port:Xt,protocol:be.replace(":",""),options:Object.freeze({disableWarnings:J})}),J||function $e(){function I(){const f=document.createElement("p"),v=f.style;f.innerText="Running in emulator mode. Do not use with production credentials.",v.position="fixed",v.width="100%",v.backgroundColor="#ffffff",v.border=".1em solid #000000",v.color="#b50000",v.bottom="0px",v.left="0px",v.margin="0px",v.zIndex="10000",v.textAlign="center",f.classList.add("firebase-emulator-warning"),document.body.appendChild(f)}typeof console<"u"&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",I):I())}()}(v,`http://${J}`),v}(function zr(I){Or=I})({loadJS:I=>new Promise((f,v)=>{const S=document.createElement("script");S.setAttribute("src",I),S.onload=f,S.onerror=J=>{const be=Fe("internal-error");be.customData=J,v(be)},S.type="text/javascript",S.charset="UTF-8",function Lc(){var I,f;return null!==(f=null===(I=document.getElementsByTagName("head"))||void 0===I?void 0:I[0])&&void 0!==f?f:document}().appendChild(S)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function Dl(I){(0,ue.om)(new Se.uA("auth",(f,{options:v})=>{const S=f.getProvider("app").getImmediate(),J=f.getProvider("heartbeat"),be=f.getProvider("app-check-internal"),{apiKey:Dt,authDomain:Xt}=S.options;Nt(Dt&&!Dt.includes(":"),"invalid-api-key",{appName:S.name});const Dn={apiKey:Dt,authDomain:Xt,clientPlatform:I,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Ge(I)},$n=new xr(S,J,be,Dn);return function oi(I,f){const v=(null==f?void 0:f.persistence)||[],S=(Array.isArray(v)?v:[v]).map(hn);null!=f&&f.errorMap&&I._updateErrorMap(f.errorMap),I._initializeWithPersistence(S,null==f?void 0:f.popupRedirectResolver)}($n,v),$n},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((f,v,S)=>{f.getProvider("auth-internal").initialize()})),(0,ue.om)(new Se.uA("auth-internal",f=>{const v=On(f.getProvider("auth").getImmediate());return new Ma(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,ue.KO)(Vd,"1.7.4",function Fc(I){switch(I){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(I)),(0,ue.KO)(Vd,"1.7.4","esm2017")}("Browser");var ws=D(1985);function Hu(I){return new ws.c(function(f){return{unsubscribe:Hi(I,f.next.bind(f),f.error.bind(f),f.complete.bind(f))}})}class Qa{constructor(f){return f}}class Tl{constructor(){return(0,h.CA)("auth")}}const tu=new c.nKC("angularfire2.auth-instances");function uf(I){return(f,v)=>{const S=f.runOutsideAngular(()=>I(v));return new Qa(S)}}const cf={provide:Tl,deps:[[new c.Xx1,tu]]},lg={provide:Qa,useFactory:function $d(I,f){const v=(0,h.lR)("auth",I,f);return v&&new Qa(v)},deps:[[new c.Xx1,tu],Z.XU]};function bl(I,...f){return(0,Oe.KO)("angularfire",h.xv.full,"auth"),(0,c.EmA)([lg,cf,{provide:tu,useFactory:uf(I),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...f]}])}const Uc=(0,h.S3)(Hu,!0),Gu=(0,h.S3)(Os,!0),ug=(0,h.S3)(Bd,!0),qu=(0,h.S3)(As,!0)},4262:(Tn,gt,D)=>{"use strict";D.d(gt,{_7:()=>Eh,rJ:()=>_0,kd:()=>y0,H9:()=>lm,x7:()=>cm,GG:()=>o_,aU:()=>dm,hV:()=>e_,BN:()=>P0,mZ:()=>x0});var Ze,qe,h=D(5407),c=D(4438),Z=D(7440),Oe=D(8737),U=D(2214),ue=D(467),oe=D(7852),Xe=D(1362),Je=D(8041),Se=D(1076),De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qe={};(function(){var l;function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function u(xt,at,At){At||(At=0);var kt=Array(16);if("string"==typeof at)for(var Vt=0;16>Vt;++Vt)kt[Vt]=at.charCodeAt(At++)|at.charCodeAt(At++)<<8|at.charCodeAt(At++)<<16|at.charCodeAt(At++)<<24;else for(Vt=0;16>Vt;++Vt)kt[Vt]=at[At++]|at[At++]<<8|at[At++]<<16|at[At++]<<24;var qt=xt.g[3],vt=(at=xt.g[0])+(qt^(At=xt.g[1])&((Vt=xt.g[2])^qt))+kt[0]+3614090360&4294967295;vt=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=At+(vt<<7&4294967295|vt>>>25))+((vt=qt+(Vt^at&(At^Vt))+kt[1]+3905402710&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(At^qt&(at^At))+kt[2]+606105819&4294967295)<<17&4294967295|vt>>>15))+((vt=At+(at^Vt&(qt^at))+kt[3]+3250441966&4294967295)<<22&4294967295|vt>>>10))+((vt=at+(qt^At&(Vt^qt))+kt[4]+4118548399&4294967295)<<7&4294967295|vt>>>25))+((vt=qt+(Vt^at&(At^Vt))+kt[5]+1200080426&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(At^qt&(at^At))+kt[6]+2821735955&4294967295)<<17&4294967295|vt>>>15))+((vt=At+(at^Vt&(qt^at))+kt[7]+4249261313&4294967295)<<22&4294967295|vt>>>10))+((vt=at+(qt^At&(Vt^qt))+kt[8]+1770035416&4294967295)<<7&4294967295|vt>>>25))+((vt=qt+(Vt^at&(At^Vt))+kt[9]+2336552879&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(At^qt&(at^At))+kt[10]+4294925233&4294967295)<<17&4294967295|vt>>>15))+((vt=At+(at^Vt&(qt^at))+kt[11]+2304563134&4294967295)<<22&4294967295|vt>>>10))+((vt=at+(qt^At&(Vt^qt))+kt[12]+1804603682&4294967295)<<7&4294967295|vt>>>25))+((vt=qt+(Vt^at&(At^Vt))+kt[13]+4254626195&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(At^qt&(at^At))+kt[14]+2792965006&4294967295)<<17&4294967295|vt>>>15))+((vt=At+(at^Vt&(qt^at))+kt[15]+1236535329&4294967295)<<22&4294967295|vt>>>10))+((vt=at+(Vt^qt&(At^Vt))+kt[1]+4129170786&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(At^Vt&(at^At))+kt[6]+3225465664&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(at^At&(qt^at))+kt[11]+643717713&4294967295)<<14&4294967295|vt>>>18))+((vt=At+(qt^at&(Vt^qt))+kt[0]+3921069994&4294967295)<<20&4294967295|vt>>>12))+((vt=at+(Vt^qt&(At^Vt))+kt[5]+3593408605&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(At^Vt&(at^At))+kt[10]+38016083&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(at^At&(qt^at))+kt[15]+3634488961&4294967295)<<14&4294967295|vt>>>18))+((vt=At+(qt^at&(Vt^qt))+kt[4]+3889429448&4294967295)<<20&4294967295|vt>>>12))+((vt=at+(Vt^qt&(At^Vt))+kt[9]+568446438&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(At^Vt&(at^At))+kt[14]+3275163606&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(at^At&(qt^at))+kt[3]+4107603335&4294967295)<<14&4294967295|vt>>>18))+((vt=At+(qt^at&(Vt^qt))+kt[8]+1163531501&4294967295)<<20&4294967295|vt>>>12))+((vt=at+(Vt^qt&(At^Vt))+kt[13]+2850285829&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(At^Vt&(at^At))+kt[2]+4243563512&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(at^At&(qt^at))+kt[7]+1735328473&4294967295)<<14&4294967295|vt>>>18))+((vt=At+(qt^at&(Vt^qt))+kt[12]+2368359562&4294967295)<<20&4294967295|vt>>>12))+((vt=at+(At^Vt^qt)+kt[5]+4294588738&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(at^At^Vt)+kt[8]+2272392833&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^at^At)+kt[11]+1839030562&4294967295)<<16&4294967295|vt>>>16))+((vt=At+(Vt^qt^at)+kt[14]+4259657740&4294967295)<<23&4294967295|vt>>>9))+((vt=at+(At^Vt^qt)+kt[1]+2763975236&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(at^At^Vt)+kt[4]+1272893353&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^at^At)+kt[7]+4139469664&4294967295)<<16&4294967295|vt>>>16))+((vt=At+(Vt^qt^at)+kt[10]+3200236656&4294967295)<<23&4294967295|vt>>>9))+((vt=at+(At^Vt^qt)+kt[13]+681279174&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(at^At^Vt)+kt[0]+3936430074&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^at^At)+kt[3]+3572445317&4294967295)<<16&4294967295|vt>>>16))+((vt=At+(Vt^qt^at)+kt[6]+76029189&4294967295)<<23&4294967295|vt>>>9))+((vt=at+(At^Vt^qt)+kt[9]+3654602809&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(at^At^Vt)+kt[12]+3873151461&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^at^At)+kt[15]+530742520&4294967295)<<16&4294967295|vt>>>16))+((vt=At+(Vt^qt^at)+kt[2]+3299628645&4294967295)<<23&4294967295|vt>>>9))+((vt=at+(Vt^(At|~qt))+kt[0]+4096336452&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(At^(at|~Vt))+kt[7]+1126891415&4294967295)<<10&4294967295|vt>>>22))+((vt=Vt+(at^(qt|~At))+kt[14]+2878612391&4294967295)<<15&4294967295|vt>>>17))+((vt=At+(qt^(Vt|~at))+kt[5]+4237533241&4294967295)<<21&4294967295|vt>>>11))+((vt=at+(Vt^(At|~qt))+kt[12]+1700485571&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(At^(at|~Vt))+kt[3]+2399980690&4294967295)<<10&4294967295|vt>>>22))+((vt=Vt+(at^(qt|~At))+kt[10]+4293915773&4294967295)<<15&4294967295|vt>>>17))+((vt=At+(qt^(Vt|~at))+kt[1]+2240044497&4294967295)<<21&4294967295|vt>>>11))+((vt=at+(Vt^(At|~qt))+kt[8]+1873313359&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(At^(at|~Vt))+kt[15]+4264355552&4294967295)<<10&4294967295|vt>>>22))+((vt=Vt+(at^(qt|~At))+kt[6]+2734768916&4294967295)<<15&4294967295|vt>>>17))+((vt=At+(qt^(Vt|~at))+kt[13]+1309151649&4294967295)<<21&4294967295|vt>>>11))+((qt=(at=At+((vt=at+(Vt^(At|~qt))+kt[4]+4149444226&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(At^(at|~Vt))+kt[11]+3174756917&4294967295)<<10&4294967295|vt>>>22))^((Vt=qt+((vt=Vt+(at^(qt|~At))+kt[2]+718787259&4294967295)<<15&4294967295|vt>>>17))|~at))+kt[9]+3951481745&4294967295,xt.g[0]=xt.g[0]+at&4294967295,xt.g[1]=xt.g[1]+(Vt+(vt<<21&4294967295|vt>>>11))&4294967295,xt.g[2]=xt.g[2]+Vt&4294967295,xt.g[3]=xt.g[3]+qt&4294967295}function _(xt,at){this.h=at;for(var At=[],kt=!0,Vt=xt.length-1;0<=Vt;Vt--){var qt=0|xt[Vt];kt&&qt==at||(At[Vt]=qt,kt=!1)}this.g=At}(function n(xt,at){function At(){}At.prototype=at.prototype,xt.D=at.prototype,xt.prototype=new At,xt.prototype.constructor=xt,xt.C=function(kt,Vt,qt){for(var vt=Array(arguments.length-2),Nl=2;Nlthis.h?this.blockSize:2*this.blockSize)-this.h);xt[0]=128;for(var at=1;atat;++at)for(var kt=0;32>kt;kt+=8)xt[At++]=this.g[at]>>>kt&255;return xt};var R={};function k(xt){return-128<=xt&&128>xt?function p(xt,at){var At=R;return Object.prototype.hasOwnProperty.call(At,xt)?At[xt]:At[xt]=at(xt)}(xt,function(at){return new _([0|at],0>at?-1:0)}):new _([0|xt],0>xt?-1:0)}function q(xt){if(isNaN(xt)||!isFinite(xt))return ze;if(0>xt)return Sn(q(-xt));for(var at=[],At=1,kt=0;xt>=At;kt++)at[kt]=xt/At|0,At*=4294967296;return new _(at,0)}var ze=k(0),pt=k(1),Ht=k(16777216);function An(xt){if(0!=xt.h)return!1;for(var at=0;at>>16,xt[at]&=65535,at++}function _r(xt,at){this.g=xt,this.h=at}function Yr(xt,at){if(An(at))throw Error("division by zero");if(An(xt))return new _r(ze,ze);if(kn(xt))return at=Yr(Sn(xt),at),new _r(Sn(at.g),Sn(at.h));if(kn(at))return at=Yr(xt,Sn(at)),new _r(Sn(at.g),at.h);if(30=kt.l(xt);)At=Li(At),kt=Li(kt);var Vt=fi(At,1),qt=fi(kt,1);for(kt=fi(kt,2),At=fi(At,2);!An(kt);){var vt=qt.add(kt);0>=vt.l(xt)&&(Vt=Vt.add(At),qt=vt),kt=fi(kt,1),At=fi(At,1)}return at=hr(xt,Vt.j(at)),new _r(Vt,at)}for(Vt=ze;0<=xt.l(at);){for(At=Math.max(1,Math.floor(xt.m()/at.m())),kt=48>=(kt=Math.ceil(Math.log(At)/Math.LN2))?1:Math.pow(2,kt-48),vt=(qt=q(At)).j(at);kn(vt)||0>>31;return new _(At,xt.h)}function fi(xt,at){var At=at>>5;at%=32;for(var kt=xt.g.length-At,Vt=[],qt=0;qt>>at|xt.i(qt+At+1)<<32-at:xt.i(qt+At);return new _(Vt,xt.h)}(l=_.prototype).m=function(){if(kn(this))return-Sn(this).m();for(var xt=0,at=1,At=0;At(xt=xt||10)||36>>0).toString(xt);if(An(At=Vt))return qt+kt;for(;6>qt.length;)qt="0"+qt;kt=qt+kt}},l.i=function(xt){return 0>xt?0:xt>>16)+(this.i(Vt)>>>16)+(xt.i(Vt)>>>16);kt=vt>>>16,At[Vt]=(vt&=65535)<<16|(qt&=65535)}return new _(At,-2147483648&At[At.length-1]?-1:0)},l.j=function(xt){if(An(this)||An(xt))return ze;if(kn(this))return kn(xt)?Sn(this).j(Sn(xt)):Sn(Sn(this).j(xt));if(kn(xt))return Sn(this.j(Sn(xt)));if(0>this.l(Ht)&&0>xt.l(Ht))return q(this.m()*xt.m());for(var at=this.g.length+xt.g.length,At=[],kt=0;kt<2*at;kt++)At[kt]=0;for(kt=0;kt>>16,vt=65535&this.i(kt),Nl=xt.i(Vt)>>>16,cc=65535&xt.i(Vt);At[2*kt+2*Vt]+=vt*cc,Mr(At,2*kt+2*Vt),At[2*kt+2*Vt+1]+=qt*cc,Mr(At,2*kt+2*Vt+1),At[2*kt+2*Vt+1]+=vt*Nl,Mr(At,2*kt+2*Vt+1),At[2*kt+2*Vt+2]+=qt*Nl,Mr(At,2*kt+2*Vt+2)}for(kt=0;kt(at=at||10)||36qt?(qt=q(Math.pow(at,qt)),kt=kt.j(qt).add(q(vt))):kt=(kt=kt.j(At)).add(q(vt))}return kt},Ze=Qe.Integer=_}).apply(typeof De<"u"?De:typeof self<"u"?self:typeof window<"u"?window:{});var St,yt,_t,Et,mt,Me,Ye,ge,Ue,ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Tt={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,V,Q){return m==Array.prototype||m==Object.prototype||(m[V]=Q.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof ht&&ht];for(var V=0;V{throw m},0)}function vt(){var m=pm;let V=null;return m.g&&(V=m.g,m.g=m.g.next,m.g||(m.h=null),V.next=null),V}var cc=new class hr{constructor(V,Q){this.i=V,this.j=Q,this.h=0,this.g=null}get(){let V;return 0new O0,m=>m.reset());class O0{constructor(){this.next=this.g=this.h=null}set(V,Q){this.h=V,this.g=Q,this.next=null}reset(){this.next=this.g=this.h=null}}let ld,Ah=!1,pm=new class Nl{constructor(){this.h=this.g=null}add(V,Q){const Pe=cc.get();Pe.set(V,Q),this.h?this.h.next=Pe:this.g=Pe,this.h=Pe}},gm=()=>{const m=R.Promise.resolve(void 0);ld=()=>{m.then(N0)}};var N0=()=>{for(var m;m=vt();){try{m.h.call(m.g)}catch(Q){qt(Q)}var V=cc;V.j(m),100>V.h&&(V.h++,m.next=V.g,V.g=m)}Ah=!1};function mu(){this.s=this.s,this.C=this.C}function _o(m,V){this.type=m,this.g=this.target=V,this.defaultPrevented=!1}mu.prototype.s=!1,mu.prototype.ma=function(){this.s||(this.s=!0,this.N())},mu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},_o.prototype.h=function(){this.defaultPrevented=!0};var mm=function(){if(!R.addEventListener||!Object.defineProperty)return!1;var m=!1,V=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const Q=()=>{};R.addEventListener("test",Q,V),R.removeEventListener("test",Q,V)}catch{}return m}();function Ch(m,V){if(_o.call(this,m?m.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,m){var Q=this.type=m.type,Pe=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=V,V=m.relatedTarget){if(Li){e:{try{Yr(V.nodeName);var $t=!0;break e}catch{}$t=!1}$t||(V=null)}}else"mouseover"==Q?V=m.fromElement:"mouseout"==Q&&(V=m.toElement);this.relatedTarget=V,Pe?(this.clientX=void 0!==Pe.clientX?Pe.clientX:Pe.pageX,this.clientY=void 0!==Pe.clientY?Pe.clientY:Pe.pageY,this.screenX=Pe.screenX||0,this.screenY=Pe.screenY||0):(this.clientX=void 0!==m.clientX?m.clientX:m.pageX,this.clientY=void 0!==m.clientY?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0),this.button=m.button,this.key=m.key||"",this.ctrlKey=m.ctrlKey,this.altKey=m.altKey,this.shiftKey=m.shiftKey,this.metaKey=m.metaKey,this.pointerId=m.pointerId||0,this.pointerType="string"==typeof m.pointerType?m.pointerType:l_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Ch.aa.h.call(this)}}An(Ch,_o);var l_={2:"touch",3:"pen",4:"mouse"};Ch.prototype.h=function(){Ch.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var Dh="closure_listenable_"+(1e6*Math.random()|0),u_=0;function nA(m,V,Q,Pe,$t){this.listener=m,this.proxy=null,this.src=V,this.type=Q,this.capture=!!Pe,this.ha=$t,this.key=++u_,this.da=this.fa=!1}function lp(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function dc(m){this.src=m,this.g={},this.h=0}function up(m,V){var Q=V.type;if(Q in m.g){var nn,Pe=m.g[Q],$t=Array.prototype.indexOf.call(Pe,V,void 0);(nn=0<=$t)&&Array.prototype.splice.call(Pe,$t,1),nn&&(lp(V),0==m.g[Q].length&&(delete m.g[Q],m.h--))}}function vm(m,V,Q,Pe){for(var $t=0;$t>>0);function Cm(m){return"function"==typeof m?m:(m[Th]||(m[Th]=function(V){return m.handleEvent(V)}),m[Th])}function os(){mu.call(this),this.i=new dc(this),this.M=this,this.F=null}function Ko(m,V){var Q,Pe=m.F;if(Pe)for(Q=[];Pe;Pe=Pe.F)Q.push(Pe);if(m=m.M,Pe=V.type||V,"string"==typeof V)V=new _o(V,m);else if(V instanceof _o)V.target=V.target||m;else{var $t=V;kt(V=new _o(Pe,m),$t)}if($t=!0,Q)for(var nn=Q.length-1;0<=nn;nn--){var zn=V.g=Q[nn];$t=bh(zn,Pe,!0,V)&&$t}if($t=bh(zn=V.g=m,Pe,!0,V)&&$t,$t=bh(zn,Pe,!1,V)&&$t,Q)for(nn=0;nn{m.g=null,m.i&&(m.i=!1,Tm(m))},m.l);const V=m.h;m.h=null,m.m.apply(null,V)}An(os,mu),os.prototype[Dh]=!0,os.prototype.removeEventListener=function(m,V,Q,Pe){Em(this,m,V,Q,Pe)},os.prototype.N=function(){if(os.aa.N.call(this),this.i){var V,m=this.i;for(V in m.g){for(var Q=m.g[V],Pe=0;PePe.length)){var $t=Pe[1];if(Array.isArray($t)&&!(1>$t.length)){var nn=$t[0];if("noop"!=nn&&"stop"!=nn&&"close"!=nn)for(var zn=1;zn<$t.length;zn++)$t[zn]=""}}}return Sh(Q)}catch{return V}}(m,Q)+(Pe?" "+Pe:"")})}_u.La="serverreachability",An(h_,_o),_u.STAT_EVENT="statevent",An(Sm,_o),_u.Ma="timingevent",An(hd,_o),yu.prototype.xa=function(){this.g=!1},yu.prototype.info=function(){};var Rm,gp={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},g_={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function mp(){}function Eu(m,V,Q,Pe){this.j=m,this.i=V,this.l=Q,this.R=Pe||1,this.U=new wh(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new m_}function m_(){this.i=null,this.g="",this.h=!1}An(mp,dp),mp.prototype.g=function(){return new XMLHttpRequest},mp.prototype.i=function(){return{}},Rm=new mp;var v_={},Mm={};function pd(m,V,Q){m.L=1,m.v=Nh(ol(V)),m.m=Q,m.P=!0,__(m,null)}function __(m,V){m.F=Date.now(),Mh(m),m.A=ol(m.v);var Q=m.A,Pe=m.R;Array.isArray(Pe)||(Pe=[String(Pe)]),Bm(Q.i,"t",Pe),m.C=0,Q=m.j.J,m.h=new m_,m.g=F_(m.j,Q?V:null,!m.m),0V.length?Mm:(V=V.slice(Pe,Pe+Q),m.C=Pe+Q,V))}function Mh(m){m.S=Date.now()+m.I,vp(m,m.I)}function vp(m,V){if(null!=m.B)throw Error("WatchDog timer not null");m.B=fp(pt(m.ba,m),V)}function _p(m){m.B&&(R.clearTimeout(m.B),m.B=null)}function Ph(m){0==m.j.G||m.J||q0(m.j,m)}function Iu(m){_p(m);var V=m.M;V&&"function"==typeof V.ma&&V.ma(),m.M=null,bm(m.U),m.g&&(V=m.g,m.g=null,V.abort(),V.ma())}function xh(m,V){try{var Q=m.j;if(0!=Q.G&&(Q.g==m||xm(Q.h,m)))if(!m.K&&xm(Q.h,m)&&3==Q.G){try{var Pe=Q.Da.g.parse(V)}catch{Pe=null}if(Array.isArray(Pe)&&3==Pe.length){var $t=Pe;if(0==$t[0]){e:if(!Q.u){if(Q.g){if(!(Q.g.F+3e3$t[2]&&Q.F&&0==Q.v&&!Q.C&&(Q.C=fp(pt(Q.Za,Q),6e3));if(1>=C_(Q.h)&&Q.ca){try{Q.ca()}catch{}Q.ca=void 0}}else Cu(Q,11)}else if((m.K||Q.g==m)&&Bh(Q),!Mr(V))for($t=Q.Da.g.parse(V),V=0;V<$t.length;V++){let xi=$t[V];if(Q.T=xi[0],xi=xi[1],2==Q.G)if("c"==xi[0]){Q.K=xi[1],Q.ia=xi[2];const ss=xi[3];null!=ss&&(Q.la=ss,Q.j.info("VER="+Q.la));const gs=xi[4];null!=gs&&(Q.Aa=gs,Q.j.info("SVER="+Q.Aa));const Du=xi[5];null!=Du&&"number"==typeof Du&&0gs)&&(3!=gs||this.g&&(this.h.h||this.g.oa()||R_(this.g)))){this.J||4!=gs||7==V||fc(),_p(this);var Q=this.g.Z();this.X=Q;t:if(y_(this)){var Pe=R_(this.g);m="";var $t=Pe.length,nn=4==Au(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Iu(this),Ph(this);var zn="";break t}this.h.i=new R.TextDecoder}for(V=0;V<$t;V++)this.h.h=!0,m+=this.h.i.decode(Pe[V],{stream:!(nn&&V==$t-1)});Pe.length=0,this.h.g+=m,this.C=0,zn=this.h.g}else zn=this.g.oa();if(this.o=200==Q,function p_(m,V,Q,Pe,$t,nn,zn){m.info(function(){return"XMLHTTP RESP ("+Pe+") [ attempt "+$t+"]: "+V+"\n"+Q+"\n"+nn+" "+zn})}(this.i,this.u,this.A,this.l,this.R,gs,Q),this.o){if(this.T&&!this.K){t:{if(this.g){var Wi,so=this.g;if((Wi=so.g?so.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Mr(Wi)){var xi=Wi;break t}}xi=null}if(!(Q=xi)){this.o=!1,this.s=3,co(12),Iu(this),Ph(this);break e}fd(this.i,this.l,Q,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,xh(this,Q)}if(this.P){let js;for(Q=!0;!this.J&&this.C=m.j}function C_(m){return m.h?1:m.g?m.g.size:0}function xm(m,V){return m.h?m.h==V:!!m.g&&m.g.has(V)}function Oh(m,V){m.g?m.g.add(V):m.h=V}function yp(m,V){m.h&&m.h==V?m.h=null:m.g&&m.g.has(V)&&m.g.delete(V)}function Om(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let V=m.i;for(const Q of m.g.values())V=V.concat(Q.D);return V}return kn(m.i)}function D_(m,V){if(m.forEach&&"function"==typeof m.forEach)m.forEach(V,void 0);else if(k(m)||"string"==typeof m)Array.prototype.forEach.call(m,V,void 0);else for(var Q=function km(m){if(m.na&&"function"==typeof m.na)return m.na();if(!m.V||"function"!=typeof m.V){if(typeof Map<"u"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set<"u"&&m instanceof Set)){if(k(m)||"string"==typeof m){var V=[];m=m.length;for(var Q=0;QV)throw Error("Bad port number "+V);m.s=V}else m.s=null}function Fm(m,V,Q){V instanceof _d?(m.i=V,function w_(m,V){V&&!m.j&&(kl(m),m.i=null,m.g.forEach(function(Q,Pe){var $t=Pe.toLowerCase();Pe!=$t&&(Vm(this,Pe),Bm(this,$t,Q))},m)),m.j=V}(m.i,m.h)):(Q||(V=vd(V,rA)),m.i=new _d(V,m.h))}function Yi(m,V,Q){m.i.set(V,Q)}function Nh(m){return Yi(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function kh(m,V){return m?V?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function vd(m,V,Q){return"string"==typeof m?(m=encodeURI(m).replace(V,U0),Q&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function U0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}pc.prototype.toString=function(){var m=[],V=this.j;V&&m.push(vd(V,Ep,!0),":");var Q=this.g;return(Q||"file"==V)&&(m.push("//"),(V=this.o)&&m.push(vd(V,Ep,!0),"@"),m.push(encodeURIComponent(String(Q)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(Q=this.s)&&m.push(":",String(Q))),(Q=this.l)&&(this.g&&"/"!=Q.charAt(0)&&m.push("/"),m.push(vd(Q,"/"==Q.charAt(0)?Lm:b_,!0))),(Q=this.i.toString())&&m.push("?",Q),(Q=this.m)&&m.push("#",vd(Q,iA)),m.join("")};var Ep=/[#\/\?@]/g,b_=/[#\?:]/g,Lm=/[#\?]/g,rA=/[#\?@]/g,iA=/#/g;function _d(m,V){this.h=this.g=null,this.i=m||null,this.j=!!V}function kl(m){m.g||(m.g=new Map,m.h=0,m.i&&function B0(m,V){if(m){m=m.split("&");for(var Q=0;Q{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Cp(this)),this.readyState=0},l.Sa=function(m){if(this.g&&(this.l=m,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=m.headers,this.readyState=2,Dp(this)),this.g&&(this.readyState=3,Dp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof R.ReadableStream<"u"&&"body"in m){if(this.j=m.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;j0(this)}else m.text().then(this.Ra.bind(this),this.ga.bind(this))},l.Pa=function(m){if(this.g){if(this.o&&m.value)this.response.push(m.value);else if(!this.o){var V=m.value?m.value:new Uint8Array(0);(V=this.v.decode(V,{stream:!m.done}))&&(this.response=this.responseText+=V)}m.done?Cp(this):Dp(this),3==this.readyState&&j0(this)}},l.Ra=function(m){this.g&&(this.response=this.responseText=m,Cp(this))},l.Qa=function(m){this.g&&(this.response=m,Cp(this))},l.ga=function(){this.g&&Cp(this)},l.setRequestHeader=function(m,V){this.u.append(m,V)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],V=this.h.entries();for(var Q=V.next();!Q.done;)m.push((Q=Q.value)[0]+": "+Q[1]),Q=V.next();return m.join("\r\n")},Object.defineProperty(Um.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),An(yo,os);var aA=/^https?$/i,lA=["POST","PUT"];function z0(m,V){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=V,m.m=5,H0(m),jm(m)}function H0(m){m.A||(m.A=!0,Ko(m,"complete"),Ko(m,"error"))}function G0(m){if(m.h&&typeof _<"u"&&(!m.v[1]||4!=Au(m)||2!=m.Z()))if(m.u&&4==Au(m))Dm(m.Ea,0,m);else if(Ko(m,"readystatechange"),4==Au(m)){m.h=!1;try{const zn=m.Z();e:switch(zn){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var V=!0;break e;default:V=!1}var Q;if(!(Q=V)){var Pe;if(Pe=0===zn){var $t=String(m.D).match(T_)[1]||null;!$t&&R.self&&R.self.location&&($t=R.self.location.protocol.slice(0,-1)),Pe=!aA.test($t?$t.toLowerCase():"")}Q=Pe}if(Q)Ko(m,"complete"),Ko(m,"success");else{m.m=6;try{var nn=2{}:null;m.g=null,m.v=null,V||Ko(m,"ready");try{Q.onreadystatechange=Pe}catch{}}}function W0(m){m.I&&(R.clearTimeout(m.I),m.I=null)}function Au(m){return m.g?m.g.readyState:0}function R_(m){try{if(!m.g)return null;if("response"in m.g)return m.g.response;switch(m.H){case"":case"text":return m.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in m.g)return m.g.mozResponseArrayBuffer}return null}catch{return null}}function Fl(m,V,Q){return Q&&Q.internalChannelParams&&Q.internalChannelParams[m]||V}function M_(m){this.Aa=0,this.i=[],this.j=new yu,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Fl("failFast",!1,m),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Fl("baseRetryDelayMs",5e3,m),this.cb=Fl("retryDelaySeedMs",1e4,m),this.Wa=Fl("forwardChannelMaxRetries",2,m),this.wa=Fl("forwardChannelRequestTimeoutMs",2e4,m),this.pa=m&&m.xmlHttpFactory||void 0,this.Xa=m&&m.Tb||void 0,this.Ca=m&&m.useFetchStreams||!1,this.L=void 0,this.J=m&&m.supportsCrossDomainXhr||!1,this.K="",this.h=new Pm(m&&m.concurrentRequestLimit),this.Da=new oA,this.P=m&&m.fastHandshake||!1,this.O=m&&m.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=m&&m.Rb||!1,m&&m.xa&&this.j.xa(),m&&m.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&m&&m.detectBufferingProxy||!1,this.ja=void 0,m&&m.longPollingTimeout&&0xi)nn=Math.max(0,$t[so].g-100),Wi=!1;else try{sA(ss,zn,"req"+xi+"_")}catch{Pe&&Pe(ss)}}if(Wi){Pe=zn.join("&");break e}}}return m=m.i.splice(0,Q),V.D=m,Pe}function Hm(m){if(!m.g&&!m.u){m.Y=1;var V=m.Fa;ld||gm(),Ah||(ld(),Ah=!0),pm.add(V,m),m.v=0}}function Gm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=fp(pt(m.Fa,m),N_(m,m.v)),m.v++,0))}function bp(m){null!=m.A&&(R.clearTimeout(m.A),m.A=null)}function X0(m){m.g=new Eu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var V=ol(m.qa);Yi(V,"RID","rpc"),Yi(V,"SID",m.K),Yi(V,"AID",m.T),Yi(V,"CI",m.F?"0":"1"),!m.F&&m.ja&&Yi(V,"TO",m.ja),Yi(V,"TYPE","xmlhttp"),Lh(m,V),m.m&&m.o&&Tp(V,m.m,m.o),m.L&&(m.g.I=m.L);var Q=m.g;m=m.ia,Q.L=1,Q.v=Nh(ol(V)),Q.m=null,Q.P=!0,__(Q,m)}function Bh(m){null!=m.C&&(R.clearTimeout(m.C),m.C=null)}function q0(m,V){var Q=null;if(m.g==V){Bh(m),bp(m),m.g=null;var Pe=2}else{if(!xm(m.h,V))return;Q=V.D,yp(m.h,V),Pe=1}if(0!=m.G)if(V.o)if(1==Pe){Q=V.m?V.m.length:0,V=Date.now()-V.F;var $t=m.B;Ko(Pe=hp(),new hd(Pe,Q)),zm(m)}else Hm(m);else if(3==($t=V.s)||0==$t&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=V.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=fp(pt(m.Ga,m,V),N_(m,m.B)),m.B++,0)))}(m,V)||2==Pe&&Gm(m)))switch(Q&&0{Pe.abort(),mc(0,0,!1,V)},1e4);fetch(m,{signal:Pe.signal}).then(nn=>{clearTimeout($t),mc(0,0,!!nn.ok,V)}).catch(()=>{clearTimeout($t),mc(0,0,!1,V)})}(Pe.toString(),Q)}else co(2);m.G=0,m.l&&m.l.sa(V),wp(m),x_(m)}function wp(m){if(m.G=0,m.ka=[],m.l){const V=Om(m.h);(0!=V.length||0!=m.i.length)&&(Sn(m.ka,V),Sn(m.ka,m.i),m.h.i.length=0,kn(m.i),m.i.length=0),m.l.ra()}}function k_(m,V,Q){var Pe=Q instanceof pc?ol(Q):new pc(Q);if(""!=Pe.g)V&&(Pe.g=V+"."+Pe.g),md(Pe,Pe.s);else{var $t=R.location;Pe=$t.protocol,V=V?V+"."+$t.hostname:$t.hostname,$t=+$t.port;var nn=new pc(null);Pe&&gd(nn,Pe),V&&(nn.g=V),$t&&md(nn,$t),Q&&(nn.l=Q),Pe=nn}return V=m.ya,(Q=m.D)&&V&&Yi(Pe,Q,V),Yi(Pe,"VER",m.la),Lh(m,Pe),Pe}function F_(m,V,Q){if(V&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(V=new yo(m.Ca&&!m.pa?new Ap({eb:Q}):m.pa)).Ha(m.J),V}function Uh(){}function Sp(){}function $s(m,V){os.call(this),this.g=new M_(V),this.l=m,this.h=V&&V.messageUrlParams||null,m=V&&V.messageHeaders||null,V&&V.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=V&&V.initMessageHeaders||null,V&&V.messageContentType&&(m?m["X-WebChannel-Content-Type"]=V.messageContentType:m={"X-WebChannel-Content-Type":V.messageContentType}),V&&V.va&&(m?m["X-WebChannel-Client-Profile"]=V.va:m={"X-WebChannel-Client-Profile":V.va}),this.g.S=m,(m=V&&V.Sb)&&!Mr(m)&&(this.g.m=m),this.v=V&&V.supportsCrossDomainXhr||!1,this.u=V&&V.sendRawJson||!1,(V=V&&V.httpSessionIdParam)&&!Mr(V)&&(this.g.D=V,null!==(m=this.h)&&V in m&&V in(m=this.h)&&delete m[V]),this.j=new Ed(this)}function L_(m){il.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var V=m.__sm__;if(V){e:{for(const Q in V){m=Q;break e}m=void 0}(this.i=m)&&(m=this.i,V=null!==V&&m in V?V[m]:void 0),this.data=V}else this.data=m}function V_(){cd.call(this),this.status=1}function Ed(m){this.g=m}(l=yo.prototype).Ha=function(m){this.J=m},l.ea=function(m,V,Q,Pe){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);V=V?V.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Rm.g(),this.v=function wm(m){return m.h||(m.h=m.i())}(this.o?this.o:Rm),this.g.onreadystatechange=pt(this.Ea,this);try{this.B=!0,this.g.open(V,String(m),!0),this.B=!1}catch(nn){return void z0(this,nn)}if(m=Q||"",Q=new Map(this.headers),Pe)if(Object.getPrototypeOf(Pe)===Object.prototype)for(var $t in Pe)Q.set($t,Pe[$t]);else{if("function"!=typeof Pe.keys||"function"!=typeof Pe.get)throw Error("Unknown input type for opt_headers: "+String(Pe));for(const nn of Pe.keys())Q.set(nn,Pe.get(nn))}Pe=Array.from(Q.keys()).find(nn=>"content-type"==nn.toLowerCase()),$t=R.FormData&&m instanceof R.FormData,!(0<=Array.prototype.indexOf.call(lA,V,void 0))||Pe||$t||Q.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[nn,zn]of Q)this.g.setRequestHeader(nn,zn);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{W0(this),this.u=!0,this.g.send(m),this.u=!1}catch(nn){z0(this,nn)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,Ko(this,"complete"),Ko(this,"abort"),jm(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),jm(this,!0)),yo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?G0(this):this.bb())},l.bb=function(){G0(this)},l.isActive=function(){return!!this.g},l.Z=function(){try{return 2=this.R)){var m=2*this.R;this.j.info("BP detection timer enabled: "+m),this.A=fp(pt(this.ab,this),m)}},l.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,co(10),Fh(this),X0(this))},l.Za=function(){null!=this.C&&(this.C=null,Fh(this),Gm(this),co(19))},l.fb=function(m){m?(this.j.info("Successfully pinged google.com"),co(2)):(this.j.info("Failed to ping google.com"),co(1))},l.isActive=function(){return!!this.l&&this.l.isActive(this)},(l=Uh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},Sp.prototype.g=function(m,V){return new $s(m,V)},An($s,os),$s.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},$s.prototype.close=function(){P_(this.g)},$s.prototype.o=function(m){var V=this.g;if("string"==typeof m){var Q={};Q.__data__=m,m=Q}else this.u&&((Q={}).__data__=Sh(m),m=Q);V.i.push(new I_(V.Ya++,m)),3==V.G&&zm(V)},$s.prototype.N=function(){this.g.l=null,delete this.j,P_(this.g),delete this.g,$s.aa.N.call(this)},An(L_,il),An(V_,cd),An(Ed,Uh),Ed.prototype.ua=function(){Ko(this.g,"a")},Ed.prototype.ta=function(m){Ko(this.g,new L_(m))},Ed.prototype.sa=function(m){Ko(this.g,new V_)},Ed.prototype.ra=function(){Ko(this.g,"b")},Sp.prototype.createWebChannel=Sp.prototype.g,$s.prototype.send=$s.prototype.o,$s.prototype.open=$s.prototype.m,$s.prototype.close=$s.prototype.close,Ue=Tt.createWebChannelTransport=function(){return new Sp},ge=Tt.getStatEventTarget=function(){return hp()},Ye=Tt.Event=_u,Me=Tt.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},gp.NO_ERROR=0,gp.TIMEOUT=8,gp.HTTP_ERROR=6,mt=Tt.ErrorCode=gp,g_.COMPLETE="complete",Et=Tt.EventType=g_,ud.EventType=hc,hc.OPEN="a",hc.CLOSE="b",hc.ERROR="c",hc.MESSAGE="d",os.prototype.listen=os.prototype.K,_t=Tt.WebChannel=ud,yt=Tt.FetchXmlHttpFactory=Ap,yo.prototype.listenOnce=yo.prototype.L,yo.prototype.getLastError=yo.prototype.Ka,yo.prototype.getLastErrorCode=yo.prototype.Ba,yo.prototype.getStatus=yo.prototype.Z,yo.prototype.getResponseJson=yo.prototype.Oa,yo.prototype.getResponseText=yo.prototype.oa,yo.prototype.send=yo.prototype.ea,yo.prototype.setWithCredentials=yo.prototype.Ha,St=Tt.XhrIo=yo}).apply(typeof ht<"u"?ht:typeof self<"u"?self:typeof window<"u"?window:{});const Fe="@firebase/firestore";class xe{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}xe.UNAUTHENTICATED=new xe(null),xe.GOOGLE_CREDENTIALS=new xe("google-credentials-uid"),xe.FIRST_PARTY=new xe("first-party-uid"),xe.MOCK_USER=new xe("mock-user");let rt="10.12.1";const Rt=new Je.Vy("@firebase/firestore");function vn(){return Rt.logLevel}function tt(l,...n){if(Rt.logLevel<=Je.$b.DEBUG){const i=n.map(we);Rt.debug(`Firestore (${rt}): ${l}`,...i)}}function on(l,...n){if(Rt.logLevel<=Je.$b.ERROR){const i=n.map(we);Rt.error(`Firestore (${rt}): ${l}`,...i)}}function dt(l,...n){if(Rt.logLevel<=Je.$b.WARN){const i=n.map(we);Rt.warn(`Firestore (${rt}): ${l}`,...i)}}function we(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function H(l="Unexpected state"){const n=`FIRESTORE (${rt}) INTERNAL ASSERTION FAILED: `+l;throw on(n),new Error(n)}function X(l,n){l||H()}function se(l,n){return l}const ve={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Le extends Se.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class _e{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class Wt{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class dn{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(xe.UNAUTHENTICATED))}shutdown(){}}class Kt{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,i){this.changeListener=i,n.enqueueRetryable(()=>i(this.token.user))}shutdown(){this.changeListener=null}}class rn{constructor(n){this.t=n,this.currentUser=xe.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const p=q=>this.i!==u?(u=this.i,i(q)):Promise.resolve();let _=new _e;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new _e,n.enqueueRetryable(()=>p(this.currentUser))};const R=()=>{const q=_;n.enqueueRetryable((0,ue.A)(function*(){yield q.promise,yield p(s.currentUser)}))},k=q=>{tt("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=q,this.auth.addAuthTokenListener(this.o),R()};this.t.onInit(q=>k(q)),setTimeout(()=>{if(!this.auth){const q=this.t.getImmediate({optional:!0});q?k(q):(tt("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new _e)}},0),R()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(tt("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(X("string"==typeof s.accessToken),new Wt(s.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return X(null===n||"string"==typeof n),new xe(n)}}class Ln{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=xe.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class Zn{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new Ln(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(xe.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class nr{constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class er{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,i){const s=p=>{null!=p.error&&tt("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${p.error.message}`);const _=p.token!==this.R;return this.R=p.token,tt("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(p.token):Promise.resolve()};this.o=p=>{n.enqueueRetryable(()=>s(p))};const u=p=>{tt("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=p,this.appCheck.addTokenListener(this.o)};this.A.onInit(p=>u(p)),setTimeout(()=>{if(!this.appCheck){const p=this.A.getImmediate({optional:!0});p?u(p):tt("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(X("string"==typeof i.token),this.R=i.token,new nr(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function rr(l){const n=typeof self<"u"&&(self.crypto||self.msCrypto),i=new Uint8Array(l);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(i);else for(let s=0;sn?1:0}function Ot(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class pn{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new Le(ve.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new Le(ve.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new Le(ve.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new Le(ve.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return pn.fromMillis(Date.now())}static fromDate(n){return pn.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new pn(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?nt(this.nanoseconds,n.nanoseconds):nt(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class gn{constructor(n){this.timestamp=n}static fromTimestamp(n){return new gn(n)}static min(){return new gn(new pn(0,0))}static max(){return new gn(new pn(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Sr{constructor(n,i,s){void 0===i?i=0:i>n.length&&H(),void 0===s?s=n.length-i:s>n.length-i&&H(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Sr.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Sr?n.forEach(s=>{i.push(s)}):i.push(n),this.construct(i)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.length_)return 1}return n.lengthi.length?1:0}}class Mn extends Sr{construct(n,i,s){return new Mn(n,i,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const i=[];for(const s of n){if(s.indexOf("//")>=0)throw new Le(ve.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new Mn(i)}static emptyPath(){return new Mn([])}}const xn=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class mn extends Sr{construct(n,i,s){return new mn(n,i,s)}static isValidIdentifier(n){return xn.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),mn.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new mn(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const p=()=>{if(0===s.length)throw new Le(ve.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);i.push(s),s=""};let _=!1;for(;u=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===Mn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return Mn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new en(new Mn(n.slice()))}}class Pr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Pr(gn.min(),en.empty(),-1)}static max(){return new Pr(gn.max(),en.empty(),-1)}}function cr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=en.comparator(l.documentKey,n.documentKey),0!==i?i:nt(l.largestBatchId,n.largestBatchId))}const kr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class ii{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Ai(l){return Qr.apply(this,arguments)}function Qr(){return(Qr=(0,ue.A)(function*(l){if(l.code!==ve.FAILED_PRECONDITION||l.message!==kr)throw l;tt("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class pe{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(i=>{this.isDone=!0,this.result=i,this.nextCallback&&this.nextCallback(i)},i=>{this.isDone=!0,this.error=i,this.catchCallback&&this.catchCallback(i)})}catch(n){return this.next(void 0,n)}next(n,i){return this.callbackAttached&&H(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new pe((s,u)=>{this.nextCallback=p=>{this.wrapSuccess(n,p).next(s,u)},this.catchCallback=p=>{this.wrapFailure(i,p).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof pe?i:pe.resolve(i)}catch(i){return pe.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):pe.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):pe.reject(i)}static resolve(n){return new pe((i,s)=>{i(n)})}static reject(n){return new pe((i,s)=>{s(n)})}static waitFor(n){return new pe((i,s)=>{let u=0,p=0,_=!1;n.forEach(R=>{++u,R.next(()=>{++p,_&&p===u&&i()},k=>s(k))}),_=!0,p===u&&i()})}static or(n){let i=pe.resolve(!1);for(const s of n)i=i.next(u=>u?pe.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,p)=>{s.push(i.call(this,u,p))}),this.waitFor(s)}static mapArray(n,i){return new pe((s,u)=>{const p=n.length,_=new Array(p);let R=0;for(let k=0;k{_[q]=ye,++R,R===p&&s(_)},ye=>u(ye))}})}static doWhile(n,i){return new pe((s,u)=>{const p=()=>{!0===n()?i().next(()=>{p()},u):s()};p()})}}function He(l){return"IndexedDbTransactionError"===l.name}let _n=(()=>{class l{constructor(i,s){this.previousValue=i,s&&(s.sequenceNumberHandler=u=>this.ie(u),this.se=u=>s.writeSequenceNumber(u))}ie(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue}next(){const i=++this.previousValue;return this.se&&this.se(i),i}}return l.oe=-1,l})();function qn(l){return null==l}function hn(l){return 0===l&&1/l==-1/0}function Cr(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function ai(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function ei(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class Lr{constructor(n,i){this.comparator=n,this.root=i||Wn.EMPTY}insert(n,i){return new Lr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,Wn.BLACK,null,null))}remove(n){return new Lr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,Wn.BLACK,null,null))}get(n){let i=this.root;for(;!i.isEmpty();){const s=this.comparator(n,i.key);if(0===s)return i.value;s<0?i=i.left:s>0&&(i=i.right)}return null}indexOf(n){let i=0,s=this.root;for(;!s.isEmpty();){const u=this.comparator(n,s.key);if(0===u)return i+s.left.size;u<0?s=s.left:(i+=s.left.size+1,s=s.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((i,s)=>(n(i,s),!1))}toString(){const n=[];return this.inorderTraversal((i,s)=>(n.push(`${i}:${s}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new mi(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new mi(this.root,n,this.comparator,!1)}getReverseIterator(){return new mi(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new mi(this.root,n,this.comparator,!0)}}class mi{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let p=1;for(;!n.isEmpty();)if(p=i?s(n.key,i):1,i&&u&&(p*=-1),p<0)n=this.isReverse?n.left:n.right;else{if(0===p){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const i={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return i}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class Wn{constructor(n,i,s,u,p){this.key=n,this.value=i,this.color=null!=s?s:Wn.RED,this.left=null!=u?u:Wn.EMPTY,this.right=null!=p?p:Wn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,p){return new Wn(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=p?p:this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,i,s){let u=this;const p=s(n,u.key);return u=p<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===p?u.copy(null,i,null,null,null):u.copy(null,null,null,null,u.right.insert(n,i,s)),u.fixUp()}removeMin(){if(this.left.isEmpty())return Wn.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,i){let s,u=this;if(i(n,u.key)<0)u.left.isEmpty()||u.left.isRed()||u.left.left.isRed()||(u=u.moveRedLeft()),u=u.copy(null,null,null,u.left.remove(n,i),null);else{if(u.left.isRed()&&(u=u.rotateRight()),u.right.isEmpty()||u.right.isRed()||u.right.left.isRed()||(u=u.moveRedRight()),0===i(n,u.key)){if(u.right.isEmpty())return Wn.EMPTY;s=u.right.min(),u=u.copy(s.key,s.value,null,null,u.right.removeMin())}u=u.copy(null,null,null,null,u.right.remove(n,i))}return u.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,Wn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,Wn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),i=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,i)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw H();const n=this.left.check();if(n!==this.right.check())throw H();return n+(this.isRed()?0:1)}}Wn.EMPTY=null,Wn.RED=!0,Wn.BLACK=!1,Wn.EMPTY=new class{constructor(){this.size=0}get key(){throw H()}get value(){throw H()}get color(){throw H()}get left(){throw H()}get right(){throw H()}copy(n,i,s,u,p){return this}insert(n,i,s){return new Wn(n,i)}remove(n,i){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Hn{constructor(n){this.comparator=n,this.data=new Lr(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((i,s)=>(n(i),!1))}forEachInRange(n,i){const s=this.data.getIteratorFrom(n[0]);for(;s.hasNext();){const u=s.getNext();if(this.comparator(u.key,n[1])>=0)return;i(u.key)}}forEachWhile(n,i){let s;for(s=void 0!==i?this.data.getIteratorFrom(i):this.data.getIterator();s.hasNext();)if(!n(s.getNext().key))return}firstAfterOrEqual(n){const i=this.data.getIteratorFrom(n);return i.hasNext()?i.getNext().key:null}getIterator(){return new ao(this.data.getIterator())}getIteratorFrom(n){return new ao(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let i=this;return i.size{i=i.add(s)}),i}isEqual(n){if(!(n instanceof Hn)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(0!==this.comparator(u,p))return!1}return!0}toArray(){const n=[];return this.forEach(i=>{n.push(i)}),n}toString(){const n=[];return this.forEach(i=>n.push(i)),"SortedSet("+n.toString()+")"}copy(n){const i=new Hn(this.comparator);return i.data=n,i}}class ao{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Ci{constructor(n){this.fields=n,n.sort(mn.comparator)}static empty(){return new Ci([])}unionWith(n){let i=new Hn(mn.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new Ci(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return Ot(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class Eo extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class oi{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(p){throw typeof DOMException<"u"&&p instanceof DOMException?new Eo("Invalid base64 string: "+p):p}}(n);return new oi(i)}static fromUint8Array(n){const i=function(u){let p="";for(let _=0;_nre(i,n))}function Ie(l,n){if(l===n)return 0;const i=j(l),s=j(n);if(i!==s)return nt(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return nt(l.booleanValue,n.booleanValue);case 2:return function(p,_){const R=le(p.integerValue||p.doubleValue),k=le(_.integerValue||_.doubleValue);return Rk?1:R===k?0:isNaN(R)?isNaN(k)?0:-1:1}(l,n);case 3:return ot(l.timestampValue,n.timestampValue);case 4:return ot(st(l),st(n));case 5:return nt(l.stringValue,n.stringValue);case 6:return function(p,_){const R=W(p),k=W(_);return R.compareTo(k)}(l.bytesValue,n.bytesValue);case 7:return function(p,_){const R=p.split("/"),k=_.split("/");for(let q=0;qn.mapValue.fields[i]=sn(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=sn(l.arrayValue.values[i]);return n}return Object.assign({},l)}function cn(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class Vn{constructor(n){this.value=n}static empty(){return new Vn({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(R)){const k=this.getFieldsMap(i);this.applyChanges(k,s,u),s={},u=[],i=R.popLast()}_?s[R.lastSegment()]=sn(_):u.push(R.lastSegment())});const p=this.getFieldsMap(i);this.applyChanges(p,s,u)}delete(n){const i=this.field(n.popLast());Yt(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return re(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=p);for(const u of s)delete n[u]}clone(){return new Vn(sn(this.value))}}function qr(l){const n=[];return ai(l.fields,(i,s)=>{const u=new mn([i]);if(Yt(s)){const p=qr(s.mapValue).fields;if(0===p.length)n.push(u);else for(const _ of p)n.push(u.child(_))}else n.push(u)}),new Ci(n)}class jr{constructor(n,i,s,u,p,_,R){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=p,this.data=_,this.documentState=R}static newInvalidDocument(n){return new jr(n,0,gn.min(),gn.min(),gn.min(),Vn.empty(),0)}static newFoundDocument(n,i,s,u){return new jr(n,1,i,gn.min(),s,u,0)}static newNoDocument(n,i){return new jr(n,2,i,gn.min(),gn.min(),Vn.empty(),0)}static newUnknownDocument(n,i){return new jr(n,3,i,gn.min(),gn.min(),Vn.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(gn.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=i,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=Vn.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=Vn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=gn.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof jr&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new jr(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class br{constructor(n,i){this.position=n,this.inclusive=i}}function wi(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return H()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Ti extends as{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Ti(n,i)}matches(n){return Qo(this)?void 0===this.filters.find(i=>!i.matches(n)):void 0!==this.filters.find(i=>i.matches(n))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((n,i)=>n.concat(i.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function Qo(l){return"and"===l.op}function Bo(l){return function Io(l){for(const n of l.filters)if(n instanceof Ti)return!1;return!0}(l)&&Qo(l)}function Ss(l){if(l instanceof Ur)return l.field.canonicalString()+l.op.toString()+sr(l.value);if(Bo(l))return l.filters.map(n=>Ss(n)).join(",");{const n=l.filters.map(i=>Ss(i)).join(",");return`${l.op}(${n})`}}function no(l,n){return l instanceof Ur?(s=l,(u=n)instanceof Ur&&s.op===u.op&&s.field.isEqual(u.field)&&re(s.value,u.value)):l instanceof Ti?function(s,u){return u instanceof Ti&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((p,_,R)=>p&&no(_,u.filters[R]),!0)}(l,n):void H();var s,u}function Kr(l){return l instanceof Ur?`${(i=l).field.canonicalString()} ${i.op} ${sr(i.value)}`:l instanceof Ti?function(i){return i.op.toString()+" {"+i.getFilters().map(Kr).join(" ,")+"}"}(l):"Filter";var i}class fo extends Ur{constructor(n,i,s){super(n,i,s),this.key=en.fromName(s.referenceValue)}matches(n){const i=en.comparator(n.key,this.key);return this.matchesComparison(i)}}class ka extends Ur{constructor(n,i){super(n,"in",i),this.keys=Hs(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class Rs extends Ur{constructor(n,i){super(n,"not-in",i),this.keys=Hs(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function Hs(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>en.fromName(s.referenceValue))}class Ms extends Ur{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return et(i)&&P(i.arrayValue,this.value)}}class ls extends Ur{constructor(n,i){super(n,"in",i)}matches(n){const i=n.data.field(this.field);return null!==i&&P(this.value.arrayValue,i)}}class us extends Ur{constructor(n,i){super(n,"not-in",i)}matches(n){if(P(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!P(this.value.arrayValue,i)}}class Uo extends Ur{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!et(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>P(this.value.arrayValue,s))}}class vs{constructor(n,i=null,s=[],u=[],p=null,_=null,R=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=p,this.startAt=_,this.endAt=R,this.ue=null}}function Ps(l,n=null,i=[],s=[],u=null,p=null,_=null){return new vs(l,n,i,s,u,p,_)}function xs(l){const n=se(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>Ss(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(p=s).field.canonicalString()+p.dir;var p}).join(","),qn(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>sr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>sr(s)).join(",")),n.ue=i}return n.ue}function Ao(l,n){if(l.limit!==n.limit||l.orderBy.length!==n.orderBy.length)return!1;for(let i=0;i0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(_){let R=new Hn(mn.comparator);return _.filters.forEach(k=>{k.getFlattenedFilters().forEach(q=>{q.isInequality()&&(R=R.add(q.field))})}),R})(n).forEach(p=>{i.has(p.canonicalString())||p.isKeyField()||n.ce.push(new ki(p,s))}),i.has(mn.keyField().canonicalString())||n.ce.push(new ki(mn.keyField(),s))}return n.ce}function Xn(l){const n=se(l);return n.le||(n.le=function oo(l,n){if("F"===l.limitType)return Ps(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new ki(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new br(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new br(l.startAt.position,l.startAt.inclusive):null;return Ps(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,yn(l))),n.le}function So(l,n,i){return new K(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Yo(l,n){return Ao(Xn(l),Xn(n))&&l.limitType===n.limitType}function Fa(l){return`${xs(Xn(l))}|lt:${l.limitType}`}function _s(l){return`Query(target=${function(i){let s=i.path.canonicalString();return null!==i.collectionGroup&&(s+=" collectionGroup="+i.collectionGroup),i.filters.length>0&&(s+=`, filters: [${i.filters.map(u=>Kr(u)).join(", ")}]`),qn(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>sr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>sr(u)).join(",")),`Target(${s})`}(Xn(l))}; limitType=${l.limitType})`}function Gs(l,n){return n.isFoundDocument()&&function(s,u){const p=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(p):en.isDocumentKey(s.path)?s.path.isEqual(p):s.path.isImmediateParentOf(p)}(l,n)&&function(s,u){for(const p of yn(s))if(!p.field.isKeyField()&&null===u.data.field(p.field))return!1;return!0}(l,n)&&function(s,u){for(const p of s.filters)if(!p.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,R,k){const q=wi(_,R,k);return _.inclusive?q<=0:q<0}(s.startAt,yn(s),u)||s.endAt&&!function(_,R,k){const q=wi(_,R,k);return _.inclusive?q>=0:q>0}(s.endAt,yn(s),u)));var s,u}function ul(l){return(n,i)=>{let s=!1;for(const u of yn(l)){const p=pa(u,n,i);if(0!==p)return p;s=s||u.field.isKeyField()}return 0}}function pa(l,n,i){const s=l.field.isKeyField()?en.comparator(n.key,i.key):function(p,_,R){const k=_.data.field(p),q=R.data.field(p);return null!==k&&null!==q?Ie(k,q):H()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return H()}}class $o{constructor(n,i){this.mapKeyFn=n,this.equalsFn=i,this.inner={},this.innerSize=0}get(n){const i=this.mapKeyFn(n),s=this.inner[i];if(void 0!==s)for(const[u,p]of s)if(this.equalsFn(u,n))return p}has(n){return void 0!==this.get(n)}set(n,i){const s=this.mapKeyFn(n),u=this.inner[s];if(void 0===u)return this.inner[s]=[[n,i]],void this.innerSize++;for(let p=0;p{for(const[u,p]of s)n(u,p)})}isEmpty(){return ei(this.inner)}size(){return this.innerSize}}const Jo=new Lr(en.comparator);function Rr(){return Jo}const ji=new Lr(en.comparator);function zi(...l){let n=ji;for(const i of l)n=n.insert(i.key,i);return n}function po(l){let n=ji;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function bi(){return jo()}function La(){return jo()}function jo(){return new $o(l=>l.toString(),(l,n)=>l.isEqual(n))}const ys=new Lr(en.comparator),cl=new Hn(en.comparator);function Hr(...l){let n=cl;for(const i of l)n=n.add(i);return n}const dl=new Hn(nt);function Va(l,n){if(l.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:hn(n)?"-0":n}}function Es(l){return{integerValue:""+l}}function hl(l,n){return function Cn(l){return"number"==typeof l&&Number.isInteger(l)&&!hn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?Es(n):Va(l,n)}class Ba{constructor(){this._=void 0}}function Ul(l,n,i){return l instanceof Is?function(u,p){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return p&&$e(p)&&(p=Ve(p)),p&&(_.fields.__previous_value__=p),{mapValue:_}}(i,n):l instanceof Os?Zo(l,n):l instanceof As?zl(l,n):function(u,p){const _=jl(u,p),R=Su(_)+Su(u.Pe);return Ne(_)&&Ne(u.Pe)?Es(R):Va(u.serializer,R)}(l,n)}function $l(l,n,i){return l instanceof Os?Zo(l,n):l instanceof As?zl(l,n):i}function jl(l,n){return l instanceof es?Ne(s=n)||(p=s)&&"doubleValue"in p?n:{integerValue:0}:null;var s,p}class Is extends Ba{}class Os extends Ba{constructor(n){super(),this.elements=n}}function Zo(l,n){const i=Hl(n);for(const s of l.elements)i.some(u=>re(u,s))||i.push(s);return{arrayValue:{values:i}}}class As extends Ba{constructor(n){super(),this.elements=n}}function zl(l,n){let i=Hl(n);for(const s of l.elements)i=i.filter(u=>!re(u,s));return{arrayValue:{values:i}}}class es extends Ba{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function Su(l){return le(l.integerValue||l.doubleValue)}function Hl(l){return et(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Ns{constructor(n,i){this.version=n,this.transformResults=i}}class Ui{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Ui}static exists(n){return new Ui(void 0,n)}static updateTime(n){return new Ui(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function ga(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class Ua{}function ma(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new $(l.key,Ui.none()):new Ks(l.key,l.data,Ui.none());{const i=l.data,s=Vn.empty();let u=new Hn(mn.comparator);for(let p of n.fields)if(!u.has(p)){let _=i.field(p);null===_&&p.length>1&&(p=p.popLast(),_=i.field(p)),null===_?s.delete(p):s.set(p,_),u=u.add(p)}return new lo(l.key,s,new Ci(u.toArray()),Ui.none())}}function $a(l,n,i){l instanceof Ks?function(u,p,_){const R=u.value.clone(),k=ya(u.fieldTransforms,p,_.transformResults);R.setAll(k),p.convertToFoundDocument(_.version,R).setHasCommittedMutations()}(l,n,i):l instanceof lo?function(u,p,_){if(!ga(u.precondition,p))return void p.convertToUnknownDocument(_.version);const R=ya(u.fieldTransforms,p,_.transformResults),k=p.data;k.setAll(Gl(u)),k.setAll(R),p.convertToFoundDocument(_.version,k).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zo(l,n,i,s){return l instanceof Ks?function(p,_,R,k){if(!ga(p.precondition,_))return R;const q=p.value.clone(),ye=C(p.fieldTransforms,k,_);return q.setAll(ye),_.convertToFoundDocument(_.version,q).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(p,_,R,k){if(!ga(p.precondition,_))return R;const q=C(p.fieldTransforms,k,_),ye=_.data;return ye.setAll(Gl(p)),ye.setAll(q),_.convertToFoundDocument(_.version,ye).setHasLocalMutations(),null===R?null:R.unionWith(p.fieldMask.fields).unionWith(p.fieldTransforms.map(ze=>ze.field))}(l,n,i,s):(R=i,ga(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):R);var _,R}function va(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),p=jl(s.transform,u||null);null!=p&&(null===i&&(i=Vn.empty()),i.set(s.field,p))}return i||null}function _a(l,n){return l.type===n.type&&!!l.key.isEqual(n.key)&&!!l.precondition.isEqual(n.precondition)&&(u=n.fieldTransforms,!!(void 0===(s=l.fieldTransforms)&&void 0===u||s&&u&&Ot(s,u,(p,_)=>function Lo(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof Os&&u instanceof Os||s instanceof As&&u instanceof As?Ot(s.elements,u.elements,re):s instanceof es&&u instanceof es?re(s.Pe,u.Pe):s instanceof Is&&u instanceof Is);var s,u}(p,_))))&&(0===l.type?l.value.isEqual(n.value):1!==l.type||l.data.isEqual(n.data)&&l.fieldMask.isEqual(n.fieldMask));var s,u}class Ks extends Ua{constructor(n,i,s,u=[]){super(),this.key=n,this.value=i,this.precondition=s,this.fieldTransforms=u,this.type=0}getFieldMask(){return null}}class lo extends Ua{constructor(n,i,s,u,p=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=p,this.type=1}getFieldMask(){return this.fieldMask}}function Gl(l){const n=new Map;return l.fieldMask.fields.forEach(i=>{if(!i.isEmpty()){const s=l.data.field(i);n.set(i,s)}}),n}function ya(l,n,i){const s=new Map;X(l.length===i.length);for(let u=0;u{const p=n.get(u.key),_=p.overlayedDocument;let R=this.applyToLocalView(_,p.mutatedFields);R=i.has(u.key)?null:R;const k=ma(_,R);null!==k&&s.set(u.key,k),_.isValidDocument()||_.convertToNoDocument(gn.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),Hr())}isEqual(n){return this.batchId===n.batchId&&Ot(this.mutations,n.mutations,(i,s)=>_a(i,s))&&Ot(this.baseMutations,n.baseMutations,(i,s)=>_a(i,s))}}class Ae{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){X(n.mutations.length===s.length);let u=function(){return ys}();const p=n.mutations;for(let _=0;_=8)throw new Di(`Invalid padding: ${i}`);if(s<0)throw new Di(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Di(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Di(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=Ze.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply(Ze.fromNumber(s)));return 1===u.compare(Hi)&&(u=new Ze([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(R)),_}insert(n){if(0===this.Ie)return;const i=vi(n),[s,u]=Rn(i);for(let p=0;p0&&(this.we=!0,this.pe=n)}Ce(){let n=Hr(),i=Hr(),s=Hr();return this.ge.forEach((u,p)=>{switch(p){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:H()}}),new Si(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=Xs()}Fe(n,i){this.we=!0,this.ge=this.ge.insert(n,i)}Me(n){this.we=!0,this.ge=this.ge.remove(n)}xe(){this.fe+=1}Oe(){this.fe-=1,X(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class ks{constructor(n){this.Le=n,this.Be=new Map,this.ke=Rr(),this.qe=Br(),this.Qe=new Lr(nt)}Ke(n){for(const i of n.Re)n.Ve&&n.Ve.isFoundDocument()?this.$e(i,n.Ve):this.Ue(i,n.key,n.Ve);for(const i of n.removedTargetIds)this.Ue(i,n.key,n.Ve)}We(n){this.forEachTarget(n,i=>{const s=this.Ge(i);switch(n.state){case 0:this.ze(i)&&s.De(n.resumeToken);break;case 1:s.Oe(),s.Se||s.ve(),s.De(n.resumeToken);break;case 2:s.Oe(),s.Se||this.removeTarget(i);break;case 3:this.ze(i)&&(s.Ne(),s.De(n.resumeToken));break;case 4:this.ze(i)&&(this.je(i),s.De(n.resumeToken));break;default:H()}})}forEachTarget(n,i){n.targetIds.length>0?n.targetIds.forEach(i):this.Be.forEach((s,u)=>{this.ze(u)&&i(u)})}He(n){const i=n.targetId,s=n.me.count,u=this.Je(i);if(u){const p=u.target;if(Fo(p))if(0===s){const _=new en(p.path);this.Ue(i,_,jr.newNoDocument(_,gn.min()))}else X(1===s);else{const _=this.Ye(i);if(_!==s){const R=this.Ze(n),k=R?this.Xe(R,n,_):1;0!==k&&(this.je(i),this.Qe=this.Qe.insert(i,2===k?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:p=0}=i;let _,R;try{_=W(s).toUint8Array()}catch(k){if(k instanceof Eo)return dt("Decoding the base64 bloom filter in existence filter failed ("+k.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw k}try{R=new Kn(_,u,p)}catch(k){return dt(k instanceof Di?"BloomFilter error: ":"Applying bloom filter failed: ",k),null}return 0===R.Ie?null:R}Xe(n,i,s){return i.me.count===s-this.nt(n,i.targetId)?0:2}nt(n,i){const s=this.Le.getRemoteKeysForTarget(i);let u=0;return s.forEach(p=>{const _=this.Le.tt(),R=`projects/${_.projectId}/databases/${_.database}/documents/${p.path.canonicalString()}`;n.mightContain(R)||(this.Ue(i,p,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((p,_)=>{const R=this.Je(_);if(R){if(p.current&&Fo(R.target)){const k=new en(R.target.path);null!==this.ke.get(k)||this.it(_,k)||this.Ue(_,k,jr.newNoDocument(k,n))}p.be&&(i.set(_,p.Ce()),p.ve())}});let s=Hr();this.qe.forEach((p,_)=>{let R=!0;_.forEachWhile(k=>{const q=this.Je(k);return!q||"TargetPurposeLimboResolution"===q.purpose||(R=!1,!1)}),R&&(s=s.add(p))}),this.ke.forEach((p,_)=>_.setReadTime(n));const u=new qi(n,i,this.Qe,this.ke,s);return this.ke=Rr(),this.qe=Br(),this.Qe=new Lr(nt),u}$e(n,i){if(!this.ze(n))return;const s=this.it(n,i.key)?2:0;this.Ge(n).Fe(i.key,s),this.ke=this.ke.insert(i.key,i),this.qe=this.qe.insert(i.key,this.st(i.key).add(n))}Ue(n,i,s){if(!this.ze(n))return;const u=this.Ge(n);this.it(n,i)?u.Fe(i,1):u.Me(i),this.qe=this.qe.insert(i,this.st(i).delete(n)),s&&(this.ke=this.ke.insert(i,s))}removeTarget(n){this.Be.delete(n)}Ye(n){const i=this.Ge(n).Ce();return this.Le.getRemoteKeysForTarget(n).size+i.addedDocuments.size-i.removedDocuments.size}xe(n){this.Ge(n).xe()}Ge(n){let i=this.Be.get(n);return i||(i=new Ki,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new Hn(nt),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||tt("WatchChangeAggregator","Detected inactive target",n),i}Je(n){const i=this.Be.get(n);return i&&i.Se?null:this.Le.ot(n)}je(n){this.Be.set(n,new Ki),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function Br(){return new Lr(en.comparator)}function Xs(){return new Lr(en.comparator)}const vc={asc:"ASCENDING",desc:"DESCENDING"},fl={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Gi={and:"AND",or:"OR"};class Co{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function Cs(l,n){return l.useProto3Json||qn(n)?n:{value:n}}function Go(l,n){return l.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function qs(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function _c(l,n){return Go(l,n.toTimestamp())}function Mi(l){return X(!!l),gn.fromTimestamp(function(i){const s=he(i);return new pn(s.seconds,s.nanos)}(l))}function Qs(l,n){return cs(l,n).canonicalString()}function cs(l,n){const i=(u=l,new Mn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Gr(l){const n=Mn.fromString(l);return X(E(n)),n}function Ea(l,n){return Qs(l.databaseId,n.path)}function ns(l,n){const i=Gr(n);if(i.get(1)!==l.databaseId.projectId)throw new Le(ve.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+i.get(1)+" vs "+l.databaseId.projectId);if(i.get(3)!==l.databaseId.database)throw new Le(ve.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new en(Xi(i))}function Wo(l,n){return Qs(l.databaseId,n)}function Ia(l){return new Mn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Xi(l){return X(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Ru(l,n,i){return{name:Ea(l,n),fields:i.value.mapValue.fields}}function Kl(l,n){return{documents:[Wo(l,n.path)]}}function gl(l,n){const i={structuredQuery:{}},s=n.path;let u;null!==n.collectionGroup?(u=s,i.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(u=s.popLast(),i.structuredQuery.from=[{collectionId:s.lastSegment()}]),i.parent=Wo(l,u);const p=function(q){if(0!==q.length)return Kh(Ti.create(q,"and"))}(n.filters);p&&(i.structuredQuery.where=p);const _=function(q){if(0!==q.length)return q.map(ye=>{return{field:Da((pt=ye).field),direction:ja(pt.dir)};var pt})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const R=Cs(l,n.limit);return null!==R&&(i.structuredQuery.limit=R),n.startAt&&(i.structuredQuery.startAt={before:(q=n.startAt).inclusive,values:q.position}),n.endAt&&(i.structuredQuery.endAt=function(q){return{before:!q.inclusive,values:q.position}}(n.endAt)),{_t:i,parent:u};var q}function Aa(l){let n=function pl(l){const n=Gr(l);return 4===n.length?Mn.emptyPath():Xi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){X(1===s);const ye=i.from[0];ye.allDescendants?u=ye.collectionId:n=n.child(ye.collectionId)}let p=[];i.where&&(p=function(ze){const pt=Ca(ze);return pt instanceof Ti&&Bo(pt)?pt.getFilters():[pt]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(pt=>{return new ki(za((An=pt).field),function(Sn){switch(Sn){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(An.direction));var An}));let R=null;i.limit&&(R=function(ze){let pt;return pt="object"==typeof ze?ze.value:ze,qn(pt)?null:pt}(i.limit));let k=null;var ze;i.startAt&&(k=new br((ze=i.startAt).values||[],!!ze.before));let q=null;return i.endAt&&(q=function(ze){return new br(ze.values||[],!ze.before)}(i.endAt)),function N(l,n,i,s,u,p,_,R){return new K(l,n,i,s,u,p,_,R)}(n,u,_,p,R,"F",k,q)}function Ca(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=za(i.unaryFilter.field);return Ur.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=za(i.unaryFilter.field);return Ur.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const p=za(i.unaryFilter.field);return Ur.create(p,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=za(i.unaryFilter.field);return Ur.create(_,"!=",{nullValue:"NULL_VALUE"});default:return H()}}(l):void 0!==l.fieldFilter?Ur.create(za((i=l).fieldFilter.field),function(u){switch(u){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return H()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return Ti.create(i.compositeFilter.filters.map(s=>Ca(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return H()}}(i.compositeFilter.op))}(l):H();var i}function ja(l){return vc[l]}function tg(l){return fl[l]}function Td(l){return Gi[l]}function Da(l){return{fieldPath:l.canonicalString()}}function za(l){return mn.fromServerFormat(l.fieldPath)}function Kh(l){return l instanceof Ur?function(i){if("=="===i.op){if(It(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NAN"}};if(wt(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(It(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NOT_NAN"}};if(wt(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Da(i.field),op:tg(i.op),value:i.value}}}(l):l instanceof Ti?function(i){const s=i.getFilters().map(u=>Kh(u));return 1===s.length?s[0]:{compositeFilter:{op:Td(i.op),filters:s}}}(l):H()}function bd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function E(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class b{constructor(n,i,s,u,p=gn.min(),_=gn.min(),R=oi.EMPTY_BYTE_STRING,k=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=p,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=R,this.expectedCount=k}withSequenceNumber(n){return new b(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class O{constructor(n){this.ct=n}}function Vr(l){const n=Aa({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?So(n,n.limit,"L"):n}class Ta{constructor(){}Pt(n,i){this.It(n,i),i.Tt()}It(n,i){if("nullValue"in n)this.Et(i,5);else if("booleanValue"in n)this.Et(i,10),i.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(i,15),i.dt(le(n.integerValue));else if("doubleValue"in n){const s=le(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),hn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=he(s)),i.At(`${s.seconds||""}`),i.dt(s.nanos||0)}else if("stringValue"in n)this.Rt(n.stringValue,i),this.Vt(i);else if("bytesValue"in n)this.Et(i,30),i.ft(W(n.bytesValue)),this.Vt(i);else if("referenceValue"in n)this.gt(n.referenceValue,i);else if("geoPointValue"in n){const s=n.geoPointValue;this.Et(i,45),i.dt(s.latitude||0),i.dt(s.longitude||0)}else"mapValue"in n?cn(n)?this.Et(i,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,i),this.Vt(i)):"arrayValue"in n?(this.wt(n.arrayValue,i),this.Vt(i)):H()}Rt(n,i){this.Et(i,25),this.St(n,i)}St(n,i){i.At(n)}yt(n,i){const s=n.fields||{};this.Et(i,55);for(const u of Object.keys(s))this.Rt(u,i),this.It(s[u],i)}wt(n,i){const s=n.values||[];this.Et(i,50);for(const u of s)this.It(u,i)}gt(n,i){this.Et(i,37),en.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Ta.bt=new Ta;class Ts{constructor(){this._n=new Cc}addToCollectionParentIndex(n,i){return this._n.add(i),pe.resolve()}getCollectionParents(n,i){return pe.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return pe.resolve()}deleteFieldIndex(n,i){return pe.resolve()}deleteAllFieldIndexes(n){return pe.resolve()}createTargetIndexes(n,i){return pe.resolve()}getDocumentsMatchingTarget(n,i){return pe.resolve(null)}getIndexType(n,i){return pe.resolve(0)}getFieldIndexes(n,i){return pe.resolve([])}getNextCollectionGroupToUpdate(n){return pe.resolve(null)}getMinOffset(n,i){return pe.resolve(Pr.min())}getMinOffsetFromCollectionGroup(n,i){return pe.resolve(Pr.min())}updateCollectionGroup(n,i,s){return pe.resolve()}updateIndexEntries(n,i){return pe.resolve()}}class Cc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new Hn(Mn.comparator),p=!u.has(s);return this.index[i]=u.add(s),p}has(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i];return u&&u.has(s)}getEntries(n){return(this.index[n]||new Hn(Mn.comparator)).toArray()}}new Uint8Array(0);class gr{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new gr(n,gr.DEFAULT_COLLECTION_PERCENTILE,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}gr.DEFAULT_COLLECTION_PERCENTILE=10,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,gr.DEFAULT=new gr(41943040,gr.DEFAULT_COLLECTION_PERCENTILE,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),gr.DISABLED=new gr(-1,0,0);class _l{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new _l(0)}static Ln(){return new _l(-1)}}class na{constructor(){this.changes=new $o(n=>n.toString(),(n,i)=>n.isEqual(i)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,i){this.assertNotApplied(),this.changes.set(n,jr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?pe.resolve(s):this.getFromCache(n,i)}getEntries(n,i){return this.getAllFromCache(n,i)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class bs{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class oa{constructor(n,i,s,u){this.remoteDocumentCache=n,this.mutationQueue=i,this.documentOverlayCache=s,this.indexManager=u}getDocument(n,i){let s=null;return this.documentOverlayCache.getOverlay(n,i).next(u=>(s=u,this.remoteDocumentCache.getEntry(n,i))).next(u=>(null!==s&&zo(s.mutation,u,Ci.empty(),pn.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,Hr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=Hr()){const u=bi();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(p=>{let _=zi();return p.forEach((R,k)=>{_=_.insert(R,k.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=bi();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,Hr()))}populateOverlays(n,i,s){const u=[];return s.forEach(p=>{i.has(p)||u.push(p)}),this.documentOverlayCache.getOverlays(n,u).next(p=>{p.forEach((_,R)=>{i.set(_,R)})})}computeViews(n,i,s,u){let p=Rr();const _=jo(),R=jo();return i.forEach((k,q)=>{const ye=s.get(q.key);u.has(q.key)&&(void 0===ye||ye.mutation instanceof lo)?p=p.insert(q.key,q):void 0!==ye?(_.set(q.key,ye.mutation.getFieldMask()),zo(ye.mutation,q,ye.mutation.getFieldMask(),pn.now())):_.set(q.key,Ci.empty())}),this.recalculateAndSaveOverlays(n,p).next(k=>(k.forEach((q,ye)=>_.set(q,ye)),i.forEach((q,ye)=>{var ze;return R.set(q,new bs(ye,null!==(ze=_.get(q))&&void 0!==ze?ze:null))}),R))}recalculateAndSaveOverlays(n,i){const s=jo();let u=new Lr((_,R)=>_-R),p=Hr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const R of _)R.keys().forEach(k=>{const q=i.get(k);if(null===q)return;let ye=s.get(k)||Ci.empty();ye=R.applyToLocalView(q,ye),s.set(k,ye);const ze=(u.get(R.batchId)||Hr()).add(k);u=u.insert(R.batchId,ze)})}).next(()=>{const _=[],R=u.getReverseIterator();for(;R.hasNext();){const k=R.getNext(),q=k.key,ye=k.value,ze=La();ye.forEach(pt=>{if(!p.has(pt)){const Ht=ma(i.get(pt),s.get(pt));null!==Ht&&ze.set(pt,Ht),p=p.add(pt)}}),_.push(this.documentOverlayCache.saveOverlays(n,q,ze))}return pe.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return en.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function ke(l){return null!==l.collectionGroup}(i)?this.getDocumentsMatchingCollectionGroupQuery(n,i,s,u):this.getDocumentsMatchingCollectionQuery(n,i,s,u);var _}getNextDocuments(n,i,s,u){return this.remoteDocumentCache.getAllFromCollectionGroup(n,i,s,u).next(p=>{const _=u-p.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-p.size):pe.resolve(bi());let R=-1,k=p;return _.next(q=>pe.forEach(q,(ye,ze)=>(R{k=k.insert(ye,pt)}))).next(()=>this.populateOverlays(n,q,p)).next(()=>this.computeViews(n,k,q,Hr())).next(ye=>({batchId:R,changes:po(ye)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new en(i)).next(s=>{let u=zi();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const p=i.collectionGroup;let _=zi();return this.indexManager.getCollectionParents(n,p).next(R=>pe.forEach(R,k=>{const q=(ze=i,pt=k.child(p),new K(pt,null,ze.explicitOrderBy.slice(),ze.filters.slice(),ze.limit,ze.limitType,ze.startAt,ze.endAt));var ze,pt;return this.getDocumentsMatchingCollectionQuery(n,q,s,u).next(ye=>{ye.forEach((ze,pt)=>{_=_.insert(ze,pt)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let p;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(p=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,p,u))).next(_=>{p.forEach((k,q)=>{const ye=q.getKey();null===_.get(ye)&&(_=_.insert(ye,jr.newInvalidDocument(ye)))});let R=zi();return _.forEach((k,q)=>{const ye=p.get(k);void 0!==ye&&zo(ye.mutation,q,Ci.empty(),pn.now()),Gs(i,q)&&(R=R.insert(k,q))}),R})}}class og{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return pe.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Mi(u.createTime)}),pe.resolve();var u}getNamedQuery(n,i){return pe.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:Vr(u.bundledQuery),readTime:Mi(u.readTime)}),pe.resolve();var u}}class Sc{constructor(){this.overlays=new Lr(en.comparator),this.hr=new Map}getOverlay(n,i){return pe.resolve(this.overlays.get(i))}getOverlays(n,i){const s=bi();return pe.forEach(i,u=>this.getOverlay(n,u).next(p=>{null!==p&&s.set(u,p)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,p)=>{this.ht(n,i,p)}),pe.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(p=>this.overlays=this.overlays.remove(p)),this.hr.delete(s)),pe.resolve()}getOverlaysForCollection(n,i,s){const u=bi(),p=i.length+1,_=new en(i.child("")),R=this.overlays.getIteratorFrom(_);for(;R.hasNext();){const k=R.getNext().value,q=k.getKey();if(!i.isPrefixOf(q.path))break;q.path.length===p&&k.largestBatchId>s&&u.set(k.getKey(),k)}return pe.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let p=new Lr((q,ye)=>q-ye);const _=this.overlays.getIterator();for(;_.hasNext();){const q=_.getNext().value;if(q.getKey().getCollectionGroup()===i&&q.largestBatchId>s){let ye=p.get(q.largestBatchId);null===ye&&(ye=bi(),p=p.insert(q.largestBatchId,ye)),ye.set(q.getKey(),q)}}const R=bi(),k=p.getIterator();for(;k.hasNext()&&(k.getNext().value.forEach((q,ye)=>R.set(q,ye)),!(R.size()>=u)););return pe.resolve(R)}ht(n,i,s){const u=this.overlays.get(s.key);if(null!==u){const _=this.hr.get(u.largestBatchId).delete(s.key);this.hr.set(u.largestBatchId,_)}this.overlays=this.overlays.insert(s.key,new Ke(i,s));let p=this.hr.get(i);void 0===p&&(p=Hr(),this.hr.set(i,p)),this.hr.set(i,p.add(s.key))}}class xd{constructor(){this.Pr=new Hn(To.Ir),this.Tr=new Hn(To.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new To(n,i);this.Pr=this.Pr.add(s),this.Tr=this.Tr.add(s)}dr(n,i){n.forEach(s=>this.addReference(s,i))}removeReference(n,i){this.Ar(new To(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new en(new Mn([])),s=new To(i,n),u=new To(i,n+1),p=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),p.push(_.key)}),p}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const i=new en(new Mn([])),s=new To(i,n),u=new To(i,n+1);let p=Hr();return this.Tr.forEachInRange([s,u],_=>{p=p.add(_.key)}),p}containsKey(n){const i=new To(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class To{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return en.comparator(n.key,i.key)||nt(n.pr,i.pr)}static Er(n,i){return nt(n.pr,i.pr)||en.comparator(n.key,i.key)}}class Od{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new Hn(To.Ir)}checkEmpty(n){return pe.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const p=this.yr;this.yr++;const _=new F(p,i,s,u);this.mutationQueue.push(_);for(const R of u)this.wr=this.wr.add(new To(R.key,p)),this.indexManager.addToCollectionParentIndex(n,R.key.path.popLast());return pe.resolve(_)}lookupMutationBatch(n,i){return pe.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),p=u<0?0:u;return pe.resolve(this.mutationQueue.length>p?this.mutationQueue[p]:null)}getHighestUnacknowledgedBatchId(){return pe.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return pe.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new To(i,0),u=new To(i,Number.POSITIVE_INFINITY),p=[];return this.wr.forEachInRange([s,u],_=>{const R=this.Sr(_.pr);p.push(R)}),pe.resolve(p)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new Hn(nt);return i.forEach(u=>{const p=new To(u,0),_=new To(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([p,_],R=>{s=s.add(R.pr)})}),pe.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let p=s;en.isDocumentKey(p)||(p=p.child(""));const _=new To(new en(p),0);let R=new Hn(nt);return this.wr.forEachWhile(k=>{const q=k.key.path;return!!s.isPrefixOf(q)&&(q.length===u&&(R=R.add(k.pr)),!0)},_),pe.resolve(this.Dr(R))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){X(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return pe.forEach(i.mutations,u=>{const p=new To(u.key,i.batchId);return s=s.delete(p),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new To(i,0),u=this.wr.firstAfterOrEqual(s);return pe.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return pe.resolve()}Cr(n,i){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const i=this.br(n);return i<0||i>=this.mutationQueue.length?null:this.mutationQueue[i]}}class ku{constructor(n){this.vr=n,this.docs=new Lr(en.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),p=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-p,this.indexManager.addToCollectionParentIndex(n,s.path.popLast())}removeEntry(n){const i=this.docs.get(n);i&&(this.docs=this.docs.remove(n),this.size-=i.size)}getEntry(n,i){const s=this.docs.get(i);return pe.resolve(s?s.document.mutableCopy():jr.newInvalidDocument(i))}getEntries(n,i){let s=Rr();return i.forEach(u=>{const p=this.docs.get(u);s=s.insert(u,p?p.document.mutableCopy():jr.newInvalidDocument(u))}),pe.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let p=Rr();const _=i.path,R=new en(_.child("")),k=this.docs.getIteratorFrom(R);for(;k.hasNext();){const{key:q,value:{document:ye}}=k.getNext();if(!_.isPrefixOf(q.path))break;q.path.length>_.length+1||cr(new Pr((l=ye).readTime,l.key,-1),s)<=0||(u.has(ye.key)||Gs(i,ye))&&(p=p.insert(ye.key,ye.mutableCopy()))}var l;return pe.resolve(p)}getAllFromCollectionGroup(n,i,s,u){H()}Fr(n,i){return pe.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new Nd(this)}getSize(n){return pe.resolve(this.size)}}class Nd extends na{constructor(n){super(),this.ar=n}applyChanges(n){const i=[];return this.changes.forEach((s,u)=>{u.isValidDocument()?i.push(this.ar.addEntry(n,u)):this.ar.removeEntry(s)}),pe.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Rc{constructor(n){this.persistence=n,this.Mr=new $o(i=>xs(i),Ao),this.lastRemoteSnapshotVersion=gn.min(),this.highestTargetId=0,this.Or=0,this.Nr=new xd,this.targetCount=0,this.Lr=_l.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),pe.resolve()}getLastRemoteSnapshotVersion(n){return pe.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return pe.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),pe.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),pe.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new _l(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,pe.resolve()}updateTargetData(n,i){return this.qn(i),pe.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,pe.resolve()}removeTargets(n,i,s){let u=0;const p=[];return this.Mr.forEach((_,R)=>{R.sequenceNumber<=i&&null===s.get(R.targetId)&&(this.Mr.delete(_),p.push(this.removeMatchingKeysForTargetId(n,R.targetId)),u++)}),pe.waitFor(p).next(()=>u)}getTargetCount(n){return pe.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return pe.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),pe.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,p=[];return u&&i.forEach(_=>{p.push(u.markPotentiallyOrphaned(n,_))}),pe.waitFor(p)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),pe.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return pe.resolve(s)}containsKey(n,i){return pe.resolve(this.Nr.containsKey(i))}}class Mc{constructor(n,i){this.Br={},this.overlays={},this.kr=new _n(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Rc(this),this.indexManager=new Ts,this.remoteDocumentCache=new ku(s=>this.referenceDelegate.Kr(s)),this.serializer=new O(i),this.$r=new og(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let i=this.overlays[n.toKey()];return i||(i=new Sc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Od(i,this.referenceDelegate),this.Br[n.toKey()]=s),s}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,i,s){tt("MemoryPersistence","Starting transaction:",n);const u=new Jh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(p=>this.referenceDelegate.Wr(u).next(()=>p)).toPromise().then(p=>(u.raiseOnCommittedEvent(),p))}Gr(n,i){return pe.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Jh extends ii{constructor(n){super(),this.currentSequenceNumber=n}}class Sa{constructor(n){this.persistence=n,this.zr=new xd,this.jr=null}static Hr(n){return new Sa(n)}get Jr(){if(this.jr)return this.jr;throw H()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),pe.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),pe.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),pe.resolve()}removeTarget(n,i){this.zr.Vr(i.targetId).forEach(u=>this.Jr.add(u.toString()));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(n,i.targetId).next(u=>{u.forEach(p=>this.Jr.add(p.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return pe.forEach(this.Jr,s=>{const u=en.fromPath(s);return this.Yr(n,u).next(p=>{p||i.removeEntry(u,gn.min())})}).next(()=>(this.jr=null,i.apply(n)))}updateLimboDocument(n,i){return this.Yr(n,i).next(s=>{s?this.Jr.delete(i.toString()):this.Jr.add(i.toString())})}Kr(n){return 0}Yr(n,i){return pe.or([()=>pe.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class Fi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=Hr(),u=Hr();for(const p of i.docChanges)switch(p.type){case 0:s=s.add(p.doc.key);break;case 1:u=u.add(p.doc.key)}return new Fi(n,i.fromCache,s,u)}}class ef{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class tf{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,Se.nr)()?8:function ut(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,Se.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const p={result:null};return this.ji(n,i).next(_=>{p.result=_}).next(()=>{if(!p.result)return this.Hi(n,i,u,s).next(_=>{p.result=_})}).next(()=>{if(p.result)return;const _=new ef;return this.Ji(n,i,_).next(R=>{if(p.result=R,this.Ui)return this.Yi(n,i,_,R.size)})}).next(()=>p.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(vn()<=Je.$b.DEBUG&&tt("QueryEngine","The SDK decides to create cache indexes for query:",_s(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,Xn(i))):pe.resolve())}ji(n,i){if(G(i))return pe.resolve(null);let s=Xn(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=So(i,null,"F"),s=Xn(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(p=>{const _=Hr(...p);return this.zi.getDocuments(n,_).next(R=>this.indexManager.getMinOffset(n,s).next(k=>{const q=this.Zi(i,R);return this.Xi(i,q,_,k.readTime)?this.ji(n,So(i,null,"F")):this.es(n,q,i,k)}))})))}Hi(n,i,s,u){return G(i)||u.isEqual(gn.min())?pe.resolve(null):this.zi.getDocuments(n,s).next(p=>{const _=this.Zi(i,p);return this.Xi(i,_,s,u)?pe.resolve(null):(vn()<=Je.$b.DEBUG&&tt("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),_s(i)),this.es(n,_,i,function mr(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=gn.fromTimestamp(1e9===s?new pn(i+1,0):new pn(i,s));return new Pr(u,en.empty(),n)}(u,-1)).next(R=>R))})}Zi(n,i){let s=new Hn(ul(n));return i.forEach((u,p)=>{Gs(n,p)&&(s=s.add(p))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const p="F"===n.limitType?i.last():i.first();return!!p&&(p.hasPendingWrites||p.version.compareTo(u)>0)}Ji(n,i,s){return vn()<=Je.$b.DEBUG&&tt("QueryEngine","Using full collection scan to execute query:",_s(i)),this.zi.getDocumentsMatchingQuery(n,i,Pr.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(p=>(i.forEach(_=>{p=p.insert(_.key,_)}),p))}}class sg{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new Lr(nt),this.rs=new $o(p=>xs(p),Ao),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(s)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new oa(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",i=>n.collect(i,this.ns))}}function Fd(l,n){return Bu.apply(this,arguments)}function Bu(){return(Bu=(0,ue.A)(function*(l,n){const i=se(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(p=>(u=p,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(p=>{const _=[],R=[];let k=Hr();for(const q of u){_.push(q.batchId);for(const ye of q.mutations)k=k.add(ye.key)}for(const q of p){R.push(q.batchId);for(const ye of q.mutations)k=k.add(ye.key)}return i.localDocuments.getDocuments(s,k).next(q=>({us:q,removedBatchIds:_,addedBatchIds:R}))})})})).apply(this,arguments)}function Vs(l){const n=se(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function xc(l,n){const i=se(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function aa(l,n,i){return Oc.apply(this,arguments)}function Oc(){return(Oc=(0,ue.A)(function*(l,n,i){const s=se(l),u=s.ns.get(n),p=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",p,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!He(_))throw _;tt("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function El(l,n,i){const s=se(l);let u=gn.min(),p=Hr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(k,q,ye){const ze=se(k),pt=ze.rs.get(ye);return void 0!==pt?pe.resolve(ze.ns.get(pt)):ze.Qr.getTargetData(q,ye)}(s,_,Xn(n)).next(R=>{if(R)return u=R.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,R.targetId).next(k=>{p=k})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:gn.min(),i?p:Hr())).next(R=>(function Al(l,n,i){let s=l.ss.get(n)||gn.min();i.forEach((u,p)=>{p.readTime.compareTo(s)>0&&(s=p.readTime)}),l.ss.set(n,s)}(s,function fa(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),R),{documents:R,hs:p})))}class zu{constructor(){this.activeTargetIds=function Ws(){return dl}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class af{constructor(){this.no=new zu,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,i,s){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,i,s){this.ro[n]=i}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new zu,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class lf{io(n){}shutdown(){}}class Bd{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){tt("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){tt("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Lc=null;function ws(){return null===Lc?Lc=268435456+Math.round(2147483648*Math.random()):Lc++,"0x"+Lc.toString(16)}const hv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class Hu{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}Ao(n){this.Ro=n}onMessage(n){this.Vo=n}close(){this.ho()}send(n){this.lo(n)}mo(){this.Io()}fo(){this.Eo()}po(n){this.Ro(n)}yo(n){this.Vo(n)}}const Mo="WebChannelConnection";class Ud extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),p=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${p}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${p}`}get Do(){return!1}Co(i,s,u,p,_){const R=ws(),k=this.vo(i,s.toUriEncodedString());tt("RestConnection",`Sending RPC '${i}' ${R}:`,k,u);const q={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(q,p,_),this.Mo(i,k,q,u).then(ye=>(tt("RestConnection",`Received RPC '${i}' ${R}: `,ye),ye),ye=>{throw dt("RestConnection",`RPC '${i}' ${R} failed with error: `,ye,"url: ",k,"request:",u),ye})}xo(i,s,u,p,_,R){return this.Co(i,s,u,p,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+rt,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((p,_)=>i[_]=p),u&&u.headers.forEach((p,_)=>i[_]=p)}vo(i,s){return`${this.wo}/v1/${s}:${hv[i]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Mo(n,i,s,u){const p=ws();return new Promise((_,R)=>{const k=new St;k.setWithCredentials(!0),k.listenOnce(Et.COMPLETE,()=>{try{switch(k.getLastErrorCode()){case mt.NO_ERROR:const ye=k.getResponseJson();tt(Mo,`XHR for RPC '${n}' ${p} received:`,JSON.stringify(ye)),_(ye);break;case mt.TIMEOUT:tt(Mo,`RPC '${n}' ${p} timed out`),R(new Le(ve.DEADLINE_EXCEEDED,"Request time out"));break;case mt.HTTP_ERROR:const ze=k.getStatus();if(tt(Mo,`RPC '${n}' ${p} failed with status:`,ze,"response text:",k.getResponseText()),ze>0){let pt=k.getResponseJson();Array.isArray(pt)&&(pt=pt[0]);const Ht=null==pt?void 0:pt.error;if(Ht&&Ht.status&&Ht.message){const An=function(Sn){const hr=Sn.toLowerCase().replace(/_/g,"-");return Object.values(ve).indexOf(hr)>=0?hr:ve.UNKNOWN}(Ht.status);R(new Le(An,Ht.message))}else R(new Le(ve.UNKNOWN,"Server responded with status "+k.getStatus()))}else R(new Le(ve.UNAVAILABLE,"Connection failed."));break;default:H()}}finally{tt(Mo,`RPC '${n}' ${p} completed.`)}});const q=JSON.stringify(u);tt(Mo,`RPC '${n}' ${p} sending request:`,u),k.send(i,"POST",q,s,15)})}Oo(n,i,s){const u=ws(),p=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Ue(),R=ge(),k={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},q=this.longPollingOptions.timeoutSeconds;void 0!==q&&(k.longPollingTimeout=Math.round(1e3*q)),this.useFetchStreams&&(k.xmlHttpFactory=new yt({})),this.Fo(k.initMessageHeaders,i,s),k.encodeInitMessageHeaders=!0;const ye=p.join("");tt(Mo,`Creating RPC '${n}' stream ${u}: ${ye}`,k);const ze=_.createWebChannel(ye,k);let pt=!1,Ht=!1;const An=new Hu({lo:Sn=>{Ht?tt(Mo,`Not sending because RPC '${n}' stream ${u} is closed:`,Sn):(pt||(tt(Mo,`Opening RPC '${n}' stream ${u} transport.`),ze.open(),pt=!0),tt(Mo,`RPC '${n}' stream ${u} sending:`,Sn),ze.send(Sn))},ho:()=>ze.close()}),kn=(Sn,hr,Mr)=>{Sn.listen(hr,_r=>{try{Mr(_r)}catch(Yr){setTimeout(()=>{throw Yr},0)}})};return kn(ze,_t.EventType.OPEN,()=>{Ht||(tt(Mo,`RPC '${n}' stream ${u} transport opened.`),An.mo())}),kn(ze,_t.EventType.CLOSE,()=>{Ht||(Ht=!0,tt(Mo,`RPC '${n}' stream ${u} transport closed`),An.po())}),kn(ze,_t.EventType.ERROR,Sn=>{Ht||(Ht=!0,dt(Mo,`RPC '${n}' stream ${u} transport errored:`,Sn),An.po(new Le(ve.UNAVAILABLE,"The operation could not be completed")))}),kn(ze,_t.EventType.MESSAGE,Sn=>{var hr;if(!Ht){const Mr=Sn.data[0];X(!!Mr);const Yr=Mr.error||(null===(hr=Mr[0])||void 0===hr?void 0:hr.error);if(Yr){tt(Mo,`RPC '${n}' stream ${u} received error:`,Yr);const Li=Yr.status;let fi=function(At){const kt=ar[At];if(void 0!==kt)return Xr(kt)}(Li),xt=Yr.message;void 0===fi&&(fi=ve.INTERNAL,xt="Unknown error status: "+Li+" with message "+Yr.message),Ht=!0,An.po(new Le(fi,xt)),ze.close()}else tt(Mo,`RPC '${n}' stream ${u} received:`,Mr),An.yo(Mr)}}),kn(R,Ye.STAT_EVENT,Sn=>{Sn.stat===Me.PROXY?tt(Mo,`RPC '${n}' stream ${u} detected buffering proxy`):Sn.stat===Me.NOPROXY&&tt(Mo,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{An.fo()},0),An}}function Tl(){return typeof document<"u"?document:null}function Vc(l){return new Co(l,!0)}class tu{constructor(n,i,s=1e3,u=1.5,p=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=p,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(n){this.cancel();const i=Math.floor(this.ko+this.Uo()),s=Math.max(0,Date.now()-this.Qo),u=Math.max(0,i-s);u>0&&tt("ExponentialBackoff",`Backing off for ${u} ms (base delay: ${this.ko} ms, delay with jitter: ${i} ms, last attempt: ${s} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,u,()=>(this.Qo=Date.now(),n())),this.ko*=this.Lo,this.kothis.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class $d{constructor(n,i,s,u,p,_,R,k){this.oi=n,this.Go=s,this.zo=u,this.connection=p,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=R,this.listener=k,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new tu(n,i)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var n=this;return(0,ue.A)(function*(){n.Zo()&&(yield n.close(0))})()}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(n){this.s_(),this.stream.send(n)}r_(){var n=this;return(0,ue.A)(function*(){if(n.Xo())return n.close(0)})()}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}close(n,i){var s=this;return(0,ue.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===ve.RESOURCE_EXHAUSTED?(on(i.toString()),on("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===ve.UNAUTHENTICATED&&3!==s.state&&(s.authCredentialsProvider.invalidateToken(),s.appCheckCredentialsProvider.invalidateToken()),null!==s.stream&&(s.__(),s.stream.close(),s.stream=null),s.state=n,yield s.listener.Ao(i)})()}__(){}auth(){this.state=1;const n=this.a_(this.jo),i=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([s,u])=>{this.jo===i&&this.u_(s,u)},s=>{n(()=>{const u=new Le(ve.UNKNOWN,"Fetching auth token failed: "+s.message);return this.c_(u)})})}u_(n,i){const s=this.a_(this.jo);this.stream=this.l_(n,i),this.stream.Po(()=>{s(()=>this.listener.Po())}),this.stream.To(()=>{s(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(u=>{s(()=>this.c_(u))}),this.stream.onMessage(u=>{s(()=>this.onMessage(u))})}e_(){var n=this;this.state=5,this.Yo.$o((0,ue.A)(function*(){n.state=0,n.start()}))}c_(n){return tt("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(tt("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class uf extends $d{constructor(n,i,s,u,p,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function Wl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(q=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===q?1:"REMOVE"===q?2:"CURRENT"===q?3:"RESET"===q?4:H(),u=n.targetChange.targetIds||[],p=function(q,ye){return q.useProto3Json?(X(void 0===ye||"string"==typeof ye),oi.fromBase64String(ye||"")):(X(void 0===ye||ye instanceof Buffer||ye instanceof Uint8Array),oi.fromUint8Array(ye||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,R=_&&function(q){const ye=void 0===q.code?ve.UNKNOWN:Xr(q.code);return new Le(ye,q.message||"")}(_);i=new _i(s,u,p,R||null)}else if("documentChange"in n){const s=n.documentChange,u=ns(l,s.document.name),p=Mi(s.document.updateTime),_=s.document.createTime?Mi(s.document.createTime):gn.min(),R=new Vn({mapValue:{fields:s.document.fields}}),k=jr.newFoundDocument(u,p,_,R);i=new Qi(s.targetIds||[],s.removedTargetIds||[],k.key,k)}else if("documentDelete"in n){const s=n.documentDelete,u=ns(l,s.document),p=s.readTime?Mi(s.readTime):gn.min(),_=jr.newNoDocument(u,p);i=new Qi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=ns(l,s.document);i=new Qi([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return H();{const s=n.filter,{count:u=0,unchangedNames:p}=s,_=new wn(u,p);i=new Ho(s.targetId,_)}}var q;return i}(this.serializer,n),s=function(p){if(!("targetChange"in p))return gn.min();const _=p.targetChange;return _.targetIds&&_.targetIds.length?gn.min():_.readTime?Mi(_.readTime):gn.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ia(this.serializer),i.addTarget=function(p,_){let R;const k=_.target;if(R=Fo(k)?{documents:Kl(p,k)}:{query:gl(p,k)._t},R.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){R.resumeToken=qs(p,_.resumeToken);const q=Cs(p,_.expectedCount);null!==q&&(R.expectedCount=q)}else if(_.snapshotVersion.compareTo(gn.min())>0){R.readTime=Go(p,_.snapshotVersion.toTimestamp());const q=Cs(p,_.expectedCount);null!==q&&(R.expectedCount=q)}return R}(this.serializer,n);const s=function Mu(l,n){const i=function(u){switch(u){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return H()}}(n.purpose);return null==i?null:{"goog-listen-tags":i}}(0,n);s&&(i.labels=s),this.i_(i)}I_(n){const i={};i.database=Ia(this.serializer),i.removeTarget=n,this.i_(i)}}class cf extends $d{constructor(n,i,s,u,p,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(n,i){return this.connection.Oo("Write",n,i)}onMessage(n){if(X(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function ds(l,n){return l&&l.length>0?(X(void 0!==n),l.map(i=>function(u,p){let _=Mi(u.updateTime?u.updateTime:p);return _.isEqual(gn.min())&&(_=Mi(p)),new Ns(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Mi(n.commitTime);return this.listener.A_(s,i)}return X(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Ia(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function rs(l,n){let i;if(n instanceof Ks)i={update:Ru(l,n.key,n.value)};else if(n instanceof $)i={delete:Ea(l,n.key)};else if(n instanceof lo)i={update:Ru(l,n.key,n.data),updateMask:bd(n.fieldMask)};else{if(!(n instanceof Be))return H();i={verify:Ea(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(p,_){const R=_.transform;if(R instanceof Is)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(R instanceof Os)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:R.elements}};if(R instanceof As)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:R.elements}};if(R instanceof es)return{fieldPath:_.field.canonicalString(),increment:R.Pe};throw H()}(0,s))),n.precondition.isNone||(i.currentDocument=void 0!==(p=n.precondition).updateTime?{updateTime:_c(l,p.updateTime)}:void 0!==p.exists?{exists:p.exists}:H()),i;var p}(this.serializer,s))};this.i_(i)}}class lg extends class{}{constructor(n,i,s,u){super(),this.authCredentials=n,this.appCheckCredentials=i,this.connection=s,this.serializer=u,this.m_=!1}f_(){if(this.m_)throw new Le(ve.FAILED_PRECONDITION,"The client has already been terminated.")}Co(n,i,s,u){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([p,_])=>this.connection.Co(n,cs(i,s),u,p,_)).catch(p=>{throw"FirebaseError"===p.name?(p.code===ve.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),p):new Le(ve.UNKNOWN,p.toString())})}xo(n,i,s,u,p){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,R])=>this.connection.xo(n,cs(i,s),u,_,R,p)).catch(_=>{throw"FirebaseError"===_.name?(_.code===ve.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new Le(ve.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class jd{constructor(n,i){this.asyncQueue=n,this.onlineStateHandler=i,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(n){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.S_("Offline")))}set(n){this.C_(),this.g_=0,"Online"===n&&(this.y_=!1),this.S_(n)}S_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}b_(n){const i=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.y_?(on(i),this.y_=!1):tt("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class bl{constructor(n,i,s,u,p){var _=this;this.localStore=n,this.datastore=i,this.asyncQueue=s,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=p,this.O_.io(R=>{s.enqueueAndForget((0,ue.A)(function*(){var k;Ja(_)&&(tt("RemoteStore","Restarting streams for network reachability change."),yield(k=(0,ue.A)(function*(ye){const ze=se(ye);ze.M_.add(4),yield nu(ze),ze.N_.set("Unknown"),ze.M_.delete(4),yield Bc(ze)}),function q(ye){return k.apply(this,arguments)})(_))}))}),this.N_=new jd(s,u)}}function Bc(l){return Uc.apply(this,arguments)}function Uc(){return(Uc=(0,ue.A)(function*(l){if(Ja(l))for(const n of l.x_)yield n(!0)})).apply(this,arguments)}function nu(l){return wl.apply(this,arguments)}function wl(){return(wl=(0,ue.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function Ya(l,n){const i=se(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),ff(i)?Gu(i):qu(i).Xo()&&df(i,n))}function eo(l,n){const i=se(l),s=qu(i);i.F_.delete(n),s.Xo()&&hf(i,n),0===i.F_.size&&(s.Xo()?s.n_():Ja(i)&&i.N_.set("Unknown"))}function df(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(gn.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}qu(l).P_(n)}function hf(l,n){l.L_.xe(n),qu(l).I_(n)}function Gu(l){l.L_=new ks({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),qu(l).start(),l.N_.w_()}function ff(l){return Ja(l)&&!qu(l).Zo()&&l.F_.size>0}function Ja(l){return 0===se(l).M_.size}function $c(l){l.L_=void 0}function ug(l){return zd.apply(this,arguments)}function zd(){return(zd=(0,ue.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function pf(l){return Wu.apply(this,arguments)}function Wu(){return(Wu=(0,ue.A)(function*(l){l.F_.forEach((n,i)=>{df(l,n)})})).apply(this,arguments)}function cg(l,n){return gf.apply(this,arguments)}function gf(){return(gf=(0,ue.A)(function*(l,n){$c(l),ff(l)?(l.N_.D_(n),Gu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function fv(l,n,i){return mf.apply(this,arguments)}function mf(){return mf=(0,ue.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof _i&&2===n.state&&n.cause)try{yield(s=(0,ue.A)(function*(p,_){const R=_.cause;for(const k of _.targetIds)p.F_.has(k)&&(yield p.remoteSyncer.rejectListen(k,R),p.F_.delete(k),p.L_.removeTarget(k))}),function u(p,_){return s.apply(this,arguments)})(l,n)}catch(s){tt("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield jc(l,s)}else if(n instanceof Qi?l.L_.Ke(n):n instanceof Ho?l.L_.He(n):l.L_.We(n),!i.isEqual(gn.min()))try{const s=yield Vs(l.localStore);i.compareTo(s)>=0&&(yield function(p,_){const R=p.L_.rt(_);return R.targetChanges.forEach((k,q)=>{if(k.resumeToken.approximateByteSize()>0){const ye=p.F_.get(q);ye&&p.F_.set(q,ye.withResumeToken(k.resumeToken,_))}}),R.targetMismatches.forEach((k,q)=>{const ye=p.F_.get(k);if(!ye)return;p.F_.set(k,ye.withResumeToken(oi.EMPTY_BYTE_STRING,ye.snapshotVersion)),hf(p,k);const ze=new b(ye.target,k,q,ye.sequenceNumber);df(p,ze)}),p.remoteSyncer.applyRemoteEvent(R)}(l,i))}catch(s){tt("RemoteStore","Failed to raise snapshot:",s),yield jc(l,s)}var s}),mf.apply(this,arguments)}function jc(l,n,i){return vf.apply(this,arguments)}function vf(){return(vf=(0,ue.A)(function*(l,n,i){if(!He(n))throw n;l.M_.add(1),yield nu(l),l.N_.set("Offline"),i||(i=()=>Vs(l.localStore)),l.asyncQueue.enqueueRetryable((0,ue.A)(function*(){tt("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield Bc(l)}))})).apply(this,arguments)}function _f(l,n){return n().catch(i=>jc(l,i,n))}function Ku(l){return yf.apply(this,arguments)}function yf(){return(yf=(0,ue.A)(function*(l){const n=se(l),i=ru(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;vy(n);)try{const u=yield xc(n.localStore,s);if(null===u){0===n.v_.length&&i.n_();break}s=u.batchId,dg(n,u)}catch(u){yield jc(n,u)}Ef(n)&&ps(n)})).apply(this,arguments)}function vy(l){return Ja(l)&&l.v_.length<10}function dg(l,n){l.v_.push(n);const i=ru(l);i.Xo()&&i.E_&&i.d_(n.mutations)}function Ef(l){return Ja(l)&&!ru(l).Zo()&&l.v_.length>0}function ps(l){ru(l).start()}function _y(l){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,ue.A)(function*(l){ru(l).V_()})).apply(this,arguments)}function yy(l){return zc.apply(this,arguments)}function zc(){return(zc=(0,ue.A)(function*(l){const n=ru(l);for(const i of l.v_)n.d_(i.mutations)})).apply(this,arguments)}function Za(l,n,i){return Gd.apply(this,arguments)}function Gd(){return(Gd=(0,ue.A)(function*(l,n,i){const s=l.v_.shift(),u=Ae.from(s,n,i);yield _f(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Ku(l)})).apply(this,arguments)}function Xu(l,n){return If.apply(this,arguments)}function If(){return If=(0,ue.A)(function*(l,n){var i;n&&ru(l).E_&&(yield(i=(0,ue.A)(function*(u,p){if(function pi(l){switch(l){default:return H();case ve.CANCELLED:case ve.UNKNOWN:case ve.DEADLINE_EXCEEDED:case ve.RESOURCE_EXHAUSTED:case ve.INTERNAL:case ve.UNAVAILABLE:case ve.UNAUTHENTICATED:return!1;case ve.INVALID_ARGUMENT:case ve.NOT_FOUND:case ve.ALREADY_EXISTS:case ve.PERMISSION_DENIED:case ve.FAILED_PRECONDITION:case ve.ABORTED:case ve.OUT_OF_RANGE:case ve.UNIMPLEMENTED:case ve.DATA_LOSS:return!0}}(R=p.code)&&R!==ve.ABORTED){const _=u.v_.shift();ru(u).t_(),yield _f(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,p)),yield Ku(u)}var R}),function s(u,p){return i.apply(this,arguments)})(l,n)),Ef(l)&&ps(l)}),If.apply(this,arguments)}function hg(l,n){return Wd.apply(this,arguments)}function Wd(){return(Wd=(0,ue.A)(function*(l,n){const i=se(l);i.asyncQueue.verifyOperationInProgress(),tt("RemoteStore","RemoteStore received new credentials");const s=Ja(i);i.M_.add(3),yield nu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield Bc(i)})).apply(this,arguments)}function fg(l,n){return pg.apply(this,arguments)}function pg(){return(pg=(0,ue.A)(function*(l,n){const i=se(l);n?(i.M_.delete(2),yield Bc(i)):n||(i.M_.add(2),yield nu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function qu(l){return l.B_||(l.B_=function(i,s,u){const p=se(i);return p.f_(),new uf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:ug.bind(null,l),To:pf.bind(null,l),Ao:cg.bind(null,l),h_:fv.bind(null,l)}),l.x_.push(function(){var n=(0,ue.A)(function*(i){i?(l.B_.t_(),ff(l)?Gu(l):l.N_.set("Unknown")):(yield l.B_.stop(),$c(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function ru(l){return l.k_||(l.k_=function(i,s,u){const p=se(i);return p.f_(),new cf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:_y.bind(null,l),Ao:Xu.bind(null,l),R_:yy.bind(null,l),A_:Za.bind(null,l)}),l.x_.push(function(){var n=(0,ue.A)(function*(i){i?(l.k_.t_(),yield Ku(l)):(yield l.k_.stop(),l.v_.length>0&&(tt("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class gg{constructor(n,i,s,u,p){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=p,this.deferred=new _e,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(_=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,i,s,u,p){const _=Date.now()+s,R=new gg(n,i,_,u,p);return R.start(s),R}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Le(ve.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Qu(l,n){if(on("AsyncQueue",`${n}: ${l}`),He(l))return new Le(ve.UNAVAILABLE,`${n}: ${l}`);throw l}class la{constructor(n){this.comparator=n?(i,s)=>n(i,s)||en.comparator(i.key,s.key):(i,s)=>en.comparator(i.key,s.key),this.keyedMap=zi(),this.sortedSet=new Lr(this.comparator)}static emptySet(n){return new la(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const i=this.keyedMap.get(n);return i?this.sortedSet.indexOf(i):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((i,s)=>(n(i),!1))}add(n){const i=this.delete(n.key);return i.copy(i.keyedMap.insert(n.key,n),i.sortedSet.insert(n,null))}delete(n){const i=this.get(n);return i?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(i)):this}isEqual(n){if(!(n instanceof la)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(!u.isEqual(p))return!1}return!0}toString(){const n=[];return this.forEach(i=>{n.push(i.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,i){const s=new la;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Yu{constructor(){this.q_=new Lr(en.comparator)}track(n){const i=n.doc.key,s=this.q_.get(i);s?0!==n.type&&3===s.type?this.q_=this.q_.insert(i,n):3===n.type&&1!==s.type?this.q_=this.q_.insert(i,{type:s.type,doc:n.doc}):2===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):2===n.type&&0===s.type?this.q_=this.q_.insert(i,{type:0,doc:n.doc}):1===n.type&&0===s.type?this.q_=this.q_.remove(i):1===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:1,doc:s.doc}):0===n.type&&1===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):H():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class iu{constructor(n,i,s,u,p,_,R,k,q){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=p,this.fromCache=_,this.syncStateChanged=R,this.excludesMetadataChanges=k,this.hasCachedResults=q}static fromInitialDocuments(n,i,s,u,p){const _=[];return i.forEach(R=>{_.push({type:0,doc:R})}),new iu(n,i,la.emptySet(i),_,s,u,!0,!1,p)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&Yo(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const i=this.docChanges,s=n.docChanges;if(i.length!==s.length)return!1;for(let u=0;un.G_())}}class Af{constructor(){this.queries=new $o(n=>Fa(n),Yo),this.onlineState="Unknown",this.z_=new Set}}function Bs(l,n){return Cf.apply(this,arguments)}function Cf(){return(Cf=(0,ue.A)(function*(l,n){const i=se(l);let s=3;const u=n.query;let p=i.queries.get(u);p?!p.W_()&&n.G_()&&(s=2):(p=new pv,s=n.G_()?0:1);try{switch(s){case 0:p.K_=yield i.onListen(u,!0);break;case 1:p.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const R=Qu(_,`Initialization of query '${_s(n.query)}' failed`);return void n.onError(R)}i.queries.set(u,p),p.U_.push(n),n.j_(i.onlineState),p.K_&&n.H_(p.K_)&&Kd(i)})).apply(this,arguments)}function Ju(l,n){return ou.apply(this,arguments)}function ou(){return(ou=(0,ue.A)(function*(l,n){const i=se(l),s=n.query;let u=3;const p=i.queries.get(s);if(p){const _=p.U_.indexOf(n);_>=0&&(p.U_.splice(_,1),0===p.U_.length?u=n.G_()?0:1:!p.W_()&&n.G_()&&(u=2))}switch(u){case 0:return i.queries.delete(s),i.onUnlisten(s,!0);case 1:return i.queries.delete(s),i.onUnlisten(s,!1);case 2:return i.onLastRemoteStoreUnlisten(s);default:return}})).apply(this,arguments)}function gv(l,n){const i=se(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const R of _.U_)R.H_(u)&&(s=!0);_.K_=u}}s&&Kd(i)}function mg(l,n,i){const s=se(l),u=s.queries.get(n);if(u)for(const p of u.U_)p.onError(i);s.queries.delete(n)}function Kd(l){l.z_.forEach(n=>{n.next()})}var I,f;(f=I||(I={})).J_="default",f.Cache="cache";class v{constructor(n,i,s){this.query=n,this.Y_=i,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=s||{}}H_(n){if(!this.options.includeMetadataChanges){const s=[];for(const u of n.docChanges)3!==u.type&&s.push(u);n=new iu(n.query,n.docs,n.oldDocs,s,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let i=!1;return this.Z_?this.ea(n)&&(this.Y_.next(n),i=!0):this.ta(n,this.onlineState)&&(this.na(n),i=!0),this.X_=n,i}onError(n){this.Y_.error(n)}j_(n){this.onlineState=n;let i=!1;return this.X_&&!this.Z_&&this.ta(this.X_,n)&&(this.na(this.X_),i=!0),i}ta(n,i){return!n.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==i))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===i)}ea(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(n){n=iu.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==I.Cache}}class Xt{constructor(n){this.key=n}}class Dn{constructor(n){this.key=n}}class $n{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=Hr(),this.mutatedKeys=Hr(),this.Ia=ul(n),this.Ta=new la(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Yu,u=i?i.Ta:this.Ta;let p=i?i.mutatedKeys:this.mutatedKeys,_=u,R=!1;const k="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,q="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((ye,ze)=>{const pt=u.get(ye),Ht=Gs(this.query,ze)?ze:null,An=!!pt&&this.mutatedKeys.has(pt.key),kn=!!Ht&&(Ht.hasLocalMutations||this.mutatedKeys.has(Ht.key)&&Ht.hasCommittedMutations);let Sn=!1;pt&&Ht?pt.data.isEqual(Ht.data)?An!==kn&&(s.track({type:3,doc:Ht}),Sn=!0):this.Ra(pt,Ht)||(s.track({type:2,doc:Ht}),Sn=!0,(k&&this.Ia(Ht,k)>0||q&&this.Ia(Ht,q)<0)&&(R=!0)):!pt&&Ht?(s.track({type:0,doc:Ht}),Sn=!0):pt&&!Ht&&(s.track({type:1,doc:pt}),Sn=!0,(k||q)&&(R=!0)),Sn&&(Ht?(_=_.add(Ht),p=kn?p.add(ye):p.delete(ye)):(_=_.delete(ye),p=p.delete(ye)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const ye="F"===this.query.limitType?_.last():_.first();_=_.delete(ye.key),p=p.delete(ye.key),s.track({type:1,doc:ye})}return{Ta:_,Aa:s,Xi:R,mutatedKeys:p}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const p=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((ye,ze)=>function(Ht,An){const kn=Sn=>{switch(Sn){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return H()}};return kn(Ht)-kn(An)}(ye.type,ze.type)||this.Ia(ye.doc,ze.doc)),this.Va(s),u=null!=u&&u;const R=i&&!u?this.ma():[],k=0===this.Pa.size&&this.current&&!u?1:0,q=k!==this.ha;return this.ha=k,0!==_.length||q?{snapshot:new iu(this.query,n.Ta,p,_,n.mutatedKeys,0===k,q,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:R}:{fa:R}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Yu,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(n){return!this.la.has(n)&&!!this.Ta.has(n)&&!this.Ta.get(n).hasLocalMutations}Va(n){n&&(n.addedDocuments.forEach(i=>this.la=this.la.add(i)),n.modifiedDocuments.forEach(i=>{}),n.removedDocuments.forEach(i=>this.la=this.la.delete(i)),this.current=n.current)}ma(){if(!this.current)return[];const n=this.Pa;this.Pa=Hr(),this.Ta.forEach(s=>{this.ga(s.key)&&(this.Pa=this.Pa.add(s.key))});const i=[];return n.forEach(s=>{this.Pa.has(s)||i.push(new Dn(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Xt(s))}),i}pa(n){this.la=n.hs,this.Pa=Hr();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return iu.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class vr{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class hi{constructor(n){this.key=n,this.wa=!1}}class Vo{constructor(n,i,s,u,p,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=p,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new $o(R=>Fa(R),Yo),this.Da=new Map,this.Ca=new Set,this.va=new Lr(en.comparator),this.Fa=new Map,this.Ma=new xd,this.xa={},this.Oa=new Map,this.Na=_l.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function to(l,n){return ua.apply(this,arguments)}function ua(){return(ua=(0,ue.A)(function*(l,n,i=!0){const s=nc(l);let u;const p=s.ba.get(n);return p?(s.sharedClientState.addLocalQueryTarget(p.targetId),u=p.view.ya()):u=yield qd(s,n,i,!0),u})).apply(this,arguments)}function Xd(l,n){return su.apply(this,arguments)}function su(){return(su=(0,ue.A)(function*(l,n){const i=nc(l);yield qd(i,n,!0,!1)})).apply(this,arguments)}function qd(l,n,i,s){return Zu.apply(this,arguments)}function Zu(){return(Zu=(0,ue.A)(function*(l,n,i,s){const u=yield function sa(l,n){const i=se(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(p=>p?(u=p,pe.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new b(n,_,"TargetPurposeListen",s.currentSequenceNumber),i.Qr.addTargetData(s,u).next(()=>u))))}).then(s=>{const u=i.ns.get(s.targetId);return(null===u||s.snapshotVersion.compareTo(u.snapshotVersion)>0)&&(i.ns=i.ns.insert(s.targetId,s),i.rs.set(n,s.targetId)),s})}(l.localStore,Xn(n)),p=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(p):"not-current";let R;return s&&(R=yield function ec(l,n,i,s,u){return tc.apply(this,arguments)}(l,n,p,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Ya(l.remoteStore,u),R})).apply(this,arguments)}function tc(){return tc=(0,ue.A)(function*(l,n,i,s,u){l.Ba=(ze,pt,Ht)=>{return(An=(0,ue.A)(function*(Sn,hr,Mr,_r){let Yr=hr.view.da(Mr);Yr.Xi&&(Yr=yield El(Sn.localStore,hr.query,!1).then(({documents:at})=>hr.view.da(at,Yr)));const Li=_r&&_r.targetChanges.get(hr.targetId),fi=_r&&null!=_r.targetMismatches.get(hr.targetId),xt=hr.view.applyChanges(Yr,Sn.isPrimaryClient,Li,fi);return Cg(Sn,hr.targetId,xt.fa),xt.snapshot}),function kn(Sn,hr,Mr,_r){return An.apply(this,arguments)})(l,ze,pt,Ht);var An};const p=yield El(l.localStore,n,!0),_=new $n(n,p.hs),R=_.da(p.documents),k=Si.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),q=_.applyChanges(R,l.isPrimaryClient,k);Cg(l,i,q.fa);const ye=new vr(n,i,_);return l.ba.set(n,ye),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),q.snapshot}),tc.apply(this,arguments)}function Df(l,n,i){return au.apply(this,arguments)}function au(){return(au=(0,ue.A)(function*(l,n,i){const s=se(l),u=s.ba.get(n),p=s.Da.get(u.targetId);if(p.length>1)return s.Da.set(u.targetId,p.filter(_=>!Yo(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield aa(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&eo(s.remoteStore,u.targetId),Zd(s,u.targetId)}).catch(Ai))):(Zd(s,u.targetId),yield aa(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Tf(l,n){return Qd.apply(this,arguments)}function Qd(){return(Qd=(0,ue.A)(function*(l,n){const i=se(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),eo(i.remoteStore,s.targetId))})).apply(this,arguments)}function Jd(){return(Jd=(0,ue.A)(function*(l,n,i){const s=function Hc(l){const n=se(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=mv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=vv.bind(null,n),n}(l);try{const u=yield function(_,R){const k=se(_),q=pn.now(),ye=R.reduce((Ht,An)=>Ht.add(An.key),Hr());let ze,pt;return k.persistence.runTransaction("Locally write mutations","readwrite",Ht=>{let An=Rr(),kn=Hr();return k.os.getEntries(Ht,ye).next(Sn=>{An=Sn,An.forEach((hr,Mr)=>{Mr.isValidDocument()||(kn=kn.add(hr))})}).next(()=>k.localDocuments.getOverlayedDocuments(Ht,An)).next(Sn=>{ze=Sn;const hr=[];for(const Mr of R){const _r=va(Mr,ze.get(Mr.key).overlayedDocument);null!=_r&&hr.push(new lo(Mr.key,_r,qr(_r.value.mapValue),Ui.exists(!0)))}return k.mutationQueue.addMutationBatch(Ht,q,hr,R)}).next(Sn=>{pt=Sn;const hr=Sn.applyToLocalDocumentSet(ze,kn);return k.documentOverlayCache.saveOverlays(Ht,Sn.batchId,hr)})}).then(()=>({batchId:pt.batchId,changes:po(ze)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,R,k){let q=_.xa[_.currentUser.toKey()];q||(q=new Lr(nt)),q=q.insert(R,k),_.xa[_.currentUser.toKey()]=q}(s,u.batchId,i),yield Sl(s,u.changes),yield Ku(s.remoteStore)}catch(u){const p=Qu(u,"Failed to persist write");i.reject(p)}})).apply(this,arguments)}function vg(l,n){return bf.apply(this,arguments)}function bf(){return(bf=(0,ue.A)(function*(l,n){const i=se(l);try{const s=yield function ag(l,n){const i=se(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",p=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const R=[];n.targetChanges.forEach((ye,ze)=>{const pt=u.get(ze);if(!pt)return;R.push(i.Qr.removeMatchingKeys(p,ye.removedDocuments,ze).next(()=>i.Qr.addMatchingKeys(p,ye.addedDocuments,ze)));let Ht=pt.withSequenceNumber(p.currentSequenceNumber);var kn,Sn,hr;null!==n.targetMismatches.get(ze)?Ht=Ht.withResumeToken(oi.EMPTY_BYTE_STRING,gn.min()).withLastLimboFreeSnapshotVersion(gn.min()):ye.resumeToken.approximateByteSize()>0&&(Ht=Ht.withResumeToken(ye.resumeToken,s)),u=u.insert(ze,Ht),Sn=Ht,hr=ye,(0===(kn=pt).resumeToken.approximateByteSize()||Sn.snapshotVersion.toMicroseconds()-kn.snapshotVersion.toMicroseconds()>=3e8||hr.addedDocuments.size+hr.modifiedDocuments.size+hr.removedDocuments.size>0)&&R.push(i.Qr.updateTargetData(p,Ht))});let k=Rr(),q=Hr();if(n.documentUpdates.forEach(ye=>{n.resolvedLimboDocuments.has(ye)&&R.push(i.persistence.referenceDelegate.updateLimboDocument(p,ye))}),R.push(function $u(l,n,i){let s=Hr(),u=Hr();return i.forEach(p=>s=s.add(p)),n.getEntries(l,s).next(p=>{let _=Rr();return i.forEach((R,k)=>{const q=p.get(R);k.isFoundDocument()!==q.isFoundDocument()&&(u=u.add(R)),k.isNoDocument()&&k.version.isEqual(gn.min())?(n.removeEntry(R,k.readTime),_=_.insert(R,k)):!q.isValidDocument()||k.version.compareTo(q.version)>0||0===k.version.compareTo(q.version)&&q.hasPendingWrites?(n.addEntry(k),_=_.insert(R,k)):tt("LocalStore","Ignoring outdated watch update for ",R,". Current version:",q.version," Watch version:",k.version)}),{cs:_,ls:u}})}(p,_,n.documentUpdates).next(ye=>{k=ye.cs,q=ye.ls})),!s.isEqual(gn.min())){const ye=i.Qr.getLastRemoteSnapshotVersion(p).next(ze=>i.Qr.setTargetsMetadata(p,p.currentSequenceNumber,s));R.push(ye)}return pe.waitFor(R).next(()=>_.apply(p)).next(()=>i.localDocuments.getLocalViewOfDocuments(p,k,q)).next(()=>k)}).then(p=>(i.ns=u,p))}(i.localStore,n);n.targetChanges.forEach((u,p)=>{const _=i.Fa.get(p);_&&(X(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?X(_.wa):u.removedDocuments.size>0&&(X(_.wa),_.wa=!1))}),yield Sl(i,s,n)}catch(s){yield Ai(s)}})).apply(this,arguments)}function _g(l,n,i){const s=se(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((p,_)=>{const R=_.view.j_(n);R.snapshot&&u.push(R.snapshot)}),function(_,R){const k=se(_);k.onlineState=R;let q=!1;k.queries.forEach((ye,ze)=>{for(const pt of ze.U_)pt.j_(R)&&(q=!0)}),q&&Kd(k)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function wf(l,n,i){return Sf.apply(this,arguments)}function Sf(){return(Sf=(0,ue.A)(function*(l,n,i){const s=se(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),p=u&&u.key;if(p){let _=new Lr(en.comparator);_=_.insert(p,jr.newNoDocument(p,gn.min()));const R=Hr().add(p),k=new qi(gn.min(),new Map,new Lr(nt),_,R);yield vg(s,k),s.va=s.va.remove(p),s.Fa.delete(n),_v(s)}else yield aa(s.localStore,n,!1).then(()=>Zd(s,n,i)).catch(Ai)})).apply(this,arguments)}function mv(l,n){return Rf.apply(this,arguments)}function Rf(){return(Rf=(0,ue.A)(function*(l,n){const i=se(l),s=n.batch.batchId;try{const u=yield function Uu(l,n){const i=se(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),p=i.os.newChangeBuffer({trackRemovals:!0});return function(R,k,q,ye){const ze=q.batch,pt=ze.keys();let Ht=pe.resolve();return pt.forEach(An=>{Ht=Ht.next(()=>ye.getEntry(k,An)).next(kn=>{const Sn=q.docVersions.get(An);X(null!==Sn),kn.version.compareTo(Sn)<0&&(ze.applyToRemoteDocument(kn,q),kn.isValidDocument()&&(kn.setReadTime(q.commitVersion),ye.addEntry(kn)))})}),Ht.next(()=>R.mutationQueue.removeMutationBatch(k,ze))}(i,s,n,p).next(()=>p.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(R){let k=Hr();for(let q=0;q0&&(k=k.add(R.batch.mutations[q].key));return k}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Mf(i,s,null),Ig(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Sl(i,u)}catch(u){yield Ai(u)}})).apply(this,arguments)}function vv(l,n,i){return yg.apply(this,arguments)}function yg(){return(yg=(0,ue.A)(function*(l,n,i){const s=se(l);try{const u=yield function(_,R){const k=se(_);return k.persistence.runTransaction("Reject batch","readwrite-primary",q=>{let ye;return k.mutationQueue.lookupMutationBatch(q,R).next(ze=>(X(null!==ze),ye=ze.keys(),k.mutationQueue.removeMutationBatch(q,ze))).next(()=>k.mutationQueue.performConsistencyCheck(q)).next(()=>k.documentOverlayCache.removeOverlaysForBatchId(q,ye,R)).next(()=>k.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(q,ye)).next(()=>k.localDocuments.getDocuments(q,ye))})}(s.localStore,n);Mf(s,n,i),Ig(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Sl(s,u)}catch(u){yield Ai(u)}})).apply(this,arguments)}function Ig(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Mf(l,n,i){const s=se(l);let u=s.xa[s.currentUser.toKey()];if(u){const p=u.get(n);p&&(i?p.reject(i):p.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Zd(l,n,i=null){l.sharedClientState.removeLocalQueryTarget(n);for(const s of l.Da.get(n))l.ba.delete(s),i&&l.Sa.ka(s,i);l.Da.delete(n),l.isPrimaryClient&&l.Ma.Vr(n).forEach(s=>{l.Ma.containsKey(s)||Ag(l,s)})}function Ag(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(eo(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),_v(l))}function Cg(l,n,i){for(const s of i)s instanceof Xt?(l.Ma.addReference(s.key,n),Iy(l,s)):s instanceof Dn?(tt("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ag(l,s.key)):H()}function Iy(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(tt("SyncEngine","New document in limbo: "+i),l.Ca.add(s),_v(l))}function _v(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(k,n,i).then(q=>{if((q||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(k.targetId,q&&!q.fromCache?"current":"not-current"),q){u.push(q);const ye=Fi.Ki(k.targetId,q);p.push(ye)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(R=(0,ue.A)(function*(q,ye){const ze=se(q);try{yield ze.persistence.runTransaction("notifyLocalViewChanges","readwrite",pt=>pe.forEach(ye,Ht=>pe.forEach(Ht.qi,An=>ze.persistence.referenceDelegate.addReference(pt,Ht.targetId,An)).next(()=>pe.forEach(Ht.Qi,An=>ze.persistence.referenceDelegate.removeReference(pt,Ht.targetId,An)))))}catch(pt){if(!He(pt))throw pt;tt("LocalStore","Failed to update sequence numbers: "+pt)}for(const pt of ye){const Ht=pt.targetId;if(!pt.fromCache){const An=ze.ns.get(Ht),Sn=An.withLastLimboFreeSnapshotVersion(An.snapshotVersion);ze.ns=ze.ns.insert(Ht,Sn)}}}),function k(q,ye){return R.apply(this,arguments)})(s.localStore,p))}),Pf.apply(this,arguments)}function Dg(l,n){return Tg.apply(this,arguments)}function Tg(){return(Tg=(0,ue.A)(function*(l,n){const i=se(l);if(!i.currentUser.isEqual(n)){tt("SyncEngine","User change. New user:",n.toKey());const s=yield Fd(i.localStore,n);i.currentUser=n,(p=i).Oa.forEach(R=>{R.forEach(k=>{k.reject(new Le(ve.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),p.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Sl(i,s.us)}var p})).apply(this,arguments)}function lu(l,n){const i=se(l),s=i.Fa.get(n);if(s&&s.wa)return Hr().add(s.key);{let u=Hr();const p=i.Da.get(n);if(!p)return u;for(const _ of p){const R=i.ba.get(_);u=u.unionWith(R.view.Ea)}return u}}function nc(l){const n=se(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=vg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=lu.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=wf.bind(null,n),n.Sa.h_=gv.bind(null,n.eventManager),n.Sa.ka=mg.bind(null,n.eventManager),n}class el{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,ue.A)(function*(){i.serializer=Vc(n.databaseInfo.databaseId),i.sharedClientState=i.createSharedClientState(n),i.persistence=i.createPersistence(n),yield i.persistence.start(),i.localStore=i.createLocalStore(n),i.gcScheduler=i.createGarbageCollectionScheduler(n,i.localStore),i.indexBackfillerScheduler=i.createIndexBackfillerScheduler(n,i.localStore)})()}createGarbageCollectionScheduler(n,i){return null}createIndexBackfillerScheduler(n,i){return null}createLocalStore(n){return function nf(l,n,i,s){return new sg(l,n,i,s)}(this.persistence,new tf,n.initialUser,this.serializer)}createPersistence(n){return new Mc(Sa.Hr,this.serializer)}createSharedClientState(n){return new af}terminate(){var n=this;return(0,ue.A)(function*(){var i,s;null===(i=n.gcScheduler)||void 0===i||i.stop(),null===(s=n.indexBackfillerScheduler)||void 0===s||s.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class tl{initialize(n,i){var s=this;return(0,ue.A)(function*(){s.localStore||(s.localStore=n.localStore,s.sharedClientState=n.sharedClientState,s.datastore=s.createDatastore(i),s.remoteStore=s.createRemoteStore(i),s.eventManager=s.createEventManager(i),s.syncEngine=s.createSyncEngine(i,!n.synchronizeTabs),s.sharedClientState.onlineStateHandler=u=>_g(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Dg.bind(null,s.syncEngine),yield fg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new Af}createDatastore(n){const i=Vc(n.databaseInfo.databaseId),s=new Ud(n.databaseInfo);return new lg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,p=n.asyncQueue,_=i=>_g(this.syncEngine,i,0),R=Bd.D()?new Bd:new lf,new bl(s,u,p,_,R);var s,u,p,_,R}createSyncEngine(n,i){return function(u,p,_,R,k,q,ye){const ze=new Vo(u,p,_,R,k,q);return ye&&(ze.La=!0),ze}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,ue.A)(function*(){var i,s;yield(s=(0,ue.A)(function*(p){const _=se(p);tt("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield nu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(p){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Kc{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.Ka(this.observer.next,n)}error(n){this.observer.error?this.Ka(this.observer.error,n):on("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class wy{constructor(n,i,s,u){var p=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=xe.UNAUTHENTICATED,this.clientId=ir.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,ue.A)(function*(R){tt("FirestoreClient","Received user=",R.uid),yield p.authCredentialListener(R),p.user=R});return function(R){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(tt("FirestoreClient","Received new app check token=",_),this.appCheckCredentialListener(_,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new Le(ve.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new _e;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,ue.A)(function*(){try{n._onlineComponents&&(yield n._onlineComponents.terminate()),n._offlineComponents&&(yield n._offlineComponents.terminate()),n.authCredentials.shutdown(),n.appCheckCredentials.shutdown(),i.resolve()}catch(s){const u=Qu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Of(l,n){return oh.apply(this,arguments)}function oh(){return oh=(0,ue.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),tt("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,ue.A)(function*(p){s.isEqual(p)||(yield Fd(n.localStore,p),s=p)});return function(p){return u.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=n}),oh.apply(this,arguments)}function Nf(l,n){return Rg.apply(this,arguments)}function Rg(){return(Rg=(0,ue.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function rc(l){return kf.apply(this,arguments)}(l);tt("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>hg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>hg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function kf(){return(kf=(0,ue.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){tt("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Of(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Tv(l){return"FirebaseError"===l.name?l.code===ve.FAILED_PRECONDITION||l.code===ve.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;dt("Error using user provided cache. Falling back to memory cache: "+i),yield Of(l,new el)}}else tt("FirestoreClient","Using default OfflineComponentProvider"),yield Of(l,new el);return l._offlineComponents})).apply(this,arguments)}function Xc(l){return Mg.apply(this,arguments)}function Mg(){return(Mg=(0,ue.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(tt("FirestoreClient","Using user provided OnlineComponentProvider"),yield Nf(l,l._uninitializedComponentsProvider._online)):(tt("FirestoreClient","Using default OnlineComponentProvider"),yield Nf(l,new tl))),l._onlineComponents})).apply(this,arguments)}function cu(l){return xg.apply(this,arguments)}function xg(){return(xg=(0,ue.A)(function*(l){const n=yield Xc(l),i=n.eventManager;return i.onListen=to.bind(null,n.syncEngine),i.onUnlisten=Df.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Xd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Tf.bind(null,n.syncEngine),i})).apply(this,arguments)}function uh(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Vf=new Map;function Bf(l,n,i){if(!i)throw new Le(ve.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Fg(l){if(!en.isDocumentKey(l))throw new Le(ve.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function du(l){if(en.isDocumentKey(l))throw new Le(ve.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Uf(l){if(void 0===l)return"undefined";if(null===l)return"null";if("string"==typeof l)return l.length>20&&(l=`${l.substring(0,20)}...`),JSON.stringify(l);if("number"==typeof l||"boolean"==typeof l)return""+l;if("object"==typeof l){if(l instanceof Array)return"an array";{const n=(s=l).constructor?s.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var s;return"function"==typeof l?"a function":H()}function Ii(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new Le(ve.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Uf(l);throw new Le(ve.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Pv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new Le(ve.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(i=n.ssl)||void 0===i||i;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new Le(ve.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function Rv(l,n,i,s){if(!0===n&&!0===s)throw new Le(ve.INVALID_ARGUMENT,`${l} and ${i} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=uh(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(p){if(void 0!==p.timeoutSeconds){if(isNaN(p.timeoutSeconds))throw new Le(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (must not be NaN)`);if(p.timeoutSeconds<5)throw new Le(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (minimum allowed value is 5)`);if(p.timeoutSeconds>30)throw new Le(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class ch{constructor(n,i,s,u){this._authCredentials=n,this._appCheckCredentials=i,this._databaseId=s,this._app=u,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Pv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Le(ve.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new Le(ve.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Pv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new dn;switch(s.type){case"firstParty":return new Zn(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new Le(ve.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(i){const s=Vf.get(i);s&&(tt("ComponentProvider","Removing Datastore"),Vf.delete(i),s.terminate())}(this),Promise.resolve()}}class uo{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new uo(this.firestore,n,this._query)}}class vo{constructor(n,i,s){this.converter=i,this._key=s,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new nl(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new vo(this.firestore,n,this._key)}}class nl extends uo{constructor(n,i,s){super(n,i,Ce(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new vo(this.firestore,null,new en(n))}withConverter(n){return new nl(this.firestore,n,this._path)}}function Py(l,n,...i){if(l=(0,Se.Ku)(l),Bf("collection","path",n),l instanceof ch){const s=Mn.fromString(n,...i);return du(s),new nl(l,null,s)}{if(!(l instanceof vo||l instanceof nl))throw new Le(ve.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Mn.fromString(n,...i));return du(s),new nl(l.firestore,null,s)}}function xv(l,n,...i){if(l=(0,Se.Ku)(l),1===arguments.length&&(n=ir.newId()),Bf("doc","path",n),l instanceof ch){const s=Mn.fromString(n,...i);return Fg(s),new vo(l,null,new en(s))}{if(!(l instanceof vo||l instanceof nl))throw new Le(ve.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Mn.fromString(n,...i));return Fg(s),new vo(l.firestore,l instanceof nl?l.converter:null,new en(s))}}class xy{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new tu(this,"async_queue_retry"),this.hu=()=>{const i=Tl();i&&tt("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Tl();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.Pu(),this.Iu(n)}enterRestrictedMode(n){if(!this.ou){this.ou=!0,this.cu=n||!1;const i=Tl();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new _e;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(n().then(i.resolve,i.reject),i.promise)).then(()=>i.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.su.push(n),this.Tu()))}Tu(){var n=this;return(0,ue.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!He(i))throw i;tt("AsyncQueue","Operation failed with retryable error: "+i)}n.su.length>0&&n.Yo.$o(()=>n.Tu())}})()}Iu(n){const i=this.iu.then(()=>(this.uu=!0,n().catch(s=>{throw this.au=s,this.uu=!1,on("INTERNAL UNHANDLED ERROR: ",function(_){let R=_.message||"";return _.stack&&(R=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),R}(s)),s}).then(s=>(this.uu=!1,s))));return this.iu=i,i}enqueueAfterDelay(n,i,s){this.Pu(),this.lu.indexOf(n)>-1&&(i=0);const u=gg.createAndSchedule(this,n,i,s,p=>this.Eu(p));return this._u.push(u),u}Pu(){this.au&&H()}verifyOperationInProgress(){}du(){var n=this;return(0,ue.A)(function*(){let i;do{i=n.iu,yield i}while(i!==n.iu)})()}Au(n){for(const i of this._u)if(i.timerId===n)return!0;return!1}Ru(n){return this.du().then(()=>{this._u.sort((i,s)=>i.targetTimeMs-s.targetTimeMs);for(const i of this._u)if(i.skipDelay(),"all"!==n&&i.timerId===n)break;return this.du()})}Vu(n){this.lu.push(n)}Eu(n){const i=this._u.indexOf(n);this._u.splice(i,1)}}class Bi extends ch{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new xy,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Bg(this),this._firestoreClient.terminate()}}function dh(l,n){const i="object"==typeof l?l:(0,oe.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,oe.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const p=(0,Se.yU)("firestore");p&&function Rl(l,n,i,s={}){var u;const p=(l=Ii(l,ch))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==p.host&&p.host!==_&&dt("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},p),{host:_,ssl:!1})),s.mockUserToken){let R,k;if("string"==typeof s.mockUserToken)R=s.mockUserToken,k=xe.MOCK_USER;else{R=(0,Se.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const q=s.mockUserToken.sub||s.mockUserToken.user_id;if(!q)throw new Le(ve.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");k=new xe(q)}l._authCredentials=new Kt(new Wt(R,k))}}(u,...p)}return u}function ro(l){return l._firestoreClient||Bg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Bg(l){var n,i,s;const u=l._freezeSettings(),p=(k=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new jt(l._databaseId,k,l._persistenceKey,(ye=u).host,ye.ssl,ye.experimentalForceLongPolling,ye.experimentalAutoDetectLongPolling,uh(ye.experimentalLongPollingOptions),ye.useFetchStreams));var k,ye;l._firestoreClient=new wy(l._authCredentials,l._appCheckCredentials,l._queue,p),null!==(i=u.localCache)&&void 0!==i&&i._offlineComponentProvider&&null!==(s=u.localCache)&&void 0!==s&&s._onlineComponentProvider&&(l._firestoreClient._uninitializedComponentsProvider={_offlineKind:u.localCache.kind,_offline:u.localCache._offlineComponentProvider,_online:u.localCache._onlineComponentProvider})}class ic{constructor(n){this._byteString=n}static fromBase64String(n){try{return new ic(oi.fromBase64String(n))}catch(i){throw new Le(ve.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new ic(oi.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class fu{constructor(...n){for(let i=0;i90)throw new Le(ve.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new Le(ve.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+i);this._lat=n,this._long=i}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return nt(this._lat,n._lat)||nt(this._long,n._long)}}const Fv=/^__.*__$/;class $f{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return null!==this.fieldMask?new lo(n,this.data,this.fieldMask,i,this.fieldTransforms):new Ks(n,this.data,i,this.fieldTransforms)}}class $g{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return new lo(n,this.data,this.fieldMask,i,this.fieldTransforms)}}function jf(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw H()}}class zf{constructor(n,i,s,u,p,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===p&&this.mu(),this.fieldTransforms=p||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new zf(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.wu(n),u}Su(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.mu(),u}bu(n){return this.gu({path:void 0,yu:!0})}Du(n){return Wf(n,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(n){return void 0!==this.fieldMask.find(i=>n.isPrefixOf(i))||void 0!==this.fieldTransforms.find(i=>n.isPrefixOf(i.field))}mu(){if(this.path)for(let n=0;nk.covers(ze.field))}else k=null,q=_.fieldTransforms;return new $f(new Vn(R),k,q)}class Jc extends Yc{_toFieldTransform(n){if(2!==n.fu)throw n.Du(1===n.fu?`${this._methodName}() can only appear at the top level of your update data`:`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return n.fieldMask.push(n.path),null}isEqual(n){return n instanceof Jc}}function Pa(l,n){if(Bv(l=(0,Se.Ku)(l)))return Kg("Unsupported field value:",n,l),Vv(l,n);if(l instanceof Yc)return function(s,u){if(!jf(u.fu))throw u.Du(`${s._methodName}() can only be used with update() and set()`);if(!u.path)throw u.Du(`${s._methodName}() is not currently supported inside arrays`);const p=s._toFieldTransform(u);p&&u.fieldTransforms.push(p)}(l,n),null;if(void 0===l&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),l instanceof Array){if(n.settings.yu&&4!==n.fu)throw n.Du("Nested arrays are not supported");return function(s,u){const p=[];let _=0;for(const R of s){let k=Pa(R,u.bu(_));null==k&&(k={nullValue:"NULL_VALUE"}),p.push(k),_++}return{arrayValue:{values:p}}}(l,n)}return function(s,u){if(null===(s=(0,Se.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return hl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const p=pn.fromDate(s);return{timestampValue:Go(u.serializer,p)}}if(s instanceof pn){const p=new pn(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:Go(u.serializer,p)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof ic)return{bytesValue:qs(u.serializer,s._byteString)};if(s instanceof vo){const p=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(p))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${p.projectId}/${p.database}`);return{referenceValue:Qs(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${Uf(s)}`)}(l,n)}function Vv(l,n){const i={};return ei(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):ai(l,(s,u)=>{const p=Pa(u,n.pu(s));null!=p&&(i[s]=p)}),{mapValue:{fields:i}}}function Bv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof pn||l instanceof Ug||l instanceof ic||l instanceof vo||l instanceof Yc)}function Kg(l,n,i){if(!Bv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Uf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Zc(l,n,i){if((n=(0,Se.Ku)(n))instanceof fu)return n._internalPath;if("string"==typeof n)return Gf(l,n);throw Wf("Field path arguments must be of type string or ",l,!1,void 0,i)}const Uy=new RegExp("[~\\*/\\[\\]]");function Gf(l,n,i){if(n.search(Uy)>=0)throw Wf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new fu(...n.split("."))._internalPath}catch{throw Wf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Wf(l,n,i,s,u){const p=s&&!s.isEmpty(),_=void 0!==u;let R=`Function ${n}() called with invalid data`;i&&(R+=" (via `toFirestore()`)"),R+=". ";let k="";return(p||_)&&(k+=" (found",p&&(k+=` in field ${s}`),_&&(k+=` in document ${u}`),k+=")"),new Le(ve.INVALID_ARGUMENT,R+l+k)}function Uv(l,n){return l.some(i=>i.isEqual(n))}class ph{constructor(n,i,s,u,p){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=p}get id(){return this._key.path.lastSegment()}get ref(){return new vo(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new $y(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const i=this._document.data.field(ed("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class $y extends ph{data(){return super.data()}}function ed(l,n){return"string"==typeof n?Gf(l,n):n instanceof fu?n._internalPath:n._delegate._internalPath}class Qg{convertValue(n,i="none"){switch(j(n)){case 0:return null;case 1:return n.booleanValue;case 2:return le(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,i);case 5:return n.stringValue;case 6:return this.convertBytes(W(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,i);case 10:return this.convertObject(n.mapValue,i);default:throw H()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return ai(n,(u,p)=>{s[u]=this.convertValue(p,i)}),s}convertGeoPoint(n){return new Ug(le(n.latitude),le(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Ve(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(st(n));default:return null}}convertTimestamp(n){const i=he(n);return new pn(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=Mn.fromString(n);X(E(s));const u=new In(s.get(1),s.get(3)),p=new en(s.popFirst(5));return u.isEqual(i)||on(`Document ${p} contains a document reference within a different database (${u.projectId}/${u.database}) which is not supported. It will be treated as a reference in the current database (${i.projectId}/${i.database}) instead.`),p}}class Pl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class lc extends ph{constructor(n,i,s,u,p,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=p}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new rd(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(i,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,i={}){if(this._document){const s=this._document.data.field(ed("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class rd extends lc{data(n={}){return super.data(n)}}class xl{constructor(n,i,s,u){this._firestore=n,this._userDataWriter=i,this._snapshot=u,this.metadata=new Pl(u.hasPendingWrites,u.fromCache),this.query=s}get docs(){const n=[];return this.forEach(i=>n.push(i)),n}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(n,i){this._snapshot.docs.forEach(s=>{n.call(i,new rd(this._firestore,this._userDataWriter,s.key,s,new Pl(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))})}docChanges(n={}){const i=!!n.includeMetadataChanges;if(i&&this._snapshot.excludesMetadataChanges)throw new Le(ve.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===i||(this._cachedChanges=function(u,p){if(u._snapshot.oldDocs.isEmpty()){let _=0;return u._snapshot.docChanges.map(R=>({type:"added",doc:new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter),oldIndex:-1,newIndex:_++}))}{let _=u._snapshot.oldDocs;return u._snapshot.docChanges.filter(R=>p||3!==R.type).map(R=>{const k=new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter);let q=-1,ye=-1;return 0!==R.type&&(q=_.indexOf(R.doc.key),_=_.delete(R.doc.key)),1!==R.type&&(_=_.add(R.doc),ye=_.indexOf(R.doc.key)),{type:qy(R.type),doc:k,oldIndex:q,newIndex:ye}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function qy(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return H()}}function Hv(l){l=Ii(l,vo);const n=Ii(l.firestore,Bi);return function lh(l,n,i={}){const s=new _e;return l.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function(p,_,R,k,q){const ye=new Kc({next:pt=>{_.enqueueAndForget(()=>Ju(p,ze));const Ht=pt.docs.has(R);!Ht&&pt.fromCache?q.reject(new Le(ve.UNAVAILABLE,"Failed to get document because the client is offline.")):Ht&&pt.fromCache&&k&&"server"===k.source?q.reject(new Le(ve.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):q.resolve(pt)},error:pt=>q.reject(pt)}),ze=new v(Ce(R.path),ye,{includeMetadataChanges:!0,ra:!0});return Bs(p,ze)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(ro(n),l._key).then(i=>function Qf(l,n,i){const s=i.docs.get(n._key),u=new pu(l);return new lc(l,u,n._key,s,new Pl(i.hasPendingWrites,i.fromCache),n.converter)}(n,l,i))}class pu extends Qg{constructor(n){super(),this.firestore=n}convertBytes(n){return new ic(n)}convertReference(n){const i=this.convertDocumentKey(n,this.firestore._databaseId);return new vo(this.firestore,null,i)}}function Gv(l){l=Ii(l,uo);const n=Ii(l.firestore,Bi),i=ro(n),s=new pu(n);return function jy(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new Le(ve.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function Ng(l,n,i={}){const s=new _e;return l.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function(p,_,R,k,q){const ye=new Kc({next:pt=>{_.enqueueAndForget(()=>Ju(p,ze)),pt.fromCache&&"server"===k.source?q.reject(new Le(ve.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):q.resolve(pt)},error:pt=>q.reject(pt)}),ze=new v(R,ye,{includeMetadataChanges:!0,ra:!0});return Bs(p,ze)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new xl(n,s,l,u))}function em(l,n,i){l=Ii(l,vo);const s=Ii(l.firestore,Bi),u=function mh(l,n,i){let s;return s=l?i&&(i.merge||i.mergeFields)?l.toFirestore(n,i):l.toFirestore(n):n,s}(l.converter,n,i);return od(s,[fh(sc(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Ui.none())])}function Qy(l,n,i,...s){l=Ii(l,vo);const u=Ii(l.firestore,Bi),p=sc(u);let _;return _="string"==typeof(n=(0,Se.Ku)(n))||n instanceof fu?function Lv(l,n,i,s,u,p){const _=l.Fu(1,n,i),R=[Zc(n,s,i)],k=[u];if(p.length%2!=0)throw new Le(ve.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let pt=0;pt=0;--pt)if(!Uv(q,R[pt])){const Ht=R[pt];let An=k[pt];An=(0,Se.Ku)(An);const kn=_.Su(Ht);if(An instanceof Jc)q.push(Ht);else{const Sn=Pa(An,kn);null!=Sn&&(q.push(Ht),ye.set(Ht,Sn))}}const ze=new Ci(q);return new $g(ye,ze,_.fieldTransforms)}(p,"updateDoc",l._key,n,i,s):function Hf(l,n,i,s){const u=l.Fu(1,n,i);Kg("Data must be an object, but it was:",u,s);const p=[],_=Vn.empty();ai(s,(k,q)=>{const ye=Gf(n,k,i);q=(0,Se.Ku)(q);const ze=u.Su(ye);if(q instanceof Jc)p.push(ye);else{const pt=Pa(q,ze);null!=pt&&(p.push(ye),_.set(ye,pt))}});const R=new Ci(p);return new $g(_,R,u.fieldTransforms)}(p,"updateDoc",l._key,n),od(u,[_.toMutation(l._key,Ui.exists(!0))])}function Yy(l){return od(Ii(l.firestore,Bi),[new $(l._key,Ui.none())])}function od(l,n){return function(s,u){const p=new _e;return s.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function Yd(l,n,i){return Jd.apply(this,arguments)}(yield function Pg(l){return Xc(l).then(n=>n.syncEngine)}(s),u,p)})),p.promise}(ro(l),n)}!function(n,i=!0){rt=oe.MF,(0,oe.om)(new Xe.uA("firestore",(s,{instanceIdentifier:u,options:p})=>{const _=s.getProvider("app").getImmediate(),R=new Bi(new rn(s.getProvider("auth-internal")),new er(s.getProvider("app-check-internal")),function(q,ye){if(!Object.prototype.hasOwnProperty.apply(q.options,["projectId"]))throw new Le(ve.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new In(q.options.projectId,ye)}(_,u),_);return p=Object.assign({useFetchStreams:i},p),R._setSettings(p),R},"PUBLIC").setMultipleInstances(!0)),(0,oe.KO)(Fe,"4.6.3",n),(0,oe.KO)(Fe,"4.6.3","esm2017")}();class Eh{constructor(n){return n}}const tp="firestore",sm=new c.nKC("angularfire2.firestore-instances");function h0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new Eh(s)}}const f0={provide:class d0{constructor(){return(0,h.CA)(tp)}},deps:[[new c.Xx1,sm]]},p0={provide:Eh,useFactory:function Zv(l,n){const i=(0,h.lR)(tp,l,n);return i&&new Eh(i)},deps:[[new c.Xx1,sm],Z.XU]};function e_(l,...n){return(0,U.KO)("angularfire",h.xv.full,"fst"),(0,c.EmA)([p0,f0,{provide:sm,useFactory:h0(l),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,Oe.DF],[new c.Xx1,h.Jv],...n]}])}const _0=(0,h.S3)(Py,!0),y0=(0,h.S3)(Yy,!0),lm=(0,h.S3)(xv,!0),cm=(0,h.S3)(Hv,!0),o_=(0,h.S3)(Gv,!0),dm=(0,h.S3)(dh,!0),P0=(0,h.S3)(em,!0),x0=(0,h.S3)(Qy,!0)},9032:(Tn,gt,D)=>{"use strict";D.d(gt,{L9:()=>cr,oc:()=>Lt,v_:()=>He,cw:()=>Ee});var h=D(5407),c=D(4438),Z=D(7440),Oe=D(2214),U=D(467),ue=D(7852),oe=D(1362),Xe=D(1076),Je=D(1635),Se="@firebase/vertexai-preview",De="0.0.2";const Qe="vertexAI",Ze="us-central1",Tt=De,St="gl-js";class yt{constructor(ct,lt,Gt,tn){var _n;this.app=ct,this.options=tn;const qn=null==Gt?void 0:Gt.getImmediate({optional:!0}),hn=null==lt?void 0:lt.getImmediate({optional:!0});this.auth=hn||null,this.appCheck=qn||null,this.location=(null===(_n=this.options)||void 0===_n?void 0:_n.location)||Ze}_delete(){return Promise.resolve()}}const Et=new Xe.FA("vertexAI","VertexAI",{"fetch-error":"Error fetching from {$url}: {$message}","invalid-content":"Content formatting error: {$message}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid API key.',"no-project-id":'The "projectId" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid project ID.',"no-model":"Must provide a model name. Example: getGenerativeModel({ model: 'my-model-name' })","parse-failed":"Parsing failed: {$message}","response-error":"Response error: {$message}. Response body stored in error.customData.response"});var mt=function(ie){return ie.GENERATE_CONTENT="generateContent",ie.STREAM_GENERATE_CONTENT="streamGenerateContent",ie.COUNT_TOKENS="countTokens",ie}(mt||{});class Me{constructor(ct,lt,Gt,tn,_n){this.model=ct,this.task=lt,this.apiSettings=Gt,this.stream=tn,this.requestOptions=_n}toString(){var ct;let tn=`${(null===(ct=this.requestOptions)||void 0===ct?void 0:ct.baseUrl)||"https://firebaseml.googleapis.com"}/v2beta`;return tn+=`/projects/${this.apiSettings.project}`,tn+=`/locations/${this.apiSettings.location}`,tn+=`/${this.model}`,tn+=`:${this.task}`,this.stream&&(tn+="?alt=sse"),tn}get fullModelString(){let ct=`projects/${this.apiSettings.project}`;return ct+=`/locations/${this.apiSettings.location}`,ct+=`/${this.model}`,ct}}function ge(ie){return Ue.apply(this,arguments)}function Ue(){return(Ue=(0,U.A)(function*(ie){const ct=new Headers;if(ct.append("Content-Type","application/json"),ct.append("x-goog-api-client",function Ye(){const ie=[];return ie.push(`${St}/${Tt}`),ie.push(`fire/${Tt}`),ie.join(" ")}()),ct.append("x-goog-api-key",ie.apiSettings.apiKey),ie.apiSettings.getAppCheckToken){const lt=yield ie.apiSettings.getAppCheckToken();lt&&!lt.error&&ct.append("X-Firebase-AppCheck",lt.token)}if(ie.apiSettings.getAuthToken){const lt=yield ie.apiSettings.getAuthToken();lt&&ct.append("Authorization",`Firebase ${lt.accessToken}`)}return ct})).apply(this,arguments)}function xe(){return(xe=(0,U.A)(function*(ie,ct,lt,Gt,tn,_n){const qn=new Me(ie,ct,lt,Gt,_n);return{url:qn.toString(),fetchOptions:Object.assign(Object.assign({},vn(_n)),{method:"POST",headers:yield ge(qn),body:tn})}})).apply(this,arguments)}function rt(ie,ct,lt,Gt,tn,_n){return Rt.apply(this,arguments)}function Rt(){return Rt=(0,U.A)(function*(ie,ct,lt,Gt,tn,_n){const qn=new Me(ie,ct,lt,Gt,_n);let hn;try{const Cn=yield function Fe(ie,ct,lt,Gt,tn,_n){return xe.apply(this,arguments)}(ie,ct,lt,Gt,tn,_n);if(hn=yield fetch(Cn.url,Cn.fetchOptions),!hn.ok){let tr="";try{const Ar=yield hn.json();tr=Ar.error.message,Ar.error.details&&(tr+=` ${JSON.stringify(Ar.error.details)}`)}catch{}throw new Error(`[${hn.status} ${hn.statusText}] ${tr}`)}}catch(Cn){const tr=Cn,Ar=Et.create("fetch-error",{url:qn.toString(),message:tr.message});throw Ar.stack=tr.stack,Ar}return hn}),Rt.apply(this,arguments)}function vn(ie){const ct={};if(null!=ie&&ie.timeout&&(null==ie?void 0:ie.timeout)>=0){const lt=new AbortController,Gt=lt.signal;setTimeout(()=>lt.abort(),ie.timeout),ct.signal=Gt}return ct}const Nt=["user","model","function","system"];var fe=function(ie){return ie.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",ie.STOP="STOP",ie.MAX_TOKENS="MAX_TOKENS",ie.SAFETY="SAFETY",ie.RECITATION="RECITATION",ie.OTHER="OTHER",ie}(fe||{});function Le(ie){return ie.text=()=>{if(ie.candidates&&ie.candidates.length>0){if(ie.candidates.length>1&&console.warn(`This response had ${ie.candidates.length} candidates. Returning text from the first candidate only. Access response.candidates directly to use the other candidates.`),Kt(ie.candidates[0]))throw Et.create("response-error",{message:`${rn(ie)}`,response:ie});return function _e(ie){var ct,lt,Gt,tn;const _n=[];if(null!==(lt=null===(ct=ie.candidates)||void 0===ct?void 0:ct[0].content)&&void 0!==lt&<.parts)for(const qn of null===(tn=null===(Gt=ie.candidates)||void 0===Gt?void 0:Gt[0].content)||void 0===tn?void 0:tn.parts)qn.text&&_n.push(qn.text);return _n.length>0?_n.join(""):""}(ie)}if(ie.promptFeedback)throw Et.create("response-error",{message:`Text not available. ${rn(ie)}`,response:ie});return""},ie.functionCalls=()=>{if(ie.candidates&&ie.candidates.length>0){if(ie.candidates.length>1&&console.warn(`This response had ${ie.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),Kt(ie.candidates[0]))throw Et.create("response-error",{message:`${rn(ie)}`,response:ie});return function Wt(ie){var ct,lt,Gt,tn;const _n=[];if(null!==(lt=null===(ct=ie.candidates)||void 0===ct?void 0:ct[0].content)&&void 0!==lt&<.parts)for(const qn of null===(tn=null===(Gt=ie.candidates)||void 0===Gt?void 0:Gt[0].content)||void 0===tn?void 0:tn.parts)qn.functionCall&&_n.push(qn.functionCall);if(_n.length>0)return _n}(ie)}if(ie.promptFeedback)throw Et.create("response-error",{message:`Function call not available. ${rn(ie)}`,response:ie})},ie}const dn=[fe.RECITATION,fe.SAFETY];function Kt(ie){return!!ie.finishReason&&dn.includes(ie.finishReason)}function rn(ie){var ct,lt,Gt;let tn="";if(ie.candidates&&0!==ie.candidates.length||!ie.promptFeedback){if(null!==(Gt=ie.candidates)&&void 0!==Gt&&Gt[0]){const _n=ie.candidates[0];Kt(_n)&&(tn+=`Candidate was blocked due to ${_n.finishReason}`,_n.finishMessage&&(tn+=`: ${_n.finishMessage}`))}}else tn+="Response was blocked",!(null===(ct=ie.promptFeedback)||void 0===ct)&&ct.blockReason&&(tn+=` due to ${ie.promptFeedback.blockReason}`),null!==(lt=ie.promptFeedback)&&void 0!==lt&<.blockReasonMessage&&(tn+=`: ${ie.promptFeedback.blockReasonMessage}`);return tn}const Ln=/^data\: (.*)(?:\n\n|\r\r|\r\n\r\n)/;function nr(ie){return er.apply(this,arguments)}function er(){return(er=(0,U.A)(function*(ie){const ct=[],lt=ie.getReader();for(;;){const{done:Gt,value:tn}=yield lt.read();if(Gt)return Le(ir(ct));ct.push(tn)}})).apply(this,arguments)}function yr(ie){return(0,Je.AQ)(this,arguments,function*(){const lt=ie.getReader();for(;;){const{value:Gt,done:tn}=yield(0,Je.N3)(lt.read());if(tn)break;yield yield(0,Je.N3)(Le(Gt))}})}function ir(ie){const ct=ie[ie.length-1],lt={promptFeedback:null==ct?void 0:ct.promptFeedback};for(const Gt of ie)if(Gt.candidates)for(const tn of Gt.candidates){const _n=tn.index;if(lt.candidates||(lt.candidates=[]),lt.candidates[_n]||(lt.candidates[_n]={index:tn.index}),lt.candidates[_n].citationMetadata=tn.citationMetadata,lt.candidates[_n].finishReason=tn.finishReason,lt.candidates[_n].finishMessage=tn.finishMessage,lt.candidates[_n].safetyRatings=tn.safetyRatings,tn.content&&tn.content.parts){lt.candidates[_n].content||(lt.candidates[_n].content={role:tn.content.role||"user",parts:[]});const qn={};for(const hn of tn.content.parts)hn.text&&(qn.text=hn.text),hn.functionCall&&(qn.functionCall=hn.functionCall),0===Object.keys(qn).length&&(qn.text=""),lt.candidates[_n].content.parts.push(qn)}}return lt}function nt(ie,ct,lt,Gt){return Ot.apply(this,arguments)}function Ot(){return(Ot=(0,U.A)(function*(ie,ct,lt,Gt){return function Zn(ie){const lt=function rr(ie){const ct=ie.getReader();return new ReadableStream({start(Gt){let tn="";return function _n(){return ct.read().then(({value:qn,done:hn})=>{if(hn)return tn.trim()?void Gt.error(Et.create("parse-failed",{message:"Failed to parse stream"})):void Gt.close();tn+=qn;let tr,Cn=tn.match(Ln);for(;Cn;){try{tr=JSON.parse(Cn[1])}catch{return void Gt.error(Et.create("parse-failed",{message:`Error parsing JSON response: "${Cn[1]}"`}))}Gt.enqueue(tr),tn=tn.substring(Cn[0].length),Cn=tn.match(Ln)}return _n()})}()}})}(ie.body.pipeThrough(new TextDecoderStream("utf8",{fatal:!0}))),[Gt,tn]=lt.tee();return{stream:yr(Gt),response:nr(tn)}}(yield rt(ct,mt.STREAM_GENERATE_CONTENT,ie,!0,JSON.stringify(lt),Gt))})).apply(this,arguments)}function zt(ie,ct,lt,Gt){return pn.apply(this,arguments)}function pn(){return(pn=(0,U.A)(function*(ie,ct,lt,Gt){return{response:Le(yield(yield rt(ct,mt.GENERATE_CONTENT,ie,!1,JSON.stringify(lt),Gt)).json())}})).apply(this,arguments)}function gn(ie){if(null!=ie){if("string"==typeof ie)return{role:"system",parts:[{text:ie}]};if(ie.text)return{role:"system",parts:[ie]};if(ie.parts)return ie.role?ie:{role:"system",parts:ie.parts}}}function Sr(ie){let ct=[];if("string"==typeof ie)ct=[{text:ie}];else for(const lt of ie)ct.push("string"==typeof lt?{text:lt}:lt);return function Mn(ie){const ct={role:"user",parts:[]},lt={role:"function",parts:[]};let Gt=!1,tn=!1;for(const _n of ie)"functionResponse"in _n?(lt.parts.push(_n),tn=!0):(ct.parts.push(_n),Gt=!0);if(Gt&&tn)throw Et.create("invalid-content",{message:"Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message."});if(!Gt&&!tn)throw Et.create("invalid-content",{message:"No content is provided for sending chat message."});return Gt?ct:lt}(ct)}function xn(ie){let ct;return ct=ie.contents?ie:{contents:[Sr(ie)]},ie.systemInstruction&&(ct.systemInstruction=gn(ie.systemInstruction)),ct}const mn=["text","inlineData","functionCall","functionResponse"],en={user:["text","inlineData"],function:["functionResponse"],model:["text","functionCall"],system:["text"]},Er={user:["model"],function:["model"],model:["user","function"],system:[]},Nr="SILENT_ERROR";class Qn{constructor(ct,lt,Gt,tn){this.model=lt,this.params=Gt,this.requestOptions=tn,this._history=[],this._sendPromise=Promise.resolve(),this._apiSettings=ct,null!=Gt&&Gt.history&&(function Ir(ie){let ct=null;for(const lt of ie){const{role:Gt,parts:tn}=lt;if(!ct&&"user"!==Gt)throw Et.create("invalid-content",{message:`First content should be with role 'user', got ${Gt}`});if(!Nt.includes(Gt))throw Et.create("invalid-content",{message:`Each item should include role field. Got ${Gt} but valid roles are: ${JSON.stringify(Nt)}`});if(!Array.isArray(tn))throw Et.create("invalid-content",{message:"Content should have 'parts' property with an array of Parts"});if(0===tn.length)throw Et.create("invalid-content",{message:"Each Content should have at least one part"});const _n={text:0,inlineData:0,functionCall:0,functionResponse:0};for(const hn of tn)for(const Cn of mn)Cn in hn&&(_n[Cn]+=1);const qn=en[Gt];for(const hn of mn)if(!qn.includes(hn)&&_n[hn]>0)throw Et.create("invalid-content",{message:`Content with role '${Gt}' can't contain '${hn}' part`});if(ct&&!Er[Gt].includes(ct.role))throw Et.create("invalid-content",{message:`Content with role '${Gt}' can't follow '${ct.role}'. Valid previous roles: ${JSON.stringify(Er)}`});ct=lt}}(Gt.history),this._history=Gt.history)}getHistory(){var ct=this;return(0,U.A)(function*(){return yield ct._sendPromise,ct._history})()}sendMessage(ct){var lt=this;return(0,U.A)(function*(){var Gt,tn,_n,qn,hn;yield lt._sendPromise;const Cn=Sr(ct),tr={safetySettings:null===(Gt=lt.params)||void 0===Gt?void 0:Gt.safetySettings,generationConfig:null===(tn=lt.params)||void 0===tn?void 0:tn.generationConfig,tools:null===(_n=lt.params)||void 0===_n?void 0:_n.tools,toolConfig:null===(qn=lt.params)||void 0===qn?void 0:qn.toolConfig,systemInstruction:null===(hn=lt.params)||void 0===hn?void 0:hn.systemInstruction,contents:[...lt._history,Cn]};let Ar={};return lt._sendPromise=lt._sendPromise.then(()=>zt(lt._apiSettings,lt.model,tr,lt.requestOptions)).then(dr=>{var $r,Zr;if(dr.response.candidates&&dr.response.candidates.length>0){lt._history.push(Cn);const fr={parts:(null===($r=dr.response.candidates)||void 0===$r?void 0:$r[0].content.parts)||[],role:(null===(Zr=dr.response.candidates)||void 0===Zr?void 0:Zr[0].content.role)||"model"};lt._history.push(fr)}else{const fr=rn(dr.response);fr&&console.warn(`sendMessage() was unsuccessful. ${fr}. Inspect response object for details.`)}Ar=dr}),yield lt._sendPromise,Ar})()}sendMessageStream(ct){var lt=this;return(0,U.A)(function*(){var Gt,tn,_n,qn,hn;yield lt._sendPromise;const Cn=Sr(ct),tr={safetySettings:null===(Gt=lt.params)||void 0===Gt?void 0:Gt.safetySettings,generationConfig:null===(tn=lt.params)||void 0===tn?void 0:tn.generationConfig,tools:null===(_n=lt.params)||void 0===_n?void 0:_n.tools,toolConfig:null===(qn=lt.params)||void 0===qn?void 0:qn.toolConfig,systemInstruction:null===(hn=lt.params)||void 0===hn?void 0:hn.systemInstruction,contents:[...lt._history,Cn]},Ar=nt(lt._apiSettings,lt.model,tr,lt.requestOptions);return lt._sendPromise=lt._sendPromise.then(()=>Ar).catch(dr=>{throw new Error(Nr)}).then(dr=>dr.response).then(dr=>{if(dr.candidates&&dr.candidates.length>0){lt._history.push(Cn);const $r=Object.assign({},dr.candidates[0].content);$r.role||($r.role="model"),lt._history.push($r)}else{const $r=rn(dr);$r&&console.warn(`sendMessageStream() was unsuccessful. ${$r}. Inspect response object for details.`)}}).catch(dr=>{dr.message!==Nr&&console.error(dr)}),Ar})()}}function Jn(){return(Jn=(0,U.A)(function*(ie,ct,lt,Gt){return(yield rt(ct,mt.COUNT_TOKENS,ie,!1,JSON.stringify(lt),Gt)).json()})).apply(this,arguments)}class Jr{constructor(ct,lt,Gt){var tn,_n,qn,hn;if(null===(_n=null===(tn=ct.app)||void 0===tn?void 0:tn.options)||void 0===_n||!_n.apiKey)throw Et.create("no-api-key");if(null===(hn=null===(qn=ct.app)||void 0===qn?void 0:qn.options)||void 0===hn||!hn.projectId)throw Et.create("no-project-id");this._apiSettings={apiKey:ct.app.options.apiKey,project:ct.app.options.projectId,location:ct.location},ct.appCheck&&(this._apiSettings.getAppCheckToken=()=>ct.appCheck.getToken()),ct.auth&&(this._apiSettings.getAuthToken=()=>ct.auth.getToken()),this.model=lt.model.includes("/")?lt.model.startsWith("models/")?`publishers/google/${lt.model}`:lt.model:`publishers/google/models/${lt.model}`,this.generationConfig=lt.generationConfig||{},this.safetySettings=lt.safetySettings||[],this.tools=lt.tools,this.toolConfig=lt.toolConfig,this.systemInstruction=gn(lt.systemInstruction),this.requestOptions=Gt||{}}generateContent(ct){var lt=this;return(0,U.A)(function*(){const Gt=xn(ct);return zt(lt._apiSettings,lt.model,Object.assign({generationConfig:lt.generationConfig,safetySettings:lt.safetySettings,tools:lt.tools,toolConfig:lt.toolConfig,systemInstruction:lt.systemInstruction},Gt),lt.requestOptions)})()}generateContentStream(ct){var lt=this;return(0,U.A)(function*(){const Gt=xn(ct);return nt(lt._apiSettings,lt.model,Object.assign({generationConfig:lt.generationConfig,safetySettings:lt.safetySettings,tools:lt.tools,toolConfig:lt.toolConfig,systemInstruction:lt.systemInstruction},Gt),lt.requestOptions)})()}startChat(ct){return new Qn(this._apiSettings,this.model,Object.assign({tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction},ct),this.requestOptions)}countTokens(ct){var lt=this;return(0,U.A)(function*(){const Gt=xn(ct);return function Dr(ie,ct,lt,Gt){return Jn.apply(this,arguments)}(lt._apiSettings,lt.model,Gt)})()}}function mr(ie=(0,ue.Sx)(),ct){return ie=(0,Xe.Ku)(ie),(0,ue.j6)(ie,Qe).getImmediate({identifier:(null==ct?void 0:ct.location)||Ze})}function ur(ie,ct,lt){if(!ct.model)throw Et.create("no-model");return new Jr(ie,ct,lt)}!function Pr(){(0,ue.om)(new oe.uA(Qe,(ie,{instanceIdentifier:ct})=>{const lt=ie.getProvider("app").getImmediate(),Gt=ie.getProvider("auth-internal"),tn=ie.getProvider("app-check-internal");return new yt(lt,Gt,tn,{location:ct})},"PUBLIC").setMultipleInstances(!0)),(0,ue.KO)(Se,De),(0,ue.KO)(Se,De,"esm2017")}();class cr{constructor(ct){return ct}}const kr="vertexai",Qr=new c.nKC("angularfire2.vertexai-instances");function it(ie){return(ct,lt)=>{const Gt=ct.runOutsideAngular(()=>ie(lt));return new cr(Gt)}}const Mt={provide:class ii{constructor(){return(0,h.CA)(kr)}},deps:[[new c.Xx1,Qr]]},ut={provide:cr,useFactory:function pe(ie,ct){const lt=(0,h.lR)(kr,ie,ct);return lt&&new cr(lt)},deps:[[new c.Xx1,Qr],Z.XU]};function Ee(ie,...ct){return(0,Oe.KO)("angularfire",h.xv.full,"vertexai"),(0,c.EmA)([ut,Mt,{provide:Qr,useFactory:it(ie),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...ct]}])}const He=(0,h.S3)(mr,!0),Lt=(0,h.S3)(ur,!0)},5407:(Tn,gt,D)=>{"use strict";D.d(gt,{xv:()=>ht,u0:()=>ge,Jv:()=>_t,CA:()=>yt,lR:()=>St,S3:()=>on});var h=D(9842),c=D(4438),Z=D(2214),Oe=D(6780),ue=D(9687);const Xe=new class oe extends ue.q{}(class U extends Oe.R{constructor(we,H){super(we,H),this.scheduler=we,this.work=H}schedule(we,H=0){return H>0?super.schedule(we,H):(this.delay=H,this.state=we,this.scheduler.flush(this),this)}execute(we,H){return H>0||this.closed?super.execute(we,H):this._execute(we,H)}requestAsyncId(we,H,X=0){return null!=X&&X>0||null==X&&this.delay>0?super.requestAsyncId(we,H,X):(we.flush(this),0)}});var Se=D(3236),De=D(1985),Qe=D(8141),Ze=D(6745),qe=D(941);const ht=new c.RxE("ANGULARFIRE2_VERSION");function St(dt,we,H){if(we){if(1===we.length)return we[0];const se=we.filter(ve=>ve.app===H);if(1===se.length)return se[0]}return H.container.getProvider(dt).getImmediate({optional:!0})}const yt=(dt,we)=>{const H=we?[we]:(0,Z.Dk)(),X=[];return H.forEach(fe=>{fe.container.getProvider(dt).instances.forEach(ve=>{X.includes(ve)||X.push(ve)})}),X};class _t{constructor(){return yt(Et)}}const Et="app-check";function mt(){}class Me{constructor(we,H=Xe){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"delegate",void 0),this.zone=we,this.delegate=H}now(){return this.delegate.now()}schedule(we,H,X){const fe=this.zone;return this.delegate.schedule(function(ve){fe.runGuarded(()=>{we.apply(this,[ve])})},H,X)}}class Ye{constructor(we){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"task",null),this.zone=we}call(we,H){const X=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",mt,{},mt,mt)),H.pipe((0,Qe.M)({next:X,complete:X,error:X})).subscribe(we).add(X)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let ge=(()=>{var dt;class we{constructor(X){(0,h.A)(this,"ngZone",void 0),(0,h.A)(this,"outsideAngular",void 0),(0,h.A)(this,"insideAngular",void 0),this.ngZone=X,this.outsideAngular=X.runOutsideAngular(()=>new Me(Zone.current)),this.insideAngular=X.run(()=>new Me(Zone.current,Se.E)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return dt=we,(0,h.A)(we,"\u0275fac",function(X){return new(X||dt)(c.KVO(c.SKi))}),(0,h.A)(we,"\u0275prov",c.jDH({token:dt,factory:dt.\u0275fac,providedIn:"root"})),we})();function Ue(){const dt=globalThis.\u0275AngularFireScheduler;if(!dt)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return dt}function xe(dt){return Ue().ngZone.run(()=>dt())}function vn(dt){return function Nt(dt){return function(H){return(H=H.lift(new Ye(dt.ngZone))).pipe((0,Ze._)(dt.outsideAngular),(0,qe.Q)(dt.insideAngular))}}(Ue())(dt)}const tt=(dt,we)=>function(){const X=arguments;return we&&setTimeout(()=>{"scheduled"===we.state&&we.invoke()},10),xe(()=>dt.apply(void 0,X))},on=(dt,we)=>function(){let H;const X=arguments;for(let se=0;seZone.current.scheduleMacroTask("firebaseZoneBlock",mt,{},mt,mt)))),X[se]=tt(X[se],H));const fe=function Fe(dt){return Ue().ngZone.runOutsideAngular(()=>dt())}(()=>dt.apply(this,X));if(!we){if(fe instanceof De.c){const se=Ue();return fe.pipe((0,Ze._)(se.outsideAngular),(0,qe.Q)(se.insideAngular))}return xe(()=>fe)}return fe instanceof De.c?fe.pipe(vn):fe instanceof Promise?xe(()=>new Promise((se,ve)=>fe.then(Le=>xe(()=>se(Le)),Le=>xe(()=>ve(Le))))):"function"==typeof fe&&H?function(){return setTimeout(()=>{H&&"scheduled"===H.state&&H.invoke()},10),fe.apply(this,arguments)}:xe(()=>fe)}},4341:(Tn,gt,D)=>{"use strict";D.d(gt,{YN:()=>ha,zX:()=>ki,VZ:()=>as,cz:()=>ge,kq:()=>ht,vO:()=>zt,BC:()=>Mn,vS:()=>bt});var h=D(4438),c=D(177),Z=D(8455),Oe=D(1985),U=D(3073),ue=D(8750),oe=D(9326),Xe=D(4360),Je=D(6450),Se=D(8496),Qe=D(6354);let Ze=(()=>{var K;class N{constructor(G,ke){this._renderer=G,this._elementRef=ke,this.onChange=yn=>{},this.onTouched=()=>{}}setProperty(G,ke){this._renderer.setProperty(this._elementRef.nativeElement,G,ke)}registerOnTouched(G){this.onTouched=G}registerOnChange(G){this.onChange=G}setDisabledState(G){this.setProperty("disabled",G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(h.sFG),h.rXU(h.aKT))},K.\u0275dir=h.FsC({type:K}),N})(),qe=(()=>{var K;class N extends Ze{}return(K=N).\u0275fac=(()=>{let Ce;return function(ke){return(Ce||(Ce=h.xGo(K)))(ke||K)}})(),K.\u0275dir=h.FsC({type:K,features:[h.Vt3]}),N})();const ht=new h.nKC(""),yt={provide:ht,useExisting:(0,h.Rfq)(()=>mt),multi:!0},Et=new h.nKC("");let mt=(()=>{var K;class N extends Ze{constructor(G,ke,yn){super(G,ke),this._compositionMode=yn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function _t(){const K=(0,c.QT)()?(0,c.QT)().getUserAgent():"";return/android (\d+)/.test(K.toLowerCase())}())}writeValue(G){this.setProperty("value",null==G?"":G)}_handleInput(G){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(G)}_compositionStart(){this._composing=!0}_compositionEnd(G){this._composing=!1,this._compositionMode&&this.onChange(G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(h.sFG),h.rXU(h.aKT),h.rXU(Et,8))},K.\u0275dir=h.FsC({type:K,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(G,ke){1&G&&h.bIt("input",function(Xn){return ke._handleInput(Xn.target.value)})("blur",function(){return ke.onTouched()})("compositionstart",function(){return ke._compositionStart()})("compositionend",function(Xn){return ke._compositionEnd(Xn.target.value)})},features:[h.Jv_([yt]),h.Vt3]}),N})();function Me(K){return null==K||("string"==typeof K||Array.isArray(K))&&0===K.length}const ge=new h.nKC(""),Ue=new h.nKC("");function H(K){return null}function X(K){return null!=K}function fe(K){return(0,h.jNT)(K)?(0,Z.H)(K):K}function se(K){let N={};return K.forEach(Ce=>{N=null!=Ce?{...N,...Ce}:N}),0===Object.keys(N).length?null:N}function ve(K,N){return N.map(Ce=>Ce(K))}function _e(K){return K.map(N=>function Le(K){return!K.validate}(N)?N:Ce=>N.validate(Ce))}function dn(K){return null!=K?function Wt(K){if(!K)return null;const N=K.filter(X);return 0==N.length?null:function(Ce){return se(ve(Ce,N))}}(_e(K)):null}function rn(K){return null!=K?function Kt(K){if(!K)return null;const N=K.filter(X);return 0==N.length?null:function(Ce){return function De(...K){const N=(0,oe.ms)(K),{args:Ce,keys:G}=(0,U.D)(K),ke=new Oe.c(yn=>{const{length:Xn}=Ce;if(!Xn)return void yn.complete();const wr=new Array(Xn);let oo=Xn,wo=Xn;for(let So=0;So{Yo||(Yo=!0,wo--),wr[So]=Fa},()=>oo--,void 0,()=>{(!oo||!Yo)&&(wo||yn.next(G?(0,Se.e)(G,wr):wr),yn.complete())}))}});return N?ke.pipe((0,Je.I)(N)):ke}(ve(Ce,N).map(fe)).pipe((0,Qe.T)(se))}}(_e(K)):null}function Ln(K,N){return null===K?[N]:Array.isArray(K)?[...K,N]:[K,N]}function er(K){return K?Array.isArray(K)?K:[K]:[]}function yr(K,N){return Array.isArray(K)?K.includes(N):K===N}function rr(K,N){const Ce=er(N);return er(K).forEach(ke=>{yr(Ce,ke)||Ce.push(ke)}),Ce}function ir(K,N){return er(N).filter(Ce=>!yr(K,Ce))}class nt{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(N){this._rawValidators=N||[],this._composedValidatorFn=dn(this._rawValidators)}_setAsyncValidators(N){this._rawAsyncValidators=N||[],this._composedAsyncValidatorFn=rn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(N){this._onDestroyCallbacks.push(N)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(N=>N()),this._onDestroyCallbacks=[]}reset(N=void 0){this.control&&this.control.reset(N)}hasError(N,Ce){return!!this.control&&this.control.hasError(N,Ce)}getError(N,Ce){return this.control?this.control.getError(N,Ce):null}}class Ot extends nt{get formDirective(){return null}get path(){return null}}class zt extends nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class pn{constructor(N){this._cd=N}get isTouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.touched)}get isUntouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.untouched)}get isPristine(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pristine)}get isDirty(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.dirty)}get isValid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.valid)}get isInvalid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.invalid)}get isPending(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pending)}get isSubmitted(){var N;return!(null===(N=this._cd)||void 0===N||!N.submitted)}}let Mn=(()=>{var K;class N extends pn{constructor(G){super(G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(zt,2))},K.\u0275dir=h.FsC({type:K,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(G,ke){2&G&&h.AVh("ng-untouched",ke.isUntouched)("ng-touched",ke.isTouched)("ng-pristine",ke.isPristine)("ng-dirty",ke.isDirty)("ng-valid",ke.isValid)("ng-invalid",ke.isInvalid)("ng-pending",ke.isPending)},features:[h.Vt3]}),N})();const pe="VALID",it="INVALID",Mt="PENDING",ut="DISABLED";function ie(K){return null!=K&&!Array.isArray(K)&&"object"==typeof K}class Gt{constructor(N,Ce){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(N),this._assignAsyncValidators(Ce)}get validator(){return this._composedValidatorFn}set validator(N){this._rawValidators=this._composedValidatorFn=N}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(N){this._rawAsyncValidators=this._composedAsyncValidatorFn=N}get parent(){return this._parent}get valid(){return this.status===pe}get invalid(){return this.status===it}get pending(){return this.status==Mt}get disabled(){return this.status===ut}get enabled(){return this.status!==ut}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(N){this._assignValidators(N)}setAsyncValidators(N){this._assignAsyncValidators(N)}addValidators(N){this.setValidators(rr(N,this._rawValidators))}addAsyncValidators(N){this.setAsyncValidators(rr(N,this._rawAsyncValidators))}removeValidators(N){this.setValidators(ir(N,this._rawValidators))}removeAsyncValidators(N){this.setAsyncValidators(ir(N,this._rawAsyncValidators))}hasValidator(N){return yr(this._rawValidators,N)}hasAsyncValidator(N){return yr(this._rawAsyncValidators,N)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(N={}){this.touched=!0,this._parent&&!N.onlySelf&&this._parent.markAsTouched(N)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(N=>N.markAllAsTouched())}markAsUntouched(N={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ce=>{Ce.markAsUntouched({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}markAsDirty(N={}){this.pristine=!1,this._parent&&!N.onlySelf&&this._parent.markAsDirty(N)}markAsPristine(N={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ce=>{Ce.markAsPristine({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}markAsPending(N={}){this.status=Mt,!1!==N.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!N.onlySelf&&this._parent.markAsPending(N)}disable(N={}){const Ce=this._parentMarkedDirty(N.onlySelf);this.status=ut,this.errors=null,this._forEachChild(G=>{G.disable({...N,onlySelf:!0})}),this._updateValue(),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...N,skipPristineCheck:Ce}),this._onDisabledChange.forEach(G=>G(!0))}enable(N={}){const Ce=this._parentMarkedDirty(N.onlySelf);this.status=pe,this._forEachChild(G=>{G.enable({...N,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent}),this._updateAncestors({...N,skipPristineCheck:Ce}),this._onDisabledChange.forEach(G=>G(!1))}_updateAncestors(N){this._parent&&!N.onlySelf&&(this._parent.updateValueAndValidity(N),N.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(N){this._parent=N}getRawValue(){return this.value}updateValueAndValidity(N={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pe||this.status===Mt)&&this._runAsyncValidator(N.emitEvent)),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!N.onlySelf&&this._parent.updateValueAndValidity(N)}_updateTreeValidity(N={emitEvent:!0}){this._forEachChild(Ce=>Ce._updateTreeValidity(N)),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ut:pe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(N){if(this.asyncValidator){this.status=Mt,this._hasOwnPendingAsyncValidator=!0;const Ce=fe(this.asyncValidator(this));this._asyncValidationSubscription=Ce.subscribe(G=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(G,{emitEvent:N})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(N,Ce={}){this.errors=N,this._updateControlsErrors(!1!==Ce.emitEvent)}get(N){let Ce=N;return null==Ce||(Array.isArray(Ce)||(Ce=Ce.split(".")),0===Ce.length)?null:Ce.reduce((G,ke)=>G&&G._find(ke),this)}getError(N,Ce){const G=Ce?this.get(Ce):this;return G&&G.errors?G.errors[N]:null}hasError(N,Ce){return!!this.getError(N,Ce)}get root(){let N=this;for(;N._parent;)N=N._parent;return N}_updateControlsErrors(N){this.status=this._calculateStatus(),N&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(N)}_initObservables(){this.valueChanges=new h.bkB,this.statusChanges=new h.bkB}_calculateStatus(){return this._allControlsDisabled()?ut:this.errors?it:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mt)?Mt:this._anyControlsHaveStatus(it)?it:pe}_anyControlsHaveStatus(N){return this._anyControls(Ce=>Ce.status===N)}_anyControlsDirty(){return this._anyControls(N=>N.dirty)}_anyControlsTouched(){return this._anyControls(N=>N.touched)}_updatePristine(N={}){this.pristine=!this._anyControlsDirty(),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}_updateTouched(N={}){this.touched=this._anyControlsTouched(),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}_registerOnCollectionChange(N){this._onCollectionChange=N}_setUpdateStrategy(N){ie(N)&&null!=N.updateOn&&(this._updateOn=N.updateOn)}_parentMarkedDirty(N){return!N&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(N){return null}_assignValidators(N){this._rawValidators=Array.isArray(N)?N.slice():N,this._composedValidatorFn=function Ee(K){return Array.isArray(K)?dn(K):K||null}(this._rawValidators)}_assignAsyncValidators(N){this._rawAsyncValidators=Array.isArray(N)?N.slice():N,this._composedAsyncValidatorFn=function Lt(K){return Array.isArray(K)?rn(K):K||null}(this._rawAsyncValidators)}}const Ar=new h.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>dr}),dr="always";function Zr(K,N,Ce=dr){var G,ke;(function pr(K,N){const Ce=function Zn(K){return K._rawValidators}(K);null!==N.validator?K.setValidators(Ln(Ce,N.validator)):"function"==typeof Ce&&K.setValidators([Ce]);const G=function nr(K){return K._rawAsyncValidators}(K);null!==N.asyncValidator?K.setAsyncValidators(Ln(G,N.asyncValidator)):"function"==typeof G&&K.setAsyncValidators([G]);const ke=()=>K.updateValueAndValidity();Ri(N._rawValidators,ke),Ri(N._rawAsyncValidators,ke)})(K,N),N.valueAccessor.writeValue(K.value),(K.disabled||"always"===Ce)&&(null===(G=(ke=N.valueAccessor).setDisabledState)||void 0===G||G.call(ke,K.disabled)),function ne(K,N){N.valueAccessor.registerOnChange(Ce=>{K._pendingValue=Ce,K._pendingChange=!0,K._pendingDirty=!0,"change"===K.updateOn&&je(K,N)})}(K,N),function M(K,N){const Ce=(G,ke)=>{N.valueAccessor.writeValue(G),ke&&N.viewToModelUpdate(G)};K.registerOnChange(Ce),N._registerOnDestroy(()=>{K._unregisterOnChange(Ce)})}(K,N),function ee(K,N){N.valueAccessor.registerOnTouched(()=>{K._pendingTouched=!0,"blur"===K.updateOn&&K._pendingChange&&je(K,N),"submit"!==K.updateOn&&K.markAsTouched()})}(K,N),function gi(K,N){if(N.valueAccessor.setDisabledState){const Ce=G=>{N.valueAccessor.setDisabledState(G)};K.registerOnDisabledChange(Ce),N._registerOnDestroy(()=>{K._unregisterOnDisabledChange(Ce)})}}(K,N)}function Ri(K,N){K.forEach(Ce=>{Ce.registerOnValidatorChange&&Ce.registerOnValidatorChange(N)})}function je(K,N){K._pendingDirty&&K.markAsDirty(),K.setValue(K._pendingValue,{emitModelToViewChange:!1}),N.viewToModelUpdate(K._pendingValue),K._pendingChange=!1}function Cr(K,N){const Ce=K.indexOf(N);Ce>-1&&K.splice(Ce,1)}function ai(K){return"object"==typeof K&&null!==K&&2===Object.keys(K).length&&"value"in K&&"disabled"in K}Promise.resolve();const li=class extends Gt{constructor(N=null,Ce,G){super(function ce(K){return(ie(K)?K.validators:K)||null}(Ce),function He(K,N){return(ie(N)?N.asyncValidators:K)||null}(G,Ce)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(N),this._setUpdateStrategy(Ce),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ie(Ce)&&(Ce.nonNullable||Ce.initialValueIsDefault)&&(this.defaultValue=ai(N)?N.value:N)}setValue(N,Ce={}){this.value=this._pendingValue=N,this._onChange.length&&!1!==Ce.emitModelToViewChange&&this._onChange.forEach(G=>G(this.value,!1!==Ce.emitViewToModelChange)),this.updateValueAndValidity(Ce)}patchValue(N,Ce={}){this.setValue(N,Ce)}reset(N=this.defaultValue,Ce={}){this._applyFormState(N),this.markAsPristine(Ce),this.markAsUntouched(Ce),this.setValue(this.value,Ce),this._pendingChange=!1}_updateValue(){}_anyControls(N){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(N){this._onChange.push(N)}_unregisterOnChange(N){Cr(this._onChange,N)}registerOnDisabledChange(N){this._onDisabledChange.push(N)}_unregisterOnDisabledChange(N){Cr(this._onDisabledChange,N)}_forEachChild(N){}_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(N){ai(N)?(this.value=this._pendingValue=N.value,N.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=N}},No={provide:zt,useExisting:(0,h.Rfq)(()=>bt)},oi=Promise.resolve();let bt=(()=>{var K;class N extends zt{constructor(G,ke,yn,Xn,wr,oo){super(),this._changeDetectorRef=wr,this.callSetDisabledState=oo,this.control=new li,this._registered=!1,this.name="",this.update=new h.bkB,this._parent=G,this._setValidators(ke),this._setAsyncValidators(yn),this.valueAccessor=function On(K,N){if(!N)return null;let Ce,G,ke;return Array.isArray(N),N.forEach(yn=>{yn.constructor===mt?Ce=yn:function Un(K){return Object.getPrototypeOf(K.constructor)===qe}(yn)?G=yn:ke=yn}),ke||G||Ce||null}(0,Xn)}ngOnChanges(G){if(this._checkForErrors(),!this._registered||"name"in G){if(this._registered&&(this._checkName(),this.formDirective)){const ke=G.name.previousValue;this.formDirective.removeControl({name:ke,path:this._getPath(ke)})}this._setUpControl()}"isDisabled"in G&&this._updateDisabled(G),function or(K,N){if(!K.hasOwnProperty("model"))return!1;const Ce=K.model;return!!Ce.isFirstChange()||!Object.is(N,Ce.currentValue)}(G,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(G){this.viewModel=G,this.update.emit(G)}_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(){Zr(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(G){oi.then(()=>{var ke;this.control.setValue(G,{emitViewToModelChange:!1}),null===(ke=this._changeDetectorRef)||void 0===ke||ke.markForCheck()})}_updateDisabled(G){const ke=G.isDisabled.currentValue,yn=0!==ke&&(0,h.L39)(ke);oi.then(()=>{var Xn;yn&&!this.control.disabled?this.control.disable():!yn&&this.control.disabled&&this.control.enable(),null===(Xn=this._changeDetectorRef)||void 0===Xn||Xn.markForCheck()})}_getPath(G){return this._parent?function $r(K,N){return[...N.path,K]}(G,this._parent):[G]}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(Ot,9),h.rXU(ge,10),h.rXU(Ue,10),h.rXU(ht,10),h.rXU(h.gRc,8),h.rXU(Ar,8))},K.\u0275dir=h.FsC({type:K,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[h.Mj6.None,"disabled","isDisabled"],model:[h.Mj6.None,"ngModel","model"],options:[h.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h.Jv_([No]),h.Vt3,h.OA$]}),N})();function br(K){return"number"==typeof K?K:parseFloat(K)}let wi=(()=>{var K;class N{constructor(){this._validator=H}ngOnChanges(G){if(this.inputName in G){const ke=this.normalizeInput(G[this.inputName].currentValue);this._enabled=this.enabled(ke),this._validator=this._enabled?this.createValidator(ke):H,this._onChange&&this._onChange()}}validate(G){return this._validator(G)}registerOnValidatorChange(G){this._onChange=G}enabled(G){return null!=G}}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275dir=h.FsC({type:K,features:[h.OA$]}),N})();const Ni={provide:ge,useExisting:(0,h.Rfq)(()=>ki),multi:!0};let ki=(()=>{var K;class N extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=G=>br(G),this.createValidator=G=>function Rt(K){return N=>{if(Me(N.value)||Me(K))return null;const Ce=parseFloat(N.value);return!isNaN(Ce)&&Ce>K?{max:{max:K,actual:N.value}}:null}}(G)}}return(K=N).\u0275fac=(()=>{let Ce;return function(ke){return(Ce||(Ce=h.xGo(K)))(ke||K)}})(),K.\u0275dir=h.FsC({type:K,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(G,ke){2&G&&h.BMQ("max",ke._enabled?ke.max:null)},inputs:{max:"max"},features:[h.Jv_([Ni]),h.Vt3]}),N})();const ho={provide:ge,useExisting:(0,h.Rfq)(()=>as),multi:!0};let as=(()=>{var K;class N extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=G=>br(G),this.createValidator=G=>function rt(K){return N=>{if(Me(N.value)||Me(K))return null;const Ce=parseFloat(N.value);return!isNaN(Ce)&&Ce{let Ce;return function(ke){return(Ce||(Ce=h.xGo(K)))(ke||K)}})(),K.\u0275dir=h.FsC({type:K,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(G,ke){2&G&&h.BMQ("min",ke._enabled?ke.min:null)},inputs:{min:"min"},features:[h.Jv_([ho]),h.Vt3]}),N})(),ls=(()=>{var K;class N{}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275mod=h.$C({type:K}),K.\u0275inj=h.G2t({}),N})(),ha=(()=>{var K;class N{static withConfig(G){var ke;return{ngModule:N,providers:[{provide:Ar,useValue:null!==(ke=G.callSetDisabledState)&&void 0!==ke?ke:dr}]}}}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275mod=h.$C({type:K}),K.\u0275inj=h.G2t({imports:[ls]}),N})()},345:(Tn,gt,D)=>{"use strict";D.d(gt,{Bb:()=>er,hE:()=>ir,sG:()=>rn,up:()=>Dr});var h=D(4438),c=D(177);class Z extends c.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Oe extends Z{static makeCurrent(){(0,c.ZD)(new Oe)}onAndCancel(it,Mt,ut){return it.addEventListener(Mt,ut),()=>{it.removeEventListener(Mt,ut)}}dispatchEvent(it,Mt){it.dispatchEvent(Mt)}remove(it){it.parentNode&&it.parentNode.removeChild(it)}createElement(it,Mt){return(Mt=Mt||this.getDefaultDocument()).createElement(it)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(it){return it.nodeType===Node.ELEMENT_NODE}isShadowRoot(it){return it instanceof DocumentFragment}getGlobalEventTarget(it,Mt){return"window"===Mt?window:"document"===Mt?it:"body"===Mt?it.body:null}getBaseHref(it){const Mt=function ue(){return U=U||document.querySelector("base"),U?U.getAttribute("href"):null}();return null==Mt?null:function oe(pe){return new URL(pe,document.baseURI).pathname}(Mt)}resetBaseElement(){U=null}getUserAgent(){return window.navigator.userAgent}getCookie(it){return(0,c._b)(document.cookie,it)}}let U=null,Je=(()=>{var pe;class it{build(){return new XMLHttpRequest}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),it})();const Se=new h.nKC("");let De=(()=>{var pe;class it{constructor(ut,ce){this._zone=ce,this._eventNameToPlugin=new Map,ut.forEach(Ee=>{Ee.manager=this}),this._plugins=ut.slice().reverse()}addEventListener(ut,ce,Ee){return this._findPluginFor(ce).addEventListener(ut,ce,Ee)}getZone(){return this._zone}_findPluginFor(ut){let ce=this._eventNameToPlugin.get(ut);if(ce)return ce;if(ce=this._plugins.find(He=>He.supports(ut)),!ce)throw new h.wOt(5101,!1);return this._eventNameToPlugin.set(ut,ce),ce}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(Se),h.KVO(h.SKi))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),it})();class Qe{constructor(it){this._doc=it}}const Ze="ng-app-id";let qe=(()=>{var pe;class it{constructor(ut,ce,Ee,He={}){this.doc=ut,this.appId=ce,this.nonce=Ee,this.platformId=He,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,c.Vy)(He),this.resetHostNodes()}addStyles(ut){for(const ce of ut)1===this.changeUsageCount(ce,1)&&this.onStyleAdded(ce)}removeStyles(ut){for(const ce of ut)this.changeUsageCount(ce,-1)<=0&&this.onStyleRemoved(ce)}ngOnDestroy(){const ut=this.styleNodesInDOM;ut&&(ut.forEach(ce=>ce.remove()),ut.clear());for(const ce of this.getAllStyles())this.onStyleRemoved(ce);this.resetHostNodes()}addHost(ut){this.hostNodes.add(ut);for(const ce of this.getAllStyles())this.addStyleToHost(ut,ce)}removeHost(ut){this.hostNodes.delete(ut)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ut){for(const ce of this.hostNodes)this.addStyleToHost(ce,ut)}onStyleRemoved(ut){var ce;const Ee=this.styleRef;null===(ce=Ee.get(ut))||void 0===ce||null===(ce=ce.elements)||void 0===ce||ce.forEach(He=>He.remove()),Ee.delete(ut)}collectServerRenderedStyles(){var ut;const ce=null===(ut=this.doc.head)||void 0===ut?void 0:ut.querySelectorAll(`style[${Ze}="${this.appId}"]`);if(null!=ce&&ce.length){const Ee=new Map;return ce.forEach(He=>{null!=He.textContent&&Ee.set(He.textContent,He)}),Ee}return null}changeUsageCount(ut,ce){const Ee=this.styleRef;if(Ee.has(ut)){const He=Ee.get(ut);return He.usage+=ce,He.usage}return Ee.set(ut,{usage:ce,elements:[]}),ce}getStyleElement(ut,ce){const Ee=this.styleNodesInDOM,He=null==Ee?void 0:Ee.get(ce);if((null==He?void 0:He.parentNode)===ut)return Ee.delete(ce),He.removeAttribute(Ze),He;{const Lt=this.doc.createElement("style");return this.nonce&&Lt.setAttribute("nonce",this.nonce),Lt.textContent=ce,this.platformIsServer&&Lt.setAttribute(Ze,this.appId),ut.appendChild(Lt),Lt}}addStyleToHost(ut,ce){var Ee;const He=this.getStyleElement(ut,ce),Lt=this.styleRef,ie=null===(Ee=Lt.get(ce))||void 0===Ee?void 0:Ee.elements;ie?ie.push(He):Lt.set(ce,{elements:[He],usage:1})}resetHostNodes(){const ut=this.hostNodes;ut.clear(),ut.add(this.doc.head)}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ),h.KVO(h.sZ2),h.KVO(h.BIS,8),h.KVO(h.Agw))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),it})();const ht={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/"},Tt=/%COMP%/g,mt=new h.nKC("",{providedIn:"root",factory:()=>!0});function ge(pe,it){return it.map(Mt=>Mt.replace(Tt,pe))}let Ue=(()=>{var pe;class it{constructor(ut,ce,Ee,He,Lt,ie,ct,lt=null){this.eventManager=ut,this.sharedStylesHost=ce,this.appId=Ee,this.removeStylesOnCompDestroy=He,this.doc=Lt,this.platformId=ie,this.ngZone=ct,this.nonce=lt,this.rendererByCompId=new Map,this.platformIsServer=(0,c.Vy)(ie),this.defaultRenderer=new Fe(ut,Lt,ct,this.platformIsServer)}createRenderer(ut,ce){if(!ut||!ce)return this.defaultRenderer;this.platformIsServer&&ce.encapsulation===h.gXe.ShadowDom&&(ce={...ce,encapsulation:h.gXe.Emulated});const Ee=this.getOrCreateRenderer(ut,ce);return Ee instanceof tt?Ee.applyToHost(ut):Ee instanceof Nt&&Ee.applyStyles(),Ee}getOrCreateRenderer(ut,ce){const Ee=this.rendererByCompId;let He=Ee.get(ce.id);if(!He){const Lt=this.doc,ie=this.ngZone,ct=this.eventManager,lt=this.sharedStylesHost,Gt=this.removeStylesOnCompDestroy,tn=this.platformIsServer;switch(ce.encapsulation){case h.gXe.Emulated:He=new tt(ct,lt,ce,this.appId,Gt,Lt,ie,tn);break;case h.gXe.ShadowDom:return new vn(ct,lt,ut,ce,Lt,ie,this.nonce,tn);default:He=new Nt(ct,lt,ce,Gt,Lt,ie,tn)}Ee.set(ce.id,He)}return He}ngOnDestroy(){this.rendererByCompId.clear()}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(De),h.KVO(qe),h.KVO(h.sZ2),h.KVO(mt),h.KVO(c.qQ),h.KVO(h.Agw),h.KVO(h.SKi),h.KVO(h.BIS))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),it})();class Fe{constructor(it,Mt,ut,ce){this.eventManager=it,this.doc=Mt,this.ngZone=ut,this.platformIsServer=ce,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(it,Mt){return Mt?this.doc.createElementNS(ht[Mt]||Mt,it):this.doc.createElement(it)}createComment(it){return this.doc.createComment(it)}createText(it){return this.doc.createTextNode(it)}appendChild(it,Mt){(Rt(it)?it.content:it).appendChild(Mt)}insertBefore(it,Mt,ut){it&&(Rt(it)?it.content:it).insertBefore(Mt,ut)}removeChild(it,Mt){it&&it.removeChild(Mt)}selectRootElement(it,Mt){let ut="string"==typeof it?this.doc.querySelector(it):it;if(!ut)throw new h.wOt(-5104,!1);return Mt||(ut.textContent=""),ut}parentNode(it){return it.parentNode}nextSibling(it){return it.nextSibling}setAttribute(it,Mt,ut,ce){if(ce){Mt=ce+":"+Mt;const Ee=ht[ce];Ee?it.setAttributeNS(Ee,Mt,ut):it.setAttribute(Mt,ut)}else it.setAttribute(Mt,ut)}removeAttribute(it,Mt,ut){if(ut){const ce=ht[ut];ce?it.removeAttributeNS(ce,Mt):it.removeAttribute(`${ut}:${Mt}`)}else it.removeAttribute(Mt)}addClass(it,Mt){it.classList.add(Mt)}removeClass(it,Mt){it.classList.remove(Mt)}setStyle(it,Mt,ut,ce){ce&(h.czy.DashCase|h.czy.Important)?it.style.setProperty(Mt,ut,ce&h.czy.Important?"important":""):it.style[Mt]=ut}removeStyle(it,Mt,ut){ut&h.czy.DashCase?it.style.removeProperty(Mt):it.style[Mt]=""}setProperty(it,Mt,ut){null!=it&&(it[Mt]=ut)}setValue(it,Mt){it.nodeValue=Mt}listen(it,Mt,ut){if("string"==typeof it&&!(it=(0,c.QT)().getGlobalEventTarget(this.doc,it)))throw new Error(`Unsupported event target ${it} for event ${Mt}`);return this.eventManager.addEventListener(it,Mt,this.decoratePreventDefault(ut))}decoratePreventDefault(it){return Mt=>{if("__ngUnwrap__"===Mt)return it;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>it(Mt)):it(Mt))&&Mt.preventDefault()}}}function Rt(pe){return"TEMPLATE"===pe.tagName&&void 0!==pe.content}class vn extends Fe{constructor(it,Mt,ut,ce,Ee,He,Lt,ie){super(it,Ee,He,ie),this.sharedStylesHost=Mt,this.hostEl=ut,this.shadowRoot=ut.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ct=ge(ce.id,ce.styles);for(const lt of ct){const Gt=document.createElement("style");Lt&&Gt.setAttribute("nonce",Lt),Gt.textContent=lt,this.shadowRoot.appendChild(Gt)}}nodeOrShadowRoot(it){return it===this.hostEl?this.shadowRoot:it}appendChild(it,Mt){return super.appendChild(this.nodeOrShadowRoot(it),Mt)}insertBefore(it,Mt,ut){return super.insertBefore(this.nodeOrShadowRoot(it),Mt,ut)}removeChild(it,Mt){return super.removeChild(this.nodeOrShadowRoot(it),Mt)}parentNode(it){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(it)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Nt extends Fe{constructor(it,Mt,ut,ce,Ee,He,Lt,ie){super(it,Ee,He,Lt),this.sharedStylesHost=Mt,this.removeStylesOnCompDestroy=ce,this.styles=ie?ge(ie,ut.styles):ut.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class tt extends Nt{constructor(it,Mt,ut,ce,Ee,He,Lt,ie){const ct=ce+"-"+ut.id;super(it,Mt,ut,Ee,He,Lt,ie,ct),this.contentAttr=function Me(pe){return"_ngcontent-%COMP%".replace(Tt,pe)}(ct),this.hostAttr=function Ye(pe){return"_nghost-%COMP%".replace(Tt,pe)}(ct)}applyToHost(it){this.applyStyles(),this.setAttribute(it,this.hostAttr,"")}createElement(it,Mt){const ut=super.createElement(it,Mt);return super.setAttribute(ut,this.contentAttr,""),ut}}let on=(()=>{var pe;class it extends Qe{constructor(ut){super(ut)}supports(ut){return!0}addEventListener(ut,ce,Ee){return ut.addEventListener(ce,Ee,!1),()=>this.removeEventListener(ut,ce,Ee)}removeEventListener(ut,ce,Ee){return ut.removeEventListener(ce,Ee)}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),it})();const dt=["alt","control","meta","shift"],we={"\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"},H={alt:pe=>pe.altKey,control:pe=>pe.ctrlKey,meta:pe=>pe.metaKey,shift:pe=>pe.shiftKey};let X=(()=>{var pe;class it extends Qe{constructor(ut){super(ut)}supports(ut){return null!=it.parseEventName(ut)}addEventListener(ut,ce,Ee){const He=it.parseEventName(ce),Lt=it.eventCallback(He.fullKey,Ee,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.QT)().onAndCancel(ut,He.domEventName,Lt))}static parseEventName(ut){const ce=ut.toLowerCase().split("."),Ee=ce.shift();if(0===ce.length||"keydown"!==Ee&&"keyup"!==Ee)return null;const He=it._normalizeKey(ce.pop());let Lt="",ie=ce.indexOf("code");if(ie>-1&&(ce.splice(ie,1),Lt="code."),dt.forEach(lt=>{const Gt=ce.indexOf(lt);Gt>-1&&(ce.splice(Gt,1),Lt+=lt+".")}),Lt+=He,0!=ce.length||0===He.length)return null;const ct={};return ct.domEventName=Ee,ct.fullKey=Lt,ct}static matchEventFullKeyCode(ut,ce){let Ee=we[ut.key]||ut.key,He="";return ce.indexOf("code.")>-1&&(Ee=ut.code,He="code."),!(null==Ee||!Ee)&&(Ee=Ee.toLowerCase()," "===Ee?Ee="space":"."===Ee&&(Ee="dot"),dt.forEach(Lt=>{Lt!==Ee&&(0,H[Lt])(ut)&&(He+=Lt+".")}),He+=Ee,He===ce)}static eventCallback(ut,ce,Ee){return He=>{it.matchEventFullKeyCode(He,ut)&&Ee.runGuarded(()=>ce(He))}}static _normalizeKey(ut){return"esc"===ut?"escape":ut}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),it})();const rn=(0,h.oH4)(h.fpN,"browser",[{provide:h.Agw,useValue:c.AJ},{provide:h.PLl,useValue:function _e(){Oe.makeCurrent()},multi:!0},{provide:c.qQ,useFactory:function dn(){return(0,h.TL$)(document),document},deps:[]}]),Ln=new h.nKC(""),Zn=[{provide:h.e01,useClass:class Xe{addToWindow(it){h.JZv.getAngularTestability=(ut,ce=!0)=>{const Ee=it.findTestabilityInTree(ut,ce);if(null==Ee)throw new h.wOt(5103,!1);return Ee},h.JZv.getAllAngularTestabilities=()=>it.getAllTestabilities(),h.JZv.getAllAngularRootElements=()=>it.getAllRootElements(),h.JZv.frameworkStabilizers||(h.JZv.frameworkStabilizers=[]),h.JZv.frameworkStabilizers.push(ut=>{const ce=h.JZv.getAllAngularTestabilities();let Ee=ce.length;const He=function(){Ee--,0==Ee&&ut()};ce.forEach(Lt=>{Lt.whenStable(He)})})}findTestabilityInTree(it,Mt,ut){if(null==Mt)return null;const ce=it.getTestability(Mt);return null!=ce?ce:ut?(0,c.QT)().isShadowRoot(Mt)?this.findTestabilityInTree(it,Mt.host,!0):this.findTestabilityInTree(it,Mt.parentElement,!0):null}},deps:[]},{provide:h.WHO,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]},{provide:h.NYb,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]}],nr=[{provide:h.H8p,useValue:"root"},{provide:h.zcH,useFactory:function Wt(){return new h.zcH},deps:[]},{provide:Se,useClass:on,multi:!0,deps:[c.qQ,h.SKi,h.Agw]},{provide:Se,useClass:X,multi:!0,deps:[c.qQ]},Ue,qe,De,{provide:h._9s,useExisting:Ue},{provide:c.N0,useClass:Je,deps:[]},[]];let er=(()=>{var pe;class it{constructor(ut){}static withServerTransition(ut){return{ngModule:it,providers:[{provide:h.sZ2,useValue:ut.appId}]}}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(Ln,12))},pe.\u0275mod=h.$C({type:pe}),pe.\u0275inj=h.G2t({providers:[...nr,...Zn],imports:[c.MD,h.Hbi]}),it})(),ir=(()=>{var pe;class it{constructor(ut){this._doc=ut}getTitle(){return this._doc.title}setTitle(ut){this._doc.title=ut||""}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"}),it})(),Dr=(()=>{var pe;class it{}return(pe=it).\u0275fac=function(ut){return new(ut||pe)},pe.\u0275prov=h.jDH({token:pe,factory:function(ut){let ce=null;return ce=ut?new(ut||pe):h.KVO(Jn),ce},providedIn:"root"}),it})(),Jn=(()=>{var pe;class it extends Dr{constructor(ut){super(),this._doc=ut}sanitize(ut,ce){if(null==ce)return null;switch(ut){case h.WPN.NONE:return ce;case h.WPN.HTML:return(0,h.ZF7)(ce,"HTML")?(0,h.rcV)(ce):(0,h.h9k)(this._doc,String(ce)).toString();case h.WPN.STYLE:return(0,h.ZF7)(ce,"Style")?(0,h.rcV)(ce):ce;case h.WPN.SCRIPT:if((0,h.ZF7)(ce,"Script"))return(0,h.rcV)(ce);throw new h.wOt(5200,!1);case h.WPN.URL:return(0,h.ZF7)(ce,"URL")?(0,h.rcV)(ce):(0,h.$MX)(String(ce));case h.WPN.RESOURCE_URL:if((0,h.ZF7)(ce,"ResourceURL"))return(0,h.rcV)(ce);throw new h.wOt(5201,!1);default:throw new h.wOt(5202,!1)}}bypassSecurityTrustHtml(ut){return(0,h.Kcf)(ut)}bypassSecurityTrustStyle(ut){return(0,h.cWb)(ut)}bypassSecurityTrustScript(ut){return(0,h.UyX)(ut)}bypassSecurityTrustUrl(ut){return(0,h.osQ)(ut)}bypassSecurityTrustResourceUrl(ut){return(0,h.e5t)(ut)}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"}),it})()},7650:(Tn,gt,D)=>{"use strict";D.d(gt,{nX:()=>Ie,Zp:()=>Ve,wF:()=>zr,Z:()=>Or,Xk:()=>rn,Kp:()=>Ki,b:()=>wn,Ix:()=>Kn,Wk:()=>Si,iI:()=>ds,Sd:()=>ur});var h=D(467),c=D(4438),Z=D(4402),Oe=D(8455),U=D(7673),ue=D(4412),oe=D(4572),Xe=D(9350),Je=D(8793),Se=D(1985),De=D(8750);function Qe(E){return new Se.c(b=>{(0,De.Tg)(E()).subscribe(b)})}var Ze=D(1203),qe=D(8071);function ht(E,b){const O=(0,qe.T)(E)?E:()=>E,T=L=>L.error(O());return new Se.c(b?L=>b.schedule(T,0,L):T)}var Tt=D(983),St=D(8359),yt=D(9974),_t=D(4360);function Et(){return(0,yt.N)((E,b)=>{let O=null;E._refCount++;const T=(0,_t._)(b,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(O=null);const L=E._connection,ae=O;O=null,L&&(!ae||L===ae)&&L.unsubscribe(),b.unsubscribe()});E.subscribe(T),T.closed||(O=E.connect())})}class mt extends Se.c{constructor(b,O){super(),this.source=b,this.subjectFactory=O,this._subject=null,this._refCount=0,this._connection=null,(0,yt.S)(b)&&(this.lift=b.lift)}_subscribe(b){return this.getSubject().subscribe(b)}getSubject(){const b=this._subject;return(!b||b.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:b}=this;this._subject=this._connection=null,null==b||b.unsubscribe()}connect(){let b=this._connection;if(!b){b=this._connection=new St.yU;const O=this.getSubject();b.add(this.source.subscribe((0,_t._)(O,void 0,()=>{this._teardown(),O.complete()},T=>{this._teardown(),O.error(T)},()=>this._teardown()))),b.closed&&(this._connection=null,b=St.yU.EMPTY)}return b}refCount(){return Et()(this)}}var Me=D(1413),Ye=D(177),ge=D(6354),Ue=D(5558),Fe=D(6697),xe=D(9172),rt=D(5964),Rt=D(1397),vn=D(1594),Nt=D(274),tt=D(8141);function on(E){return(0,yt.N)((b,O)=>{let ae,T=null,L=!1;T=b.subscribe((0,_t._)(O,void 0,void 0,Re=>{ae=(0,De.Tg)(E(Re,on(E)(b))),T?(T.unsubscribe(),T=null,ae.subscribe(O)):L=!0})),L&&(T.unsubscribe(),T=null,ae.subscribe(O))})}var H=D(9901);function X(E){return E<=0?()=>Tt.w:(0,yt.N)((b,O)=>{let T=[];b.subscribe((0,_t._)(O,L=>{T.push(L),E{for(const L of T)O.next(L);O.complete()},void 0,()=>{T=null}))})}var fe=D(3774),se=D(3669),Le=D(3703),_e=D(980),Wt=D(6977),dn=D(6365),Kt=D(345);const rn="primary",Ln=Symbol("RouteTitle");class Zn{constructor(b){this.params=b||{}}has(b){return Object.prototype.hasOwnProperty.call(this.params,b)}get(b){if(this.has(b)){const O=this.params[b];return Array.isArray(O)?O[0]:O}return null}getAll(b){if(this.has(b)){const O=this.params[b];return Array.isArray(O)?O:[O]}return[]}get keys(){return Object.keys(this.params)}}function nr(E){return new Zn(E)}function er(E,b,O){const T=O.path.split("/");if(T.length>E.length||"full"===O.pathMatch&&(b.hasChildren()||T.lengthT[ae]===L)}return E===b}function Ot(E){return E.length>0?E[E.length-1]:null}function zt(E){return(0,Z.A)(E)?E:(0,c.jNT)(E)?(0,Oe.H)(Promise.resolve(E)):(0,U.of)(E)}const pn={exact:function xn(E,b,O){if(!Jr(E.segments,b.segments)||!Ir(E.segments,b.segments,O)||E.numberOfChildren!==b.numberOfChildren)return!1;for(const T in b.children)if(!E.children[T]||!xn(E.children[T],b.children[T],O))return!1;return!0},subset:en},gn={exact:function Mn(E,b){return rr(E,b)},subset:function mn(E,b){return Object.keys(b).length<=Object.keys(E).length&&Object.keys(b).every(O=>nt(E[O],b[O]))},ignored:()=>!0};function Sr(E,b,O){return pn[O.paths](E.root,b.root,O.matrixParams)&&gn[O.queryParams](E.queryParams,b.queryParams)&&!("exact"===O.fragment&&E.fragment!==b.fragment)}function en(E,b,O){return Er(E,b,b.segments,O)}function Er(E,b,O,T){if(E.segments.length>O.length){const L=E.segments.slice(0,O.length);return!(!Jr(L,O)||b.hasChildren()||!Ir(L,O,T))}if(E.segments.length===O.length){if(!Jr(E.segments,O)||!Ir(E.segments,O,T))return!1;for(const L in b.children)if(!E.children[L]||!en(E.children[L],b.children[L],T))return!1;return!0}{const L=O.slice(0,E.segments.length),ae=O.slice(E.segments.length);return!!(Jr(E.segments,L)&&Ir(E.segments,L,T)&&E.children[rn])&&Er(E.children[rn],b,ae,T)}}function Ir(E,b,O){return b.every((T,L)=>gn[O](E[L].parameters,T.parameters))}class Nr{constructor(b=new Qn([],{}),O={},T=null){this.root=b,this.queryParams=O,this.fragment=T}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=nr(this.queryParams)),this._queryParamMap}toString(){return cr.serialize(this)}}class Qn{constructor(b,O){this.segments=b,this.children=O,this.parent=null,Object.values(O).forEach(T=>T.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return kr(this)}}class Dr{constructor(b,O){this.path=b,this.parameters=O}get parameterMap(){var b;return null!==(b=this._parameterMap)&&void 0!==b||(this._parameterMap=nr(this.parameters)),this._parameterMap}toString(){return ce(this)}}function Jr(E,b){return E.length===b.length&&E.every((O,T)=>O.path===b[T].path)}let ur=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>new Pr,providedIn:"root"}),b})();class Pr{parse(b){const O=new hn(b);return new Nr(O.parseRootSegment(),O.parseQueryParams(),O.parseFragment())}serialize(b){const O=`/${ii(b.root,!0)}`,T=function He(E){const b=Object.entries(E).map(([O,T])=>Array.isArray(T)?T.map(L=>`${Qr(O)}=${Qr(L)}`).join("&"):`${Qr(O)}=${Qr(T)}`).filter(O=>O);return b.length?`?${b.join("&")}`:""}(b.queryParams);return`${O}${T}${"string"==typeof b.fragment?`#${function pe(E){return encodeURI(E)}(b.fragment)}`:""}`}}const cr=new Pr;function kr(E){return E.segments.map(b=>ce(b)).join("/")}function ii(E,b){if(!E.hasChildren())return kr(E);if(b){const O=E.children[rn]?ii(E.children[rn],!1):"",T=[];return Object.entries(E.children).forEach(([L,ae])=>{L!==rn&&T.push(`${L}:${ii(ae,!1)}`)}),T.length>0?`${O}(${T.join("//")})`:O}{const O=function mr(E,b){let O=[];return Object.entries(E.children).forEach(([T,L])=>{T===rn&&(O=O.concat(b(L,T)))}),Object.entries(E.children).forEach(([T,L])=>{T!==rn&&(O=O.concat(b(L,T)))}),O}(E,(T,L)=>L===rn?[ii(E.children[rn],!1)]:[`${L}:${ii(T,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[rn]?`${kr(E)}/${O[0]}`:`${kr(E)}/(${O.join("//")})`}}function Ai(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qr(E){return Ai(E).replace(/%3B/gi,";")}function it(E){return Ai(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mt(E){return decodeURIComponent(E)}function ut(E){return Mt(E.replace(/\+/g,"%20"))}function ce(E){return`${it(E.path)}${function Ee(E){return Object.entries(E).map(([b,O])=>`;${it(b)}=${it(O)}`).join("")}(E.parameters)}`}const Lt=/^[^\/()?;#]+/;function ie(E){const b=E.match(Lt);return b?b[0]:""}const ct=/^[^\/()?;=#]+/,Gt=/^[^=?&#]+/,_n=/^[^&#]+/;class hn{constructor(b){this.url=b,this.remaining=b}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Qn([],{}):new Qn([],this.parseChildren())}parseQueryParams(){const b={};if(this.consumeOptional("?"))do{this.parseQueryParam(b)}while(this.consumeOptional("&"));return b}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const b=[];for(this.peekStartsWith("(")||b.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),b.push(this.parseSegment());let O={};this.peekStartsWith("/(")&&(this.capture("/"),O=this.parseParens(!0));let T={};return this.peekStartsWith("(")&&(T=this.parseParens(!1)),(b.length>0||Object.keys(O).length>0)&&(T[rn]=new Qn(b,O)),T}parseSegment(){const b=ie(this.remaining);if(""===b&&this.peekStartsWith(";"))throw new c.wOt(4009,!1);return this.capture(b),new Dr(Mt(b),this.parseMatrixParams())}parseMatrixParams(){const b={};for(;this.consumeOptional(";");)this.parseParam(b);return b}parseParam(b){const O=function lt(E){const b=E.match(ct);return b?b[0]:""}(this.remaining);if(!O)return;this.capture(O);let T="";if(this.consumeOptional("=")){const L=ie(this.remaining);L&&(T=L,this.capture(T))}b[Mt(O)]=Mt(T)}parseQueryParam(b){const O=function tn(E){const b=E.match(Gt);return b?b[0]:""}(this.remaining);if(!O)return;this.capture(O);let T="";if(this.consumeOptional("=")){const Re=function qn(E){const b=E.match(_n);return b?b[0]:""}(this.remaining);Re&&(T=Re,this.capture(T))}const L=ut(O),ae=ut(T);if(b.hasOwnProperty(L)){let Re=b[L];Array.isArray(Re)||(Re=[Re],b[L]=Re),Re.push(ae)}else b[L]=ae}parseParens(b){const O={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const T=ie(this.remaining),L=this.remaining[T.length];if("/"!==L&&")"!==L&&";"!==L)throw new c.wOt(4010,!1);let ae;T.indexOf(":")>-1?(ae=T.slice(0,T.indexOf(":")),this.capture(ae),this.capture(":")):b&&(ae=rn);const Re=this.parseChildren();O[ae]=1===Object.keys(Re).length?Re[rn]:new Qn([],Re),this.consumeOptional("//")}return O}peekStartsWith(b){return this.remaining.startsWith(b)}consumeOptional(b){return!!this.peekStartsWith(b)&&(this.remaining=this.remaining.substring(b.length),!0)}capture(b){if(!this.consumeOptional(b))throw new c.wOt(4011,!1)}}function Cn(E){return E.segments.length>0?new Qn([],{[rn]:E}):E}function tr(E){const b={};for(const[T,L]of Object.entries(E.children)){const ae=tr(L);if(T===rn&&0===ae.segments.length&&ae.hasChildren())for(const[Re,Pt]of Object.entries(ae.children))b[Re]=Pt;else(ae.segments.length>0||ae.hasChildren())&&(b[T]=ae)}return function Ar(E){if(1===E.numberOfChildren&&E.children[rn]){const b=E.children[rn];return new Qn(E.segments.concat(b.segments),b.children)}return E}(new Qn(E.segments,b))}function dr(E){return E instanceof Nr}function Zr(E){var b;let O;const ae=Cn(function T(Re){const Pt={};for(const Bt of Re.children){const Bn=T(Bt);Pt[Bt.outlet]=Bn}const fn=new Qn(Re.url,Pt);return Re===E&&(O=fn),fn}(E.root));return null!==(b=O)&&void 0!==b?b:ae}function fr(E,b,O,T){let L=E;for(;L.parent;)L=L.parent;if(0===b.length)return pr(L,L,L,O,T);const ae=function ee(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new ne(!0,0,E);let b=0,O=!1;const T=E.reduce((L,ae,Re)=>{if("object"==typeof ae&&null!=ae){if(ae.outlets){const Pt={};return Object.entries(ae.outlets).forEach(([fn,Bt])=>{Pt[fn]="string"==typeof Bt?Bt.split("/"):Bt}),[...L,{outlets:Pt}]}if(ae.segmentPath)return[...L,ae.segmentPath]}return"string"!=typeof ae?[...L,ae]:0===Re?(ae.split("/").forEach((Pt,fn)=>{0==fn&&"."===Pt||(0==fn&&""===Pt?O=!0:".."===Pt?b++:""!=Pt&&L.push(Pt))}),L):[...L,ae]},[]);return new ne(O,b,T)}(b);if(ae.toRoot())return pr(L,L,new Qn([],{}),O,T);const Re=function M(E,b,O){if(E.isAbsolute)return new je(b,!0,0);if(!O)return new je(b,!1,NaN);if(null===O.parent)return new je(O,!0,0);const T=Ri(E.commands[0])?0:1;return function x(E,b,O){let T=E,L=b,ae=O;for(;ae>L;){if(ae-=L,T=T.parent,!T)throw new c.wOt(4005,!1);L=T.segments.length}return new je(T,!1,L-ae)}(O,O.segments.length-1+T,E.numberOfDoubleDots)}(ae,L,E),Pt=Re.processChildren?Ge(Re.segmentGroup,Re.index,ae.commands):Te(Re.segmentGroup,Re.index,ae.commands);return pr(L,Re.segmentGroup,Pt,O,T)}function Ri(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function gi(E){return"object"==typeof E&&null!=E&&E.outlets}function pr(E,b,O,T,L){let Re,ae={};T&&Object.entries(T).forEach(([fn,Bt])=>{ae[fn]=Array.isArray(Bt)?Bt.map(Bn=>`${Bn}`):`${Bt}`}),Re=E===b?O:Ut(E,b,O);const Pt=Cn(tr(Re));return new Nr(Pt,ae,L)}function Ut(E,b,O){const T={};return Object.entries(E.children).forEach(([L,ae])=>{T[L]=ae===b?O:Ut(ae,b,O)}),new Qn(E.segments,T)}class ne{constructor(b,O,T){if(this.isAbsolute=b,this.numberOfDoubleDots=O,this.commands=T,b&&T.length>0&&Ri(T[0]))throw new c.wOt(4003,!1);const L=T.find(gi);if(L&&L!==Ot(T))throw new c.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class je{constructor(b,O,T){this.segmentGroup=b,this.processChildren=O,this.index=T}}function Te(E,b,O){var T;if(null!==(T=E)&&void 0!==T||(E=new Qn([],{})),0===E.segments.length&&E.hasChildren())return Ge(E,b,O);const L=function Ct(E,b,O){let T=0,L=b;const ae={match:!1,pathIndex:0,commandIndex:0};for(;L=O.length)return ae;const Re=E.segments[L],Pt=O[T];if(gi(Pt))break;const fn=`${Pt}`,Bt=T0&&void 0===fn)break;if(fn&&Bt&&"object"==typeof Bt&&void 0===Bt.outlets){if(!Un(fn,Bt,Re))return ae;T+=2}else{if(!Un(fn,{},Re))return ae;T++}L++}return{match:!0,pathIndex:L,commandIndex:T}}(E,b,O),ae=O.slice(L.commandIndex);if(L.match&&L.pathIndexae!==rn)&&E.children[rn]&&1===E.numberOfChildren&&0===E.children[rn].segments.length){const ae=Ge(E.children[rn],b,O);return new Qn(E.segments,ae.children)}return Object.entries(T).forEach(([ae,Re])=>{"string"==typeof Re&&(Re=[Re]),null!==Re&&(L[ae]=Te(E.children[ae],b,Re))}),Object.entries(E.children).forEach(([ae,Re])=>{void 0===T[ae]&&(L[ae]=Re)}),new Qn(E.segments,L)}}function Jt(E,b,O){const T=E.segments.slice(0,b);let L=0;for(;L{"string"==typeof T&&(T=[T]),null!==T&&(b[O]=Jt(new Qn([],{}),0,T))}),b}function or(E){const b={};return Object.entries(E).forEach(([O,T])=>b[O]=`${T}`),b}function Un(E,b,O){return E==O.path&&rr(b,O.parameters)}const xr="imperative";var On=function(E){return E[E.NavigationStart=0]="NavigationStart",E[E.NavigationEnd=1]="NavigationEnd",E[E.NavigationCancel=2]="NavigationCancel",E[E.NavigationError=3]="NavigationError",E[E.RoutesRecognized=4]="RoutesRecognized",E[E.ResolveStart=5]="ResolveStart",E[E.ResolveEnd=6]="ResolveEnd",E[E.GuardsCheckStart=7]="GuardsCheckStart",E[E.GuardsCheckEnd=8]="GuardsCheckEnd",E[E.RouteConfigLoadStart=9]="RouteConfigLoadStart",E[E.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",E[E.ChildActivationStart=11]="ChildActivationStart",E[E.ChildActivationEnd=12]="ChildActivationEnd",E[E.ActivationStart=13]="ActivationStart",E[E.ActivationEnd=14]="ActivationEnd",E[E.Scroll=15]="Scroll",E[E.NavigationSkipped=16]="NavigationSkipped",E}(On||{});class Fr{constructor(b,O){this.id=b,this.url=O}}class Or extends Fr{constructor(b,O,T="imperative",L=null){super(b,O),this.type=On.NavigationStart,this.navigationTrigger=T,this.restoredState=L}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zr extends Fr{constructor(b,O,T){super(b,O),this.urlAfterRedirects=T,this.type=On.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Tr=function(E){return E[E.Redirect=0]="Redirect",E[E.SupersededByNewNavigation=1]="SupersededByNewNavigation",E[E.NoDataFromResolver=2]="NoDataFromResolver",E[E.GuardRejected=3]="GuardRejected",E}(Tr||{}),Gn=function(E){return E[E.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",E[E.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",E}(Gn||{});class Cr extends Fr{constructor(b,O,T,L){super(b,O),this.reason=T,this.code=L,this.type=On.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ai extends Fr{constructor(b,O,T,L){super(b,O),this.reason=T,this.code=L,this.type=On.NavigationSkipped}}class li extends Fr{constructor(b,O,T,L){super(b,O),this.error=T,this.target=L,this.type=On.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ei extends Fr{constructor(b,O,T,L){super(b,O),this.urlAfterRedirects=T,this.state=L,this.type=On.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lr extends Fr{constructor(b,O,T,L){super(b,O),this.urlAfterRedirects=T,this.state=L,this.type=On.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mi extends Fr{constructor(b,O,T,L,ae){super(b,O),this.urlAfterRedirects=T,this.state=L,this.shouldActivate=ae,this.type=On.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Wn extends Fr{constructor(b,O,T,L){super(b,O),this.urlAfterRedirects=T,this.state=L,this.type=On.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hn extends Fr{constructor(b,O,T,L){super(b,O),this.urlAfterRedirects=T,this.state=L,this.type=On.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ao{constructor(b){this.route=b,this.type=On.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ui{constructor(b){this.route=b,this.type=On.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ci{constructor(b){this.snapshot=b,this.type=On.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Eo{constructor(b){this.snapshot=b,this.type=On.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class No{constructor(b){this.snapshot=b,this.type=On.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oi{constructor(b){this.snapshot=b,this.type=On.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bt{constructor(b,O,T){this.routerEvent=b,this.position=O,this.anchor=T,this.type=On.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class he{}class le{constructor(b){this.url=b}}class $e{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ve,this.attachRef=null}}let Ve=(()=>{var E;class b{constructor(){this.contexts=new Map}onChildOutletCreated(T,L){const ae=this.getOrCreateContext(T);ae.outlet=L,this.contexts.set(T,ae)}onChildOutletDestroyed(T){const L=this.getContext(T);L&&(L.outlet=null,L.attachRef=null)}onOutletDeactivated(){const T=this.contexts;return this.contexts=new Map,T}onOutletReAttached(T){this.contexts=T}getOrCreateContext(T){let L=this.getContext(T);return L||(L=new $e,this.contexts.set(T,L)),L}getContext(T){return this.contexts.get(T)||null}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();class st{constructor(b){this._root=b}get root(){return this._root.value}parent(b){const O=this.pathFromRoot(b);return O.length>1?O[O.length-2]:null}children(b){const O=jt(b,this._root);return O?O.children.map(T=>T.value):[]}firstChild(b){const O=jt(b,this._root);return O&&O.children.length>0?O.children[0].value:null}siblings(b){const O=In(b,this._root);return O.length<2?[]:O[O.length-2].children.map(L=>L.value).filter(L=>L!==b)}pathFromRoot(b){return In(b,this._root).map(O=>O.value)}}function jt(E,b){if(E===b.value)return b;for(const O of b.children){const T=jt(E,O);if(T)return T}return null}function In(E,b){if(E===b.value)return[b];for(const O of b.children){const T=In(E,O);if(T.length)return T.unshift(b),T}return[]}class Fn{constructor(b,O){this.value=b,this.children=O}toString(){return`TreeNode(${this.value})`}}function w(E){const b={};return E&&E.children.forEach(O=>b[O.value.outlet]=O),b}class j extends st{constructor(b,O){super(b),this.snapshot=O,z(this,b)}toString(){return this.snapshot.toString()}}function re(E){const b=function P(E){const ae=new sr([],{},{},"",{},rn,E,null,{});return new ni("",new Fn(ae,[]))}(E),O=new ue.t([new Dr("",{})]),T=new ue.t({}),L=new ue.t({}),ae=new ue.t({}),Re=new ue.t(""),Pt=new Ie(O,T,ae,Re,L,rn,E,b.root);return Pt.snapshot=b.root,new j(new Fn(Pt,[]),b)}class Ie{constructor(b,O,T,L,ae,Re,Pt,fn){var Bt,Bn;this.urlSubject=b,this.paramsSubject=O,this.queryParamsSubject=T,this.fragmentSubject=L,this.dataSubject=ae,this.outlet=Re,this.component=Pt,this._futureSnapshot=fn,this.title=null!==(Bt=null===(Bn=this.dataSubject)||void 0===Bn?void 0:Bn.pipe((0,ge.T)(Vr=>Vr[Ln])))&&void 0!==Bt?Bt:(0,U.of)(void 0),this.url=b,this.params=O,this.queryParams=T,this.fragment=L,this.data=ae}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(){var b;return null!==(b=this._paramMap)&&void 0!==b||(this._paramMap=this.params.pipe((0,ge.T)(O=>nr(O)))),this._paramMap}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=this.queryParams.pipe((0,ge.T)(O=>nr(O)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ot(E,b,O="emptyOnly"){var T;let L;const{routeConfig:ae}=E;var Re;return L=null===b||"always"!==O&&""!==(null==ae?void 0:ae.path)&&(b.component||null!==(T=b.routeConfig)&&void 0!==T&&T.loadComponent)?{params:{...E.params},data:{...E.data},resolve:{...E.data,...null!==(Re=E._resolvedData)&&void 0!==Re?Re:{}}}:{params:{...b.params,...E.params},data:{...b.data,...E.data},resolve:{...E.data,...b.data,...null==ae?void 0:ae.data,...E._resolvedData}},ae&&wt(ae)&&(L.resolve[Ln]=ae.title),L}class sr{get title(){var b;return null===(b=this.data)||void 0===b?void 0:b[Ln]}constructor(b,O,T,L,ae,Re,Pt,fn,Bt){this.url=b,this.params=O,this.queryParams=T,this.fragment=L,this.data=ae,this.outlet=Re,this.component=Pt,this.routeConfig=fn,this._resolve=Bt}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(){var b;return null!==(b=this._paramMap)&&void 0!==b||(this._paramMap=nr(this.params)),this._paramMap}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=nr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(T=>T.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ni extends st{constructor(b,O){super(O),this.url=b,z(this,O)}toString(){return me(this._root)}}function z(E,b){b.value._routerState=E,b.children.forEach(O=>z(E,O))}function me(E){const b=E.children.length>0?` { ${E.children.map(me).join(", ")} } `:"";return`${E.value}${b}`}function Ne(E){if(E.snapshot){const b=E.snapshot,O=E._futureSnapshot;E.snapshot=O,rr(b.queryParams,O.queryParams)||E.queryParamsSubject.next(O.queryParams),b.fragment!==O.fragment&&E.fragmentSubject.next(O.fragment),rr(b.params,O.params)||E.paramsSubject.next(O.params),function yr(E,b){if(E.length!==b.length)return!1;for(let O=0;Orr(O.parameters,b[T].parameters))}(E.url,b.url);return O&&!(!E.parent!=!b.parent)&&(!E.parent||et(E.parent,b.parent))}function wt(E){return"string"==typeof E.title||null===E.title}let It=(()=>{var E;class b{constructor(){this.activated=null,this._activatedRoute=null,this.name=rn,this.activateEvents=new c.bkB,this.deactivateEvents=new c.bkB,this.attachEvents=new c.bkB,this.detachEvents=new c.bkB,this.parentContexts=(0,c.WQX)(Ve),this.location=(0,c.WQX)(c.c1b),this.changeDetector=(0,c.WQX)(c.gRc),this.environmentInjector=(0,c.WQX)(c.uvJ),this.inputBinder=(0,c.WQX)(sn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(T){if(T.name){const{firstChange:L,previousValue:ae}=T.name;if(L)return;this.isTrackedInParentContexts(ae)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ae)),this.initializeOutletWithName()}}ngOnDestroy(){var T;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(T=this.inputBinder)||void 0===T||T.unsubscribeFromRouteData(this)}isTrackedInParentContexts(T){var L;return(null===(L=this.parentContexts.getContext(T))||void 0===L?void 0:L.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const T=this.parentContexts.getContext(this.name);null!=T&&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 c.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.wOt(4012,!1);this.location.detach();const T=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(T.instance),T}attach(T,L){var ae;this.activated=T,this._activatedRoute=L,this.location.insert(T.hostView),null===(ae=this.inputBinder)||void 0===ae||ae.bindActivatedRouteToOutletComponent(this),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,L){var ae;if(this.isActivated)throw new c.wOt(4013,!1);this._activatedRoute=T;const Re=this.location,fn=T.snapshot.component,Bt=this.parentContexts.getOrCreateContext(this.name).children,Bn=new Yt(T,Bt,Re.injector);this.activated=Re.createComponent(fn,{index:Re.length,injector:Bn,environmentInjector:null!=L?L:this.environmentInjector}),this.changeDetector.markForCheck(),null===(ae=this.inputBinder)||void 0===ae||ae.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275dir=c.FsC({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.OA$]}),b})();class Yt{__ngOutletInjector(b){return new Yt(this.route,this.childContexts,b)}constructor(b,O,T){this.route=b,this.childContexts=O,this.parent=T}get(b,O){return b===Ie?this.route:b===Ve?this.childContexts:this.parent.get(b,O)}}const sn=new c.nKC("");let cn=(()=>{var E;class b{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(T){this.unsubscribeFromRouteData(T),this.subscribeToRouteData(T)}unsubscribeFromRouteData(T){var L;null===(L=this.outletDataSubscriptions.get(T))||void 0===L||L.unsubscribe(),this.outletDataSubscriptions.delete(T)}subscribeToRouteData(T){const{activatedRoute:L}=T,ae=(0,oe.z)([L.queryParams,L.params,L.data]).pipe((0,Ue.n)(([Re,Pt,fn],Bt)=>(fn={...Re,...Pt,...fn},0===Bt?(0,U.of)(fn):Promise.resolve(fn)))).subscribe(Re=>{if(!T.isActivated||!T.activatedComponentRef||T.activatedRoute!==L||null===L.component)return void this.unsubscribeFromRouteData(T);const Pt=(0,c.HJs)(L.component);if(Pt)for(const{templateName:fn}of Pt.inputs)T.activatedComponentRef.setInput(fn,Re[fn]);else this.unsubscribeFromRouteData(T)});this.outletDataSubscriptions.set(T,ae)}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),b})();function Nn(E,b,O){if(O&&E.shouldReuseRoute(b.value,O.value.snapshot)){const T=O.value;T._futureSnapshot=b.value;const L=function jn(E,b,O){return b.children.map(T=>{for(const L of O.children)if(E.shouldReuseRoute(T.value,L.value.snapshot))return Nn(E,T,L);return Nn(E,T)})}(E,b,O);return new Fn(T,L)}{if(E.shouldAttach(b.value)){const ae=E.retrieve(b.value);if(null!==ae){const Re=ae.route;return Re.value._futureSnapshot=b.value,Re.children=b.children.map(Pt=>Nn(E,Pt)),Re}}const T=function lr(E){return new Ie(new ue.t(E.url),new ue.t(E.params),new ue.t(E.queryParams),new ue.t(E.fragment),new ue.t(E.data),E.outlet,E.component,E)}(b.value),L=b.children.map(ae=>Nn(E,ae));return new Fn(T,L)}}const Vn="ngNavigationCancelingError";function qr(E,b){const{redirectTo:O,navigationBehaviorOptions:T}=dr(b)?{redirectTo:b,navigationBehaviorOptions:void 0}:b,L=jr(!1,Tr.Redirect);return L.url=O,L.navigationBehaviorOptions=T,L}function jr(E,b){const O=new Error(`NavigationCancelingError: ${E||""}`);return O[Vn]=!0,O.cancellationCode=b,O}function wi(E){return!!E&&E[Vn]}let Ni=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275cmp=c.VBU({type:E,selectors:[["ng-component"]],standalone:!0,features:[c.aNF],decls:1,vars:0,template:function(T,L){1&T&&c.nrm(0,"router-outlet")},dependencies:[It],encapsulation:2}),b})();function Ss(E){const b=E.children&&E.children.map(Ss),O=b?{...E,children:b}:{...E};return!O.component&&!O.loadComponent&&(b||O.loadChildren)&&O.outlet&&O.outlet!==rn&&(O.component=Ni),O}function no(E){return E.outlet||rn}function Kr(E){var b;if(!E)return null;if(null!==(b=E.routeConfig)&&void 0!==b&&b._injector)return E.routeConfig._injector;for(let O=E.parent;O;O=O.parent){const T=O.routeConfig;if(null!=T&&T._loadedInjector)return T._loadedInjector;if(null!=T&&T._injector)return T._injector}return null}class Rs{constructor(b,O,T,L,ae){this.routeReuseStrategy=b,this.futureState=O,this.currState=T,this.forwardEvent=L,this.inputBindingEnabled=ae}activate(b){const O=this.futureState._root,T=this.currState?this.currState._root:null;this.deactivateChildRoutes(O,T,b),Ne(this.futureState.root),this.activateChildRoutes(O,T,b)}deactivateChildRoutes(b,O,T){const L=w(O);b.children.forEach(ae=>{const Re=ae.value.outlet;this.deactivateRoutes(ae,L[Re],T),delete L[Re]}),Object.values(L).forEach(ae=>{this.deactivateRouteAndItsChildren(ae,T)})}deactivateRoutes(b,O,T){const L=b.value,ae=O?O.value:null;if(L===ae)if(L.component){const Re=T.getContext(L.outlet);Re&&this.deactivateChildRoutes(b,O,Re.children)}else this.deactivateChildRoutes(b,O,T);else ae&&this.deactivateRouteAndItsChildren(O,T)}deactivateRouteAndItsChildren(b,O){b.value.component&&this.routeReuseStrategy.shouldDetach(b.value.snapshot)?this.detachAndStoreRouteSubtree(b,O):this.deactivateRouteAndOutlet(b,O)}detachAndStoreRouteSubtree(b,O){const T=O.getContext(b.value.outlet),L=T&&b.value.component?T.children:O,ae=w(b);for(const Re of Object.values(ae))this.deactivateRouteAndItsChildren(Re,L);if(T&&T.outlet){const Re=T.outlet.detach(),Pt=T.children.onOutletDeactivated();this.routeReuseStrategy.store(b.value.snapshot,{componentRef:Re,route:b,contexts:Pt})}}deactivateRouteAndOutlet(b,O){const T=O.getContext(b.value.outlet),L=T&&b.value.component?T.children:O,ae=w(b);for(const Re of Object.values(ae))this.deactivateRouteAndItsChildren(Re,L);T&&(T.outlet&&(T.outlet.deactivate(),T.children.onOutletDeactivated()),T.attachRef=null,T.route=null)}activateChildRoutes(b,O,T){const L=w(O);b.children.forEach(ae=>{this.activateRoutes(ae,L[ae.value.outlet],T),this.forwardEvent(new oi(ae.value.snapshot))}),b.children.length&&this.forwardEvent(new Eo(b.value.snapshot))}activateRoutes(b,O,T){const L=b.value,ae=O?O.value:null;if(Ne(L),L===ae)if(L.component){const Re=T.getOrCreateContext(L.outlet);this.activateChildRoutes(b,O,Re.children)}else this.activateChildRoutes(b,O,T);else if(L.component){const Re=T.getOrCreateContext(L.outlet);if(this.routeReuseStrategy.shouldAttach(L.snapshot)){const Pt=this.routeReuseStrategy.retrieve(L.snapshot);this.routeReuseStrategy.store(L.snapshot,null),Re.children.onOutletReAttached(Pt.contexts),Re.attachRef=Pt.componentRef,Re.route=Pt.route.value,Re.outlet&&Re.outlet.attach(Pt.componentRef,Pt.route.value),Ne(Pt.route.value),this.activateChildRoutes(b,null,Re.children)}else{const Pt=Kr(L.snapshot);Re.attachRef=null,Re.route=L,Re.injector=Pt,Re.outlet&&Re.outlet.activateWith(L,Re.injector),this.activateChildRoutes(b,null,Re.children)}}else this.activateChildRoutes(b,null,T)}}class Hs{constructor(b){this.path=b,this.route=this.path[this.path.length-1]}}class Ms{constructor(b,O){this.component=b,this.route=O}}function ls(E,b,O){const T=E._root;return vs(T,b?b._root:null,O,[T.value])}function Uo(E,b){const O=Symbol(),T=b.get(E,O);return T===O?"function"!=typeof E||(0,c.LfX)(E)?b.get(E):E:T}function vs(E,b,O,T,L={canDeactivateChecks:[],canActivateChecks:[]}){const ae=w(b);return E.children.forEach(Re=>{(function Ps(E,b,O,T,L={canDeactivateChecks:[],canActivateChecks:[]}){const ae=E.value,Re=b?b.value:null,Pt=O?O.getContext(E.value.outlet):null;if(Re&&ae.routeConfig===Re.routeConfig){const fn=function xs(E,b,O){if("function"==typeof O)return O(E,b);switch(O){case"pathParamsChange":return!Jr(E.url,b.url);case"pathParamsOrQueryParamsChange":return!Jr(E.url,b.url)||!rr(E.queryParams,b.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!et(E,b)||!rr(E.queryParams,b.queryParams);default:return!et(E,b)}}(Re,ae,ae.routeConfig.runGuardsAndResolvers);fn?L.canActivateChecks.push(new Hs(T)):(ae.data=Re.data,ae._resolvedData=Re._resolvedData),vs(E,b,ae.component?Pt?Pt.children:null:O,T,L),fn&&Pt&&Pt.outlet&&Pt.outlet.isActivated&&L.canDeactivateChecks.push(new Ms(Pt.outlet.component,Re))}else Re&&Ao(b,Pt,L),L.canActivateChecks.push(new Hs(T)),vs(E,null,ae.component?Pt?Pt.children:null:O,T,L)})(Re,ae[Re.value.outlet],O,T.concat([Re.value]),L),delete ae[Re.value.outlet]}),Object.entries(ae).forEach(([Re,Pt])=>Ao(Pt,O.getContext(Re),L)),L}function Ao(E,b,O){const T=w(E),L=E.value;Object.entries(T).forEach(([ae,Re])=>{Ao(Re,L.component?b?b.children.getContext(ae):null:b,O)}),O.canDeactivateChecks.push(new Ms(L.component&&b&&b.outlet&&b.outlet.isActivated?b.outlet.component:null,L))}function Fo(E){return"function"==typeof E}function G(E){return E instanceof Xe.G||"EmptyError"===(null==E?void 0:E.name)}const ke=Symbol("INITIAL_VALUE");function yn(){return(0,Ue.n)(E=>(0,oe.z)(E.map(b=>b.pipe((0,Fe.s)(1),(0,xe.Z)(ke)))).pipe((0,ge.T)(b=>{for(const O of b)if(!0!==O){if(O===ke)return ke;if(!1===O||O instanceof Nr)return O}return!0}),(0,rt.p)(b=>b!==ke),(0,Fe.s)(1)))}function fa(E){return(0,Ze.F)((0,tt.M)(b=>{if(dr(b))throw qr(0,b)}),(0,ge.T)(b=>!0===b))}class pa{constructor(b){this.segmentGroup=b||null}}class $o extends Error{constructor(b){super(),this.urlTree=b}}function Jo(E){return ht(new pa(E))}class po{constructor(b,O){this.urlSerializer=b,this.urlTree=O}lineralizeSegments(b,O){let T=[],L=O.root;for(;;){if(T=T.concat(L.segments),0===L.numberOfChildren)return(0,U.of)(T);if(L.numberOfChildren>1||!L.children[rn])return ht(new c.wOt(4e3,!1));L=L.children[rn]}}applyRedirectCommands(b,O,T){const L=this.applyRedirectCreateUrlTree(O,this.urlSerializer.parse(O),b,T);if(O.startsWith("/"))throw new $o(L);return L}applyRedirectCreateUrlTree(b,O,T,L){const ae=this.createSegmentGroup(b,O.root,T,L);return new Nr(ae,this.createQueryParams(O.queryParams,this.urlTree.queryParams),O.fragment)}createQueryParams(b,O){const T={};return Object.entries(b).forEach(([L,ae])=>{if("string"==typeof ae&&ae.startsWith(":")){const Pt=ae.substring(1);T[L]=O[Pt]}else T[L]=ae}),T}createSegmentGroup(b,O,T,L){const ae=this.createSegments(b,O.segments,T,L);let Re={};return Object.entries(O.children).forEach(([Pt,fn])=>{Re[Pt]=this.createSegmentGroup(b,fn,T,L)}),new Qn(ae,Re)}createSegments(b,O,T,L){return O.map(ae=>ae.path.startsWith(":")?this.findPosParam(b,ae,L):this.findOrReturn(ae,T))}findPosParam(b,O,T){const L=T[O.path.substring(1)];if(!L)throw new c.wOt(4001,!1);return L}findOrReturn(b,O){let T=0;for(const L of O){if(L.path===b.path)return O.splice(T),L;T++}return b}}const bi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function La(E,b,O,T,L){const ae=jo(E,b,O);return ae.matched?(T=function ki(E,b){var O;return E.providers&&!E._injector&&(E._injector=(0,c.Ol2)(E.providers,b,`Route: ${E.path}`)),null!==(O=E._injector)&&void 0!==O?O:b}(b,T),function ul(E,b,O,T){const L=b.canMatch;if(!L||0===L.length)return(0,U.of)(!0);const ae=L.map(Re=>{const Pt=Uo(Re,E);return zt(function Ce(E){return E&&Fo(E.canMatch)}(Pt)?Pt.canMatch(b,O):(0,c.N4e)(E,()=>Pt(b,O)))});return(0,U.of)(ae).pipe(yn(),fa())}(T,b,O).pipe((0,ge.T)(Re=>!0===Re?ae:{...bi}))):(0,U.of)(ae)}function jo(E,b,O){var T,L;if("**"===b.path)return function ys(E){return{matched:!0,parameters:E.length>0?Ot(E).parameters:{},consumedSegments:E,remainingSegments:[],positionalParamSegments:{}}}(O);if(""===b.path)return"full"===b.pathMatch&&(E.hasChildren()||O.length>0)?{...bi}:{matched:!0,consumedSegments:[],remainingSegments:O,parameters:{},positionalParamSegments:{}};const Re=(b.matcher||er)(O,E,b);if(!Re)return{...bi};const Pt={};Object.entries(null!==(T=Re.posParams)&&void 0!==T?T:{}).forEach(([Bt,Bn])=>{Pt[Bt]=Bn.path});const fn=Re.consumed.length>0?{...Pt,...Re.consumed[Re.consumed.length-1].parameters}:Pt;return{matched:!0,consumedSegments:Re.consumed,remainingSegments:O.slice(Re.consumed.length),parameters:fn,positionalParamSegments:null!==(L=Re.posParams)&&void 0!==L?L:{}}}function cl(E,b,O,T){return O.length>0&&function Ws(E,b,O){return O.some(T=>Es(E,b,T)&&no(T)!==rn)}(E,O,T)?{segmentGroup:new Qn(b,dl(T,new Qn(O,E.children))),slicedSegments:[]}:0===O.length&&function Va(E,b,O){return O.some(T=>Es(E,b,T))}(E,O,T)?{segmentGroup:new Qn(E.segments,Hr(E,O,T,E.children)),slicedSegments:O}:{segmentGroup:new Qn(E.segments,E.children),slicedSegments:O}}function Hr(E,b,O,T){const L={};for(const ae of O)if(Es(E,b,ae)&&!T[no(ae)]){const Re=new Qn([],{});L[no(ae)]=Re}return{...T,...L}}function dl(E,b){const O={};O[rn]=b;for(const T of E)if(""===T.path&&no(T)!==rn){const L=new Qn([],{});O[no(T)]=L}return O}function Es(E,b,O){return(!(E.hasChildren()||b.length>0)||"full"!==O.pathMatch)&&""===O.path}class Ul{}class Is{constructor(b,O,T,L,ae,Re,Pt){this.injector=b,this.configLoader=O,this.rootComponentType=T,this.config=L,this.urlTree=ae,this.paramsInheritanceStrategy=Re,this.urlSerializer=Pt,this.applyRedirects=new po(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(b){return new c.wOt(4002,`'${b.segmentGroup}'`)}recognize(){const b=cl(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(b).pipe((0,ge.T)(O=>{const T=new sr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},rn,this.rootComponentType,null,{}),L=new Fn(T,O),ae=new ni("",L),Re=function $r(E,b,O=null,T=null){return fr(Zr(E),b,O,T)}(T,[],this.urlTree.queryParams,this.urlTree.fragment);return Re.queryParams=this.urlTree.queryParams,ae.url=this.urlSerializer.serialize(Re),this.inheritParamsAndData(ae._root,null),{state:ae,tree:Re}}))}match(b){return this.processSegmentGroup(this.injector,this.config,b,rn).pipe(on(T=>{if(T instanceof $o)return this.urlTree=T.urlTree,this.match(T.urlTree.root);throw T instanceof pa?this.noMatchError(T):T}))}inheritParamsAndData(b,O){const T=b.value,L=ot(T,O,this.paramsInheritanceStrategy);T.params=Object.freeze(L.params),T.data=Object.freeze(L.data),b.children.forEach(ae=>this.inheritParamsAndData(ae,T))}processSegmentGroup(b,O,T,L){return 0===T.segments.length&&T.hasChildren()?this.processChildren(b,O,T):this.processSegment(b,O,T,T.segments,L,!0).pipe((0,ge.T)(ae=>ae instanceof Fn?[ae]:[]))}processChildren(b,O,T){const L=[];for(const ae of Object.keys(T.children))"primary"===ae?L.unshift(ae):L.push(ae);return(0,Oe.H)(L).pipe((0,Nt.H)(ae=>{const Re=T.children[ae],Pt=function ko(E,b){const O=E.filter(T=>no(T)===b);return O.push(...E.filter(T=>no(T)!==b)),O}(O,ae);return this.processSegmentGroup(b,Pt,Re,ae)}),function we(E,b){return(0,yt.N)(function dt(E,b,O,T,L){return(ae,Re)=>{let Pt=O,fn=b,Bt=0;ae.subscribe((0,_t._)(Re,Bn=>{const Vr=Bt++;fn=Pt?E(fn,Bn,Vr):(Pt=!0,Bn),T&&Re.next(fn)},L&&(()=>{Pt&&Re.next(fn),Re.complete()})))}}(E,b,arguments.length>=2,!0))}((ae,Re)=>(ae.push(...Re),ae)),(0,H.U)(null),function ve(E,b){const O=arguments.length>=2;return T=>T.pipe(E?(0,rt.p)((L,ae)=>E(L,ae,T)):se.D,X(1),O?(0,H.U)(b):(0,fe.v)(()=>new Xe.G))}(),(0,Rt.Z)(ae=>{if(null===ae)return Jo(T);const Re=As(ae);return function Os(E){E.sort((b,O)=>b.value.outlet===rn?-1:O.value.outlet===rn?1:b.value.outlet.localeCompare(O.value.outlet))}(Re),(0,U.of)(Re)}))}processSegment(b,O,T,L,ae,Re){return(0,Oe.H)(O).pipe((0,Nt.H)(Pt=>{var fn;return this.processSegmentAgainstRoute(null!==(fn=Pt._injector)&&void 0!==fn?fn:b,O,Pt,T,L,ae,Re).pipe(on(Bt=>{if(Bt instanceof pa)return(0,U.of)(null);throw Bt}))}),(0,vn.$)(Pt=>!!Pt),on(Pt=>{if(G(Pt))return function Ba(E,b,O){return 0===b.length&&!E.children[O]}(T,L,ae)?(0,U.of)(new Ul):Jo(T);throw Pt}))}processSegmentAgainstRoute(b,O,T,L,ae,Re,Pt){return function hl(E,b,O,T){return!!(no(E)===T||T!==rn&&Es(b,O,E))&&jo(b,E,O).matched}(T,L,ae,Re)?void 0===T.redirectTo?this.matchSegmentAgainstRoute(b,L,T,ae,Re):this.allowRedirects&&Pt?this.expandSegmentAgainstRouteUsingRedirect(b,L,O,T,ae,Re):Jo(L):Jo(L)}expandSegmentAgainstRouteUsingRedirect(b,O,T,L,ae,Re){const{matched:Pt,consumedSegments:fn,positionalParamSegments:Bt,remainingSegments:Bn}=jo(O,L,ae);if(!Pt)return Jo(O);L.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Vr=this.applyRedirects.applyRedirectCommands(fn,L.redirectTo,Bt);return this.applyRedirects.lineralizeSegments(L,Vr).pipe((0,Rt.Z)($i=>this.processSegment(b,T,O,$i.concat(Bn),Re,!1)))}matchSegmentAgainstRoute(b,O,T,L,ae){const Re=La(O,T,L,b);return"**"===T.path&&(O.children={}),Re.pipe((0,Ue.n)(Pt=>{var fn;return Pt.matched?(b=null!==(fn=T._injector)&&void 0!==fn?fn:b,this.getChildConfig(b,T,L).pipe((0,Ue.n)(({routes:Bt})=>{var Bn,Vr,$i;const yi=null!==(Bn=T._loadedInjector)&&void 0!==Bn?Bn:b,{consumedSegments:Zi,remainingSegments:Js,parameters:Ha}=Pt,Ga=new sr(Zi,Ha,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function es(E){return E.data||{}}(T),no(T),null!==(Vr=null!==($i=T.component)&&void 0!==$i?$i:T._loadedComponent)&&void 0!==Vr?Vr:null,T,function Su(E){return E.resolve||{}}(T)),{segmentGroup:Fs,slicedSegments:hs}=cl(O,Zi,Js,Bt);if(0===hs.length&&Fs.hasChildren())return this.processChildren(yi,Bt,Fs).pipe((0,ge.T)(Wa=>null===Wa?null:new Fn(Ga,Wa)));if(0===Bt.length&&0===hs.length)return(0,U.of)(new Fn(Ga,[]));const Ta=no(T)===ae;return this.processSegment(yi,Bt,Fs,hs,Ta?rn:ae,!0).pipe((0,ge.T)(Wa=>new Fn(Ga,Wa instanceof Fn?[Wa]:[])))}))):Jo(O)}))}getChildConfig(b,O,T){return O.children?(0,U.of)({routes:O.children,injector:b}):O.loadChildren?void 0!==O._loadedRoutes?(0,U.of)({routes:O._loadedRoutes,injector:O._loadedInjector}):function Gs(E,b,O,T){const L=b.canLoad;if(void 0===L||0===L.length)return(0,U.of)(!0);const ae=L.map(Re=>{const Pt=Uo(Re,E);return zt(function ha(E){return E&&Fo(E.canLoad)}(Pt)?Pt.canLoad(b,O):(0,c.N4e)(E,()=>Pt(b,O)))});return(0,U.of)(ae).pipe(yn(),fa())}(b,O,T).pipe((0,Rt.Z)(L=>L?this.configLoader.loadChildren(b,O).pipe((0,tt.M)(ae=>{O._loadedRoutes=ae.routes,O._loadedInjector=ae.injector})):function zi(E){return ht(jr(!1,Tr.GuardRejected))}())):(0,U.of)({routes:[],injector:b})}}function Zo(E){const b=E.value.routeConfig;return b&&""===b.path}function As(E){const b=[],O=new Set;for(const T of E){if(!Zo(T)){b.push(T);continue}const L=b.find(ae=>T.value.routeConfig===ae.value.routeConfig);void 0!==L?(L.children.push(...T.children),O.add(L)):b.push(T)}for(const T of O){const L=As(T.children);b.push(new Fn(T.value,L))}return b.filter(T=>!O.has(T))}function Lo(E){const b=E.children.map(O=>Lo(O)).flat();return[E,...b]}function Ua(E){return(0,Ue.n)(b=>{const O=E(b);return O?(0,Oe.H)(O).pipe((0,ge.T)(()=>b)):(0,U.of)(b)})}let ma=(()=>{var E;class b{buildTitle(T){let L,ae=T.root;for(;void 0!==ae;){var Re;L=null!==(Re=this.getResolvedTitleForRoute(ae))&&void 0!==Re?Re:L,ae=ae.children.find(Pt=>Pt.outlet===rn)}return L}getResolvedTitleForRoute(T){return T.data[Ln]}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)($a),providedIn:"root"}),b})(),$a=(()=>{var E;class b extends ma{constructor(T){super(),this.title=T}updateTitle(T){const L=this.buildTitle(T);void 0!==L&&this.title.setTitle(L)}}return(E=b).\u0275fac=function(T){return new(T||E)(c.KVO(Kt.hE))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const zo=new c.nKC("",{providedIn:"root",factory:()=>({})}),va=new c.nKC("");let _a=(()=>{var E;class b{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,c.WQX)(c.Ql9)}loadComponent(T){if(this.componentLoaders.get(T))return this.componentLoaders.get(T);if(T._loadedComponent)return(0,U.of)(T._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(T);const L=zt(T.loadComponent()).pipe((0,ge.T)(Gl),(0,tt.M)(Re=>{this.onLoadEndListener&&this.onLoadEndListener(T),T._loadedComponent=Re}),(0,_e.j)(()=>{this.componentLoaders.delete(T)})),ae=new mt(L,()=>new Me.B).pipe(Et());return this.componentLoaders.set(T,ae),ae}loadChildren(T,L){if(this.childrenLoaders.get(L))return this.childrenLoaders.get(L);if(L._loadedRoutes)return(0,U.of)({routes:L._loadedRoutes,injector:L._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(L);const Re=function Ks(E,b,O,T){return zt(E.loadChildren()).pipe((0,ge.T)(Gl),(0,Rt.Z)(L=>L instanceof c.Co$||Array.isArray(L)?(0,U.of)(L):(0,Oe.H)(b.compileModuleAsync(L))),(0,ge.T)(L=>{T&&T(E);let ae,Re,Pt=!1;return Array.isArray(L)?(Re=L,!0):(ae=L.create(O).injector,Re=ae.get(va,[],{optional:!0,self:!0}).flat()),{routes:Re.map(Ss),injector:ae}}))}(L,this.compiler,T,this.onLoadEndListener).pipe((0,_e.j)(()=>{this.childrenLoaders.delete(L)})),Pt=new mt(Re,()=>new Me.B).pipe(Et());return this.childrenLoaders.set(L,Pt),Pt}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();function Gl(E){return function lo(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let ya=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(C),providedIn:"root"}),b})(),C=(()=>{var E;class b{shouldProcessUrl(T){return!0}extract(T){return T}merge(T,L){return T}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const $=new c.nKC(""),Be=new c.nKC("");function F(E,b,O){const T=E.get(Be),L=E.get(Ye.qQ);return E.get(c.SKi).runOutsideAngular(()=>{if(!L.startViewTransition||T.skipNextTransition)return T.skipNextTransition=!1,new Promise(Bt=>setTimeout(Bt));let ae;const Re=new Promise(Bt=>{ae=Bt}),Pt=L.startViewTransition(()=>(ae(),function Ae(E){return new Promise(b=>{(0,c.mal)(b,{injector:E})})}(E))),{onViewTransitionCreated:fn}=T;return fn&&(0,c.N4e)(E,()=>fn({transition:Pt,from:b,to:O})),Re})}let Ke=(()=>{var E;class b{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Me.B,this.transitionAbortSubject=new Me.B,this.configLoader=(0,c.WQX)(_a),this.environmentInjector=(0,c.WQX)(c.uvJ),this.urlSerializer=(0,c.WQX)(ur),this.rootContexts=(0,c.WQX)(Ve),this.location=(0,c.WQX)(Ye.aZ),this.inputBindingEnabled=null!==(0,c.WQX)(sn,{optional:!0}),this.titleStrategy=(0,c.WQX)(ma),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,c.WQX)(ya),this.createViewTransition=(0,c.WQX)($,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,U.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ae=>this.events.next(new ui(ae)),this.configLoader.onLoadStartListener=ae=>this.events.next(new ao(ae))}complete(){var T;null===(T=this.transitions)||void 0===T||T.complete()}handleNavigationRequest(T){var L;const ae=++this.navigationId;null===(L=this.transitions)||void 0===L||L.next({...this.transitions.value,...T,id:ae})}setupNavigations(T,L,ae){return this.transitions=new ue.t({id:0,currentUrlTree:L,currentRawUrl:L,extractedUrl:this.urlHandlingStrategy.extract(L),urlAfterRedirects:this.urlHandlingStrategy.extract(L),rawUrl:L,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xr,restoredState:null,currentSnapshot:ae.snapshot,targetSnapshot:null,currentRouterState:ae,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,rt.p)(Re=>0!==Re.id),(0,ge.T)(Re=>({...Re,extractedUrl:this.urlHandlingStrategy.extract(Re.rawUrl)})),(0,Ue.n)(Re=>{let Pt=!1,fn=!1;return(0,U.of)(Re).pipe((0,Ue.n)(Bt=>{var Bn;if(this.navigationId>Re.id)return this.cancelNavigationTransition(Re,"",Tr.SupersededByNewNavigation),Tt.w;this.currentTransition=Re,this.currentNavigation={id:Bt.id,initialUrl:Bt.rawUrl,extractedUrl:Bt.extractedUrl,trigger:Bt.source,extras:Bt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Vr=!T.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),$i=null!==(Bn=Bt.extras.onSameUrlNavigation)&&void 0!==Bn?Bn:T.onSameUrlNavigation;if(!Vr&&"reload"!==$i){const yi="";return this.events.next(new ai(Bt.id,this.urlSerializer.serialize(Bt.rawUrl),yi,Gn.IgnoredSameUrlNavigation)),Bt.resolve(null),Tt.w}if(this.urlHandlingStrategy.shouldProcessUrl(Bt.rawUrl))return(0,U.of)(Bt).pipe((0,Ue.n)(yi=>{var Zi,Js;const Ha=null===(Zi=this.transitions)||void 0===Zi?void 0:Zi.getValue();return this.events.next(new Or(yi.id,this.urlSerializer.serialize(yi.extractedUrl),yi.source,yi.restoredState)),Ha!==(null===(Js=this.transitions)||void 0===Js?void 0:Js.getValue())?Tt.w:Promise.resolve(yi)}),function Hl(E,b,O,T,L,ae){return(0,Rt.Z)(Re=>function $l(E,b,O,T,L,ae,Re="emptyOnly"){return new Is(E,b,O,T,L,Re,ae).recognize()}(E,b,O,T,Re.extractedUrl,L,ae).pipe((0,ge.T)(({state:Pt,tree:fn})=>({...Re,targetSnapshot:Pt,urlAfterRedirects:fn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,T.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,tt.M)(yi=>{Re.targetSnapshot=yi.targetSnapshot,Re.urlAfterRedirects=yi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:yi.urlAfterRedirects};const Zi=new ei(yi.id,this.urlSerializer.serialize(yi.extractedUrl),this.urlSerializer.serialize(yi.urlAfterRedirects),yi.targetSnapshot);this.events.next(Zi)}));if(Vr&&this.urlHandlingStrategy.shouldProcessUrl(Bt.currentRawUrl)){const{id:yi,extractedUrl:Zi,source:Js,restoredState:Ha,extras:Ga}=Bt,Fs=new Or(yi,this.urlSerializer.serialize(Zi),Js,Ha);this.events.next(Fs);const hs=re(this.rootComponentType).snapshot;return this.currentTransition=Re={...Bt,targetSnapshot:hs,urlAfterRedirects:Zi,extras:{...Ga,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Zi,(0,U.of)(Re)}{const yi="";return this.events.next(new ai(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),yi,Gn.IgnoredByUrlHandlingStrategy)),Bt.resolve(null),Tt.w}}),(0,tt.M)(Bt=>{const Bn=new Lr(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),this.urlSerializer.serialize(Bt.urlAfterRedirects),Bt.targetSnapshot);this.events.next(Bn)}),(0,ge.T)(Bt=>(this.currentTransition=Re={...Bt,guards:ls(Bt.targetSnapshot,Bt.currentSnapshot,this.rootContexts)},Re)),function Xn(E,b){return(0,Rt.Z)(O=>{const{targetSnapshot:T,currentSnapshot:L,guards:{canActivateChecks:ae,canDeactivateChecks:Re}}=O;return 0===Re.length&&0===ae.length?(0,U.of)({...O,guardsResult:!0}):function wr(E,b,O,T){return(0,Oe.H)(E).pipe((0,Rt.Z)(L=>function _s(E,b,O,T,L){const ae=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!ae||0===ae.length)return(0,U.of)(!0);const Re=ae.map(Pt=>{var fn;const Bt=null!==(fn=Kr(b))&&void 0!==fn?fn:L,Bn=Uo(Pt,Bt);return zt(function N(E){return E&&Fo(E.canDeactivate)}(Bn)?Bn.canDeactivate(E,b,O,T):(0,c.N4e)(Bt,()=>Bn(E,b,O,T))).pipe((0,vn.$)())});return(0,U.of)(Re).pipe(yn())}(L.component,L.route,O,b,T)),(0,vn.$)(L=>!0!==L,!0))}(Re,T,L,E).pipe((0,Rt.Z)(Pt=>Pt&&function io(E){return"boolean"==typeof E}(Pt)?function oo(E,b,O,T){return(0,Oe.H)(b).pipe((0,Nt.H)(L=>(0,Je.x)(function So(E,b){return null!==E&&b&&b(new Ci(E)),(0,U.of)(!0)}(L.route.parent,T),function wo(E,b){return null!==E&&b&&b(new No(E)),(0,U.of)(!0)}(L.route,T),function Fa(E,b,O){const T=b[b.length-1],ae=b.slice(0,b.length-1).reverse().map(Re=>function us(E){const b=E.routeConfig?E.routeConfig.canActivateChild:null;return b&&0!==b.length?{node:E,guards:b}:null}(Re)).filter(Re=>null!==Re).map(Re=>Qe(()=>{const Pt=Re.guards.map(fn=>{var Bt;const Bn=null!==(Bt=Kr(Re.node))&&void 0!==Bt?Bt:O,Vr=Uo(fn,Bn);return zt(function K(E){return E&&Fo(E.canActivateChild)}(Vr)?Vr.canActivateChild(T,E):(0,c.N4e)(Bn,()=>Vr(T,E))).pipe((0,vn.$)())});return(0,U.of)(Pt).pipe(yn())}));return(0,U.of)(ae).pipe(yn())}(E,L.path,O),function Yo(E,b,O){const T=b.routeConfig?b.routeConfig.canActivate:null;if(!T||0===T.length)return(0,U.of)(!0);const L=T.map(ae=>Qe(()=>{var Re;const Pt=null!==(Re=Kr(b))&&void 0!==Re?Re:O,fn=Uo(ae,Pt);return zt(function ll(E){return E&&Fo(E.canActivate)}(fn)?fn.canActivate(b,E):(0,c.N4e)(Pt,()=>fn(b,E))).pipe((0,vn.$)())}));return(0,U.of)(L).pipe(yn())}(E,L.route,O))),(0,vn.$)(L=>!0!==L,!0))}(T,ae,E,b):(0,U.of)(Pt)),(0,ge.T)(Pt=>({...O,guardsResult:Pt})))})}(this.environmentInjector,Bt=>this.events.next(Bt)),(0,tt.M)(Bt=>{if(Re.guardsResult=Bt.guardsResult,dr(Bt.guardsResult))throw qr(0,Bt.guardsResult);const Bn=new mi(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),this.urlSerializer.serialize(Bt.urlAfterRedirects),Bt.targetSnapshot,!!Bt.guardsResult);this.events.next(Bn)}),(0,rt.p)(Bt=>!!Bt.guardsResult||(this.cancelNavigationTransition(Bt,"",Tr.GuardRejected),!1)),Ua(Bt=>{if(Bt.guards.canActivateChecks.length)return(0,U.of)(Bt).pipe((0,tt.M)(Bn=>{const Vr=new Wn(Bn.id,this.urlSerializer.serialize(Bn.extractedUrl),this.urlSerializer.serialize(Bn.urlAfterRedirects),Bn.targetSnapshot);this.events.next(Vr)}),(0,Ue.n)(Bn=>{let Vr=!1;return(0,U.of)(Bn).pipe(function ts(E,b){return(0,Rt.Z)(O=>{const{targetSnapshot:T,guards:{canActivateChecks:L}}=O;if(!L.length)return(0,U.of)(O);const ae=new Set(L.map(fn=>fn.route)),Re=new Set;for(const fn of ae)if(!Re.has(fn))for(const Bt of Lo(fn))Re.add(Bt);let Pt=0;return(0,Oe.H)(Re).pipe((0,Nt.H)(fn=>ae.has(fn)?function Ns(E,b,O,T){const L=E.routeConfig,ae=E._resolve;return void 0!==(null==L?void 0:L.title)&&!wt(L)&&(ae[Ln]=L.title),function Ui(E,b,O,T){const L=ir(E);if(0===L.length)return(0,U.of)({});const ae={};return(0,Oe.H)(L).pipe((0,Rt.Z)(Re=>function ga(E,b,O,T){var L;const ae=null!==(L=Kr(b))&&void 0!==L?L:T,Re=Uo(E,ae);return zt(Re.resolve?Re.resolve(b,O):(0,c.N4e)(ae,()=>Re(b,O)))}(E[Re],b,O,T).pipe((0,vn.$)(),(0,tt.M)(Pt=>{ae[Re]=Pt}))),X(1),(0,Le.u)(ae),on(Re=>G(Re)?Tt.w:ht(Re)))}(ae,E,b,T).pipe((0,ge.T)(Re=>(E._resolvedData=Re,E.data=ot(E,E.parent,O).resolve,null)))}(fn,T,E,b):(fn.data=ot(fn,fn.parent,E).resolve,(0,U.of)(void 0))),(0,tt.M)(()=>Pt++),X(1),(0,Rt.Z)(fn=>Pt===Re.size?(0,U.of)(O):Tt.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,tt.M)({next:()=>Vr=!0,complete:()=>{Vr||this.cancelNavigationTransition(Bn,"",Tr.NoDataFromResolver)}}))}),(0,tt.M)(Bn=>{const Vr=new Hn(Bn.id,this.urlSerializer.serialize(Bn.extractedUrl),this.urlSerializer.serialize(Bn.urlAfterRedirects),Bn.targetSnapshot);this.events.next(Vr)}))}),Ua(Bt=>{const Bn=Vr=>{var $i;const yi=[];null!==($i=Vr.routeConfig)&&void 0!==$i&&$i.loadComponent&&!Vr.routeConfig._loadedComponent&&yi.push(this.configLoader.loadComponent(Vr.routeConfig).pipe((0,tt.M)(Zi=>{Vr.component=Zi}),(0,ge.T)(()=>{})));for(const Zi of Vr.children)yi.push(...Bn(Zi));return yi};return(0,oe.z)(Bn(Bt.targetSnapshot.root)).pipe((0,H.U)(null),(0,Fe.s)(1))}),Ua(()=>this.afterPreactivation()),(0,Ue.n)(()=>{var Bt;const{currentSnapshot:Bn,targetSnapshot:Vr}=Re,$i=null===(Bt=this.createViewTransition)||void 0===Bt?void 0:Bt.call(this,this.environmentInjector,Bn.root,Vr.root);return $i?(0,Oe.H)($i).pipe((0,ge.T)(()=>Re)):(0,U.of)(Re)}),(0,ge.T)(Bt=>{const Bn=function En(E,b,O){const T=Nn(E,b._root,O?O._root:void 0);return new j(T,b)}(T.routeReuseStrategy,Bt.targetSnapshot,Bt.currentRouterState);return this.currentTransition=Re={...Bt,targetRouterState:Bn},this.currentNavigation.targetRouterState=Bn,Re}),(0,tt.M)(()=>{this.events.next(new he)}),((E,b,O,T)=>(0,ge.T)(L=>(new Rs(b,L.targetRouterState,L.currentRouterState,O,T).activate(E),L)))(this.rootContexts,T.routeReuseStrategy,Bt=>this.events.next(Bt),this.inputBindingEnabled),(0,Fe.s)(1),(0,tt.M)({next:Bt=>{var Bn;Pt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new zr(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),this.urlSerializer.serialize(Bt.urlAfterRedirects))),null===(Bn=this.titleStrategy)||void 0===Bn||Bn.updateTitle(Bt.targetRouterState.snapshot),Bt.resolve(!0)},complete:()=>{Pt=!0}}),(0,Wt.Q)(this.transitionAbortSubject.pipe((0,tt.M)(Bt=>{throw Bt}))),(0,_e.j)(()=>{var Bt;!Pt&&!fn&&this.cancelNavigationTransition(Re,"",Tr.SupersededByNewNavigation),(null===(Bt=this.currentTransition)||void 0===Bt?void 0:Bt.id)===Re.id&&(this.currentNavigation=null,this.currentTransition=null)}),on(Bt=>{if(fn=!0,wi(Bt))this.events.next(new Cr(Re.id,this.urlSerializer.serialize(Re.extractedUrl),Bt.message,Bt.cancellationCode)),function br(E){return wi(E)&&dr(E.url)}(Bt)?this.events.next(new le(Bt.url)):Re.resolve(!1);else{var Bn;this.events.next(new li(Re.id,this.urlSerializer.serialize(Re.extractedUrl),Bt,null!==(Bn=Re.targetSnapshot)&&void 0!==Bn?Bn:void 0));try{Re.resolve(T.errorHandler(Bt))}catch(Vr){this.options.resolveNavigationPromiseOnError?Re.resolve(!1):Re.reject(Vr)}}return Tt.w}))}))}cancelNavigationTransition(T,L,ae){const Re=new Cr(T.id,this.urlSerializer.serialize(T.extractedUrl),L,ae);this.events.next(Re),T.resolve(!1)}isUpdatingInternalState(){var T,L;return(null===(T=this.currentTransition)||void 0===T?void 0:T.extractedUrl.toString())!==(null===(L=this.currentTransition)||void 0===L?void 0:L.currentUrlTree.toString())}isUpdatedBrowserUrl(){var T,L;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(T=this.currentTransition)||void 0===T?void 0:T.extractedUrl.toString())&&!(null!==(L=this.currentTransition)&&void 0!==L&&L.extras.skipLocationChange)}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();function Qt(E){return E!==xr}let wn=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(Yn),providedIn:"root"}),b})();class ar{shouldDetach(b){return!1}store(b,O){}shouldAttach(b){return!1}retrieve(b){return null}shouldReuseRoute(b,O){return b.routeConfig===O.routeConfig}}let Yn=(()=>{var E;class b extends ar{}return(E=b).\u0275fac=(()=>{let O;return function(L){return(O||(O=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),pi=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(Xr),providedIn:"root"}),b})(),Xr=(()=>{var E;class b extends pi{constructor(){super(...arguments),this.location=(0,c.WQX)(Ye.aZ),this.urlSerializer=(0,c.WQX)(ur),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,c.WQX)(ya),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Nr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=re(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var T,L;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(T=null===(L=this.restoredState())||void 0===L?void 0:L.\u0275routerPageId)&&void 0!==T?T:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(T){return this.location.subscribe(L=>{"popstate"===L.type&&T(L.url,L.state)})}handleRouterEvent(T,L){if(T instanceof Or)this.stateMemento=this.createStateMemento();else if(T instanceof ai)this.rawUrlTree=L.initialUrl;else if(T instanceof ei){if("eager"===this.urlUpdateStrategy&&!L.extras.skipLocationChange){const ae=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl);this.setBrowserUrl(ae,L)}}else T instanceof he?(this.currentUrlTree=L.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl),this.routerState=L.targetRouterState,"deferred"===this.urlUpdateStrategy&&(L.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,L))):T instanceof Cr&&(T.code===Tr.GuardRejected||T.code===Tr.NoDataFromResolver)?this.restoreHistory(L):T instanceof li?this.restoreHistory(L,!0):T instanceof zr&&(this.lastSuccessfulId=T.id,this.currentPageId=this.browserPageId)}setBrowserUrl(T,L){const ae=this.urlSerializer.serialize(T);if(this.location.isCurrentPathEqualTo(ae)||L.extras.replaceUrl){const Pt={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId)};this.location.replaceState(ae,"",Pt)}else{const Re={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId+1)};this.location.go(ae,"",Re)}}restoreHistory(T,L=!1){if("computed"===this.canceledNavigationResolution){const Re=this.currentPageId-this.browserPageId;0!==Re?this.location.historyGo(Re):this.currentUrlTree===T.finalUrl&&0===Re&&(this.resetState(T),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(L&&this.resetState(T),this.resetUrlToCurrentUrlTree())}resetState(T){var L;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(L=T.finalUrl)&&void 0!==L?L:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(T,L){return"computed"===this.canceledNavigationResolution?{navigationId:T,\u0275routerPageId:L}:{navigationId:T}}}return(E=b).\u0275fac=(()=>{let O;return function(L){return(O||(O=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();var ci=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(ci||{});function ri(E,b){E.events.pipe((0,rt.p)(O=>O instanceof zr||O instanceof Cr||O instanceof li||O instanceof ai),(0,ge.T)(O=>O instanceof zr||O instanceof ai?ci.COMPLETE:O instanceof Cr&&(O.code===Tr.Redirect||O.code===Tr.SupersededByNewNavigation)?ci.REDIRECTING:ci.FAILED),(0,rt.p)(O=>O!==ci.REDIRECTING),(0,Fe.s)(1)).subscribe(()=>{b()})}function Hi(E){throw E}const vi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Kn=(()=>{var E;class b{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var T,L;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,c.WQX)(c.H3F),this.stateManager=(0,c.WQX)(pi),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.pendingTasks=(0,c.WQX)(c.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,c.WQX)(Ke),this.urlSerializer=(0,c.WQX)(ur),this.location=(0,c.WQX)(Ye.aZ),this.urlHandlingStrategy=(0,c.WQX)(ya),this._events=new Me.B,this.errorHandler=this.options.errorHandler||Hi,this.navigated=!1,this.routeReuseStrategy=(0,c.WQX)(wn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(T=null===(L=(0,c.WQX)(va,{optional:!0}))||void 0===L?void 0:L.flat())&&void 0!==T?T:[],this.componentInputBindingEnabled=!!(0,c.WQX)(sn,{optional:!0}),this.eventsSubscription=new St.yU,this.isNgZoneEnabled=(0,c.WQX)(c.SKi)instanceof c.SKi&&c.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:ae=>{this.console.warn(ae)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const T=this.navigationTransitions.events.subscribe(L=>{try{const ae=this.navigationTransitions.currentTransition,Re=this.navigationTransitions.currentNavigation;if(null!==ae&&null!==Re)if(this.stateManager.handleRouterEvent(L,Re),L instanceof Cr&&L.code!==Tr.Redirect&&L.code!==Tr.SupersededByNewNavigation)this.navigated=!0;else if(L instanceof zr)this.navigated=!0;else if(L instanceof le){const Pt=this.urlHandlingStrategy.merge(L.url,ae.currentRawUrl),fn={info:ae.extras.info,skipLocationChange:ae.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Qt(ae.source)};this.scheduleNavigation(Pt,xr,null,fn,{resolve:ae.resolve,reject:ae.reject,promise:ae.promise})}(function qi(E){return!(E instanceof he||E instanceof le)})(L)&&this._events.next(L)}catch(ae){this.navigationTransitions.transitionAbortSubject.next(ae)}});this.eventsSubscription.add(T)}resetRootComponentType(T){this.routerState.root.component=T,this.navigationTransitions.rootComponentType=T}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){var T;null!==(T=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==T||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((L,ae)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(L,"popstate",ae)},0)}))}navigateToSyncWithBrowser(T,L,ae){const Re={replaceUrl:!0},Pt=null!=ae&&ae.navigationId?ae:null;if(ae){const Bt={...ae};delete Bt.navigationId,delete Bt.\u0275routerPageId,0!==Object.keys(Bt).length&&(Re.state=Bt)}const fn=this.parseUrl(T);this.scheduleNavigation(fn,L,Pt,Re)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(T){this.config=T.map(Ss),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(T,L={}){const{relativeTo:ae,queryParams:Re,fragment:Pt,queryParamsHandling:fn,preserveFragment:Bt}=L,Bn=Bt?this.currentUrlTree.fragment:Pt;let $i,Vr=null;switch(fn){case"merge":Vr={...this.currentUrlTree.queryParams,...Re};break;case"preserve":Vr=this.currentUrlTree.queryParams;break;default:Vr=Re||null}null!==Vr&&(Vr=this.removeEmptyProps(Vr));try{$i=Zr(ae?ae.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof T[0]||!T[0].startsWith("/"))&&(T=[]),$i=this.currentUrlTree.root}return fr($i,T,Vr,null!=Bn?Bn:null)}navigateByUrl(T,L={skipLocationChange:!1}){const ae=dr(T)?T:this.parseUrl(T),Re=this.urlHandlingStrategy.merge(ae,this.rawUrlTree);return this.scheduleNavigation(Re,xr,null,L)}navigate(T,L={skipLocationChange:!1}){return function Di(E){for(let b=0;b(null!=Re&&(L[ae]=Re),L),{})}scheduleNavigation(T,L,ae,Re,Pt){if(this.disposed)return Promise.resolve(!1);let fn,Bt,Bn;Pt?(fn=Pt.resolve,Bt=Pt.reject,Bn=Pt.promise):Bn=new Promise(($i,yi)=>{fn=$i,Bt=yi});const Vr=this.pendingTasks.add();return ri(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Vr))}),this.navigationTransitions.handleNavigationRequest({source:L,restoredState:ae,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:T,extras:Re,resolve:fn,reject:Bt,promise:Bn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Bn.catch($i=>Promise.reject($i))}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),Si=(()=>{var E;class b{constructor(T,L,ae,Re,Pt,fn){var Bt;this.router=T,this.route=L,this.tabIndexAttribute=ae,this.renderer=Re,this.el=Pt,this.locationStrategy=fn,this.href=null,this.commands=null,this.onChanges=new Me.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Bn=null===(Bt=Pt.nativeElement.tagName)||void 0===Bt?void 0:Bt.toLowerCase();this.isAnchorElement="a"===Bn||"area"===Bn,this.isAnchorElement?this.subscription=T.events.subscribe(Vr=>{Vr instanceof zr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}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,L,ae,Re,Pt){const fn=this.urlTree;return!!(null===fn||this.isAnchorElement&&(0!==T||L||ae||Re||Pt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(fn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var T;null===(T=this.subscription)||void 0===T||T.unsubscribe()}updateHref(){var T;const L=this.urlTree;this.href=null!==L&&this.locationStrategy?null===(T=this.locationStrategy)||void 0===T?void 0:T.prepareExternalUrl(this.router.serializeUrl(L)):null;const ae=null===this.href?null:(0,c.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ae)}applyAttributeValue(T,L){const ae=this.renderer,Re=this.el.nativeElement;null!==L?ae.setAttribute(Re,T,L):ae.removeAttribute(Re,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(E=b).\u0275fac=function(T){return new(T||E)(c.rXU(Kn),c.rXU(Ie),c.kS0("tabindex"),c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(Ye.hb))},E.\u0275dir=c.FsC({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(T,L){1&T&&c.bIt("click",function(Re){return L.onClick(Re.button,Re.ctrlKey,Re.shiftKey,Re.altKey,Re.metaKey)}),2&T&&c.BMQ("target",L.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[c.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",c.L39],skipLocationChange:[c.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",c.L39],replaceUrl:[c.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",c.L39],routerLink:"routerLink"},standalone:!0,features:[c.GFd,c.OA$]}),b})();class _i{}let Ki=(()=>{var E;class b{preload(T,L){return L().pipe(on(()=>(0,U.of)(null)))}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),Br=(()=>{var E;class b{constructor(T,L,ae,Re,Pt){this.router=T,this.injector=ae,this.preloadingStrategy=Re,this.loader=Pt}setUpPreloading(){this.subscription=this.router.events.pipe((0,rt.p)(T=>T instanceof zr),(0,Nt.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(T,L){const ae=[];for(const Bt of L){var Re,Pt;Bt.providers&&!Bt._injector&&(Bt._injector=(0,c.Ol2)(Bt.providers,T,`Route: ${Bt.path}`));const Bn=null!==(Re=Bt._injector)&&void 0!==Re?Re:T,Vr=null!==(Pt=Bt._loadedInjector)&&void 0!==Pt?Pt:Bn;var fn;(Bt.loadChildren&&!Bt._loadedRoutes&&void 0===Bt.canLoad||Bt.loadComponent&&!Bt._loadedComponent)&&ae.push(this.preloadConfig(Bn,Bt)),(Bt.children||Bt._loadedRoutes)&&ae.push(this.processRoutes(Vr,null!==(fn=Bt.children)&&void 0!==fn?fn:Bt._loadedRoutes))}return(0,Oe.H)(ae).pipe((0,dn.U)())}preloadConfig(T,L){return this.preloadingStrategy.preload(L,()=>{let ae;ae=L.loadChildren&&void 0===L.canLoad?this.loader.loadChildren(T,L):(0,U.of)(null);const Re=ae.pipe((0,Rt.Z)(Pt=>{var fn;return null===Pt?(0,U.of)(void 0):(L._loadedRoutes=Pt.routes,L._loadedInjector=Pt.injector,this.processRoutes(null!==(fn=Pt.injector)&&void 0!==fn?fn:T,Pt.routes))}));if(L.loadComponent&&!L._loadedComponent){const Pt=this.loader.loadComponent(L);return(0,Oe.H)([Re,Pt]).pipe((0,dn.U)())}return Re})}}return(E=b).\u0275fac=function(T){return new(T||E)(c.KVO(Kn),c.KVO(c.Ql9),c.KVO(c.uvJ),c.KVO(_i),c.KVO(_a))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const Xs=new c.nKC("");let vc=(()=>{var E;class b{constructor(T,L,ae,Re,Pt={}){this.urlSerializer=T,this.transitions=L,this.viewportScroller=ae,this.zone=Re,this.options=Pt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,c.WQX)(c.uvJ),Pt.scrollPositionRestoration||(Pt.scrollPositionRestoration="disabled"),Pt.anchorScrolling||(Pt.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 Or?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=T.navigationTrigger,this.restoredId=T.restoredState?T.restoredState.navigationId:0):T instanceof zr?(this.lastId=T.id,this.scheduleScrollEvent(T,this.urlSerializer.parse(T.urlAfterRedirects).fragment)):T instanceof ai&&T.code===Gn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(T,this.urlSerializer.parse(T.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(T=>{T instanceof bt&&(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,L){var ae=this;this.zone.runOutsideAngular((0,h.A)(function*(){yield new Promise(Re=>{setTimeout(()=>{Re()}),(0,c.mal)(()=>{Re()},{injector:ae.environmentInjector})}),ae.zone.run(()=>{ae.transitions.events.next(new bt(T,"popstate"===ae.lastSource?ae.store[ae.restoredId]:null,L))})}))}ngOnDestroy(){var T,L;null===(T=this.routerEventsSubscription)||void 0===T||T.unsubscribe(),null===(L=this.scrollEventsSubscription)||void 0===L||L.unsubscribe()}}return(E=b).\u0275fac=function(T){c.QTQ()},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),b})();function Co(E,b){return{\u0275kind:E,\u0275providers:b}}function Mi(){const E=(0,c.WQX)(c.zZn);return b=>{var O,T;const L=E.get(c.o8S);if(b!==L.components[0])return;const ae=E.get(Kn),Re=E.get(Qs);1===E.get(cs)&&ae.initialNavigation(),null===(O=E.get(Wo,null,c.$GK.Optional))||void 0===O||O.setUpPreloading(),null===(T=E.get(Xs,null,c.$GK.Optional))||void 0===T||T.init(),ae.resetRootComponentType(L.componentTypes[0]),Re.closed||(Re.next(),Re.complete(),Re.unsubscribe())}}const Qs=new c.nKC("",{factory:()=>new Me.B}),cs=new c.nKC("",{providedIn:"root",factory:()=>1}),Wo=new c.nKC("");function pl(E){return Co(0,[{provide:Wo,useExisting:Br},{provide:_i,useExisting:E}])}function Do(E){return Co(9,[{provide:$,useValue:F},{provide:Be,useValue:{skipNextTransition:!(null==E||!E.skipInitialTransition),...E}}])}const rs=new c.nKC("ROUTER_FORROOT_GUARD"),Ys=[Ye.aZ,{provide:ur,useClass:Pr},Kn,Ve,{provide:Ie,useFactory:function Gi(E){return E.routerState.root},deps:[Kn]},_a,[]];let ds=(()=>{var E;class b{constructor(T){}static forRoot(T,L){return{ngModule:b,providers:[Ys,[],{provide:va,multi:!0,useValue:T},{provide:rs,useFactory:Aa,deps:[[Kn,new c.Xx1,new c.kdw]]},{provide:zo,useValue:L||{}},null!=L&&L.useHash?{provide:Ye.hb,useClass:Ye.fw}:{provide:Ye.hb,useClass:Ye.Sm},{provide:Xs,useFactory:()=>{const E=(0,c.WQX)(Ye.Xr),b=(0,c.WQX)(c.SKi),O=(0,c.WQX)(zo),T=(0,c.WQX)(Ke),L=(0,c.WQX)(ur);return O.scrollOffset&&E.setOffset(O.scrollOffset),new vc(L,T,E,b,O)}},null!=L&&L.preloadingStrategy?pl(L.preloadingStrategy).\u0275providers:[],null!=L&&L.initialNavigation?Mu(L):[],null!=L&&L.bindToComponentInputs?Co(8,[cn,{provide:sn,useExisting:cn}]).\u0275providers:[],null!=L&&L.enableViewTransitions?Do().\u0275providers:[],[{provide:Ca,useFactory:Mi},{provide:c.iLQ,multi:!0,useExisting:Ca}]]}}static forChild(T){return{ngModule:b,providers:[{provide:va,multi:!0,useValue:T}]}}}return(E=b).\u0275fac=function(T){return new(T||E)(c.KVO(rs,8))},E.\u0275mod=c.$C({type:E}),E.\u0275inj=c.G2t({}),b})();function Aa(E){return"guarded"}function Mu(E){return["disabled"===E.initialNavigation?Co(3,[{provide:c.hnV,multi:!0,useFactory:()=>{const b=(0,c.WQX)(Kn);return()=>{b.setUpLocationChangeListener()}}},{provide:cs,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?Co(2,[{provide:cs,useValue:0},{provide:c.hnV,multi:!0,deps:[c.zZn],useFactory:b=>{const O=b.get(Ye.hj,Promise.resolve());return()=>O.then(()=>new Promise(T=>{const L=b.get(Kn),ae=b.get(Qs);ri(L,()=>{T(!0)}),b.get(Ke).afterPreactivation=()=>(T(!0),ae.closed?(0,U.of)(void 0):ae),L.initialNavigation()}))}}]).\u0275providers:[]]}const Ca=new c.nKC("")},7852:(Tn,gt,D)=>{"use strict";D.d(gt,{MF:()=>Ai,j6:()=>Dr,xZ:()=>mr,om:()=>Qn,Sx:()=>it,Dk:()=>Mt,Wp:()=>Qr,KO:()=>Ee});var h=D(467),c=D(1362),Z=D(8041),Oe=D(1076);const U=(Ut,ne)=>ne.some(ee=>Ut instanceof ee);let ue,oe;const Se=new WeakMap,De=new WeakMap,Qe=new WeakMap,Ze=new WeakMap,qe=new WeakMap;let St={get(Ut,ne,ee){if(Ut instanceof IDBTransaction){if("done"===ne)return De.get(Ut);if("objectStoreNames"===ne)return Ut.objectStoreNames||Qe.get(Ut);if("store"===ne)return ee.objectStoreNames[1]?void 0:ee.objectStore(ee.objectStoreNames[0])}return mt(Ut[ne])},set:(Ut,ne,ee)=>(Ut[ne]=ee,!0),has:(Ut,ne)=>Ut instanceof IDBTransaction&&("done"===ne||"store"===ne)||ne in Ut};function Et(Ut){return"function"==typeof Ut?function _t(Ut){return Ut!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Je(){return oe||(oe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Ut)?function(...ne){return Ut.apply(Me(this),ne),mt(Se.get(this))}:function(...ne){return mt(Ut.apply(Me(this),ne))}:function(ne,...ee){const je=Ut.call(Me(this),ne,...ee);return Qe.set(je,ne.sort?ne.sort():[ne]),mt(je)}}(Ut):(Ut instanceof IDBTransaction&&function Tt(Ut){if(De.has(Ut))return;const ne=new Promise((ee,je)=>{const M=()=>{Ut.removeEventListener("complete",x),Ut.removeEventListener("error",te),Ut.removeEventListener("abort",te)},x=()=>{ee(),M()},te=()=>{je(Ut.error||new DOMException("AbortError","AbortError")),M()};Ut.addEventListener("complete",x),Ut.addEventListener("error",te),Ut.addEventListener("abort",te)});De.set(Ut,ne)}(Ut),U(Ut,function Xe(){return ue||(ue=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Ut,St):Ut)}function mt(Ut){if(Ut instanceof IDBRequest)return function ht(Ut){const ne=new Promise((ee,je)=>{const M=()=>{Ut.removeEventListener("success",x),Ut.removeEventListener("error",te)},x=()=>{ee(mt(Ut.result)),M()},te=()=>{je(Ut.error),M()};Ut.addEventListener("success",x),Ut.addEventListener("error",te)});return ne.then(ee=>{ee instanceof IDBCursor&&Se.set(ee,Ut)}).catch(()=>{}),qe.set(ne,Ut),ne}(Ut);if(Ze.has(Ut))return Ze.get(Ut);const ne=Et(Ut);return ne!==Ut&&(Ze.set(Ut,ne),qe.set(ne,Ut)),ne}const Me=Ut=>qe.get(Ut),Ue=["get","getKey","getAll","getAllKeys","count"],Fe=["put","add","delete","clear"],xe=new Map;function rt(Ut,ne){if(!(Ut instanceof IDBDatabase)||ne in Ut||"string"!=typeof ne)return;if(xe.get(ne))return xe.get(ne);const ee=ne.replace(/FromIndex$/,""),je=ne!==ee,M=Fe.includes(ee);if(!(ee in(je?IDBIndex:IDBObjectStore).prototype)||!M&&!Ue.includes(ee))return;const x=function(){var te=(0,h.A)(function*(Te,...Ge){const Ct=this.transaction(Te,M?"readwrite":"readonly");let Jt=Ct.store;return je&&(Jt=Jt.index(Ge.shift())),(yield Promise.all([Jt[ee](...Ge),M&&Ct.done]))[0]});return function(Ge){return te.apply(this,arguments)}}();return xe.set(ne,x),x}!function yt(Ut){St=Ut(St)}(Ut=>({...Ut,get:(ne,ee,je)=>rt(ne,ee)||Ut.get(ne,ee,je),has:(ne,ee)=>!!rt(ne,ee)||Ut.has(ne,ee)}));class Rt{constructor(ne){this.container=ne}getPlatformInfoString(){return this.container.getProviders().map(ee=>{if(function vn(Ut){const ne=Ut.getComponent();return"VERSION"===(null==ne?void 0:ne.type)}(ee)){const je=ee.getImmediate();return`${je.library}/${je.version}`}return null}).filter(ee=>ee).join(" ")}}const Nt="@firebase/app",on=new Z.Vy("@firebase/app"),Mn="[DEFAULT]",xn={[Nt]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},mn=new Map,en=new Map,Er=new Map;function Ir(Ut,ne){try{Ut.container.addComponent(ne)}catch(ee){on.debug(`Component ${ne.name} failed to register with FirebaseApp ${Ut.name}`,ee)}}function Qn(Ut){const ne=Ut.name;if(Er.has(ne))return on.debug(`There were multiple attempts to register component ${ne}.`),!1;Er.set(ne,Ut);for(const ee of mn.values())Ir(ee,Ut);for(const ee of en.values())Ir(ee,Ut);return!0}function Dr(Ut,ne){const ee=Ut.container.getProvider("heartbeat").getImmediate({optional:!0});return ee&&ee.triggerHeartbeat(),Ut.container.getProvider(ne)}function mr(Ut){return void 0!==Ut.settings}const cr=new Oe.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class kr{constructor(ne,ee,je){this._isDeleted=!1,this._options=Object.assign({},ne),this._config=Object.assign({},ee),this._name=ee.name,this._automaticDataCollectionEnabled=ee.automaticDataCollectionEnabled,this._container=je,this.container.addComponent(new c.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(ne){this.checkDestroyed(),this._automaticDataCollectionEnabled=ne}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(ne){this._isDeleted=ne}checkDestroyed(){if(this.isDeleted)throw cr.create("app-deleted",{appName:this._name})}}const Ai="10.12.2";function Qr(Ut,ne={}){let ee=Ut;"object"!=typeof ne&&(ne={name:ne});const je=Object.assign({name:Mn,automaticDataCollectionEnabled:!1},ne),M=je.name;if("string"!=typeof M||!M)throw cr.create("bad-app-name",{appName:String(M)});if(ee||(ee=(0,Oe.T9)()),!ee)throw cr.create("no-options");const x=mn.get(M);if(x){if((0,Oe.bD)(ee,x.options)&&(0,Oe.bD)(je,x.config))return x;throw cr.create("duplicate-app",{appName:M})}const te=new c.h1(M);for(const Ge of Er.values())te.addComponent(Ge);const Te=new kr(ee,je,te);return mn.set(M,Te),Te}function it(Ut=Mn){const ne=mn.get(Ut);if(!ne&&Ut===Mn&&(0,Oe.T9)())return Qr();if(!ne)throw cr.create("no-app",{appName:Ut});return ne}function Mt(){return Array.from(mn.values())}function Ee(Ut,ne,ee){var je;let M=null!==(je=xn[Ut])&&void 0!==je?je:Ut;ee&&(M+=`-${ee}`);const x=M.match(/\s|\//),te=ne.match(/\s|\//);if(x||te){const Te=[`Unable to register library "${M}" with version "${ne}":`];return x&&Te.push(`library name "${M}" contains illegal characters (whitespace or "/")`),x&&te&&Te.push("and"),te&&Te.push(`version name "${ne}" contains illegal characters (whitespace or "/")`),void on.warn(Te.join(" "))}Qn(new c.uA(`${M}-version`,()=>({library:M,version:ne}),"VERSION"))}const ie="firebase-heartbeat-database",ct=1,lt="firebase-heartbeat-store";let Gt=null;function tn(){return Gt||(Gt=function Ye(Ut,ne,{blocked:ee,upgrade:je,blocking:M,terminated:x}={}){const te=indexedDB.open(Ut,ne),Te=mt(te);return je&&te.addEventListener("upgradeneeded",Ge=>{je(mt(te.result),Ge.oldVersion,Ge.newVersion,mt(te.transaction),Ge)}),ee&&te.addEventListener("blocked",Ge=>ee(Ge.oldVersion,Ge.newVersion,Ge)),Te.then(Ge=>{x&&Ge.addEventListener("close",()=>x()),M&&Ge.addEventListener("versionchange",Ct=>M(Ct.oldVersion,Ct.newVersion,Ct))}).catch(()=>{}),Te}(ie,ct,{upgrade:(Ut,ne)=>{if(0===ne)try{Ut.createObjectStore(lt)}catch(ee){console.warn(ee)}}}).catch(Ut=>{throw cr.create("idb-open",{originalErrorMessage:Ut.message})})),Gt}function qn(){return(qn=(0,h.A)(function*(Ut){try{const ee=(yield tn()).transaction(lt),je=yield ee.objectStore(lt).get(tr(Ut));return yield ee.done,je}catch(ne){if(ne instanceof Oe.g)on.warn(ne.message);else{const ee=cr.create("idb-get",{originalErrorMessage:null==ne?void 0:ne.message});on.warn(ee.message)}}})).apply(this,arguments)}function hn(Ut,ne){return Cn.apply(this,arguments)}function Cn(){return(Cn=(0,h.A)(function*(Ut,ne){try{const je=(yield tn()).transaction(lt,"readwrite");yield je.objectStore(lt).put(ne,tr(Ut)),yield je.done}catch(ee){if(ee instanceof Oe.g)on.warn(ee.message);else{const je=cr.create("idb-set",{originalErrorMessage:null==ee?void 0:ee.message});on.warn(je.message)}}})).apply(this,arguments)}function tr(Ut){return`${Ut.name}!${Ut.options.appId}`}class $r{constructor(ne){this.container=ne,this._heartbeatsCache=null;const ee=this.container.getProvider("app").getImmediate();this._storage=new Ri(ee),this._heartbeatsCachePromise=this._storage.read().then(je=>(this._heartbeatsCache=je,je))}triggerHeartbeat(){var ne=this;return(0,h.A)(function*(){var ee,je;const x=ne.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),te=Zr();if((null!=(null===(ee=ne._heartbeatsCache)||void 0===ee?void 0:ee.heartbeats)||(ne._heartbeatsCache=yield ne._heartbeatsCachePromise,null!=(null===(je=ne._heartbeatsCache)||void 0===je?void 0:je.heartbeats)))&&ne._heartbeatsCache.lastSentHeartbeatDate!==te&&!ne._heartbeatsCache.heartbeats.some(Te=>Te.date===te))return ne._heartbeatsCache.heartbeats.push({date:te,agent:x}),ne._heartbeatsCache.heartbeats=ne._heartbeatsCache.heartbeats.filter(Te=>{const Ge=new Date(Te.date).valueOf();return Date.now()-Ge<=2592e6}),ne._storage.overwrite(ne._heartbeatsCache)})()}getHeartbeatsHeader(){var ne=this;return(0,h.A)(function*(){var ee;if(null===ne._heartbeatsCache&&(yield ne._heartbeatsCachePromise),null==(null===(ee=ne._heartbeatsCache)||void 0===ee?void 0:ee.heartbeats)||0===ne._heartbeatsCache.heartbeats.length)return"";const je=Zr(),{heartbeatsToSend:M,unsentEntries:x}=function fr(Ut,ne=1024){const ee=[];let je=Ut.slice();for(const M of Ut){const x=ee.find(te=>te.agent===M.agent);if(x){if(x.dates.push(M.date),gi(ee)>ne){x.dates.pop();break}}else if(ee.push({agent:M.agent,dates:[M.date]}),gi(ee)>ne){ee.pop();break}je=je.slice(1)}return{heartbeatsToSend:ee,unsentEntries:je}}(ne._heartbeatsCache.heartbeats),te=(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:M}));return ne._heartbeatsCache.lastSentHeartbeatDate=je,x.length>0?(ne._heartbeatsCache.heartbeats=x,yield ne._storage.overwrite(ne._heartbeatsCache)):(ne._heartbeatsCache.heartbeats=[],ne._storage.overwrite(ne._heartbeatsCache)),te})()}}function Zr(){return(new Date).toISOString().substring(0,10)}class Ri{constructor(ne){this.app=ne,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,h.A)(function*(){return!!(0,Oe.zW)()&&(0,Oe.eX)().then(()=>!0).catch(()=>!1)})()}read(){var ne=this;return(0,h.A)(function*(){if(yield ne._canUseIndexedDBPromise){const je=yield function _n(Ut){return qn.apply(this,arguments)}(ne.app);return null!=je&&je.heartbeats?je:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(ne){var ee=this;return(0,h.A)(function*(){var je;if(yield ee._canUseIndexedDBPromise){const x=yield ee.read();return hn(ee.app,{lastSentHeartbeatDate:null!==(je=ne.lastSentHeartbeatDate)&&void 0!==je?je:x.lastSentHeartbeatDate,heartbeats:ne.heartbeats})}})()}add(ne){var ee=this;return(0,h.A)(function*(){var je;if(yield ee._canUseIndexedDBPromise){const x=yield ee.read();return hn(ee.app,{lastSentHeartbeatDate:null!==(je=ne.lastSentHeartbeatDate)&&void 0!==je?je:x.lastSentHeartbeatDate,heartbeats:[...x.heartbeats,...ne.heartbeats]})}})()}}function gi(Ut){return(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:Ut})).length}!function pr(Ut){Qn(new c.uA("platform-logger",ne=>new Rt(ne),"PRIVATE")),Qn(new c.uA("heartbeat",ne=>new $r(ne),"PRIVATE")),Ee(Nt,"0.10.5",Ut),Ee(Nt,"0.10.5","esm2017"),Ee("fire-js","")}("")},1362:(Tn,gt,D)=>{"use strict";D.d(gt,{h1:()=>Xe,uA:()=>Z});var h=D(467),c=D(1076);class Z{constructor(Se,De,Qe){this.name=Se,this.instanceFactory=De,this.type=Qe,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(Se){return this.instantiationMode=Se,this}setMultipleInstances(Se){return this.multipleInstances=Se,this}setServiceProps(Se){return this.serviceProps=Se,this}setInstanceCreatedCallback(Se){return this.onInstanceCreated=Se,this}}const Oe="[DEFAULT]";class U{constructor(Se,De){this.name=Se,this.container=De,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(Se){const De=this.normalizeInstanceIdentifier(Se);if(!this.instancesDeferred.has(De)){const Qe=new c.cY;if(this.instancesDeferred.set(De,Qe),this.isInitialized(De)||this.shouldAutoInitialize())try{const Ze=this.getOrInitializeService({instanceIdentifier:De});Ze&&Qe.resolve(Ze)}catch{}}return this.instancesDeferred.get(De).promise}getImmediate(Se){var De;const Qe=this.normalizeInstanceIdentifier(null==Se?void 0:Se.identifier),Ze=null!==(De=null==Se?void 0:Se.optional)&&void 0!==De&&De;if(!this.isInitialized(Qe)&&!this.shouldAutoInitialize()){if(Ze)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Qe})}catch(qe){if(Ze)return null;throw qe}}getComponent(){return this.component}setComponent(Se){if(Se.name!==this.name)throw Error(`Mismatching Component ${Se.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=Se,this.shouldAutoInitialize()){if(function oe(Je){return"EAGER"===Je.instantiationMode}(Se))try{this.getOrInitializeService({instanceIdentifier:Oe})}catch{}for(const[De,Qe]of this.instancesDeferred.entries()){const Ze=this.normalizeInstanceIdentifier(De);try{const qe=this.getOrInitializeService({instanceIdentifier:Ze});Qe.resolve(qe)}catch{}}}}clearInstance(Se=Oe){this.instancesDeferred.delete(Se),this.instancesOptions.delete(Se),this.instances.delete(Se)}delete(){var Se=this;return(0,h.A)(function*(){const De=Array.from(Se.instances.values());yield Promise.all([...De.filter(Qe=>"INTERNAL"in Qe).map(Qe=>Qe.INTERNAL.delete()),...De.filter(Qe=>"_delete"in Qe).map(Qe=>Qe._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(Se=Oe){return this.instances.has(Se)}getOptions(Se=Oe){return this.instancesOptions.get(Se)||{}}initialize(Se={}){const{options:De={}}=Se,Qe=this.normalizeInstanceIdentifier(Se.instanceIdentifier);if(this.isInitialized(Qe))throw Error(`${this.name}(${Qe}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Ze=this.getOrInitializeService({instanceIdentifier:Qe,options:De});for(const[qe,ht]of this.instancesDeferred.entries())Qe===this.normalizeInstanceIdentifier(qe)&&ht.resolve(Ze);return Ze}onInit(Se,De){var Qe;const Ze=this.normalizeInstanceIdentifier(De),qe=null!==(Qe=this.onInitCallbacks.get(Ze))&&void 0!==Qe?Qe:new Set;qe.add(Se),this.onInitCallbacks.set(Ze,qe);const ht=this.instances.get(Ze);return ht&&Se(ht,Ze),()=>{qe.delete(Se)}}invokeOnInitCallbacks(Se,De){const Qe=this.onInitCallbacks.get(De);if(Qe)for(const Ze of Qe)try{Ze(Se,De)}catch{}}getOrInitializeService({instanceIdentifier:Se,options:De={}}){let Qe=this.instances.get(Se);if(!Qe&&this.component&&(Qe=this.component.instanceFactory(this.container,{instanceIdentifier:(Je=Se,Je===Oe?void 0:Je),options:De}),this.instances.set(Se,Qe),this.instancesOptions.set(Se,De),this.invokeOnInitCallbacks(Qe,Se),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,Se,Qe)}catch{}var Je;return Qe||null}normalizeInstanceIdentifier(Se=Oe){return this.component?this.component.multipleInstances?Se:Oe:Se}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Xe{constructor(Se){this.name=Se,this.providers=new Map}addComponent(Se){const De=this.getProvider(Se.name);if(De.isComponentSet())throw new Error(`Component ${Se.name} has already been registered with ${this.name}`);De.setComponent(Se)}addOrOverwriteComponent(Se){this.getProvider(Se.name).isComponentSet()&&this.providers.delete(Se.name),this.addComponent(Se)}getProvider(Se){if(this.providers.has(Se))return this.providers.get(Se);const De=new U(Se,this);return this.providers.set(Se,De),De}getProviders(){return Array.from(this.providers.values())}}},8041:(Tn,gt,D)=>{"use strict";D.d(gt,{$b:()=>c,Vy:()=>oe});const h=[];var c=function(Se){return Se[Se.DEBUG=0]="DEBUG",Se[Se.VERBOSE=1]="VERBOSE",Se[Se.INFO=2]="INFO",Se[Se.WARN=3]="WARN",Se[Se.ERROR=4]="ERROR",Se[Se.SILENT=5]="SILENT",Se}(c||{});const Z={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},Oe=c.INFO,U={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},ue=(Se,De,...Qe)=>{if(De{"use strict";D.d(gt,{Yq:()=>nt,TS:()=>er,sR:()=>yr,el:()=>tn,Sb:()=>mr,QE:()=>tr,CF:()=>Dr,Rg:()=>Ee,p4:()=>Ar,jM:()=>pr,_t:()=>ve,q9:()=>rn,Kb:()=>Ut,CE:()=>_n,pF:()=>qn,fL:()=>$r,YV:()=>ct,er:()=>dr,z3:()=>Zr});var h=D(467),c=D(9842),Z=D(4438),Oe=D(7650),U=D(177),ue=D(5531),oe=D(4442);var Rt=D(1413),vn=D(3726),Nt=D(4412),tt=D(4572),on=D(7673),dt=D(1635),we=D(5964),H=D(5558),X=D(3294),fe=D(4341);const se=["tabsInner"];class ve{constructor(ee){(0,c.A)(this,"menuController",void 0),this.menuController=ee}open(ee){return this.menuController.open(ee)}close(ee){return this.menuController.close(ee)}toggle(ee){return this.menuController.toggle(ee)}enable(ee,je){return this.menuController.enable(ee,je)}swipeGesture(ee,je){return this.menuController.swipeGesture(ee,je)}isOpen(ee){return this.menuController.isOpen(ee)}isEnabled(ee){return this.menuController.isEnabled(ee)}get(ee){return this.menuController.get(ee)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(ee,je){return this.menuController.registerAnimation(ee,je)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(ee,je){return this.menuController._createAnimation(ee,je)}_register(ee){return this.menuController._register(ee)}_unregister(ee){return this.menuController._unregister(ee)}_setOpen(ee,je,M){return this.menuController._setOpen(ee,je,M)}}let Wt=(()=>{var ne;class ee{constructor(M,x){(0,c.A)(this,"doc",void 0),(0,c.A)(this,"_readyPromise",void 0),(0,c.A)(this,"win",void 0),(0,c.A)(this,"backButton",new Rt.B),(0,c.A)(this,"keyboardDidShow",new Rt.B),(0,c.A)(this,"keyboardDidHide",new Rt.B),(0,c.A)(this,"pause",new Rt.B),(0,c.A)(this,"resume",new Rt.B),(0,c.A)(this,"resize",new Rt.B),this.doc=M,x.run(()=>{var te;let Te;this.win=M.defaultView,this.backButton.subscribeWithPriority=function(Ge,Ct){return this.subscribe(Jt=>Jt.register(Ge,ln=>x.run(()=>Ct(ln))))},Kt(this.pause,M,"pause",x),Kt(this.resume,M,"resume",x),Kt(this.backButton,M,"ionBackButton",x),Kt(this.resize,this.win,"resize",x),Kt(this.keyboardDidShow,this.win,"ionKeyboardDidShow",x),Kt(this.keyboardDidHide,this.win,"ionKeyboardDidHide",x),this._readyPromise=new Promise(Ge=>{Te=Ge}),null!==(te=this.win)&&void 0!==te&&te.cordova?M.addEventListener("deviceready",()=>{Te("cordova")},{once:!0}):Te("dom")})}is(M){return(0,ue.a)(this.win,M)}platforms(){return(0,ue.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(M){return dn(this.win.location.href,M)}isLandscape(){return!this.isPortrait()}isPortrait(){var M,x;return null===(M=(x=this.win).matchMedia)||void 0===M?void 0:M.call(x,"(orientation: portrait)").matches}testUserAgent(M){const x=this.win.navigator;return!!(null!=x&&x.userAgent&&x.userAgent.indexOf(M)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.KVO(U.qQ),Z.KVO(Z.SKi))}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})),ee})();const dn=(ne,ee)=>{ee=ee.replace(/[[\]\\]/g,"\\$&");const M=new RegExp("[\\?&]"+ee+"=([^&#]*)").exec(ne);return M?decodeURIComponent(M[1].replace(/\+/g," ")):null},Kt=(ne,ee,je,M)=>{ee&&ee.addEventListener(je,x=>{M.run(()=>{ne.next(null!=x?x.detail:void 0)})})};let rn=(()=>{var ne;class ee{constructor(M,x,te,Te){(0,c.A)(this,"location",void 0),(0,c.A)(this,"serializer",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"topOutlet",void 0),(0,c.A)(this,"direction",Zn),(0,c.A)(this,"animated",nr),(0,c.A)(this,"animationBuilder",void 0),(0,c.A)(this,"guessDirection","forward"),(0,c.A)(this,"guessAnimation",void 0),(0,c.A)(this,"lastNavId",-1),this.location=x,this.serializer=te,this.router=Te,Te&&Te.events.subscribe(Ge=>{if(Ge instanceof Oe.Z){const Ct=Ge.restoredState?Ge.restoredState.navigationId:Ge.id;this.guessDirection=this.guessAnimation=Ct{this.pop(),Ge()})}navigateForward(M,x={}){return this.setDirection("forward",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}navigateBack(M,x={}){return this.setDirection("back",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}navigateRoot(M,x={}){return this.setDirection("root",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}back(M={animated:!0,animationDirection:"back"}){return this.setDirection("back",M.animated,M.animationDirection,M.animation),this.location.back()}pop(){var M=this;return(0,h.A)(function*(){let x=M.topOutlet;for(;x;){if(yield x.pop())return!0;x=x.parentOutlet}return!1})()}setDirection(M,x,te,Te){this.direction=M,this.animated=Ln(M,x,te),this.animationBuilder=Te}setTopOutlet(M){this.topOutlet=M}consumeTransition(){let x,M="root";const te=this.animationBuilder;return"auto"===this.direction?(M=this.guessDirection,x=this.guessAnimation):(x=this.animated,M=this.direction),this.direction=Zn,this.animated=nr,this.animationBuilder=void 0,{direction:M,animation:x,animationBuilder:te}}navigate(M,x){if(Array.isArray(M))return this.router.navigate(M,x);{const te=this.serializer.parse(M.toString());return void 0!==x.queryParams&&(te.queryParams={...x.queryParams}),void 0!==x.fragment&&(te.fragment=x.fragment),this.router.navigateByUrl(te,x)}}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.KVO(Wt),Z.KVO(U.aZ),Z.KVO(Oe.Sd),Z.KVO(Oe.Ix,8))}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})),ee})();const Ln=(ne,ee,je)=>{if(!1!==ee){if(void 0!==je)return je;if("forward"===ne||"back"===ne)return ne;if("root"===ne&&!0===ee)return"forward"}},Zn="auto",nr=void 0;let er=(()=>{var ne;class ee{get(M,x){const te=rr();return te?te.get(M,x):null}getBoolean(M,x){const te=rr();return!!te&&te.getBoolean(M,x)}getNumber(M,x){const te=rr();return te?te.getNumber(M,x):0}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})),ee})();const yr=new Z.nKC("USERCONFIG"),rr=()=>{if(typeof window<"u"){const ne=window.Ionic;if(null!=ne&&ne.config)return ne.config}return null};class ir{constructor(ee={}){(0,c.A)(this,"data",void 0),this.data=ee,console.warn("[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.")}get(ee){return this.data[ee]}}let nt=(()=>{var ne;class ee{constructor(){(0,c.A)(this,"zone",(0,Z.WQX)(Z.SKi)),(0,c.A)(this,"applicationRef",(0,Z.WQX)(Z.o8S)),(0,c.A)(this,"config",(0,Z.WQX)(yr))}create(M,x,te){var Te;return new Ot(M,x,this.applicationRef,this.zone,te,null!==(Te=this.config.useSetInputAPI)&&void 0!==Te&&Te)}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac})),ee})();class Ot{constructor(ee,je,M,x,te,Te){(0,c.A)(this,"environmentInjector",void 0),(0,c.A)(this,"injector",void 0),(0,c.A)(this,"applicationRef",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"elementReferenceKey",void 0),(0,c.A)(this,"enableSignalsSupport",void 0),(0,c.A)(this,"elRefMap",new WeakMap),(0,c.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=ee,this.injector=je,this.applicationRef=M,this.zone=x,this.elementReferenceKey=te,this.enableSignalsSupport=Te}attachViewToDom(ee,je,M,x){return this.zone.run(()=>new Promise(te=>{const Te={...M};void 0!==this.elementReferenceKey&&(Te[this.elementReferenceKey]=ee),te(zt(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,ee,je,Te,x,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(ee,je){return this.zone.run(()=>new Promise(M=>{const x=this.elRefMap.get(je);if(x){x.destroy(),this.elRefMap.delete(je);const te=this.elEventsMap.get(je);te&&(te(),this.elEventsMap.delete(je))}M()}))}}const zt=(ne,ee,je,M,x,te,Te,Ge,Ct,Jt,ln,or)=>{const Un=Z.zZn.create({providers:Mn(Ct),parent:je}),xr=(0,Z.a0P)(Ge,{environmentInjector:ee,elementInjector:Un}),On=xr.instance,Fr=xr.location.nativeElement;if(Ct)if(ln&&void 0!==On[ln]&&console.error(`[Ionic Error]: ${ln} is a reserved property when using ${Te.tagName.toLowerCase()}. Rename or remove the "${ln}" property from ${Ge.name}.`),!0===or&&void 0!==xr.setInput){const{modal:zr,popover:Tr,...Gn}=Ct;for(const Cr in Gn)xr.setInput(Cr,Gn[Cr]);void 0!==zr&&Object.assign(On,{modal:zr}),void 0!==Tr&&Object.assign(On,{popover:Tr})}else Object.assign(On,Ct);if(Jt)for(const zr of Jt)Fr.classList.add(zr);const Or=gn(ne,On,Fr);return Te.appendChild(Fr),M.attachView(xr.hostView),x.set(Fr,xr),te.set(Fr,Or),Fr},pn=[oe.L,oe.a,oe.b,oe.c,oe.d],gn=(ne,ee,je)=>ne.run(()=>{const M=pn.filter(x=>"function"==typeof ee[x]).map(x=>{const te=Te=>ee[x](Te.detail);return je.addEventListener(x,te),()=>je.removeEventListener(x,te)});return()=>M.forEach(x=>x())}),Sr=new Z.nKC("NavParamsToken"),Mn=ne=>[{provide:Sr,useValue:ne},{provide:ir,useFactory:xn,deps:[Sr]}],xn=ne=>new ir(ne),mn=(ne,ee)=>{const je=ne.prototype;ee.forEach(M=>{Object.defineProperty(je,M,{get(){return this.el[M]},set(x){this.z.runOutsideAngular(()=>this.el[M]=x)}})})},en=(ne,ee)=>{const je=ne.prototype;ee.forEach(M=>{je[M]=function(){const x=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,x))}})},Er=(ne,ee,je)=>{je.forEach(M=>ne[M]=(0,vn.R)(ee,M))};function Ir(ne){return function(je){const{defineCustomElementFn:M,inputs:x,methods:te}=ne;return void 0!==M&&M(),x&&mn(je,x),te&&en(je,te),je}}const Nr=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Qn=["present","dismiss","onDidDismiss","onWillDismiss"];let Dr=(()=>{var ne;let ee=((0,c.A)(ne=class{constructor(M,x,te){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=te,this.el=x.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),Er(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||ne)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(ne,"\u0275dir",Z.FsC({type:ne,selectors:[["ion-popover"]],contentQueries:function(M,x,te){if(1&M&&Z.wni(te,Z.C4Q,5),2&M){let Te;Z.mGM(Te=Z.lsd())&&(x.template=Te.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}})),ne);return ee=(0,dt.Cg)([Ir({inputs:Nr,methods:Qn})],ee),ee})();const Jn=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],Jr=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let mr=(()=>{var ne;let ee=((0,c.A)(ne=class{constructor(M,x,te){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=te,this.el=x.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),Er(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||ne)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(ne,"\u0275dir",Z.FsC({type:ne,selectors:[["ion-modal"]],contentQueries:function(M,x,te){if(1&M&&Z.wni(te,Z.C4Q,5),2&M){let Te;Z.mGM(Te=Z.lsd())&&(x.template=Te.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}})),ne);return ee=(0,dt.Cg)([Ir({inputs:Jn,methods:Jr})],ee),ee})();const Pr=(ne,ee)=>((ne=ne.filter(je=>je.stackId!==ee.stackId)).push(ee),ne),ii=(ne,ee)=>{const je=ne.createUrlTree(["."],{relativeTo:ee});return ne.serializeUrl(je)},Ai=(ne,ee)=>!ee||ne.stackId!==ee.stackId,Qr=(ne,ee)=>{if(!ne)return;const je=pe(ee);for(let M=0;M=ne.length)return je[M];if(je[M]!==ne[M])return}},pe=ne=>ne.split("/").map(ee=>ee.trim()).filter(ee=>""!==ee),it=ne=>{ne&&(ne.ref.destroy(),ne.unlistenEvents())};class Mt{constructor(ee,je,M,x,te,Te){(0,c.A)(this,"containerEl",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"location",void 0),(0,c.A)(this,"views",[]),(0,c.A)(this,"runningTask",void 0),(0,c.A)(this,"skipTransition",!1),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"activeView",void 0),(0,c.A)(this,"nextId",0),this.containerEl=je,this.router=M,this.navCtrl=x,this.zone=te,this.location=Te,this.tabsPrefix=void 0!==ee?pe(ee):void 0}createView(ee,je){var M;const x=ii(this.router,je),te=null==ee||null===(M=ee.location)||void 0===M?void 0:M.nativeElement,Te=gn(this.zone,ee.instance,te);return{id:this.nextId++,stackId:Qr(this.tabsPrefix,x),unlistenEvents:Te,element:te,ref:ee,url:x}}getExistingView(ee){const je=ii(this.router,ee),M=this.views.find(x=>x.url===je);return M&&M.ref.changeDetectorRef.reattach(),M}setActive(ee){var je,M;const x=this.navCtrl.consumeTransition();let{direction:te,animation:Te,animationBuilder:Ge}=x;const Ct=this.activeView,Jt=Ai(ee,Ct);Jt&&(te="back",Te=void 0);const ln=this.views.slice();let or;const Un=this.router;Un.getCurrentNavigation?or=Un.getCurrentNavigation():null!==(je=Un.navigations)&&void 0!==je&&je.value&&(or=Un.navigations.value),null!==(M=or)&&void 0!==M&&null!==(M=M.extras)&&void 0!==M&&M.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const xr=this.views.includes(ee),On=this.insertView(ee,te);xr||ee.ref.changeDetectorRef.detectChanges();const Fr=ee.animationBuilder;return void 0===Ge&&"back"===te&&!Jt&&void 0!==Fr&&(Ge=Fr),Ct&&(Ct.animationBuilder=Ge),this.zone.runOutsideAngular(()=>this.wait(()=>(Ct&&Ct.ref.changeDetectorRef.detach(),ee.ref.changeDetectorRef.reattach(),this.transition(ee,Ct,Te,this.canGoBack(1),!1,Ge).then(()=>ut(ee,On,ln,this.location,this.zone)).then(()=>({enteringView:ee,direction:te,animation:Te,tabSwitch:Jt})))))}canGoBack(ee,je=this.getActiveStackId()){return this.getStack(je).length>ee}pop(ee,je=this.getActiveStackId()){return this.zone.run(()=>{const M=this.getStack(je);if(M.length<=ee)return Promise.resolve(!1);const x=M[M.length-ee-1];let te=x.url;const Te=x.savedData;if(Te){var Ge;const Jt=Te.get("primary");null!=Jt&&null!==(Ge=Jt.route)&&void 0!==Ge&&null!==(Ge=Ge._routerState)&&void 0!==Ge&&Ge.snapshot.url&&(te=Jt.route._routerState.snapshot.url)}const{animationBuilder:Ct}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(te,{...x.savedExtras,animation:Ct}).then(()=>!0)})}startBackTransition(){const ee=this.activeView;if(ee){const je=this.getStack(ee.stackId),M=je[je.length-2],x=M.animationBuilder;return this.wait(()=>this.transition(M,ee,"back",this.canGoBack(2),!0,x))}return Promise.resolve()}endBackTransition(ee){ee?(this.skipTransition=!0,this.pop(1)):this.activeView&&ce(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(ee){const je=this.getStack(ee);return je.length>0?je[je.length-1]:void 0}getRootUrl(ee){const je=this.getStack(ee);return je.length>0?je[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(it),this.activeView=void 0,this.views=[]}getStack(ee){return this.views.filter(je=>je.stackId===ee)}insertView(ee,je){return this.activeView=ee,this.views=((ne,ee,je)=>"root"===je?Pr(ne,ee):"forward"===je?((ne,ee)=>(ne.indexOf(ee)>=0?ne=ne.filter(M=>M.stackId!==ee.stackId||M.id<=ee.id):ne.push(ee),ne))(ne,ee):((ne,ee)=>ne.indexOf(ee)>=0?ne.filter(M=>M.stackId!==ee.stackId||M.id<=ee.id):Pr(ne,ee))(ne,ee))(this.views,ee,je),this.views.slice()}transition(ee,je,M,x,te,Te){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(je===ee)return Promise.resolve(!1);const Ge=ee?ee.element:void 0,Ct=je?je.element:void 0,Jt=this.containerEl;return Ge&&Ge!==Ct&&(Ge.classList.add("ion-page"),Ge.classList.add("ion-page-invisible"),Jt.commit)?Jt.commit(Ge,Ct,{duration:void 0===M?0:void 0,direction:M,showGoBack:x,progressAnimation:te,animationBuilder:Te}):Promise.resolve(!1)}wait(ee){var je=this;return(0,h.A)(function*(){void 0!==je.runningTask&&(yield je.runningTask,je.runningTask=void 0);const M=je.runningTask=ee();return M.finally(()=>je.runningTask=void 0),M})()}}const ut=(ne,ee,je,M,x)=>"function"==typeof requestAnimationFrame?new Promise(te=>{requestAnimationFrame(()=>{ce(ne,ee,je,M,x),te()})}):Promise.resolve(),ce=(ne,ee,je,M,x)=>{x.run(()=>je.filter(te=>!ee.includes(te)).forEach(it)),ee.forEach(te=>{const Ge=M.path().split("?")[0].split("#")[0];if(te!==ne&&te.url!==Ge){const Ct=te.element;Ct.setAttribute("aria-hidden","true"),Ct.classList.add("ion-page-hidden"),te.ref.changeDetectorRef.detach()}})};let Ee=(()=>{var ne;class ee{get activatedComponentRef(){return this.activated}set animation(M){this.nativeEl.animation=M}set animated(M){this.nativeEl.animated=M}set swipeGesture(M){this._swipeGesture=M,this.nativeEl.swipeHandler=M?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:x=>this.stackCtrl.endBackTransition(x)}:void 0}constructor(M,x,te,Te,Ge,Ct,Jt,ln){(0,c.A)(this,"parentOutlet",void 0),(0,c.A)(this,"nativeEl",void 0),(0,c.A)(this,"activatedView",null),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"_swipeGesture",void 0),(0,c.A)(this,"stackCtrl",void 0),(0,c.A)(this,"proxyMap",new WeakMap),(0,c.A)(this,"currentActivatedRoute$",new Nt.t(null)),(0,c.A)(this,"activated",null),(0,c.A)(this,"_activatedRoute",null),(0,c.A)(this,"name",Oe.Xk),(0,c.A)(this,"stackWillChange",new Z.bkB),(0,c.A)(this,"stackDidChange",new Z.bkB),(0,c.A)(this,"activateEvents",new Z.bkB),(0,c.A)(this,"deactivateEvents",new Z.bkB),(0,c.A)(this,"parentContexts",(0,Z.WQX)(Oe.Zp)),(0,c.A)(this,"location",(0,Z.WQX)(Z.c1b)),(0,c.A)(this,"environmentInjector",(0,Z.WQX)(Z.uvJ)),(0,c.A)(this,"inputBinder",(0,Z.WQX)(Lt,{optional:!0})),(0,c.A)(this,"supportsBindingToComponentInputs",!0),(0,c.A)(this,"config",(0,Z.WQX)(er)),(0,c.A)(this,"navCtrl",(0,Z.WQX)(rn)),this.parentOutlet=ln,this.nativeEl=Te.nativeElement,this.name=M||Oe.Xk,this.tabsPrefix="true"===x?ii(Ge,Jt):void 0,this.stackCtrl=new Mt(this.tabsPrefix,this.nativeEl,Ge,this.navCtrl,Ct,te),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var M;this.stackCtrl.destroy(),null===(M=this.inputBinder)||void 0===M||M.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const M=this.getContext();null!=M&&M.route&&this.activateWith(M.route,M.injector)}new Promise(M=>((ne,ee)=>{ne.componentOnReady?ne.componentOnReady().then(je=>ee(je)):(ne=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ne):"function"==typeof requestAnimationFrame?requestAnimationFrame(ne):setTimeout(ne)})(()=>ee(ne))})(this.nativeEl,M)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(M,x){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const x=this.getContext();this.activatedView.savedData=new Map(x.children.contexts);const te=this.activatedView.savedData.get("primary");if(te&&x.route&&(te.route={...x.route}),this.activatedView.savedExtras={},x.route){const Te=x.route.snapshot;this.activatedView.savedExtras.queryParams=Te.queryParams,this.activatedView.savedExtras.fragment=Te.fragment}}const M=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(M)}}activateWith(M,x){var te;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=M;let Te,Ge=this.stackCtrl.getExistingView(M);if(Ge){Te=this.activated=Ge.ref;const ln=Ge.savedData;ln&&(this.getContext().children.contexts=ln),this.updateActivatedRouteProxy(Te.instance,M)}else{var Ct;const ln=M._futureSnapshot,or=this.parentContexts.getOrCreateContext(this.name).children,Un=new Nt.t(null),xr=this.createActivatedRouteProxy(Un,M),On=new He(xr,or,this.location.injector),Fr=null!==(Ct=ln.routeConfig.component)&&void 0!==Ct?Ct:ln.component;Te=this.activated=this.outletContent.createComponent(Fr,{index:this.outletContent.length,injector:On,environmentInjector:null!=x?x:this.environmentInjector}),Un.next(Te.instance),Ge=this.stackCtrl.createView(this.activated,M),this.proxyMap.set(Te.instance,xr),this.currentActivatedRoute$.next({component:Te.instance,activatedRoute:M})}null===(te=this.inputBinder)||void 0===te||te.bindActivatedRouteToOutletComponent(this),this.activatedView=Ge,this.navCtrl.setTopOutlet(this);const Jt=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:Ge,tabSwitch:Ai(Ge,Jt)}),this.stackCtrl.setActive(Ge).then(ln=>{this.activateEvents.emit(Te.instance),this.stackDidChange.emit(ln)})}canGoBack(M=1,x){return this.stackCtrl.canGoBack(M,x)}pop(M=1,x){return this.stackCtrl.pop(M,x)}getLastUrl(M){const x=this.stackCtrl.getLastUrl(M);return x?x.url:void 0}getLastRouteView(M){return this.stackCtrl.getLastUrl(M)}getRootView(M){return this.stackCtrl.getRootUrl(M)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(M,x){const te=new Oe.nX;return te._futureSnapshot=x._futureSnapshot,te._routerState=x._routerState,te.snapshot=x.snapshot,te.outlet=x.outlet,te.component=x.component,te._paramMap=this.proxyObservable(M,"paramMap"),te._queryParamMap=this.proxyObservable(M,"queryParamMap"),te.url=this.proxyObservable(M,"url"),te.params=this.proxyObservable(M,"params"),te.queryParams=this.proxyObservable(M,"queryParams"),te.fragment=this.proxyObservable(M,"fragment"),te.data=this.proxyObservable(M,"data"),te}proxyObservable(M,x){return M.pipe((0,we.p)(te=>!!te),(0,H.n)(te=>this.currentActivatedRoute$.pipe((0,we.p)(Te=>null!==Te&&Te.component===te),(0,H.n)(Te=>Te&&Te.activatedRoute[x]),(0,X.F)())))}updateActivatedRouteProxy(M,x){const te=this.proxyMap.get(M);if(!te)throw new Error("Could not find activated route proxy for view");te._futureSnapshot=x._futureSnapshot,te._routerState=x._routerState,te.snapshot=x.snapshot,te.outlet=x.outlet,te.component=x.component,this.currentActivatedRoute$.next({component:M,activatedRoute:x})}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.kS0("name"),Z.kS0("tabs"),Z.rXU(U.aZ),Z.rXU(Z.aKT),Z.rXU(Oe.Ix),Z.rXU(Z.SKi),Z.rXU(Oe.nX),Z.rXU(ne,12))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]})),ee})();class He{constructor(ee,je,M){(0,c.A)(this,"route",void 0),(0,c.A)(this,"childContexts",void 0),(0,c.A)(this,"parent",void 0),this.route=ee,this.childContexts=je,this.parent=M}get(ee,je){return ee===Oe.nX?this.route:ee===Oe.Zp?this.childContexts:this.parent.get(ee,je)}}const Lt=new Z.nKC("");let ie=(()=>{var ne;class ee{constructor(){(0,c.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(M){this.unsubscribeFromRouteData(M),this.subscribeToRouteData(M)}unsubscribeFromRouteData(M){var x;null===(x=this.outletDataSubscriptions.get(M))||void 0===x||x.unsubscribe(),this.outletDataSubscriptions.delete(M)}subscribeToRouteData(M){const{activatedRoute:x}=M,te=(0,tt.z)([x.queryParams,x.params,x.data]).pipe((0,H.n)(([Te,Ge,Ct],Jt)=>(Ct={...Te,...Ge,...Ct},0===Jt?(0,on.of)(Ct):Promise.resolve(Ct)))).subscribe(Te=>{if(!M.isActivated||!M.activatedComponentRef||M.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(M);const Ge=(0,Z.HJs)(x.component);if(Ge)for(const{templateName:Ct}of Ge.inputs)M.activatedComponentRef.setInput(Ct,Te[Ct]);else this.unsubscribeFromRouteData(M)});this.outletDataSubscriptions.set(M,te)}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac})),ee})();const ct=()=>({provide:Lt,useFactory:lt,deps:[Oe.Ix]});function lt(ne){return null!=ne&&ne.componentInputBindingEnabled?new ie:null}const Gt=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let tn=(()=>{var ne;let ee=((0,c.A)(ne=class{constructor(M,x,te,Te,Ge,Ct){(0,c.A)(this,"routerOutlet",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"config",void 0),(0,c.A)(this,"r",void 0),(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.routerOutlet=M,this.navCtrl=x,this.config=te,this.r=Te,this.z=Ge,Ct.detach(),this.el=this.r.nativeElement}onClick(M){var x;const te=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(x=this.routerOutlet)&&void 0!==x&&x.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),M.preventDefault()):null!=te&&(this.navCtrl.navigateBack(te,{animation:this.routerAnimation}),M.preventDefault())}},"\u0275fac",function(M){return new(M||ne)(Z.rXU(Ee,8),Z.rXU(rn),Z.rXU(er),Z.rXU(Z.aKT),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(ne,"\u0275dir",Z.FsC({type:ne,hostBindings:function(M,x){1&M&&Z.bIt("click",function(Te){return x.onClick(Te)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),ne);return ee=(0,dt.Cg)([Ir({inputs:Gt})],ee),ee})(),_n=(()=>{var ne;class ee{constructor(M,x,te,Te,Ge){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=M,this.navCtrl=x,this.elementRef=te,this.router=Te,this.routerLink=Ge}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const x=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=x}}onClick(M){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),M.preventDefault()}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.rXU(U.hb),Z.rXU(rn),Z.rXU(Z.aKT),Z.rXU(Oe.Ix),Z.rXU(Oe.Wk,8))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(M,x){1&M&&Z.bIt("click",function(Te){return x.onClick(Te)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),ee})(),qn=(()=>{var ne;class ee{constructor(M,x,te,Te,Ge){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=M,this.navCtrl=x,this.elementRef=te,this.router=Te,this.routerLink=Ge}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const x=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=x}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.rXU(U.hb),Z.rXU(rn),Z.rXU(Z.aKT),Z.rXU(Oe.Ix),Z.rXU(Oe.Wk,8))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(M,x){1&M&&Z.bIt("click",function(){return x.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),ee})();const hn=["animated","animation","root","rootParams","swipeGesture"],Cn=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let tr=(()=>{var ne;let ee=((0,c.A)(ne=class{constructor(M,x,te,Te,Ge,Ct){(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.z=Ge,Ct.detach(),this.el=M.nativeElement,M.nativeElement.delegate=Te.create(x,te),Er(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(M){return new(M||ne)(Z.rXU(Z.aKT),Z.rXU(Z.uvJ),Z.rXU(Z.zZn),Z.rXU(nt),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(ne,"\u0275dir",Z.FsC({type:ne,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),ne);return ee=(0,dt.Cg)([Ir({inputs:hn,methods:Cn})],ee),ee})(),Ar=(()=>{var ne;class ee{constructor(M){(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"tabsInner",void 0),(0,c.A)(this,"ionTabsWillChange",new Z.bkB),(0,c.A)(this,"ionTabsDidChange",new Z.bkB),(0,c.A)(this,"tabBarSlot","bottom"),this.navCtrl=M}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:M,tabSwitch:x}){const te=M.stackId;x&&void 0!==te&&this.ionTabsWillChange.emit({tab:te})}onStackDidChange({enteringView:M,tabSwitch:x}){const te=M.stackId;x&&void 0!==te&&(this.tabBar&&(this.tabBar.selectedTab=te),this.ionTabsDidChange.emit({tab:te}))}select(M){const x="string"==typeof M,te=x?M:M.detail.tab,Te=this.outlet.getActiveStackId()===te,Ge=`${this.outlet.tabsPrefix}/${te}`;if(x||M.stopPropagation(),Te){const Ct=this.outlet.getActiveStackId(),Jt=this.outlet.getLastRouteView(Ct);if((null==Jt?void 0:Jt.url)===Ge)return;const ln=this.outlet.getRootView(te);return this.navCtrl.navigateRoot(Ge,{...ln&&Ge===ln.url&&ln.savedExtras,animated:!0,animationDirection:"back"})}{const Ct=this.outlet.getLastRouteView(te);return this.navCtrl.navigateRoot((null==Ct?void 0:Ct.url)||Ge,{...null==Ct?void 0:Ct.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(M=>{const x=M.el.getAttribute("slot");x!==this.tabBarSlot&&(this.tabBarSlot=x,this.relocateTabBar())})}relocateTabBar(){const M=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(M):this.tabsInner.nativeElement.after(M)}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.rXU(rn))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,selectors:[["ion-tabs"]],viewQuery:function(M,x){if(1&M&&Z.GBs(se,7,Z.aKT),2&M){let te;Z.mGM(te=Z.lsd())&&(x.tabsInner=te.first)}},hostBindings:function(M,x){1&M&&Z.bIt("ionTabButtonClick",function(Te){return x.select(Te)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),ee})();const dr=ne=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ne):"function"==typeof requestAnimationFrame?requestAnimationFrame(ne):setTimeout(ne);let $r=(()=>{var ne;class ee{constructor(M,x){(0,c.A)(this,"injector",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"onChange",()=>{}),(0,c.A)(this,"onTouched",()=>{}),(0,c.A)(this,"lastValue",void 0),(0,c.A)(this,"statusChanges",void 0),this.injector=M,this.elementRef=x}writeValue(M){this.elementRef.nativeElement.value=this.lastValue=M,Zr(this.elementRef)}handleValueChange(M,x){M===this.elementRef.nativeElement&&(x!==this.lastValue&&(this.lastValue=x,this.onChange(x)),Zr(this.elementRef))}_handleBlurEvent(M){M===this.elementRef.nativeElement&&(this.onTouched(),Zr(this.elementRef))}registerOnChange(M){this.onChange=M}registerOnTouched(M){this.onTouched=M}setDisabledState(M){this.elementRef.nativeElement.disabled=M}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let M;try{M=this.injector.get(fe.vO)}catch{}if(!M)return;M.statusChanges&&(this.statusChanges=M.statusChanges.subscribe(()=>Zr(this.elementRef)));const x=M.control;x&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Te=>{if(typeof x[Te]<"u"){const Ge=x[Te].bind(x);x[Te]=(...Ct)=>{Ge(...Ct),Zr(this.elementRef)}}})}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.rXU(Z.zZn),Z.rXU(Z.aKT))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,hostBindings:function(M,x){1&M&&Z.bIt("ionBlur",function(Te){return x._handleBlurEvent(Te.target)})}})),ee})();const Zr=ne=>{dr(()=>{const ee=ne.nativeElement,je=null!=ee.value&&ee.value.toString().length>0,M=fr(ee);Ri(ee,M);const x=ee.closest("ion-item");x&&Ri(x,je?[...M,"item-has-value"]:M)})},fr=ne=>{const ee=ne.classList,je=[];for(let M=0;M{const je=ne.classList;je.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),je.add(...ee)},gi=(ne,ee)=>ne.substring(0,ee.length)===ee;class pr{shouldDetach(ee){return!1}shouldAttach(ee){return!1}store(ee,je){}retrieve(ee){return null}shouldReuseRoute(ee,je){if(ee.routeConfig!==je.routeConfig)return!1;const M=ee.params,x=je.params,te=Object.keys(M),Te=Object.keys(x);if(te.length!==Te.length)return!1;for(const Ge of te)if(x[Ge]!==M[Ge])return!1;return!0}}class Ut{constructor(ee){(0,c.A)(this,"ctrl",void 0),this.ctrl=ee}create(ee){return this.ctrl.create(ee||{})}dismiss(ee,je,M){return this.ctrl.dismiss(ee,je,M)}getTop(){return this.ctrl.getTop()}}},7863:(Tn,gt,D)=>{"use strict";D.d(gt,{hG:()=>Ci,hB:()=>dt,U1:()=>Ln,mC:()=>Zn,Jm:()=>ir,QW:()=>nt,b_:()=>Ot,I9:()=>zt,ME:()=>pn,HW:()=>gn,tN:()=>Sr,eY:()=>Mn,ZB:()=>xn,hU:()=>mn,W9:()=>en,Q8:()=>Nr,M0:()=>Jn,lO:()=>Jr,eU:()=>mr,iq:()=>ur,$w:()=>ii,uz:()=>Qr,Dg:()=>pe,he:()=>Ee,nf:()=>He,oS:()=>ct,MC:()=>lt,cA:()=>Gt,Sb:()=>Lr,To:()=>fr,Ki:()=>Ri,Rg:()=>Tr,ln:()=>ne,Gp:()=>je,eP:()=>M,Nm:()=>x,Ip:()=>te,HP:()=>Ct,nc:()=>Un,BC:()=>On,ai:()=>zr,bv:()=>Fn,Xi:()=>bt,_t:()=>he,N7:()=>li,oY:()=>ei,Je:()=>H,Gw:()=>X});var h=D(9842),c=D(4438),Z=D(4341),Oe=D(2872),U=D(1635),ue=D(3726),oe=D(177),Xe=D(7650),qe=(D(9986),D(2725),D(8454),D(3314),D(8607),D(3664)),ht=D(464),Tt=D(5465),St=D(6002),_t=(D(8476),D(9672));D(1970),D(6411);var ge=D(467);const Ue=qe.i,Fe=function(){var w=(0,ge.A)(function*(j,re){if(!(typeof window>"u"))return yield Ue(),(0,_t.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-input-password-toggle",[[33,"ion-input-password-toggle",{"color":[513],"showIcon":[1,"show-icon"],"hideIcon":[1,"hide-icon"],"type":[1025]},null,{"type":["onTypeChange"]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearInputIcon":[1,"clear-input-icon"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[516],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[516],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"type":["onTypeChange"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64],"getLength":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"focusTrap":[4,"focus-trap"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32],"isVisible":[64]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker",[[33,"ion-picker",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-picker-column",[[1,"ion-picker-column",{"disabled":[4],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"ariaLabel":[32],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64],"setFocus":[64]},null,{"aria-label":["ariaLabelChanged"],"value":["valueChange"]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker-legacy",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-legacy-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1],"isCircle":[32]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"fixedSlotPlacement":[1,"fixed-slot-placement"],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[38,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-option",[[33,"ion-picker-column-option",{"disabled":[4],"value":[8],"color":[513],"ariaLabel":[32]},null,{"aria-label":["onAriaLabelChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"focusTrap":[4,"focus-trap"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"]}],[38,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}]]]]'),re)});return function(re,P){return w.apply(this,arguments)}}(),xe=["*"],rt=["outletContent"];function tt(w,j){if(1&w&&(c.j41(0,"div",1),c.eu8(1,2),c.k0s()),2&w){const re=c.XpG();c.R7$(),c.Y8G("ngTemplateOutlet",re.template)}}let dt=(()=>{var w;class j extends Oe.fL{constructor(P,Ie){super(P,Ie)}writeValue(P){this.elementRef.nativeElement.checked=this.lastValue=P,(0,Oe.z3)(this.elementRef)}_handleIonChange(P){this.handleValueChange(P,P.checked)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(P,Ie){1&P&&c.bIt("ionChange",function(sr){return Ie._handleIonChange(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),j})(),H=(()=>{var w;class j extends Oe.fL{constructor(P,Ie){super(P,Ie)}_handleChangeEvent(P){this.handleValueChange(P,P.value)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(P,Ie){1&P&&c.bIt("ionChange",function(sr){return Ie._handleChangeEvent(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),j})(),X=(()=>{var w;class j extends Oe.fL{constructor(P,Ie){super(P,Ie)}_handleInputEvent(P){this.handleValueChange(P,P.value)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(P,Ie){1&P&&c.bIt("ionInput",function(sr){return Ie._handleInputEvent(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),j})();const fe=(w,j)=>{const re=w.prototype;j.forEach(P=>{Object.defineProperty(re,P,{get(){return this.el[P]},set(Ie){this.z.runOutsideAngular(()=>this.el[P]=Ie)},configurable:!0})})},se=(w,j)=>{const re=w.prototype;j.forEach(P=>{re[P]=function(){const Ie=arguments;return this.z.runOutsideAngular(()=>this.el[P].apply(this.el,Ie))}})},ve=(w,j,re)=>{re.forEach(P=>w[P]=(0,ue.R)(j,P))};function _e(w){return function(re){const{defineCustomElementFn:P,inputs:Ie,methods:ot}=w;return void 0!==P&&P(),Ie&&fe(re,Ie),ot&&se(re,ot),re}}let Ln=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-app"]],ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({})],j),j})(),Zn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-avatar"]],ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({})],j),j})(),ir=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],j),j})(),nt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["collapse"]})],j),j})(),Ot=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],j),j})(),zt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["mode"]})],j),j})(),pn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","mode","translucent"]})],j),j})(),gn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","mode"]})],j),j})(),Sr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","mode"]})],j),j})(),Mn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionChange","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-checkbox"]],inputs:{alignment:"alignment",checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",justify:"justify",labelPlacement:"labelPlacement",mode:"mode",name:"name",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["alignment","checked","color","disabled","indeterminate","justify","labelPlacement","mode","name","value"]})],j),j})(),xn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","disabled","mode","outline"]})],j),j})(),mn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],j),j})(),en=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],j),j})(),Nr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],j),j})(),Jn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["collapse","mode","translucent"]})],j),j})(),Jr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["fixed"]})],j),j})(),mr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["collapse","mode","translucent"]})],j),j})(),ur=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],j),j})(),ii=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-input"]],inputs:{autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearInputIcon:"clearInputIcon",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearInputIcon","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],j),j})(),Qr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],j),j})(),pe=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","mode","sticky"]})],j),j})(),Ee=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","mode","position"]})],j),j})(),He=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],j),j})(),ct=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],j),j})(),lt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["autoHide","color","disabled","menu","mode","type"]})],j),j})(),Gt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["autoHide","menu"]})],j),j})(),fr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],j),j})(),Ri=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],j),j})(),ne=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-row"]],ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({})],j),j})(),je=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionChange"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",selectOnFocus:"selectOnFocus",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","disabled","mode","scrollable","selectOnFocus","swipeGesture","value"]})],j),j})(),M=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["disabled","layout","mode","type","value"]})],j),j})(),x=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",color:"color",compareWith:"compareWith",disabled:"disabled",expandedIcon:"expandedIcon",fill:"fill",interface:"interface",interfaceOptions:"interfaceOptions",justify:"justify",label:"label",labelPlacement:"labelPlacement",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",shape:"shape",toggleIcon:"toggleIcon",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["cancelText","color","compareWith","disabled","expandedIcon","fill","interface","interfaceOptions","justify","label","labelPlacement","mode","multiple","name","okText","placeholder","selectedText","shape","toggleIcon","value"],methods:["open"]})],j),j})(),te=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["disabled","value"]})],j),j})(),Ct=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["contentId","disabled","when"]})],j),j})(),Un=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",shape:"shape",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","maxlength","minlength","mode","name","placeholder","readonly","required","rows","shape","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],j),j})(),On=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","size"]})],j),j})(),zr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","mode"]})],j),j})(),Tr=(()=>{var w;class j extends Oe.Rg{constructor(P,Ie,ot,sr,ni,z,me,Ne){super(P,Ie,ot,sr,ni,z,me,Ne),(0,h.A)(this,"parentOutlet",void 0),(0,h.A)(this,"outletContent",void 0),this.parentOutlet=Ne}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)(c.kS0("name"),c.kS0("tabs"),c.rXU(oe.aZ),c.rXU(c.aKT),c.rXU(Xe.Ix),c.rXU(c.SKi),c.rXU(Xe.nX),c.rXU(w,12))}),(0,h.A)(j,"\u0275cmp",c.VBU({type:w,selectors:[["ion-router-outlet"]],viewQuery:function(P,Ie){if(1&P&&c.GBs(rt,7,c.c1b),2&P){let ot;c.mGM(ot=c.lsd())&&(Ie.outletContent=ot.first)}},features:[c.Vt3],ngContentSelectors:xe,decls:3,vars:0,consts:[["outletContent",""]],template:function(P,Ie){1&P&&(c.NAR(),c.qex(0,null,0),c.SdG(2),c.bVm())},encapsulation:2})),j})(),li=(()=>{var w;class j extends Oe.CE{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ie){return(re||(re=c.xGo(w)))(Ie||w)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["","routerLink","",5,"a",5,"area"]],features:[c.Vt3]})),j})(),ei=(()=>{var w;class j extends Oe.pF{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ie){return(re||(re=c.xGo(w)))(Ie||w)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[c.Vt3]})),j})(),Lr=(()=>{var w;class j extends Oe.Sb{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ie){return(re||(re=c.xGo(w)))(Ie||w)}})()),(0,h.A)(j,"\u0275cmp",c.VBU({type:w,selectors:[["ion-modal"]],features:[c.Vt3],decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(P,Ie){1&P&&c.DNE(0,tt,2,1,"div",0),2&P&&c.Y8G("ngIf",Ie.isCmpOpen||Ie.keepContentsMounted)},dependencies:[oe.bT,oe.T3],encapsulation:2,changeDetection:0})),j})();const Wn={provide:Z.cz,useExisting:(0,c.Rfq)(()=>Hn),multi:!0};let Hn=(()=>{var w;class j extends Z.zX{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ie){return(re||(re=c.xGo(w)))(Ie||w)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,Ie){2&P&&c.BMQ("max",Ie._enabled?Ie.max:null)},features:[c.Jv_([Wn]),c.Vt3]})),j})();const ao={provide:Z.cz,useExisting:(0,c.Rfq)(()=>ui),multi:!0};let ui=(()=>{var w;class j extends Z.VZ{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ie){return(re||(re=c.xGo(w)))(Ie||w)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,Ie){2&P&&c.BMQ("min",Ie._enabled?Ie.min:null)},features:[c.Jv_([ao]),c.Vt3]})),j})(),Ci=(()=>{var w;class j extends Oe.Kb{constructor(){super(St.a)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),j})(),bt=(()=>{var w;class j extends Oe.Kb{constructor(){super(St.l)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),j})(),he=(()=>{var w;class j extends Oe._t{constructor(){super(Tt.m)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),j})(),le=(()=>{var w;class j extends Oe.Kb{constructor(){super(St.m),(0,h.A)(this,"angularDelegate",(0,c.WQX)(Oe.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(P){return super.create({...P,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac})),j})();class $e extends Oe.Kb{constructor(){super(St.c),(0,h.A)(this,"angularDelegate",(0,c.WQX)(Oe.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(j){return super.create({...j,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const st=(w,j,re)=>()=>{const P=j.defaultView;if(P&&typeof window<"u"){(0,ht.s)({...w,_zoneGate:ot=>re.run(ot)});const Ie="__zone_symbol__addEventListener"in j.body?"__zone_symbol__addEventListener":"addEventListener";return function Ye(){var w=[];if(typeof window<"u"){var j=window;(!j.customElements||j.Element&&(!j.Element.prototype.closest||!j.Element.prototype.matches||!j.Element.prototype.remove||!j.Element.prototype.getRootNode))&&w.push(D.e(7278).then(D.t.bind(D,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||j.NodeList&&!j.NodeList.prototype.forEach||!j.fetch||!function(){try{var P=new URL("b","http://a");return P.pathname="c%20d","http://a/c%20d"===P.href&&P.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&w.push(D.e(9329).then(D.t.bind(D,7783,23)))}return Promise.all(w)}().then(()=>Fe(P,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Oe.er,jmp:ot=>re.runOutsideAngular(ot),ael(ot,sr,ni,z){ot[Ie](sr,ni,z)},rel(ot,sr,ni,z){ot.removeEventListener(sr,ni,z)}}))}};let Fn=(()=>{var w;class j{static forRoot(P={}){return{ngModule:j,providers:[{provide:Oe.sR,useValue:P},{provide:c.hnV,useFactory:st,multi:!0,deps:[Oe.sR,oe.qQ,c.SKi]},Oe.Yq,(0,Oe.YV)()]}}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275mod",c.$C({type:w})),(0,h.A)(j,"\u0275inj",c.G2t({providers:[le,$e],imports:[oe.MD]})),j})()},2214:(Tn,gt,D)=>{"use strict";D.d(gt,{Dk:()=>h.Dk,KO:()=>h.KO,Sx:()=>h.Sx,Wp:()=>h.Wp});var h=D(7852);(0,h.KO)("firebase","10.12.2","app")},2820:(Tn,gt,D)=>{"use strict";D.d(gt,{$P:()=>St,sN:()=>Et,eS:()=>yt});var h=D(467),c=D(4438),Z=D(2771),Oe=D(8359),U=D(1413),ue=D(3236),oe=D(1985),Xe=D(9974),Je=D(4360),Se=D(8750),Qe=D(1584);var qe=D(5558);class ht{constructor(){this.subject=new Z.m(1),this.subscriptions=new Oe.yU}doFilter(Me){this.subject.next(Me)}dispose(){this.subscriptions.unsubscribe()}notEmpty(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{if(ge[Me]){const Ue=ge[Me].currentValue;null!=Ue&&Ye(Ue)}}))}has(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{ge[Me]&&Ye(ge[Me].currentValue)}))}notFirst(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{ge[Me]&&!ge[Me].isFirstChange()&&Ye(ge[Me].currentValue)}))}notFirstAndEmpty(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{if(ge[Me]&&!ge[Me].isFirstChange()){const Ue=ge[Me].currentValue;null!=Ue&&Ye(Ue)}}))}}const Tt=new c.nKC("NGX_ECHARTS_CONFIG");let St=(()=>{var mt;class Me{constructor(ge,Ue,Fe){this.el=Ue,this.ngZone=Fe,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new c.bkB,this.optionsError=new c.bkB,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Z.m(1),this.resize$=new U.B,this.changeFilter=new ht,this.resizeObFired=!1,this.echarts=ge.echarts,this.theme=ge.theme||null}ngOnChanges(ge){this.changeFilter.doFilter(ge)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function Ze(mt,Me=ue.E,Ye){const ge=(0,Qe.O)(mt,Me);return function De(mt,Me){return(0,Xe.N)((Ye,ge)=>{const{leading:Ue=!0,trailing:Fe=!1}=null!=Me?Me:{};let xe=!1,rt=null,Rt=null,vn=!1;const Nt=()=>{null==Rt||Rt.unsubscribe(),Rt=null,Fe&&(dt(),vn&&ge.complete())},tt=()=>{Rt=null,vn&&ge.complete()},on=we=>Rt=(0,Se.Tg)(mt(we)).subscribe((0,Je._)(ge,Nt,tt)),dt=()=>{if(xe){xe=!1;const we=rt;rt=null,ge.next(we),!vn&&on(we)}};Ye.subscribe((0,Je._)(ge,we=>{xe=!0,rt=we,(!Rt||Rt.closed)&&(Ue?dt():on(we))},()=>{vn=!0,(!(Fe&&xe&&Rt)||Rt.closed)&&ge.complete()}))})}(()=>ge,Ye)}(100,ue.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(ge=>{for(const Ue of ge)Ue.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",ge=>this.onOptionsChange(ge)),this.changeFilter.notFirstAndEmpty("merge",ge=>this.setOption(ge)),this.changeFilter.has("loading",ge=>this.toggleLoading(!!ge)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(ge){this.chart?ge?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(Ue=>ge?Ue.showLoading(this.loadingType,this.loadingOpts):Ue.hideLoading())}setOption(ge,Ue){if(this.chart)try{this.chart.setOption(ge,Ue)}catch(Fe){console.error(Fe),this.optionsError.emit(Fe)}}refreshChart(){var ge=this;return(0,h.A)(function*(){ge.dispose(),yield ge.initChart()})()}createChart(){const ge=this.el.nativeElement;if(window&&window.getComputedStyle){const Ue=window.getComputedStyle(ge,null).getPropertyValue("height");(!Ue||"0px"===Ue)&&(!ge.style.height||"0px"===ge.style.height)&&(ge.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:Fe})=>Fe(ge,this.theme,this.initOpts)))}initChart(){var ge=this;return(0,h.A)(function*(){yield ge.onOptionsChange(ge.options),ge.merge&&ge.chart&&ge.setOption(ge.merge)})()}onOptionsChange(ge){var Ue=this;return(0,h.A)(function*(){ge&&(Ue.chart||(Ue.chart=yield Ue.createChart(),Ue.chart$.next(Ue.chart),Ue.chartInit.emit(Ue.chart)),Ue.setOption(Ue.options,!0))})()}createLazyEvent(ge){return this.chartInit.pipe((0,qe.n)(Ue=>new oe.c(Fe=>(Ue.on(ge,xe=>this.ngZone.run(()=>Fe.next(xe))),()=>{this.chart&&(this.chart.isDisposed()||Ue.off(ge))}))))}}return(mt=Me).\u0275fac=function(ge){return new(ge||mt)(c.rXU(Tt),c.rXU(c.aKT),c.rXU(c.SKi))},mt.\u0275dir=c.FsC({type:mt,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[c.OA$]}),Me})();const yt=(mt={})=>({provide:Tt,useFactory:()=>({...mt,echarts:()=>D.e(9697).then(D.bind(D,9697))})}),_t=mt=>({provide:Tt,useValue:mt});let Et=(()=>{var mt;class Me{static forRoot(ge){return{ngModule:Me,providers:[_t(ge)]}}static forChild(){return{ngModule:Me}}}return(mt=Me).\u0275fac=function(ge){return new(ge||mt)},mt.\u0275mod=c.$C({type:mt}),mt.\u0275inj=c.G2t({}),Me})()},7616:(Tn,gt,D)=>{"use strict";D.d(gt,{E:()=>Me,n:()=>Ye});var h=D(4438),c=D(177);const Z=["flamegraph-node",""];function Oe(ge,Ue){if(1&ge){const Fe=h.RV6();h.j41(0,"div",2)(1,"div",3),h.EFF(2),h.k0s(),h.j41(3,"div",2),h.qSk(),h.j41(4,"svg",4)(5,"g",5),h.bIt("click",function(){const rt=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.frameClick.emit(rt.original))})("mouseOverZoneless",function(){const rt=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.frameMouseEnter.emit(rt.original))})("mouseLeaveZoneless",function(){const rt=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.frameMouseLeave.emit(rt.original))})("zoom",function(){const rt=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.zoom.emit(rt))}),h.k0s()()()()}if(2&ge){const Fe=Ue.$implicit,xe=h.XpG();h.xc7("position","absolute")("transform","translate("+xe.getLeft(Fe)+"px,"+xe.getTop(Fe)+"px)")("height",xe.levelHeight,"px"),h.AVh("hide-bar",!(void 0===xe.minimumBarSize||xe.getWidth(Fe)>xe.minimumBarSize)),h.R7$(),h.xc7("width",xe.getWidth(Fe),"px"),h.R7$(),h.SpI(" ",Fe.label," "),h.R7$(),h.xc7("transform","scaleX("+xe.getWidth(Fe)/xe.width+")")("height",xe.levelHeight,"px"),h.R7$(2),h.Y8G("height",xe.levelHeight)("navigable",Fe.navigable)("color",Fe.color)}}function U(ge,Ue){if(1&ge){const Fe=h.RV6();h.j41(0,"ngx-flamegraph-graph",1),h.bIt("frameClick",function(rt){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.frameClick.emit(rt))})("frameMouseEnter",function(rt){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.onFrameMouseEnter(rt))})("frameMouseLeave",function(rt){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.onFrameMouseLeave(rt))})("zoom",function(rt){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.onZoom(rt))}),h.k0s()}if(2&ge){const Fe=h.XpG();h.xc7("height",Fe.depth*Fe.levelHeight,"px")("width",Fe.width,"px"),h.Y8G("layout",Fe.siblingLayout)("data",Fe.entries)("depth",Fe.depth)("levelHeight",Fe.levelHeight)("width",Fe.width)("minimumBarSize",Fe.minimumBarSize)}}const ue=ge=>ge.reduce((Ue,Fe)=>Math.max(Ue,Fe.value,ue(Fe.children||[])),-1/0),oe=([ge,Ue],Fe)=>ge+(Ue-ge)*Fe,Xe=(ge,Ue,Fe,xe,rt=null,Rt=0,vn=1,Nt=0)=>{const tt=[];let on=0;ge.forEach(we=>{on+=we.value});const dt=[];return ge.forEach(we=>{var H,X,fe;let se=vn/ge.length;"relative"===Ue&&(se=we.value/on*vn||0);const ve=Math.min(we.value/Fe,1),Le=we.color||`hsl(${null!==(H=oe(xe.hue,ve))&&void 0!==H?H:0}, ${null!==(X=oe(xe.saturation,ve))&&void 0!==X?X:80}%, ${null!==(fe=oe(xe.lightness,ve))&&void 0!==fe?fe:0}%)`,Wt={label:we.label,value:we.value,siblings:dt,color:Le,widthRatio:se,originalWidthRatio:se,originalLeftRatio:Rt,leftRatio:Rt,navigable:!1,rowNumber:Nt,original:we,children:[],parent:rt};rt&&rt.children.push(Wt);const dn=Xe(we.children||[],Ue,Fe,xe,Wt,Rt,se,Nt+1);dt.push(Wt),tt.push(Wt,...dn),Rt+=se}),tt},Je=ge=>{if(!ge||!ge.length)return 0;let Ue=0;for(const Fe of ge)Ue=Math.max(1+Je(Fe.children),Ue);return Ue},Qe=(ge,Ue)=>{Ue.widthRatio=0,Ue.leftRatio=ge,Ue.children.forEach(Fe=>Qe(ge,Fe))},Ze=ge=>{const Ue=ge.siblings.indexOf(ge);for(let Fe=0;Fe{let rt=0;ge.forEach(Rt=>{rt+=Rt.value}),ge.forEach(Rt=>{let vn=Rt.value/rt*xe;"equal"===Ue&&(vn=xe/ge.length),Rt.widthRatio=vn,Rt.leftRatio=Fe,ht(Rt.children,Ue,Fe,vn),Fe+=vn})},Tt=ge=>{ge.navigable=!1,ge.leftRatio=ge.originalLeftRatio,ge.widthRatio=ge.originalWidthRatio,ge.children.forEach(Tt)},yt={hue:[50,0],saturation:[80,80],lightness:[55,60]};let _t=(()=>{class ge{constructor(Fe,xe,rt){this._ngZone=Fe,this._element=xe,this._renderer=rt,this.navigable=!1,this.zoom=new h.bkB,this.mouseOverZoneless=new h.bkB,this.mouseLeaveZoneless=new h.bkB}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this.mouseOverTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseover",Fe=>this.mouseOverZoneless.emit(Fe)),this.mouseLeaveTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseleave",Fe=>this.mouseLeaveZoneless.emit(Fe))})}ngOnDestroy(){this.mouseOverTeardownFn(),this.mouseLeaveTeardownFn()}}return ge.\u0275fac=function(Fe){return new(Fe||ge)(h.rXU(h.SKi),h.rXU(h.aKT),h.rXU(h.sFG))},ge.\u0275cmp=h.VBU({type:ge,selectors:[["","flamegraph-node",""]],inputs:{height:"height",navigable:"navigable",color:"color"},outputs:{zoom:"zoom",mouseOverZoneless:"mouseOverZoneless",mouseLeaveZoneless:"mouseLeaveZoneless"},attrs:Z,decls:1,vars:4,consts:[["stroke","white","stroke-width","1px","pointer-events","all","width","100%","rx","1","ry","1",1,"ngx-fg-rect",3,"dblclick"]],template:function(Fe,xe){1&Fe&&(h.qSk(),h.j41(0,"rect",0),h.bIt("dblclick",function(){return xe.zoom.emit()}),h.k0s()),2&Fe&&(h.AVh("ngx-fg-navigable",xe.navigable),h.BMQ("height",xe.height)("fill",xe.color))},styles:[".ngx-fg-navigable{opacity:.5}\n"],encapsulation:2,changeDetection:0}),ge})(),Et=(()=>{class ge{constructor(){this.selectedData=[],this.entries=[],this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.zoom=new h.bkB}set data(Fe){this.entries=Fe}get height(){return this.levelHeight*this.depth}getTop(Fe){return Fe.rowNumber*this.levelHeight}getLeft(Fe){return Fe.leftRatio*this.width}getWidth(Fe){return Fe.widthRatio*this.width||0}}return ge.\u0275fac=function(Fe){return new(Fe||ge)},ge.\u0275cmp=h.VBU({type:ge,selectors:[["ngx-flamegraph-graph"]],inputs:{width:"width",levelHeight:"levelHeight",layout:"layout",depth:"depth",minimumBarSize:"minimumBarSize",data:"data"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave",zoom:"zoom"},decls:2,vars:3,consts:[[1,"ngx-fg-chart-wrapper"],["class","svg-wrapper",3,"hide-bar","position","transform","height",4,"ngFor","ngForOf"],[1,"svg-wrapper"],[1,"bar-text"],["width","100%","height","100%",1,"ngx-fg-svg"],["flamegraph-node","",1,"ngx-fg-svg-g",3,"click","mouseOverZoneless","mouseLeaveZoneless","zoom","height","navigable","color"]],template:function(Fe,xe){1&Fe&&(h.j41(0,"div",0),h.DNE(1,Oe,6,18,"div",1),h.k0s()),2&Fe&&(h.AVh("ngx-fg-grayscale",xe.selectedData&&xe.selectedData.length),h.R7$(),h.Y8G("ngForOf",xe.entries))},dependencies:[c.Sq,_t],styles:[".ngx-fg-svg{pointer-events:none}ngx-flamegraph-graph{position:absolute;display:block;overflow:hidden}.svg-wrapper{width:100%;transform-origin:left}.svg-wrapper{transition:transform .333s ease-in-out,opacity .333s ease-in-out}.bar-text{position:absolute;z-index:1;overflow:hidden;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff;padding:5px;font-family:sans-serif;font-size:80%}.hide-bar{opacity:0;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),ge})();const mt=typeof ResizeObserver<"u";let Me=(()=>{class ge{constructor(Fe,xe,rt){this._el=Fe,this.cdr=xe,this._ngZone=rt,this.entries=[],this.depth=0,this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.siblingLayout="relative",this.width=null,this.levelHeight=25}set config(Fe){var xe,rt;this._data=Fe.data,this._colors=null!==(xe=Fe.color)&&void 0!==xe?xe:yt,this.minimumBarSize=null!==(rt=Fe.minimumBarSize)&&void 0!==rt?rt:2,this._refresh()}get hostStyles(){return`height: ${this.depth*this.levelHeight}px `}ngOnInit(){var Fe;const xe=null===(Fe=this._el.nativeElement)||void 0===Fe?void 0:Fe.parentElement;xe&&null===this.width&&mt&&(this._resizeObserver=new ResizeObserver(()=>this._ngZone.run(()=>this._onParentResize())),this._resizeObserver.observe(xe))}ngOnDestroy(){var Fe;const xe=null===(Fe=this._el.nativeElement)||void 0===Fe?void 0:Fe.parentElement;xe&&this._resizeObserver&&mt&&this._resizeObserver.unobserve(xe)}_onParentResize(){var Fe;const xe=null===(Fe=this._el.nativeElement)||void 0===Fe?void 0:Fe.parentElement;xe&&(this.width=xe.clientWidth,this.cdr.markForCheck())}_refresh(){const{hue:Fe,saturation:xe,lightness:rt}=this._colors,Rt={hue:Array.isArray(Fe)?Fe:[Fe,Fe],saturation:Array.isArray(xe)?xe:[xe,xe],lightness:Array.isArray(rt)?rt:[rt,rt]};this.entries=Xe(this._data,this.siblingLayout,ue(this._data),Rt),this.depth=Je(this._data)}onZoom(Fe){Fe.navigable&&Tt(Fe),((ge,Ue)=>{let Fe=ge;for(;Fe;)Fe.widthRatio=1,Fe.leftRatio=0,Ze(Fe),Fe=Fe.parent,Fe&&(Fe.navigable=!0);ht(ge.children,Ue)})(Fe,this.siblingLayout)}onFrameMouseEnter(Fe){0!==this.frameMouseEnter.observers.length&&this._ngZone.run(()=>this.frameMouseEnter.emit(Fe))}onFrameMouseLeave(Fe){0!==this.frameMouseLeave.observers.length&&this._ngZone.run(()=>this.frameMouseLeave.emit(Fe))}}return ge.\u0275fac=function(Fe){return new(Fe||ge)(h.rXU(h.aKT),h.rXU(h.gRc),h.rXU(h.SKi))},ge.\u0275cmp=h.VBU({type:ge,selectors:[["ngx-flamegraph"]],hostVars:1,hostBindings:function(Fe,xe){2&Fe&&h.BMQ("style",xe.hostStyles,h.$dS)},inputs:{siblingLayout:"siblingLayout",width:"width",levelHeight:"levelHeight",config:"config"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave"},decls:1,vars:1,consts:[[3,"layout","data","depth","levelHeight","width","height","minimumBarSize","frameClick","frameMouseEnter","frameMouseLeave","zoom",4,"ngIf"],[3,"frameClick","frameMouseEnter","frameMouseLeave","zoom","layout","data","depth","levelHeight","width","minimumBarSize"]],template:function(Fe,xe){1&Fe&&h.DNE(0,U,1,10,"ngx-flamegraph-graph",0),2&Fe&&h.Y8G("ngIf",null!==xe.width)},dependencies:[c.bT,Et],styles:["ngx-flamegraph{display:block}\n"],encapsulation:2,changeDetection:0}),ge})(),Ye=(()=>{class ge{}return ge.\u0275fac=function(Fe){return new(Fe||ge)},ge.\u0275mod=h.$C({type:ge}),ge.\u0275inj=h.G2t({imports:[c.MD]}),ge})()},9549:(Tn,gt,D)=>{"use strict";D.d(gt,{NN:()=>ao,y2:()=>No});var h=D(467),c=D(177),Z=D(4438),Oe=D(1413),U=D(7786),ue=D(7673),oe=D(1584),Xe=D(5558),Je=D(3703),Se=D(3294),De=D(2771),Qe=D(8750),Ze=D(7707),qe=D(9974);function Tt(bt,he,...le){if(!0===he)return void bt();if(!1===he)return;const W=new Ze.Ms({next:()=>{W.unsubscribe(),bt()}});return(0,Qe.Tg)(he(...le)).subscribe(W)}var yt=D(9172),_t=D(6354),Et=D(6977);function ge(bt,he,le){if("function"==typeof bt?bt===he:bt.has(he))return arguments.length<3?he:le;throw new TypeError("Private element is not present on this object")}D(1594);var Ue=D(9842);let xe={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function rt(bt){xe=bt}const Rt=/[&<>"']/,vn=new RegExp(Rt.source,"g"),Nt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,tt=new RegExp(Nt.source,"g"),on={"&":"&","<":"<",">":">",'"':""","'":"'"},dt=bt=>on[bt];function we(bt,he){if(he){if(Rt.test(bt))return bt.replace(vn,dt)}else if(Nt.test(bt))return bt.replace(tt,dt);return bt}const H=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,fe=/(^|[^\[])\^/g;function se(bt,he){let le="string"==typeof bt?bt:bt.source;he=he||"";const W={replace:($e,Ve)=>{let st="string"==typeof Ve?Ve:Ve.source;return st=st.replace(fe,"$1"),le=le.replace($e,st),W},getRegex:()=>new RegExp(le,he)};return W}function ve(bt){try{bt=encodeURI(bt).replace(/%25/g,"%")}catch{return null}return bt}const Le={exec:()=>null};function _e(bt,he){const W=bt.replace(/\|/g,(Ve,st,jt)=>{let In=!1,Fn=st;for(;--Fn>=0&&"\\"===jt[Fn];)In=!In;return In?"|":" |"}).split(/ \|/);let $e=0;if(W[0].trim()||W.shift(),W.length>0&&!W[W.length-1].trim()&&W.pop(),he)if(W.length>he)W.splice(he);else for(;W.length0)return{type:"space",raw:le[0]}}code(he){const le=this.rules.block.code.exec(he);if(le){const W=le[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:le[0],codeBlockStyle:"indented",text:this.options.pedantic?W:Wt(W,"\n")}}}fences(he){const le=this.rules.block.fences.exec(he);if(le){const W=le[0],$e=function rn(bt,he){const le=bt.match(/^(\s+)(?:```)/);if(null===le)return he;const W=le[1];return he.split("\n").map($e=>{const Ve=$e.match(/^\s+/);if(null===Ve)return $e;const[st]=Ve;return st.length>=W.length?$e.slice(W.length):$e}).join("\n")}(W,le[3]||"");return{type:"code",raw:W,lang:le[2]?le[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):le[2],text:$e}}}heading(he){const le=this.rules.block.heading.exec(he);if(le){let W=le[2].trim();if(/#$/.test(W)){const $e=Wt(W,"#");(this.options.pedantic||!$e||/ $/.test($e))&&(W=$e.trim())}return{type:"heading",raw:le[0],depth:le[1].length,text:W,tokens:this.lexer.inline(W)}}}hr(he){const le=this.rules.block.hr.exec(he);if(le)return{type:"hr",raw:le[0]}}blockquote(he){const le=this.rules.block.blockquote.exec(he);if(le){let W=le[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");W=Wt(W.replace(/^ *>[ \t]?/gm,""),"\n");const $e=this.lexer.state.top;this.lexer.state.top=!0;const Ve=this.lexer.blockTokens(W);return this.lexer.state.top=$e,{type:"blockquote",raw:le[0],tokens:Ve,text:W}}}list(he){let le=this.rules.block.list.exec(he);if(le){let W=le[1].trim();const $e=W.length>1,Ve={type:"list",raw:"",ordered:$e,start:$e?+W.slice(0,-1):"",loose:!1,items:[]};W=$e?`\\d{1,9}\\${W.slice(-1)}`:`\\${W}`,this.options.pedantic&&(W=$e?W:"[*+-]");const st=new RegExp(`^( {0,3}${W})((?:[\t ][^\\n]*)?(?:\\n|$))`);let jt="",In="",Fn=!1;for(;he;){let w=!1;if(!(le=st.exec(he))||this.rules.block.hr.test(he))break;jt=le[0],he=he.substring(jt.length);let j=le[2].split("\n",1)[0].replace(/^\t+/,ni=>" ".repeat(3*ni.length)),re=he.split("\n",1)[0],P=0;this.options.pedantic?(P=2,In=j.trimStart()):(P=le[2].search(/[^ ]/),P=P>4?1:P,In=j.slice(P),P+=le[1].length);let Ie=!1;if(!j&&/^ *$/.test(re)&&(jt+=re+"\n",he=he.substring(re.length+1),w=!0),!w){const ni=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),z=new RegExp(`^ {0,${Math.min(3,P-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),me=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:\`\`\`|~~~)`),Ne=new RegExp(`^ {0,${Math.min(3,P-1)}}#`);for(;he;){const et=he.split("\n",1)[0];if(re=et,this.options.pedantic&&(re=re.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),me.test(re)||Ne.test(re)||ni.test(re)||z.test(he))break;if(re.search(/[^ ]/)>=P||!re.trim())In+="\n"+re.slice(P);else{if(Ie||j.search(/[^ ]/)>=4||me.test(j)||Ne.test(j)||z.test(j))break;In+="\n"+re}!Ie&&!re.trim()&&(Ie=!0),jt+=et+"\n",he=he.substring(et.length+1),j=re.slice(P)}}Ve.loose||(Fn?Ve.loose=!0:/\n *\n *$/.test(jt)&&(Fn=!0));let sr,ot=null;this.options.gfm&&(ot=/^\[[ xX]\] /.exec(In),ot&&(sr="[ ] "!==ot[0],In=In.replace(/^\[[ xX]\] +/,""))),Ve.items.push({type:"list_item",raw:jt,task:!!ot,checked:sr,loose:!1,text:In,tokens:[]}),Ve.raw+=jt}Ve.items[Ve.items.length-1].raw=jt.trimEnd(),Ve.items[Ve.items.length-1].text=In.trimEnd(),Ve.raw=Ve.raw.trimEnd();for(let w=0;w"space"===P.type),re=j.length>0&&j.some(P=>/\n.*\n/.test(P.raw));Ve.loose=re}if(Ve.loose)for(let w=0;w$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",Ve=le[3]?le[3].substring(1,le[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):le[3];return{type:"def",tag:W,raw:le[0],href:$e,title:Ve}}}table(he){const le=this.rules.block.table.exec(he);if(!le||!/[:|]/.test(le[2]))return;const W=_e(le[1]),$e=le[2].replace(/^\||\| *$/g,"").split("|"),Ve=le[3]&&le[3].trim()?le[3].replace(/\n[ \t]*$/,"").split("\n"):[],st={type:"table",raw:le[0],header:[],align:[],rows:[]};if(W.length===$e.length){for(const jt of $e)/^ *-+: *$/.test(jt)?st.align.push("right"):/^ *:-+: *$/.test(jt)?st.align.push("center"):/^ *:-+ *$/.test(jt)?st.align.push("left"):st.align.push(null);for(const jt of W)st.header.push({text:jt,tokens:this.lexer.inline(jt)});for(const jt of Ve)st.rows.push(_e(jt,st.header.length).map(In=>({text:In,tokens:this.lexer.inline(In)})));return st}}lheading(he){const le=this.rules.block.lheading.exec(he);if(le)return{type:"heading",raw:le[0],depth:"="===le[2].charAt(0)?1:2,text:le[1],tokens:this.lexer.inline(le[1])}}paragraph(he){const le=this.rules.block.paragraph.exec(he);if(le){const W="\n"===le[1].charAt(le[1].length-1)?le[1].slice(0,-1):le[1];return{type:"paragraph",raw:le[0],text:W,tokens:this.lexer.inline(W)}}}text(he){const le=this.rules.block.text.exec(he);if(le)return{type:"text",raw:le[0],text:le[0],tokens:this.lexer.inline(le[0])}}escape(he){const le=this.rules.inline.escape.exec(he);if(le)return{type:"escape",raw:le[0],text:we(le[1])}}tag(he){const le=this.rules.inline.tag.exec(he);if(le)return!this.lexer.state.inLink&&/^/i.test(le[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(le[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(le[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:le[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:le[0]}}link(he){const le=this.rules.inline.link.exec(he);if(le){const W=le[2].trim();if(!this.options.pedantic&&/^$/.test(W))return;const st=Wt(W.slice(0,-1),"\\");if((W.length-st.length)%2==0)return}else{const st=function dn(bt,he){if(-1===bt.indexOf(he[1]))return-1;let le=0;for(let W=0;W-1){const In=(0===le[0].indexOf("!")?5:4)+le[1].length+st;le[2]=le[2].substring(0,st),le[0]=le[0].substring(0,In).trim(),le[3]=""}}let $e=le[2],Ve="";if(this.options.pedantic){const st=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec($e);st&&($e=st[1],Ve=st[3])}else Ve=le[3]?le[3].slice(1,-1):"";return $e=$e.trim(),/^$/.test(W)?$e.slice(1):$e.slice(1,-1)),Kt(le,{href:$e&&$e.replace(this.rules.inline.anyPunctuation,"$1"),title:Ve&&Ve.replace(this.rules.inline.anyPunctuation,"$1")},le[0],this.lexer)}}reflink(he,le){let W;if((W=this.rules.inline.reflink.exec(he))||(W=this.rules.inline.nolink.exec(he))){const Ve=le[(W[2]||W[1]).replace(/\s+/g," ").toLowerCase()];if(!Ve){const st=W[0].charAt(0);return{type:"text",raw:st,text:st}}return Kt(W,Ve,W[0],this.lexer)}}emStrong(he,le,W=""){let $e=this.rules.inline.emStrongLDelim.exec(he);if(!(!$e||$e[3]&&W.match(/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\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\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\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\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\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\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\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\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\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-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\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\uABF0-\uABF9\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\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10107}-\u{10133}\u{10140}-\u{10178}\u{1018A}\u{1018B}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10858}-\u{10876}\u{10879}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A60}-\u{10A7E}\u{10A80}-\u{10A9F}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11052}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{11136}-\u{1113F}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111D0}-\u{111DA}\u{111DC}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{112F0}-\u{112F9}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{11450}-\u{11459}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116B8}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11730}-\u{1173B}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C50}-\u{11C6C}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11F50}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E96}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1EC71}-\u{1ECAB}\u{1ECAD}-\u{1ECAF}\u{1ECB1}-\u{1ECB4}\u{1ED01}-\u{1ED2D}\u{1ED2F}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10C}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u))&&(!$e[1]&&!$e[2]||!W||this.rules.inline.punctuation.exec(W))){const st=[...$e[0]].length-1;let jt,In,Fn=st,w=0;const j="*"===$e[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(j.lastIndex=0,le=le.slice(-1*he.length+st);null!=($e=j.exec(le));){if(jt=$e[1]||$e[2]||$e[3]||$e[4]||$e[5]||$e[6],!jt)continue;if(In=[...jt].length,$e[3]||$e[4]){Fn+=In;continue}if(($e[5]||$e[6])&&st%3&&!((st+In)%3)){w+=In;continue}if(Fn-=In,Fn>0)continue;In=Math.min(In,In+Fn+w);const re=[...$e[0]][0].length,P=he.slice(0,st+$e.index+re+In);if(Math.min(st,In)%2){const ot=P.slice(1,-1);return{type:"em",raw:P,text:ot,tokens:this.lexer.inlineTokens(ot)}}const Ie=P.slice(2,-2);return{type:"strong",raw:P,text:Ie,tokens:this.lexer.inlineTokens(Ie)}}}}codespan(he){const le=this.rules.inline.code.exec(he);if(le){let W=le[2].replace(/\n/g," ");const $e=/[^ ]/.test(W),Ve=/^ /.test(W)&&/ $/.test(W);return $e&&Ve&&(W=W.substring(1,W.length-1)),W=we(W,!0),{type:"codespan",raw:le[0],text:W}}}br(he){const le=this.rules.inline.br.exec(he);if(le)return{type:"br",raw:le[0]}}del(he){const le=this.rules.inline.del.exec(he);if(le)return{type:"del",raw:le[0],text:le[2],tokens:this.lexer.inlineTokens(le[2])}}autolink(he){const le=this.rules.inline.autolink.exec(he);if(le){let W,$e;return"@"===le[2]?(W=we(le[1]),$e="mailto:"+W):(W=we(le[1]),$e=W),{type:"link",raw:le[0],text:W,href:$e,tokens:[{type:"text",raw:W,text:W}]}}}url(he){let le;if(le=this.rules.inline.url.exec(he)){let Ve,st;if("@"===le[2])Ve=we(le[0]),st="mailto:"+Ve;else{let jt;do{var W,$e;jt=le[0],le[0]=null!==(W=null===($e=this.rules.inline._backpedal.exec(le[0]))||void 0===$e?void 0:$e[0])&&void 0!==W?W:""}while(jt!==le[0]);Ve=we(le[0]),st="www."===le[1]?"http://"+le[0]:le[0]}return{type:"link",raw:le[0],text:Ve,href:st,tokens:[{type:"text",raw:Ve,text:Ve}]}}}inlineText(he){const le=this.rules.inline.text.exec(he);if(le){let W;return W=this.lexer.state.inRawBlock?le[0]:we(le[0]),{type:"text",raw:le[0],text:W}}}}const yr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ir=/(?:[*+-]|\d{1,9}[.)])/,nt=se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ir).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Ot=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,pn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,gn=se(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",pn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Sr=se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ir).getRegex(),Mn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xn=/|$))/,mn=se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",xn).replace("tag",Mn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),en=se(Ot).replace("hr",yr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Mn).getRegex(),Ir={blockquote:se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",en).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:gn,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:yr,html:mn,lheading:nt,list:Sr,newline:/^(?: *(?:\n|$))+/,paragraph:en,table:Le,text:/^[^\n]+/},Nr=se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",yr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Mn).getRegex(),Qn={...Ir,table:Nr,paragraph:se(Ot).replace("hr",yr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Mn).getRegex()},Dr={...Ir,html:se("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",xn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Le,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:se(Ot).replace("hr",yr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",nt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Jn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mr=/^( {2,}|\\)\n(?!\s*$)/,Pr="\\p{P}\\p{S}",cr=se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Pr).getRegex(),ii=se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Pr).getRegex(),Ai=se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Pr).getRegex(),Qr=se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Pr).getRegex(),pe=se(/\\([punct])/,"gu").replace(/punct/g,Pr).getRegex(),it=se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),Mt=se(xn).replace("(?:--\x3e|$)","--\x3e").getRegex(),ut=se("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Mt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ce=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ee=se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ce).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),He=se(/^!?\[(label)\]\[(ref)\]/).replace("label",ce).replace("ref",pn).getRegex(),Lt=se(/^!?\[(ref)\](?:\[\])?/).replace("ref",pn).getRegex(),ct={_backpedal:Le,anyPunctuation:pe,autolink:it,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:mr,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Le,emStrongLDelim:ii,emStrongRDelimAst:Ai,emStrongRDelimUnd:Qr,escape:Jn,link:Ee,nolink:Lt,punctuation:cr,reflink:He,reflinkSearch:se("reflink|nolink(?!\\()","g").replace("reflink",He).replace("nolink",Lt).getRegex(),tag:ut,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\In+" ".repeat(Fn.length));he;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(jt=>!!(W=jt.call({lexer:this},he,le))&&(he=he.substring(W.raw.length),le.push(W),!0)))){if(W=this.tokenizer.space(he)){he=he.substring(W.raw.length),1===W.raw.length&&le.length>0?le[le.length-1].raw+="\n":le.push(W);continue}if(W=this.tokenizer.code(he)){he=he.substring(W.raw.length),$e=le[le.length-1],!$e||"paragraph"!==$e.type&&"text"!==$e.type?le.push(W):($e.raw+="\n"+W.raw,$e.text+="\n"+W.text,this.inlineQueue[this.inlineQueue.length-1].src=$e.text);continue}if(W=this.tokenizer.fences(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.heading(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.hr(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.blockquote(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.list(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.html(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.def(he)){he=he.substring(W.raw.length),$e=le[le.length-1],!$e||"paragraph"!==$e.type&&"text"!==$e.type?this.tokens.links[W.tag]||(this.tokens.links[W.tag]={href:W.href,title:W.title}):($e.raw+="\n"+W.raw,$e.text+="\n"+W.raw,this.inlineQueue[this.inlineQueue.length-1].src=$e.text);continue}if(W=this.tokenizer.table(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.lheading(he)){he=he.substring(W.raw.length),le.push(W);continue}if(Ve=he,this.options.extensions&&this.options.extensions.startBlock){let jt=1/0;const In=he.slice(1);let Fn;this.options.extensions.startBlock.forEach(w=>{Fn=w.call({lexer:this},In),"number"==typeof Fn&&Fn>=0&&(jt=Math.min(jt,Fn))}),jt<1/0&&jt>=0&&(Ve=he.substring(0,jt+1))}if(this.state.top&&(W=this.tokenizer.paragraph(Ve))){$e=le[le.length-1],st&&"paragraph"===$e.type?($e.raw+="\n"+W.raw,$e.text+="\n"+W.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=$e.text):le.push(W),st=Ve.length!==he.length,he=he.substring(W.raw.length);continue}if(W=this.tokenizer.text(he)){he=he.substring(W.raw.length),$e=le[le.length-1],$e&&"text"===$e.type?($e.raw+="\n"+W.raw,$e.text+="\n"+W.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=$e.text):le.push(W);continue}if(he){const jt="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(jt);break}throw new Error(jt)}}return this.state.top=!0,le}inline(he,le=[]){return this.inlineQueue.push({src:he,tokens:le}),le}inlineTokens(he,le=[]){let W,$e,Ve,jt,In,Fn,st=he;if(this.tokens.links){const w=Object.keys(this.tokens.links);if(w.length>0)for(;null!=(jt=this.tokenizer.rules.inline.reflinkSearch.exec(st));)w.includes(jt[0].slice(jt[0].lastIndexOf("[")+1,-1))&&(st=st.slice(0,jt.index)+"["+"a".repeat(jt[0].length-2)+"]"+st.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(jt=this.tokenizer.rules.inline.blockSkip.exec(st));)st=st.slice(0,jt.index)+"["+"a".repeat(jt[0].length-2)+"]"+st.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(jt=this.tokenizer.rules.inline.anyPunctuation.exec(st));)st=st.slice(0,jt.index)+"++"+st.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;he;)if(In||(Fn=""),In=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(w=>!!(W=w.call({lexer:this},he,le))&&(he=he.substring(W.raw.length),le.push(W),!0)))){if(W=this.tokenizer.escape(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.tag(he)){he=he.substring(W.raw.length),$e=le[le.length-1],$e&&"text"===W.type&&"text"===$e.type?($e.raw+=W.raw,$e.text+=W.text):le.push(W);continue}if(W=this.tokenizer.link(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.reflink(he,this.tokens.links)){he=he.substring(W.raw.length),$e=le[le.length-1],$e&&"text"===W.type&&"text"===$e.type?($e.raw+=W.raw,$e.text+=W.text):le.push(W);continue}if(W=this.tokenizer.emStrong(he,st,Fn)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.codespan(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.br(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.del(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.autolink(he)){he=he.substring(W.raw.length),le.push(W);continue}if(!this.state.inLink&&(W=this.tokenizer.url(he))){he=he.substring(W.raw.length),le.push(W);continue}if(Ve=he,this.options.extensions&&this.options.extensions.startInline){let w=1/0;const j=he.slice(1);let re;this.options.extensions.startInline.forEach(P=>{re=P.call({lexer:this},j),"number"==typeof re&&re>=0&&(w=Math.min(w,re))}),w<1/0&&w>=0&&(Ve=he.substring(0,w+1))}if(W=this.tokenizer.inlineText(Ve)){he=he.substring(W.raw.length),"_"!==W.raw.slice(-1)&&(Fn=W.raw.slice(-1)),In=!0,$e=le[le.length-1],$e&&"text"===$e.type?($e.raw+=W.raw,$e.text+=W.text):le.push(W);continue}if(he){const w="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(w);break}throw new Error(w)}}return le}}class Cn{constructor(he){(0,Ue.A)(this,"options",void 0),this.options=he||xe}code(he,le,W){var $e;const Ve=null===($e=(le||"").match(/^\S*/))||void 0===$e?void 0:$e[0];return he=he.replace(/\n$/,"")+"\n",Ve?'
'+(W?he:we(he,!0))+"
\n":"
"+(W?he:we(he,!0))+"
\n"}blockquote(he){return`
\n${he}
\n`}html(he,le){return he}heading(he,le,W){return`${he}\n`}hr(){return"
\n"}list(he,le,W){const $e=le?"ol":"ul";return"<"+$e+(le&&1!==W?' start="'+W+'"':"")+">\n"+he+"\n"}listitem(he,le,W){return`
  • ${he}
  • \n`}checkbox(he){return"'}paragraph(he){return`

    ${he}

    \n`}table(he,le){return le&&(le=`${le}`),"\n\n"+he+"\n"+le+"
    \n"}tablerow(he){return`\n${he}\n`}tablecell(he,le){const W=le.header?"th":"td";return(le.align?`<${W} align="${le.align}">`:`<${W}>`)+he+`\n`}strong(he){return`${he}`}em(he){return`${he}`}codespan(he){return`${he}`}br(){return"
    "}del(he){return`${he}`}link(he,le,W){const $e=ve(he);if(null===$e)return W;let Ve='
    ",Ve}image(he,le,W){const $e=ve(he);if(null===$e)return W;let Ve=`${W}"colon"===(le=le.toLowerCase())?":":"#"===le.charAt(0)?"x"===le.charAt(1)?String.fromCharCode(parseInt(le.substring(2),16)):String.fromCharCode(+le.substring(1)):""));continue}case"code":W+=this.renderer.code(Ve.text,Ve.lang,!!Ve.escaped);continue;case"table":{const st=Ve;let jt="",In="";for(let w=0;w0&&"paragraph"===re.tokens[0].type?(re.tokens[0].text=sr+" "+re.tokens[0].text,re.tokens[0].tokens&&re.tokens[0].tokens.length>0&&"text"===re.tokens[0].tokens[0].type&&(re.tokens[0].tokens[0].text=sr+" "+re.tokens[0].tokens[0].text)):re.tokens.unshift({type:"text",text:sr+" "}):ot+=sr+" "}ot+=this.parse(re.tokens,Fn),w+=this.renderer.listitem(ot,Ie,!!P)}W+=this.renderer.list(w,jt,In);continue}case"html":W+=this.renderer.html(Ve.text,Ve.block);continue;case"paragraph":W+=this.renderer.paragraph(this.parseInline(Ve.tokens));continue;case"text":{let st=Ve,jt=st.tokens?this.parseInline(st.tokens):st.text;for(;$e+1{const $e={...W},Ve={...this.defaults,...$e};!0===this.defaults.async&&!1===$e.async&&(Ve.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),Ve.async=!0);const st=ge($r,this,Ri).call(this,!!Ve.silent,!!Ve.async);if(typeof le>"u"||null===le)return st(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof le)return st(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(le)+", string expected"));if(Ve.hooks&&(Ve.hooks.options=Ve),Ve.async)return Promise.resolve(Ve.hooks?Ve.hooks.preprocess(le):le).then(jt=>bt(jt,Ve)).then(jt=>Ve.hooks?Ve.hooks.processAllTokens(jt):jt).then(jt=>Ve.walkTokens?Promise.all(this.walkTokens(jt,Ve.walkTokens)).then(()=>jt):jt).then(jt=>he(jt,Ve)).then(jt=>Ve.hooks?Ve.hooks.postprocess(jt):jt).catch(st);try{Ve.hooks&&(le=Ve.hooks.preprocess(le));let jt=bt(le,Ve);Ve.hooks&&(jt=Ve.hooks.processAllTokens(jt)),Ve.walkTokens&&this.walkTokens(jt,Ve.walkTokens);let In=he(jt,Ve);return Ve.hooks&&(In=Ve.hooks.postprocess(In)),In}catch(jt){return st(jt)}}}function Ri(bt,he){return le=>{if(le.message+="\nPlease report this to https://github.com/markedjs/marked.",bt){const W="

    An error occurred:

    "+we(le.message+"",!0)+"
    ";return he?Promise.resolve(W):W}if(he)return Promise.reject(le);throw le}}const gi=new class Zr{constructor(...he){(function Ye(bt,he){(function Me(bt,he){if(he.has(bt))throw new TypeError("Cannot initialize the same private elements twice on an object")})(bt,he),he.add(bt)})(this,$r),(0,Ue.A)(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),(0,Ue.A)(this,"options",this.setOptions),(0,Ue.A)(this,"parse",ge($r,this,fr).call(this,hn.lex,Ar.parse)),(0,Ue.A)(this,"parseInline",ge($r,this,fr).call(this,hn.lexInline,Ar.parseInline)),(0,Ue.A)(this,"Parser",Ar),(0,Ue.A)(this,"Renderer",Cn),(0,Ue.A)(this,"TextRenderer",tr),(0,Ue.A)(this,"Lexer",hn),(0,Ue.A)(this,"Tokenizer",Ln),(0,Ue.A)(this,"Hooks",dr),this.use(...he)}walkTokens(he,le){let W=[];for(const Ve of he)switch(W=W.concat(le.call(this,Ve)),Ve.type){case"table":{const st=Ve;for(const jt of st.header)W=W.concat(this.walkTokens(jt.tokens,le));for(const jt of st.rows)for(const In of jt)W=W.concat(this.walkTokens(In.tokens,le));break}case"list":W=W.concat(this.walkTokens(Ve.items,le));break;default:{var $e;const st=Ve;null!==($e=this.defaults.extensions)&&void 0!==$e&&null!==($e=$e.childTokens)&&void 0!==$e&&$e[st.type]?this.defaults.extensions.childTokens[st.type].forEach(jt=>{const In=st[jt].flat(1/0);W=W.concat(this.walkTokens(In,le))}):st.tokens&&(W=W.concat(this.walkTokens(st.tokens,le)))}}return W}use(...he){const le=this.defaults.extensions||{renderers:{},childTokens:{}};return he.forEach(W=>{const $e={...W};if($e.async=this.defaults.async||$e.async||!1,W.extensions&&(W.extensions.forEach(Ve=>{if(!Ve.name)throw new Error("extension name required");if("renderer"in Ve){const st=le.renderers[Ve.name];le.renderers[Ve.name]=st?function(...jt){let In=Ve.renderer.apply(this,jt);return!1===In&&(In=st.apply(this,jt)),In}:Ve.renderer}if("tokenizer"in Ve){if(!Ve.level||"block"!==Ve.level&&"inline"!==Ve.level)throw new Error("extension level must be 'block' or 'inline'");const st=le[Ve.level];st?st.unshift(Ve.tokenizer):le[Ve.level]=[Ve.tokenizer],Ve.start&&("block"===Ve.level?le.startBlock?le.startBlock.push(Ve.start):le.startBlock=[Ve.start]:"inline"===Ve.level&&(le.startInline?le.startInline.push(Ve.start):le.startInline=[Ve.start]))}"childTokens"in Ve&&Ve.childTokens&&(le.childTokens[Ve.name]=Ve.childTokens)}),$e.extensions=le),W.renderer){const Ve=this.defaults.renderer||new Cn(this.defaults);for(const st in W.renderer){if(!(st in Ve))throw new Error(`renderer '${st}' does not exist`);if("options"===st)continue;const In=W.renderer[st],Fn=Ve[st];Ve[st]=(...w)=>{let j=In.apply(Ve,w);return!1===j&&(j=Fn.apply(Ve,w)),j||""}}$e.renderer=Ve}if(W.tokenizer){const Ve=this.defaults.tokenizer||new Ln(this.defaults);for(const st in W.tokenizer){if(!(st in Ve))throw new Error(`tokenizer '${st}' does not exist`);if(["options","rules","lexer"].includes(st))continue;const In=W.tokenizer[st],Fn=Ve[st];Ve[st]=(...w)=>{let j=In.apply(Ve,w);return!1===j&&(j=Fn.apply(Ve,w)),j}}$e.tokenizer=Ve}if(W.hooks){const Ve=this.defaults.hooks||new dr;for(const st in W.hooks){if(!(st in Ve))throw new Error(`hook '${st}' does not exist`);if("options"===st)continue;const In=W.hooks[st],Fn=Ve[st];Ve[st]=dr.passThroughHooks.has(st)?w=>{if(this.defaults.async)return Promise.resolve(In.call(Ve,w)).then(re=>Fn.call(Ve,re));const j=In.call(Ve,w);return Fn.call(Ve,j)}:(...w)=>{let j=In.apply(Ve,w);return!1===j&&(j=Fn.apply(Ve,w)),j}}$e.hooks=Ve}if(W.walkTokens){const Ve=this.defaults.walkTokens,st=W.walkTokens;$e.walkTokens=function(jt){let In=[];return In.push(st.call(this,jt)),Ve&&(In=In.concat(Ve.call(this,jt))),In}}this.defaults={...this.defaults,...$e}}),this}setOptions(he){return this.defaults={...this.defaults,...he},this}lexer(he,le){return hn.lex(he,null!=le?le:this.defaults)}parser(he,le){return Ar.parse(he,null!=le?le:this.defaults)}};function pr(bt,he){return gi.parse(bt,he)}pr.options=pr.setOptions=function(bt){return gi.setOptions(bt),rt(pr.defaults=gi.defaults),pr},pr.getDefaults=function Fe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},pr.defaults=xe,pr.use=function(...bt){return gi.use(...bt),rt(pr.defaults=gi.defaults),pr},pr.walkTokens=function(bt,he){return gi.walkTokens(bt,he)},pr.parseInline=gi.parseInline,pr.Parser=Ar,pr.parser=Ar.parse,pr.Renderer=Cn,pr.TextRenderer=tr,pr.Lexer=hn,pr.lexer=hn.lex,pr.Tokenizer=Ln,pr.Hooks=dr,pr.parse=pr;var Ge=D(1626),Ct=D(345);const Jt=["*"];let Un=(()=>{var bt;class he{constructor(){this._buttonClick$=new Oe.B,this.copied$=this._buttonClick$.pipe((0,Xe.n)(()=>(0,U.h)((0,ue.of)(!0),(0,oe.O)(3e3).pipe((0,Je.u)(!1)))),(0,Se.F)(),function St(bt,he,le){let W,$e=!1;return bt&&"object"==typeof bt?({bufferSize:W=1/0,windowTime:he=1/0,refCount:$e=!1,scheduler:le}=bt):W=null!=bt?bt:1/0,function ht(bt={}){const{connector:he=(()=>new Oe.B),resetOnError:le=!0,resetOnComplete:W=!0,resetOnRefCountZero:$e=!0}=bt;return Ve=>{let st,jt,In,Fn=0,w=!1,j=!1;const re=()=>{null==jt||jt.unsubscribe(),jt=void 0},P=()=>{re(),st=In=void 0,w=j=!1},Ie=()=>{const ot=st;P(),null==ot||ot.unsubscribe()};return(0,qe.N)((ot,sr)=>{Fn++,!j&&!w&&re();const ni=In=null!=In?In:he();sr.add(()=>{Fn--,0===Fn&&!j&&!w&&(jt=Tt(Ie,$e))}),ni.subscribe(sr),!st&&Fn>0&&(st=new Ze.Ms({next:z=>ni.next(z),error:z=>{j=!0,re(),jt=Tt(P,le,z),ni.error(z)},complete:()=>{w=!0,re(),jt=Tt(P,W),ni.complete()}}),(0,Qe.Tg)(ot).subscribe(st))})(Ve)}}({connector:()=>new De.m(W,he,le),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:$e})}(1)),this.copiedText$=this.copied$.pipe((0,yt.Z)(!1),(0,_t.T)(W=>W?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return(bt=he).\u0275fac=function(W){return new(W||bt)},bt.\u0275cmp=Z.VBU({type:bt,selectors:[["markdown-clipboard"]],standalone:!0,features:[Z.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(W,$e){1&W&&(Z.j41(0,"button",0),Z.nI1(1,"async"),Z.bIt("click",function(){return $e.onCopyToClipboardClick()}),Z.EFF(2),Z.nI1(3,"async"),Z.k0s()),2&W&&(Z.AVh("copied",Z.bMT(1,3,$e.copied$)),Z.R7$(2),Z.JRh(Z.bMT(3,5,$e.copiedText$)))},dependencies:[c.Jj],encapsulation:2,changeDetection:0}),he})();const xr=new Z.nKC("CLIPBOARD_OPTIONS");var Or=function(bt){return bt.CommandLine="command-line",bt.LineHighlight="line-highlight",bt.LineNumbers="line-numbers",bt}(Or||{});const zr=new Z.nKC("MARKED_EXTENSIONS"),Tr=new Z.nKC("MARKED_OPTIONS"),mi=new Z.nKC("SECURITY_CONTEXT");let Hn=(()=>{var bt;class he{get options(){return this._options}set options(W){this._options={...this.DEFAULT_MARKED_OPTIONS,...W}}get renderer(){return this.options.renderer}set renderer(W){this.options.renderer=W}constructor(W,$e,Ve,st,jt,In,Fn){this.clipboardOptions=W,this.extensions=$e,this.platform=st,this.securityContext=jt,this.http=In,this.sanitizer=Fn,this.DEFAULT_MARKED_OPTIONS={renderer:new Cn},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new Oe.B,this.reload$=this._reload$.asObservable(),this.options=Ve}parse(W,$e=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:Ve,inline:st,emoji:jt,mermaid:In,disableSanitizer:Fn}=$e,w={...this.options,...$e.markedOptions},j=w.renderer||this.renderer||new Cn;this.extensions&&(this.renderer=this.extendsRendererForExtensions(j)),In&&(this.renderer=this.extendsRendererForMermaid(j));const re=this.trimIndentation(W),P=Ve?this.decodeHtml(re):re,Ie=jt?this.parseEmoji(P):P,ot=this.parseMarked(Ie,w,st);return(Fn?ot:this.sanitizer.sanitize(this.securityContext,ot))||""}render(W,$e=this.DEFAULT_RENDER_OPTIONS,Ve){const{clipboard:st,clipboardOptions:jt,katex:In,katexOptions:Fn,mermaid:w,mermaidOptions:j}=$e;In&&this.renderKatex(W,{...this.DEFAULT_KATEX_OPTIONS,...Fn}),w&&this.renderMermaid(W,{...this.DEFAULT_MERMAID_OPTIONS,...j}),st&&this.renderClipboard(W,Ve,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...jt}),this.highlight(W)}reload(){this._reload$.next()}getSource(W){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(W,{responseType:"text"}).pipe((0,_t.T)($e=>this.handleExtension(W,$e)))}highlight(W){if(!(0,c.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;W||(W=document);const $e=W.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call($e,Ve=>Ve.classList.add("language-none")),Prism.highlightAllUnder(W)}decodeHtml(W){if(!(0,c.UE)(this.platform))return W;const $e=document.createElement("textarea");return $e.innerHTML=W,$e.value}extendsRendererForExtensions(W){var $e;const Ve=W;return!0===Ve.\u0275NgxMarkdownRendererExtendedForExtensions||((null===($e=this.extensions)||void 0===$e?void 0:$e.length)>0&&pr.use(...this.extensions),Ve.\u0275NgxMarkdownRendererExtendedForExtensions=!0),W}extendsRendererForMermaid(W){const $e=W;if(!0===$e.\u0275NgxMarkdownRendererExtendedForMermaid)return W;const Ve=W.code;return W.code=function(st,jt,In){return"mermaid"===jt?`
    ${st}
    `:Ve.call(this,st,jt,In)},$e.\u0275NgxMarkdownRendererExtendedForMermaid=!0,W}handleExtension(W,$e){const Ve=W.lastIndexOf("://"),st=Ve>-1?W.substring(Ve+4):W,jt=st.lastIndexOf("/"),In=jt>-1?st.substring(jt+1).split("?")[0]:"",Fn=In.lastIndexOf("."),w=Fn>-1?In.substring(Fn+1):"";return w&&"md"!==w?"```"+w+"\n"+$e+"\n```":$e}parseMarked(W,$e,Ve=!1){if($e.renderer){const st={...$e.renderer};delete st.\u0275NgxMarkdownRendererExtendedForExtensions,delete st.\u0275NgxMarkdownRendererExtendedForMermaid,delete $e.renderer,pr.use({renderer:st})}return Ve?pr.parseInline(W,$e):pr.parse(W,$e)}parseEmoji(W){if(!(0,c.UE)(this.platform))return W;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(W)}renderKatex(W,$e){if((0,c.UE)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(W,$e)}}renderClipboard(W,$e,Ve){if(!(0,c.UE)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!$e)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:st,buttonTemplate:jt}=Ve,In=W.querySelectorAll("pre");for(let Fn=0;Fnre.classList.add("hover"),j.onmouseleave=()=>re.classList.remove("hover"),st){const ot=$e.createComponent(st);P=ot.hostView,ot.changeDetectorRef.markForCheck()}else if(jt)P=$e.createEmbeddedView(jt);else{const ot=$e.createComponent(Un);P=ot.hostView,ot.changeDetectorRef.markForCheck()}P.rootNodes.forEach(ot=>{re.appendChild(ot),Ie=new ClipboardJS(ot,{text:()=>w.innerText})}),P.onDestroy(()=>Ie.destroy())}}renderMermaid(W,$e=this.DEFAULT_MERMAID_OPTIONS){if(!(0,c.UE)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const Ve=W.querySelectorAll(".mermaid");0!==Ve.length&&(mermaid.initialize($e),mermaid.run({nodes:Ve}))}trimIndentation(W){if(!W)return"";let $e;return W.split("\n").map(Ve=>{let st=$e;return Ve.length>0&&(st=isNaN(st)?Ve.search(/\S|$/):Math.min(Ve.search(/\S|$/),st)),isNaN($e)&&($e=st),st?Ve.substring(st):Ve}).join("\n")}}return(bt=he).\u0275fac=function(W){return new(W||bt)(Z.KVO(xr,8),Z.KVO(zr,8),Z.KVO(Tr,8),Z.KVO(Z.Agw),Z.KVO(mi),Z.KVO(Ge.Qq,8),Z.KVO(Ct.up))},bt.\u0275prov=Z.jDH({token:bt,factory:bt.\u0275fac}),he})(),ao=(()=>{var bt;class he{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(W){this._disableSanitizer=this.coerceBooleanProperty(W)}get inline(){return this._inline}set inline(W){this._inline=this.coerceBooleanProperty(W)}get clipboard(){return this._clipboard}set clipboard(W){this._clipboard=this.coerceBooleanProperty(W)}get emoji(){return this._emoji}set emoji(W){this._emoji=this.coerceBooleanProperty(W)}get katex(){return this._katex}set katex(W){this._katex=this.coerceBooleanProperty(W)}get mermaid(){return this._mermaid}set mermaid(W){this._mermaid=this.coerceBooleanProperty(W)}get lineHighlight(){return this._lineHighlight}set lineHighlight(W){this._lineHighlight=this.coerceBooleanProperty(W)}get lineNumbers(){return this._lineNumbers}set lineNumbers(W){this._lineNumbers=this.coerceBooleanProperty(W)}get commandLine(){return this._commandLine}set commandLine(W){this._commandLine=this.coerceBooleanProperty(W)}constructor(W,$e,Ve){this.element=W,this.markdownService=$e,this.viewContainerRef=Ve,this.error=new Z.bkB,this.load=new Z.bkB,this.ready=new Z.bkB,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new Oe.B}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,Et.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(W,$e=!1){var Ve=this;return(0,h.A)(function*(){const st={decodeHtml:$e,inline:Ve.inline,emoji:Ve.emoji,mermaid:Ve.mermaid,disableSanitizer:Ve.disableSanitizer},jt={clipboard:Ve.clipboard,clipboardOptions:{buttonComponent:Ve.clipboardButtonComponent,buttonTemplate:Ve.clipboardButtonTemplate},katex:Ve.katex,katexOptions:Ve.katexOptions,mermaid:Ve.mermaid,mermaidOptions:Ve.mermaidOptions},In=yield Ve.markdownService.parse(W,st);Ve.element.nativeElement.innerHTML=In,Ve.handlePlugins(),Ve.markdownService.render(Ve.element.nativeElement,jt,Ve.viewContainerRef),Ve.ready.emit()})()}coerceBooleanProperty(W){return null!=W&&"false"!=`${String(W)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:W=>{this.render(W).then(()=>{this.load.emit(W)})},error:W=>this.error.emit(W)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,Or.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,Or.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(W,$e){const Ve=W.querySelectorAll("pre");for(let st=0;st{const In=$e[jt];if(In){const Fn=this.toLispCase(jt);Ve.item(st).setAttribute(Fn,In.toString())}})}toLispCase(W){const $e=W.match(/([A-Z])/g);if(!$e)return W;let Ve=W.toString();for(let st=0,jt=$e.length;st{var bt;class he{static forRoot(W){return{ngModule:he,providers:[Ci(W)]}}static forChild(){return{ngModule:he}}}return(bt=he).\u0275fac=function(W){return new(W||bt)},bt.\u0275mod=Z.$C({type:bt}),bt.\u0275inj=Z.G2t({imports:[c.MD]}),he})();var oi;!function(bt){let he;var $e;let le,W;($e=he=bt.SecurityLevel||(bt.SecurityLevel={})).Strict="strict",$e.Loose="loose",$e.Antiscript="antiscript",$e.Sandbox="sandbox",function($e){$e.Base="base",$e.Forest="forest",$e.Dark="dark",$e.Default="default",$e.Neutral="neutral"}(le=bt.Theme||(bt.Theme={})),function($e){$e[$e.Debug=1]="Debug",$e[$e.Info=2]="Info",$e[$e.Warn=3]="Warn",$e[$e.Error=4]="Error",$e[$e.Fatal=5]="Fatal"}(W=bt.LogLevel||(bt.LogLevel={}))}(oi||(oi={}))},467:(Tn,gt,D)=>{"use strict";function h(Z,Oe,U,ue,oe,Xe,Je){try{var Se=Z[Xe](Je),De=Se.value}catch(Qe){return void U(Qe)}Se.done?Oe(De):Promise.resolve(De).then(ue,oe)}function c(Z){return function(){var Oe=this,U=arguments;return new Promise(function(ue,oe){var Xe=Z.apply(Oe,U);function Je(De){h(Xe,ue,oe,Je,Se,"next",De)}function Se(De){h(Xe,ue,oe,Je,Se,"throw",De)}Je(void 0)})}}D.d(gt,{A:()=>c})},9842:(Tn,gt,D)=>{"use strict";function h(U){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ue){return typeof ue}:function(ue){return ue&&"function"==typeof Symbol&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue})(U)}function Oe(U,ue,oe){return(ue=function Z(U){var ue=function c(U,ue){if("object"!=h(U)||!U)return U;var oe=U[Symbol.toPrimitive];if(void 0!==oe){var Xe=oe.call(U,ue||"default");if("object"!=h(Xe))return Xe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ue?String:Number)(U)}(U,"string");return"symbol"==h(ue)?ue:String(ue)}(ue))in U?Object.defineProperty(U,ue,{value:oe,enumerable:!0,configurable:!0,writable:!0}):U[ue]=oe,U}D.d(gt,{A:()=>Oe})},1635:(Tn,gt,D)=>{"use strict";function Oe(H,X){var fe={};for(var se in H)Object.prototype.hasOwnProperty.call(H,se)&&X.indexOf(se)<0&&(fe[se]=H[se]);if(null!=H&&"function"==typeof Object.getOwnPropertySymbols){var ve=0;for(se=Object.getOwnPropertySymbols(H);ve=0;Wt--)(_e=H[Wt])&&(Le=(ve<3?_e(Le):ve>3?_e(X,fe,Le):_e(X,fe))||Le);return ve>3&&Le&&Object.defineProperty(X,fe,Le),Le}function Qe(H,X,fe,se){return new(fe||(fe=Promise))(function(Le,_e){function Wt(rn){try{Kt(se.next(rn))}catch(Ln){_e(Ln)}}function dn(rn){try{Kt(se.throw(rn))}catch(Ln){_e(Ln)}}function Kt(rn){rn.done?Le(rn.value):function ve(Le){return Le instanceof fe?Le:new fe(function(_e){_e(Le)})}(rn.value).then(Wt,dn)}Kt((se=se.apply(H,X||[])).next())})}function mt(H){return this instanceof mt?(this.v=H,this):new mt(H)}function Me(H,X,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ve,se=fe.apply(H,X||[]),Le=[];return ve={},_e("next"),_e("throw"),_e("return"),ve[Symbol.asyncIterator]=function(){return this},ve;function _e(Zn){se[Zn]&&(ve[Zn]=function(nr){return new Promise(function(er,yr){Le.push([Zn,nr,er,yr])>1||Wt(Zn,nr)})})}function Wt(Zn,nr){try{!function dn(Zn){Zn.value instanceof mt?Promise.resolve(Zn.value.v).then(Kt,rn):Ln(Le[0][2],Zn)}(se[Zn](nr))}catch(er){Ln(Le[0][3],er)}}function Kt(Zn){Wt("next",Zn)}function rn(Zn){Wt("throw",Zn)}function Ln(Zn,nr){Zn(nr),Le.shift(),Le.length&&Wt(Le[0][0],Le[0][1])}}function ge(H){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,X=H[Symbol.asyncIterator];return X?X.call(H):(H=function Tt(H){var X="function"==typeof Symbol&&Symbol.iterator,fe=X&&H[X],se=0;if(fe)return fe.call(H);if(H&&"number"==typeof H.length)return{next:function(){return H&&se>=H.length&&(H=void 0),{value:H&&H[se++],done:!H}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")}(H),fe={},se("next"),se("throw"),se("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function se(Le){fe[Le]=H[Le]&&function(_e){return new Promise(function(Wt,dn){!function ve(Le,_e,Wt,dn){Promise.resolve(dn).then(function(Kt){Le({value:Kt,done:Wt})},_e)}(Wt,dn,(_e=H[Le](_e)).done,_e.value)})}}}D.d(gt,{AQ:()=>Me,Cg:()=>U,N3:()=>mt,Tt:()=>Oe,sH:()=>Qe,xN:()=>ge}),"function"==typeof SuppressedError&&SuppressedError}},Tn=>{Tn(Tn.s=63)}]); \ No newline at end of file diff --git a/www/main.eb7a97eb9e5d005d.js b/www/main.eb7a97eb9e5d005d.js new file mode 100644 index 0000000..9f4680b --- /dev/null +++ b/www/main.eb7a97eb9e5d005d.js @@ -0,0 +1 @@ +(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(Tn,gt,D)=>{"use strict";D.d(gt,{Am:()=>gn,FA:()=>Le,Fy:()=>ge,I9:()=>Sr,Im:()=>ir,Ku:()=>ut,T9:()=>mt,Tj:()=>_t,Uj:()=>Je,XA:()=>Me,ZQ:()=>Ue,bD:()=>Ot,cY:()=>Ye,eX:()=>X,g:()=>ve,hp:()=>Mn,jZ:()=>Fe,lT:()=>tt,lV:()=>vn,nr:()=>we,sr:()=>Rt,tD:()=>mn,u:()=>Se,yU:()=>Et,zW:()=>H});const Oe=function(ce){const Ee=[];let He=0;for(let Lt=0;Lt>6|192,Ee[He++]=63&ie|128):55296==(64512&ie)&&Lt+1>18|240,Ee[He++]=ie>>12&63|128,Ee[He++]=ie>>6&63|128,Ee[He++]=63&ie|128):(Ee[He++]=ie>>12|224,Ee[He++]=ie>>6&63|128,Ee[He++]=63&ie|128)}return Ee},ue={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(ce,Ee){if(!Array.isArray(ce))throw Error("encodeByteArray takes an array as a parameter");this.init_();const He=Ee?this.byteToCharMapWebSafe_:this.byteToCharMap_,Lt=[];for(let ie=0;ie>6,tr=63&_n;tn||(tr=64,lt||(Cn=64)),Lt.push(He[ct>>2],He[(3&ct)<<4|Gt>>4],He[Cn],He[tr])}return Lt.join("")},encodeString(ce,Ee){return this.HAS_NATIVE_SUPPORT&&!Ee?btoa(ce):this.encodeByteArray(Oe(ce),Ee)},decodeString(ce,Ee){return this.HAS_NATIVE_SUPPORT&&!Ee?atob(ce):function(ce){const Ee=[];let He=0,Lt=0;for(;He191&&ie<224){const ct=ce[He++];Ee[Lt++]=String.fromCharCode((31&ie)<<6|63&ct)}else if(ie>239&&ie<365){const tn=((7&ie)<<18|(63&ce[He++])<<12|(63&ce[He++])<<6|63&ce[He++])-65536;Ee[Lt++]=String.fromCharCode(55296+(tn>>10)),Ee[Lt++]=String.fromCharCode(56320+(1023&tn))}else{const ct=ce[He++],lt=ce[He++];Ee[Lt++]=String.fromCharCode((15&ie)<<12|(63&ct)<<6|63<)}}return Ee.join("")}(this.decodeStringToByteArray(ce,Ee))},decodeStringToByteArray(ce,Ee){this.init_();const He=Ee?this.charToByteMapWebSafe_:this.charToByteMap_,Lt=[];for(let ie=0;ie>4),64!==_n&&(Lt.push(Gt<<4&240|_n>>2),64!==hn&&Lt.push(_n<<6&192|hn))}return Lt},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ce=0;ce=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ce)]=ce,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ce)]=ce)}}};class oe extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Je=function(ce){return function(ce){const Ee=Oe(ce);return ue.encodeByteArray(Ee,!0)}(ce).replace(/\./g,"")},Se=function(ce){try{return ue.decodeString(ce,!0)}catch(Ee){console.error("base64Decode failed: ",Ee)}return null},yt=()=>{try{return function qe(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const ce=process.env.__FIREBASE_DEFAULTS__;return ce?JSON.parse(ce):void 0})()||(()=>{if(typeof document>"u")return;let ce;try{ce=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const Ee=ce&&Se(ce[1]);return Ee&&JSON.parse(Ee)})()}catch(ce){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ce}`)}},_t=ce=>{var Ee,He;return null===(He=null===(Ee=yt())||void 0===Ee?void 0:Ee.emulatorHosts)||void 0===He?void 0:He[ce]},Et=ce=>{const Ee=_t(ce);if(!Ee)return;const He=Ee.lastIndexOf(":");if(He<=0||He+1===Ee.length)throw new Error(`Invalid host ${Ee} with no separate hostname and port!`);const Lt=parseInt(Ee.substring(He+1),10);return"["===Ee[0]?[Ee.substring(1,He-1),Lt]:[Ee.substring(0,He),Lt]},mt=()=>{var ce;return null===(ce=yt())||void 0===ce?void 0:ce.config},Me=ce=>{var Ee;return null===(Ee=yt())||void 0===Ee?void 0:Ee[`_${ce}`]};class Ye{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((Ee,He)=>{this.resolve=Ee,this.reject=He})}wrapCallback(Ee){return(He,Lt)=>{He?this.reject(He):this.resolve(Lt),"function"==typeof Ee&&(this.promise.catch(()=>{}),1===Ee.length?Ee(He):Ee(He,Lt))}}}function ge(ce,Ee){if(ce.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Lt=Ee||"demo-project",ie=ce.iat||0,ct=ce.sub||ce.user_id;if(!ct)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const lt=Object.assign({iss:`https://securetoken.google.com/${Lt}`,aud:Lt,iat:ie,exp:ie+3600,auth_time:ie,sub:ct,user_id:ct,firebase:{sign_in_provider:"custom",identities:{}}},ce);return[Je(JSON.stringify({alg:"none",type:"JWT"})),Je(JSON.stringify(lt)),""].join(".")}function Ue(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Fe(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ue())}function Rt(){const ce="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ce&&void 0!==ce.id}function vn(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function tt(){const ce=Ue();return ce.indexOf("MSIE ")>=0||ce.indexOf("Trident/")>=0}function we(){return!function xe(){var ce;const Ee=null===(ce=yt())||void 0===ce?void 0:ce.forceEnvironment;if("node"===Ee)return!0;if("browser"===Ee)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function H(){try{return"object"==typeof indexedDB}catch{return!1}}function X(){return new Promise((ce,Ee)=>{try{let He=!0;const Lt="validate-browser-context-for-indexeddb-analytics-module",ie=self.indexedDB.open(Lt);ie.onsuccess=()=>{ie.result.close(),He||self.indexedDB.deleteDatabase(Lt),ce(!0)},ie.onupgradeneeded=()=>{He=!1},ie.onerror=()=>{var ct;Ee((null===(ct=ie.error)||void 0===ct?void 0:ct.message)||"")}}catch(He){Ee(He)}})}class ve extends Error{constructor(Ee,He,Lt){super(He),this.code=Ee,this.customData=Lt,this.name="FirebaseError",Object.setPrototypeOf(this,ve.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Le.prototype.create)}}class Le{constructor(Ee,He,Lt){this.service=Ee,this.serviceName=He,this.errors=Lt}create(Ee,...He){const Lt=He[0]||{},ie=`${this.service}/${Ee}`,ct=this.errors[Ee],lt=ct?function _e(ce,Ee){return ce.replace(Wt,(He,Lt)=>{const ie=Ee[Lt];return null!=ie?String(ie):`<${Lt}?>`})}(ct,Lt):"Error";return new ve(ie,`${this.serviceName}: ${lt} (${ie}).`,Lt)}}const Wt=/\{\$([^}]+)}/g;function ir(ce){for(const Ee in ce)if(Object.prototype.hasOwnProperty.call(ce,Ee))return!1;return!0}function Ot(ce,Ee){if(ce===Ee)return!0;const He=Object.keys(ce),Lt=Object.keys(Ee);for(const ie of He){if(!Lt.includes(ie))return!1;const ct=ce[ie],lt=Ee[ie];if(zt(ct)&&zt(lt)){if(!Ot(ct,lt))return!1}else if(ct!==lt)return!1}for(const ie of Lt)if(!He.includes(ie))return!1;return!0}function zt(ce){return null!==ce&&"object"==typeof ce}function gn(ce){const Ee=[];for(const[He,Lt]of Object.entries(ce))Array.isArray(Lt)?Lt.forEach(ie=>{Ee.push(encodeURIComponent(He)+"="+encodeURIComponent(ie))}):Ee.push(encodeURIComponent(He)+"="+encodeURIComponent(Lt));return Ee.length?"&"+Ee.join("&"):""}function Sr(ce){const Ee={};return ce.replace(/^\?/,"").split("&").forEach(Lt=>{if(Lt){const[ie,ct]=Lt.split("=");Ee[decodeURIComponent(ie)]=decodeURIComponent(ct)}}),Ee}function Mn(ce){const Ee=ce.indexOf("?");if(!Ee)return"";const He=ce.indexOf("#",Ee);return ce.substring(Ee,He>0?He:void 0)}function mn(ce,Ee){const He=new en(ce,Ee);return He.subscribe.bind(He)}class en{constructor(Ee,He){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=He,this.task.then(()=>{Ee(this)}).catch(Lt=>{this.error(Lt)})}next(Ee){this.forEachObserver(He=>{He.next(Ee)})}error(Ee){this.forEachObserver(He=>{He.error(Ee)}),this.close(Ee)}complete(){this.forEachObserver(Ee=>{Ee.complete()}),this.close()}subscribe(Ee,He,Lt){let ie;if(void 0===Ee&&void 0===He&&void 0===Lt)throw new Error("Missing Observer.");ie=function Ir(ce,Ee){if("object"!=typeof ce||null===ce)return!1;for(const He of Ee)if(He in ce&&"function"==typeof ce[He])return!0;return!1}(Ee,["next","error","complete"])?Ee:{next:Ee,error:He,complete:Lt},void 0===ie.next&&(ie.next=Nr),void 0===ie.error&&(ie.error=Nr),void 0===ie.complete&&(ie.complete=Nr);const ct=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?ie.error(this.finalError):ie.complete()}catch{}}),this.observers.push(ie),ct}unsubscribeOne(Ee){void 0===this.observers||void 0===this.observers[Ee]||(delete this.observers[Ee],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(Ee){if(!this.finalized)for(let He=0;He{if(void 0!==this.observers&&void 0!==this.observers[Ee])try{He(this.observers[Ee])}catch(Lt){typeof console<"u"&&console.error&&console.error(Lt)}})}close(Ee){this.finalized||(this.finalized=!0,void 0!==Ee&&(this.finalError=Ee),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Nr(){}function ut(ce){return ce&&ce._delegate?ce._delegate:ce}},4442:(Tn,gt,D)=>{"use strict";D.d(gt,{L:()=>U,a:()=>ue,b:()=>oe,c:()=>Xe,d:()=>Je,g:()=>dt}),D(5531);const U="ionViewWillEnter",ue="ionViewDidEnter",oe="ionViewWillLeave",Xe="ionViewDidLeave",Je="ionViewWillUnload",dt=we=>we.classList.contains("ion-page")?we:we.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||we},5531:(Tn,gt,D)=>{"use strict";D.d(gt,{a:()=>Se,c:()=>c,g:()=>Je});class h{constructor(){this.m=new Map}reset(we){this.m=new Map(Object.entries(we))}get(we,H){const X=this.m.get(we);return void 0!==X?X:H}getBoolean(we,H=!1){const X=this.m.get(we);return void 0===X?H:"string"==typeof X?"true"===X:!!X}getNumber(we,H){const X=parseFloat(this.m.get(we));return isNaN(X)?void 0!==H?H:NaN:X}set(we,H){this.m.set(we,H)}}const c=new h,Je=dt=>De(dt),Se=(dt,we)=>("string"==typeof dt&&(we=dt,dt=void 0),Je(dt).includes(we)),De=(dt=window)=>{if(typeof dt>"u")return[];dt.Ionic=dt.Ionic||{};let we=dt.Ionic.platforms;return null==we&&(we=dt.Ionic.platforms=Qe(dt),we.forEach(H=>dt.document.documentElement.classList.add(`plt-${H}`))),we},Qe=dt=>{const we=c.get("platform");return Object.keys(vn).filter(H=>{const X=null==we?void 0:we[H];return"function"==typeof X?X(dt):vn[H](dt)})},qe=dt=>!!(rt(dt,/iPad/i)||rt(dt,/Macintosh/i)&&mt(dt)),St=dt=>rt(dt,/android|sink/i),mt=dt=>Rt(dt,"(any-pointer:coarse)"),Ye=dt=>ge(dt)||Ue(dt),ge=dt=>!!(dt.cordova||dt.phonegap||dt.PhoneGap),Ue=dt=>{const we=dt.Capacitor;return!(null==we||!we.isNative)},rt=(dt,we)=>we.test(dt.navigator.userAgent),Rt=(dt,we)=>{var H;return null===(H=dt.matchMedia)||void 0===H?void 0:H.call(dt,we).matches},vn={ipad:qe,iphone:dt=>rt(dt,/iPhone/i),ios:dt=>rt(dt,/iPhone|iPod/i)||qe(dt),android:St,phablet:dt=>{const we=dt.innerWidth,H=dt.innerHeight,X=Math.min(we,H),fe=Math.max(we,H);return X>390&&X<520&&fe>620&&fe<800},tablet:dt=>{const we=dt.innerWidth,H=dt.innerHeight,X=Math.min(we,H),fe=Math.max(we,H);return qe(dt)||(dt=>St(dt)&&!rt(dt,/mobile/i))(dt)||X>460&&X<820&&fe>780&&fe<1400},cordova:ge,capacitor:Ue,electron:dt=>rt(dt,/electron/i),pwa:dt=>{var we;return!!(null!==(we=dt.matchMedia)&&void 0!==we&&we.call(dt,"(display-mode: standalone)").matches||dt.navigator.standalone)},mobile:mt,mobileweb:dt=>mt(dt)&&!Ye(dt),desktop:dt=>!mt(dt),hybrid:Ye}},9986:(Tn,gt,D)=>{"use strict";D.d(gt,{c:()=>ue});var h=D(8476);let c;const Oe=(oe,Xe,Je)=>{const Se=Xe.startsWith("animation")?(oe=>(void 0===c&&(c=void 0===oe.style.animationName&&void 0!==oe.style.webkitAnimationName?"-webkit-":""),c))(oe):"";oe.style.setProperty(Se+Xe,Je)},U=(oe=[],Xe)=>{if(void 0!==Xe){const Je=Array.isArray(Xe)?Xe:[Xe];return[...oe,...Je]}return oe},ue=oe=>{let Xe,Je,Se,De,Qe,Ze,yt,Fe,xe,rt,tt,qe=[],ht=[],Tt=[],St=!1,_t={},Et=[],mt=[],Me={},Ye=0,ge=!1,Ue=!1,Rt=!0,vn=!1,Nt=!0,on=!1;const dt=oe,we=[],H=[],X=[],fe=[],se=[],ve=[],Le=[],_e=[],Wt=[],dn=[],Kt=[],rn="function"==typeof AnimationEffect||void 0!==h.w&&"function"==typeof h.w.AnimationEffect,Ln="function"==typeof Element&&"function"==typeof Element.prototype.animate&&rn,Zn=()=>Kt,ir=(x,te)=>{const Te=te.findIndex(Ge=>Ge.c===x);Te>-1&&te.splice(Te,1)},Ot=(x,te)=>((null!=te&&te.oneTimeCallback?H:we).push({c:x,o:te}),tt),pn=()=>{Ln&&(Kt.forEach(x=>{x.cancel()}),Kt.length=0)},gn=()=>{ve.forEach(x=>{null!=x&&x.parentNode&&x.parentNode.removeChild(x)}),ve.length=0},mr=()=>void 0!==Qe?Qe:yt?yt.getFill():"both",ur=()=>void 0!==Fe?Fe:void 0!==Ze?Ze:yt?yt.getDirection():"normal",Pr=()=>ge?"linear":void 0!==Se?Se:yt?yt.getEasing():"linear",cr=()=>Ue?0:void 0!==xe?xe:void 0!==Je?Je:yt?yt.getDuration():0,kr=()=>void 0!==De?De:yt?yt.getIterations():1,ii=()=>void 0!==rt?rt:void 0!==Xe?Xe:yt?yt.getDelay():0,tn=()=>{0!==Ye&&(Ye--,0===Ye&&((()=>{Wt.forEach(Ct=>Ct()),dn.forEach(Ct=>Ct());const x=Rt?1:0,te=Et,Te=mt,Ge=Me;fe.forEach(Ct=>{const Jt=Ct.classList;te.forEach(ln=>Jt.add(ln)),Te.forEach(ln=>Jt.remove(ln));for(const ln in Ge)Ge.hasOwnProperty(ln)&&Oe(Ct,ln,Ge[ln])}),xe=void 0,Fe=void 0,rt=void 0,we.forEach(Ct=>Ct.c(x,tt)),H.forEach(Ct=>Ct.c(x,tt)),H.length=0,Nt=!0,Rt&&(vn=!0),Rt=!0})(),yt&&yt.animationFinish()))},qn=()=>{(()=>{Le.forEach(Ge=>Ge()),_e.forEach(Ge=>Ge());const x=ht,te=Tt,Te=_t;fe.forEach(Ge=>{const Ct=Ge.classList;x.forEach(Jt=>Ct.add(Jt)),te.forEach(Jt=>Ct.remove(Jt));for(const Jt in Te)Te.hasOwnProperty(Jt)&&Oe(Ge,Jt,Te[Jt])})})(),qe.length>0&&Ln&&(fe.forEach(x=>{const te=x.animate(qe,{id:dt,delay:ii(),duration:cr(),easing:Pr(),iterations:kr(),fill:mr(),direction:ur()});te.pause(),Kt.push(te)}),Kt.length>0&&(Kt[0].onfinish=()=>{tn()})),St=!0},hn=x=>{x=Math.min(Math.max(x,0),.9999),Ln&&Kt.forEach(te=>{te.currentTime=te.effect.getComputedTiming().delay+cr()*x,te.pause()})},Cn=x=>{Kt.forEach(te=>{te.effect.updateTiming({delay:ii(),duration:cr(),easing:Pr(),iterations:kr(),fill:mr(),direction:ur()})}),void 0!==x&&hn(x)},tr=(x=!1,te=!0,Te)=>(x&&se.forEach(Ge=>{Ge.update(x,te,Te)}),Ln&&Cn(Te),tt),Zr=()=>{St&&(Ln?Kt.forEach(x=>{x.pause()}):fe.forEach(x=>{Oe(x,"animation-play-state","paused")}),on=!0)},Ut=x=>new Promise(te=>{null!=x&&x.sync&&(Ue=!0,Ot(()=>Ue=!1,{oneTimeCallback:!0})),St||qn(),vn&&(Ln&&(hn(0),Cn()),vn=!1),Nt&&(Ye=se.length+1,Nt=!1);const Te=()=>{ir(Ge,H),te()},Ge=()=>{ir(Te,X),te()};Ot(Ge,{oneTimeCallback:!0}),((x,te)=>{X.push({c:x,o:{oneTimeCallback:!0}})})(Te),se.forEach(Ct=>{Ct.play()}),Ln?(Kt.forEach(x=>{x.play()}),(0===qe.length||0===fe.length)&&tn()):tn(),on=!1}),ee=(x,te)=>{const Te=qe[0];return void 0===Te||void 0!==Te.offset&&0!==Te.offset?qe=[{offset:0,[x]:te},...qe]:Te[x]=te,tt};return tt={parentAnimation:yt,elements:fe,childAnimations:se,id:dt,animationFinish:tn,from:ee,to:(x,te)=>{const Te=qe[qe.length-1];return void 0===Te||void 0!==Te.offset&&1!==Te.offset?qe=[...qe,{offset:1,[x]:te}]:Te[x]=te,tt},fromTo:(x,te,Te)=>ee(x,te).to(x,Te),parent:x=>(yt=x,tt),play:Ut,pause:()=>(se.forEach(x=>{x.pause()}),Zr(),tt),stop:()=>{se.forEach(x=>{x.stop()}),St&&(pn(),St=!1),ge=!1,Ue=!1,Nt=!0,Fe=void 0,xe=void 0,rt=void 0,Ye=0,vn=!1,Rt=!0,on=!1,X.forEach(x=>x.c(0,tt)),X.length=0},destroy:x=>(se.forEach(te=>{te.destroy(x)}),(x=>{pn(),x&&gn()})(x),fe.length=0,se.length=0,qe.length=0,we.length=0,H.length=0,St=!1,Nt=!0,tt),keyframes:x=>{const te=qe!==x;return qe=x,te&&(x=>{Ln&&Zn().forEach(te=>{const Te=te.effect;if(Te.setKeyframes)Te.setKeyframes(x);else{const Ge=new KeyframeEffect(Te.target,x,Te.getTiming());te.effect=Ge}})})(qe),tt},addAnimation:x=>{if(null!=x)if(Array.isArray(x))for(const te of x)te.parent(tt),se.push(te);else x.parent(tt),se.push(x);return tt},addElement:x=>{if(null!=x)if(1===x.nodeType)fe.push(x);else if(x.length>=0)for(let te=0;te(Qe=x,tr(!0),tt),direction:x=>(Ze=x,tr(!0),tt),iterations:x=>(De=x,tr(!0),tt),duration:x=>(!Ln&&0===x&&(x=1),Je=x,tr(!0),tt),easing:x=>(Se=x,tr(!0),tt),delay:x=>(Xe=x,tr(!0),tt),getWebAnimations:Zn,getKeyframes:()=>qe,getFill:mr,getDirection:ur,getDelay:ii,getIterations:kr,getEasing:Pr,getDuration:cr,afterAddRead:x=>(Wt.push(x),tt),afterAddWrite:x=>(dn.push(x),tt),afterClearStyles:(x=[])=>{for(const te of x)Me[te]="";return tt},afterStyles:(x={})=>(Me=x,tt),afterRemoveClass:x=>(mt=U(mt,x),tt),afterAddClass:x=>(Et=U(Et,x),tt),beforeAddRead:x=>(Le.push(x),tt),beforeAddWrite:x=>(_e.push(x),tt),beforeClearStyles:(x=[])=>{for(const te of x)_t[te]="";return tt},beforeStyles:(x={})=>(_t=x,tt),beforeRemoveClass:x=>(Tt=U(Tt,x),tt),beforeAddClass:x=>(ht=U(ht,x),tt),onFinish:Ot,isRunning:()=>0!==Ye&&!on,progressStart:(x=!1,te)=>(se.forEach(Te=>{Te.progressStart(x,te)}),Zr(),ge=x,St||qn(),tr(!1,!0,te),tt),progressStep:x=>(se.forEach(te=>{te.progressStep(x)}),hn(x),tt),progressEnd:(x,te,Te)=>(ge=!1,se.forEach(Ge=>{Ge.progressEnd(x,te,Te)}),void 0!==Te&&(xe=Te),vn=!1,Rt=!0,0===x?(Fe="reverse"===ur()?"normal":"reverse","reverse"===Fe&&(Rt=!1),Ln?(tr(),hn(1-te)):(rt=(1-te)*cr()*-1,tr(!1,!1))):1===x&&(Ln?(tr(),hn(te)):(rt=te*cr()*-1,tr(!1,!1))),void 0!==x&&!yt&&Ut(),tt)}}},464:(Tn,gt,D)=>{"use strict";D.d(gt,{E:()=>Se,a:()=>h,s:()=>Xe});const h=De=>{try{if(De instanceof oe)return De.value;if(!Oe()||"string"!=typeof De||""===De)return De;if(De.includes("onload="))return"";const Qe=document.createDocumentFragment(),Ze=document.createElement("div");Qe.appendChild(Ze),Ze.innerHTML=De,ue.forEach(St=>{const yt=Qe.querySelectorAll(St);for(let _t=yt.length-1;_t>=0;_t--){const Et=yt[_t];Et.parentNode?Et.parentNode.removeChild(Et):Qe.removeChild(Et);const mt=Z(Et);for(let Me=0;Me{if(De.nodeType&&1!==De.nodeType)return;if(typeof NamedNodeMap<"u"&&!(De.attributes instanceof NamedNodeMap))return void De.remove();for(let Ze=De.attributes.length-1;Ze>=0;Ze--){const qe=De.attributes.item(Ze),ht=qe.name;if(!U.includes(ht.toLowerCase())){De.removeAttribute(ht);continue}const Tt=qe.value,St=De[ht];(null!=Tt&&Tt.toLowerCase().includes("javascript:")||null!=St&&St.toLowerCase().includes("javascript:"))&&De.removeAttribute(ht)}const Qe=Z(De);for(let Ze=0;Zenull!=De.children?De.children:De.childNodes,Oe=()=>{var De;const Qe=window,Ze=null===(De=null==Qe?void 0:Qe.Ionic)||void 0===De?void 0:De.config;return!Ze||(Ze.get?Ze.get("sanitizerEnabled",!0):!0===Ze.sanitizerEnabled||void 0===Ze.sanitizerEnabled)},U=["class","id","href","src","name","slot"],ue=["script","style","iframe","meta","link","object","embed"];class oe{constructor(Qe){this.value=Qe}}const Xe=De=>{const Qe=window,Ze=Qe.Ionic;if(!Ze||!Ze.config||"Object"===Ze.config.constructor.name)return Qe.Ionic=Qe.Ionic||{},Qe.Ionic.config=Object.assign(Object.assign({},Qe.Ionic.config),De),Qe.Ionic.config},Se=!1},8621:(Tn,gt,D)=>{"use strict";D.d(gt,{C:()=>U,a:()=>Z,d:()=>Oe});var h=D(467),c=D(4920);const Z=function(){var ue=(0,h.A)(function*(oe,Xe,Je,Se,De,Qe){var Ze;if(oe)return oe.attachViewToDom(Xe,Je,De,Se);if(!(Qe||"string"==typeof Je||Je instanceof HTMLElement))throw new Error("framework delegate is missing");const qe="string"==typeof Je?null===(Ze=Xe.ownerDocument)||void 0===Ze?void 0:Ze.createElement(Je):Je;return Se&&Se.forEach(ht=>qe.classList.add(ht)),De&&Object.assign(qe,De),Xe.appendChild(qe),yield new Promise(ht=>(0,c.c)(qe,ht)),qe});return function(Xe,Je,Se,De,Qe,Ze){return ue.apply(this,arguments)}}(),Oe=(ue,oe)=>{if(oe){if(ue)return ue.removeViewFromDom(oe.parentElement,oe);oe.remove()}return Promise.resolve()},U=()=>{let ue,oe;return{attachViewToDom:function(){var Se=(0,h.A)(function*(De,Qe,Ze={},qe=[]){var ht,Tt;let St;if(ue=De,Qe){const _t="string"==typeof Qe?null===(ht=ue.ownerDocument)||void 0===ht?void 0:ht.createElement(Qe):Qe;qe.forEach(Et=>_t.classList.add(Et)),Object.assign(_t,Ze),ue.appendChild(_t),St=_t,yield new Promise(Et=>(0,c.c)(_t,Et))}else if(ue.children.length>0&&("ION-MODAL"===ue.tagName||"ION-POPOVER"===ue.tagName)&&!(St=ue.children[0]).classList.contains("ion-delegate-host")){const Et=null===(Tt=ue.ownerDocument)||void 0===Tt?void 0:Tt.createElement("div");Et.classList.add("ion-delegate-host"),qe.forEach(mt=>Et.classList.add(mt)),Et.append(...ue.children),ue.appendChild(Et),St=Et}const yt=document.querySelector("ion-app")||document.body;return oe=document.createComment("ionic teleport"),ue.parentNode.insertBefore(oe,ue),yt.appendChild(ue),null!=St?St:ue});return function(Qe,Ze){return Se.apply(this,arguments)}}(),removeViewFromDom:()=>(ue&&oe&&(oe.parentNode.insertBefore(ue,oe),oe.remove()),Promise.resolve())}}},1970:(Tn,gt,D)=>{"use strict";D.d(gt,{B:()=>Oe,G:()=>U});class c{constructor(oe,Xe,Je,Se,De){this.id=Xe,this.name=Je,this.disableScroll=De,this.priority=1e6*Se+Xe,this.ctrl=oe}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const oe=this.ctrl.capture(this.name,this.id,this.priority);return oe&&this.disableScroll&&this.ctrl.disableScroll(this.id),oe}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class Z{constructor(oe,Xe,Je,Se){this.id=Xe,this.disable=Je,this.disableScroll=Se,this.ctrl=oe}block(){if(this.ctrl){if(this.disable)for(const oe of this.disable)this.ctrl.disableGesture(oe,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const oe of this.disable)this.ctrl.enableGesture(oe,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Oe="backdrop-no-scroll",U=new class h{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(oe){var Xe;return new c(this,this.newID(),oe.name,null!==(Xe=oe.priority)&&void 0!==Xe?Xe:0,!!oe.disableScroll)}createBlocker(oe={}){return new Z(this,this.newID(),oe.disable,!!oe.disableScroll)}start(oe,Xe,Je){return this.canStart(oe)?(this.requestedStart.set(Xe,Je),!0):(this.requestedStart.delete(Xe),!1)}capture(oe,Xe,Je){if(!this.start(oe,Xe,Je))return!1;const Se=this.requestedStart;let De=-1e4;if(Se.forEach(Qe=>{De=Math.max(De,Qe)}),De===Je){this.capturedId=Xe,Se.clear();const Qe=new CustomEvent("ionGestureCaptured",{detail:{gestureName:oe}});return document.dispatchEvent(Qe),!0}return Se.delete(Xe),!1}release(oe){this.requestedStart.delete(oe),this.capturedId===oe&&(this.capturedId=void 0)}disableGesture(oe,Xe){let Je=this.disabledGestures.get(oe);void 0===Je&&(Je=new Set,this.disabledGestures.set(oe,Je)),Je.add(Xe)}enableGesture(oe,Xe){const Je=this.disabledGestures.get(oe);void 0!==Je&&Je.delete(Xe)}disableScroll(oe){this.disabledScroll.add(oe),1===this.disabledScroll.size&&document.body.classList.add(Oe)}enableScroll(oe){this.disabledScroll.delete(oe),0===this.disabledScroll.size&&document.body.classList.remove(Oe)}canStart(oe){return!(void 0!==this.capturedId||this.isDisabled(oe))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(oe){const Xe=this.disabledGestures.get(oe);return!!(Xe&&Xe.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(Tn,gt,D)=>{"use strict";D.r(gt),D.d(gt,{MENU_BACK_BUTTON_PRIORITY:()=>Je,OVERLAY_BACK_BUTTON_PRIORITY:()=>Xe,blockHardwareBackButton:()=>ue,shouldUseCloseWatcher:()=>U,startHardwareBackButton:()=>oe});var h=D(467),c=D(8476),Z=D(3664);D(9672);const U=()=>Z.c.get("experimentalCloseWatcher",!1)&&void 0!==c.w&&"CloseWatcher"in c.w,ue=()=>{document.addEventListener("backbutton",()=>{})},oe=()=>{const Se=document;let De=!1;const Qe=()=>{if(De)return;let Ze=0,qe=[];const ht=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(yt,_t){qe.push({priority:yt,handler:_t,id:Ze++})}}});Se.dispatchEvent(ht);const Tt=function(){var yt=(0,h.A)(function*(_t){try{if(null!=_t&&_t.handler){const Et=_t.handler(St);null!=Et&&(yield Et)}}catch(Et){console.error(Et)}});return function(Et){return yt.apply(this,arguments)}}(),St=()=>{if(qe.length>0){let yt={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};qe.forEach(_t=>{_t.priority>=yt.priority&&(yt=_t)}),De=!0,qe=qe.filter(_t=>_t.id!==yt.id),Tt(yt).then(()=>De=!1)}};St()};if(U()){let Ze;const qe=()=>{null==Ze||Ze.destroy(),Ze=new c.w.CloseWatcher,Ze.onclose=()=>{Qe(),qe()}};qe()}else Se.addEventListener("backbutton",Qe)},Xe=100,Je=99},4920:(Tn,gt,D)=>{"use strict";D.d(gt,{a:()=>Xe,b:()=>Je,c:()=>Z,d:()=>qe,e:()=>_t,f:()=>Ze,g:()=>Se,h:()=>U,i:()=>oe,j:()=>ht,k:()=>Oe,l:()=>Qe,m:()=>Tt,n:()=>yt,o:()=>Et,p:()=>St,r:()=>De,s:()=>mt,t:()=>h});const h=(Me,Ye=0)=>new Promise(ge=>{c(Me,Ye,ge)}),c=(Me,Ye=0,ge)=>{let Ue,Fe;const xe={passive:!0},Rt=()=>{Ue&&Ue()},vn=Nt=>{(void 0===Nt||Me===Nt.target)&&(Rt(),ge(Nt))};return Me&&(Me.addEventListener("webkitTransitionEnd",vn,xe),Me.addEventListener("transitionend",vn,xe),Fe=setTimeout(vn,Ye+500),Ue=()=>{void 0!==Fe&&(clearTimeout(Fe),Fe=void 0),Me.removeEventListener("webkitTransitionEnd",vn,xe),Me.removeEventListener("transitionend",vn,xe)}),Rt},Z=(Me,Ye)=>{Me.componentOnReady?Me.componentOnReady().then(ge=>Ye(ge)):De(()=>Ye(Me))},Oe=Me=>void 0!==Me.componentOnReady,U=(Me,Ye=[])=>{const ge={};return Ye.forEach(Ue=>{Me.hasAttribute(Ue)&&(null!==Me.getAttribute(Ue)&&(ge[Ue]=Me.getAttribute(Ue)),Me.removeAttribute(Ue))}),ge},ue=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","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-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],oe=(Me,Ye)=>{let ge=ue;return Ye&&Ye.length>0&&(ge=ge.filter(Ue=>!Ye.includes(Ue))),U(Me,ge)},Xe=(Me,Ye,ge,Ue)=>{var Fe;if(typeof window<"u"){const xe=window,rt=null===(Fe=null==xe?void 0:xe.Ionic)||void 0===Fe?void 0:Fe.config;if(rt){const Rt=rt.get("_ael");if(Rt)return Rt(Me,Ye,ge,Ue);if(rt._ael)return rt._ael(Me,Ye,ge,Ue)}}return Me.addEventListener(Ye,ge,Ue)},Je=(Me,Ye,ge,Ue)=>{var Fe;if(typeof window<"u"){const xe=window,rt=null===(Fe=null==xe?void 0:xe.Ionic)||void 0===Fe?void 0:Fe.config;if(rt){const Rt=rt.get("_rel");if(Rt)return Rt(Me,Ye,ge,Ue);if(rt._rel)return rt._rel(Me,Ye,ge,Ue)}}return Me.removeEventListener(Ye,ge,Ue)},Se=(Me,Ye=Me)=>Me.shadowRoot||Ye,De=Me=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Me):"function"==typeof requestAnimationFrame?requestAnimationFrame(Me):setTimeout(Me),Qe=Me=>!!Me.shadowRoot&&!!Me.attachShadow,Ze=Me=>{if(Me.focus(),Me.classList.contains("ion-focusable")){const Ye=Me.closest("ion-app");Ye&&Ye.setFocus([Me])}},qe=(Me,Ye,ge,Ue,Fe)=>{if(Me||Qe(Ye)){let xe=Ye.querySelector("input.aux-input");xe||(xe=Ye.ownerDocument.createElement("input"),xe.type="hidden",xe.classList.add("aux-input"),Ye.appendChild(xe)),xe.disabled=Fe,xe.name=ge,xe.value=Ue||""}},ht=(Me,Ye,ge)=>Math.max(Me,Math.min(Ye,ge)),Tt=(Me,Ye)=>{if(!Me){const ge="ASSERT: "+Ye;throw console.error(ge),new Error(ge)}},St=Me=>{if(Me){const Ye=Me.changedTouches;if(Ye&&Ye.length>0){const ge=Ye[0];return{x:ge.clientX,y:ge.clientY}}if(void 0!==Me.pageX)return{x:Me.pageX,y:Me.pageY}}return{x:0,y:0}},yt=Me=>{const Ye="rtl"===document.dir;switch(Me){case"start":return Ye;case"end":return!Ye;default:throw new Error(`"${Me}" is not a valid value for [side]. Use "start" or "end" instead.`)}},_t=(Me,Ye)=>{const ge=Me._original||Me;return{_original:Me,emit:Et(ge.emit.bind(ge),Ye)}},Et=(Me,Ye=0)=>{let ge;return(...Ue)=>{clearTimeout(ge),ge=setTimeout(Me,Ye,...Ue)}},mt=(Me,Ye)=>{if(null!=Me||(Me={}),null!=Ye||(Ye={}),Me===Ye)return!0;const ge=Object.keys(Me);if(ge.length!==Object.keys(Ye).length)return!1;for(const Ue of ge)if(!(Ue in Ye)||Me[Ue]!==Ye[Ue])return!1;return!0}},5465:(Tn,gt,D)=>{"use strict";D.d(gt,{m:()=>Ze});var h=D(467),c=D(8476),Z=D(6411),Oe=D(4929),U=D(4920),ue=D(3664),oe=D(9986);const Xe=qe=>(0,oe.c)().duration(qe?400:300),Je=qe=>{let ht,Tt;const St=qe.width+8,yt=(0,oe.c)(),_t=(0,oe.c)();qe.isEndSide?(ht=St+"px",Tt="0px"):(ht=-St+"px",Tt="0px"),yt.addElement(qe.menuInnerEl).fromTo("transform",`translateX(${ht})`,`translateX(${Tt})`);const mt="ios"===(0,ue.b)(qe),Me=mt?.2:.25;return _t.addElement(qe.backdropEl).fromTo("opacity",.01,Me),Xe(mt).addAnimation([yt,_t])},Se=qe=>{let ht,Tt;const St=(0,ue.b)(qe),yt=qe.width;qe.isEndSide?(ht=-yt+"px",Tt=yt+"px"):(ht=yt+"px",Tt=-yt+"px");const _t=(0,oe.c)().addElement(qe.menuInnerEl).fromTo("transform",`translateX(${Tt})`,"translateX(0px)"),Et=(0,oe.c)().addElement(qe.contentEl).fromTo("transform","translateX(0px)",`translateX(${ht})`),mt=(0,oe.c)().addElement(qe.backdropEl).fromTo("opacity",.01,.32);return Xe("ios"===St).addAnimation([_t,Et,mt])},De=qe=>{const ht=(0,ue.b)(qe),Tt=qe.width*(qe.isEndSide?-1:1)+"px",St=(0,oe.c)().addElement(qe.contentEl).fromTo("transform","translateX(0px)",`translateX(${Tt})`);return Xe("ios"===ht).addAnimation(St)},Ze=(()=>{const qe=new Map,ht=[],Tt=function(){var X=(0,h.A)(function*(fe){const se=yield Ye(fe,!0);return!!se&&se.open()});return function(se){return X.apply(this,arguments)}}(),St=function(){var X=(0,h.A)(function*(fe){const se=yield void 0!==fe?Ye(fe,!0):ge();return void 0!==se&&se.close()});return function(se){return X.apply(this,arguments)}}(),yt=function(){var X=(0,h.A)(function*(fe){const se=yield Ye(fe,!0);return!!se&&se.toggle()});return function(se){return X.apply(this,arguments)}}(),_t=function(){var X=(0,h.A)(function*(fe,se){const ve=yield Ye(se);return ve&&(ve.disabled=!fe),ve});return function(se,ve){return X.apply(this,arguments)}}(),Et=function(){var X=(0,h.A)(function*(fe,se){const ve=yield Ye(se);return ve&&(ve.swipeGesture=fe),ve});return function(se,ve){return X.apply(this,arguments)}}(),mt=function(){var X=(0,h.A)(function*(fe){if(null!=fe){const se=yield Ye(fe);return void 0!==se&&se.isOpen()}return void 0!==(yield ge())});return function(se){return X.apply(this,arguments)}}(),Me=function(){var X=(0,h.A)(function*(fe){const se=yield Ye(fe);return!!se&&!se.disabled});return function(se){return X.apply(this,arguments)}}(),Ye=function(){var X=(0,h.A)(function*(fe,se=!1){if(yield H(),"start"===fe||"end"===fe){const Le=ht.filter(Wt=>Wt.side===fe&&!Wt.disabled);if(Le.length>=1)return Le.length>1&&se&&(0,Oe.p)(`menuController queried for a menu on the "${fe}" side, but ${Le.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,Le.map(Wt=>Wt.el)),Le[0].el;const _e=ht.filter(Wt=>Wt.side===fe);if(_e.length>=1)return _e.length>1&&se&&(0,Oe.p)(`menuController queried for a menu on the "${fe}" side, but ${_e.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,_e.map(Wt=>Wt.el)),_e[0].el}else if(null!=fe)return we(Le=>Le.menuId===fe);return we(Le=>!Le.disabled)||(ht.length>0?ht[0].el:void 0)});return function(se){return X.apply(this,arguments)}}(),ge=function(){var X=(0,h.A)(function*(){return yield H(),tt()});return function(){return X.apply(this,arguments)}}(),Ue=function(){var X=(0,h.A)(function*(){return yield H(),on()});return function(){return X.apply(this,arguments)}}(),Fe=function(){var X=(0,h.A)(function*(){return yield H(),dt()});return function(){return X.apply(this,arguments)}}(),xe=(X,fe)=>{qe.set(X,fe)},vn=function(){var X=(0,h.A)(function*(fe,se,ve){if(dt())return!1;if(se){const Le=yield ge();Le&&fe.el!==Le&&(yield Le.setOpen(!1,!1))}return fe._setOpen(se,ve)});return function(se,ve,Le){return X.apply(this,arguments)}}(),tt=()=>we(X=>X._isOpen),on=()=>ht.map(X=>X.el),dt=()=>ht.some(X=>X.isAnimating),we=X=>{const fe=ht.find(X);if(void 0!==fe)return fe.el},H=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(X=>new Promise(fe=>(0,U.c)(X,fe))));return xe("reveal",De),xe("push",Se),xe("overlay",Je),null==c.d||c.d.addEventListener("ionBackButton",X=>{const fe=tt();fe&&X.detail.register(Z.MENU_BACK_BUTTON_PRIORITY,()=>fe.close())}),{registerAnimation:xe,get:Ye,getMenus:Ue,getOpen:ge,isEnabled:Me,swipeGesture:Et,isAnimating:Fe,isOpen:mt,enable:_t,toggle:yt,close:St,open:Tt,_getOpenSync:tt,_createAnimation:(X,fe)=>{const se=qe.get(X);if(!se)throw new Error("animation not registered");return se(fe)},_register:X=>{ht.indexOf(X)<0&&ht.push(X)},_unregister:X=>{const fe=ht.indexOf(X);fe>-1&&ht.splice(fe,1)},_setOpen:vn}})()},8607:(Tn,gt,D)=>{"use strict";D.r(gt),D.d(gt,{GESTURE_CONTROLLER:()=>h.G,createGesture:()=>Je});var h=D(1970);const c=(Ze,qe,ht,Tt)=>{const St=Z(Ze)?{capture:!!Tt.capture,passive:!!Tt.passive}:!!Tt.capture;let yt,_t;return Ze.__zone_symbol__addEventListener?(yt="__zone_symbol__addEventListener",_t="__zone_symbol__removeEventListener"):(yt="addEventListener",_t="removeEventListener"),Ze[yt](qe,ht,St),()=>{Ze[_t](qe,ht,St)}},Z=Ze=>{if(void 0===Oe)try{const qe=Object.defineProperty({},"passive",{get:()=>{Oe=!0}});Ze.addEventListener("optsTest",()=>{},qe)}catch{Oe=!1}return!!Oe};let Oe;const oe=Ze=>Ze instanceof Document?Ze:Ze.ownerDocument,Je=Ze=>{let qe=!1,ht=!1,Tt=!0,St=!1;const yt=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},Ze),_t=yt.canStart,Et=yt.onWillStart,mt=yt.onStart,Me=yt.onEnd,Ye=yt.notCaptured,ge=yt.onMove,Ue=yt.threshold,Fe=yt.passive,xe=yt.blurOnStart,rt={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},Rt=((Ze,qe,ht)=>{const Tt=ht*(Math.PI/180),St="x"===Ze,yt=Math.cos(Tt),_t=qe*qe;let Et=0,mt=0,Me=!1,Ye=0;return{start(ge,Ue){Et=ge,mt=Ue,Ye=0,Me=!0},detect(ge,Ue){if(!Me)return!1;const Fe=ge-Et,xe=Ue-mt,rt=Fe*Fe+xe*xe;if(rt<_t)return!1;const Rt=Math.sqrt(rt),vn=(St?Fe:xe)/Rt;return Ye=vn>yt?1:vn<-yt?-1:0,Me=!1,!0},isGesture:()=>0!==Ye,getDirection:()=>Ye}})(yt.direction,yt.threshold,yt.maxAngle),vn=h.G.createGesture({name:Ze.gestureName,priority:Ze.gesturePriority,disableScroll:Ze.disableScroll}),on=()=>{qe&&(St=!1,ge&&ge(rt))},dt=()=>!!vn.capture()&&(qe=!0,Tt=!1,rt.startX=rt.currentX,rt.startY=rt.currentY,rt.startTime=rt.currentTime,Et?Et(rt).then(H):H(),!0),H=()=>{xe&&(()=>{if(typeof document<"u"){const Le=document.activeElement;null!=Le&&Le.blur&&Le.blur()}})(),mt&&mt(rt),Tt=!0},X=()=>{qe=!1,ht=!1,St=!1,Tt=!0,vn.release()},fe=Le=>{const _e=qe,Wt=Tt;if(X(),Wt){if(Se(rt,Le),_e)return void(Me&&Me(rt));Ye&&Ye(rt)}},se=((Ze,qe,ht,Tt,St)=>{let yt,_t,Et,mt,Me,Ye,ge,Ue=0;const Fe=we=>{Ue=Date.now()+2e3,qe(we)&&(!_t&&ht&&(_t=c(Ze,"touchmove",ht,St)),Et||(Et=c(we.target,"touchend",rt,St)),mt||(mt=c(we.target,"touchcancel",rt,St)))},xe=we=>{Ue>Date.now()||qe(we)&&(!Ye&&ht&&(Ye=c(oe(Ze),"mousemove",ht,St)),ge||(ge=c(oe(Ze),"mouseup",Rt,St)))},rt=we=>{vn(),Tt&&Tt(we)},Rt=we=>{Nt(),Tt&&Tt(we)},vn=()=>{_t&&_t(),Et&&Et(),mt&&mt(),_t=Et=mt=void 0},Nt=()=>{Ye&&Ye(),ge&&ge(),Ye=ge=void 0},tt=()=>{vn(),Nt()},on=(we=!0)=>{we?(yt||(yt=c(Ze,"touchstart",Fe,St)),Me||(Me=c(Ze,"mousedown",xe,St))):(yt&&yt(),Me&&Me(),yt=Me=void 0,tt())};return{enable:on,stop:tt,destroy:()=>{on(!1),Tt=ht=qe=void 0}}})(yt.el,Le=>{const _e=Qe(Le);return!(ht||!Tt||(De(Le,rt),rt.startX=rt.currentX,rt.startY=rt.currentY,rt.startTime=rt.currentTime=_e,rt.velocityX=rt.velocityY=rt.deltaX=rt.deltaY=0,rt.event=Le,_t&&!1===_t(rt))||(vn.release(),!vn.start()))&&(ht=!0,0===Ue?dt():(Rt.start(rt.startX,rt.startY),!0))},Le=>{qe?!St&&Tt&&(St=!0,Se(rt,Le),requestAnimationFrame(on)):(Se(rt,Le),Rt.detect(rt.currentX,rt.currentY)&&(!Rt.isGesture()||!dt())&&ve())},fe,{capture:!1,passive:Fe}),ve=()=>{X(),se.stop(),Ye&&Ye(rt)};return{enable(Le=!0){Le||(qe&&fe(void 0),X()),se.enable(Le)},destroy(){vn.destroy(),se.destroy()}}},Se=(Ze,qe)=>{if(!qe)return;const ht=Ze.currentX,Tt=Ze.currentY,St=Ze.currentTime;De(qe,Ze);const yt=Ze.currentX,_t=Ze.currentY,mt=(Ze.currentTime=Qe(qe))-St;if(mt>0&&mt<100){const Ye=(_t-Tt)/mt;Ze.velocityX=(yt-ht)/mt*.7+.3*Ze.velocityX,Ze.velocityY=.7*Ye+.3*Ze.velocityY}Ze.deltaX=yt-Ze.startX,Ze.deltaY=_t-Ze.startY,Ze.event=qe},De=(Ze,qe)=>{let ht=0,Tt=0;if(Ze){const St=Ze.changedTouches;if(St&&St.length>0){const yt=St[0];ht=yt.clientX,Tt=yt.clientY}else void 0!==Ze.pageX&&(ht=Ze.pageX,Tt=Ze.pageY)}qe.currentX=ht,qe.currentY=Tt},Qe=Ze=>Ze.timeStamp||Date.now()},9672:(Tn,gt,D)=>{"use strict";D.d(gt,{B:()=>ue,a:()=>$e,b:()=>Tr,c:()=>Wt,d:()=>Ln,e:()=>sr,f:()=>dt,g:()=>dn,h:()=>tt,i:()=>rn,j:()=>tr,k:()=>oe,r:()=>Wn,w:()=>ni});var h=D(467);var Oe=Object.defineProperty,ue={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},oe=z=>{const me=new URL(z,W.$resourcesUrl$);return me.origin!==bt.location.origin?me.href:me.pathname},Xe={},Qe=z=>"object"==(z=typeof z)||"function"===z;function Ze(z){var me,Ne,et;return null!=(et=null==(Ne=null==(me=z.head)?void 0:me.querySelector('meta[name="csp-nonce"]'))?void 0:Ne.getAttribute("content"))?et:void 0}((z,me)=>{for(var Ne in me)Oe(z,Ne,{get:me[Ne],enumerable:!0})})({},{err:()=>Tt,map:()=>St,ok:()=>ht,unwrap:()=>yt,unwrapErr:()=>_t});var ht=z=>({isOk:!0,isErr:!1,value:z}),Tt=z=>({isOk:!1,isErr:!0,value:z});function St(z,me){if(z.isOk){const Ne=me(z.value);return Ne instanceof Promise?Ne.then(et=>ht(et)):ht(Ne)}if(z.isErr)return Tt(z.value);throw"should never get here"}var yt=z=>{if(z.isOk)return z.value;throw z.value},_t=z=>{if(z.isErr)return z.value;throw z.value},Fe="s-id",xe="sty-id",vn="slot-fb{display:contents}slot-fb[hidden]{display:none}",Nt="http://www.w3.org/1999/xlink",tt=(z,me,...Ne)=>{let et=null,wt=null,It=null,Yt=!1,sn=!1;const cn=[],En=jn=>{for(let lr=0;lrjn[lr]).join(" "))}}if("function"==typeof z)return z(null===me?{}:me,cn,H);const Nn=on(z,null);return Nn.$attrs$=me,cn.length>0&&(Nn.$children$=cn),Nn.$key$=wt,Nn.$name$=It,Nn},on=(z,me)=>({$flags$:0,$tag$:z,$text$:me,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),dt={},H={forEach:(z,me)=>z.map(X).forEach(me),map:(z,me)=>z.map(X).map(me).map(fe)},X=z=>({vattrs:z.$attrs$,vchildren:z.$children$,vkey:z.$key$,vname:z.$name$,vtag:z.$tag$,vtext:z.$text$}),fe=z=>{if("function"==typeof z.vtag){const Ne={...z.vattrs};return z.vkey&&(Ne.key=z.vkey),z.vname&&(Ne.name=z.vname),tt(z.vtag,Ne,...z.vchildren||[])}const me=on(z.vtag,z.vtext);return me.$attrs$=z.vattrs,me.$children$=z.vchildren,me.$key$=z.vkey,me.$name$=z.vname,me},ve=(z,me,Ne,et,wt,It,Yt)=>{let sn,cn,En,Nn;if(1===It.nodeType){for(sn=It.getAttribute("c-id"),sn&&(cn=sn.split("."),(cn[0]===Yt||"0"===cn[0])&&(En={$flags$:0,$hostId$:cn[0],$nodeId$:cn[1],$depth$:cn[2],$index$:cn[3],$tag$:It.tagName.toLowerCase(),$elm$:It,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},me.push(En),It.removeAttribute("c-id"),z.$children$||(z.$children$=[]),z.$children$[En.$index$]=En,z=En,et&&"0"===En.$depth$&&(et[En.$index$]=En.$elm$))),Nn=It.childNodes.length-1;Nn>=0;Nn--)ve(z,me,Ne,et,wt,It.childNodes[Nn],Yt);if(It.shadowRoot)for(Nn=It.shadowRoot.childNodes.length-1;Nn>=0;Nn--)ve(z,me,Ne,et,wt,It.shadowRoot.childNodes[Nn],Yt)}else if(8===It.nodeType)cn=It.nodeValue.split("."),(cn[1]===Yt||"0"===cn[1])&&(sn=cn[0],En={$flags$:0,$hostId$:cn[1],$nodeId$:cn[2],$depth$:cn[3],$index$:cn[4],$elm$:It,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===sn?(En.$elm$=It.nextSibling,En.$elm$&&3===En.$elm$.nodeType&&(En.$text$=En.$elm$.textContent,me.push(En),It.remove(),z.$children$||(z.$children$=[]),z.$children$[En.$index$]=En,et&&"0"===En.$depth$&&(et[En.$index$]=En.$elm$))):En.$hostId$===Yt&&("s"===sn?(En.$tag$="slot",It["s-sn"]=cn[5]?En.$name$=cn[5]:"",It["s-sr"]=!0,et&&(En.$elm$=he.createElement(En.$tag$),En.$name$&&En.$elm$.setAttribute("name",En.$name$),It.parentNode.insertBefore(En.$elm$,It),It.remove(),"0"===En.$depth$&&(et[En.$index$]=En.$elm$)),Ne.push(En),z.$children$||(z.$children$=[]),z.$children$[En.$index$]=En):"r"===sn&&(et?It.remove():(wt["s-cr"]=It,It["s-cn"]=!0))));else if(z&&"style"===z.$tag$){const jn=on(null,It.textContent);jn.$elm$=It,jn.$index$="0",z.$children$=[jn]}},Le=(z,me)=>{if(1===z.nodeType){let Ne=0;for(;Neoi.push(z),dn=z=>mi(z).$modeName$,rn=z=>mi(z).$hostElement$,Ln=(z,me,Ne)=>{const et=rn(z);return{emit:wt=>Zn(et,me,{bubbles:!!(4&Ne),composed:!!(2&Ne),cancelable:!!(1&Ne),detail:wt})}},Zn=(z,me,Ne)=>{const et=W.ce(me,Ne);return z.dispatchEvent(et),et},nr=new WeakMap,er=(z,me,Ne)=>{let et=No.get(z);In&&Ne?(et=et||new CSSStyleSheet,"string"==typeof et?et=me:et.replaceSync(me)):et=me,No.set(z,et)},yr=(z,me,Ne)=>{var et;const wt=ir(me,Ne),It=No.get(wt);if(z=11===z.nodeType?z:he,It)if("string"==typeof It){let sn,Yt=nr.get(z=z.head||z);if(Yt||nr.set(z,Yt=new Set),!Yt.has(wt)){if(z.host&&(sn=z.querySelector(`[${xe}="${wt}"]`)))sn.innerHTML=It;else{sn=he.createElement("style"),sn.innerHTML=It;const cn=null!=(et=W.$nonce$)?et:Ze(he);null!=cn&&sn.setAttribute("nonce",cn),z.insertBefore(sn,z.querySelector("link"))}4&me.$flags$&&(sn.innerHTML+=vn),Yt&&Yt.add(wt)}}else z.adoptedStyleSheets.includes(It)||(z.adoptedStyleSheets=[...z.adoptedStyleSheets,It]);return wt},ir=(z,me)=>"sc-"+(me&&32&z.$flags$?z.$tagName$+"-"+me:z.$tagName$),nt=z=>z.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Ot=(z,me,Ne,et,wt,It)=>{if(Ne!==et){let Yt=ao(z,me),sn=me.toLowerCase();if("class"===me){const cn=z.classList,En=pn(Ne),Nn=pn(et);cn.remove(...En.filter(jn=>jn&&!Nn.includes(jn))),cn.add(...Nn.filter(jn=>jn&&!En.includes(jn)))}else if("style"===me){for(const cn in Ne)(!et||null==et[cn])&&(cn.includes("-")?z.style.removeProperty(cn):z.style[cn]="");for(const cn in et)(!Ne||et[cn]!==Ne[cn])&&(cn.includes("-")?z.style.setProperty(cn,et[cn]):z.style[cn]=et[cn])}else if("key"!==me)if("ref"===me)et&&et(z);else if(Yt||"o"!==me[0]||"n"!==me[1]){const cn=Qe(et);if((Yt||cn&&null!==et)&&!wt)try{if(z.tagName.includes("-"))z[me]=et;else{const Nn=null==et?"":et;"list"===me?Yt=!1:(null==Ne||z[me]!=Nn)&&(z[me]=Nn)}}catch{}let En=!1;sn!==(sn=sn.replace(/^xlink\:?/,""))&&(me=sn,En=!0),null==et||!1===et?(!1!==et||""===z.getAttribute(me))&&(En?z.removeAttributeNS(Nt,me):z.removeAttribute(me)):(!Yt||4&It||wt)&&!cn&&(et=!0===et?"":et,En?z.setAttributeNS(Nt,me,et):z.setAttribute(me,et))}else if(me="-"===me[2]?me.slice(3):ao(bt,sn)?sn.slice(2):sn[2]+me.slice(3),Ne||et){const cn=me.endsWith(gn);me=me.replace(Sr,""),Ne&&W.rel(z,me,Ne,cn),et&&W.ael(z,me,et,cn)}}},zt=/\s/,pn=z=>z?z.split(zt):[],gn="Capture",Sr=new RegExp(gn+"$"),Mn=(z,me,Ne)=>{const et=11===me.$elm$.nodeType&&me.$elm$.host?me.$elm$.host:me.$elm$,wt=z&&z.$attrs$||Xe,It=me.$attrs$||Xe;for(const Yt of xn(Object.keys(wt)))Yt in It||Ot(et,Yt,wt[Yt],void 0,Ne,me.$flags$);for(const Yt of xn(Object.keys(It)))Ot(et,Yt,wt[Yt],It[Yt],Ne,me.$flags$)};function xn(z){return z.includes("ref")?[...z.filter(me=>"ref"!==me),"ref"]:z}var mn,en,Er,Ir=!1,Nr=!1,Qn=!1,Dr=!1,Jn=(z,me,Ne,et)=>{var wt;const It=me.$children$[Ne];let sn,cn,En,Yt=0;if(Ir||(Qn=!0,"slot"===It.$tag$&&(mn&&et.classList.add(mn+"-s"),It.$flags$|=It.$children$?2:1)),null!==It.$text$)sn=It.$elm$=he.createTextNode(It.$text$);else if(1&It.$flags$)sn=It.$elm$=he.createTextNode("");else{if(Dr||(Dr="svg"===It.$tag$),sn=It.$elm$=he.createElementNS(Dr?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&It.$flags$?"slot-fb":It.$tag$),Dr&&"foreignObject"===It.$tag$&&(Dr=!1),Mn(null,It,Dr),(z=>null!=z)(mn)&&sn["s-si"]!==mn&&sn.classList.add(sn["s-si"]=mn),It.$children$)for(Yt=0;Yt{W.$flags$|=1;const me=z.closest(Er.toLowerCase());if(null!=me){const Ne=Array.from(me.childNodes).find(wt=>wt["s-cr"]),et=Array.from(z.childNodes);for(const wt of Ne?et.reverse():et)null!=wt["s-sh"]&&(Ee(me,wt,null!=Ne?Ne:null),wt["s-sh"]=void 0,Qn=!0)}W.$flags$&=-2},mr=(z,me)=>{W.$flags$|=1;const Ne=Array.from(z.childNodes);if(z["s-sr"]){let et=z;for(;et=et.nextSibling;)et&&et["s-sn"]===z["s-sn"]&&et["s-sh"]===Er&&Ne.push(et)}for(let et=Ne.length-1;et>=0;et--){const wt=Ne[et];wt["s-hn"]!==Er&&wt["s-ol"]&&(Ee(Ai(wt),wt,ii(wt)),wt["s-ol"].remove(),wt["s-ol"]=void 0,wt["s-sh"]=void 0,Qn=!0),me&&mr(wt,me)}W.$flags$&=-2},ur=(z,me,Ne,et,wt,It)=>{let sn,Yt=z["s-cr"]&&z["s-cr"].parentNode||z;for(Yt.shadowRoot&&Yt.tagName===Er&&(Yt=Yt.shadowRoot);wt<=It;++wt)et[wt]&&(sn=Jn(null,Ne,wt,z),sn&&(et[wt].$elm$=sn,Ee(Yt,sn,ii(me))))},Pr=(z,me,Ne)=>{for(let et=me;et<=Ne;++et){const wt=z[et];if(wt){const It=wt.$elm$;ce(wt),It&&(Nr=!0,It["s-ol"]?It["s-ol"].remove():mr(It,!0),It.remove())}}},kr=(z,me,Ne=!1)=>z.$tag$===me.$tag$&&("slot"===z.$tag$?z.$name$===me.$name$:!!Ne||z.$key$===me.$key$),ii=z=>z&&z["s-ol"]||z,Ai=z=>(z["s-ol"]?z["s-ol"]:z).parentNode,Qr=(z,me,Ne=!1)=>{const et=me.$elm$=z.$elm$,wt=z.$children$,It=me.$children$,Yt=me.$tag$,sn=me.$text$;let cn;null===sn?(Dr="svg"===Yt||"foreignObject"!==Yt&&Dr,"slot"!==Yt||Ir?Mn(z,me,Dr):z.$name$!==me.$name$&&(me.$elm$["s-sn"]=me.$name$||"",Jr(me.$elm$.parentElement)),null!==wt&&null!==It?((z,me,Ne,et,wt=!1)=>{let jr,br,It=0,Yt=0,sn=0,cn=0,En=me.length-1,Nn=me[0],jn=me[En],lr=et.length-1,Vn=et[0],qr=et[lr];for(;It<=En&&Yt<=lr;)if(null==Nn)Nn=me[++It];else if(null==jn)jn=me[--En];else if(null==Vn)Vn=et[++Yt];else if(null==qr)qr=et[--lr];else if(kr(Nn,Vn,wt))Qr(Nn,Vn,wt),Nn=me[++It],Vn=et[++Yt];else if(kr(jn,qr,wt))Qr(jn,qr,wt),jn=me[--En],qr=et[--lr];else if(kr(Nn,qr,wt))("slot"===Nn.$tag$||"slot"===qr.$tag$)&&mr(Nn.$elm$.parentNode,!1),Qr(Nn,qr,wt),Ee(z,Nn.$elm$,jn.$elm$.nextSibling),Nn=me[++It],qr=et[--lr];else if(kr(jn,Vn,wt))("slot"===Nn.$tag$||"slot"===qr.$tag$)&&mr(jn.$elm$.parentNode,!1),Qr(jn,Vn,wt),Ee(z,jn.$elm$,Nn.$elm$),jn=me[--En],Vn=et[++Yt];else{for(sn=-1,cn=It;cn<=En;++cn)if(me[cn]&&null!==me[cn].$key$&&me[cn].$key$===Vn.$key$){sn=cn;break}sn>=0?(br=me[sn],br.$tag$!==Vn.$tag$?jr=Jn(me&&me[Yt],Ne,sn,z):(Qr(br,Vn,wt),me[sn]=void 0,jr=br.$elm$),Vn=et[++Yt]):(jr=Jn(me&&me[Yt],Ne,Yt,z),Vn=et[++Yt]),jr&&Ee(Ai(Nn.$elm$),jr,ii(Nn.$elm$))}It>En?ur(z,null==et[lr+1]?null:et[lr+1].$elm$,Ne,et,Yt,lr):Yt>lr&&Pr(me,It,En)})(et,wt,me,It,Ne):null!==It?(null!==z.$text$&&(et.textContent=""),ur(et,null,me,It,0,It.length-1)):null!==wt&&Pr(wt,0,wt.length-1),Dr&&"svg"===Yt&&(Dr=!1)):(cn=et["s-cr"])?cn.parentNode.textContent=sn:z.$text$!==sn&&(et.data=sn)},pe=z=>{const me=z.childNodes;for(const Ne of me)if(1===Ne.nodeType){if(Ne["s-sr"]){const et=Ne["s-sn"];Ne.hidden=!1;for(const wt of me)if(wt!==Ne)if(wt["s-hn"]!==Ne["s-hn"]||""!==et){if(1===wt.nodeType&&(et===wt.getAttribute("slot")||et===wt["s-sn"])||3===wt.nodeType&&et===wt["s-sn"]){Ne.hidden=!0;break}}else if(1===wt.nodeType||3===wt.nodeType&&""!==wt.textContent.trim()){Ne.hidden=!0;break}}pe(Ne)}},it=[],Mt=z=>{let me,Ne,et;for(const wt of z.childNodes){if(wt["s-sr"]&&(me=wt["s-cr"])&&me.parentNode){Ne=me.parentNode.childNodes;const It=wt["s-sn"];for(et=Ne.length-1;et>=0;et--)if(me=Ne[et],!(me["s-cn"]||me["s-nr"]||me["s-hn"]===wt["s-hn"]||me["s-sh"]&&me["s-sh"]===wt["s-hn"]))if(ut(me,It)){let Yt=it.find(sn=>sn.$nodeToRelocate$===me);Nr=!0,me["s-sn"]=me["s-sn"]||It,Yt?(Yt.$nodeToRelocate$["s-sh"]=wt["s-hn"],Yt.$slotRefNode$=wt):(me["s-sh"]=wt["s-hn"],it.push({$slotRefNode$:wt,$nodeToRelocate$:me})),me["s-sr"]&&it.map(sn=>{ut(sn.$nodeToRelocate$,me["s-sn"])&&(Yt=it.find(cn=>cn.$nodeToRelocate$===me),Yt&&!sn.$slotRefNode$&&(sn.$slotRefNode$=Yt.$slotRefNode$))})}else it.some(Yt=>Yt.$nodeToRelocate$===me)||it.push({$nodeToRelocate$:me})}1===wt.nodeType&&Mt(wt)}},ut=(z,me)=>1===z.nodeType?null===z.getAttribute("slot")&&""===me||z.getAttribute("slot")===me:z["s-sn"]===me||""===me,ce=z=>{z.$attrs$&&z.$attrs$.ref&&z.$attrs$.ref(null),z.$children$&&z.$children$.map(ce)},Ee=(z,me,Ne)=>{const et=null==z?void 0:z.insertBefore(me,Ne);return Lt(me,z),et},He=z=>z?z["s-rsc"]||z["s-si"]||z["s-sc"]||He(z.parentElement):void 0,Lt=(z,me)=>{var Ne,et,wt;if(z&&me){const It=z["s-rsc"],Yt=He(me);It&&null!=(Ne=z.classList)&&Ne.contains(It)&&z.classList.remove(It),Yt&&(z["s-rsc"]=Yt,(null==(et=z.classList)||!et.contains(Yt))&&(null==(wt=z.classList)||wt.add(Yt)))}},ct=(z,me)=>{me&&!z.$onRenderResolve$&&me["s-p"]&&me["s-p"].push(new Promise(Ne=>z.$onRenderResolve$=Ne))},lt=(z,me)=>{if(z.$flags$|=16,!(4&z.$flags$))return ct(z,z.$ancestorComponent$),ni(()=>Gt(z,me));z.$flags$|=512},Gt=(z,me)=>{const et=z.$lazyInstance$;let wt;return me&&(z.$flags$|=256,z.$queuedListeners$&&(z.$queuedListeners$.map(([It,Yt])=>dr(et,It,Yt)),z.$queuedListeners$=void 0),wt=dr(et,"componentWillLoad")),wt=tn(wt,()=>dr(et,"componentWillRender")),tn(wt,()=>qn(z,et,me))},tn=(z,me)=>_n(z)?z.then(me):me(),_n=z=>z instanceof Promise||z&&z.then&&"function"==typeof z.then,qn=function(){var z=(0,h.A)(function*(me,Ne,et){var wt;const It=me.$hostElement$,sn=It["s-rc"];et&&(z=>{const me=z.$cmpMeta$,Ne=z.$hostElement$,et=me.$flags$,It=yr(Ne.shadowRoot?Ne.shadowRoot:Ne.getRootNode(),me,z.$modeName$);10&et&&(Ne["s-sc"]=It,Ne.classList.add(It+"-h"),2&et&&Ne.classList.add(It+"-s"))})(me);hn(me,Ne,It,et),sn&&(sn.map(En=>En()),It["s-rc"]=void 0);{const En=null!=(wt=It["s-p"])?wt:[],Nn=()=>Cn(me);0===En.length?Nn():(Promise.all(En).then(Nn),me.$flags$|=4,En.length=0)}});return function(Ne,et,wt){return z.apply(this,arguments)}}(),hn=(z,me,Ne,et)=>{try{me=me.render&&me.render(),z.$flags$&=-17,z.$flags$|=2,((z,me,Ne=!1)=>{var et,wt,It,Yt,sn;const cn=z.$hostElement$,En=z.$cmpMeta$,Nn=z.$vnode$||on(null,null),jn=(z=>z&&z.$tag$===dt)(me)?me:tt(null,null,me);if(Er=cn.tagName,En.$attrsToReflect$&&(jn.$attrs$=jn.$attrs$||{},En.$attrsToReflect$.map(([lr,Vn])=>jn.$attrs$[Vn]=cn[lr])),Ne&&jn.$attrs$)for(const lr of Object.keys(jn.$attrs$))cn.hasAttribute(lr)&&!["key","ref","style","class"].includes(lr)&&(jn.$attrs$[lr]=cn[lr]);if(jn.$tag$=null,jn.$flags$|=4,z.$vnode$=jn,jn.$elm$=Nn.$elm$=cn.shadowRoot||cn,mn=cn["s-sc"],Ir=!!(1&En.$flags$),en=cn["s-cr"],Nr=!1,Qr(Nn,jn,Ne),W.$flags$|=1,Qn){Mt(jn.$elm$);for(const lr of it){const Vn=lr.$nodeToRelocate$;if(!Vn["s-ol"]){const qr=he.createTextNode("");qr["s-nr"]=Vn,Ee(Vn.parentNode,Vn["s-ol"]=qr,Vn)}}for(const lr of it){const Vn=lr.$nodeToRelocate$,qr=lr.$slotRefNode$;if(qr){const jr=qr.parentNode;let br=qr.nextSibling;if(br&&1===br.nodeType){let wi=null==(et=Vn["s-ol"])?void 0:et.previousSibling;for(;wi;){let Ni=null!=(wt=wi["s-nr"])?wt:null;if(Ni&&Ni["s-sn"]===Vn["s-sn"]&&jr===Ni.parentNode){for(Ni=Ni.nextSibling;Ni===Vn||null!=Ni&&Ni["s-sr"];)Ni=null==Ni?void 0:Ni.nextSibling;if(!Ni||!Ni["s-nr"]){br=Ni;break}}wi=wi.previousSibling}}(!br&&jr!==Vn.parentNode||Vn.nextSibling!==br)&&Vn!==br&&(Ee(jr,Vn,br),1===Vn.nodeType&&(Vn.hidden=null!=(It=Vn["s-ih"])&&It)),Vn&&"function"==typeof qr["s-rf"]&&qr["s-rf"](Vn)}else 1===Vn.nodeType&&(Ne&&(Vn["s-ih"]=null!=(Yt=Vn.hidden)&&Yt),Vn.hidden=!0)}}if(Nr&&pe(jn.$elm$),W.$flags$&=-2,it.length=0,2&En.$flags$)for(const lr of jn.$elm$.childNodes)lr["s-hn"]!==Er&&!lr["s-sh"]&&(Ne&&null==lr["s-ih"]&&(lr["s-ih"]=null!=(sn=lr.hidden)&&sn),lr.hidden=!0);en=void 0})(z,me,et)}catch(wt){ui(wt,z.$hostElement$)}return null},Cn=z=>{const Ne=z.$hostElement$,wt=z.$lazyInstance$,It=z.$ancestorComponent$;dr(wt,"componentDidRender"),64&z.$flags$?dr(wt,"componentDidUpdate"):(z.$flags$|=64,$r(Ne),dr(wt,"componentDidLoad"),z.$onReadyResolve$(Ne),It||Ar()),z.$onInstanceResolve$(Ne),z.$onRenderResolve$&&(z.$onRenderResolve$(),z.$onRenderResolve$=void 0),512&z.$flags$&&ot(()=>lt(z,!1)),z.$flags$&=-517},tr=z=>{{const me=mi(z),Ne=me.$hostElement$.isConnected;return Ne&&2==(18&me.$flags$)&<(me,!1),Ne}},Ar=z=>{$r(he.documentElement),ot(()=>Zn(bt,"appload",{detail:{namespace:"ionic"}}))},dr=(z,me,Ne)=>{if(z&&z[me])try{return z[me](Ne)}catch(et){ui(et)}},$r=z=>z.classList.add("hydrated"),Ri=(z,me,Ne)=>{var et;const wt=z.prototype;if(me.$members$){z.watchers&&(me.$watchers$=z.watchers);const It=Object.entries(me.$members$);if(It.map(([Yt,[sn]])=>{31&sn||2&Ne&&32&sn?Object.defineProperty(wt,Yt,{get(){return((z,me)=>mi(this).$instanceValues$.get(me))(0,Yt)},set(cn){((z,me,Ne,et)=>{const wt=mi(z);if(!wt)throw new Error(`Couldn't find host element for "${et.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const It=wt.$hostElement$,Yt=wt.$instanceValues$.get(me),sn=wt.$flags$,cn=wt.$lazyInstance$;Ne=((z,me)=>null==z||Qe(z)?z:4&me?"false"!==z&&(""===z||!!z):2&me?parseFloat(z):1&me?String(z):z)(Ne,et.$members$[me][0]);const En=Number.isNaN(Yt)&&Number.isNaN(Ne);if((!(8&sn)||void 0===Yt)&&Ne!==Yt&&!En&&(wt.$instanceValues$.set(me,Ne),cn)){if(et.$watchers$&&128&sn){const jn=et.$watchers$[me];jn&&jn.map(lr=>{try{cn[lr](Ne,Yt,me)}catch(Vn){ui(Vn,It)}})}2==(18&sn)&<(wt,!1)}})(this,Yt,cn,me)},configurable:!0,enumerable:!0}):1&Ne&&64&sn&&Object.defineProperty(wt,Yt,{value(...cn){var En;const Nn=mi(this);return null==(En=null==Nn?void 0:Nn.$onInstancePromise$)?void 0:En.then(()=>{var jn;return null==(jn=Nn.$lazyInstance$)?void 0:jn[Yt](...cn)})}})}),1&Ne){const Yt=new Map;wt.attributeChangedCallback=function(sn,cn,En){W.jmp(()=>{var Nn;const jn=Yt.get(sn);if(this.hasOwnProperty(jn))En=this[jn],delete this[jn];else{if(wt.hasOwnProperty(jn)&&"number"==typeof this[jn]&&this[jn]==En)return;if(null==jn){const lr=mi(this),Vn=null==lr?void 0:lr.$flags$;if(Vn&&!(8&Vn)&&128&Vn&&En!==cn){const qr=lr.$lazyInstance$,jr=null==(Nn=me.$watchers$)?void 0:Nn[sn];null==jr||jr.forEach(br=>{null!=qr[br]&&qr[br].call(qr,En,cn,sn)})}return}}this[jn]=(null!==En||"boolean"!=typeof this[jn])&&En})},z.observedAttributes=Array.from(new Set([...Object.keys(null!=(et=me.$watchers$)?et:{}),...It.filter(([sn,cn])=>15&cn[0]).map(([sn,cn])=>{var En;const Nn=cn[1]||sn;return Yt.set(Nn,sn),512&cn[0]&&(null==(En=me.$attrsToReflect$)||En.push([sn,Nn])),Nn})]))}}return z},gi=function(){var z=(0,h.A)(function*(me,Ne,et,wt){let It;if(!(32&Ne.$flags$)){if(Ne.$flags$|=32,et.$lazyBundleId$){if(It=Eo(et),It.then){const Nn=()=>{};It=yield It,Nn()}It.isProxied||(et.$watchers$=It.watchers,Ri(It,et,2),It.isProxied=!0);const En=()=>{};Ne.$flags$|=8;try{new It(Ne)}catch(Nn){ui(Nn)}Ne.$flags$&=-9,Ne.$flags$|=128,En(),pr(Ne.$lazyInstance$)}else It=me.constructor,customElements.whenDefined(et.$tagName$).then(()=>Ne.$flags$|=128);if(It.style){let En=It.style;"string"!=typeof En&&(En=En[Ne.$modeName$=(z=>oi.map(me=>me(z)).find(me=>!!me))(me)]);const Nn=ir(et,Ne.$modeName$);if(!No.has(Nn)){const jn=()=>{};er(Nn,En,!!(1&et.$flags$)),jn()}}}const Yt=Ne.$ancestorComponent$,sn=()=>lt(Ne,!0);Yt&&Yt["s-rc"]?Yt["s-rc"].push(sn):sn()});return function(Ne,et,wt,It){return z.apply(this,arguments)}}(),pr=z=>{dr(z,"connectedCallback")},ne=z=>{const me=z["s-cr"]=he.createComment("");me["s-cn"]=!0,Ee(z,me,z.firstChild)},ee=z=>{dr(z,"disconnectedCallback")},je=function(){var z=(0,h.A)(function*(me){if(!(1&W.$flags$)){const Ne=mi(me);Ne.$rmListeners$&&(Ne.$rmListeners$.map(et=>et()),Ne.$rmListeners$=void 0),null!=Ne&&Ne.$lazyInstance$?ee(Ne.$lazyInstance$):null!=Ne&&Ne.$onReadyPromise$&&Ne.$onReadyPromise$.then(()=>ee(Ne.$lazyInstance$))}});return function(Ne){return z.apply(this,arguments)}}(),x=z=>{const me=z.cloneNode;z.cloneNode=function(Ne){const et=this,wt=et.shadowRoot&&Ve,It=me.call(et,!!wt&&Ne);if(!wt&&Ne){let sn,cn,Yt=0;const En=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-rsc"];for(;Yt!et.childNodes[Yt][Nn]),sn&&(It.__appendChild?It.__appendChild(sn.cloneNode(!0)):It.appendChild(sn.cloneNode(!0))),cn&&It.appendChild(et.childNodes[Yt].cloneNode(!0))}return It}},te=z=>{z.__appendChild=z.appendChild,z.appendChild=function(me){const Ne=me["s-sn"]=Fr(me),et=Or(this.childNodes,Ne,this.tagName);if(et){const wt=zr(et,Ne),It=wt[wt.length-1],Yt=Ee(It.parentNode,me,It.nextSibling);return pe(this),Yt}return this.__appendChild(me)}},Te=z=>{z.__removeChild=z.removeChild,z.removeChild=function(me){if(me&&typeof me["s-sn"]<"u"){const Ne=Or(this.childNodes,me["s-sn"],this.tagName);if(Ne){const wt=zr(Ne,me["s-sn"]).find(It=>It===me);if(wt)return wt.remove(),void pe(this)}}return this.__removeChild(me)}},Ge=z=>{const me=z.prepend;z.prepend=function(...Ne){Ne.forEach(et=>{"string"==typeof et&&(et=this.ownerDocument.createTextNode(et));const wt=et["s-sn"]=Fr(et),It=Or(this.childNodes,wt,this.tagName);if(It){const Yt=document.createTextNode("");Yt["s-nr"]=et,It["s-cr"].parentNode.__appendChild(Yt),et["s-ol"]=Yt;const cn=zr(It,wt)[0];return Ee(cn.parentNode,et,cn.nextSibling)}return 1===et.nodeType&&et.getAttribute("slot")&&(et.hidden=!0),me.call(this,et)})}},Ct=z=>{z.append=function(...me){me.forEach(Ne=>{"string"==typeof Ne&&(Ne=this.ownerDocument.createTextNode(Ne)),this.appendChild(Ne)})}},Jt=z=>{const me=z.insertAdjacentHTML;z.insertAdjacentHTML=function(Ne,et){if("afterbegin"!==Ne&&"beforeend"!==Ne)return me.call(this,Ne,et);const wt=this.ownerDocument.createElement("_");let It;if(wt.innerHTML=et,"afterbegin"===Ne)for(;It=wt.firstChild;)this.prepend(It);else if("beforeend"===Ne)for(;It=wt.firstChild;)this.append(It)}},ln=z=>{z.insertAdjacentText=function(me,Ne){this.insertAdjacentHTML(me,Ne)}},or=z=>{const me=z.insertAdjacentElement;z.insertAdjacentElement=function(Ne,et){return"afterbegin"!==Ne&&"beforeend"!==Ne?me.call(this,Ne,et):"afterbegin"===Ne?(this.prepend(et),et):("beforeend"===Ne&&this.append(et),et)}},Un=z=>{const me=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(z,"__textContent",me),Object.defineProperty(z,"textContent",{get(){return" "+On(this.childNodes).map(wt=>{var It,Yt;const sn=[];let cn=wt.nextSibling;for(;cn&&cn["s-sn"]===wt["s-sn"];)(3===cn.nodeType||1===cn.nodeType)&&sn.push(null!=(Yt=null==(It=cn.textContent)?void 0:It.trim())?Yt:""),cn=cn.nextSibling;return sn.filter(En=>""!==En).join(" ")}).filter(wt=>""!==wt).join(" ")+" "},set(Ne){On(this.childNodes).forEach(wt=>{let It=wt.nextSibling;for(;It&&It["s-sn"]===wt["s-sn"];){const Yt=It;It=It.nextSibling,Yt.remove()}if(""===wt["s-sn"]){const Yt=this.ownerDocument.createTextNode(Ne);Yt["s-sn"]="",Ee(wt.parentElement,Yt,wt.nextSibling)}else wt.remove()})}})},xr=(z,me)=>{class Ne extends Array{item(wt){return this[wt]}}if(8&me.$flags$){const et=z.__lookupGetter__("childNodes");Object.defineProperty(z,"children",{get(){return this.childNodes.map(wt=>1===wt.nodeType)}}),Object.defineProperty(z,"childElementCount",{get:()=>z.children.length}),Object.defineProperty(z,"childNodes",{get(){const wt=et.call(this);if(!(1&W.$flags$)&&2&mi(this).$flags$){const It=new Ne;for(let Yt=0;Yt{const me=[];for(const Ne of Array.from(z))Ne["s-sr"]&&me.push(Ne),me.push(...On(Ne.childNodes));return me},Fr=z=>z["s-sn"]||1===z.nodeType&&z.getAttribute("slot")||"",Or=(z,me,Ne)=>{let wt,et=0;for(;et{const Ne=[z];for(;(z=z.nextSibling)&&z["s-sn"]===me;)Ne.push(z);return Ne},Tr=(z,me={})=>{var Ne;const wt=[],It=me.exclude||[],Yt=bt.customElements,sn=he.head,cn=sn.querySelector("meta[charset]"),En=he.createElement("style"),Nn=[],jn=he.querySelectorAll(`[${xe}]`);let lr,Vn=!0,qr=0;for(Object.assign(W,me),W.$resourcesUrl$=new URL(me.resourcesUrl||"./",he.baseURI).href,W.$flags$|=2;qr{br[1].map(wi=>{var Ni;const ki={$flags$:wi[0],$tagName$:wi[1],$members$:wi[2],$listeners$:wi[3]};4&ki.$flags$&&(jr=!0),ki.$members$=wi[2],ki.$listeners$=wi[3],ki.$attrsToReflect$=[],ki.$watchers$=null!=(Ni=wi[4])?Ni:{};const ho=ki.$tagName$,as=class extends HTMLElement{constructor(Ur){super(Ur),Hn(Ur=this,ki),1&ki.$flags$&&Ur.attachShadow({mode:"open",delegatesFocus:!!(16&ki.$flags$)})}connectedCallback(){lr&&(clearTimeout(lr),lr=null),Vn?Nn.push(this):W.jmp(()=>(z=>{if(!(1&W.$flags$)){const me=mi(z),Ne=me.$cmpMeta$,et=()=>{};if(1&me.$flags$)Gn(z,me,Ne.$listeners$),null!=me&&me.$lazyInstance$?pr(me.$lazyInstance$):null!=me&&me.$onReadyPromise$&&me.$onReadyPromise$.then(()=>pr(me.$lazyInstance$));else{let wt;if(me.$flags$|=1,wt=z.getAttribute(Fe),wt){if(1&Ne.$flags$){const It=yr(z.shadowRoot,Ne,z.getAttribute("s-mode"));z.classList.remove(It+"-h",It+"-s")}((z,me,Ne,et)=>{const It=z.shadowRoot,Yt=[],cn=It?[]:null,En=et.$vnode$=on(me,null);W.$orgLocNodes$||Le(he.body,W.$orgLocNodes$=new Map),z[Fe]=Ne,z.removeAttribute(Fe),ve(En,Yt,[],cn,z,z,Ne),Yt.map(Nn=>{const jn=Nn.$hostId$+"."+Nn.$nodeId$,lr=W.$orgLocNodes$.get(jn),Vn=Nn.$elm$;lr&&Ve&&""===lr["s-en"]&&lr.parentNode.insertBefore(Vn,lr.nextSibling),It||(Vn["s-hn"]=me,lr&&(Vn["s-ol"]=lr,Vn["s-ol"]["s-nr"]=Vn)),W.$orgLocNodes$.delete(jn)}),It&&cn.map(Nn=>{Nn&&It.appendChild(Nn)})})(z,Ne.$tagName$,wt,me)}wt||12&Ne.$flags$&&ne(z);{let It=z;for(;It=It.parentNode||It.host;)if(1===It.nodeType&&It.hasAttribute("s-id")&&It["s-p"]||It["s-p"]){ct(me,me.$ancestorComponent$=It);break}}Ne.$members$&&Object.entries(Ne.$members$).map(([It,[Yt]])=>{if(31&Yt&&z.hasOwnProperty(It)){const sn=z[It];delete z[It],z[It]=sn}}),gi(z,me,Ne)}et()}})(this))}disconnectedCallback(){W.jmp(()=>je(this))}componentOnReady(){return mi(this).$onReadyPromise$}};2&ki.$flags$&&((z,me)=>{x(z),te(z),Ct(z),Ge(z),or(z),Jt(z),ln(z),Un(z),xr(z,me),Te(z)})(as.prototype,ki),ki.$lazyBundleId$=br[0],!It.includes(ho)&&!Yt.get(ho)&&(wt.push(ho),Yt.define(ho,Ri(as,ki,1)))})}),wt.length>0&&(jr&&(En.textContent+=vn),En.textContent+=wt+"{visibility:hidden}.hydrated{visibility:inherit}",En.innerHTML.length)){En.setAttribute("data-styles","");const br=null!=(Ne=W.$nonce$)?Ne:Ze(he);null!=br&&En.setAttribute("nonce",br),sn.insertBefore(En,cn?cn.nextSibling:sn.firstChild)}Vn=!1,Nn.length?Nn.map(br=>br.connectedCallback()):W.jmp(()=>lr=setTimeout(Ar,30))},Gn=(z,me,Ne,et)=>{Ne&&Ne.map(([wt,It,Yt])=>{const sn=ai(z,wt),cn=Cr(me,Yt),En=li(wt);W.ael(sn,It,cn,En),(me.$rmListeners$=me.$rmListeners$||[]).push(()=>W.rel(sn,It,cn,En))})},Cr=(z,me)=>Ne=>{try{256&z.$flags$?z.$lazyInstance$[me](Ne):(z.$queuedListeners$=z.$queuedListeners$||[]).push([me,Ne])}catch(et){ui(et)}},ai=(z,me)=>4&me?he:8&me?bt:16&me?he.body:z,li=z=>st?{passive:!!(1&z),capture:!!(2&z)}:!!(2&z),Lr=new WeakMap,mi=z=>Lr.get(z),Wn=(z,me)=>Lr.set(me.$lazyInstance$=z,me),Hn=(z,me)=>{const Ne={$flags$:0,$hostElement$:z,$cmpMeta$:me,$instanceValues$:new Map};return Ne.$onInstancePromise$=new Promise(et=>Ne.$onInstanceResolve$=et),Ne.$onReadyPromise$=new Promise(et=>Ne.$onReadyResolve$=et),z["s-p"]=[],z["s-rc"]=[],Gn(z,Ne,me.$listeners$),Lr.set(z,Ne)},ao=(z,me)=>me in z,ui=(z,me)=>(0,console.error)(z,me),Ci=new Map,Eo=(z,me,Ne)=>{const et=z.$tagName$.replace(/-/g,"_"),wt=z.$lazyBundleId$,It=Ci.get(wt);return It?It[et]:D(8996)(`./${wt}.entry.js`).then(Yt=>(Ci.set(wt,Yt),Yt[et]),ui)},No=new Map,oi=[],bt=typeof window<"u"?window:{},he=bt.document||{head:{}},W={$flags$:0,$resourcesUrl$:"",jmp:z=>z(),raf:z=>requestAnimationFrame(z),ael:(z,me,Ne,et)=>z.addEventListener(me,Ne,et),rel:(z,me,Ne,et)=>z.removeEventListener(me,Ne,et),ce:(z,me)=>new CustomEvent(z,me)},$e=z=>{Object.assign(W,z)},Ve=!0,st=(()=>{let z=!1;try{he.addEventListener("e",null,Object.defineProperty({},"passive",{get(){z=!0}}))}catch{}return z})(),In=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Fn=!1,w=[],j=[],re=(z,me)=>Ne=>{z.push(Ne),Fn||(Fn=!0,me&&4&W.$flags$?ot(Ie):W.raf(Ie))},P=z=>{for(let me=0;me{P(w),P(j),(Fn=w.length>0)&&W.raf(Ie)},ot=z=>Promise.resolve(void 0).then(z),sr=re(w,!1),ni=re(j,!0)},2725:(Tn,gt,D)=>{"use strict";D.d(gt,{b:()=>Xe,c:()=>Je,d:()=>Se,e:()=>tt,g:()=>we,l:()=>vn,s:()=>on,t:()=>yt,w:()=>Nt});var h=D(467),c=D(3664),Z=D(9672),Oe=D(4929),U=D(4920);const Xe="ionViewWillLeave",Je="ionViewDidLeave",Se="ionViewWillUnload",De=H=>{H.tabIndex=-1,H.focus()},Qe=H=>null!==H.offsetParent,qe="ion-last-focus",St_saveViewFocus=fe=>{if(c.c.get("focusManagerPriority",!1)){const ve=document.activeElement;null!==ve&&null!=fe&&fe.contains(ve)&&ve.setAttribute(qe,"true")}},St_setViewFocus=fe=>{const se=c.c.get("focusManagerPriority",!1);if(Array.isArray(se)&&!fe.contains(document.activeElement)){const ve=fe.querySelector(`[${qe}]`);if(ve&&Qe(ve))return void De(ve);for(const Le of se)switch(Le){case"content":const _e=fe.querySelector('main, [role="main"]');if(_e&&Qe(_e))return void De(_e);break;case"heading":const Wt=fe.querySelector('h1, [role="heading"][aria-level="1"]');if(Wt&&Qe(Wt))return void De(Wt);break;case"banner":const dn=fe.querySelector('header, [role="banner"]');if(dn&&Qe(dn))return void De(dn);break;default:(0,Oe.p)(`Unrecognized focus manager priority value ${Le}`)}De(fe)}},yt=H=>new Promise((X,fe)=>{(0,Z.w)(()=>{_t(H),Et(H).then(se=>{se.animation&&se.animation.destroy(),mt(H),X(se)},se=>{mt(H),fe(se)})})}),_t=H=>{const X=H.enteringEl,fe=H.leavingEl;St_saveViewFocus(fe),dt(X,fe,H.direction),H.showGoBack?X.classList.add("can-go-back"):X.classList.remove("can-go-back"),on(X,!1),X.style.setProperty("pointer-events","none"),fe&&(on(fe,!1),fe.style.setProperty("pointer-events","none"))},Et=function(){var H=(0,h.A)(function*(X){const fe=yield Me(X);return fe&&Z.B.isBrowser?Ye(fe,X):ge(X)});return function(fe){return H.apply(this,arguments)}}(),mt=H=>{const X=H.enteringEl,fe=H.leavingEl;X.classList.remove("ion-page-invisible"),X.style.removeProperty("pointer-events"),void 0!==fe&&(fe.classList.remove("ion-page-invisible"),fe.style.removeProperty("pointer-events")),St_setViewFocus(X)},Me=function(){var H=(0,h.A)(function*(X){return X.leavingEl&&X.animated&&0!==X.duration?X.animationBuilder?X.animationBuilder:"ios"===X.mode?(yield Promise.resolve().then(D.bind(D,8454))).iosTransitionAnimation:(yield Promise.resolve().then(D.bind(D,3314))).mdTransitionAnimation:void 0});return function(fe){return H.apply(this,arguments)}}(),Ye=function(){var H=(0,h.A)(function*(X,fe){yield Ue(fe,!0);const se=X(fe.baseEl,fe);rt(fe.enteringEl,fe.leavingEl);const ve=yield xe(se,fe);return fe.progressCallback&&fe.progressCallback(void 0),ve&&Rt(fe.enteringEl,fe.leavingEl),{hasCompleted:ve,animation:se}});return function(fe,se){return H.apply(this,arguments)}}(),ge=function(){var H=(0,h.A)(function*(X){const fe=X.enteringEl,se=X.leavingEl,ve=c.c.get("focusManagerPriority",!1);return yield Ue(X,ve),rt(fe,se),Rt(fe,se),{hasCompleted:!0}});return function(fe){return H.apply(this,arguments)}}(),Ue=function(){var H=(0,h.A)(function*(X,fe){(void 0!==X.deepWait?X.deepWait:fe)&&(yield Promise.all([tt(X.enteringEl),tt(X.leavingEl)])),yield Fe(X.viewIsReady,X.enteringEl)});return function(fe,se){return H.apply(this,arguments)}}(),Fe=function(){var H=(0,h.A)(function*(X,fe){X&&(yield X(fe))});return function(fe,se){return H.apply(this,arguments)}}(),xe=(H,X)=>{const fe=X.progressCallback,se=new Promise(ve=>{H.onFinish(Le=>ve(1===Le))});return fe?(H.progressStart(!0),fe(H)):H.play(),se},rt=(H,X)=>{vn(X,Xe),vn(H,"ionViewWillEnter")},Rt=(H,X)=>{vn(H,"ionViewDidEnter"),vn(X,Je)},vn=(H,X)=>{if(H){const fe=new CustomEvent(X,{bubbles:!1,cancelable:!1});H.dispatchEvent(fe)}},Nt=()=>new Promise(H=>(0,U.r)(()=>(0,U.r)(()=>H()))),tt=function(){var H=(0,h.A)(function*(X){const fe=X;if(fe){if(null!=fe.componentOnReady){if(null!=(yield fe.componentOnReady()))return}else if(null!=fe.__registerHost)return void(yield new Promise(ve=>(0,U.r)(ve)));yield Promise.all(Array.from(fe.children).map(tt))}});return function(fe){return H.apply(this,arguments)}}(),on=(H,X)=>{X?(H.setAttribute("aria-hidden","true"),H.classList.add("ion-page-hidden")):(H.hidden=!1,H.removeAttribute("aria-hidden"),H.classList.remove("ion-page-hidden"))},dt=(H,X,fe)=>{void 0!==H&&(H.style.zIndex="back"===fe?"99":"101"),void 0!==X&&(X.style.zIndex="100")},we=H=>H.classList.contains("ion-page")?H:H.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||H},4929:(Tn,gt,D)=>{"use strict";D.d(gt,{a:()=>c,b:()=>Z,p:()=>h});const h=(Oe,...U)=>console.warn(`[Ionic Warning]: ${Oe}`,...U),c=(Oe,...U)=>console.error(`[Ionic Error]: ${Oe}`,...U),Z=(Oe,...U)=>console.error(`<${Oe.tagName.toLowerCase()}> must be used inside ${U.join(" or ")}.`)},8476:(Tn,gt,D)=>{"use strict";D.d(gt,{d:()=>c,w:()=>h});const h=typeof window<"u"?window:void 0,c=typeof document<"u"?document:void 0},3664:(Tn,gt,D)=>{"use strict";D.d(gt,{a:()=>De,b:()=>on,c:()=>Z,i:()=>dt});var h=D(9672);class c{constructor(){this.m=new Map}reset(H){this.m=new Map(Object.entries(H))}get(H,X){const fe=this.m.get(H);return void 0!==fe?fe:X}getBoolean(H,X=!1){const fe=this.m.get(H);return void 0===fe?X:"string"==typeof fe?"true"===fe:!!fe}getNumber(H,X){const fe=parseFloat(this.m.get(H));return isNaN(fe)?void 0!==X?X:NaN:fe}set(H,X){this.m.set(H,X)}}const Z=new c,Je="ionic-persist-config",De=(we,H)=>("string"==typeof we&&(H=we,we=void 0),(we=>Qe(we))(we).includes(H)),Qe=(we=window)=>{if(typeof we>"u")return[];we.Ionic=we.Ionic||{};let H=we.Ionic.platforms;return null==H&&(H=we.Ionic.platforms=Ze(we),H.forEach(X=>we.document.documentElement.classList.add(`plt-${X}`))),H},Ze=we=>{const H=Z.get("platform");return Object.keys(Nt).filter(X=>{const fe=null==H?void 0:H[X];return"function"==typeof fe?fe(we):Nt[X](we)})},ht=we=>!!(Rt(we,/iPad/i)||Rt(we,/Macintosh/i)&&Me(we)),yt=we=>Rt(we,/android|sink/i),Me=we=>vn(we,"(any-pointer:coarse)"),ge=we=>Ue(we)||Fe(we),Ue=we=>!!(we.cordova||we.phonegap||we.PhoneGap),Fe=we=>{const H=we.Capacitor;return!(null==H||!H.isNative)},Rt=(we,H)=>H.test(we.navigator.userAgent),vn=(we,H)=>{var X;return null===(X=we.matchMedia)||void 0===X?void 0:X.call(we,H).matches},Nt={ipad:ht,iphone:we=>Rt(we,/iPhone/i),ios:we=>Rt(we,/iPhone|iPod/i)||ht(we),android:yt,phablet:we=>{const H=we.innerWidth,X=we.innerHeight,fe=Math.min(H,X),se=Math.max(H,X);return fe>390&&fe<520&&se>620&&se<800},tablet:we=>{const H=we.innerWidth,X=we.innerHeight,fe=Math.min(H,X),se=Math.max(H,X);return ht(we)||(we=>yt(we)&&!Rt(we,/mobile/i))(we)||fe>460&&fe<820&&se>780&&se<1400},cordova:Ue,capacitor:Fe,electron:we=>Rt(we,/electron/i),pwa:we=>{var H;return!!(null!==(H=we.matchMedia)&&void 0!==H&&H.call(we,"(display-mode: standalone)").matches||we.navigator.standalone)},mobile:Me,mobileweb:we=>Me(we)&&!ge(we),desktop:we=>!Me(we),hybrid:ge};let tt;const on=we=>we&&(0,h.g)(we)||tt,dt=(we={})=>{if(typeof window>"u")return;const H=window.document,X=window,fe=X.Ionic=X.Ionic||{},se={};we._ael&&(se.ael=we._ael),we._rel&&(se.rel=we._rel),we._ce&&(se.ce=we._ce),(0,h.a)(se);const ve=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(we=>{try{const H=we.sessionStorage.getItem(Je);return null!==H?JSON.parse(H):{}}catch{return{}}})(X)),{persistConfig:!1}),fe.config),(we=>{const H={};return we.location.search.slice(1).split("&").map(X=>X.split("=")).map(([X,fe])=>{try{return[decodeURIComponent(X),decodeURIComponent(fe)]}catch{return["",""]}}).filter(([X])=>((we,H)=>we.substr(0,H.length)===H)(X,"ionic:")).map(([X,fe])=>[X.slice(6),fe]).forEach(([X,fe])=>{H[X]=fe}),H})(X)),we);Z.reset(ve),Z.getBoolean("persistConfig")&&((we,H)=>{try{we.sessionStorage.setItem(Je,JSON.stringify(H))}catch{return}})(X,ve),Qe(X),fe.config=Z,fe.mode=tt=Z.get("mode",H.documentElement.getAttribute("mode")||(De(X,"ios")?"ios":"md")),Z.set("mode",tt),H.documentElement.setAttribute("mode",tt),H.documentElement.classList.add(tt),Z.getBoolean("_testing")&&Z.set("animated",!1);const Le=Wt=>{var dn;return null===(dn=Wt.tagName)||void 0===dn?void 0:dn.startsWith("ION-")},_e=Wt=>["ios","md"].includes(Wt);(0,h.c)(Wt=>{for(;Wt;){const dn=Wt.mode||Wt.getAttribute("mode");if(dn){if(_e(dn))return dn;Le(Wt)&&console.warn('Invalid ionic mode: "'+dn+'", expected: "ios" or "md"')}Wt=Wt.parentElement}return tt})}},8454:(Tn,gt,D)=>{"use strict";D.r(gt),D.d(gt,{iosTransitionAnimation:()=>qe,shadow:()=>Xe});var h=D(9986),c=D(2725);D(8476),D(3664),D(9672);const oe=Tt=>document.querySelector(`${Tt}.ion-cloned-element`),Xe=Tt=>Tt.shadowRoot||Tt,Je=Tt=>{const St="ION-TABS"===Tt.tagName?Tt:Tt.querySelector("ion-tabs"),yt="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=St){const _t=St.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=_t?_t.querySelector(yt):null}return Tt.querySelector(yt)},Se=(Tt,St)=>{const yt="ION-TABS"===Tt.tagName?Tt:Tt.querySelector("ion-tabs");let _t=[];if(null!=yt){const Et=yt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=Et&&(_t=Et.querySelectorAll("ion-buttons"))}else _t=Tt.querySelectorAll("ion-buttons");for(const Et of _t){const mt=Et.closest("ion-header"),Me=mt&&!mt.classList.contains("header-collapse-condense-inactive"),Ye=Et.querySelector("ion-back-button"),ge=Et.classList.contains("buttons-collapse");if(null!==Ye&&("start"===Et.slot||""===Et.slot)&&(ge&&Me&&St||!ge))return Ye}return null},Qe=(Tt,St,yt,_t,Et,mt,Me,Ye,ge)=>{var Ue,Fe;const xe=St?`calc(100% - ${Et.right+4}px)`:Et.left-4+"px",rt=St?"right":"left",Rt=St?"left":"right",vn=St?"right":"left";let Nt=1,tt=1,on=`scale(${tt})`;const dt="scale(1)";if(mt&&Me){const zt=(null===(Ue=mt.textContent)||void 0===Ue?void 0:Ue.trim())===(null===(Fe=Ye.textContent)||void 0===Fe?void 0:Fe.trim());Nt=ge.width/Me.width,tt=(ge.height-ht)/Me.height,on=zt?`scale(${Nt}, ${tt})`:`scale(${tt})`}const H=Xe(_t).querySelector("ion-icon").getBoundingClientRect(),X=St?H.width/2-(H.right-Et.right)+"px":Et.left-H.width/2+"px",fe=St?`-${window.innerWidth-Et.right}px`:`${Et.left}px`,se=`${ge.top}px`,ve=`${Et.top}px`,Wt=yt?[{offset:0,transform:`translate3d(${fe}, ${ve}, 0)`},{offset:1,transform:`translate3d(${X}, ${se}, 0)`}]:[{offset:0,transform:`translate3d(${X}, ${se}, 0)`},{offset:1,transform:`translate3d(${fe}, ${ve}, 0)`}],rn=yt?[{offset:0,opacity:1,transform:dt},{offset:1,opacity:0,transform:on}]:[{offset:0,opacity:0,transform:on},{offset:1,opacity:1,transform:dt}],nr=yt?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],er=(0,h.c)(),yr=(0,h.c)(),rr=(0,h.c)(),ir=oe("ion-back-button"),nt=Xe(ir).querySelector(".button-text"),Ot=Xe(ir).querySelector("ion-icon");ir.text=_t.text,ir.mode=_t.mode,ir.icon=_t.icon,ir.color=_t.color,ir.disabled=_t.disabled,ir.style.setProperty("display","block"),ir.style.setProperty("position","fixed"),yr.addElement(Ot),er.addElement(nt),rr.addElement(ir),rr.beforeStyles({position:"absolute",top:"0px",[vn]:"0px"}).beforeAddWrite(()=>{_t.style.setProperty("display","none"),ir.style.setProperty(rt,xe)}).afterAddWrite(()=>{_t.style.setProperty("display",""),ir.style.setProperty("display","none"),ir.style.removeProperty(rt)}).keyframes(Wt),er.beforeStyles({"transform-origin":`${rt} top`}).keyframes(rn),yr.beforeStyles({"transform-origin":`${Rt} center`}).keyframes(nr),Tt.addAnimation([er,yr,rr])},Ze=(Tt,St,yt,_t,Et,mt,Me,Ye,ge)=>{var Ue,Fe;const xe=St?"right":"left",rt=St?`calc(100% - ${Et.right}px)`:`${Et.left}px`,vn=`${Et.top}px`;let tt=St?`-${window.innerWidth-Me.right-8}px`:`${Me.x+8}px`,on=.5;const dt="scale(1)";let we=`scale(${on})`;if(Ye&&ge){tt=St?`-${window.innerWidth-ge.right-8}px`:ge.x-8+"px";const dn=(null===(Ue=Ye.textContent)||void 0===Ue?void 0:Ue.trim())===(null===(Fe=_t.textContent)||void 0===Fe?void 0:Fe.trim());on=ge.height/(mt.height-ht),we=dn?`scale(${ge.width/mt.width}, ${on})`:`scale(${on})`}const fe=Me.top+Me.height/2-Et.height*on/2+"px",Le=yt?[{offset:0,opacity:0,transform:`translate3d(${tt}, ${fe}, 0) ${we}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${vn}, 0) ${dt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${vn}, 0) ${dt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${tt}, ${fe}, 0) ${we}`}],_e=oe("ion-title"),Wt=(0,h.c)();_e.innerText=_t.innerText,_e.size=_t.size,_e.color=_t.color,Wt.addElement(_e),Wt.beforeStyles({"transform-origin":`${xe} top`,height:`${Et.height}px`,display:"",position:"relative",[xe]:rt}).beforeAddWrite(()=>{_t.style.setProperty("opacity","0")}).afterAddWrite(()=>{_t.style.setProperty("opacity",""),_e.style.setProperty("display","none")}).keyframes(Le),Tt.addAnimation(Wt)},qe=(Tt,St)=>{var yt;try{const _t="cubic-bezier(0.32,0.72,0,1)",Et="opacity",mt="transform",Me="0%",ge="rtl"===Tt.ownerDocument.dir,Ue=ge?"-99.5%":"99.5%",Fe=ge?"33%":"-33%",xe=St.enteringEl,rt=St.leavingEl,Rt="back"===St.direction,vn=xe.querySelector(":scope > ion-content"),Nt=xe.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),tt=xe.querySelectorAll(":scope > ion-header > ion-toolbar"),on=(0,h.c)(),dt=(0,h.c)();if(on.addElement(xe).duration((null!==(yt=St.duration)&&void 0!==yt?yt:0)||540).easing(St.easing||_t).fill("both").beforeRemoveClass("ion-page-invisible"),rt&&null!=Tt){const fe=(0,h.c)();fe.addElement(Tt),on.addAnimation(fe)}if(vn||0!==tt.length||0!==Nt.length?(dt.addElement(vn),dt.addElement(Nt)):dt.addElement(xe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),on.addAnimation(dt),Rt?dt.beforeClearStyles([Et]).fromTo("transform",`translateX(${Fe})`,`translateX(${Me})`).fromTo(Et,.8,1):dt.beforeClearStyles([Et]).fromTo("transform",`translateX(${Ue})`,`translateX(${Me})`),vn){const fe=Xe(vn).querySelector(".transition-effect");if(fe){const se=fe.querySelector(".transition-cover"),ve=fe.querySelector(".transition-shadow"),Le=(0,h.c)(),_e=(0,h.c)(),Wt=(0,h.c)();Le.addElement(fe).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),_e.addElement(se).beforeClearStyles([Et]).fromTo(Et,0,.1),Wt.addElement(ve).beforeClearStyles([Et]).fromTo(Et,.03,.7),Le.addAnimation([_e,Wt]),dt.addAnimation([Le])}}const we=xe.querySelector("ion-header.header-collapse-condense"),{forward:H,backward:X}=((Tt,St,yt,_t,Et)=>{const mt=Se(_t,yt),Me=Je(Et),Ye=Je(_t),ge=Se(Et,yt),Ue=null!==mt&&null!==Me&&!yt,Fe=null!==Ye&&null!==ge&&yt;if(Ue){const xe=Me.getBoundingClientRect(),rt=mt.getBoundingClientRect(),Rt=Xe(mt).querySelector(".button-text"),vn=null==Rt?void 0:Rt.getBoundingClientRect(),tt=Xe(Me).querySelector(".toolbar-title").getBoundingClientRect();Ze(Tt,St,yt,Me,xe,tt,rt,Rt,vn),Qe(Tt,St,yt,mt,rt,Rt,vn,Me,tt)}else if(Fe){const xe=Ye.getBoundingClientRect(),rt=ge.getBoundingClientRect(),Rt=Xe(ge).querySelector(".button-text"),vn=null==Rt?void 0:Rt.getBoundingClientRect(),tt=Xe(Ye).querySelector(".toolbar-title").getBoundingClientRect();Ze(Tt,St,yt,Ye,xe,tt,rt,Rt,vn),Qe(Tt,St,yt,ge,rt,Rt,vn,Ye,tt)}return{forward:Ue,backward:Fe}})(on,ge,Rt,xe,rt);if(tt.forEach(fe=>{const se=(0,h.c)();se.addElement(fe),on.addAnimation(se);const ve=(0,h.c)();ve.addElement(fe.querySelector("ion-title"));const Le=(0,h.c)(),_e=Array.from(fe.querySelectorAll("ion-buttons,[menuToggle]")),Wt=fe.closest("ion-header"),dn=null==Wt?void 0:Wt.classList.contains("header-collapse-condense-inactive");let Kt;Kt=_e.filter(Rt?er=>{const yr=er.classList.contains("buttons-collapse");return yr&&!dn||!yr}:er=>!er.classList.contains("buttons-collapse")),Le.addElement(Kt);const rn=(0,h.c)();rn.addElement(fe.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Ln=(0,h.c)();Ln.addElement(Xe(fe).querySelector(".toolbar-background"));const Zn=(0,h.c)(),nr=fe.querySelector("ion-back-button");if(nr&&Zn.addElement(nr),se.addAnimation([ve,Le,rn,Ln,Zn]),Le.fromTo(Et,.01,1),rn.fromTo(Et,.01,1),Rt)dn||ve.fromTo("transform",`translateX(${Fe})`,`translateX(${Me})`).fromTo(Et,.01,1),rn.fromTo("transform",`translateX(${Fe})`,`translateX(${Me})`),Zn.fromTo(Et,.01,1);else if(we||ve.fromTo("transform",`translateX(${Ue})`,`translateX(${Me})`).fromTo(Et,.01,1),rn.fromTo("transform",`translateX(${Ue})`,`translateX(${Me})`),Ln.beforeClearStyles([Et,"transform"]),(null==Wt?void 0:Wt.translucent)?Ln.fromTo("transform",ge?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Ln.fromTo(Et,.01,"var(--opacity)"),H||Zn.fromTo(Et,.01,1),nr&&!H){const yr=(0,h.c)();yr.addElement(Xe(nr).querySelector(".button-text")).fromTo("transform",ge?"translateX(-100px)":"translateX(100px)","translateX(0px)"),se.addAnimation(yr)}}),rt){const fe=(0,h.c)(),se=rt.querySelector(":scope > ion-content"),ve=rt.querySelectorAll(":scope > ion-header > ion-toolbar"),Le=rt.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(se||0!==ve.length||0!==Le.length?(fe.addElement(se),fe.addElement(Le)):fe.addElement(rt.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),on.addAnimation(fe),Rt){fe.beforeClearStyles([Et]).fromTo("transform",`translateX(${Me})`,ge?"translateX(-100%)":"translateX(100%)");const _e=(0,c.g)(rt);on.afterAddWrite(()=>{"normal"===on.getDirection()&&_e.style.setProperty("display","none")})}else fe.fromTo("transform",`translateX(${Me})`,`translateX(${Fe})`).fromTo(Et,1,.8);if(se){const _e=Xe(se).querySelector(".transition-effect");if(_e){const Wt=_e.querySelector(".transition-cover"),dn=_e.querySelector(".transition-shadow"),Kt=(0,h.c)(),rn=(0,h.c)(),Ln=(0,h.c)();Kt.addElement(_e).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),rn.addElement(Wt).beforeClearStyles([Et]).fromTo(Et,.1,0),Ln.addElement(dn).beforeClearStyles([Et]).fromTo(Et,.7,.03),Kt.addAnimation([rn,Ln]),fe.addAnimation([Kt])}}ve.forEach(_e=>{const Wt=(0,h.c)();Wt.addElement(_e);const dn=(0,h.c)();dn.addElement(_e.querySelector("ion-title"));const Kt=(0,h.c)(),rn=_e.querySelectorAll("ion-buttons,[menuToggle]"),Ln=_e.closest("ion-header"),Zn=null==Ln?void 0:Ln.classList.contains("header-collapse-condense-inactive"),nr=Array.from(rn).filter(Ot=>{const zt=Ot.classList.contains("buttons-collapse");return zt&&!Zn||!zt});Kt.addElement(nr);const er=(0,h.c)(),yr=_e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");yr.length>0&&er.addElement(yr);const rr=(0,h.c)();rr.addElement(Xe(_e).querySelector(".toolbar-background"));const ir=(0,h.c)(),nt=_e.querySelector("ion-back-button");if(nt&&ir.addElement(nt),Wt.addAnimation([dn,Kt,er,ir,rr]),on.addAnimation(Wt),ir.fromTo(Et,.99,0),Kt.fromTo(Et,.99,0),er.fromTo(Et,.99,0),Rt){if(Zn||dn.fromTo("transform",`translateX(${Me})`,ge?"translateX(-100%)":"translateX(100%)").fromTo(Et,.99,0),er.fromTo("transform",`translateX(${Me})`,ge?"translateX(-100%)":"translateX(100%)"),rr.beforeClearStyles([Et,"transform"]),(null==Ln?void 0:Ln.translucent)?rr.fromTo("transform","translateX(0px)",ge?"translateX(-100%)":"translateX(100%)"):rr.fromTo(Et,"var(--opacity)",0),nt&&!X){const zt=(0,h.c)();zt.addElement(Xe(nt).querySelector(".button-text")).fromTo("transform",`translateX(${Me})`,`translateX(${(ge?-124:124)+"px"})`),Wt.addAnimation(zt)}}else Zn||dn.fromTo("transform",`translateX(${Me})`,`translateX(${Fe})`).fromTo(Et,.99,0).afterClearStyles([mt,Et]),er.fromTo("transform",`translateX(${Me})`,`translateX(${Fe})`).afterClearStyles([mt,Et]),ir.afterClearStyles([Et]),dn.afterClearStyles([Et]),Kt.afterClearStyles([Et])})}return on}catch(_t){throw _t}},ht=10},3314:(Tn,gt,D)=>{"use strict";D.r(gt),D.d(gt,{mdTransitionAnimation:()=>ue});var h=D(9986),c=D(2725);D(8476),D(3664),D(9672);const ue=(oe,Xe)=>{var Je,Se,De;const qe="back"===Xe.direction,Tt=Xe.leavingEl,St=(0,c.g)(Xe.enteringEl),yt=St.querySelector("ion-toolbar"),_t=(0,h.c)();if(_t.addElement(St).fill("both").beforeRemoveClass("ion-page-invisible"),qe?_t.duration((null!==(Je=Xe.duration)&&void 0!==Je?Je:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):_t.duration((null!==(Se=Xe.duration)&&void 0!==Se?Se:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),yt){const Et=(0,h.c)();Et.addElement(yt),_t.addAnimation(Et)}if(Tt&&qe){_t.duration((null!==(De=Xe.duration)&&void 0!==De?De:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const Et=(0,h.c)();Et.addElement((0,c.g)(Tt)).onFinish(mt=>{1===mt&&Et.elements.length>0&&Et.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),_t.addAnimation(Et)}return _t}},6002:(Tn,gt,D)=>{"use strict";D.d(gt,{B:()=>rn,F:()=>ir,G:()=>Ln,O:()=>Zn,a:()=>St,b:()=>yt,c:()=>Me,d:()=>nr,e:()=>er,f:()=>H,g:()=>fe,h:()=>Le,i:()=>Wt,j:()=>ge,k:()=>Ue,l:()=>_t,m:()=>Et,n:()=>Se,o:()=>dt,q:()=>De,s:()=>Kt});var h=D(467),c=D(8476),Z=D(4920),Oe=D(6411),U=D(3664),ue=D(8621),oe=D(1970),Xe=D(4929);const Je='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',Se=(nt,Ot)=>{const zt=nt.querySelector(Je);Qe(zt,null!=Ot?Ot:nt)},De=(nt,Ot)=>{const zt=Array.from(nt.querySelectorAll(Je));Qe(zt.length>0?zt[zt.length-1]:null,null!=Ot?Ot:nt)},Qe=(nt,Ot)=>{let zt=nt;const pn=null==nt?void 0:nt.shadowRoot;pn&&(zt=pn.querySelector(Je)||nt),zt?(0,Z.f)(zt):Ot.focus()};let Ze=0,qe=0;const ht=new WeakMap,Tt=nt=>({create:Ot=>Fe(nt,Ot),dismiss:(Ot,zt,pn)=>Nt(document,Ot,zt,nt,pn),getTop:()=>(0,h.A)(function*(){return dt(document,nt)})()}),St=Tt("ion-alert"),yt=Tt("ion-action-sheet"),_t=Tt("ion-loading"),Et=Tt("ion-modal"),Me=Tt("ion-popover"),ge=nt=>{typeof document<"u"&&vn(document);const Ot=Ze++;nt.overlayIndex=Ot},Ue=nt=>(nt.hasAttribute("id")||(nt.id="ion-overlay-"+ ++qe),nt.id),Fe=(nt,Ot)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(nt).then(()=>{const zt=document.createElement(nt);return zt.classList.add("overlay-hidden"),Object.assign(zt,Object.assign(Object.assign({},Ot),{hasController:!0})),se(document).appendChild(zt),new Promise(pn=>(0,Z.c)(zt,pn))}):Promise.resolve(),rt=(nt,Ot)=>{let zt=nt;const pn=null==nt?void 0:nt.shadowRoot;pn&&(zt=pn.querySelector(Je)||nt),zt?(0,Z.f)(zt):Ot.focus()},vn=nt=>{0===Ze&&(Ze=1,nt.addEventListener("focus",Ot=>{((nt,Ot)=>{const zt=dt(Ot,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),pn=nt.target;zt&&pn&&!zt.classList.contains(ir)&&(zt.shadowRoot?(()=>{if(zt.contains(pn))zt.lastFocus=pn;else if("ION-TOAST"===pn.tagName)rt(zt.lastFocus,zt);else{const Mn=zt.lastFocus;Se(zt),Mn===Ot.activeElement&&De(zt),zt.lastFocus=Ot.activeElement}})():(()=>{if(zt===pn)zt.lastFocus=void 0;else if("ION-TOAST"===pn.tagName)rt(zt.lastFocus,zt);else{const Mn=(0,Z.g)(zt);if(!Mn.contains(pn))return;const xn=Mn.querySelector(".ion-overlay-wrapper");if(!xn)return;if(xn.contains(pn)||pn===Mn.querySelector("ion-backdrop"))zt.lastFocus=pn;else{const mn=zt.lastFocus;Se(xn,zt),mn===Ot.activeElement&&De(xn,zt),zt.lastFocus=Ot.activeElement}}})())})(Ot,nt)},!0),nt.addEventListener("ionBackButton",Ot=>{const zt=dt(nt);null!=zt&&zt.backdropDismiss&&Ot.detail.register(Oe.OVERLAY_BACK_BUTTON_PRIORITY,()=>{zt.dismiss(void 0,rn)})}),(0,Oe.shouldUseCloseWatcher)()||nt.addEventListener("keydown",Ot=>{if("Escape"===Ot.key){const zt=dt(nt);null!=zt&&zt.backdropDismiss&&zt.dismiss(void 0,rn)}}))},Nt=(nt,Ot,zt,pn,gn)=>{const Sr=dt(nt,pn,gn);return Sr?Sr.dismiss(Ot,zt):Promise.reject("overlay does not exist")},on=(nt,Ot)=>((nt,Ot)=>(void 0===Ot&&(Ot="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(nt.querySelectorAll(Ot)).filter(zt=>zt.overlayIndex>0)))(nt,Ot).filter(zt=>!(nt=>nt.classList.contains("overlay-hidden"))(zt)),dt=(nt,Ot,zt)=>{const pn=on(nt,Ot);return void 0===zt?pn[pn.length-1]:pn.find(gn=>gn.id===zt)},we=(nt=!1)=>{const zt=se(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");zt&&(nt?zt.setAttribute("aria-hidden","true"):zt.removeAttribute("aria-hidden"))},H=function(){var nt=(0,h.A)(function*(Ot,zt,pn,gn,Sr){var Mn,xn;if(Ot.presented)return;we(!0),document.body.classList.add(oe.B),yr(Ot.el),Ot.presented=!0,Ot.willPresent.emit(),null===(Mn=Ot.willPresentShorthand)||void 0===Mn||Mn.emit();const mn=(0,U.b)(Ot),en=Ot.enterAnimation?Ot.enterAnimation:U.c.get(zt,"ios"===mn?pn:gn);(yield ve(Ot,en,Ot.el,Sr))&&(Ot.didPresent.emit(),null===(xn=Ot.didPresentShorthand)||void 0===xn||xn.emit()),"ION-TOAST"!==Ot.el.tagName&&X(Ot.el),Ot.keyboardClose&&(null===document.activeElement||!Ot.el.contains(document.activeElement))&&Ot.el.focus(),Ot.el.removeAttribute("aria-hidden")});return function(zt,pn,gn,Sr,Mn){return nt.apply(this,arguments)}}(),X=function(){var nt=(0,h.A)(function*(Ot){let zt=document.activeElement;if(!zt)return;const pn=null==zt?void 0:zt.shadowRoot;pn&&(zt=pn.querySelector(Je)||zt),yield Ot.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&zt.focus()});return function(zt){return nt.apply(this,arguments)}}(),fe=function(){var nt=(0,h.A)(function*(Ot,zt,pn,gn,Sr,Mn,xn){var mn,en;if(!Ot.presented)return!1;void 0!==c.d&&1===on(c.d).length&&(we(!1),document.body.classList.remove(oe.B)),Ot.presented=!1;try{Ot.el.style.setProperty("pointer-events","none"),Ot.willDismiss.emit({data:zt,role:pn}),null===(mn=Ot.willDismissShorthand)||void 0===mn||mn.emit({data:zt,role:pn});const Ir=(0,U.b)(Ot),Nr=Ot.leaveAnimation?Ot.leaveAnimation:U.c.get(gn,"ios"===Ir?Sr:Mn);pn!==Ln&&(yield ve(Ot,Nr,Ot.el,xn)),Ot.didDismiss.emit({data:zt,role:pn}),null===(en=Ot.didDismissShorthand)||void 0===en||en.emit({data:zt,role:pn}),(ht.get(Ot)||[]).forEach(Dr=>Dr.destroy()),ht.delete(Ot),Ot.el.classList.add("overlay-hidden"),Ot.el.style.removeProperty("pointer-events"),void 0!==Ot.el.lastFocus&&(Ot.el.lastFocus=void 0)}catch(Ir){console.error(Ir)}return Ot.el.remove(),rr(),!0});return function(zt,pn,gn,Sr,Mn,xn,mn){return nt.apply(this,arguments)}}(),se=nt=>nt.querySelector("ion-app")||nt.body,ve=function(){var nt=(0,h.A)(function*(Ot,zt,pn,gn){pn.classList.remove("overlay-hidden");const Mn=zt(Ot.el,gn);(!Ot.animated||!U.c.getBoolean("animated",!0))&&Mn.duration(0),Ot.keyboardClose&&Mn.beforeAddWrite(()=>{const mn=pn.ownerDocument.activeElement;null!=mn&&mn.matches("input,ion-input, ion-textarea")&&mn.blur()});const xn=ht.get(Ot)||[];return ht.set(Ot,[...xn,Mn]),yield Mn.play(),!0});return function(zt,pn,gn,Sr){return nt.apply(this,arguments)}}(),Le=(nt,Ot)=>{let zt;const pn=new Promise(gn=>zt=gn);return _e(nt,Ot,gn=>{zt(gn.detail)}),pn},_e=(nt,Ot,zt)=>{const pn=gn=>{(0,Z.b)(nt,Ot,pn),zt(gn)};(0,Z.a)(nt,Ot,pn)},Wt=nt=>"cancel"===nt||nt===rn,dn=nt=>nt(),Kt=(nt,Ot)=>{if("function"==typeof nt)return U.c.get("_zoneGate",dn)(()=>{try{return nt(Ot)}catch(pn){throw pn}})},rn="backdrop",Ln="gesture",Zn=39,nr=nt=>{let zt,Ot=!1;const pn=(0,ue.C)(),gn=(xn=!1)=>{if(zt&&!xn)return{delegate:zt,inline:Ot};const{el:mn,hasController:en,delegate:Er}=nt;return Ot=null!==mn.parentNode&&!en,zt=Ot?Er||pn:Er,{inline:Ot,delegate:zt}};return{attachViewToDom:function(){var xn=(0,h.A)(function*(mn){const{delegate:en}=gn(!0);if(en)return yield en.attachViewToDom(nt.el,mn);const{hasController:Er}=nt;if(Er&&void 0!==mn)throw new Error("framework delegate is missing");return null});return function(en){return xn.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:xn}=gn();xn&&void 0!==nt.el&&xn.removeViewFromDom(nt.el.parentElement,nt.el)}}},er=()=>{let nt;const Ot=()=>{nt&&(nt(),nt=void 0)};return{addClickListener:(pn,gn)=>{Ot();const Sr=void 0!==gn?document.getElementById(gn):null;Sr?nt=((xn,mn)=>{const en=()=>{mn.present()};return xn.addEventListener("click",en),()=>{xn.removeEventListener("click",en)}})(Sr,pn):(0,Xe.p)(`A trigger element with the ID "${gn}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,pn)},removeClickListener:Ot}},yr=nt=>{var Ot;if(void 0===c.d)return;const zt=on(c.d);for(let pn=zt.length-1;pn>=0;pn--){const gn=zt[pn],Sr=null!==(Ot=zt[pn+1])&&void 0!==Ot?Ot:nt;(Sr.hasAttribute("aria-hidden")||"ION-TOAST"!==Sr.tagName)&&gn.setAttribute("aria-hidden","true")}},rr=()=>{if(void 0===c.d)return;const nt=on(c.d);for(let Ot=nt.length-1;Ot>=0;Ot--){const zt=nt[Ot];if(zt.removeAttribute("aria-hidden"),"ION-TOAST"!==zt.tagName)break}},ir="ion-disable-focus-trap"},63:(Tn,gt,D)=>{"use strict";var h=D(345),c=D(4438),Z=D(7650),Oe=D(2872),U=D(7863),ue=D(177);function oe(_e,Wt){if(1&_e){const dn=c.RV6();c.j41(0,"ion-item",6),c.bIt("click",function(){c.eBV(dn);const rn=c.XpG().$implicit,Ln=c.XpG();return c.Njj(Ln.navigate(rn))}),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()}if(2&_e){const dn=c.XpG().$implicit;c.R7$(),c.Y8G("name",dn.icon),c.R7$(2),c.JRh(dn.title)}}function Xe(_e,Wt){if(1&_e&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()),2&_e){const dn=c.XpG().$implicit;c.Y8G("routerLink",dn.url),c.R7$(),c.Y8G("name",dn.icon),c.R7$(2),c.JRh(dn.title)}}function Je(_e,Wt){if(1&_e&&(c.j41(0,"ion-menu-toggle",5),c.DNE(1,oe,4,2,"ion-item")(2,Xe,4,3),c.k0s()),2&_e){const dn=Wt.$implicit;c.R7$(),c.vxM(1,dn.params?1:2)}}let Se=(()=>{var _e;class Wt{constructor(Kt,rn){this.router=Kt,this.menuController=rn,this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"Latency Test",url:"/latency-chooser",icon:"pulse"},{title:"Trace Test",url:"/trace-chooser",icon:"globe"},{title:"CPU Usage",url:"/flame-graph-for",params:{usage_type:"cpu"},icon:"stats-chart"},{title:"Memory Usage",url:"/flame-graph-for",params:{usage_type:"memory_usage"},icon:"swap-horizontal"},{title:"Software Testing",url:"/software-testing",icon:"flask"},{title:"Load Test",url:"/load-test-chooser",icon:"barbell"},{title:"Incident Manager",url:"/incident-manager-chooser",icon:"alert-circle"},{title:"My Team",url:"/myteam",icon:"people"},{title:"Settings",url:"/settings",icon:"settings"}]}ngOnInit(){this.router.events.subscribe(Kt=>{Kt instanceof Z.wF&&(Kt.urlAfterRedirects.includes("/login")||Kt.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))})}navigate(Kt){this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate([Kt.url],{queryParams:Kt.params||{}})})}}return(_e=Wt).\u0275fac=function(Kt){return new(Kt||_e)(c.rXU(Z.Ix),c.rXU(U._t))},_e.\u0275cmp=c.VBU({type:_e,selectors:[["app-root"]],decls:11,vars:1,consts:[["when","md","contentId","menu-content"],["content-id","menu-content","menu-id","menu-id","side","start","type","overlay"],[1,"h-full"],["auto-hide","false",4,"ngFor","ngForOf"],["id","menu-content"],["auto-hide","false"],[3,"click"],["slot","start",3,"name"],["color","primary"],[3,"routerLink"]],template:function(Kt,rn){1&Kt&&(c.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),c.EFF(6," Menu "),c.k0s()()(),c.j41(7,"ion-content")(8,"ion-list",2),c.DNE(9,Je,3,1,"ion-menu-toggle",3),c.k0s()()(),c.nrm(10,"ion-router-outlet",4),c.k0s()()),2&Kt&&(c.R7$(9),c.Y8G("ngForOf",rn.menuItems))},dependencies:[ue.Sq,U.U1,U.W9,U.eU,U.iq,U.uz,U.he,U.nf,U.oS,U.cA,U.HP,U.BC,U.ai,U.Rg,U.N7,Z.Wk]}),Wt})();var De=D(9842),Qe=D(8737),Ze=D(1203),qe=D(6354),ht=D(6697);D(2214);const St=(0,qe.T)(_e=>!!_e);let yt=(()=>{var _e;class Wt{constructor(Kt,rn){(0,De.A)(this,"router",void 0),(0,De.A)(this,"auth",void 0),(0,De.A)(this,"canActivate",(Ln,Zn)=>{const nr=Ln.data.authGuardPipe||(()=>St);return(0,Qe.kQ)(this.auth).pipe((0,ht.s)(1),nr(Ln,Zn),(0,qe.T)(er=>"boolean"==typeof er?er:Array.isArray(er)?this.router.createUrlTree(er):this.router.parseUrl(er)))}),this.router=Kt,this.auth=rn}}return _e=Wt,(0,De.A)(Wt,"\u0275fac",function(Kt){return new(Kt||_e)(c.KVO(Z.Ix),c.KVO(Qe.Nj))}),(0,De.A)(Wt,"\u0275prov",c.jDH({token:_e,factory:_e.\u0275fac,providedIn:"any"})),Wt})();const _t=_e=>({canActivate:[yt],data:{authGuardPipe:_e}}),rt=()=>{return _e=[""],(0,Ze.F)(St,(0,qe.T)(Wt=>Wt||_e));var _e},Rt=()=>{return _e=["home"],(0,Ze.F)(St,(0,qe.T)(Wt=>Wt&&_e||!0));var _e},vn=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([D.e(2076),D.e(2757)]).then(D.bind(D,2757)).then(_e=>_e.HomePageModule),..._t(rt)},{path:"register",loadChildren:()=>Promise.all([D.e(2076),D.e(5995)]).then(D.bind(D,5995)).then(_e=>_e.RegisterPageModule),..._t(Rt)},{path:"login",loadChildren:()=>Promise.all([D.e(2076),D.e(6536)]).then(D.bind(D,6536)).then(_e=>_e.LoginPageModule),..._t(Rt)},{path:"myteam",loadChildren:()=>Promise.all([D.e(2076),D.e(461)]).then(D.bind(D,461)).then(_e=>_e.MyteamPageModule),..._t(rt)},{path:"model-product",loadChildren:()=>Promise.all([D.e(2076),D.e(4914)]).then(D.bind(D,4914)).then(_e=>_e.ModelProductPageModule),..._t(rt)},{path:"new-product",loadChildren:()=>Promise.all([D.e(2076),D.e(3646)]).then(D.bind(D,3646)).then(_e=>_e.NewProductPageModule),..._t(rt)},{path:"view-product",loadChildren:()=>Promise.all([D.e(2076),D.e(1313)]).then(D.bind(D,1313)).then(_e=>_e.ViewProductPageModule),..._t(rt)},{path:"show-map",loadChildren:()=>Promise.all([D.e(9273),D.e(2076),D.e(9070)]).then(D.bind(D,9070)).then(_e=>_e.ShowMapPageModule),..._t(rt)},{path:"latency-test",loadChildren:()=>Promise.all([D.e(2076),D.e(9456)]).then(D.bind(D,9456)).then(_e=>_e.LatencyTestPageModule),..._t(rt)},{path:"latency-chooser",loadChildren:()=>Promise.all([D.e(2076),D.e(8886)]).then(D.bind(D,8886)).then(_e=>_e.LatencyChooserPageModule),..._t(rt)},{path:"latency-results",loadChildren:()=>Promise.all([D.e(2076),D.e(8984)]).then(D.bind(D,8984)).then(_e=>_e.LatencyResultsPageModule),..._t(rt)},{path:"graph-latency",loadChildren:()=>Promise.all([D.e(2076),D.e(6975)]).then(D.bind(D,6975)).then(_e=>_e.GraphPageModule),..._t(rt)},{path:"trace-chooser",loadChildren:()=>Promise.all([D.e(2076),D.e(4839)]).then(D.bind(D,4839)).then(_e=>_e.TraceChooserPageModule),..._t(rt)},{path:"trace-test",loadChildren:()=>Promise.all([D.e(2076),D.e(3451)]).then(D.bind(D,3451)).then(_e=>_e.TraceTestPageModule),..._t(rt)},{path:"trace-results",loadChildren:()=>Promise.all([D.e(2076),D.e(7762)]).then(D.bind(D,7762)).then(_e=>_e.TraceResultsPageModule),..._t(rt)},{path:"show-map-trace",loadChildren:()=>Promise.all([D.e(9273),D.e(2076),D.e(8566)]).then(D.bind(D,8566)).then(_e=>_e.ShowMapTracePageModule),..._t(rt)},{path:"graph-data-for",loadChildren:()=>D.e(1081).then(D.bind(D,1081)).then(_e=>_e.GraphDataForPageModule),..._t(rt)},{path:"graph-trace",loadChildren:()=>Promise.all([D.e(2076),D.e(6303)]).then(D.bind(D,6303)).then(_e=>_e.GraphTracePageModule),..._t(rt)},{path:"ai",loadChildren:()=>D.e(4348).then(D.bind(D,4348)).then(_e=>_e.AiPageModule),..._t(rt)},{path:"flame-graph",loadChildren:()=>Promise.all([D.e(2076),D.e(5054)]).then(D.bind(D,5054)).then(_e=>_e.FlameGraphPageModule),..._t(rt)},{path:"flame-graph-for",loadChildren:()=>Promise.all([D.e(2076),D.e(5399)]).then(D.bind(D,5399)).then(_e=>_e.FlameGraphForPageModule),..._t(rt)},{path:"flame-graph-date",loadChildren:()=>Promise.all([D.e(2076),D.e(6480)]).then(D.bind(D,6480)).then(_e=>_e.FlameGraphDatePageModule),..._t(rt)},{path:"flame-graph-compare",loadChildren:()=>Promise.all([D.e(2076),D.e(3100)]).then(D.bind(D,3100)).then(_e=>_e.FlameGraphComparePageModule),..._t(rt)},{path:"software-testing",loadChildren:()=>Promise.all([D.e(2076),D.e(1015)]).then(D.bind(D,1015)).then(_e=>_e.SoftwareTestingPageModule),..._t(rt)},{path:"software-testing-chooser",loadChildren:()=>Promise.all([D.e(2076),D.e(8711)]).then(D.bind(D,8711)).then(_e=>_e.SoftwareTestingChooserPageModule),..._t(rt)},{path:"create-system-test",loadChildren:()=>Promise.all([D.e(2076),D.e(1143)]).then(D.bind(D,1143)).then(_e=>_e.CreateSystemTestPageModule),..._t(rt)},{path:"execute-system-test",loadChildren:()=>Promise.all([D.e(2076),D.e(1010)]).then(D.bind(D,1010)).then(_e=>_e.ExecuteSystemTestPageModule),..._t(rt)},{path:"board",loadChildren:()=>Promise.all([D.e(6982),D.e(2076),D.e(3728)]).then(D.bind(D,3728)).then(_e=>_e.BoardPageModule),..._t(rt)},{path:"view-history-system-test",loadChildren:()=>Promise.all([D.e(2076),D.e(9546)]).then(D.bind(D,9546)).then(_e=>_e.ViewHistorySystemTestPageModule),..._t(rt)},{path:"view-system-test",loadChildren:()=>Promise.all([D.e(2076),D.e(7056)]).then(D.bind(D,7056)).then(_e=>_e.ViewSystemTestPageModule),..._t(rt)},{path:"create-unit-test",loadChildren:()=>Promise.all([D.e(2076),D.e(6695)]).then(D.bind(D,6695)).then(_e=>_e.CreateUnitTestPageModule),..._t(rt)},{path:"settings",loadChildren:()=>Promise.all([D.e(2076),D.e(628)]).then(D.bind(D,628)).then(_e=>_e.SettingsPageModule),..._t(rt)},{path:"create-integration-test",loadChildren:()=>Promise.all([D.e(2076),D.e(2494)]).then(D.bind(D,2494)).then(_e=>_e.CreateIntegrationTestPageModule),..._t(rt)},{path:"load-test-chooser",loadChildren:()=>Promise.all([D.e(2076),D.e(4163)]).then(D.bind(D,4163)).then(_e=>_e.LoadTestChooserPageModule),..._t(rt)},{path:"load-test",loadChildren:()=>Promise.all([D.e(2076),D.e(4559)]).then(D.bind(D,4559)).then(_e=>_e.LoadTestPageModule),..._t(rt)},{path:"load-test-history",loadChildren:()=>Promise.all([D.e(2076),D.e(4304)]).then(D.bind(D,4304)).then(_e=>_e.LoadTestHistoryPageModule),..._t(rt)},{path:"incident-manager-chooser",loadChildren:()=>Promise.all([D.e(2076),D.e(1133)]).then(D.bind(D,1133)).then(_e=>_e.IncidentManagerChooserPageModule),..._t(rt)},{path:"incident-manager",loadChildren:()=>D.e(3675).then(D.bind(D,3675)).then(_e=>_e.IncidentManagerPageModule)},{path:"new-incident",loadChildren:()=>Promise.all([D.e(6982),D.e(2076),D.e(7551)]).then(D.bind(D,7551)).then(_e=>_e.NewIncidentPageModule)}];let Nt=(()=>{var _e;class Wt{}return(_e=Wt).\u0275fac=function(Kt){return new(Kt||_e)},_e.\u0275mod=c.$C({type:_e}),_e.\u0275inj=c.G2t({imports:[Z.iI.forRoot(vn,{preloadingStrategy:Z.Kp}),Z.iI]}),Wt})();var tt=D(7440),on=D(4262);const dt_firebase={projectId:"devprobe-89481",appId:"1:405563293900:web:ba12c0bd15401fd708c269",storageBucket:"devprobe-89481.appspot.com",apiKey:"AIzaSyAORx8ZNhFZwo_uR4tPEcmF8pKm4GAqi5A",authDomain:"devprobe-89481.firebaseapp.com",messagingSenderId:"405563293900"};var we=D(1626),H=D(2820),X=D(9032),fe=D(7616),se=D(9549);let ve=(()=>{var _e;class Wt{}return(_e=Wt).\u0275fac=function(Kt){return new(Kt||_e)},_e.\u0275mod=c.$C({type:_e,bootstrap:[Se]}),_e.\u0275inj=c.G2t({providers:[{provide:Z.b,useClass:Oe.jM},(0,tt.MW)(()=>(0,tt.Wp)(dt_firebase)),(0,on.hV)(()=>(0,on.aU)()),(0,Qe._q)(()=>(0,Qe.xI)()),(0,X.cw)(()=>(0,X.v_)()),we.q1,(0,H.eS)()],imports:[h.Bb,U.bv.forRoot(),Nt,we.q1,H.sN.forRoot({echarts:()=>D.e(9697).then(D.bind(D,9697))}),fe.n,se.y2.forRoot()]}),Wt})();(0,c.SmG)(),h.sG().bootstrapModule(ve).catch(_e=>console.log(_e))},4412:(Tn,gt,D)=>{"use strict";D.d(gt,{t:()=>c});var h=D(1413);class c extends h.B{constructor(Oe){super(),this._value=Oe}get value(){return this.getValue()}_subscribe(Oe){const U=super._subscribe(Oe);return!U.closed&&Oe.next(this._value),U}getValue(){const{hasError:Oe,thrownError:U,_value:ue}=this;if(Oe)throw U;return this._throwIfClosed(),ue}next(Oe){super.next(this._value=Oe)}}},1985:(Tn,gt,D)=>{"use strict";D.d(gt,{c:()=>Xe});var h=D(7707),c=D(8359),Z=D(3494),Oe=D(1203),U=D(1026),ue=D(8071),oe=D(9786);let Xe=(()=>{class Qe{constructor(qe){qe&&(this._subscribe=qe)}lift(qe){const ht=new Qe;return ht.source=this,ht.operator=qe,ht}subscribe(qe,ht,Tt){const St=function De(Qe){return Qe&&Qe instanceof h.vU||function Se(Qe){return Qe&&(0,ue.T)(Qe.next)&&(0,ue.T)(Qe.error)&&(0,ue.T)(Qe.complete)}(Qe)&&(0,c.Uv)(Qe)}(qe)?qe:new h.Ms(qe,ht,Tt);return(0,oe.Y)(()=>{const{operator:yt,source:_t}=this;St.add(yt?yt.call(St,_t):_t?this._subscribe(St):this._trySubscribe(St))}),St}_trySubscribe(qe){try{return this._subscribe(qe)}catch(ht){qe.error(ht)}}forEach(qe,ht){return new(ht=Je(ht))((Tt,St)=>{const yt=new h.Ms({next:_t=>{try{qe(_t)}catch(Et){St(Et),yt.unsubscribe()}},error:St,complete:Tt});this.subscribe(yt)})}_subscribe(qe){var ht;return null===(ht=this.source)||void 0===ht?void 0:ht.subscribe(qe)}[Z.s](){return this}pipe(...qe){return(0,Oe.m)(qe)(this)}toPromise(qe){return new(qe=Je(qe))((ht,Tt)=>{let St;this.subscribe(yt=>St=yt,yt=>Tt(yt),()=>ht(St))})}}return Qe.create=Ze=>new Qe(Ze),Qe})();function Je(Qe){var Ze;return null!==(Ze=null!=Qe?Qe:U.$.Promise)&&void 0!==Ze?Ze:Promise}},2771:(Tn,gt,D)=>{"use strict";D.d(gt,{m:()=>Z});var h=D(1413),c=D(6129);class Z extends h.B{constructor(U=1/0,ue=1/0,oe=c.U){super(),this._bufferSize=U,this._windowTime=ue,this._timestampProvider=oe,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ue===1/0,this._bufferSize=Math.max(1,U),this._windowTime=Math.max(1,ue)}next(U){const{isStopped:ue,_buffer:oe,_infiniteTimeWindow:Xe,_timestampProvider:Je,_windowTime:Se}=this;ue||(oe.push(U),!Xe&&oe.push(Je.now()+Se)),this._trimBuffer(),super.next(U)}_subscribe(U){this._throwIfClosed(),this._trimBuffer();const ue=this._innerSubscribe(U),{_infiniteTimeWindow:oe,_buffer:Xe}=this,Je=Xe.slice();for(let Se=0;Se{"use strict";D.d(gt,{B:()=>oe});var h=D(1985),c=D(8359);const Oe=(0,D(1853).L)(Je=>function(){Je(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var U=D(7908),ue=D(9786);let oe=(()=>{class Je extends h.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(De){const Qe=new Xe(this,this);return Qe.operator=De,Qe}_throwIfClosed(){if(this.closed)throw new Oe}next(De){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Qe of this.currentObservers)Qe.next(De)}})}error(De){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=De;const{observers:Qe}=this;for(;Qe.length;)Qe.shift().error(De)}})}complete(){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:De}=this;for(;De.length;)De.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var De;return(null===(De=this.observers)||void 0===De?void 0:De.length)>0}_trySubscribe(De){return this._throwIfClosed(),super._trySubscribe(De)}_subscribe(De){return this._throwIfClosed(),this._checkFinalizedStatuses(De),this._innerSubscribe(De)}_innerSubscribe(De){const{hasError:Qe,isStopped:Ze,observers:qe}=this;return Qe||Ze?c.Kn:(this.currentObservers=null,qe.push(De),new c.yU(()=>{this.currentObservers=null,(0,U.o)(qe,De)}))}_checkFinalizedStatuses(De){const{hasError:Qe,thrownError:Ze,isStopped:qe}=this;Qe?De.error(Ze):qe&&De.complete()}asObservable(){const De=new h.c;return De.source=this,De}}return Je.create=(Se,De)=>new Xe(Se,De),Je})();class Xe extends oe{constructor(Se,De){super(),this.destination=Se,this.source=De}next(Se){var De,Qe;null===(Qe=null===(De=this.destination)||void 0===De?void 0:De.next)||void 0===Qe||Qe.call(De,Se)}error(Se){var De,Qe;null===(Qe=null===(De=this.destination)||void 0===De?void 0:De.error)||void 0===Qe||Qe.call(De,Se)}complete(){var Se,De;null===(De=null===(Se=this.destination)||void 0===Se?void 0:Se.complete)||void 0===De||De.call(Se)}_subscribe(Se){var De,Qe;return null!==(Qe=null===(De=this.source)||void 0===De?void 0:De.subscribe(Se))&&void 0!==Qe?Qe:c.Kn}}},7707:(Tn,gt,D)=>{"use strict";D.d(gt,{Ms:()=>Tt,vU:()=>Qe});var h=D(8071),c=D(8359),Z=D(1026),Oe=D(5334),U=D(5343);const ue=Je("C",void 0,void 0);function Je(mt,Me,Ye){return{kind:mt,value:Me,error:Ye}}var Se=D(9270),De=D(9786);class Qe extends c.yU{constructor(Me){super(),this.isStopped=!1,Me?(this.destination=Me,(0,c.Uv)(Me)&&Me.add(this)):this.destination=Et}static create(Me,Ye,ge){return new Tt(Me,Ye,ge)}next(Me){this.isStopped?_t(function Xe(mt){return Je("N",mt,void 0)}(Me),this):this._next(Me)}error(Me){this.isStopped?_t(function oe(mt){return Je("E",void 0,mt)}(Me),this):(this.isStopped=!0,this._error(Me))}complete(){this.isStopped?_t(ue,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Me){this.destination.next(Me)}_error(Me){try{this.destination.error(Me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ze=Function.prototype.bind;function qe(mt,Me){return Ze.call(mt,Me)}class ht{constructor(Me){this.partialObserver=Me}next(Me){const{partialObserver:Ye}=this;if(Ye.next)try{Ye.next(Me)}catch(ge){St(ge)}}error(Me){const{partialObserver:Ye}=this;if(Ye.error)try{Ye.error(Me)}catch(ge){St(ge)}else St(Me)}complete(){const{partialObserver:Me}=this;if(Me.complete)try{Me.complete()}catch(Ye){St(Ye)}}}class Tt extends Qe{constructor(Me,Ye,ge){let Ue;if(super(),(0,h.T)(Me)||!Me)Ue={next:null!=Me?Me:void 0,error:null!=Ye?Ye:void 0,complete:null!=ge?ge:void 0};else{let Fe;this&&Z.$.useDeprecatedNextContext?(Fe=Object.create(Me),Fe.unsubscribe=()=>this.unsubscribe(),Ue={next:Me.next&&qe(Me.next,Fe),error:Me.error&&qe(Me.error,Fe),complete:Me.complete&&qe(Me.complete,Fe)}):Ue=Me}this.destination=new ht(Ue)}}function St(mt){Z.$.useDeprecatedSynchronousErrorHandling?(0,De.l)(mt):(0,Oe.m)(mt)}function _t(mt,Me){const{onStoppedNotification:Ye}=Z.$;Ye&&Se.f.setTimeout(()=>Ye(mt,Me))}const Et={closed:!0,next:U.l,error:function yt(mt){throw mt},complete:U.l}},8359:(Tn,gt,D)=>{"use strict";D.d(gt,{Kn:()=>ue,yU:()=>U,Uv:()=>oe});var h=D(8071);const Z=(0,D(1853).L)(Je=>function(De){Je(this),this.message=De?`${De.length} errors occurred during unsubscription:\n${De.map((Qe,Ze)=>`${Ze+1}) ${Qe.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=De});var Oe=D(7908);class U{constructor(Se){this.initialTeardown=Se,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Se;if(!this.closed){this.closed=!0;const{_parentage:De}=this;if(De)if(this._parentage=null,Array.isArray(De))for(const qe of De)qe.remove(this);else De.remove(this);const{initialTeardown:Qe}=this;if((0,h.T)(Qe))try{Qe()}catch(qe){Se=qe instanceof Z?qe.errors:[qe]}const{_finalizers:Ze}=this;if(Ze){this._finalizers=null;for(const qe of Ze)try{Xe(qe)}catch(ht){Se=null!=Se?Se:[],ht instanceof Z?Se=[...Se,...ht.errors]:Se.push(ht)}}if(Se)throw new Z(Se)}}add(Se){var De;if(Se&&Se!==this)if(this.closed)Xe(Se);else{if(Se instanceof U){if(Se.closed||Se._hasParent(this))return;Se._addParent(this)}(this._finalizers=null!==(De=this._finalizers)&&void 0!==De?De:[]).push(Se)}}_hasParent(Se){const{_parentage:De}=this;return De===Se||Array.isArray(De)&&De.includes(Se)}_addParent(Se){const{_parentage:De}=this;this._parentage=Array.isArray(De)?(De.push(Se),De):De?[De,Se]:Se}_removeParent(Se){const{_parentage:De}=this;De===Se?this._parentage=null:Array.isArray(De)&&(0,Oe.o)(De,Se)}remove(Se){const{_finalizers:De}=this;De&&(0,Oe.o)(De,Se),Se instanceof U&&Se._removeParent(this)}}U.EMPTY=(()=>{const Je=new U;return Je.closed=!0,Je})();const ue=U.EMPTY;function oe(Je){return Je instanceof U||Je&&"closed"in Je&&(0,h.T)(Je.remove)&&(0,h.T)(Je.add)&&(0,h.T)(Je.unsubscribe)}function Xe(Je){(0,h.T)(Je)?Je():Je.unsubscribe()}},1026:(Tn,gt,D)=>{"use strict";D.d(gt,{$:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(Tn,gt,D)=>{"use strict";D.d(gt,{z:()=>Se});var h=D(1985),c=D(3073),Z=D(8455),Oe=D(3669),U=D(6450),ue=D(9326),oe=D(8496),Xe=D(4360),Je=D(5225);function Se(...Ze){const qe=(0,ue.lI)(Ze),ht=(0,ue.ms)(Ze),{args:Tt,keys:St}=(0,c.D)(Ze);if(0===Tt.length)return(0,Z.H)([],qe);const yt=new h.c(function De(Ze,qe,ht=Oe.D){return Tt=>{Qe(qe,()=>{const{length:St}=Ze,yt=new Array(St);let _t=St,Et=St;for(let mt=0;mt{const Me=(0,Z.H)(Ze[mt],qe);let Ye=!1;Me.subscribe((0,Xe._)(Tt,ge=>{yt[mt]=ge,Ye||(Ye=!0,Et--),Et||Tt.next(ht(yt.slice()))},()=>{--_t||Tt.complete()}))},Tt)},Tt)}}(Tt,qe,St?_t=>(0,oe.e)(St,_t):Oe.D));return ht?yt.pipe((0,U.I)(ht)):yt}function Qe(Ze,qe,ht){Ze?(0,Je.N)(ht,Ze,qe):qe()}},8793:(Tn,gt,D)=>{"use strict";D.d(gt,{x:()=>U});var h=D(6365),Z=D(9326),Oe=D(8455);function U(...ue){return function c(){return(0,h.U)(1)}()((0,Oe.H)(ue,(0,Z.lI)(ue)))}},983:(Tn,gt,D)=>{"use strict";D.d(gt,{w:()=>c});const c=new(D(1985).c)(U=>U.complete())},8455:(Tn,gt,D)=>{"use strict";D.d(gt,{H:()=>Me});var h=D(8750),c=D(941),Z=D(6745),ue=D(1985),Xe=D(4761),Je=D(8071),Se=D(5225);function Qe(Ye,ge){if(!Ye)throw new Error("Iterable cannot be null");return new ue.c(Ue=>{(0,Se.N)(Ue,ge,()=>{const Fe=Ye[Symbol.asyncIterator]();(0,Se.N)(Ue,ge,()=>{Fe.next().then(xe=>{xe.done?Ue.complete():Ue.next(xe.value)})},0,!0)})})}var Ze=D(5055),qe=D(9858),ht=D(7441),Tt=D(5397),St=D(7953),yt=D(591),_t=D(5196);function Me(Ye,ge){return ge?function mt(Ye,ge){if(null!=Ye){if((0,Ze.l)(Ye))return function Oe(Ye,ge){return(0,h.Tg)(Ye).pipe((0,Z._)(ge),(0,c.Q)(ge))}(Ye,ge);if((0,ht.X)(Ye))return function oe(Ye,ge){return new ue.c(Ue=>{let Fe=0;return ge.schedule(function(){Fe===Ye.length?Ue.complete():(Ue.next(Ye[Fe++]),Ue.closed||this.schedule())})})}(Ye,ge);if((0,qe.y)(Ye))return function U(Ye,ge){return(0,h.Tg)(Ye).pipe((0,Z._)(ge),(0,c.Q)(ge))}(Ye,ge);if((0,St.T)(Ye))return Qe(Ye,ge);if((0,Tt.x)(Ye))return function De(Ye,ge){return new ue.c(Ue=>{let Fe;return(0,Se.N)(Ue,ge,()=>{Fe=Ye[Xe.l](),(0,Se.N)(Ue,ge,()=>{let xe,rt;try{({value:xe,done:rt}=Fe.next())}catch(Rt){return void Ue.error(Rt)}rt?Ue.complete():Ue.next(xe)},0,!0)}),()=>(0,Je.T)(null==Fe?void 0:Fe.return)&&Fe.return()})}(Ye,ge);if((0,_t.U)(Ye))return function Et(Ye,ge){return Qe((0,_t.C)(Ye),ge)}(Ye,ge)}throw(0,yt.L)(Ye)}(Ye,ge):(0,h.Tg)(Ye)}},3726:(Tn,gt,D)=>{"use strict";D.d(gt,{R:()=>Se});var h=D(8750),c=D(1985),Z=D(1397),Oe=D(7441),U=D(8071),ue=D(6450);const oe=["addListener","removeListener"],Xe=["addEventListener","removeEventListener"],Je=["on","off"];function Se(ht,Tt,St,yt){if((0,U.T)(St)&&(yt=St,St=void 0),yt)return Se(ht,Tt,St).pipe((0,ue.I)(yt));const[_t,Et]=function qe(ht){return(0,U.T)(ht.addEventListener)&&(0,U.T)(ht.removeEventListener)}(ht)?Xe.map(mt=>Me=>ht[mt](Tt,Me,St)):function Qe(ht){return(0,U.T)(ht.addListener)&&(0,U.T)(ht.removeListener)}(ht)?oe.map(De(ht,Tt)):function Ze(ht){return(0,U.T)(ht.on)&&(0,U.T)(ht.off)}(ht)?Je.map(De(ht,Tt)):[];if(!_t&&(0,Oe.X)(ht))return(0,Z.Z)(mt=>Se(mt,Tt,St))((0,h.Tg)(ht));if(!_t)throw new TypeError("Invalid event target");return new c.c(mt=>{const Me=(...Ye)=>mt.next(1Et(Me)})}function De(ht,Tt){return St=>yt=>ht[St](Tt,yt)}},8750:(Tn,gt,D)=>{"use strict";D.d(gt,{Tg:()=>Ze});var h=D(1635),c=D(7441),Z=D(9858),Oe=D(1985),U=D(5055),ue=D(7953),oe=D(591),Xe=D(5397),Je=D(5196),Se=D(8071),De=D(5334),Qe=D(3494);function Ze(mt){if(mt instanceof Oe.c)return mt;if(null!=mt){if((0,U.l)(mt))return function qe(mt){return new Oe.c(Me=>{const Ye=mt[Qe.s]();if((0,Se.T)(Ye.subscribe))return Ye.subscribe(Me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(mt);if((0,c.X)(mt))return function ht(mt){return new Oe.c(Me=>{for(let Ye=0;Ye{mt.then(Ye=>{Me.closed||(Me.next(Ye),Me.complete())},Ye=>Me.error(Ye)).then(null,De.m)})}(mt);if((0,ue.T)(mt))return yt(mt);if((0,Xe.x)(mt))return function St(mt){return new Oe.c(Me=>{for(const Ye of mt)if(Me.next(Ye),Me.closed)return;Me.complete()})}(mt);if((0,Je.U)(mt))return function _t(mt){return yt((0,Je.C)(mt))}(mt)}throw(0,oe.L)(mt)}function yt(mt){return new Oe.c(Me=>{(function Et(mt,Me){var Ye,ge,Ue,Fe;return(0,h.sH)(this,void 0,void 0,function*(){try{for(Ye=(0,h.xN)(mt);!(ge=yield Ye.next()).done;)if(Me.next(ge.value),Me.closed)return}catch(xe){Ue={error:xe}}finally{try{ge&&!ge.done&&(Fe=Ye.return)&&(yield Fe.call(Ye))}finally{if(Ue)throw Ue.error}}Me.complete()})})(mt,Me).catch(Ye=>Me.error(Ye))})}},7786:(Tn,gt,D)=>{"use strict";D.d(gt,{h:()=>ue});var h=D(6365),c=D(8750),Z=D(983),Oe=D(9326),U=D(8455);function ue(...oe){const Xe=(0,Oe.lI)(oe),Je=(0,Oe.R0)(oe,1/0),Se=oe;return Se.length?1===Se.length?(0,c.Tg)(Se[0]):(0,h.U)(Je)((0,U.H)(Se,Xe)):Z.w}},7673:(Tn,gt,D)=>{"use strict";D.d(gt,{of:()=>Z});var h=D(9326),c=D(8455);function Z(...Oe){const U=(0,h.lI)(Oe);return(0,c.H)(Oe,U)}},1584:(Tn,gt,D)=>{"use strict";D.d(gt,{O:()=>U});var h=D(1985),c=D(3236),Z=D(9470);function U(ue=0,oe,Xe=c.b){let Je=-1;return null!=oe&&((0,Z.m)(oe)?Xe=oe:Je=oe),new h.c(Se=>{let De=function Oe(ue){return ue instanceof Date&&!isNaN(ue)}(ue)?+ue-Xe.now():ue;De<0&&(De=0);let Qe=0;return Xe.schedule(function(){Se.closed||(Se.next(Qe++),0<=Je?this.schedule(void 0,Je):Se.complete())},De)})}},4360:(Tn,gt,D)=>{"use strict";D.d(gt,{_:()=>c});var h=D(7707);function c(Oe,U,ue,oe,Xe){return new Z(Oe,U,ue,oe,Xe)}class Z extends h.vU{constructor(U,ue,oe,Xe,Je,Se){super(U),this.onFinalize=Je,this.shouldUnsubscribe=Se,this._next=ue?function(De){try{ue(De)}catch(Qe){U.error(Qe)}}:super._next,this._error=Xe?function(De){try{Xe(De)}catch(Qe){U.error(Qe)}finally{this.unsubscribe()}}:super._error,this._complete=oe?function(){try{oe()}catch(De){U.error(De)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var U;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ue}=this;super.unsubscribe(),!ue&&(null===(U=this.onFinalize)||void 0===U||U.call(this))}}}},274:(Tn,gt,D)=>{"use strict";D.d(gt,{H:()=>Z});var h=D(1397),c=D(8071);function Z(Oe,U){return(0,c.T)(U)?(0,h.Z)(Oe,U,1):(0,h.Z)(Oe,1)}},9901:(Tn,gt,D)=>{"use strict";D.d(gt,{U:()=>Z});var h=D(9974),c=D(4360);function Z(Oe){return(0,h.N)((U,ue)=>{let oe=!1;U.subscribe((0,c._)(ue,Xe=>{oe=!0,ue.next(Xe)},()=>{oe||ue.next(Oe),ue.complete()}))})}},3294:(Tn,gt,D)=>{"use strict";D.d(gt,{F:()=>Oe});var h=D(3669),c=D(9974),Z=D(4360);function Oe(ue,oe=h.D){return ue=null!=ue?ue:U,(0,c.N)((Xe,Je)=>{let Se,De=!0;Xe.subscribe((0,Z._)(Je,Qe=>{const Ze=oe(Qe);(De||!ue(Se,Ze))&&(De=!1,Se=Ze,Je.next(Qe))}))})}function U(ue,oe){return ue===oe}},5964:(Tn,gt,D)=>{"use strict";D.d(gt,{p:()=>Z});var h=D(9974),c=D(4360);function Z(Oe,U){return(0,h.N)((ue,oe)=>{let Xe=0;ue.subscribe((0,c._)(oe,Je=>Oe.call(U,Je,Xe++)&&oe.next(Je)))})}},980:(Tn,gt,D)=>{"use strict";D.d(gt,{j:()=>c});var h=D(9974);function c(Z){return(0,h.N)((Oe,U)=>{try{Oe.subscribe(U)}finally{U.add(Z)}})}},1594:(Tn,gt,D)=>{"use strict";D.d(gt,{$:()=>oe});var h=D(9350),c=D(5964),Z=D(6697),Oe=D(9901),U=D(3774),ue=D(3669);function oe(Xe,Je){const Se=arguments.length>=2;return De=>De.pipe(Xe?(0,c.p)((Qe,Ze)=>Xe(Qe,Ze,De)):ue.D,(0,Z.s)(1),Se?(0,Oe.U)(Je):(0,U.v)(()=>new h.G))}},6354:(Tn,gt,D)=>{"use strict";D.d(gt,{T:()=>Z});var h=D(9974),c=D(4360);function Z(Oe,U){return(0,h.N)((ue,oe)=>{let Xe=0;ue.subscribe((0,c._)(oe,Je=>{oe.next(Oe.call(U,Je,Xe++))}))})}},3703:(Tn,gt,D)=>{"use strict";D.d(gt,{u:()=>c});var h=D(6354);function c(Z){return(0,h.T)(()=>Z)}},6365:(Tn,gt,D)=>{"use strict";D.d(gt,{U:()=>Z});var h=D(1397),c=D(3669);function Z(Oe=1/0){return(0,h.Z)(c.D,Oe)}},1397:(Tn,gt,D)=>{"use strict";D.d(gt,{Z:()=>Xe});var h=D(6354),c=D(8750),Z=D(9974),Oe=D(5225),U=D(4360),oe=D(8071);function Xe(Je,Se,De=1/0){return(0,oe.T)(Se)?Xe((Qe,Ze)=>(0,h.T)((qe,ht)=>Se(Qe,qe,Ze,ht))((0,c.Tg)(Je(Qe,Ze))),De):("number"==typeof Se&&(De=Se),(0,Z.N)((Qe,Ze)=>function ue(Je,Se,De,Qe,Ze,qe,ht,Tt){const St=[];let yt=0,_t=0,Et=!1;const mt=()=>{Et&&!St.length&&!yt&&Se.complete()},Me=ge=>yt{qe&&Se.next(ge),yt++;let Ue=!1;(0,c.Tg)(De(ge,_t++)).subscribe((0,U._)(Se,Fe=>{null==Ze||Ze(Fe),qe?Me(Fe):Se.next(Fe)},()=>{Ue=!0},void 0,()=>{if(Ue)try{for(yt--;St.length&&ytYe(Fe)):Ye(Fe)}mt()}catch(Fe){Se.error(Fe)}}))};return Je.subscribe((0,U._)(Se,Me,()=>{Et=!0,mt()})),()=>{null==Tt||Tt()}}(Qe,Ze,Je,De)))}},941:(Tn,gt,D)=>{"use strict";D.d(gt,{Q:()=>Oe});var h=D(5225),c=D(9974),Z=D(4360);function Oe(U,ue=0){return(0,c.N)((oe,Xe)=>{oe.subscribe((0,Z._)(Xe,Je=>(0,h.N)(Xe,U,()=>Xe.next(Je),ue),()=>(0,h.N)(Xe,U,()=>Xe.complete(),ue),Je=>(0,h.N)(Xe,U,()=>Xe.error(Je),ue)))})}},9172:(Tn,gt,D)=>{"use strict";D.d(gt,{Z:()=>Oe});var h=D(8793),c=D(9326),Z=D(9974);function Oe(...U){const ue=(0,c.lI)(U);return(0,Z.N)((oe,Xe)=>{(ue?(0,h.x)(U,oe,ue):(0,h.x)(U,oe)).subscribe(Xe)})}},6745:(Tn,gt,D)=>{"use strict";D.d(gt,{_:()=>c});var h=D(9974);function c(Z,Oe=0){return(0,h.N)((U,ue)=>{ue.add(Z.schedule(()=>U.subscribe(ue),Oe))})}},5558:(Tn,gt,D)=>{"use strict";D.d(gt,{n:()=>Oe});var h=D(8750),c=D(9974),Z=D(4360);function Oe(U,ue){return(0,c.N)((oe,Xe)=>{let Je=null,Se=0,De=!1;const Qe=()=>De&&!Je&&Xe.complete();oe.subscribe((0,Z._)(Xe,Ze=>{null==Je||Je.unsubscribe();let qe=0;const ht=Se++;(0,h.Tg)(U(Ze,ht)).subscribe(Je=(0,Z._)(Xe,Tt=>Xe.next(ue?ue(Ze,Tt,ht,qe++):Tt),()=>{Je=null,Qe()}))},()=>{De=!0,Qe()}))})}},6697:(Tn,gt,D)=>{"use strict";D.d(gt,{s:()=>Oe});var h=D(983),c=D(9974),Z=D(4360);function Oe(U){return U<=0?()=>h.w:(0,c.N)((ue,oe)=>{let Xe=0;ue.subscribe((0,Z._)(oe,Je=>{++Xe<=U&&(oe.next(Je),U<=Xe&&oe.complete())}))})}},6977:(Tn,gt,D)=>{"use strict";D.d(gt,{Q:()=>U});var h=D(9974),c=D(4360),Z=D(8750),Oe=D(5343);function U(ue){return(0,h.N)((oe,Xe)=>{(0,Z.Tg)(ue).subscribe((0,c._)(Xe,()=>Xe.complete(),Oe.l)),!Xe.closed&&oe.subscribe(Xe)})}},8141:(Tn,gt,D)=>{"use strict";D.d(gt,{M:()=>U});var h=D(8071),c=D(9974),Z=D(4360),Oe=D(3669);function U(ue,oe,Xe){const Je=(0,h.T)(ue)||oe||Xe?{next:ue,error:oe,complete:Xe}:ue;return Je?(0,c.N)((Se,De)=>{var Qe;null===(Qe=Je.subscribe)||void 0===Qe||Qe.call(Je);let Ze=!0;Se.subscribe((0,Z._)(De,qe=>{var ht;null===(ht=Je.next)||void 0===ht||ht.call(Je,qe),De.next(qe)},()=>{var qe;Ze=!1,null===(qe=Je.complete)||void 0===qe||qe.call(Je),De.complete()},qe=>{var ht;Ze=!1,null===(ht=Je.error)||void 0===ht||ht.call(Je,qe),De.error(qe)},()=>{var qe,ht;Ze&&(null===(qe=Je.unsubscribe)||void 0===qe||qe.call(Je)),null===(ht=Je.finalize)||void 0===ht||ht.call(Je)}))}):Oe.D}},3774:(Tn,gt,D)=>{"use strict";D.d(gt,{v:()=>Oe});var h=D(9350),c=D(9974),Z=D(4360);function Oe(ue=U){return(0,c.N)((oe,Xe)=>{let Je=!1;oe.subscribe((0,Z._)(Xe,Se=>{Je=!0,Xe.next(Se)},()=>Je?Xe.complete():Xe.error(ue())))})}function U(){return new h.G}},6780:(Tn,gt,D)=>{"use strict";D.d(gt,{R:()=>U});var h=D(8359);class c extends h.yU{constructor(oe,Xe){super()}schedule(oe,Xe=0){return this}}const Z={setInterval(ue,oe,...Xe){const{delegate:Je}=Z;return null!=Je&&Je.setInterval?Je.setInterval(ue,oe,...Xe):setInterval(ue,oe,...Xe)},clearInterval(ue){const{delegate:oe}=Z;return((null==oe?void 0:oe.clearInterval)||clearInterval)(ue)},delegate:void 0};var Oe=D(7908);class U extends c{constructor(oe,Xe){super(oe,Xe),this.scheduler=oe,this.work=Xe,this.pending=!1}schedule(oe,Xe=0){var Je;if(this.closed)return this;this.state=oe;const Se=this.id,De=this.scheduler;return null!=Se&&(this.id=this.recycleAsyncId(De,Se,Xe)),this.pending=!0,this.delay=Xe,this.id=null!==(Je=this.id)&&void 0!==Je?Je:this.requestAsyncId(De,this.id,Xe),this}requestAsyncId(oe,Xe,Je=0){return Z.setInterval(oe.flush.bind(oe,this),Je)}recycleAsyncId(oe,Xe,Je=0){if(null!=Je&&this.delay===Je&&!1===this.pending)return Xe;null!=Xe&&Z.clearInterval(Xe)}execute(oe,Xe){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Je=this._execute(oe,Xe);if(Je)return Je;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(oe,Xe){let Se,Je=!1;try{this.work(oe)}catch(De){Je=!0,Se=De||new Error("Scheduled action threw falsy error")}if(Je)return this.unsubscribe(),Se}unsubscribe(){if(!this.closed){const{id:oe,scheduler:Xe}=this,{actions:Je}=Xe;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Oe.o)(Je,this),null!=oe&&(this.id=this.recycleAsyncId(Xe,oe,null)),this.delay=null,super.unsubscribe()}}}},9687:(Tn,gt,D)=>{"use strict";D.d(gt,{q:()=>Z});var h=D(6129);class c{constructor(U,ue=c.now){this.schedulerActionCtor=U,this.now=ue}schedule(U,ue=0,oe){return new this.schedulerActionCtor(this,U).schedule(oe,ue)}}c.now=h.U.now;class Z extends c{constructor(U,ue=c.now){super(U,ue),this.actions=[],this._active=!1}flush(U){const{actions:ue}=this;if(this._active)return void ue.push(U);let oe;this._active=!0;do{if(oe=U.execute(U.state,U.delay))break}while(U=ue.shift());if(this._active=!1,oe){for(;U=ue.shift();)U.unsubscribe();throw oe}}}},3236:(Tn,gt,D)=>{"use strict";D.d(gt,{E:()=>Z,b:()=>Oe});var h=D(6780);const Z=new(D(9687).q)(h.R),Oe=Z},6129:(Tn,gt,D)=>{"use strict";D.d(gt,{U:()=>h});const h={now:()=>(h.delegate||Date).now(),delegate:void 0}},9270:(Tn,gt,D)=>{"use strict";D.d(gt,{f:()=>h});const h={setTimeout(c,Z,...Oe){const{delegate:U}=h;return null!=U&&U.setTimeout?U.setTimeout(c,Z,...Oe):setTimeout(c,Z,...Oe)},clearTimeout(c){const{delegate:Z}=h;return((null==Z?void 0:Z.clearTimeout)||clearTimeout)(c)},delegate:void 0}},4761:(Tn,gt,D)=>{"use strict";D.d(gt,{l:()=>c});const c=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Tn,gt,D)=>{"use strict";D.d(gt,{s:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Tn,gt,D)=>{"use strict";D.d(gt,{G:()=>c});const c=(0,D(1853).L)(Z=>function(){Z(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Tn,gt,D)=>{"use strict";D.d(gt,{R0:()=>ue,lI:()=>U,ms:()=>Oe});var h=D(8071),c=D(9470);function Z(oe){return oe[oe.length-1]}function Oe(oe){return(0,h.T)(Z(oe))?oe.pop():void 0}function U(oe){return(0,c.m)(Z(oe))?oe.pop():void 0}function ue(oe,Xe){return"number"==typeof Z(oe)?oe.pop():Xe}},3073:(Tn,gt,D)=>{"use strict";D.d(gt,{D:()=>U});const{isArray:h}=Array,{getPrototypeOf:c,prototype:Z,keys:Oe}=Object;function U(oe){if(1===oe.length){const Xe=oe[0];if(h(Xe))return{args:Xe,keys:null};if(function ue(oe){return oe&&"object"==typeof oe&&c(oe)===Z}(Xe)){const Je=Oe(Xe);return{args:Je.map(Se=>Xe[Se]),keys:Je}}}return{args:oe,keys:null}}},7908:(Tn,gt,D)=>{"use strict";function h(c,Z){if(c){const Oe=c.indexOf(Z);0<=Oe&&c.splice(Oe,1)}}D.d(gt,{o:()=>h})},1853:(Tn,gt,D)=>{"use strict";function h(c){const Oe=c(U=>{Error.call(U),U.stack=(new Error).stack});return Oe.prototype=Object.create(Error.prototype),Oe.prototype.constructor=Oe,Oe}D.d(gt,{L:()=>h})},8496:(Tn,gt,D)=>{"use strict";function h(c,Z){return c.reduce((Oe,U,ue)=>(Oe[U]=Z[ue],Oe),{})}D.d(gt,{e:()=>h})},9786:(Tn,gt,D)=>{"use strict";D.d(gt,{Y:()=>Z,l:()=>Oe});var h=D(1026);let c=null;function Z(U){if(h.$.useDeprecatedSynchronousErrorHandling){const ue=!c;if(ue&&(c={errorThrown:!1,error:null}),U(),ue){const{errorThrown:oe,error:Xe}=c;if(c=null,oe)throw Xe}}else U()}function Oe(U){h.$.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=U)}},5225:(Tn,gt,D)=>{"use strict";function h(c,Z,Oe,U=0,ue=!1){const oe=Z.schedule(function(){Oe(),ue?c.add(this.schedule(null,U)):this.unsubscribe()},U);if(c.add(oe),!ue)return oe}D.d(gt,{N:()=>h})},3669:(Tn,gt,D)=>{"use strict";function h(c){return c}D.d(gt,{D:()=>h})},7441:(Tn,gt,D)=>{"use strict";D.d(gt,{X:()=>h});const h=c=>c&&"number"==typeof c.length&&"function"!=typeof c},7953:(Tn,gt,D)=>{"use strict";D.d(gt,{T:()=>c});var h=D(8071);function c(Z){return Symbol.asyncIterator&&(0,h.T)(null==Z?void 0:Z[Symbol.asyncIterator])}},8071:(Tn,gt,D)=>{"use strict";function h(c){return"function"==typeof c}D.d(gt,{T:()=>h})},5055:(Tn,gt,D)=>{"use strict";D.d(gt,{l:()=>Z});var h=D(3494),c=D(8071);function Z(Oe){return(0,c.T)(Oe[h.s])}},5397:(Tn,gt,D)=>{"use strict";D.d(gt,{x:()=>Z});var h=D(4761),c=D(8071);function Z(Oe){return(0,c.T)(null==Oe?void 0:Oe[h.l])}},4402:(Tn,gt,D)=>{"use strict";D.d(gt,{A:()=>Z});var h=D(1985),c=D(8071);function Z(Oe){return!!Oe&&(Oe instanceof h.c||(0,c.T)(Oe.lift)&&(0,c.T)(Oe.subscribe))}},9858:(Tn,gt,D)=>{"use strict";D.d(gt,{y:()=>c});var h=D(8071);function c(Z){return(0,h.T)(null==Z?void 0:Z.then)}},5196:(Tn,gt,D)=>{"use strict";D.d(gt,{C:()=>Z,U:()=>Oe});var h=D(1635),c=D(8071);function Z(U){return(0,h.AQ)(this,arguments,function*(){const oe=U.getReader();try{for(;;){const{value:Xe,done:Je}=yield(0,h.N3)(oe.read());if(Je)return yield(0,h.N3)(void 0);yield yield(0,h.N3)(Xe)}}finally{oe.releaseLock()}})}function Oe(U){return(0,c.T)(null==U?void 0:U.getReader)}},9470:(Tn,gt,D)=>{"use strict";D.d(gt,{m:()=>c});var h=D(8071);function c(Z){return Z&&(0,h.T)(Z.schedule)}},9974:(Tn,gt,D)=>{"use strict";D.d(gt,{N:()=>Z,S:()=>c});var h=D(8071);function c(Oe){return(0,h.T)(null==Oe?void 0:Oe.lift)}function Z(Oe){return U=>{if(c(U))return U.lift(function(ue){try{return Oe(ue,this)}catch(oe){this.error(oe)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Tn,gt,D)=>{"use strict";D.d(gt,{I:()=>Oe});var h=D(6354);const{isArray:c}=Array;function Oe(U){return(0,h.T)(ue=>function Z(U,ue){return c(ue)?U(...ue):U(ue)}(U,ue))}},5343:(Tn,gt,D)=>{"use strict";function h(){}D.d(gt,{l:()=>h})},1203:(Tn,gt,D)=>{"use strict";D.d(gt,{F:()=>c,m:()=>Z});var h=D(3669);function c(...Oe){return Z(Oe)}function Z(Oe){return 0===Oe.length?h.D:1===Oe.length?Oe[0]:function(ue){return Oe.reduce((oe,Xe)=>Xe(oe),ue)}}},5334:(Tn,gt,D)=>{"use strict";D.d(gt,{m:()=>Z});var h=D(1026),c=D(9270);function Z(Oe){c.f.setTimeout(()=>{const{onUnhandledError:U}=h.$;if(!U)throw Oe;U(Oe)})}},591:(Tn,gt,D)=>{"use strict";function h(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}D.d(gt,{L:()=>h})},8996:(Tn,gt,D)=>{var h={"./ion-accordion_2.entry.js":[2375,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[4591,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,1293,7428],"./ion-datetime_3.entry.js":[2885,1293,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input-password-toggle.entry.js":[6521,2076,6521],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-option.entry.js":[9013,9013],"./ion-picker-column.entry.js":[1459,2076,1459],"./ion-picker.entry.js":[6840,6840],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function c(Z){if(!D.o(h,Z))return Promise.resolve().then(()=>{var ue=new Error("Cannot find module '"+Z+"'");throw ue.code="MODULE_NOT_FOUND",ue});var Oe=h[Z],U=Oe[0];return Promise.all(Oe.slice(1).map(D.e)).then(()=>D(U))}c.keys=()=>Object.keys(h),c.id=8996,Tn.exports=c},177:(Tn,gt,D)=>{"use strict";D.d(gt,{AJ:()=>Yt,Jj:()=>bt,MD:()=>It,N0:()=>ki,QT:()=>Z,QX:()=>sr,Sm:()=>Tt,Sq:()=>or,T3:()=>Hn,UE:()=>Nn,VF:()=>U,Vy:()=>jn,Xr:()=>jr,ZD:()=>Oe,_b:()=>x,aZ:()=>yt,bT:()=>On,fw:()=>St,hb:()=>qe,hj:()=>Je,qQ:()=>oe});var h=D(4438);let c=null;function Z(){return c}function Oe(C){var $;null!==($=c)&&void 0!==$||(c=C)}class U{}const oe=new h.nKC("");let Xe=(()=>{var C;class ${historyGo(F){throw new Error("")}}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275prov=h.jDH({token:C,factory:()=>(0,h.WQX)(Se),providedIn:"platform"}),$})();const Je=new h.nKC("");let Se=(()=>{var C;class $ extends Xe{constructor(){super(),this._doc=(0,h.WQX)(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Z().getBaseHref(this._doc)}onPopState(F){const Ae=Z().getGlobalEventTarget(this._doc,"window");return Ae.addEventListener("popstate",F,!1),()=>Ae.removeEventListener("popstate",F)}onHashChange(F){const Ae=Z().getGlobalEventTarget(this._doc,"window");return Ae.addEventListener("hashchange",F,!1),()=>Ae.removeEventListener("hashchange",F)}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(F){this._location.pathname=F}pushState(F,Ae,Ke){this._history.pushState(F,Ae,Ke)}replaceState(F,Ae,Ke){this._history.replaceState(F,Ae,Ke)}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275prov=h.jDH({token:C,factory:()=>new C,providedIn:"platform"}),$})();function De(C,$){if(0==C.length)return $;if(0==$.length)return C;let Be=0;return C.endsWith("/")&&Be++,$.startsWith("/")&&Be++,2==Be?C+$.substring(1):1==Be?C+$:C+"/"+$}function Qe(C){const $=C.match(/#|\?|$/),Be=$&&$.index||C.length;return C.slice(0,Be-("/"===C[Be-1]?1:0))+C.slice(Be)}function Ze(C){return C&&"?"!==C[0]?"?"+C:C}let qe=(()=>{var C;class ${historyGo(F){throw new Error("")}}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275prov=h.jDH({token:C,factory:()=>(0,h.WQX)(Tt),providedIn:"root"}),$})();const ht=new h.nKC("");let Tt=(()=>{var C;class $ extends qe{constructor(F,Ae){var Ke,Qt,wn;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==(Ke=null!==(Qt=null!=Ae?Ae:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Qt?Qt:null===(wn=(0,h.WQX)(oe).location)||void 0===wn?void 0:wn.origin)&&void 0!==Ke?Ke:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return De(this._baseHref,F)}path(F=!1){const Ae=this._platformLocation.pathname+Ze(this._platformLocation.search),Ke=this._platformLocation.hash;return Ke&&F?`${Ae}${Ke}`:Ae}pushState(F,Ae,Ke,Qt){const wn=this.prepareExternalUrl(Ke+Ze(Qt));this._platformLocation.pushState(F,Ae,wn)}replaceState(F,Ae,Ke,Qt){const wn=this.prepareExternalUrl(Ke+Ze(Qt));this._platformLocation.replaceState(F,Ae,wn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var Ae,Ke;null===(Ae=(Ke=this._platformLocation).historyGo)||void 0===Ae||Ae.call(Ke,F)}}return(C=$).\u0275fac=function(F){return new(F||C)(h.KVO(Xe),h.KVO(ht,8))},C.\u0275prov=h.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}),$})(),St=(()=>{var C;class $ extends qe{constructor(F,Ae){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=Ae&&(this._baseHref=Ae)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){var Ae;const Ke=null!==(Ae=this._platformLocation.hash)&&void 0!==Ae?Ae:"#";return Ke.length>0?Ke.substring(1):Ke}prepareExternalUrl(F){const Ae=De(this._baseHref,F);return Ae.length>0?"#"+Ae:Ae}pushState(F,Ae,Ke,Qt){let wn=this.prepareExternalUrl(Ke+Ze(Qt));0==wn.length&&(wn=this._platformLocation.pathname),this._platformLocation.pushState(F,Ae,wn)}replaceState(F,Ae,Ke,Qt){let wn=this.prepareExternalUrl(Ke+Ze(Qt));0==wn.length&&(wn=this._platformLocation.pathname),this._platformLocation.replaceState(F,Ae,wn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var Ae,Ke;null===(Ae=(Ke=this._platformLocation).historyGo)||void 0===Ae||Ae.call(Ke,F)}}return(C=$).\u0275fac=function(F){return new(F||C)(h.KVO(Xe),h.KVO(ht,8))},C.\u0275prov=h.jDH({token:C,factory:C.\u0275fac}),$})(),yt=(()=>{var C;class ${constructor(F){this._subject=new h.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const Ae=this._locationStrategy.getBaseHref();this._basePath=function Me(C){if(new RegExp("^(https?:)?//").test(C)){const[,Be]=C.split(/\/\/[^\/]+/);return Be}return C}(Qe(mt(Ae))),this._locationStrategy.onPopState(Ke=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ke.state,type:Ke.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,Ae=""){return this.path()==this.normalize(F+Ze(Ae))}normalize(F){return $.stripTrailingSlash(function Et(C,$){if(!C||!$.startsWith(C))return $;const Be=$.substring(C.length);return""===Be||["/",";","?","#"].includes(Be[0])?Be:$}(this._basePath,mt(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,Ae="",Ke=null){this._locationStrategy.pushState(Ke,"",F,Ae),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+Ze(Ae)),Ke)}replaceState(F,Ae="",Ke=null){this._locationStrategy.replaceState(Ke,"",F,Ae),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+Ze(Ae)),Ke)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var Ae,Ke;null===(Ae=(Ke=this._locationStrategy).historyGo)||void 0===Ae||Ae.call(Ke,F)}onUrlChange(F){var Ae;return this._urlChangeListeners.push(F),null!==(Ae=this._urlChangeSubscription)&&void 0!==Ae||(this._urlChangeSubscription=this.subscribe(Ke=>{this._notifyUrlChangeListeners(Ke.url,Ke.state)})),()=>{const Ke=this._urlChangeListeners.indexOf(F);var Qt;this._urlChangeListeners.splice(Ke,1),0===this._urlChangeListeners.length&&(null===(Qt=this._urlChangeSubscription)||void 0===Qt||Qt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",Ae){this._urlChangeListeners.forEach(Ke=>Ke(F,Ae))}subscribe(F,Ae,Ke){return this._subject.subscribe({next:F,error:Ae,complete:Ke})}}return(C=$).normalizeQueryParams=Ze,C.joinWithSlash=De,C.stripTrailingSlash=Qe,C.\u0275fac=function(F){return new(F||C)(h.KVO(qe))},C.\u0275prov=h.jDH({token:C,factory:()=>function _t(){return new yt((0,h.KVO)(qe))}(),providedIn:"root"}),$})();function mt(C){return C.replace(/\/index.html$/,"")}var ge=function(C){return C[C.Decimal=0]="Decimal",C[C.Percent=1]="Percent",C[C.Currency=2]="Currency",C[C.Scientific=3]="Scientific",C}(ge||{});const Rt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Le(C,$){const Be=(0,h.H5H)(C),F=Be[h.KH2.NumberSymbols][$];if(typeof F>"u"){if($===Rt.CurrencyDecimal)return Be[h.KH2.NumberSymbols][Rt.Decimal];if($===Rt.CurrencyGroup)return Be[h.KH2.NumberSymbols][Rt.Group]}return F}const ct=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Ut(C){const $=parseInt(C);if(isNaN($))throw new Error("Invalid integer literal when parsing "+C);return $}function x(C,$){$=encodeURIComponent($);for(const Be of C.split(";")){const F=Be.indexOf("="),[Ae,Ke]=-1==F?[Be,""]:[Be.slice(0,F),Be.slice(F+1)];if(Ae.trim()===$)return decodeURIComponent(Ke)}return null}class ln{constructor($,Be,F,Ae){this.$implicit=$,this.ngForOf=Be,this.index=F,this.count=Ae}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 or=(()=>{var C;class ${set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}constructor(F,Ae,Ke){this._viewContainer=F,this._template=Ae,this._differs=Ke,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const Ae=this._viewContainer;F.forEachOperation((Ke,Qt,wn)=>{if(null==Ke.previousIndex)Ae.createEmbeddedView(this._template,new ln(Ke.item,this._ngForOf,-1,-1),null===wn?void 0:wn);else if(null==wn)Ae.remove(null===Qt?void 0:Qt);else if(null!==Qt){const ar=Ae.get(Qt);Ae.move(ar,wn),Un(ar,Ke)}});for(let Ke=0,Qt=Ae.length;Ke{Un(Ae.get(Ke.currentIndex),Ke)})}static ngTemplateContextGuard(F,Ae){return!0}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.c1b),h.rXU(h.C4Q),h.rXU(h._q3))},C.\u0275dir=h.FsC({type:C,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),$})();function Un(C,$){C.context.$implicit=$.item}let On=(()=>{var C;class ${constructor(F,Ae){this._viewContainer=F,this._context=new Fr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ae}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){Or("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){Or("ngIfElse",F),this._elseTemplateRef=F,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(F,Ae){return!0}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.c1b),h.rXU(h.C4Q))},C.\u0275dir=h.FsC({type:C,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),$})();class Fr{constructor(){this.$implicit=null,this.ngIf=null}}function Or(C,$){if($&&!$.createEmbeddedView)throw new Error(`${C} must be a TemplateRef, but received '${(0,h.Tbb)($)}'.`)}let Hn=(()=>{var C;class ${constructor(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(F){if(this._shouldRecreateView(F)){var Ae;const Ke=this._viewContainerRef;if(this._viewRef&&Ke.remove(Ke.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Qt=this._createContextForwardProxy();this._viewRef=Ke.createEmbeddedView(this.ngTemplateOutlet,Qt,{injector:null!==(Ae=this.ngTemplateOutletInjector)&&void 0!==Ae?Ae:void 0})}}_shouldRecreateView(F){return!!F.ngTemplateOutlet||!!F.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(F,Ae,Ke)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Ae,Ke),get:(F,Ae,Ke)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Ae,Ke)}})}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.c1b))},C.\u0275dir=h.FsC({type:C,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[h.OA$]}),$})();function ui(C,$){return new h.wOt(2100,!1)}class Ci{createSubscription($,Be){return(0,h.O8t)(()=>$.subscribe({next:Be,error:F=>{throw F}}))}dispose($){(0,h.O8t)(()=>$.unsubscribe())}}class Eo{createSubscription($,Be){return $.then(Be,F=>{throw F})}dispose($){}}const No=new Eo,oi=new Ci;let bt=(()=>{var C;class ${constructor(F){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=F}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(F){if(!this._obj){if(F)try{this.markForCheckOnValueUpdate=!1,this._subscribe(F)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,Ae=>this._updateLatestValue(F,Ae))}_selectStrategy(F){if((0,h.jNT)(F))return No;if((0,h.zjR)(F))return oi;throw ui()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,Ae){var Ke;F===this._obj&&(this._latestValue=Ae,this.markForCheckOnValueUpdate)&&(null===(Ke=this._ref)||void 0===Ke||Ke.markForCheck())}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.gRc,16))},C.\u0275pipe=h.EJ8({name:"async",type:C,pure:!1,standalone:!0}),$})(),sr=(()=>{var C;class ${constructor(F){this._locale=F}transform(F,Ae,Ke){if(!function me(C){return!(null==C||""===C||C!=C)}(F))return null;Ke||(Ke=this._locale);try{return function Zr(C,$,Be){return function Ar(C,$,Be,F,Ae,Ke,Qt=!1){let wn="",ar=!1;if(isFinite(C)){let Yn=function gi(C){let F,Ae,Ke,Qt,wn,$=Math.abs(C)+"",Be=0;for((Ae=$.indexOf("."))>-1&&($=$.replace(".","")),(Ke=$.search(/e/i))>0?(Ae<0&&(Ae=Ke),Ae+=+$.slice(Ke+1),$=$.substring(0,Ke)):Ae<0&&(Ae=$.length),Ke=0;"0"===$.charAt(Ke);Ke++);if(Ke===(wn=$.length))F=[0],Ae=1;else{for(wn--;"0"===$.charAt(wn);)wn--;for(Ae-=Ke,F=[],Qt=0;Ke<=wn;Ke++,Qt++)F[Qt]=Number($.charAt(Ke))}return Ae>22&&(F=F.splice(0,21),Be=Ae-1,Ae=1),{digits:F,exponent:Be,integerLen:Ae}}(C);Qt&&(Yn=function Ri(C){if(0===C.digits[0])return C;const $=C.digits.length-C.integerLen;return C.exponent?C.exponent+=2:(0===$?C.digits.push(0,0):1===$&&C.digits.push(0),C.integerLen+=2),C}(Yn));let pi=$.minInt,Xr=$.minFrac,ci=$.maxFrac;if(Ke){const Di=Ke.match(ct);if(null===Di)throw new Error(`${Ke} is not a valid digit info`);const qi=Di[1],Si=Di[3],Qi=Di[5];null!=qi&&(pi=Ut(qi)),null!=Si&&(Xr=Ut(Si)),null!=Qi?ci=Ut(Qi):null!=Si&&Xr>ci&&(ci=Xr)}!function pr(C,$,Be){if($>Be)throw new Error(`The minimum number of digits after fraction (${$}) is higher than the maximum (${Be}).`);let F=C.digits,Ae=F.length-C.integerLen;const Ke=Math.min(Math.max($,Ae),Be);let Qt=Ke+C.integerLen,wn=F[Qt];if(Qt>0){F.splice(Math.max(C.integerLen,Qt));for(let Xr=Qt;Xr=5)if(Qt-1<0){for(let Xr=0;Xr>Qt;Xr--)F.unshift(0),C.integerLen++;F.unshift(1),C.integerLen++}else F[Qt-1]++;for(;Ae=Yn?Hi.pop():ar=!1),ci>=10?1:0},0);pi&&(F.unshift(pi),C.integerLen++)}(Yn,Xr,ci);let ri=Yn.digits,Hi=Yn.integerLen;const vi=Yn.exponent;let Rn=[];for(ar=ri.every(Di=>!Di);Hi0?Rn=ri.splice(Hi,ri.length):(Rn=ri,ri=[0]);const Kn=[];for(ri.length>=$.lgSize&&Kn.unshift(ri.splice(-$.lgSize,ri.length).join(""));ri.length>$.gSize;)Kn.unshift(ri.splice(-$.gSize,ri.length).join(""));ri.length&&Kn.unshift(ri.join("")),wn=Kn.join(Le(Be,F)),Rn.length&&(wn+=Le(Be,Ae)+Rn.join("")),vi&&(wn+=Le(Be,Rt.Exponential)+"+"+vi)}else wn=Le(Be,Rt.Infinity);return wn=C<0&&!ar?$.negPre+wn+$.negSuf:$.posPre+wn+$.posSuf,wn}(C,function fr(C,$="-"){const Be={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},F=C.split(";"),Ae=F[0],Ke=F[1],Qt=-1!==Ae.indexOf(".")?Ae.split("."):[Ae.substring(0,Ae.lastIndexOf("0")+1),Ae.substring(Ae.lastIndexOf("0")+1)],wn=Qt[0],ar=Qt[1]||"";Be.posPre=wn.substring(0,wn.indexOf("#"));for(let pi=0;pi{var C;class ${}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275mod=h.$C({type:C}),C.\u0275inj=h.G2t({}),$})();const Yt="browser",sn="server";function Nn(C){return C===Yt}function jn(C){return C===sn}let jr=(()=>{var C;class ${}return(C=$).\u0275prov=(0,h.jDH)({token:C,providedIn:"root",factory:()=>Nn((0,h.WQX)(h.Agw))?new br((0,h.WQX)(oe),window):new Ni}),$})();class br{constructor($,Be){this.document=$,this.window=Be,this.offset=()=>[0,0]}setOffset($){this.offset=Array.isArray($)?()=>$:$}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition($){this.window.scrollTo($[0],$[1])}scrollToAnchor($){const Be=function wi(C,$){const Be=C.getElementById($)||C.getElementsByName($)[0];if(Be)return Be;if("function"==typeof C.createTreeWalker&&C.body&&"function"==typeof C.body.attachShadow){const F=C.createTreeWalker(C.body,NodeFilter.SHOW_ELEMENT);let Ae=F.currentNode;for(;Ae;){const Ke=Ae.shadowRoot;if(Ke){const Qt=Ke.getElementById($)||Ke.querySelector(`[name="${$}"]`);if(Qt)return Qt}Ae=F.nextNode()}}return null}(this.document,$);Be&&(this.scrollToElement(Be),Be.focus())}setHistoryScrollRestoration($){this.window.history.scrollRestoration=$}scrollToElement($){const Be=$.getBoundingClientRect(),F=Be.left+this.window.pageXOffset,Ae=Be.top+this.window.pageYOffset,Ke=this.offset();this.window.scrollTo(F-Ke[0],Ae-Ke[1])}}class Ni{setOffset($){}getScrollPosition(){return[0,0]}scrollToPosition($){}scrollToAnchor($){}setHistoryScrollRestoration($){}}class ki{}},1626:(Tn,gt,D)=>{"use strict";D.d(gt,{Qq:()=>fe,q1:()=>_n}),D(467);var c=D(4438),Z=D(7673),Oe=D(1985),U=D(8455),ue=D(274),oe=D(5964),Xe=D(6354),Je=D(980),Se=D(5558),De=D(177);class Qe{}class Ze{}class qe{constructor(x){this.normalizedNames=new Map,this.lazyUpdate=null,x?"string"==typeof x?this.lazyInit=()=>{this.headers=new Map,x.split("\n").forEach(te=>{const Te=te.indexOf(":");if(Te>0){const Ge=te.slice(0,Te),Ct=Ge.toLowerCase(),Jt=te.slice(Te+1).trim();this.maybeSetNormalizedName(Ge,Ct),this.headers.has(Ct)?this.headers.get(Ct).push(Jt):this.headers.set(Ct,[Jt])}})}:typeof Headers<"u"&&x instanceof Headers?(this.headers=new Map,x.forEach((te,Te)=>{this.setHeaderEntries(Te,te)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(x).forEach(([te,Te])=>{this.setHeaderEntries(te,Te)})}:this.headers=new Map}has(x){return this.init(),this.headers.has(x.toLowerCase())}get(x){this.init();const te=this.headers.get(x.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(x){return this.init(),this.headers.get(x.toLowerCase())||null}append(x,te){return this.clone({name:x,value:te,op:"a"})}set(x,te){return this.clone({name:x,value:te,op:"s"})}delete(x,te){return this.clone({name:x,value:te,op:"d"})}maybeSetNormalizedName(x,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,x)}init(){this.lazyInit&&(this.lazyInit instanceof qe?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(x=>this.applyUpdate(x)),this.lazyUpdate=null))}copyFrom(x){x.init(),Array.from(x.headers.keys()).forEach(te=>{this.headers.set(te,x.headers.get(te)),this.normalizedNames.set(te,x.normalizedNames.get(te))})}clone(x){const te=new qe;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof qe?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([x]),te}applyUpdate(x){const te=x.name.toLowerCase();switch(x.op){case"a":case"s":let Te=x.value;if("string"==typeof Te&&(Te=[Te]),0===Te.length)return;this.maybeSetNormalizedName(x.name,te);const Ge=("a"===x.op?this.headers.get(te):void 0)||[];Ge.push(...Te),this.headers.set(te,Ge);break;case"d":const Ct=x.value;if(Ct){let Jt=this.headers.get(te);if(!Jt)return;Jt=Jt.filter(ln=>-1===Ct.indexOf(ln)),0===Jt.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,Jt)}else this.headers.delete(te),this.normalizedNames.delete(te)}}setHeaderEntries(x,te){const Te=(Array.isArray(te)?te:[te]).map(Ct=>Ct.toString()),Ge=x.toLowerCase();this.headers.set(Ge,Te),this.maybeSetNormalizedName(x,Ge)}forEach(x){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>x(this.normalizedNames.get(te),this.headers.get(te)))}}class Tt{encodeKey(x){return Et(x)}encodeValue(x){return Et(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}}const yt=/%(\d[a-f0-9])/gi,_t={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Et(M){return encodeURIComponent(M).replace(yt,(x,te)=>{var Te;return null!==(Te=_t[te])&&void 0!==Te?Te:x})}function mt(M){return`${M}`}class Me{constructor(x={}){if(this.updates=null,this.cloneFrom=null,this.encoder=x.encoder||new Tt,x.fromString){if(x.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function St(M,x){const te=new Map;return M.length>0&&M.replace(/^\?/,"").split("&").forEach(Ge=>{const Ct=Ge.indexOf("="),[Jt,ln]=-1==Ct?[x.decodeKey(Ge),""]:[x.decodeKey(Ge.slice(0,Ct)),x.decodeValue(Ge.slice(Ct+1))],or=te.get(Jt)||[];or.push(ln),te.set(Jt,or)}),te}(x.fromString,this.encoder)}else x.fromObject?(this.map=new Map,Object.keys(x.fromObject).forEach(te=>{const Te=x.fromObject[te],Ge=Array.isArray(Te)?Te.map(mt):[mt(Te)];this.map.set(te,Ge)})):this.map=null}has(x){return this.init(),this.map.has(x)}get(x){this.init();const te=this.map.get(x);return te?te[0]:null}getAll(x){return this.init(),this.map.get(x)||null}keys(){return this.init(),Array.from(this.map.keys())}append(x,te){return this.clone({param:x,value:te,op:"a"})}appendAll(x){const te=[];return Object.keys(x).forEach(Te=>{const Ge=x[Te];Array.isArray(Ge)?Ge.forEach(Ct=>{te.push({param:Te,value:Ct,op:"a"})}):te.push({param:Te,value:Ge,op:"a"})}),this.clone(te)}set(x,te){return this.clone({param:x,value:te,op:"s"})}delete(x,te){return this.clone({param:x,value:te,op:"d"})}toString(){return this.init(),this.keys().map(x=>{const te=this.encoder.encodeKey(x);return this.map.get(x).map(Te=>te+"="+this.encoder.encodeValue(Te)).join("&")}).filter(x=>""!==x).join("&")}clone(x){const te=new Me({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(x),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(x=>this.map.set(x,this.cloneFrom.map.get(x))),this.updates.forEach(x=>{switch(x.op){case"a":case"s":const te=("a"===x.op?this.map.get(x.param):void 0)||[];te.push(mt(x.value)),this.map.set(x.param,te);break;case"d":if(void 0===x.value){this.map.delete(x.param);break}{let Te=this.map.get(x.param)||[];const Ge=Te.indexOf(mt(x.value));-1!==Ge&&Te.splice(Ge,1),Te.length>0?this.map.set(x.param,Te):this.map.delete(x.param)}}}),this.cloneFrom=this.updates=null)}}class ge{constructor(){this.map=new Map}set(x,te){return this.map.set(x,te),this}get(x){return this.map.has(x)||this.map.set(x,x.defaultValue()),this.map.get(x)}delete(x){return this.map.delete(x),this}has(x){return this.map.has(x)}keys(){return this.map.keys()}}function Fe(M){return typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer}function xe(M){return typeof Blob<"u"&&M instanceof Blob}function rt(M){return typeof FormData<"u"&&M instanceof FormData}class vn{constructor(x,te,Te,Ge){var Ct,Jt;let ln;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=x.toUpperCase(),function Ue(M){switch(M){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ge?(this.body=void 0!==Te?Te:null,ln=Ge):ln=Te,ln&&(this.reportProgress=!!ln.reportProgress,this.withCredentials=!!ln.withCredentials,ln.responseType&&(this.responseType=ln.responseType),ln.headers&&(this.headers=ln.headers),ln.context&&(this.context=ln.context),ln.params&&(this.params=ln.params),this.transferCache=ln.transferCache),null!==(Ct=this.headers)&&void 0!==Ct||(this.headers=new qe),null!==(Jt=this.context)&&void 0!==Jt||(this.context=new ge),this.params){const or=this.params.toString();if(0===or.length)this.urlWithParams=te;else{const Un=te.indexOf("?");this.urlWithParams=te+(-1===Un?"?":UnGn.set(Cr,x.setHeaders[Cr]),Or)),x.setParams&&(zr=Object.keys(x.setParams).reduce((Gn,Cr)=>Gn.set(Cr,x.setParams[Cr]),zr)),new vn(Jt,ln,xr,{params:zr,headers:Or,context:Tr,reportProgress:Fr,responseType:or,withCredentials:On,transferCache:Un})}}var Nt=function(M){return M[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M}(Nt||{});class tt{constructor(x,te=H.Ok,Te="OK"){this.headers=x.headers||new qe,this.status=void 0!==x.status?x.status:te,this.statusText=x.statusText||Te,this.url=x.url||null,this.ok=this.status>=200&&this.status<300}}class on extends tt{constructor(x={}){super(x),this.type=Nt.ResponseHeader}clone(x={}){return new on({headers:x.headers||this.headers,status:void 0!==x.status?x.status:this.status,statusText:x.statusText||this.statusText,url:x.url||this.url||void 0})}}class dt extends tt{constructor(x={}){super(x),this.type=Nt.Response,this.body=void 0!==x.body?x.body:null}clone(x={}){return new dt({body:void 0!==x.body?x.body:this.body,headers:x.headers||this.headers,status:void 0!==x.status?x.status:this.status,statusText:x.statusText||this.statusText,url:x.url||this.url||void 0})}}class we extends tt{constructor(x){super(x,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${x.url||"(unknown url)"}`:`Http failure response for ${x.url||"(unknown url)"}: ${x.status} ${x.statusText}`,this.error=x.error||null}}var H=function(M){return M[M.Continue=100]="Continue",M[M.SwitchingProtocols=101]="SwitchingProtocols",M[M.Processing=102]="Processing",M[M.EarlyHints=103]="EarlyHints",M[M.Ok=200]="Ok",M[M.Created=201]="Created",M[M.Accepted=202]="Accepted",M[M.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",M[M.NoContent=204]="NoContent",M[M.ResetContent=205]="ResetContent",M[M.PartialContent=206]="PartialContent",M[M.MultiStatus=207]="MultiStatus",M[M.AlreadyReported=208]="AlreadyReported",M[M.ImUsed=226]="ImUsed",M[M.MultipleChoices=300]="MultipleChoices",M[M.MovedPermanently=301]="MovedPermanently",M[M.Found=302]="Found",M[M.SeeOther=303]="SeeOther",M[M.NotModified=304]="NotModified",M[M.UseProxy=305]="UseProxy",M[M.Unused=306]="Unused",M[M.TemporaryRedirect=307]="TemporaryRedirect",M[M.PermanentRedirect=308]="PermanentRedirect",M[M.BadRequest=400]="BadRequest",M[M.Unauthorized=401]="Unauthorized",M[M.PaymentRequired=402]="PaymentRequired",M[M.Forbidden=403]="Forbidden",M[M.NotFound=404]="NotFound",M[M.MethodNotAllowed=405]="MethodNotAllowed",M[M.NotAcceptable=406]="NotAcceptable",M[M.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",M[M.RequestTimeout=408]="RequestTimeout",M[M.Conflict=409]="Conflict",M[M.Gone=410]="Gone",M[M.LengthRequired=411]="LengthRequired",M[M.PreconditionFailed=412]="PreconditionFailed",M[M.PayloadTooLarge=413]="PayloadTooLarge",M[M.UriTooLong=414]="UriTooLong",M[M.UnsupportedMediaType=415]="UnsupportedMediaType",M[M.RangeNotSatisfiable=416]="RangeNotSatisfiable",M[M.ExpectationFailed=417]="ExpectationFailed",M[M.ImATeapot=418]="ImATeapot",M[M.MisdirectedRequest=421]="MisdirectedRequest",M[M.UnprocessableEntity=422]="UnprocessableEntity",M[M.Locked=423]="Locked",M[M.FailedDependency=424]="FailedDependency",M[M.TooEarly=425]="TooEarly",M[M.UpgradeRequired=426]="UpgradeRequired",M[M.PreconditionRequired=428]="PreconditionRequired",M[M.TooManyRequests=429]="TooManyRequests",M[M.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",M[M.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",M[M.InternalServerError=500]="InternalServerError",M[M.NotImplemented=501]="NotImplemented",M[M.BadGateway=502]="BadGateway",M[M.ServiceUnavailable=503]="ServiceUnavailable",M[M.GatewayTimeout=504]="GatewayTimeout",M[M.HttpVersionNotSupported=505]="HttpVersionNotSupported",M[M.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",M[M.InsufficientStorage=507]="InsufficientStorage",M[M.LoopDetected=508]="LoopDetected",M[M.NotExtended=510]="NotExtended",M[M.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",M}(H||{});function X(M,x){return{body:x,headers:M.headers,context:M.context,observe:M.observe,params:M.params,reportProgress:M.reportProgress,responseType:M.responseType,withCredentials:M.withCredentials,transferCache:M.transferCache}}let fe=(()=>{var M;class x{constructor(Te){this.handler=Te}request(Te,Ge,Ct={}){let Jt;if(Te instanceof vn)Jt=Te;else{let Un,xr;Un=Ct.headers instanceof qe?Ct.headers:new qe(Ct.headers),Ct.params&&(xr=Ct.params instanceof Me?Ct.params:new Me({fromObject:Ct.params})),Jt=new vn(Te,Ge,void 0!==Ct.body?Ct.body:null,{headers:Un,context:Ct.context,params:xr,reportProgress:Ct.reportProgress,responseType:Ct.responseType||"json",withCredentials:Ct.withCredentials,transferCache:Ct.transferCache})}const ln=(0,Z.of)(Jt).pipe((0,ue.H)(Un=>this.handler.handle(Un)));if(Te instanceof vn||"events"===Ct.observe)return ln;const or=ln.pipe((0,oe.p)(Un=>Un instanceof dt));switch(Ct.observe||"body"){case"body":switch(Jt.responseType){case"arraybuffer":return or.pipe((0,Xe.T)(Un=>{if(null!==Un.body&&!(Un.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Un.body}));case"blob":return or.pipe((0,Xe.T)(Un=>{if(null!==Un.body&&!(Un.body instanceof Blob))throw new Error("Response is not a Blob.");return Un.body}));case"text":return or.pipe((0,Xe.T)(Un=>{if(null!==Un.body&&"string"!=typeof Un.body)throw new Error("Response is not a string.");return Un.body}));default:return or.pipe((0,Xe.T)(Un=>Un.body))}case"response":return or;default:throw new Error(`Unreachable: unhandled observe type ${Ct.observe}}`)}}delete(Te,Ge={}){return this.request("DELETE",Te,Ge)}get(Te,Ge={}){return this.request("GET",Te,Ge)}head(Te,Ge={}){return this.request("HEAD",Te,Ge)}jsonp(Te,Ge){return this.request("JSONP",Te,{params:(new Me).append(Ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Te,Ge={}){return this.request("OPTIONS",Te,Ge)}patch(Te,Ge,Ct={}){return this.request("PATCH",Te,X(Ct,Ge))}post(Te,Ge,Ct={}){return this.request("POST",Te,X(Ct,Ge))}put(Te,Ge,Ct={}){return this.request("PUT",Te,X(Ct,Ge))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Qe))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();function rn(M,x){return x(M)}function Ln(M,x){return(te,Te)=>x.intercept(te,{handle:Ge=>M(Ge,Te)})}const nr=new c.nKC(""),er=new c.nKC(""),yr=new c.nKC(""),rr=new c.nKC("");function ir(){let M=null;return(x,te)=>{var Te;null===M&&(M=(null!==(Te=(0,c.WQX)(nr,{optional:!0}))&&void 0!==Te?Te:[]).reduceRight(Ln,rn));const Ge=(0,c.WQX)(c.TgB),Ct=Ge.add();return M(x,te).pipe((0,Je.j)(()=>Ge.remove(Ct)))}}let zt=(()=>{var M;class x extends Qe{constructor(Te,Ge){super(),this.backend=Te,this.injector=Ge,this.chain=null,this.pendingTasks=(0,c.WQX)(c.TgB);const Ct=(0,c.WQX)(rr,{optional:!0});this.backend=null!=Ct?Ct:Te}handle(Te){if(null===this.chain){const Ct=Array.from(new Set([...this.injector.get(er),...this.injector.get(yr,[])]));this.chain=Ct.reduceRight((Jt,ln)=>function Zn(M,x,te){return(Te,Ge)=>(0,c.N4e)(te,()=>x(Te,Ct=>M(Ct,Ge)))}(Jt,ln,this.injector),rn)}const Ge=this.pendingTasks.add();return this.chain(Te,Ct=>this.backend.handle(Ct)).pipe((0,Je.j)(()=>this.pendingTasks.remove(Ge)))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Ze),c.KVO(c.uvJ))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();const Dr=/^\)\]\}',?\n/;let Jr=(()=>{var M;class x{constructor(Te){this.xhrFactory=Te}handle(Te){if("JSONP"===Te.method)throw new c.wOt(-2800,!1);const Ge=this.xhrFactory;return(Ge.\u0275loadImpl?(0,U.H)(Ge.\u0275loadImpl()):(0,Z.of)(null)).pipe((0,Se.n)(()=>new Oe.c(Jt=>{const ln=Ge.build();if(ln.open(Te.method,Te.urlWithParams),Te.withCredentials&&(ln.withCredentials=!0),Te.headers.forEach((Gn,Cr)=>ln.setRequestHeader(Gn,Cr.join(","))),Te.headers.has("Accept")||ln.setRequestHeader("Accept","application/json, text/plain, */*"),!Te.headers.has("Content-Type")){const Gn=Te.detectContentTypeHeader();null!==Gn&&ln.setRequestHeader("Content-Type",Gn)}if(Te.responseType){const Gn=Te.responseType.toLowerCase();ln.responseType="json"!==Gn?Gn:"text"}const or=Te.serializeBody();let Un=null;const xr=()=>{if(null!==Un)return Un;const Gn=ln.statusText||"OK",Cr=new qe(ln.getAllResponseHeaders()),ai=function Jn(M){return"responseURL"in M&&M.responseURL?M.responseURL:/^X-Request-URL:/m.test(M.getAllResponseHeaders())?M.getResponseHeader("X-Request-URL"):null}(ln)||Te.url;return Un=new on({headers:Cr,status:ln.status,statusText:Gn,url:ai}),Un},On=()=>{let{headers:Gn,status:Cr,statusText:ai,url:li}=xr(),ei=null;Cr!==H.NoContent&&(ei=typeof ln.response>"u"?ln.responseText:ln.response),0===Cr&&(Cr=ei?H.Ok:0);let Lr=Cr>=200&&Cr<300;if("json"===Te.responseType&&"string"==typeof ei){const mi=ei;ei=ei.replace(Dr,"");try{ei=""!==ei?JSON.parse(ei):null}catch(Wn){ei=mi,Lr&&(Lr=!1,ei={error:Wn,text:ei})}}Lr?(Jt.next(new dt({body:ei,headers:Gn,status:Cr,statusText:ai,url:li||void 0})),Jt.complete()):Jt.error(new we({error:ei,headers:Gn,status:Cr,statusText:ai,url:li||void 0}))},Fr=Gn=>{const{url:Cr}=xr(),ai=new we({error:Gn,status:ln.status||0,statusText:ln.statusText||"Unknown Error",url:Cr||void 0});Jt.error(ai)};let Or=!1;const zr=Gn=>{Or||(Jt.next(xr()),Or=!0);let Cr={type:Nt.DownloadProgress,loaded:Gn.loaded};Gn.lengthComputable&&(Cr.total=Gn.total),"text"===Te.responseType&&ln.responseText&&(Cr.partialText=ln.responseText),Jt.next(Cr)},Tr=Gn=>{let Cr={type:Nt.UploadProgress,loaded:Gn.loaded};Gn.lengthComputable&&(Cr.total=Gn.total),Jt.next(Cr)};return ln.addEventListener("load",On),ln.addEventListener("error",Fr),ln.addEventListener("timeout",Fr),ln.addEventListener("abort",Fr),Te.reportProgress&&(ln.addEventListener("progress",zr),null!==or&&ln.upload&&ln.upload.addEventListener("progress",Tr)),ln.send(or),Jt.next({type:Nt.Sent}),()=>{ln.removeEventListener("error",Fr),ln.removeEventListener("abort",Fr),ln.removeEventListener("load",On),ln.removeEventListener("timeout",Fr),Te.reportProgress&&(ln.removeEventListener("progress",zr),null!==or&&ln.upload&&ln.upload.removeEventListener("progress",Tr)),ln.readyState!==ln.DONE&&ln.abort()}})))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(De.N0))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();const mr=new c.nKC(""),Pr=new c.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),kr=new c.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class ii{}let Ai=(()=>{var M;class x{constructor(Te,Ge,Ct){this.doc=Te,this.platform=Ge,this.cookieName=Ct,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Te=this.doc.cookie||"";return Te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,De._b)(Te,this.cookieName),this.lastCookieString=Te),this.lastToken}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(De.qQ),c.KVO(c.Agw),c.KVO(Pr))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();function Qr(M,x){const te=M.url.toLowerCase();if(!(0,c.WQX)(mr)||"GET"===M.method||"HEAD"===M.method||te.startsWith("http://")||te.startsWith("https://"))return x(M);const Te=(0,c.WQX)(ii).getToken(),Ge=(0,c.WQX)(kr);return null!=Te&&!M.headers.has(Ge)&&(M=M.clone({headers:M.headers.set(Ge,Te)})),x(M)}var it=function(M){return M[M.Interceptors=0]="Interceptors",M[M.LegacyInterceptors=1]="LegacyInterceptors",M[M.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",M[M.NoXsrfProtection=3]="NoXsrfProtection",M[M.JsonpSupport=4]="JsonpSupport",M[M.RequestsMadeViaParent=5]="RequestsMadeViaParent",M[M.Fetch=6]="Fetch",M}(it||{});function Mt(M,x){return{\u0275kind:M,\u0275providers:x}}function ut(...M){const x=[fe,Jr,zt,{provide:Qe,useExisting:zt},{provide:Ze,useExisting:Jr},{provide:er,useValue:Qr,multi:!0},{provide:mr,useValue:!0},{provide:ii,useClass:Ai}];for(const te of M)x.push(...te.\u0275providers);return(0,c.EmA)(x)}const Ee=new c.nKC("");let _n=(()=>{var M;class x{}return(M=x).\u0275fac=function(Te){return new(Te||M)},M.\u0275mod=c.$C({type:M}),M.\u0275inj=c.G2t({providers:[ut(Mt(it.LegacyInterceptors,[{provide:Ee,useFactory:ir},{provide:er,useExisting:Ee,multi:!0}]))]}),x})()},4438:(Tn,gt,D)=>{"use strict";D.d(gt,{iLQ:()=>GE,sZ2:()=>yv,hnV:()=>sT,Hbi:()=>Z1,o8S:()=>Cd,BIS:()=>Ay,gRc:()=>yT,Ql9:()=>T1,Ocv:()=>O1,Z63:()=>fo,aKT:()=>Yu,uvJ:()=>Lo,zcH:()=>Za,bkB:()=>Bs,$GK:()=>bt,nKC:()=>Ge,zZn:()=>ps,_q3:()=>ZE,MKu:()=>eI,xe9:()=>uy,Co$:()=>xi,Vns:()=>so,SKi:()=>bo,Xx1:()=>Nn,Agw:()=>eh,PLl:()=>Ev,rOR:()=>Ju,sFG:()=>vm,_9s:()=>up,czy:()=>Yg,WPN:()=>oc,kdw:()=>lr,C4Q:()=>ap,NYb:()=>_1,giA:()=>iT,xvI:()=>WR,RxE:()=>YD,c1b:()=>pd,gXe:()=>ls,mal:()=>d_,L39:()=>SM,a0P:()=>FM,Ol2:()=>Q0,w6W:()=>ss,oH4:()=>gT,QZP:()=>QT,SmG:()=>V1,Rfq:()=>Qr,WQX:()=>Ne,Hps:()=>Lm,QuC:()=>po,EmA:()=>dl,Udg:()=>RM,fpN:()=>J1,HJs:()=>LM,N4e:()=>lo,vPA:()=>_d,O8t:()=>PM,H3F:()=>JD,H8p:()=>zl,KH2:()=>Qp,TgB:()=>Pp,wOt:()=>nt,WHO:()=>nT,e01:()=>rT,lNU:()=>ir,h9k:()=>$g,$MX:()=>Bi,ZF7:()=>uo,Kcf:()=>nl,e5t:()=>aI,UyX:()=>sI,cWb:()=>Py,osQ:()=>xv,H5H:()=>AE,Zy3:()=>Ot,mq5:()=>hC,JZv:()=>Jn,LfX:()=>Ut,plB:()=>il,jNT:()=>zE,zjR:()=>oT,TL$:()=>Tg,Tbb:()=>cr,rcV:()=>Rl,Vt3:()=>wp,Mj6:()=>us,GFd:()=>Wi,OA$:()=>Zi,Jv_:()=>DD,aNF:()=>TD,R7$:()=>a0,BMQ:()=>aE,AVh:()=>pE,vxM:()=>rC,wni:()=>eD,VBU:()=>_s,FsC:()=>$o,jDH:()=>fr,G2t:()=>gi,$C:()=>ul,EJ8:()=>Jo,rXU:()=>sd,nrm:()=>EE,eu8:()=>IE,bVm:()=>J_,qex:()=>Y_,k0s:()=>Q_,j41:()=>q_,RV6:()=>uC,xGo:()=>hf,KVO:()=>z,kS0:()=>$c,QTQ:()=>l0,bIt:()=>TE,lsd:()=>rD,qSk:()=>ef,XpG:()=>zC,nI1:()=>OD,bMT:()=>ND,i5U:()=>kD,SdG:()=>GC,NAR:()=>HC,Y8G:()=>dE,FS9:()=>wE,Mz_:()=>ry,lJ4:()=>wD,mGM:()=>nD,Dyx:()=>sC,Z7z:()=>oC,fX1:()=>iC,Njj:()=>bc,eBV:()=>Md,$dS:()=>fh,n$t:()=>Hf,xc7:()=>fE,DNE:()=>xp,EFF:()=>fD,JRh:()=>SE,SpI:()=>iy,Lme:()=>RE,DH7:()=>AD,mxI:()=>PE,R50:()=>ME,GBs:()=>tD}),D(467);let Z=null,Oe=!1,U=1;const ue=Symbol("SIGNAL");function oe(e){const t=Z;return Z=e,t}const De={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Qe(e){if(Oe)throw new Error("");if(null===Z)return;Z.consumerOnSignalRead(e);const t=Z.nextProducerIndex++;Ue(Z),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Et(e){Ue(e);for(let t=0;t0}function Ue(e){var t,r,o;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(r=e.producerIndexOfThis)&&void 0!==r||(e.producerIndexOfThis=[]),null!==(o=e.producerLastReadVersion)&&void 0!==o||(e.producerLastReadVersion=[])}function Fe(e){var t,r;null!==(t=e.liveConsumerNode)&&void 0!==t||(e.liveConsumerNode=[]),null!==(r=e.liveConsumerIndexOfThis)&&void 0!==r||(e.liveConsumerIndexOfThis=[])}let on=function tt(){throw new Error};function dt(){on()}let H=null;function ve(e,t){Tt()||dt(),e.equal(e.value,t)||(e.value=t,function Wt(e){var t;e.version++,function Ze(){U++}(),ht(e),null===(t=H)||void 0===t||t()}(e))}const _e={...De,equal:function c(e,t){return Object.is(e,t)},value:void 0};const Kt=()=>{},rn={...De,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Kt};var Zn=D(1413),nr=D(8359),er=D(4412),yr=D(6354);const ir="https://g.co/ng/security#xss";class nt extends Error{constructor(t,r){super(Ot(t,r)),this.code=t}}function Ot(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function xn(e){return{toString:e}.toString()}const en="__parameters__";function Qn(e,t,r){return xn(()=>{const o=function Nr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...d){if(this instanceof a)return o.apply(this,d),this;const g=new a(...d);return y.annotation=g,y;function y(A,B,Y){const de=A.hasOwnProperty(en)?A[en]:Object.defineProperty(A,en,{value:[]})[en];for(;de.length<=Y;)de.push(null);return(de[Y]=de[Y]||[]).push(g),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Jn=globalThis;function ur(e){for(let t in e)if(e[t]===ur)return t;throw Error("Could not find renamed property on target object.")}function Pr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function cr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(cr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function kr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Ai=ur({__forward_ref__:ur});function Qr(e){return e.__forward_ref__=Qr,e.toString=function(){return cr(this())},e}function pe(e){return it(e)?e():e}function it(e){return"function"==typeof e&&e.hasOwnProperty(Ai)&&e.__forward_ref__===Qr}function fr(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function gi(e){return{providers:e.providers||[],imports:e.imports||[]}}function pr(e){return ne(e,M)||ne(e,te)}function Ut(e){return null!==pr(e)}function ne(e,t){return e.hasOwnProperty(t)?e[t]:null}function je(e){return e&&(e.hasOwnProperty(x)||e.hasOwnProperty(Te))?e[x]:null}const M=ur({\u0275prov:ur}),x=ur({\u0275inj:ur}),te=ur({ngInjectableDef:ur}),Te=ur({ngInjectorDef:ur});class Ge{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=fr({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Tr(e){return e&&!!e.\u0275providers}const Gn=ur({\u0275cmp:ur}),Cr=ur({\u0275dir:ur}),ai=ur({\u0275pipe:ur}),li=ur({\u0275mod:ur}),ei=ur({\u0275fac:ur}),Lr=ur({__NG_ELEMENT_ID__:ur}),mi=ur({__NG_ENV_ID__:ur});function Wn(e){return"string"==typeof e?e:null==e?"":String(e)}function oi(e,t){throw new nt(-201,!1)}var bt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(bt||{});let he;function le(){return he}function W(e){const t=he;return he=e,t}function $e(e,t,r){const o=pr(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&bt.Optional?null:void 0!==t?t:void oi()}const jt={},In="__NG_DI_FLAG__",Fn="ngTempTokenPath",j=/\n/gm,P="__source";let Ie;function sr(e){const t=Ie;return Ie=e,t}function ni(e,t=bt.Default){if(void 0===Ie)throw new nt(-203,!1);return null===Ie?$e(e,void 0,t):Ie.get(e,t&bt.Optional?null:void 0,t)}function z(e,t=bt.Default){return(le()||ni)(pe(e),t)}function Ne(e,t=bt.Default){return z(e,et(t))}function et(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function wt(e){const t=[];for(let r=0;rArray.isArray(r)?wi(r,t):t(r))}function Ni(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ki(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ji(e,t,r){let o=Io(e,t);return o>=0?e[1|o]=r:(o=~o,function Ti(e,t,r,o){let a=e.length;if(a==t)e.push(r,o);else if(1===a)e.push(o,e[0]),e[0]=r;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=r,e[t+1]=o}}(e,o,t,r)),o}function Bo(e,t){const r=Io(e,t);if(r>=0)return e[1|r]}function Io(e,t){return function no(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const d=o+(a-o>>1),g=e[d<t?a=d:o=d+1}return~(a<t){g=d-1;break}}}for(;d-1){let d;for(;++ad?"":a[Y+1].toLowerCase(),2&o&&B!==de){if(Ce(o))return!1;g=!0}}}}else{if(!g&&!Ce(o)&&!Ce(A))return!1;if(g&&Ce(A))continue;g=!1,o=A|1&o}}return Ce(o)||g}function Ce(e){return!(1&e)}function G(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let d=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+g:4&o&&(a+=" "+g);else""!==a&&!Ce(g)&&(t+=wo(d,a),a=""),o=g,d=d||!Ce(o);r++}return""!==a&&(t+=wo(d,a)),t}function _s(e){return xn(()=>{var t;const r=La(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ms.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||ls.Emulated,styles:e.styles||Kr,_:null,schemas:e.schemas||null,tView:null,id:""};jo(o);const a=e.dependencies;return o.directiveDefs=ys(a,!1),o.pipeDefs=ys(a,!0),o.id=function Hr(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of r)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(o),o})}function Gs(e){return Rr(e)||ji(e)}function fa(e){return null!==e}function ul(e){return xn(()=>({type:e.type,bootstrap:e.bootstrap||Kr,declarations:e.declarations||Kr,imports:e.imports||Kr,exports:e.exports||Kr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function pa(e,t){if(null==e)return ko;const r={};for(const a in e)if(e.hasOwnProperty(a)){const d=e[a];let g,y,A=us.None;var o;Array.isArray(d)?(A=d[0],g=d[1],y=null!==(o=d[2])&&void 0!==o?o:g):(g=d,y=d),t?(r[g]=A!==us.None?[a,A]:a,t[g]=y):r[g]=a}return r}function $o(e){return xn(()=>{const t=La(e);return jo(t),t})}function Jo(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Rr(e){return e[Gn]||null}function ji(e){return e[Cr]||null}function zi(e){return e[ai]||null}function po(e){const t=Rr(e)||ji(e)||zi(e);return null!==t&&t.standalone}function bi(e,t){const r=e[li]||null;if(!r&&!0===t)throw new Error(`Type ${cr(e)} does not have '\u0275mod' property.`);return r}function La(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||ko,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Kr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:pa(e.inputs,t),outputs:pa(e.outputs),debugInfo:null}}function jo(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function ys(e,t){if(!e)return null;const r=t?zi:Gs;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(fa)}function dl(e){return{\u0275providers:e}}function Ws(...e){return{\u0275providers:Va(0,e),\u0275fromNgModule:!0}}function Va(e,...t){const r=[],o=new Set;let a;const d=g=>{r.push(g)};return wi(t,g=>{const y=g;hl(y,d,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&Es(a,d),r}function Es(e,t){for(let r=0;r{t(d,o)})}}function hl(e,t,r,o){if(!(e=pe(e)))return!1;let a=null,d=je(e);const g=!d&&Rr(e);if(d||g){if(g&&!g.standalone)return!1;a=e}else{const A=e.ngModule;if(d=je(A),!d)return!1;a=A}const y=o.has(a);if(g){if(y)return!1;if(o.add(a),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const B of A)hl(B,t,r,o)}}else{if(!d)return!1;{if(null!=d.imports&&!y){let B;o.add(a);try{wi(d.imports,Y=>{hl(Y,t,r,o)&&(B||(B=[]),B.push(Y))})}finally{}void 0!==B&&Es(B,t)}if(!y){const B=qr(a)||(()=>new a);t({provide:a,useFactory:B,deps:Kr},a),t({provide:Rs,useValue:a,multi:!0},a),t({provide:fo,useValue:()=>z(a),multi:!0},a)}const A=d.providers;if(null!=A&&!y){const B=e;Ul(A,Y=>{t(Y,B)})}}}return a!==e&&void 0!==e.providers}function Ul(e,t){for(let r of e)Tr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ul(r,t):t(r)}const $l=ur({provide:String,useValue:ur});function jl(e){return null!==e&&"object"==typeof e&&$l in e}function Zo(e){return"function"==typeof e}const zl=new Ge(""),es={},Su={};let Hl;function ts(){return void 0===Hl&&(Hl=new Hs),Hl}class Lo{}class Ns extends Lo{get destroyed(){return this._destroyed}constructor(t,r,o,a){super(),this.parent=r,this.source=o,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ks(t,g=>this.processProvider(g)),this.records.set(ka,$a(void 0,this)),a.has("environment")&&this.records.set(Lo,$a(void 0,this));const d=this.records.get(zl);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Rs,Kr,bt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=oe(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of r)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),oe(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=sr(this),o=W(void 0);try{return t()}finally{sr(r),W(o)}}get(t,r=jt,o=bt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(mi))return t[mi](this);o=et(o);const d=sr(this),g=W(void 0);try{if(!(o&bt.SkipSelf)){let A=this.records.get(t);if(void 0===A){const B=function _a(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ge}(t)&&pr(t);A=B&&this.injectableDefInScope(B)?$a(Ui(t),es):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&bt.Self?ts():this.parent).get(t,r=o&bt.Optional&&r===jt?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Fn]=y[Fn]||[]).unshift(cr(t)),d)throw y;return function sn(e,t,r,o){const a=e[Fn];throw t[P]&&a.unshift(t[P]),e.message=function cn(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=cr(t);if(Array.isArray(t))a=t.map(cr).join(" -> ");else if("object"==typeof t){let d=[];for(let g in t)if(t.hasOwnProperty(g)){let y=t[g];d.push(g+":"+("string"==typeof y?JSON.stringify(y):cr(y)))}a=`{${d.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(j,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Fn]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{W(g),sr(d)}}resolveInjectorInitializers(){const t=oe(null),r=sr(this),o=W(void 0);try{const d=this.get(fo,Kr,bt.Self);for(const g of d)g()}finally{sr(r),W(o),oe(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(cr(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new nt(205,!1)}processProvider(t){let r=Zo(t=pe(t))?t:pe(t&&t.provide);const o=function Ua(e){return jl(e)?$a(void 0,e.useValue):$a(ma(e),es)}(t);if(!Zo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=$a(void 0,es,!0),a.factory=()=>wt(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=oe(null);try{return r.value===es&&(r.value=Su,r.value=r.factory()),"object"==typeof r.value&&r.value&&function va(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{oe(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=pe(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Ui(e){const t=pr(e),r=null!==t?t.factory:qr(e);if(null!==r)return r;if(e instanceof Ge)throw new nt(204,!1);if(e instanceof Function)return function ga(e){if(e.length>0)throw new nt(204,!1);const r=function ee(e){return e&&(e[M]||e[te])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new nt(204,!1)}function ma(e,t,r){let o;if(Zo(e)){const a=pe(e);return qr(a)||Ui(a)}if(jl(e))o=()=>pe(e.useValue);else if(function Os(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...wt(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>z(pe(e.useExisting));else{const a=pe(e&&(e.useClass||e.provide));if(!function zo(e){return!!e.deps}(e))return qr(a)||Ui(a);o=()=>new a(...wt(e.deps))}return o}function $a(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Ks(e,t){for(const r of e)Array.isArray(r)?Ks(r,t):r&&Tr(r)?Ks(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Ns&&e.assertNotDestroyed();const o=sr(e),a=W(void 0);try{return t()}finally{sr(o),W(a)}}function Gl(){return void 0!==le()||null!=function ot(){return Ie}()}function ya(e){if(!Gl())throw new nt(-203,!1)}const vi=0,Rn=1,Kn=2,Di=3,qi=4,Si=5,Qi=6,Ho=7,_i=8,Ki=9,ks=10,Br=11,Xs=12,vc=13,fl=14,Gi=15,Co=16,Cs=17,Go=18,qs=19,_c=20,Mi=21,Qs=22,cs=23,Gr=25,Ea=1,Wo=7,Ia=9,Xi=10;var Ru=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ru||{});function di(e){return Array.isArray(e)&&"object"==typeof e[Ea]}function Do(e){return Array.isArray(e)&&!0===e[Ea]}function Wl(e){return!!(4&e.flags)}function rs(e){return e.componentOffset>-1}function Ys(e){return!(1&~e.flags)}function ds(e){return!!e.template}function Kl(e){return!!(512&e[Kn])}class $i{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function yi(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function Zi(){return Js}function Js(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ga),Ha}function Ha(){const e=hs(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===ko)e.previous=t;else for(let o in t)r[o]=t[o];e.current=null,this.ngOnChanges(t)}}function Ga(e,t,r,o,a){const d=this.declaredInputs[o],g=hs(e)||function Ta(e,t){return e[Fs]=t}(e,{previous:ko,current:null}),y=g.current||(g.current={}),A=g.previous,B=A[d];y[d]=new $i(B&&B.currentValue,r,A===ko),yi(e,t,a,r)}Zi.ngInherit=!0;const Fs="__ngSimpleChanges__";function hs(e){return e[Fs]||null}const Ds=function(e,t,r){},ng="svg";let Pu=!1;function Pi(e){for(;Array.isArray(e);)e=e[vi];return e}function Ka(e,t){return Pi(t[e])}function is(e,t){return Pi(t[e.index])}function Ql(e,t){return e.data[t]}function fs(e,t){return e[t]}function Ro(e,t){const r=t[e];return di(r)?r:r[vi]}function Ic(e){return!(128&~e[Kn])}function Ts(e,t){return null==t?null:e[t]}function Cc(e){e[Cs]=0}function Sd(e){1024&e[Kn]||(e[Kn]|=1024,Ic(e)&&Ls(e))}function Yl(e){var t;return!!(9216&e[Kn]||null!==(t=e[cs])&&void 0!==t&&t.dirty)}function ml(e){var t;if(null===(t=e[ks].changeDetectionScheduler)||void 0===t||t.notify(1),Yl(e))Ls(e);else if(64&e[Kn])if(function ba(){return Pu}())e[Kn]|=1024,Ls(e);else{var r;null===(r=e[ks].changeDetectionScheduler)||void 0===r||r.notify()}}function Ls(e){var t;null===(t=e[ks].changeDetectionScheduler)||void 0===t||t.notify();let r=Zs(e);for(;null!==r&&!(8192&r[Kn])&&(r[Kn]|=8192,Ic(r));)r=Zs(r)}function Xa(e,t){if(!(256&~e[Kn]))throw new nt(911,!1);null===e[Mi]&&(e[Mi]=[]),e[Mi].push(t)}function Zs(e){const t=e[Di];return Do(t)?t[Di]:t}const gr={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function wa(){return gr.bindingsEnabled}function Zl(){return null!==gr.skipHydrationRootTNode}function an(){return gr.lFrame.lView}function Ei(){return gr.lFrame.tView}function Md(e){return gr.lFrame.contextLView=e,e[_i]}function bc(e){return gr.lFrame.contextLView=null,e}function Vi(){let e=Qh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Qh(){return gr.lFrame.currentTNode}function na(e,t){const r=gr.lFrame;r.currentTNode=e,r.isParent=t}function Ou(){return gr.lFrame.isParent}function Nu(){gr.lFrame.isParent=!1}function go(){const e=gr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function bs(){return gr.lFrame.bindingIndex++}function oa(e){const t=gr.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function xd(e,t){const r=gr.lFrame;r.bindingIndex=r.bindingRootIndex=e,Od(t)}function Od(e){gr.lFrame.currentDirectiveIndex=e}function Nd(){return gr.lFrame.currentQueryIndex}function Rc(e){gr.lFrame.currentQueryIndex=e}function Mc(e){const t=e[Rn];return 2===t.type?t.declTNode:1===t.type?e[Si]:null}function Jh(e,t,r){if(r&bt.SkipSelf){let a=t,d=e;for(;!(a=a.parent,null!==a||r&bt.Host||(a=Mc(d),null===a||(d=d[fl],10&a.type))););if(null===a)return!1;t=a,e=d}const o=gr.lFrame=Fu();return o.currentTNode=t,o.lView=e,!0}function Sa(e){const t=Fu(),r=e[Rn];gr.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Fu(){const e=gr.lFrame,t=null===e?null:e.child;return null===t?Zh(e):t}function Zh(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function kd(){const e=gr.lFrame;return gr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Pc=kd;function Lu(){const e=kd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mo(){return gr.lFrame.selectedIndex}function Ra(e){gr.lFrame.selectedIndex=e}function Fi(){const e=gr.lFrame;return Ql(e.tView,e.selectedIndex)}function ef(){gr.lFrame.currentNamespace=ng}let Bu=!0;function Uu(){return Bu}function Vs(e){Bu=e}function $u(e,t){for(let B=t.directiveStart,Y=t.directiveEnd;B=o)break}else t[A]<0&&(e[Cs]+=65536),(y>14>16&&(3&e[Kn])===t&&(e[Kn]+=16384,El(y,d)):El(y,d)}const Il=-1;class Al{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Cl(e){return e!==Il}function Ma(e){return 32767&e}function Dl(e,t){let r=function Fc(e){return e>>16}(e),o=t;for(;r>0;)o=o[fl],r--;return o}let zu=!0;function eu(e){const t=zu;return zu=e,t}const lf=255,Bd=5;let Lc=0;const ws={};function Hu(e,t){const r=Ud(e,t);if(-1!==r)return r;const o=t[Rn];o.firstCreatePass&&(e.injectorIndex=t.length,Mo(o.data,e),Mo(t,null),Mo(o.blueprint,null));const a=Qa(e,t),d=e.injectorIndex;if(Cl(a)){const g=Ma(a),y=Dl(a,t),A=y[Rn].data;for(let B=0;B<8;B++)t[d+B]=y[g+B]|A[g+B]}return t[d+8]=a,d}function Mo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ud(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Qa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,o=null,a=t;for(;null!==a;){if(o=Ja(a),null===o)return Il;if(r++,a=a[fl],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return Il}function Tl(e,t,r){!function hv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(Lr)&&(o=r[Lr]),null==o&&(o=r[Lr]=Lc++);const a=o&lf;t.data[e+(a>>Bd)]|=1<=0?t&lf:df:t}(r);if("function"==typeof d){if(!Jh(t,e,o))return o&bt.Host?tu(a,0,o):$d(t,r,o,a);try{let g;if(g=d(o),null!=g||o&bt.Optional)return g;oi()}finally{Pc()}}else if("number"==typeof d){let g=null,y=Ud(e,t),A=Il,B=o&bt.Host?t[Gi][Si]:null;for((-1===y||o&bt.SkipSelf)&&(A=-1===y?Qa(e,t):t[y+8],A!==Il&&nu(o,!1)?(g=t[Rn],y=Ma(A),t=Dl(A,t)):y=-1);-1!==y;){const Y=t[Rn];if(Uc(d,y,Y.data)){const de=lg(y,t,r,g,o,B);if(de!==ws)return de}A=t[y+8],A!==Il&&nu(o,t[Rn].data[y+8]===B)&&Uc(d,y,t)?(g=Y,y=Ma(A),t=Dl(A,t)):y=-1}}return a}function lg(e,t,r,o,a,d){const g=t[Rn],y=g.data[e+8],Y=jd(y,g,r,null==o?rs(y)&&zu:o!=g&&!!(3&y.type),a&bt.Host&&d===y);return null!==Y?bl(t,g,Y,y):ws}function jd(e,t,r,o,a){const d=e.providerIndexes,g=t.data,y=1048575&d,A=e.directiveStart,Y=d>>20,We=a?y+Y:e.directiveEnd;for(let ft=o?y:y+Y;ft=A&&Ft.type===r)return ft}if(a){const ft=g[A];if(ft&&ds(ft)&&ft.type===r)return A}return null}function bl(e,t,r,o){let a=e[r];const d=t.data;if(function sf(e){return e instanceof Al}(a)){const g=a;g.resolving&&function Ci(e,t){throw t&&t.join(" > "),new nt(-200,e)}(function Hn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Wn(e)}(d[r]));const y=eu(g.canSeeViewProviders);g.resolving=!0;const B=g.injectImpl?W(g.injectImpl):null;Jh(e,o,bt.Default);try{a=e[r]=g.factory(void 0,d,e,o),t.firstCreatePass&&r>=o.directiveStart&&function ag(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:d}=t.type.prototype;if(o){var g,y;const de=Js(t);(null!==(g=r.preOrderHooks)&&void 0!==g?g:r.preOrderHooks=[]).push(e,de),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,de)}var A,B,Y;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),d&&((null!==(B=r.preOrderHooks)&&void 0!==B?B:r.preOrderHooks=[]).push(e,d),(null!==(Y=r.preOrderCheckHooks)&&void 0!==Y?Y:r.preOrderCheckHooks=[]).push(e,d))}(r,d[r],t)}finally{null!==B&&W(B),eu(y),g.resolving=!1,Pc()}}return a}function Uc(e,t,r){return!!(r[t+(e>>Bd)]&1<{const t=e.prototype.constructor,r=t[ei]||Gu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const d=a[ei]||Gu(a);if(d&&d!==r)return d;a=Object.getPrototypeOf(a)}return d=>new d})}function Gu(e){return it(e)?()=>{const t=Gu(pe(e));return t&&t()}:qr(e)}function Ja(e){const t=e[Rn],r=t.type;return 2===r?t.declTNode:1===r?e[Si]:null}function $c(e){return function Vc(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const o=r.length;let a=0;for(;a{var e;class t{static create(o,a){if(Array.isArray(o))return dg({name:""},a,o,"");{var d;const g=null!==(d=o.name)&&void 0!==d?d:"";return dg({name:g},o.parent,o.providers,g)}}}return(e=t).THROW_IF_NOT_FOUND=jt,e.NULL=new Hs,e.\u0275prov=fr({token:e,providedIn:"any",factory:()=>z(ka)}),e.__NG_ELEMENT_ID__=-1,t})();function zc(e){return e.ngOriginalError}class Za{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&zc(t);for(;r&&zc(r);)r=zc(r);return r||null}}const Gd=new Ge("",{providedIn:"root",factory:()=>Ne(Za).handleError.bind(void 0)});let Xu=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=hg,e.__NG_ENV_ID__=r=>r,t})();class If extends Xu{constructor(t){super(),this._lView=t}onDestroy(t){return Xa(this._lView,t),()=>function Jl(e,t){if(null===e[Mi])return;const r=e[Mi].indexOf(t);-1!==r&&e[Mi].splice(r,1)}(this._lView,t)}}function hg(){return new If(an())}function Qu(){return la(Vi(),an())}function la(e,t){return new Yu(is(e,t))}let Yu=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Qu,t})();function iu(e){return e instanceof Yu?e.nativeElement:e}function Af(e){return t=>{setTimeout(e,void 0,t)}}const Bs=class pv extends Zn.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Gl()&&(this.destroyRef=null!==(r=Ne(Xu,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=oe(null);try{super.next(t)}finally{oe(r)}}subscribe(t,r,o){let a=t,d=r||(()=>null),g=o;if(t&&"object"==typeof t){var y,A,B;const de=t;a=null===(y=de.next)||void 0===y?void 0:y.bind(de),d=null===(A=de.error)||void 0===A?void 0:A.bind(de),g=null===(B=de.complete)||void 0===B?void 0:B.bind(de)}this.__isAsync&&(d=Af(d),a&&(a=Af(a)),g&&(g=Af(g)));const Y=super.subscribe({next:a,error:d,complete:g});return t instanceof nr.yU&&t.add(Y),Y}};function Cf(){return this._results[Symbol.iterator]()}class Ju{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Bs}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const r=Ju.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Cf)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const o=function br(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function jr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;obg}),bg="ng",Ev=new Ge(""),eh=new Ge("",{providedIn:"platform",factory:()=>"unknown"}),Ay=new Ge("",{providedIn:"root",factory:()=>{var e;return(null===(e=function lu(){if(void 0!==Dg)return Dg;if(typeof document<"u")return document;throw new nt(210,!1)}().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Dv=()=>null;function oh(e,t,r=!1){return Dv(e,t,r)}const Ng=new Ge("",{providedIn:"root",factory:()=>!1});let Lf,uh;function Qc(e){var t;return(null===(t=function kg(){if(void 0===Lf&&(Lf=null,Jn.trustedTypes))try{Lf=Jn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Lf}())||void 0===t?void 0:t.createHTML(e))||e}function Fg(e){var t;return(null===(t=function Vf(){if(void 0===uh&&(uh=null,Jn.trustedTypes))try{uh=Jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return uh}())||void 0===t?void 0:t.createScriptURL(e))||e}class du{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ir})`}}class Uf extends du{getTypeName(){return"HTML"}}class Ii extends du{getTypeName(){return"Style"}}class Mv extends du{getTypeName(){return"Script"}}class Pv extends du{getTypeName(){return"URL"}}class ch extends du{getTypeName(){return"ResourceURL"}}function Rl(e){return e instanceof du?e.changingThisBreaksApplicationSecurity:e}function uo(e,t){const r=function vo(e){return e instanceof du&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${ir})`)}return r===t}function nl(e){return new Uf(e)}function Py(e){return new Ii(e)}function sI(e){return new Mv(e)}function xv(e){return new Pv(e)}function aI(e){return new ch(e)}class xy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const r=(new window.DOMParser).parseFromString(Qc(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}}class Vg{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=Qc(t),r}}const lI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bi(e){return(e=String(e)).match(lI)?e:"unsafe:"+e}function hu(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function dh(...e){const t={};for(const r of e)for(const o in r)r.hasOwnProperty(o)&&(t[o]=!0);return t}const ro=hu("area,br,col,hr,img,wbr"),Bg=hu("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ny=hu("rp,rt"),Ov=dh(ro,dh(Bg,hu("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")),dh(Ny,hu("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")),dh(Ny,Bg)),Nv=hu("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fy=dh(Nv,hu("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"),hu("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")),uI=hu("script,style,template");class kv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,o=!0,a=[];for(;r;)if(r.nodeType===Node.ELEMENT_NODE?o=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,o&&r.firstChild)a.push(r),r=ic(r);else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let d=Ly(r);if(d){r=d;break}r=a.pop()}return this.buf.join("")}startElement(t){const r=fu(t).toLowerCase();if(!Ov.hasOwnProperty(r))return this.sanitizedSomething=!0,!uI.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const o=t.attributes;for(let a=0;a"),!0}endElement(t){const r=fu(t).toLowerCase();Ov.hasOwnProperty(r)&&!ro.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Fv(t))}}function Ly(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Vy(t);return t}function ic(e){const t=e.firstChild;if(t&&function hh(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Vy(t);return t}function fu(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Vy(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Yc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ug=/([^\#-~ |!])/g;function Fv(e){return e.replace(/&/g,"&").replace(Yc,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ug,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let $f;function $g(e,t){let r=null;try{$f=$f||function Lg(e){const t=new Vg(e);return function Oy(){try{return!!(new window.DOMParser).parseFromString(Qc(""),"text/html")}catch{return!1}}()?new xy(t):t}(e);let o=t?String(t):"";r=$f.getInertBodyElement(o);let a=5,d=o;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,o=d,d=r.innerHTML,r=$f.getInertBodyElement(o)}while(o!==d);return Qc((new kv).sanitizeChildren(jf(r)||r))}finally{if(r){const o=jf(r)||r;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function jf(e){return"content"in e&&function zf(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var oc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(oc||{});function fh(e){const t=Pa();return t?t.sanitize(oc.STYLE,e)||"":uo(e,"Style")?Rl(e):Wn(e)}function Jc(e){const t=Pa();return t?t.sanitize(oc.URL,e)||"":uo(e,"URL")?Rl(e):Bi(Wn(e))}function jg(e){const t=Pa();if(t)return Fg(t.sanitize(oc.RESOURCE_URL,e)||"");if(uo(e,"ResourceURL"))return Fg(Rl(e));throw new nt(904,!1)}function Hf(e,t,r){return function Wg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?jg:Jc}(t,r)(e)}function Pa(){const e=an();return e&&e[ks].sanitizer}const Vv=/^>|^->||--!>|)/g,Kg="\u200b$1\u200b";function ca(e){return e instanceof Function?e():e}var Yg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Yg||{});let zv;function Jg(e,t){return zv(e,t)}function vh(e,t,r,o,a){if(null!=o){let d,g=!1;Do(o)?d=o:di(o)&&(g=!0,o=o[vi]);const y=Pi(o);0===e&&null!==r?null==a?od(t,r,y):id(t,r,y,a||null,!0):1===e&&null!==r?id(t,r,y,a||null,!0):2===e?function Jf(e,t,r){const o=Yf(e,t);o&&function vI(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,g):3===e&&t.destroyNode(y),null!=d&&function yI(e,t,r,o,a){const d=r[Wo];d!==Pi(r)&&vh(t,e,o,d,a);for(let y=Xi;yt.replace(Bv,Kg))}(t))}function xl(e,t,r){return e.createElement(t,r)}function Hv(e,t){var r;null===(r=t[ks].changeDetectionScheduler)||void 0===r||r.notify(1),xa(e,t,t[Br],2,null,null)}function Gv(e,t){const r=e[Ia],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=Xi)return;const r=Xi+t,o=e[r];if(o){const a=o[Co];null!==a&&a!==e&&Gv(a,o),t>0&&(e[r-1][qi]=o[qi]);const d=ki(e,Xi+t);!function qy(e,t){Hv(e,t),t[vi]=null,t[Si]=null}(o[Rn],o);const g=d[Go];null!==g&&g.detachView(d[Rn]),o[Di]=null,o[qi]=null,o[Kn]&=-129}return o}function Zg(e,t){if(!(256&t[Kn])){const r=t[Br];r.destroyNode&&xa(e,t,r,3,null,null),function pu(e){let t=e[Xs];if(!t)return em(e[Rn],e);for(;t;){let r=null;if(di(t))r=t[Xs];else{const o=t[Xi];o&&(r=o)}if(!r){for(;t&&!t[qi]&&t!==e;)di(t)&&em(t[Rn],t),t=t[Di];null===t&&(t=e),di(t)&&em(t[Rn],t),r=t&&t[qi]}t=r}}(t)}}function em(e,t){if(256&t[Kn])return;const r=oe(null);try{t[Kn]&=-129,t[Kn]|=256,t[cs]&&mt(t[cs]),function Yy(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let o=0;o=0?o[g]():o[-g].unsubscribe(),d+=2}else r[d].call(o[r[d+1]]);null!==o&&(t[Ho]=null);const a=t[Mi];if(null!==a){t[Mi]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[o.directiveStart+a];if(d===ls.None||d===ls.Emulated)return null}return is(o,r)}}(e,t.parent,r)}function id(e,t,r,o,a){e.insertBefore(t,r,o,a)}function od(e,t,r){e.appendChild(t,r)}function Qf(e,t,r,o,a){null!==o?id(e,t,r,o,a):od(e,t,r)}function Yf(e,t){return e.parentNode(t)}function Kv(e,t,r){return e0(e,t,r)}let qv,e0=function Xv(e,t,r){return 40&e.type?is(e,r):null};function tm(e,t,r,o){const a=Wv(e,o,t),d=t[Br],y=Kv(o.parent||t[Si],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;AGr&&im(e,t,Gr,!1),Ds(g?2:0,a),r(o,a)}finally{Ra(d),Ds(g?3:1,a)}}function Jv(e,t,r){if(Wl(t)){const o=oe(null);try{const d=t.directiveEnd;for(let g=t.directiveStart;gnull;function e_(e,t,r,o,a){for(let g in t){var d;if(!t.hasOwnProperty(g))continue;const y=t[g];if(void 0===y)continue;null!==(d=o)&&void 0!==d||(o={});let A,B=us.None;Array.isArray(y)?(A=y[0],B=y[1]):A=y;let Y=g;if(null!==a){if(!a.hasOwnProperty(g))continue;Y=a[g]}0===e?g0(o,r,Y,A,B):g0(o,r,Y,A)}return o}function g0(e,t,r,o,a){let d;e.hasOwnProperty(r)?(d=e[r]).push(t,o):d=e[r]=[t,o],void 0!==a&&d.push(a)}function Us(e,t,r,o,a,d,g,y){const A=is(t,r);let Y,B=t.inputs;!y&&null!=B&&(Y=B[o])?(i_(e,r,Y,o,a),rs(t)&&function wI(e,t){const r=Ro(t,e);16&r[Kn]||(r[Kn]|=64)}(r,t.index)):3&t.type&&(o=function bI(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),a=null!=g?g(a,t.value||"",o):a,d.setProperty(A,o,a))}function t_(e,t,r,o){if(wa()){const a=null===o?null:{"":-1},d=function OI(e,t){const r=e.directiveRegistry;let o=null,a=null;if(r)for(let g=0;g0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(g)!=y&&g.push(y),g.push(r,o,d)}}(e,t,o,ep(e,r,a.hostVars,ti),a)}function Ol(e,t,r,o,a,d){const g=is(e,t);!function r_(e,t,r,o,a,d,g){if(null==d)e.removeAttribute(t,a,r);else{const y=null==g?Wn(d):g(d,o||"",a);e.setAttribute(t,a,y,r)}}(t[Br],g,d,e.value,r,o,a)}function VI(e,t,r,o,a,d){const g=d[t];if(null!==g)for(let y=0;y0&&(r[a-1][qi]=t),o{Ls(e.lView)},consumerOnSignalRead(){this.lView[cs]=this}},w0=100;function hm(e,t=!0,r=0){const o=e[ks],a=o.rendererFactory;var g;null===(g=a.begin)||void 0===g||g.call(a);try{!function WI(e,t){s_(e,t);let r=0;for(;Yl(e);){if(r===w0)throw new nt(103,!1);r++,s_(e,1)}}(e,r)}catch(B){throw t&&um(e,B),B}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function KI(e,t,r,o){var a;const d=t[Kn];if(!(256&~d))return;null===(a=t[ks].inlineEffectRunner)||void 0===a||a.flush(),Sa(t);let y=null,A=null;(function XI(e){return 2!==e.type})(e)&&(A=function jI(e){var t;return null!==(t=e[cs])&&void 0!==t?t:function zI(e){var t;const r=null!==(t=b0.pop())&&void 0!==t?t:Object.create(GI);return r.lView=e,r}(e)}(t),y=yt(A));try{Cc(t),function wc(e){return gr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&c0(e,t,r,2,o);const B=!(3&~d);if(B){const We=e.preOrderCheckHooks;null!==We&&xc(t,We,null)}else{const We=e.preOrderHooks;null!==We&&sa(t,We,0,null),aa(t,0)}if(function qI(e){for(let t=vg(e);null!==t;t=bf(t)){if(!(t[Kn]&Ru.HasTransplantedViews))continue;const r=t[Ia];for(let o=0;o-1&&(qf(t,o),ki(r,o))}this._attachedToViewContainer=!1}Zg(this._lView[Rn],this._lView)}onDestroy(t){Xa(this._lView,t)}markForCheck(){op(this._cdRefInjectingView||this._lView)}detach(){this._lView[Kn]&=-129}reattach(){ml(this._lView),this._lView[Kn]|=128}detectChanges(){this._lView[Kn]|=1024,hm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Hv(this._lView[Rn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new nt(902,!1);this._appRef=t,ml(this._lView)}}let ap=(()=>{class t{}return t.__NG_ELEMENT_ID__=JI,t})();const P0=ap,YI=class extends P0{constructor(t,r,o){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=o}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,o){const a=np(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new sp(a)}};function JI(){return fm(Vi(),an())}function fm(e,t){return 4&e.type?new YI(t,e,la(e,t)):null}let gm=()=>null;function _o(e,t){return gm(e,t)}class mm{}class Ch{}class l_{}class lp{resolveComponentFactory(t){throw function Dh(e){const t=Error(`No component factory found for ${cr(e)}.`);return t.ngComponent=e,t}(t)}}let dc=(()=>{class t{}return t.NULL=new lp,t})();class up{}let vm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function _m(){const e=an(),r=Ro(Vi().index,e);return(di(r)?r:e)[Br]}(),t})(),ym=(()=>{var e;class t{}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>null}),t})();const cp={},c_=new Set;function Oa(e){var t,r;c_.has(e)||(c_.add(e),null===(t=performance)||void 0===t||null===(r=t.mark)||void 0===r||r.call(t,"mark_feature_usage",{detail:{feature:e}}))}function Em(...e){}class bo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Bs(!1),this.onMicrotaskEmpty=new Bs(!1),this.onStable=new Bs(!1),this.onError=new Bs(!1),typeof Zone>"u")throw new nt(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&r,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function Im(){const e="function"==typeof Jn.requestAnimationFrame;let t=Jn[e?"requestAnimationFrame":"setTimeout"],r=Jn[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function os(e){const t=()=>{!function Cm(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Jn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ko(e),e.isCheckStableRunning=!0,Th(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ko(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,d,g,y)=>{if(function L0(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(y))return r.invokeTask(a,d,g,y);try{return bh(e),r.invokeTask(a,d,g,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),Dm(e)}},onInvoke:(r,o,a,d,g,y,A)=>{try{return bh(e),r.invoke(a,d,g,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Dm(e)}},onHasTask:(r,o,a,d)=>{r.hasTask(a,d),o===a&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,Ko(e),Th(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(r,o,a,d)=>(r.handleError(a,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!bo.isInAngularZone())throw new nt(909,!1)}static assertNotInAngularZone(){if(bo.isInAngularZone())throw new nt(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const d=this._inner,g=d.scheduleEventTask("NgZoneEvent: "+a,t,Am,Em,Em);try{return d.runTask(g,r,o)}finally{d.cancelTask(g)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Am={};function Th(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ko(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Dm(e){e._nesting--,Th(e)}class Tm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bs,this.onMicrotaskEmpty=new Bs,this.onStable=new Bs,this.onError=new Bs}run(t,r,o){return t.apply(r,o)}runGuarded(t,r,o){return t.apply(r,o)}runOutsideAngular(t){return t()}runTask(t,r,o,a){return t.apply(r,o)}}var vu=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(vu||{});const bm={destroy(){}};function d_(e,t){var r,o,a;!t&&ya();const d=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ne(ps);if(!function rl(e){return"browser"===(null!=e?e:Ne(ps)).get(eh)}(d))return bm;Oa("NgAfterNextRender");const g=d.get(ud),y=null!==(o=g.handler)&&void 0!==o?o:g.handler=new wm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:vu.MixedReadWrite,B=()=>{y.unregister(de),Y()},Y=d.get(Xu).onDestroy(B),de=lo(d,()=>new dp(A,()=>{B(),e()}));return y.register(de),{destroy:B}}class dp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Ne(bo),this.errorHandler=Ne(Za,{optional:!0}),null===(o=Ne(mm,{optional:!0}))||void 0===o||o.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(r){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(r)}}}class wm{constructor(){this.executingCallbacks=!1,this.buckets={[vu.EarlyRead]:new Set,[vu.Write]:new Set,[vu.MixedReadWrite]:new Set,[vu.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const r of t)r.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let ud=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var o;this.executeInternalCallbacks(),null===(o=this.handler)||void 0===o||o.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of o)a()}ngOnDestroy(){var o;null===(o=this.handler)||void 0===o||o.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>new e}),t})();function il(e){return!!bi(e)}function yu(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,d=0;if(null!==t)for(let g=0;g0&&o0(e,r,d.join(" "))}}(Zt,Bl,Pn,o),void 0!==r&&function v_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=__,t})();function __(){return _p(Vi(),an())}const y_=pd,E_=class extends y_{constructor(t,r,o){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=o}get element(){return la(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Qa(this._hostTNode,this._hostLView);if(Cl(t)){const r=Dl(t,this._hostLView),o=Ma(t);return new eo(r[Rn].data[o+8],r)}return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=Mh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-Xi}createEmbeddedView(t,r,o){let a,d;"number"==typeof o?a=o:null!=o&&(a=o.index,d=o.injector);const g=_o(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},d,g);return this.insertImpl(y,a,Ih(this._hostTNode,g)),y}createComponent(t,r,o,a,d){var g,y,A;const B=t&&!function Qt(e){return"function"==typeof e}(t);let Y;if(B)Y=r;else{const Pn=r||{};Y=Pn.index,o=Pn.injector,a=Pn.projectableNodes,d=Pn.environmentInjector||Pn.ngModuleRef}const de=B?t:new Rh(Rr(t)),We=o||this.parentInjector;if(!d&&null==de.ngModule){const un=(B?We:this.parentInjector).get(Lo,null);un&&(d=un)}const ft=Rr(null!==(g=de.componentType)&&void 0!==g?g:{}),Ft=_o(this._lContainer,null!==(y=null==ft?void 0:ft.id)&&void 0!==y?y:null),Zt=null!==(A=null==Ft?void 0:Ft.firstChild)&&void 0!==A?A:null,bn=de.create(We,a,Zt,d);return this.insertImpl(bn.hostView,Y,Ih(this._hostTNode,Ft)),bn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function Ac(e){return Do(e[Di])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Di],B=new E_(A,A[Si],A[Di]);B.detach(B.indexOf(t))}}const d=this._adjustIndex(r),g=this._lContainer;return rp(g,a,d,o),t.attachToViewContainerRef(),Ni(vp(g),d,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=Mh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);o&&(ki(vp(this._lContainer),r),Zg(o[Rn],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=ki(vp(this._lContainer),r)?new sp(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function Mh(e){return e[8]}function vp(e){return e[8]||(e[8]=[])}function _p(e,t){let r;const o=t[e.index];return Do(o)?r=o:(r=E0(o,t,null,e),t[e.index]=r,am(t,r)),Iu(r,t,e,o),new E_(r,e,t)}let Iu=function Pm(e,t,r,o){if(e[Wo])return;let a;a=8&r.type?Pi(o):function Ph(e,t){const r=e[Br],o=r.createComment(""),a=is(t,e);return id(r,Yf(r,a),o,function Zy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[Wo]=a},xh=()=>!1;class Oh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Oh(this.queryList)}setDirty(){this.queryList.setDirty()}}class yp{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const o=null!==t.contentQueries?t.contentQueries[0]:r.length,a=[];for(let d=0;dt.trim())}(t):t}}class Nm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(g[y/2]);else{const B=d[y+1],Y=t[-A];for(let de=Xi;de(Qe(t),t.value);return r[ue]=t,r}(e),o=r[ue];return null!=t&&t.equal&&(o.equal=t.equal),r.set=a=>ve(o,a),r.update=a=>function Le(e,t){Tt()||dt(),ve(e,t(e.value))}(o,a),r.asReadonly=kl.bind(r),r}function kl(){const e=this[ue];if(void 0===e.readonlyFn){const t=()=>this();t[ue]=e,e.readonlyFn=t}return e.readonlyFn}function Vm(e){return Lm(e)&&"function"==typeof e.set}function wp(e){let t=function Cu(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),r=!0;const o=[e];for(;t;){let a;if(ds(e))a=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new nt(903,!1);a=t.\u0275dir}if(a){if(r){o.push(a);const g=e;g.inputs=Uh(e.inputs),g.inputTransforms=Uh(e.inputTransforms),g.declaredInputs=Uh(e.declaredInputs),g.outputs=Uh(e.outputs);const y=a.hostBindings;y&&L_(e,y);const A=a.viewQuery,B=a.contentQueries;if(A&&Sp(e,A),B&&$s(e,B),k_(e,a),Pr(e.outputs,a.outputs),ds(a)&&a.data.animation){const Y=e.data;Y.animation=(Y.animation||[]).concat(a.data.animation)}}const d=a.features;if(d)for(let g=0;g=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Ao(a.hostAttrs,r=Ao(r,a.hostAttrs))}}(o)}function k_(e,t){for(const o in t.inputs){if(!t.inputs.hasOwnProperty(o)||e.inputs.hasOwnProperty(o))continue;const a=t.inputs[o];if(void 0!==a&&(e.inputs[o]=a,e.declaredInputs[o]=t.declaredInputs[o],null!==t.inputTransforms)){var r;const d=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(d))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[d]=t.inputTransforms[d]}}}function Uh(e){return e===ko?{}:e===Kr?[]:e}function Sp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function $s(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,d)=>{t(o,a,d),r(o,a,d)}:t}function L_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function Wi(e){const t=e.inputConfig,r={};for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];Array.isArray(a)&&a[3]&&(r[o]=a[3])}e.inputTransforms=r}class so{}class xi{}function ss(e,t){return new Du(e,null!=t?t:null,[])}class Du extends so{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new f_(this);const a=bi(t);this._bootstrapComponents=ca(a.bootstrap),this._r3Injector=Ef(t,r,[{provide:so,useValue:this},{provide:dc,useValue:this.componentFactoryResolver},...o],cr(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class js extends xi{constructor(t){super(),this.moduleType=t}create(t){return new Du(this.moduleType,t,[])}}class Mp extends so{constructor(t){super(),this.componentFactoryResolver=new f_(this),this.instance=null;const r=new Ns([...t.providers,{provide:so,useValue:this},{provide:dc,useValue:this.componentFactoryResolver}],t.parent||ts(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Q0(e,t,r=null){return new Mp({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let Pp=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new er.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function U_(e){return!!Y0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Y0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Tu(e,t,r){return e[t]=r}function Po(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function $h(e,t,r,o){const a=Po(e,t,r);return Po(e,t+1,o)||a}function xp(e,t,r,o,a,d,g,y){const A=an(),B=Ei(),Y=e+Gr,de=B.firstCreatePass?function gb(e,t,r,o,a,d,g,y,A){const B=t.consts,Y=uc(t,e,4,g||null,Ts(B,y));t_(t,r,Y,Ts(B,A)),$u(t,Y);const de=Y.tView=tp(2,Y,o,a,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,B,null);return null!==t.queries&&(t.queries.template(t,Y),de.queries=t.queries.embeddedTView(Y)),Y}(Y,B,A,t,r,o,a,d,g):B.data[Y];na(de,!1);const We=uA(B,A,de,e);Uu()&&tm(B,A,We,de),to(We,A);const ft=E0(We,A,We,de);return A[Y]=ft,am(A,ft),function I_(e,t,r){return xh(e,t,r)}(ft,de,A),Ys(de)&&yh(B,A,de),null!=g&&ad(A,de,y),xp}let uA=function cA(e,t,r,o){return Vs(!0),t[Br].createComment("")};function aE(e,t,r,o){const a=an();return Po(a,bs(),t)&&(Ei(),Ol(Fi(),a,e,t,r,o)),aE}function Up(e,t,r,o){return Po(e,bs(),r)?t+Wn(r)+o:ti}function $p(e,t,r,o,a,d){const y=$h(e,function ia(){return gr.lFrame.bindingIndex}(),r,a);return oa(2),y?t+Wn(r)+o+Wn(a)+d:ti}function K_(e,t){return e<<17|t<<2}function Ad(e){return e>>17&32767}function lE(e){return 2|e}function zh(e){return(131068&e)>>2}function uE(e,t){return-131069&e|t<<2}function cE(e){return 1|e}function $A(e,t,r,o){const a=e[r+1],d=null===t;let g=o?Ad(a):zh(a),y=!1;for(;0!==g&&(!1===y||d);){const B=e[g+1];tw(e[g],t)&&(y=!0,e[g+1]=o?cE(B):lE(B)),g=o?Ad(B):zh(B)}y&&(e[r+1]=o?lE(a):cE(a))}function tw(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Io(e,t)>=0}function dE(e,t,r){const o=an();return Po(o,bs(),t)&&Us(Ei(),Fi(),o,e,t,o[Br],r,!1),dE}function hE(e,t,r,o,a){const g=a?"class":"style";i_(e,r,t.inputs[g],g,o)}function fE(e,t,r){return Ll(e,t,r,!1),fE}function pE(e,t){return Ll(e,t,null,!0),pE}function Ll(e,t,r,o){const a=an(),d=Ei(),g=oa(2);d.firstUpdatePass&&function qA(e,t,r,o){const a=e.data;if(null===a[r+1]){const d=a[mo()],g=function XA(e,t){return t>=e.expandoStartIndex}(e,r);(function ZA(e,t){return!!(e.flags&(t?8:16))})(d,o)&&null===t&&!g&&(t=!1),t=function cw(e,t,r,o){const a=function ku(e){const t=gr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let d=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=Ym(r=gE(null,e,t,r,o),t.attrs,o),d=null);else{const g=t.directiveStylingLast;if(-1===g||e[g]!==a)if(r=gE(a,e,t,r,o),null===d){let A=function dw(e,t,r){const o=r?t.classBindings:t.styleBindings;if(0!==zh(o))return e[Ad(o)]}(e,t,o);void 0!==A&&Array.isArray(A)&&(A=gE(null,e,t,A[1],o),A=Ym(A,t.attrs,o),function hw(e,t,r,o){e[Ad(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else d=function fw(e,t,r){let o;const a=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(B=!0)):Y=r,a)if(0!==A){const We=Ad(e[y+1]);e[o+1]=K_(We,y),0!==We&&(e[We+1]=uE(e[We+1],o)),e[y+1]=function Yb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=K_(y,0),0!==y&&(e[y+1]=uE(e[y+1],o)),y=o;else e[o+1]=K_(A,0),0===y?y=o:e[A+1]=uE(e[A+1],o),A=o;B&&(e[o+1]=lE(e[o+1])),$A(e,Y,o,!0),$A(e,Y,o,!1),function ew(e,t,r,o,a){const d=a?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&Io(d,t)>=0&&(r[o+1]=cE(r[o+1]))}(t,Y,e,o,d),g=K_(y,A),d?t.classBindings=g:t.styleBindings=g}(a,d,t,r,g,o)}}(d,e,g,o),t!==ti&&Po(a,g,t)&&function YA(e,t,r,o,a,d,g,y){if(!(3&t.type))return;const A=e.data,B=A[y+1],Y=function Jb(e){return!(1&~e)}(B)?JA(A,t,r,a,zh(B),g):void 0;X_(Y)||(X_(d)||function Qb(e){return!(2&~e)}(B)&&(d=JA(A,null,r,a,y,g)),function EI(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let d=-1===o.indexOf("-")?void 0:Yg.DashCase;null==a?e.removeStyle(r,o,d):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),d|=Yg.Important),e.setStyle(r,o,a,d))}}(o,g,Ka(mo(),r),a,d))}(d,d.data[mo()],a,a[Br],e,a[g+1]=function vw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=cr(Rl(e)))),e}(t,r),o,g)}function gE(e,t,r,o,a){let d=null;const g=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],B=Array.isArray(A),Y=B?A[1]:A,de=null===Y;let We=r[a+1];We===ti&&(We=de?Kr:void 0);let ft=de?Bo(We,o):Y===o?We:void 0;if(B&&!X_(ft)&&(ft=Bo(A,o)),X_(ft)&&(y=ft,g))return y;const Ft=e[a+1];a=g?Ad(Ft):zh(Ft)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(y=Bo(A,o))}return y}function X_(e){return void 0!==e}class Sw{destroy(t){}updateValue(t,r){}swap(t,r){const o=Math.min(t,r),a=Math.max(t,r),d=this.detach(a);if(a-o>1){const g=this.detach(o);this.attach(o,d),this.attach(a,g)}else this.attach(o,d)}move(t,r){this.attach(r,this.detach(t))}}function mE(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function vE(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function eC(e,t,r,o,a){if(vE(e,t,o,r(o,a)))e.updateValue(o,a);else{const d=e.create(o,a);e.attach(o,d)}}function tC(e,t,r,o){const a=new Set;for(let d=t;d<=r;d++)a.add(o(d,e.at(d)));return a}class nC{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const r=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(t,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,r){if(this.kvMap.has(t)){let o=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const a=this._vMap;for(;a.has(o);)o=a.get(o);a.set(o,r)}else this.kvMap.set(t,r)}forEach(t){for(let[r,o]of this.kvMap)if(t(o,r),void 0!==this._vMap){const a=this._vMap;for(;a.has(o);)o=a.get(o),t(o,r)}}}function rC(e,t,r){Oa("NgControlFlow");const o=an(),a=bs(),d=_E(o,Gr+e);if(Po(o,a,t)){const y=oe(null);try{if(dm(d,0),-1!==t){const A=yE(o[Rn],Gr+t),B=_o(d,A.tView.ssrId);rp(d,np(o,A,r,{dehydratedView:B}),0,Ih(A,B))}}finally{oe(y)}}else{const y=o_(d,0);void 0!==y&&(y[_i]=r)}}class Mw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-Xi}}function iC(e,t){return t}class xw{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function oC(e,t,r,o,a,d,g,y,A,B,Y,de,We){Oa("NgControlFlow");const ft=void 0!==A,Ft=an(),Zt=y?g.bind(Ft[Gi][_i]):g,bn=new xw(ft,Zt);Ft[Gr+e]=bn,xp(e+1,t,r,o,a,d),ft&&xp(e+2,A,B,Y,de,We)}class Ow extends Sw{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Xi}at(t){return this.getLView(t)[_i].$implicit}attach(t,r){const o=r[Qi];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),rp(this.lContainer,r,t,Ih(this.templateTNode,o))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function Nw(e,t){return qf(e,t)}(this.lContainer,t)}create(t,r){const o=_o(this.lContainer,this.templateTNode.tView.ssrId);return np(this.hostLView,this.templateTNode,new Mw(this.lContainer,r,t),{dehydratedView:o})}destroy(t){Zg(t[Rn],t)}updateValue(t,r){this.getLView(t)[_i].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(We)})}(g,e,d.trackByFn),g.updateIndexes(),d.hasEmptyBlock){const y=bs(),A=0===g.length;if(Po(o,y,A)){const B=r+2,Y=_E(o,B);if(A){const de=yE(a,B),We=_o(Y,de.tView.ssrId);rp(Y,np(o,de,void 0,{dehydratedView:We}),0,Ih(de,We))}else dm(Y,0)}}}finally{oe(t)}}function _E(e,t){return e[t]}function yE(e,t){return Ql(e,t)}function q_(e,t,r,o){const a=an(),d=Ei(),g=Gr+e,y=a[Br],A=d.firstCreatePass?function Fw(e,t,r,o,a,d){const g=t.consts,A=uc(t,e,2,o,Ts(g,a));return t_(t,r,A,Ts(g,d)),null!==A.attrs&&yu(A,A.attrs,!1),null!==A.mergedAttrs&&yu(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(g,d,a,t,r,o):d.data[g],B=aC(d,a,A,y,t,e);a[g]=B;const Y=Ys(A);return na(A,!0),s0(y,B,A),!function Km(e){return!(32&~e.flags)}(A)&&Uu()&&tm(d,a,B,A),0===function Dc(){return gr.lFrame.elementDepthCount}()&&to(B,a),function Tc(){gr.lFrame.elementDepthCount++}(),Y&&(yh(d,a,A),Jv(d,A,a)),null!==o&&ad(a,A),q_}function Q_(){let e=Vi();Ou()?Nu():(e=e.parent,na(e,!1));const t=e;(function _l(e){return gr.skipHydrationRootTNode===e})(t)&&function qa(){gr.skipHydrationRootTNode=null}(),function ea(){gr.lFrame.elementDepthCount--}();const r=Ei();return r.firstCreatePass&&($u(r,e),Wl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function ju(e){return!!(8&e.flags)}(t)&&hE(r,t,an(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Ld(e){return!!(16&e.flags)}(t)&&hE(r,t,an(),t.stylesWithoutHost,!1),Q_}function EE(e,t,r,o){return q_(e,t,r,o),Q_(),EE}let aC=(e,t,r,o,a,d)=>(Vs(!0),xl(o,a,function Fd(){return gr.lFrame.currentNamespace}()));function Y_(e,t,r){const o=an(),a=Ei(),d=e+Gr,g=a.firstCreatePass?function Bw(e,t,r,o,a){const d=t.consts,g=Ts(d,o),y=uc(t,e,8,"ng-container",g);return null!==g&&yu(y,g,!0),t_(t,r,y,Ts(d,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(d,a,o,t,r):a.data[d];na(g,!0);const y=lC(a,o,g,e);return o[d]=y,Uu()&&tm(a,o,y,g),to(y,o),Ys(g)&&(yh(a,o,g),Jv(a,g,o)),null!=r&&ad(o,g),Y_}function J_(){let e=Vi();const t=Ei();return Ou()?Nu():(e=e.parent,na(e,!1)),t.firstCreatePass&&($u(t,e),Wl(e)&&t.queries.elementEnd(e)),J_}function IE(e,t,r){return Y_(e,t,r),J_(),IE}let lC=(e,t,r,o)=>(Vs(!0),rd(t[Br],""));function uC(){return an()}const Hh=void 0;var zw=["en",[["a","p"],["AM","PM"],Hh],[["AM","PM"],Hh,Hh],[["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"]],Hh,[["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"]],Hh,[["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}",Hh,"{1} 'at' {0}",Hh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function AE(e){const t=function Hw(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=fC(t);if(r)return r;const o=t.split("-")[0];if(r=fC(o),r)return r;if("en"===o)return zw;throw new nt(701,!1)}function hC(e){return AE(e)[Qp.PluralCase]}function fC(e){return e in qp||(qp[e]=Jn.ng&&Jn.ng.common&&Jn.ng.common.locales&&Jn.ng.common.locales[e]),qp[e]}var Qp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Qp||{});const Yp="en-US";let pC=Yp;function TE(e,t,r,o){const a=an(),d=Ei(),g=Vi();return bE(d,a,a[Br],g,e,t,o),TE}function bE(e,t,r,o,a,d,g){const y=Ys(o),B=e.firstCreatePass&&C0(e),Y=t[_i],de=A0(t);let We=!0;if(3&o.type||g){const Zt=is(o,t),bn=g?g(Zt):Zt,Pn=de.length,un=g?si=>g(Pi(si[o.index])):o.index;let Wr=null;if(!g&&y&&(Wr=function US(e,t,r,o){const a=e.cleanup;if(null!=a)for(let d=0;dA?y[A]:null}"string"==typeof g&&(d+=2)}return null}(e,t,a,o.index)),null!==Wr)(Wr.__ngLastListenerFn__||Wr).__ngNextListenerFn__=d,Wr.__ngLastListenerFn__=d,We=!1;else{d=jC(o,t,Y,d,!1);const si=r.listen(bn,a,d);de.push(d,si),B&&B.push(a,un,Pn,Pn+1)}}else d=jC(o,t,Y,d,!1);const ft=o.outputs;let Ft;if(We&&null!==ft&&(Ft=ft[a])){const Zt=Ft.length;if(Zt)for(let bn=0;bn-1?Ro(e.index,t):t);let A=$C(t,r,o,g),B=d.__ngNextListenerFn__;for(;B;)A=$C(t,r,B,g)&&A,B=B.__ngNextListenerFn__;return a&&!1===A&&g.preventDefault(),A}}function zC(e=1){return function Vu(e){return(gr.lFrame.contextLView=function rg(e,t){for(;e>0;)t=t[fl],e--;return t}(e,gr.lFrame.contextLView))[_i]}(e)}function $S(e,t){let r=null;const o=function yn(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let a=0;a(Vs(!0),function Pl(e,t){return e.createText(t)}(t[Br],o));function SE(e){return iy("",e,""),SE}function iy(e,t,r){const o=an(),a=Up(o,e,t,r);return a!==ti&&gu(o,mo(),a),iy}function RE(e,t,r,o,a){const d=an(),g=$p(d,e,t,r,o,a);return g!==ti&&gu(d,mo(),g),RE}function ME(e,t,r){Vm(t)&&(t=t());const o=an();return Po(o,bs(),t)&&Us(Ei(),Fi(),o,e,t,o[Br],r,!1),ME}function AD(e,t){const r=Vm(e);return r&&e.set(t),r}function PE(e,t){const r=an(),o=Ei(),a=Vi();return bE(o,r,r[Br],a,e,t),PE}function xE(e,t,r,o,a){if(e=pe(e),Array.isArray(e))for(let d=0;d>20;if(Zo(e)||!e.multi){const ft=new Al(B,a,sd),Ft=NE(A,t,a?Y:Y+We,de);-1===Ft?(Tl(Hu(y,g),d,A),OE(d,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(ft),g.push(ft)):(r[Ft]=ft,g[Ft]=ft)}else{const ft=NE(A,t,Y+We,de),Ft=NE(A,t,Y,Y+We),bn=Ft>=0&&r[Ft];if(a&&!bn||!a&&!(ft>=0&&r[ft])){Tl(Hu(y,g),d,A);const Pn=function aR(e,t,r,o,a){const d=new Al(e,r,sd);return d.multi=[],d.index=t,d.componentProviders=0,CD(d,a,o&&!r),d}(a?sR:oR,r.length,a,o,B);!a&&bn&&(r[Ft].providerFactory=Pn),OE(d,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Pn),g.push(Pn)}else OE(d,e,ft>-1?ft:Ft,CD(r[a?Ft:ft],B,!a&&o));!a&&o&&bn&&r[Ft].componentProviders++}}}function OE(e,t,r,o){const a=Zo(t),d=function As(e){return!!e.useClass}(t);if(a||d){const A=(d?pe(t.useClass):t).prototype.ngOnDestroy;if(A){const B=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const Y=B.indexOf(r);-1===Y?B.push(r,[o,A]):B[Y+1].push(o,A)}else B.push(r,A)}}}function CD(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function NE(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function iR(e,t,r){const o=Ei();if(o.firstCreatePass){const a=ds(e);xE(r,o.data,o.blueprint,a,!0),xE(t,o.data,o.blueprint,a,!1)}}(o,a?a(e):e,t)}}let lR=(()=>{var e;class t{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const a=Va(0,o.type),d=a.length>0?Q0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,d)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=fr({token:e,providedIn:"environment",factory:()=>new e(z(Lo))}),t})();function TD(e){Oa("NgStandalone"),e.getStandaloneInjector=t=>t.get(lR).getOrCreateStandaloneInjector(e)}function wD(e,t,r){const o=go()+e,a=an();return a[o]===ti?Tu(a,o,r?t.call(r):t()):function Wm(e,t){return e[t]}(a,o)}function iv(e,t){const r=e[t];return r===ti?void 0:r}function OD(e,t){const r=Ei();let o;const a=e+Gr;var d;r.firstCreatePass?(o=function ER(e,t){if(t)for(let r=t.length-1;r>=0;r--){const o=t[r];if(e===o.name)return o}}(t,r.pipeRegistry),r.data[a]=o,o.onDestroy&&(null!==(d=r.destroyHooks)&&void 0!==d?d:r.destroyHooks=[]).push(a,o.onDestroy)):o=r.data[a];const g=o.factory||(o.factory=qr(o.type)),A=W(sd);try{const B=eu(!1),Y=g();return eu(B),function GS(e,t,r,o){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=o}(r,an(),a,Y),Y}finally{W(A)}}function ND(e,t,r){const o=e+Gr,a=an(),d=fs(a,o);return ov(a,o)?function SD(e,t,r,o,a,d){const g=t+r;return Po(e,g,a)?Tu(e,g+1,d?o.call(d,a):o(a)):iv(e,g+1)}(a,go(),t,d.transform,r,d):d.transform(r)}function kD(e,t,r,o){const a=e+Gr,d=an(),g=fs(d,a);return ov(d,a)?function RD(e,t,r,o,a,d,g){const y=t+r;return $h(e,y,a,d)?Tu(e,y+2,g?o.call(g,a,d):o(a,d)):iv(e,y+2)}(d,go(),t,g.transform,r,o,g):g.transform(r,o)}function ov(e,t){return e[Rn].data[t].pure}class YD{constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}const WR=new YD("17.3.10");let JD=(()=>{var e;class t{log(o){console.log(o)}warn(o){console.warn(o)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const nT=new Ge(""),rT=new Ge("");let jE,_1=(()=>{var e;class t{constructor(o,a,d){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,jE||(function y1(e){jE=e}(d),d.addToWindow(a)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{bo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(o)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,a,d){let g=-1;a&&a>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==g),o()},a)),this._callbacks.push({doneCb:o,timeoutId:g,updateCb:d})}whenStable(o,a,d){if(d&&!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(o,a,d),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,d){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(z(bo),z(iT),z(rT))},e.\u0275prov=fr({token:e,factory:e.\u0275fac}),t})(),iT=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(o,a){this._applications.set(o,a)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,a=!0){var d,g;return null!==(d=null===(g=jE)||void 0===g?void 0:g.findTestabilityInTree(this,o,a))&&void 0!==d?d:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function zE(e){return!!e&&"function"==typeof e.then}function oT(e){return!!e&&"function"==typeof e.subscribe}const sT=new Ge("");let HE=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,d)=>{this.resolve=a,this.reject=d}),this.appInits=null!==(o=Ne(sT,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const d of this.appInits){const g=d();if(zE(g))o.push(g);else if(oT(g)){const y=new Promise((A,B)=>{g.subscribe({complete:A,error:B})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(d=>{this.reject(d)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const GE=new Ge("");function uT(e,t){return Array.isArray(t)?t.reduce(uT,e):{...e,...t}}let Cd=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ne(Gd),this.afterRenderEffectManager=Ne(ud),this.externalTestViews=new Set,this.beforeRender=new Zn.B,this.afterTick=new Zn.B,this.componentTypes=[],this.components=[],this.isStable=Ne(Pp).hasPendingTasks.pipe((0,yr.T)(o=>!o)),this._injector=Ne(Lo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const d=o instanceof l_;if(!this._injector.get(HE).done)throw!d&&po(o),new nt(405,!1);let y;y=d?o:this._injector.get(dc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function E1(e){return e.isBoundToModule}(y)?void 0:this._injector.get(so),Y=y.create(ps.NULL,[],a||y.selector,A),de=Y.location.nativeElement,We=Y.injector.get(nT,null);return null==We||We.registerApplication(de),Y.onDestroy(()=>{this.detachView(Y.hostView),ly(this.components,Y),null==We||We.unregisterApplication(de)}),this._loadComponent(Y),Y}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new nt(101,!1);const a=oe(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(d){this.internalErrorHandler(d)}finally{this.afterTick.next(),this._runningTick=!1,oe(a)}}detectChangesInAttachedViews(o){let a=0;const d=this.afterRenderEffectManager;for(;;){if(a===w0)throw new nt(103,!1);if(o){const g=0===a;this.beforeRender.next(g);for(let{_lView:y,notifyErrorHandler:A}of this._views)A1(y,g,A)}if(a++,d.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))&&(d.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;ly(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(GE,[]);[...this._bootstrapListeners,...a].forEach(d=>d(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>ly(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new nt(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ly(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function A1(e,t,r){!t&&!WE(e)||function C1(e,t,r){let o;r?(o=0,e[Kn]|=1024):o=64&e[Kn]?0:1,hm(e,t,o)}(e,r,t)}function WE(e){return Yl(e)}class D1{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let T1=(()=>{var e;class t{compileModuleSync(o){return new js(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),g=ca(bi(o).declarations).reduce((y,A)=>{const B=Rr(A);return B&&y.push(new Rh(B)),y},[]);return new D1(a,g)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),S1=(()=>{var e;class t{constructor(){this.zone=Ne(bo),this.applicationRef=Ne(Cd)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var o;null===(o=this._onMicrotaskEmptySubscription)||void 0===o||o.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function R1(){const e=Ne(bo),t=Ne(Za);return r=>e.runOutsideAngular(()=>t.handleError(r))}let P1=(()=>{var e;class t{constructor(){this.subscription=new nr.yU,this.initialized=!1,this.zone=Ne(bo),this.pendingTasks=Ne(Pp)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{bo.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var a;bo.assertInAngularZone(),null!==(a=o)&&void 0!==a||(o=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const uy=new Ge("",{providedIn:"root",factory:()=>Ne(uy,bt.Optional|bt.SkipSelf)||function x1(){return typeof $localize<"u"&&$localize.locale||Yp}()}),O1=new Ge("",{providedIn:"root",factory:()=>"USD"}),KE=new Ge("");let fT=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const d=function wh(e="zone.js",t){return"noop"===e?new Tm:"zone.js"===e?new bo(t):e}(null==a?void 0:a.ngZone,function hT(e){var t,r;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(r=null==e?void 0:e.runCoalescing)&&void 0!==r&&r}}({eventCoalescing:null==a?void 0:a.ngZoneEventCoalescing,runCoalescing:null==a?void 0:a.ngZoneRunCoalescing}));return d.run(()=>{const g=function Rp(e,t,r){return new Du(e,t,r)}(o.moduleType,this.injector,function dT(e){return[{provide:bo,useFactory:e},{provide:fo,multi:!0,useFactory:()=>{const t=Ne(S1,{optional:!0});return()=>t.initialize()}},{provide:fo,multi:!0,useFactory:()=>{const t=Ne(P1);return()=>{t.initialize()}}},{provide:Gd,useFactory:R1}]}(()=>d)),y=g.injector.get(Za,null);return d.runOutsideAngular(()=>{const A=d.onError.subscribe({next:B=>{y.handleError(B)}});g.onDestroy(()=>{ly(this._modules,g),A.unsubscribe()})}),function lT(e,t,r){try{const o=r();return zE(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,d,()=>{const A=g.injector.get(HE);return A.runInitializers(),A.donePromise.then(()=>(function gC(e){"string"==typeof e&&(pC=e.toLowerCase().replace(/_/g,"-"))}(g.injector.get(uy,Yp)||Yp),this._moduleDoBootstrap(g),g))})})}bootstrapModule(o,a=[]){const d=uT({},a);return function w1(e,t,r){const o=new js(r);return Promise.resolve(o)}(0,0,o).then(g=>this.bootstrapModuleFactory(g,d))}_moduleDoBootstrap(o){const a=o.injector.get(Cd);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(d=>a.bootstrap(d));else{if(!o.instance.ngDoBootstrap)throw new nt(-403,!1);o.instance.ngDoBootstrap(a)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new nt(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(KE,null);o&&(o.forEach(a=>a()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(o){return new(o||e)(z(ps))},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Dd=null;const pT=new Ge("");function gT(e,t,r=[]){const o=`Platform: ${t}`,a=new Ge(o);return(d=[])=>{let g=XE();if(!g||g.injector.get(pT,!1)){const y=[...r,...d,{provide:a,useValue:!0}];e?e(y):function k1(e){if(Dd&&!Dd.get(pT,!1))throw new nt(400,!1);(function aT(){!function we(e){on=e}(()=>{throw new nt(600,!1)})})(),Dd=e;const t=e.get(fT);(function vT(e){const t=e.get(Ev,null);null==t||t.forEach(r=>r())})(e)}(function mT(e=[],t){return ps.create({name:t,providers:[{provide:zl,useValue:"platform"},{provide:KE,useValue:new Set([()=>Dd=null])},...e]})}(y,o))}return function F1(e){const t=XE();if(!t)throw new nt(401,!1);return t}()}}function XE(){var e,t;return null!==(e=null===(t=Dd)||void 0===t?void 0:t.get(fT))&&void 0!==e?e:null}function V1(){}let yT=(()=>{class t{}return t.__NG_ELEMENT_ID__=B1,t})();function B1(e){return function U1(e,t,r){if(rs(e)&&!r){const o=Ro(e.index,t);return new sp(o,o)}return 47&e.type?new sp(t[Gi],t):null}(Vi(),an(),!(16&~e))}class CT{constructor(){}supports(t){return U_(t)}create(t){return new G1(t)}}const H1=(e,t)=>t;class G1{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||H1}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,o=this._removalsHead,a=0,d=null;for(;r||o;){const g=!o||r&&r.currentIndex{g=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,g)?(o&&(r=this._verifyReinsertion(r,y,g,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,g,a),o=!0),r=r._next,a++}),this.length=a;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,o,a){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,d,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,d,a)):t=this._addAfter(new W1(r,o),d,a),t}_verifyReinsertion(t,r,o,a){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==d?t=this._reinsertAfter(d,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=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(t,r,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,d=t._nextRemoved;return null===a?this._removalsHead=d:a._nextRemoved=d,null===d?this._removalsTail=a:d._prevRemoved=a,this._insertAfter(t,r,o),this._addToMoves(t,o),t}_moveAfter(t,r,o){return this._unlink(t),this._insertAfter(t,r,o),this._addToMoves(t,o),t}_addAfter(t,r,o){return this._insertAfter(t,r,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,o){const a=null===r?this._itHead:r._next;return t._next=a,t._prev=r,null===a?this._itTail=t:a._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new DT),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,o=t._next;return null===r?this._itHead=o:r._next=o,null===o?this._itTail=r:o._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new DT),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class W1{constructor(t,r){this.item=t,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 K1{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===r||r<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const r=t._prevDup,o=t._nextDup;return null===r?this._head=o:r._nextDup=o,null===o?this._tail=r:o._prevDup=r,null===this._head}}class DT{constructor(){this.map=new Map}put(t){const r=t.trackById;let o=this.map.get(r);o||(o=new K1,this.map.set(r,o)),o.add(t)}get(t,r){const a=this.map.get(t);return a?a.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function TT(e,t,r){const o=e.previousIndex;if(null===o)return o;let a=0;return r&&o{if(r&&r.key===a)this._maybeAddToChanges(r,o),this._appendAfter=r,r=r._next;else{const d=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,d)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let o=r;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const o=t._prev;return r._next=t,r._prev=o,t._prev=r,o&&(o._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,r);const d=a._prev,g=a._next;return d&&(d._next=g),g&&(g._prev=d),a._next=null,a._prev=null,a}const o=new q1(t);return this._records.set(t,o),o.currentValue=r,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(o=>r(t[o],o))}}class q1{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function wT(){return new ZE([new CT])}let ZE=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||wT()),deps:[[t,new lr,new Nn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(null!=a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:wT}),t})();function ST(){return new eI([new bT])}let eI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||ST()),deps:[[t,new lr,new Nn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:ST}),t})();const J1=gT(null,"core",[]);let Z1=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(z(Cd))},e.\u0275mod=ul({type:e}),e.\u0275inj=gi({}),t})();function SM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RM(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function PM(e){const t=oe(null);try{return e()}finally{oe(t)}}const xM=new Ge("",{providedIn:"root",factory:()=>Ne(OM)});let OM=(()=>{var e;class t{}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>new NM}),t})();class NM{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Ne(Pp),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(t){const r=t.creationZone;this.queues.has(r)||this.queues.set(r,new Set);const o=this.queues.get(r);o.has(t)||(this.queuedEffectCount++,o.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,r]of this.queues)null===t?this.flushQueue(r):t.run(()=>this.flushQueue(r))}flushQueue(t){for(const r of t)t.delete(r),this.queuedEffectCount--,r.run()}}class kM{constructor(t,r,o,a,d,g){this.scheduler=t,this.effectFn=r,this.creationZone=o,this.injector=d,this.watcher=function dn(e,t,r){const o=Object.create(rn);r&&(o.consumerAllowSignalWrites=!0),o.fn=e,o.schedule=t;const a=A=>{o.cleanupFn=A};return o.ref={notify:()=>St(o),run:()=>{if(null===o.fn)return;if(function Je(){return Oe}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(o.dirty=!1,o.hasRun&&!Et(o))return;o.hasRun=!0;const A=yt(o);try{o.cleanupFn(),o.cleanupFn=Kt,o.fn(a)}finally{_t(o,A)}},cleanup:()=>o.cleanupFn(),destroy:()=>function g(A){(function d(A){return null===A.fn&&null===A.schedule})(A)||(mt(A),A.cleanupFn(),A.fn=null,A.schedule=null,A.cleanupFn=Kt)}(o),[ue]:o},o.ref}(y=>this.runEffect(y),()=>this.schedule(),g),this.unregisterOnDestroy=null==a?void 0:a.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(r){const o=this.injector.get(Za,null,{optional:!0});null==o||o.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){var t;this.watcher.destroy(),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}function QT(e,t){var r,o;Oa("NgSignals"),(null==t||!t.injector)&&ya();const a=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ne(ps),d=!0!==(null==t?void 0:t.manualCleanup)?a.get(Xu):null,g=new kM(a.get(xM),e,typeof Zone>"u"?null:Zone.current,d,a,null!==(o=null==t?void 0:t.allowSignalWrites)&&void 0!==o&&o),y=a.get(yT,null,{optional:!0});var A,B;return y&&8&y._lView[Kn]?(null!==(B=(A=y._lView)[Qs])&&void 0!==B?B:A[Qs]=[]).push(g.watcher.notify):g.watcher.notify(),g}function FM(e,t){const r=Rr(e),o=t.elementInjector||ts();return new Rh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function LM(e){const t=Rr(e);if(!t)return null;const r=new Rh(t);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 t.standalone},get isSignal(){return t.signals}}}},7440:(Tn,gt,D)=>{"use strict";D.d(gt,{MW:()=>Ze,Wp:()=>St,XU:()=>Oe,gL:()=>U});var h=D(2214),c=D(4438),Z=D(5407);class Oe{constructor(Ye){return Ye}}class U{constructor(){return(0,h.Dk)()}}const Xe=new c.nKC("angularfire2._apps"),Je={provide:Oe,useFactory:function oe(Me){return Me&&1===Me.length?Me[0]:new Oe((0,h.Sx)())},deps:[[new c.Xx1,Xe]]},Se={provide:U,deps:[[new c.Xx1,Xe]]};function De(Me){return(Ye,ge)=>{const Ue=ge.get(c.Agw);(0,h.KO)("angularfire",Z.xv.full,"core"),(0,h.KO)("angularfire",Z.xv.full,"app"),(0,h.KO)("angular",c.xvI.full,Ue.toString());const Fe=Ye.runOutsideAngular(()=>Me(ge));return new Oe(Fe)}}function Ze(Me,...Ye){return(0,c.EmA)([Je,Se,{provide:Xe,useFactory:De(Me),multi:!0,deps:[c.SKi,c.zZn,Z.u0,...Ye]}])}const St=(0,Z.S3)(h.Wp,!0)},8737:(Tn,gt,D)=>{"use strict";D.d(gt,{Nj:()=>Qa,DF:()=>Tl,eJ:()=>Gu,xI:()=>ug,_q:()=>bl,x9:()=>qu,kQ:()=>Uc});var h=D(5407),c=D(4438),Z=D(7440),Oe=D(2214),U=D(467),ue=D(7852),oe=D(1076),Xe=D(8041),Je=D(1635),Se=D(1362);const _t=function St(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},Et=new oe.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Me=new Xe.Vy("@firebase/auth");function ge(I,...f){Me.logLevel<=Xe.$b.ERROR&&Me.error(`Auth (${ue.MF}): ${I}`,...f)}function Ue(I,...f){throw vn(I,...f)}function Fe(I,...f){return vn(I,...f)}function xe(I,f,v){const S=Object.assign(Object.assign({},_t()),{[f]:v});return new oe.FA("auth","Firebase",S).create(f,{appName:I.name})}function rt(I){return xe(I,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function vn(I,...f){if("string"!=typeof I){const v=f[0],S=[...f.slice(1)];return S[0]&&(S[0].appName=I.name),I._errorFactory.create(v,...S)}return Et.create(I,...f)}function Nt(I,f,...v){if(!I)throw vn(f,...v)}function tt(I){const f="INTERNAL ASSERTION FAILED: "+I;throw ge(f),new Error(f)}function on(I,f){I||tt(f)}function dt(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.href)||""}function H(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.protocol)||null}class se{constructor(f,v){this.shortDelay=f,this.longDelay=v,on(v>f,"Short delay should be less than long delay!"),this.isMobile=(0,oe.jZ)()||(0,oe.lV)()}get(){return function X(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function we(){return"http:"===H()||"https:"===H()}()||(0,oe.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ve(I,f){on(I.emulator,"Emulator should always be set here");const{url:v}=I.emulator;return f?`${v}${f.startsWith("/")?f.slice(1):f}`:v}class Le{static initialize(f,v,S){this.fetchImpl=f,v&&(this.headersImpl=v),S&&(this.responseImpl=S)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void tt("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void tt("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void tt("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const _e={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},Wt=new se(3e4,6e4);function dn(I,f){return I.tenantId&&!f.tenantId?Object.assign(Object.assign({},f),{tenantId:I.tenantId}):f}function Kt(I,f,v,S){return rn.apply(this,arguments)}function rn(){return(rn=(0,U.A)(function*(I,f,v,S,J={}){return Ln(I,J,(0,U.A)(function*(){let be={},Dt={};S&&("GET"===f?Dt=S:be={body:JSON.stringify(S)});const Xt=(0,oe.Am)(Object.assign({key:I.config.apiKey},Dt)).slice(1),Dn=yield I._getAdditionalHeaders();return Dn["Content-Type"]="application/json",I.languageCode&&(Dn["X-Firebase-Locale"]=I.languageCode),Le.fetch()(yr(I,I.config.apiHost,v,Xt),Object.assign({method:f,headers:Dn,referrerPolicy:"no-referrer"},be))}))})).apply(this,arguments)}function Ln(I,f,v){return Zn.apply(this,arguments)}function Zn(){return(Zn=(0,U.A)(function*(I,f,v){I._canInitEmulator=!1;const S=Object.assign(Object.assign({},_e),f);try{const J=new ir(I),be=yield Promise.race([v(),J.promise]);J.clearNetworkTimeout();const Dt=yield be.json();if("needConfirmation"in Dt)throw nt(I,"account-exists-with-different-credential",Dt);if(be.ok&&!("errorMessage"in Dt))return Dt;{const Xt=be.ok?Dt.errorMessage:Dt.error.message,[Dn,$n]=Xt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Dn)throw nt(I,"credential-already-in-use",Dt);if("EMAIL_EXISTS"===Dn)throw nt(I,"email-already-in-use",Dt);if("USER_DISABLED"===Dn)throw nt(I,"user-disabled",Dt);const vr=S[Dn]||Dn.toLowerCase().replace(/[_\s]+/g,"-");if($n)throw xe(I,vr,$n);Ue(I,vr)}}catch(J){if(J instanceof oe.g)throw J;Ue(I,"network-request-failed",{message:String(J)})}})).apply(this,arguments)}function nr(I,f,v,S){return er.apply(this,arguments)}function er(){return(er=(0,U.A)(function*(I,f,v,S,J={}){const be=yield Kt(I,f,v,S,J);return"mfaPendingCredential"in be&&Ue(I,"multi-factor-auth-required",{_serverResponse:be}),be})).apply(this,arguments)}function yr(I,f,v,S){const J=`${f}${v}?${S}`;return I.config.emulator?ve(I.config,J):`${I.config.apiScheme}://${J}`}function rr(I){switch(I){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class ir{constructor(f){this.auth=f,this.timer=null,this.promise=new Promise((v,S)=>{this.timer=setTimeout(()=>S(Fe(this.auth,"network-request-failed")),Wt.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function nt(I,f,v){const S={appName:I.name};v.email&&(S.email=v.email),v.phoneNumber&&(S.phoneNumber=v.phoneNumber);const J=Fe(I,f,S);return J.customData._tokenResponse=v,J}function zt(I){return void 0!==I&&void 0!==I.enterprise}class pn{constructor(f){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===f.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=f.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=f.recaptchaEnforcementState}getProviderEnforcementState(f){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===f)return rr(v.enforcementState);return null}isProviderEnabled(f){return"ENFORCE"===this.getProviderEnforcementState(f)||"AUDIT"===this.getProviderEnforcementState(f)}}function Mn(I,f){return xn.apply(this,arguments)}function xn(){return(xn=(0,U.A)(function*(I,f){return Kt(I,"GET","/v2/recaptchaConfig",dn(I,f))})).apply(this,arguments)}function en(){return(en=(0,U.A)(function*(I,f){return Kt(I,"POST","/v1/accounts:delete",f)})).apply(this,arguments)}function Nr(I,f){return Qn.apply(this,arguments)}function Qn(){return(Qn=(0,U.A)(function*(I,f){return Kt(I,"POST","/v1/accounts:lookup",f)})).apply(this,arguments)}function Dr(I){if(I)try{const f=new Date(Number(I));if(!isNaN(f.getTime()))return f.toUTCString()}catch{}}function mr(){return(mr=(0,U.A)(function*(I,f=!1){const v=(0,oe.Ku)(I),S=yield v.getIdToken(f),J=Pr(S);Nt(J&&J.exp&&J.auth_time&&J.iat,v.auth,"internal-error");const be="object"==typeof J.firebase?J.firebase:void 0,Dt=null==be?void 0:be.sign_in_provider;return{claims:J,token:S,authTime:Dr(ur(J.auth_time)),issuedAtTime:Dr(ur(J.iat)),expirationTime:Dr(ur(J.exp)),signInProvider:Dt||null,signInSecondFactor:(null==be?void 0:be.sign_in_second_factor)||null}})).apply(this,arguments)}function ur(I){return 1e3*Number(I)}function Pr(I){const[f,v,S]=I.split(".");if(void 0===f||void 0===v||void 0===S)return ge("JWT malformed, contained fewer than 3 sections"),null;try{const J=(0,oe.u)(v);return J?JSON.parse(J):(ge("Failed to decode base64 JWT payload"),null)}catch(J){return ge("Caught error parsing JWT payload as JSON",null==J?void 0:J.toString()),null}}function cr(I){const f=Pr(I);return Nt(f,"internal-error"),Nt(typeof f.exp<"u","internal-error"),Nt(typeof f.iat<"u","internal-error"),Number(f.exp)-Number(f.iat)}function kr(I,f){return ii.apply(this,arguments)}function ii(){return(ii=(0,U.A)(function*(I,f,v=!1){if(v)return f;try{return yield f}catch(S){throw S instanceof oe.g&&function Ai({code:I}){return"auth/user-disabled"===I||"auth/user-token-expired"===I}(S)&&I.auth.currentUser===I&&(yield I.auth.signOut()),S}})).apply(this,arguments)}class Qr{constructor(f){this.user=f,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(f){var v;if(f){const S=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),S}{this.errorBackoff=3e4;const J=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,J)}}schedule(f=!1){var v=this;if(!this.isRunning)return;const S=this.getInterval(f);this.timerId=setTimeout((0,U.A)(function*(){yield v.iteration()}),S)}iteration(){var f=this;return(0,U.A)(function*(){try{yield f.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&f.schedule(!0))}f.schedule()})()}}class pe{constructor(f,v){this.createdAt=f,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=Dr(this.lastLoginAt),this.creationTime=Dr(this.createdAt)}_copy(f){this.createdAt=f.createdAt,this.lastLoginAt=f.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function it(I){return Mt.apply(this,arguments)}function Mt(){return(Mt=(0,U.A)(function*(I){var f;const v=I.auth,S=yield I.getIdToken(),J=yield kr(I,Nr(v,{idToken:S}));Nt(null==J?void 0:J.users.length,v,"internal-error");const be=J.users[0];I._notifyReloadListener(be);const Dt=null!==(f=be.providerUserInfo)&&void 0!==f&&f.length?He(be.providerUserInfo):[],Xt=function Ee(I,f){return[...I.filter(S=>!f.some(J=>J.providerId===S.providerId)),...f]}(I.providerData,Dt),vr=!!I.isAnonymous&&!(I.email&&be.passwordHash||null!=Xt&&Xt.length),hi={uid:be.localId,displayName:be.displayName||null,photoURL:be.photoUrl||null,email:be.email||null,emailVerified:be.emailVerified||!1,phoneNumber:be.phoneNumber||null,tenantId:be.tenantId||null,providerData:Xt,metadata:new pe(be.createdAt,be.lastLoginAt),isAnonymous:vr};Object.assign(I,hi)})).apply(this,arguments)}function ce(){return(ce=(0,U.A)(function*(I){const f=(0,oe.Ku)(I);yield it(f),yield f.auth._persistUserIfCurrent(f),f.auth._notifyListenersIfCurrent(f)})).apply(this,arguments)}function He(I){return I.map(f=>{var{providerId:v}=f,S=(0,Je.Tt)(f,["providerId"]);return{providerId:v,uid:S.rawId||"",displayName:S.displayName||null,email:S.email||null,phoneNumber:S.phoneNumber||null,photoURL:S.photoUrl||null}})}function ie(){return(ie=(0,U.A)(function*(I,f){const v=yield Ln(I,{},(0,U.A)(function*(){const S=(0,oe.Am)({grant_type:"refresh_token",refresh_token:f}).slice(1),{tokenApiHost:J,apiKey:be}=I.config,Dt=yr(I,J,"/v1/token",`key=${be}`),Xt=yield I._getAdditionalHeaders();return Xt["Content-Type"]="application/x-www-form-urlencoded",Le.fetch()(Dt,{method:"POST",headers:Xt,body:S})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function lt(){return(lt=(0,U.A)(function*(I,f){return Kt(I,"POST","/v2/accounts:revokeToken",dn(I,f))})).apply(this,arguments)}class Gt{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(f){Nt(f.idToken,"internal-error"),Nt(typeof f.idToken<"u","internal-error"),Nt(typeof f.refreshToken<"u","internal-error");const v="expiresIn"in f&&typeof f.expiresIn<"u"?Number(f.expiresIn):cr(f.idToken);this.updateTokensAndExpiration(f.idToken,f.refreshToken,v)}updateFromIdToken(f){Nt(0!==f.length,"internal-error");const v=cr(f);this.updateTokensAndExpiration(f,null,v)}getToken(f,v=!1){var S=this;return(0,U.A)(function*(){return v||!S.accessToken||S.isExpired?(Nt(S.refreshToken,f,"user-token-expired"),S.refreshToken?(yield S.refresh(f,S.refreshToken),S.accessToken):null):S.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(f,v){var S=this;return(0,U.A)(function*(){const{accessToken:J,refreshToken:be,expiresIn:Dt}=yield function Lt(I,f){return ie.apply(this,arguments)}(f,v);S.updateTokensAndExpiration(J,be,Number(Dt))})()}updateTokensAndExpiration(f,v,S){this.refreshToken=v||null,this.accessToken=f||null,this.expirationTime=Date.now()+1e3*S}static fromJSON(f,v){const{refreshToken:S,accessToken:J,expirationTime:be}=v,Dt=new Gt;return S&&(Nt("string"==typeof S,"internal-error",{appName:f}),Dt.refreshToken=S),J&&(Nt("string"==typeof J,"internal-error",{appName:f}),Dt.accessToken=J),be&&(Nt("number"==typeof be,"internal-error",{appName:f}),Dt.expirationTime=be),Dt}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(f){this.accessToken=f.accessToken,this.refreshToken=f.refreshToken,this.expirationTime=f.expirationTime}_clone(){return Object.assign(new Gt,this.toJSON())}_performRefresh(){return tt("not implemented")}}function tn(I,f){Nt("string"==typeof I||typeof I>"u","internal-error",{appName:f})}class _n{constructor(f){var{uid:v,auth:S,stsTokenManager:J}=f,be=(0,Je.Tt)(f,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Qr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=S,this.stsTokenManager=J,this.accessToken=J.accessToken,this.displayName=be.displayName||null,this.email=be.email||null,this.emailVerified=be.emailVerified||!1,this.phoneNumber=be.phoneNumber||null,this.photoURL=be.photoURL||null,this.isAnonymous=be.isAnonymous||!1,this.tenantId=be.tenantId||null,this.providerData=be.providerData?[...be.providerData]:[],this.metadata=new pe(be.createdAt||void 0,be.lastLoginAt||void 0)}getIdToken(f){var v=this;return(0,U.A)(function*(){const S=yield kr(v,v.stsTokenManager.getToken(v.auth,f));return Nt(S,v.auth,"internal-error"),v.accessToken!==S&&(v.accessToken=S,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),S})()}getIdTokenResult(f){return function Jr(I){return mr.apply(this,arguments)}(this,f)}reload(){return function ut(I){return ce.apply(this,arguments)}(this)}_assign(f){this!==f&&(Nt(this.uid===f.uid,this.auth,"internal-error"),this.displayName=f.displayName,this.photoURL=f.photoURL,this.email=f.email,this.emailVerified=f.emailVerified,this.phoneNumber=f.phoneNumber,this.isAnonymous=f.isAnonymous,this.tenantId=f.tenantId,this.providerData=f.providerData.map(v=>Object.assign({},v)),this.metadata._copy(f.metadata),this.stsTokenManager._assign(f.stsTokenManager))}_clone(f){const v=new _n(Object.assign(Object.assign({},this),{auth:f,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(f){Nt(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=f,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(f){this.reloadListener?this.reloadListener(f):this.reloadUserInfo=f}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(f,v=!1){var S=this;return(0,U.A)(function*(){let J=!1;f.idToken&&f.idToken!==S.stsTokenManager.accessToken&&(S.stsTokenManager.updateFromServerResponse(f),J=!0),v&&(yield it(S)),yield S.auth._persistUserIfCurrent(S),J&&S.auth._notifyListenersIfCurrent(S)})()}delete(){var f=this;return(0,U.A)(function*(){if((0,ue.xZ)(f.auth.app))return Promise.reject(rt(f.auth));const v=yield f.getIdToken();return yield kr(f,function mn(I,f){return en.apply(this,arguments)}(f.auth,{idToken:v})),f.stsTokenManager.clearRefreshToken(),f.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(f=>Object.assign({},f)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(f,v){var S,J,be,Dt,Xt,Dn,$n,vr;const hi=null!==(S=v.displayName)&&void 0!==S?S:void 0,Vo=null!==(J=v.email)&&void 0!==J?J:void 0,to=null!==(be=v.phoneNumber)&&void 0!==be?be:void 0,ua=null!==(Dt=v.photoURL)&&void 0!==Dt?Dt:void 0,Xd=null!==(Xt=v.tenantId)&&void 0!==Xt?Xt:void 0,su=null!==(Dn=v._redirectEventId)&&void 0!==Dn?Dn:void 0,qd=null!==($n=v.createdAt)&&void 0!==$n?$n:void 0,Zu=null!==(vr=v.lastLoginAt)&&void 0!==vr?vr:void 0,{uid:ec,emailVerified:tc,isAnonymous:Df,providerData:au,stsTokenManager:Tf}=v;Nt(ec&&Tf,f,"internal-error");const Qd=Gt.fromJSON(this.name,Tf);Nt("string"==typeof ec,f,"internal-error"),tn(hi,f.name),tn(Vo,f.name),Nt("boolean"==typeof tc,f,"internal-error"),Nt("boolean"==typeof Df,f,"internal-error"),tn(to,f.name),tn(ua,f.name),tn(Xd,f.name),tn(su,f.name),tn(qd,f.name),tn(Zu,f.name);const Yd=new _n({uid:ec,auth:f,email:Vo,emailVerified:tc,displayName:hi,isAnonymous:Df,photoURL:ua,phoneNumber:to,tenantId:Xd,stsTokenManager:Qd,createdAt:qd,lastLoginAt:Zu});return au&&Array.isArray(au)&&(Yd.providerData=au.map(Jd=>Object.assign({},Jd))),su&&(Yd._redirectEventId=su),Yd}static _fromIdTokenResponse(f,v,S=!1){return(0,U.A)(function*(){const J=new Gt;J.updateFromServerResponse(v);const be=new _n({uid:v.localId,auth:f,stsTokenManager:J,isAnonymous:S});return yield it(be),be})()}static _fromGetAccountInfoResponse(f,v,S){return(0,U.A)(function*(){const J=v.users[0];Nt(void 0!==J.localId,"internal-error");const be=void 0!==J.providerUserInfo?He(J.providerUserInfo):[],Dt=!(J.email&&J.passwordHash||null!=be&&be.length),Xt=new Gt;Xt.updateFromIdToken(S);const Dn=new _n({uid:J.localId,auth:f,stsTokenManager:Xt,isAnonymous:Dt}),$n={uid:J.localId,displayName:J.displayName||null,photoURL:J.photoUrl||null,email:J.email||null,emailVerified:J.emailVerified||!1,phoneNumber:J.phoneNumber||null,tenantId:J.tenantId||null,providerData:be,metadata:new pe(J.createdAt,J.lastLoginAt),isAnonymous:!(J.email&&J.passwordHash||null!=be&&be.length)};return Object.assign(Dn,$n),Dn})()}}const qn=new Map;function hn(I){on(I instanceof Function,"Expected a class definition");let f=qn.get(I);return f?(on(f instanceof I,"Instance stored in cache mismatched with class"),f):(f=new I,qn.set(I,f),f)}const tr=(()=>{class I{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,U.A)(function*(){return!0})()}_set(v,S){var J=this;return(0,U.A)(function*(){J.storage[v]=S})()}_get(v){var S=this;return(0,U.A)(function*(){const J=S.storage[v];return void 0===J?null:J})()}_remove(v){var S=this;return(0,U.A)(function*(){delete S.storage[v]})()}_addListener(v,S){}_removeListener(v,S){}}return I.type="NONE",I})();function Ar(I,f,v){return`firebase:${I}:${f}:${v}`}class dr{constructor(f,v,S){this.persistence=f,this.auth=v,this.userKey=S;const{config:J,name:be}=this.auth;this.fullUserKey=Ar(this.userKey,J.apiKey,be),this.fullPersistenceKey=Ar("persistence",J.apiKey,be),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(f){return this.persistence._set(this.fullUserKey,f.toJSON())}getCurrentUser(){var f=this;return(0,U.A)(function*(){const v=yield f.persistence._get(f.fullUserKey);return v?_n._fromJSON(f.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(f){var v=this;return(0,U.A)(function*(){if(v.persistence===f)return;const S=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=f,S?v.setCurrentUser(S):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(f,v,S="authUser"){return(0,U.A)(function*(){if(!v.length)return new dr(hn(tr),f,S);const J=(yield Promise.all(v.map(function(){var $n=(0,U.A)(function*(vr){if(yield vr._isAvailable())return vr});return function(vr){return $n.apply(this,arguments)}}()))).filter($n=>$n);let be=J[0]||hn(tr);const Dt=Ar(S,f.config.apiKey,f.name);let Xt=null;for(const $n of v)try{const vr=yield $n._get(Dt);if(vr){const hi=_n._fromJSON(f,vr);$n!==be&&(Xt=hi),be=$n;break}}catch{}const Dn=J.filter($n=>$n._shouldAllowMigration);return be._shouldAllowMigration&&Dn.length?(be=Dn[0],Xt&&(yield be._set(Dt,Xt.toJSON())),yield Promise.all(v.map(function(){var $n=(0,U.A)(function*(vr){if(vr!==be)try{yield vr._remove(Dt)}catch{}});return function(vr){return $n.apply(this,arguments)}}())),new dr(be,f,S)):new dr(be,f,S)})()}}function $r(I){const f=I.toLowerCase();if(f.includes("opera/")||f.includes("opr/")||f.includes("opios/"))return"Opera";if(gi(f))return"IEMobile";if(f.includes("msie")||f.includes("trident/"))return"IE";if(f.includes("edge/"))return"Edge";if(Zr(f))return"Firefox";if(f.includes("silk/"))return"Silk";if(Ut(f))return"Blackberry";if(ne(f))return"Webos";if(fr(f))return"Safari";if((f.includes("chrome/")||Ri(f))&&!f.includes("edge/"))return"Chrome";if(pr(f))return"Android";{const S=I.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==S?void 0:S.length))return S[1]}return"Other"}function Zr(I=(0,oe.ZQ)()){return/firefox\//i.test(I)}function fr(I=(0,oe.ZQ)()){const f=I.toLowerCase();return f.includes("safari/")&&!f.includes("chrome/")&&!f.includes("crios/")&&!f.includes("android")}function Ri(I=(0,oe.ZQ)()){return/crios\//i.test(I)}function gi(I=(0,oe.ZQ)()){return/iemobile/i.test(I)}function pr(I=(0,oe.ZQ)()){return/android/i.test(I)}function Ut(I=(0,oe.ZQ)()){return/blackberry/i.test(I)}function ne(I=(0,oe.ZQ)()){return/webos/i.test(I)}function ee(I=(0,oe.ZQ)()){return/iphone|ipad|ipod/i.test(I)||/macintosh/i.test(I)&&/mobile/i.test(I)}function te(I=(0,oe.ZQ)()){return ee(I)||pr(I)||ne(I)||Ut(I)||/windows phone/i.test(I)||gi(I)}function Ge(I,f=[]){let v;switch(I){case"Browser":v=$r((0,oe.ZQ)());break;case"Worker":v=`${$r((0,oe.ZQ)())}-${I}`;break;default:v=I}const S=f.length?f.join(","):"FirebaseCore-web";return`${v}/JsCore/${ue.MF}/${S}`}class Ct{constructor(f){this.auth=f,this.queue=[]}pushCallback(f,v){const S=be=>new Promise((Dt,Xt)=>{try{Dt(f(be))}catch(Dn){Xt(Dn)}});S.onAbort=v,this.queue.push(S);const J=this.queue.length-1;return()=>{this.queue[J]=()=>Promise.resolve()}}runMiddleware(f){var v=this;return(0,U.A)(function*(){if(v.auth.currentUser===f)return;const S=[];try{for(const J of v.queue)yield J(f),J.onAbort&&S.push(J.onAbort)}catch(J){S.reverse();for(const be of S)try{be()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==J?void 0:J.message})}})()}}function ln(){return(ln=(0,U.A)(function*(I,f={}){return Kt(I,"GET","/v2/passwordPolicy",dn(I,f))})).apply(this,arguments)}class Un{constructor(f){var v,S,J,be;const Dt=f.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=Dt.minPasswordLength)&&void 0!==v?v:6,Dt.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=Dt.maxPasswordLength),void 0!==Dt.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=Dt.containsLowercaseCharacter),void 0!==Dt.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=Dt.containsUppercaseCharacter),void 0!==Dt.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=Dt.containsNumericCharacter),void 0!==Dt.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=Dt.containsNonAlphanumericCharacter),this.enforcementState=f.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(J=null===(S=f.allowedNonAlphanumericCharacters)||void 0===S?void 0:S.join(""))&&void 0!==J?J:"",this.forceUpgradeOnSignin=null!==(be=f.forceUpgradeOnSignin)&&void 0!==be&&be,this.schemaVersion=f.schemaVersion}validatePassword(f){var v,S,J,be,Dt,Xt;const Dn={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(f,Dn),this.validatePasswordCharacterOptions(f,Dn),Dn.isValid&&(Dn.isValid=null===(v=Dn.meetsMinPasswordLength)||void 0===v||v),Dn.isValid&&(Dn.isValid=null===(S=Dn.meetsMaxPasswordLength)||void 0===S||S),Dn.isValid&&(Dn.isValid=null===(J=Dn.containsLowercaseLetter)||void 0===J||J),Dn.isValid&&(Dn.isValid=null===(be=Dn.containsUppercaseLetter)||void 0===be||be),Dn.isValid&&(Dn.isValid=null===(Dt=Dn.containsNumericCharacter)||void 0===Dt||Dt),Dn.isValid&&(Dn.isValid=null===(Xt=Dn.containsNonAlphanumericCharacter)||void 0===Xt||Xt),Dn}validatePasswordLengthOptions(f,v){const S=this.customStrengthOptions.minPasswordLength,J=this.customStrengthOptions.maxPasswordLength;S&&(v.meetsMinPasswordLength=f.length>=S),J&&(v.meetsMaxPasswordLength=f.length<=J)}validatePasswordCharacterOptions(f,v){let S;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let J=0;J="a"&&S<="z",S>="A"&&S<="Z",S>="0"&&S<="9",this.allowedNonAlphanumericCharacters.includes(S))}updatePasswordCharacterOptionsStatuses(f,v,S,J,be){this.customStrengthOptions.containsLowercaseLetter&&(f.containsLowercaseLetter||(f.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(f.containsUppercaseLetter||(f.containsUppercaseLetter=S)),this.customStrengthOptions.containsNumericCharacter&&(f.containsNumericCharacter||(f.containsNumericCharacter=J)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(f.containsNonAlphanumericCharacter||(f.containsNonAlphanumericCharacter=be))}}class xr{constructor(f,v,S,J){this.app=f,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=S,this.config=J,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Fr(this),this.idTokenSubscription=new Fr(this),this.beforeStateQueue=new Ct(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Et,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=f.name,this.clientVersion=J.sdkClientVersion}_initializeWithPersistence(f,v){var S=this;return v&&(this._popupRedirectResolver=hn(v)),this._initializationPromise=this.queue((0,U.A)(function*(){var J,be;if(!S._deleted&&(S.persistenceManager=yield dr.create(S,f),!S._deleted)){if(null!==(J=S._popupRedirectResolver)&&void 0!==J&&J._shouldInitProactively)try{yield S._popupRedirectResolver._initialize(S)}catch{}yield S.initializeCurrentUser(v),S.lastNotifiedUid=(null===(be=S.currentUser)||void 0===be?void 0:be.uid)||null,!S._deleted&&(S._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var f=this;return(0,U.A)(function*(){if(f._deleted)return;const v=yield f.assertedPersistence.getCurrentUser();if(f.currentUser||v){if(f.currentUser&&v&&f.currentUser.uid===v.uid)return f._currentUser._assign(v),void(yield f.currentUser.getIdToken());yield f._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(f){var v=this;return(0,U.A)(function*(){try{const S=yield Nr(v,{idToken:f}),J=yield _n._fromGetAccountInfoResponse(v,S,f);yield v.directlySetCurrentUser(J)}catch(S){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",S),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(f){var v=this;return(0,U.A)(function*(){var S;if((0,ue.xZ)(v.app)){const Xt=v.app.settings.authIdToken;return Xt?new Promise(Dn=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Xt).then(Dn,Dn))}):v.directlySetCurrentUser(null)}const J=yield v.assertedPersistence.getCurrentUser();let be=J,Dt=!1;if(f&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Xt=null===(S=v.redirectUser)||void 0===S?void 0:S._redirectEventId,Dn=null==be?void 0:be._redirectEventId,$n=yield v.tryRedirectSignIn(f);(!Xt||Xt===Dn)&&null!=$n&&$n.user&&(be=$n.user,Dt=!0)}if(!be)return v.directlySetCurrentUser(null);if(!be._redirectEventId){if(Dt)try{yield v.beforeStateQueue.runMiddleware(be)}catch(Xt){be=J,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Xt))}return be?v.reloadAndSetCurrentUserOrClear(be):v.directlySetCurrentUser(null)}return Nt(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===be._redirectEventId?v.directlySetCurrentUser(be):v.reloadAndSetCurrentUserOrClear(be)})()}tryRedirectSignIn(f){var v=this;return(0,U.A)(function*(){let S=null;try{S=yield v._popupRedirectResolver._completeRedirectFn(v,f,!0)}catch{yield v._setRedirectUser(null)}return S})()}reloadAndSetCurrentUserOrClear(f){var v=this;return(0,U.A)(function*(){try{yield it(f)}catch(S){if("auth/network-request-failed"!==(null==S?void 0:S.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(f)})()}useDeviceLanguage(){this.languageCode=function fe(){if(typeof navigator>"u")return null;const I=navigator;return I.languages&&I.languages[0]||I.language||null}()}_delete(){var f=this;return(0,U.A)(function*(){f._deleted=!0})()}updateCurrentUser(f){var v=this;return(0,U.A)(function*(){if((0,ue.xZ)(v.app))return Promise.reject(rt(v));const S=f?(0,oe.Ku)(f):null;return S&&Nt(S.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(S&&S._clone(v))})()}_updateCurrentUser(f,v=!1){var S=this;return(0,U.A)(function*(){if(!S._deleted)return f&&Nt(S.tenantId===f.tenantId,S,"tenant-id-mismatch"),v||(yield S.beforeStateQueue.runMiddleware(f)),S.queue((0,U.A)(function*(){yield S.directlySetCurrentUser(f),S.notifyAuthListeners()}))})()}signOut(){var f=this;return(0,U.A)(function*(){return(0,ue.xZ)(f.app)?Promise.reject(rt(f)):(yield f.beforeStateQueue.runMiddleware(null),(f.redirectPersistenceManager||f._popupRedirectResolver)&&(yield f._setRedirectUser(null)),f._updateCurrentUser(null,!0))})()}setPersistence(f){var v=this;return(0,ue.xZ)(this.app)?Promise.reject(rt(this)):this.queue((0,U.A)(function*(){yield v.assertedPersistence.setPersistence(hn(f))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(f){var v=this;return(0,U.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const S=v._getPasswordPolicyInternal();return S.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):S.validatePassword(f)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var f=this;return(0,U.A)(function*(){const v=yield function Jt(I){return ln.apply(this,arguments)}(f),S=new Un(v);null===f.tenantId?f._projectPasswordPolicy=S:f._tenantPasswordPolicies[f.tenantId]=S})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(f){this._errorFactory=new oe.FA("auth","Firebase",f())}onAuthStateChanged(f,v,S){return this.registerStateListener(this.authStateSubscription,f,v,S)}beforeAuthStateChanged(f,v){return this.beforeStateQueue.pushCallback(f,v)}onIdTokenChanged(f,v,S){return this.registerStateListener(this.idTokenSubscription,f,v,S)}authStateReady(){return new Promise((f,v)=>{if(this.currentUser)f();else{const S=this.onAuthStateChanged(()=>{S(),f()},v)}})}revokeAccessToken(f){var v=this;return(0,U.A)(function*(){if(v.currentUser){const S=yield v.currentUser.getIdToken(),J={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:f,idToken:S};null!=v.tenantId&&(J.tenantId=v.tenantId),yield function ct(I,f){return lt.apply(this,arguments)}(v,J)}})()}toJSON(){var f;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(f=this._currentUser)||void 0===f?void 0:f.toJSON()}}_setRedirectUser(f,v){var S=this;return(0,U.A)(function*(){const J=yield S.getOrInitRedirectPersistenceManager(v);return null===f?J.removeCurrentUser():J.setCurrentUser(f)})()}getOrInitRedirectPersistenceManager(f){var v=this;return(0,U.A)(function*(){if(!v.redirectPersistenceManager){const S=f&&hn(f)||v._popupRedirectResolver;Nt(S,v,"argument-error"),v.redirectPersistenceManager=yield dr.create(v,[hn(S._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(f){var v=this;return(0,U.A)(function*(){var S,J;return v._isInitialized&&(yield v.queue((0,U.A)(function*(){}))),(null===(S=v._currentUser)||void 0===S?void 0:S._redirectEventId)===f?v._currentUser:(null===(J=v.redirectUser)||void 0===J?void 0:J._redirectEventId)===f?v.redirectUser:null})()}_persistUserIfCurrent(f){var v=this;return(0,U.A)(function*(){if(f===v.currentUser)return v.queue((0,U.A)(function*(){return v.directlySetCurrentUser(f)}))})()}_notifyListenersIfCurrent(f){f===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var f,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const S=null!==(v=null===(f=this.currentUser)||void 0===f?void 0:f.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==S&&(this.lastNotifiedUid=S,this.authStateSubscription.next(this.currentUser))}registerStateListener(f,v,S,J){if(this._deleted)return()=>{};const be="function"==typeof v?v:v.next.bind(v);let Dt=!1;const Xt=this._isInitialized?Promise.resolve():this._initializationPromise;if(Nt(Xt,this,"internal-error"),Xt.then(()=>{Dt||be(this.currentUser)}),"function"==typeof v){const Dn=f.addObserver(v,S,J);return()=>{Dt=!0,Dn()}}{const Dn=f.addObserver(v);return()=>{Dt=!0,Dn()}}}directlySetCurrentUser(f){var v=this;return(0,U.A)(function*(){v.currentUser&&v.currentUser!==f&&v._currentUser._stopProactiveRefresh(),f&&v.isProactiveRefreshEnabled&&f._startProactiveRefresh(),v.currentUser=f,f?yield v.assertedPersistence.setCurrentUser(f):yield v.assertedPersistence.removeCurrentUser()})()}queue(f){return this.operations=this.operations.then(f,f),this.operations}get assertedPersistence(){return Nt(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(f){!f||this.frameworks.includes(f)||(this.frameworks.push(f),this.frameworks.sort(),this.clientVersion=Ge(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var f=this;return(0,U.A)(function*(){var v;const S={"X-Client-Version":f.clientVersion};f.app.options.appId&&(S["X-Firebase-gmpid"]=f.app.options.appId);const J=yield null===(v=f.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();J&&(S["X-Firebase-Client"]=J);const be=yield f._getAppCheckToken();return be&&(S["X-Firebase-AppCheck"]=be),S})()}_getAppCheckToken(){var f=this;return(0,U.A)(function*(){var v;const S=yield null===(v=f.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=S&&S.error&&function Ye(I,...f){Me.logLevel<=Xe.$b.WARN&&Me.warn(`Auth (${ue.MF}): ${I}`,...f)}(`Error while retrieving App Check token: ${S.error}`),null==S?void 0:S.token})()}}function On(I){return(0,oe.Ku)(I)}class Fr{constructor(f){this.auth=f,this.observer=null,this.addObserver=(0,oe.tD)(v=>this.observer=v)}get next(){return Nt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Or={loadJS:()=>(0,U.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Tr(I){return Or.loadJS(I)}function li(I){return`__${I}${Math.floor(1e6*Math.random())}`}class mi{constructor(f){this.type="recaptcha-enterprise",this.auth=On(f)}verify(f="verify",v=!1){var S=this;return(0,U.A)(function*(){function be(){return be=(0,U.A)(function*(Xt){if(!v){if(null==Xt.tenantId&&null!=Xt._agentRecaptchaConfig)return Xt._agentRecaptchaConfig.siteKey;if(null!=Xt.tenantId&&void 0!==Xt._tenantRecaptchaConfigs[Xt.tenantId])return Xt._tenantRecaptchaConfigs[Xt.tenantId].siteKey}return new Promise(function(){var Dn=(0,U.A)(function*($n,vr){Mn(Xt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(hi=>{if(void 0!==hi.recaptchaKey){const Vo=new pn(hi);return null==Xt.tenantId?Xt._agentRecaptchaConfig=Vo:Xt._tenantRecaptchaConfigs[Xt.tenantId]=Vo,$n(Vo.siteKey)}vr(new Error("recaptcha Enterprise site key undefined"))}).catch(hi=>{vr(hi)})});return function($n,vr){return Dn.apply(this,arguments)}}())}),be.apply(this,arguments)}function Dt(Xt,Dn,$n){const vr=window.grecaptcha;zt(vr)?vr.enterprise.ready(()=>{vr.enterprise.execute(Xt,{action:f}).then(hi=>{Dn(hi)}).catch(()=>{Dn("NO_RECAPTCHA")})}):$n(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Xt,Dn)=>{(function J(Xt){return be.apply(this,arguments)})(S.auth).then($n=>{if(!v&&zt(window.grecaptcha))Dt($n,Xt,Dn);else{if(typeof window>"u")return void Dn(new Error("RecaptchaVerifier is only supported in browser"));let vr=function Cr(){return Or.recaptchaEnterpriseScript}();0!==vr.length&&(vr+=$n),Tr(vr).then(()=>{Dt($n,Xt,Dn)}).catch(hi=>{Dn(hi)})}}).catch($n=>{Dn($n)})})})()}}function Wn(I,f,v){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,U.A)(function*(I,f,v,S=!1){const J=new mi(I);let be;try{be=yield J.verify(v)}catch{be=yield J.verify(v,!0)}const Dt=Object.assign({},f);return Object.assign(Dt,S?{captchaResp:be}:{captchaResponse:be}),Object.assign(Dt,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(Dt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),Dt})).apply(this,arguments)}function ao(I,f,v,S){return ui.apply(this,arguments)}function ui(){return ui=(0,U.A)(function*(I,f,v,S){var J;if(null!==(J=I._getRecaptchaConfig())&&void 0!==J&&J.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const be=yield Wn(I,f,v,"getOobCode"===v);return S(I,be)}return S(I,f).catch(function(){var be=(0,U.A)(function*(Dt){if("auth/missing-recaptcha-token"===Dt.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Xt=yield Wn(I,f,v,"getOobCode"===v);return S(I,Xt)}return Promise.reject(Dt)});return function(Dt){return be.apply(this,arguments)}}())}),ui.apply(this,arguments)}function he(I){const f=I.indexOf(":");return f<0?"":I.substr(0,f+1)}function W(I){if(!I)return null;const f=Number(I);return isNaN(f)?null:f}class Ve{constructor(f,v){this.providerId=f,this.signInMethod=v}toJSON(){return tt("not implemented")}_getIdTokenResponse(f){return tt("not implemented")}_linkToIdToken(f,v){return tt("not implemented")}_getReauthenticationResolver(f){return tt("not implemented")}}function w(I,f){return j.apply(this,arguments)}function j(){return(j=(0,U.A)(function*(I,f){return Kt(I,"POST","/v1/accounts:signUp",f)})).apply(this,arguments)}function Ie(I,f){return ot.apply(this,arguments)}function ot(){return(ot=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithPassword",dn(I,f))})).apply(this,arguments)}function En(){return(En=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithEmailLink",dn(I,f))})).apply(this,arguments)}function jn(){return(jn=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithEmailLink",dn(I,f))})).apply(this,arguments)}class lr extends Ve{constructor(f,v,S,J=null){super("password",S),this._email=f,this._password=v,this._tenantId=J}static _fromEmailAndPassword(f,v){return new lr(f,v,"password")}static _fromEmailAndCode(f,v,S=null){return new lr(f,v,"emailLink",S)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(f){const v="string"==typeof f?JSON.parse(f):f;if(null!=v&&v.email&&null!=v&&v.password){if("password"===v.signInMethod)return this._fromEmailAndPassword(v.email,v.password);if("emailLink"===v.signInMethod)return this._fromEmailAndCode(v.email,v.password,v.tenantId)}return null}_getIdTokenResponse(f){var v=this;return(0,U.A)(function*(){switch(v.signInMethod){case"password":return ao(f,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Ie);case"emailLink":return function cn(I,f){return En.apply(this,arguments)}(f,{email:v._email,oobCode:v._password});default:Ue(f,"internal-error")}})()}_linkToIdToken(f,v){var S=this;return(0,U.A)(function*(){switch(S.signInMethod){case"password":return ao(f,{idToken:v,returnSecureToken:!0,email:S._email,password:S._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",w);case"emailLink":return function Nn(I,f){return jn.apply(this,arguments)}(f,{idToken:v,email:S._email,oobCode:S._password});default:Ue(f,"internal-error")}})()}_getReauthenticationResolver(f){return this._getIdTokenResponse(f)}}function Vn(I,f){return qr.apply(this,arguments)}function qr(){return(qr=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithIdp",dn(I,f))})).apply(this,arguments)}class no{constructor(f){var v,S,J,be,Dt,Xt;const Dn=(0,oe.I9)((0,oe.hp)(f)),$n=null!==(v=Dn.apiKey)&&void 0!==v?v:null,vr=null!==(S=Dn.oobCode)&&void 0!==S?S:null,hi=function Io(I){switch(I){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(J=Dn.mode)&&void 0!==J?J:null);Nt($n&&vr&&hi,"argument-error"),this.apiKey=$n,this.operation=hi,this.code=vr,this.continueUrl=null!==(be=Dn.continueUrl)&&void 0!==be?be:null,this.languageCode=null!==(Dt=Dn.languageCode)&&void 0!==Dt?Dt:null,this.tenantId=null!==(Xt=Dn.tenantId)&&void 0!==Xt?Xt:null}static parseLink(f){const v=function Ss(I){const f=(0,oe.I9)((0,oe.hp)(I)).link,v=f?(0,oe.I9)((0,oe.hp)(f)).deep_link_id:null,S=(0,oe.I9)((0,oe.hp)(I)).deep_link_id;return(S?(0,oe.I9)((0,oe.hp)(S)).link:null)||S||v||f||I}(f);try{return new no(v)}catch{return null}}}let Kr=(()=>{class I{constructor(){this.providerId=I.PROVIDER_ID}static credential(v,S){return lr._fromEmailAndPassword(v,S)}static credentialWithLink(v,S){const J=no.parseLink(S);return Nt(J,"argument-error"),lr._fromEmailAndCode(v,J.code,J.tenantId)}}return I.PROVIDER_ID="password",I.EMAIL_PASSWORD_SIGN_IN_METHOD="password",I.EMAIL_LINK_SIGN_IN_METHOD="emailLink",I})();class fo{constructor(f){this.providerId=f,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(f){this.defaultLanguageCode=f}setCustomParameters(f){return this.customParameters=f,this}getCustomParameters(){return this.customParameters}}class ka extends fo{constructor(){super(...arguments),this.scopes=[]}addScope(f){return this.scopes.includes(f)||this.scopes.push(f),this}getScopes(){return[...this.scopes]}}function Ao(I,f){return Fo.apply(this,arguments)}function Fo(){return(Fo=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signUp",dn(I,f))})).apply(this,arguments)}class io{constructor(f){this.user=f.user,this.providerId=f.providerId,this._tokenResponse=f._tokenResponse,this.operationType=f.operationType}static _fromIdTokenResponse(f,v,S,J=!1){return(0,U.A)(function*(){const be=yield _n._fromIdTokenResponse(f,S,J),Dt=ha(S);return new io({user:be,providerId:Dt,_tokenResponse:S,operationType:v})})()}static _forOperation(f,v,S){return(0,U.A)(function*(){yield f._updateTokensIfNecessary(S,!0);const J=ha(S);return new io({user:f,providerId:J,_tokenResponse:S,operationType:v})})()}}function ha(I){return I.providerId?I.providerId:"phoneNumber"in I?"phone":null}class N extends oe.g{constructor(f,v,S,J){var be;super(v.code,v.message),this.operationType=S,this.user=J,Object.setPrototypeOf(this,N.prototype),this.customData={appName:f.name,tenantId:null!==(be=f.tenantId)&&void 0!==be?be:void 0,_serverResponse:v.customData._serverResponse,operationType:S}}static _fromErrorAndOperation(f,v,S,J){return new N(f,v,S,J)}}function Ce(I,f,v,S){return("reauthenticate"===f?v._getReauthenticationResolver(I):v._getIdTokenResponse(I)).catch(be=>{throw"auth/multi-factor-auth-required"===be.code?N._fromErrorAndOperation(I,be,f,S):be})}function wr(){return(wr=(0,U.A)(function*(I,f,v=!1){const S=yield kr(I,f._linkToIdToken(I.auth,yield I.getIdToken()),v);return io._forOperation(I,"link",S)})).apply(this,arguments)}function Yo(){return(Yo=(0,U.A)(function*(I,f,v=!1){const{auth:S}=I;if((0,ue.xZ)(S.app))return Promise.reject(rt(S));const J="reauthenticate";try{const be=yield kr(I,Ce(S,J,f,I),v);Nt(be.idToken,S,"internal-error");const Dt=Pr(be.idToken);Nt(Dt,S,"internal-error");const{sub:Xt}=Dt;return Nt(I.uid===Xt,S,"user-mismatch"),io._forOperation(I,J,be)}catch(be){throw"auth/user-not-found"===(null==be?void 0:be.code)&&Ue(S,"user-mismatch"),be}})).apply(this,arguments)}function Fa(I,f){return _s.apply(this,arguments)}function _s(){return(_s=(0,U.A)(function*(I,f,v=!1){if((0,ue.xZ)(I.app))return Promise.reject(rt(I));const S="signIn",J=yield Ce(I,S,f),be=yield io._fromIdTokenResponse(I,S,J);return v||(yield I._updateCurrentUser(be.user)),be})).apply(this,arguments)}function fa(){return(fa=(0,U.A)(function*(I,f){return Fa(On(I),f)})).apply(this,arguments)}function cl(I){return Hr.apply(this,arguments)}function Hr(){return(Hr=(0,U.A)(function*(I){const f=On(I);f._getPasswordPolicyInternal()&&(yield f._updatePasswordPolicy())})).apply(this,arguments)}function Os(I,f,v){return Zo.apply(this,arguments)}function Zo(){return(Zo=(0,U.A)(function*(I,f,v){if((0,ue.xZ)(I.app))return Promise.reject(rt(I));const S=On(I),Dt=yield ao(S,{returnSecureToken:!0,email:f,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Ao).catch(Dn=>{throw"auth/password-does-not-meet-requirements"===Dn.code&&cl(I),Dn}),Xt=yield io._fromIdTokenResponse(S,"signIn",Dt);return yield S._updateCurrentUser(Xt.user),Xt})).apply(this,arguments)}function As(I,f,v){return(0,ue.xZ)(I.app)?Promise.reject(rt(I)):function Gs(I,f){return fa.apply(this,arguments)}((0,oe.Ku)(I),Kr.credential(f,v)).catch(function(){var S=(0,U.A)(function*(J){throw"auth/password-does-not-meet-requirements"===J.code&&cl(I),J});return function(J){return S.apply(this,arguments)}}())}function Hi(I,f,v,S){return(0,oe.Ku)(I).onIdTokenChanged(f,v,S)}const qs="__sak";class _c{constructor(f,v){this.storageRetriever=f,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(qs,"1"),this.storage.removeItem(qs),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(f,v){return this.storage.setItem(f,JSON.stringify(v)),Promise.resolve()}_get(f){const v=this.storage.getItem(f);return Promise.resolve(v?JSON.parse(v):null)}_remove(f){return this.storage.removeItem(f),Promise.resolve()}get storage(){return this.storageRetriever()}}const Ea=(()=>{class I extends _c{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,S)=>this.onStorageEvent(v,S),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Mi(){const I=(0,oe.ZQ)();return fr(I)||ee(I)}()&&function Te(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=te(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const S of Object.keys(this.listeners)){const J=this.storage.getItem(S),be=this.localCache[S];J!==be&&v(S,be,J)}}onStorageEvent(v,S=!1){if(!v.key)return void this.forAllChangedKeys((Xt,Dn,$n)=>{this.notifyListeners(Xt,$n)});const J=v.key;if(S?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Xt=this.storage.getItem(J);if(v.newValue!==Xt)null!==v.newValue?this.storage.setItem(J,v.newValue):this.storage.removeItem(J);else if(this.localCache[J]===v.newValue&&!S)return}const be=()=>{const Xt=this.storage.getItem(J);!S&&this.localCache[J]===Xt||this.notifyListeners(J,Xt)},Dt=this.storage.getItem(J);!function x(){return(0,oe.lT)()&&10===document.documentMode}()||Dt===v.newValue||v.newValue===v.oldValue?be():setTimeout(be,10)}notifyListeners(v,S){this.localCache[v]=S;const J=this.listeners[v];if(J)for(const be of Array.from(J))be(S&&JSON.parse(S))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,S,J)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:S,newValue:J}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(v,S){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[v]||(this.listeners[v]=new Set,this.localCache[v]=this.storage.getItem(v)),this.listeners[v].add(S)}_removeListener(v,S){this.listeners[v]&&(this.listeners[v].delete(S),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,S){var J=()=>super._set,be=this;return(0,U.A)(function*(){yield J().call(be,v,S),be.localCache[v]=JSON.stringify(S)})()}_get(v){var S=()=>super._get,J=this;return(0,U.A)(function*(){const be=yield S().call(J,v);return J.localCache[v]=JSON.stringify(be),be})()}_remove(v){var S=()=>super._remove,J=this;return(0,U.A)(function*(){yield S().call(J,v),delete J.localCache[v]})()}}return I.type="LOCAL",I})(),Wo=(()=>{class I extends _c{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,S){}_removeListener(v,S){}}return I.type="SESSION",I})();let Ia=(()=>{class I{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const S=this.receivers.find(be=>be.isListeningto(v));if(S)return S;const J=new I(v);return this.receivers.push(J),J}isListeningto(v){return this.eventTarget===v}handleEvent(v){var S=this;return(0,U.A)(function*(){const J=v,{eventId:be,eventType:Dt,data:Xt}=J.data,Dn=S.handlersMap[Dt];if(null==Dn||!Dn.size)return;J.ports[0].postMessage({status:"ack",eventId:be,eventType:Dt});const $n=Array.from(Dn).map(function(){var hi=(0,U.A)(function*(Vo){return Vo(J.origin,Xt)});return function(Vo){return hi.apply(this,arguments)}}()),vr=yield function pl(I){return Promise.all(I.map(function(){var f=(0,U.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(S){return{fulfilled:!1,reason:S}}});return function(v){return f.apply(this,arguments)}}()))}($n);J.ports[0].postMessage({status:"done",eventId:be,eventType:Dt,response:vr})})()}_subscribe(v,S){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(S)}_unsubscribe(v,S){this.handlersMap[v]&&S&&this.handlersMap[v].delete(S),(!S||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return I.receivers=[],I})();function Xi(I="",f=10){let v="";for(let S=0;S{const vr=Xi("",20);be.port1.start();const hi=setTimeout(()=>{$n(new Error("unsupported_event"))},S);Xt={messageChannel:be,onMessage(Vo){const to=Vo;if(to.data.eventId===vr)switch(to.data.status){case"ack":clearTimeout(hi),Dt=setTimeout(()=>{$n(new Error("timeout"))},3e3);break;case"done":clearTimeout(Dt),Dn(to.data.response);break;default:clearTimeout(hi),clearTimeout(Dt),$n(new Error("invalid_response"))}}},J.handlers.add(Xt),be.port1.addEventListener("message",Xt.onMessage),J.target.postMessage({eventType:f,eventId:vr,data:v},[be.port2])}).finally(()=>{Xt&&J.removeMessageHandler(Xt)})})()}}function di(){return window}function Wl(){return typeof di().WorkerGlobalScope<"u"&&"function"==typeof di().importScripts}function Ys(){return(Ys=(0,U.A)(function*(){if(null==navigator||!navigator.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const gl="firebaseLocalStorageDb",Aa="firebaseLocalStorage",Mu="fbase_key";class Ca{constructor(f){this.request=f}toPromise(){return new Promise((f,v)=>{this.request.addEventListener("success",()=>{f(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function ja(I,f){return I.transaction([Aa],f?"readwrite":"readonly").objectStore(Aa)}function Td(){const I=indexedDB.open(gl,1);return new Promise((f,v)=>{I.addEventListener("error",()=>{v(I.error)}),I.addEventListener("upgradeneeded",()=>{const S=I.result;try{S.createObjectStore(Aa,{keyPath:Mu})}catch(J){v(J)}}),I.addEventListener("success",(0,U.A)(function*(){const S=I.result;S.objectStoreNames.contains(Aa)?f(S):(S.close(),yield function tg(){const I=indexedDB.deleteDatabase(gl);return new Ca(I).toPromise()}(),f(yield Td()))}))})}function Da(I,f,v){return za.apply(this,arguments)}function za(){return(za=(0,U.A)(function*(I,f,v){const S=ja(I,!0).put({[Mu]:f,value:v});return new Ca(S).toPromise()})).apply(this,arguments)}function bd(){return(bd=(0,U.A)(function*(I,f){const v=ja(I,!1).get(f),S=yield new Ca(v).toPromise();return void 0===S?null:S.value})).apply(this,arguments)}function E(I,f){const v=ja(I,!0).delete(f);return new Ca(v).toPromise()}const L=(()=>{class I{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var v=this;return(0,U.A)(function*(){return v.db||(v.db=yield Td()),v.db})()}_withRetries(v){var S=this;return(0,U.A)(function*(){let J=0;for(;;)try{const be=yield S._openDb();return yield v(be)}catch(be){if(J++>3)throw be;S.db&&(S.db.close(),S.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,U.A)(function*(){return Wl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,U.A)(function*(){v.receiver=Ia._getInstance(function Kl(){return Wl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var S=(0,U.A)(function*(J,be){return{keyProcessed:(yield v._poll()).includes(be.key)}});return function(J,be){return S.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var S=(0,U.A)(function*(J,be){return["keyChanged"]});return function(J,be){return S.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,U.A)(function*(){var S,J;if(v.activeServiceWorker=yield function rs(){return Ys.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Ru(v.activeServiceWorker);const be=yield v.sender._send("ping",{},800);be&&null!==(S=be[0])&&void 0!==S&&S.fulfilled&&null!==(J=be[0])&&void 0!==J&&J.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var S=this;return(0,U.A)(function*(){if(S.sender&&S.activeServiceWorker&&function ds(){var I;return(null===(I=null==navigator?void 0:navigator.serviceWorker)||void 0===I?void 0:I.controller)||null}()===S.activeServiceWorker)try{yield S.sender._send("keyChanged",{key:v},S.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,U.A)(function*(){try{if(!indexedDB)return!1;const v=yield Td();return yield Da(v,qs,"1"),yield E(v,qs),!0}catch{}return!1})()}_withPendingWrite(v){var S=this;return(0,U.A)(function*(){S.pendingWrites++;try{yield v()}finally{S.pendingWrites--}})()}_set(v,S){var J=this;return(0,U.A)(function*(){return J._withPendingWrite((0,U.A)(function*(){return yield J._withRetries(be=>Da(be,v,S)),J.localCache[v]=S,J.notifyServiceWorker(v)}))})()}_get(v){var S=this;return(0,U.A)(function*(){const J=yield S._withRetries(be=>function Kh(I,f){return bd.apply(this,arguments)}(be,v));return S.localCache[v]=J,J})()}_remove(v){var S=this;return(0,U.A)(function*(){return S._withPendingWrite((0,U.A)(function*(){return yield S._withRetries(J=>E(J,v)),delete S.localCache[v],S.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,U.A)(function*(){const S=yield v._withRetries(Dt=>{const Xt=ja(Dt,!1).getAll();return new Ca(Xt).toPromise()});if(!S)return[];if(0!==v.pendingWrites)return[];const J=[],be=new Set;if(0!==S.length)for(const{fbase_key:Dt,value:Xt}of S)be.add(Dt),JSON.stringify(v.localCache[Dt])!==JSON.stringify(Xt)&&(v.notifyListeners(Dt,Xt),J.push(Dt));for(const Dt of Object.keys(v.localCache))v.localCache[Dt]&&!be.has(Dt)&&(v.notifyListeners(Dt,null),J.push(Dt));return J})()}notifyListeners(v,S){this.localCache[v]=S;const J=this.listeners[v];if(J)for(const be of Array.from(J))be(S)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,U.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,S){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(S)}_removeListener(v,S){this.listeners[v]&&(this.listeners[v].delete(S),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return I.type="LOCAL",I})();li("rcb"),new se(3e4,6e4);class Ro extends Ve{constructor(f){super("custom","custom"),this.params=f}_getIdTokenResponse(f){return Vn(f,this._buildIdpRequest())}_linkToIdToken(f,v){return Vn(f,this._buildIdpRequest(v))}_getReauthenticationResolver(f){return Vn(f,this._buildIdpRequest())}_buildIdpRequest(f){const v={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return f&&(v.idToken=f),v}}function wd(I){return Fa(I.auth,new Ro(I),I.bypassAuthState)}function Ic(I){const{auth:f,user:v}=I;return Nt(v,f,"internal-error"),function So(I,f){return Yo.apply(this,arguments)}(v,new Ro(I),I.bypassAuthState)}function Ac(I){return Ts.apply(this,arguments)}function Ts(){return(Ts=(0,U.A)(function*(I){const{auth:f,user:v}=I;return Nt(v,f,"internal-error"),function Xn(I,f){return wr.apply(this,arguments)}(v,new Ro(I),I.bypassAuthState)})).apply(this,arguments)}class Cc{constructor(f,v,S,J,be=!1){this.auth=f,this.resolver=S,this.user=J,this.bypassAuthState=be,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var f=this;return new Promise(function(){var v=(0,U.A)(function*(S,J){f.pendingPromise={resolve:S,reject:J};try{f.eventManager=yield f.resolver._initialize(f.auth),yield f.onExecution(),f.eventManager.registerConsumer(f)}catch(be){f.reject(be)}});return function(S,J){return v.apply(this,arguments)}}())}onAuthEvent(f){var v=this;return(0,U.A)(function*(){const{urlResponse:S,sessionId:J,postBody:be,tenantId:Dt,error:Xt,type:Dn}=f;if(Xt)return void v.reject(Xt);const $n={auth:v.auth,requestUri:S,sessionId:J,tenantId:Dt||void 0,postBody:be||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(Dn)($n))}catch(vr){v.reject(vr)}})()}onError(f){this.reject(f)}getIdpTask(f){switch(f){case"signInViaPopup":case"signInViaRedirect":return wd;case"linkViaPopup":case"linkViaRedirect":return Ac;case"reauthViaPopup":case"reauthViaRedirect":return Ic;default:Ue(this.auth,"internal-error")}}resolve(f){on(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(f),this.unregisterAndCleanUp()}reject(f){on(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(f),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new se(2e3,1e4);const gr="pendingRedirect",vl=new Map;class Rd extends Cc{constructor(f,v,S=!1){super(f,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,S),this.eventId=null}execute(){var f=()=>super.execute,v=this;return(0,U.A)(function*(){let S=vl.get(v.auth._key());if(!S){try{const be=(yield function Dc(I,f){return Tc.apply(this,arguments)}(v.resolver,v.auth))?yield f().call(v):null;S=()=>Promise.resolve(be)}catch(J){S=()=>Promise.reject(J)}vl.set(v.auth._key(),S)}return v.bypassAuthState||vl.set(v.auth._key(),()=>Promise.resolve(null)),S()})()}onAuthEvent(f){var v=()=>super.onAuthEvent,S=this;return(0,U.A)(function*(){if("signInViaRedirect"===f.type)return v().call(S,f);if("unknown"!==f.type){if(f.eventId){const J=yield S.auth._redirectUserForId(f.eventId);if(J)return S.user=J,v().call(S,f);S.resolve(null)}}else S.resolve(null)})()}onExecution(){return(0,U.A)(function*(){})()}cleanUp(){}}function Tc(){return(Tc=(0,U.A)(function*(I,f){const v=function yl(I){return Ar(gr,I.config.apiKey,I.name)}(f),S=function qh(I){return hn(I._redirectPersistence)}(I);if(!(yield S._isAvailable()))return!1;const J="true"===(yield S._get(v));return yield S._remove(v),J})).apply(this,arguments)}function _l(I,f){vl.set(I._key(),f)}function Nu(I,f){return Pd.apply(this,arguments)}function Pd(){return(Pd=(0,U.A)(function*(I,f,v=!1){if((0,ue.xZ)(I.app))return Promise.reject(rt(I));const S=On(I),J=function fs(I,f){return f?hn(f):(Nt(I._popupRedirectResolver,I,"argument-error"),I._popupRedirectResolver)}(S,f),Dt=yield new Rd(S,J,v).execute();return Dt&&!v&&(delete Dt.user._redirectEventId,yield S._persistUserIfCurrent(Dt.user),yield S._setRedirectUser(null,f)),Dt})).apply(this,arguments)}class ia{constructor(f){this.auth=f,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(f){this.consumers.add(f),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,f)&&(this.sendToConsumer(this.queuedRedirectEvent,f),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(f){this.consumers.delete(f)}onEvent(f){if(this.hasEventBeenHandled(f))return!1;let v=!1;return this.consumers.forEach(S=>{this.isEventForConsumer(f,S)&&(v=!0,this.sendToConsumer(f,S),this.saveEventToCache(f))}),this.hasHandledPotentialRedirect||!function oa(I){switch(I.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return bs(I);default:return!1}}(f)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=f,v=!0)),v}sendToConsumer(f,v){var S;if(f.error&&!bs(f)){const J=(null===(S=f.error.code)||void 0===S?void 0:S.split("auth/")[1])||"internal-error";v.onError(Fe(this.auth,J))}else v.onAuthEvent(f)}isEventForConsumer(f,v){const S=null===v.eventId||!!f.eventId&&f.eventId===v.eventId;return v.filter.includes(f.type)&&S}hasEventBeenHandled(f){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(wc(f))}saveEventToCache(f){this.cachedEventUids.add(wc(f)),this.lastProcessedEventTime=Date.now()}}function wc(I){return[I.type,I.eventId,I.sessionId,I.tenantId].filter(f=>f).join("-")}function bs({type:I,error:f}){return"unknown"===I&&"auth/no-auth-event"===(null==f?void 0:f.code)}function Sc(){return(Sc=(0,U.A)(function*(I,f={}){return Kt(I,"GET","/v1/projects",f)})).apply(this,arguments)}const xd=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,To=/^https?/;function ku(){return ku=(0,U.A)(function*(I){if(I.config.emulator)return;const{authorizedDomains:f}=yield function og(I){return Sc.apply(this,arguments)}(I);for(const v of f)try{if(Nd(v))return}catch{}Ue(I,"unauthorized-domain")}),ku.apply(this,arguments)}function Nd(I){const f=dt(),{protocol:v,hostname:S}=new URL(f);if(I.startsWith("chrome-extension://")){const Dt=new URL(I);return""===Dt.hostname&&""===S?"chrome-extension:"===v&&I.replace("chrome-extension://","")===f.replace("chrome-extension://",""):"chrome-extension:"===v&&Dt.hostname===S}if(!To.test(v))return!1;if(xd.test(I))return S===I;const J=I.replace(/\./g,"\\.");return new RegExp("^(.+\\."+J+"|"+J+")$","i").test(S)}const Rc=new se(3e4,6e4);function Mc(){const I=di().___jsl;if(null!=I&&I.H)for(const f of Object.keys(I.H))if(I.H[f].r=I.H[f].r||[],I.H[f].L=I.H[f].L||[],I.H[f].r=[...I.H[f].L],I.CP)for(let v=0;v{var S,J,be;function Dt(){Mc(),gapi.load("gapi.iframes",{callback:()=>{f(gapi.iframes.getContext())},ontimeout:()=>{Mc(),v(Fe(I,"network-request-failed"))},timeout:Rc.get()})}if(null!==(J=null===(S=di().gapi)||void 0===S?void 0:S.iframes)&&void 0!==J&&J.Iframe)f(gapi.iframes.getContext());else{if(null===(be=di().gapi)||void 0===be||!be.load){const Xt=li("iframefcb");return di()[Xt]=()=>{gapi.load?Dt():v(Fe(I,"network-request-failed"))},Tr(`${function ai(){return Or.gapiScript}()}?onload=${Xt}`).catch(Dn=>v(Dn))}Dt()}}).catch(f=>{throw Sa=null,f})}(I),Sa}(I),v=di().gapi;return Nt(v,I,"internal-error"),f.open({where:document.body,url:mo(I),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Lu,dontclear:!0},S=>new Promise(function(){var J=(0,U.A)(function*(be,Dt){yield S.restyle({setHideOnLeave:!1});const Xt=Fe(I,"network-request-failed"),Dn=di().setTimeout(()=>{Dt(Xt)},Zh.get());function $n(){di().clearTimeout(Dn),be(S)}S.ping($n).then($n,()=>{Dt(Xt)})});return function(be,Dt){return J.apply(this,arguments)}}()))}),Fi.apply(this,arguments)}const ef={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Bu{constructor(f){this.window=f,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const ag="__/auth/handler",$u="emulator/auth/handler",xc=encodeURIComponent("fac");function sa(I,f,v,S,J,be){return aa.apply(this,arguments)}function aa(){return(aa=(0,U.A)(function*(I,f,v,S,J,be){Nt(I.config.authDomain,I,"auth-domain-config-required"),Nt(I.config.apiKey,I,"invalid-api-key");const Dt={apiKey:I.config.apiKey,appName:I.name,authType:v,redirectUrl:S,v:ue.MF,eventId:J};if(f instanceof fo){f.setDefaultLanguage(I.languageCode),Dt.providerId=f.providerId||"",(0,oe.Im)(f.getCustomParameters())||(Dt.customParameters=JSON.stringify(f.getCustomParameters()));for(const[vr,hi]of Object.entries(be||{}))Dt[vr]=hi}if(f instanceof ka){const vr=f.getScopes().filter(hi=>""!==hi);vr.length>0&&(Dt.scopes=vr.join(","))}I.tenantId&&(Dt.tid=I.tenantId);const Xt=Dt;for(const vr of Object.keys(Xt))void 0===Xt[vr]&&delete Xt[vr];const Dn=yield I._getAppCheckToken(),$n=Dn?`#${xc}=${encodeURIComponent(Dn)}`:"";return`${function Oc({config:I}){return I.emulator?ve(I,$u):`https://${I.authDomain}/${ag}`}(I)}?${(0,oe.Am)(Xt).slice(1)}${$n}`})).apply(this,arguments)}const El="webStorageSupport",Il=class rf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Wo,this._completeRedirectFn=Nu,this._overrideRedirectResult=_l}_openPopup(f,v,S,J){var be=this;return(0,U.A)(function*(){var Dt;on(null===(Dt=be.eventManagers[f._key()])||void 0===Dt?void 0:Dt.manager,"_initialize() not called before _openPopup()");const Xt=yield sa(f,v,S,dt(),J);return function Uu(I,f,v,S=500,J=600){const be=Math.max((window.screen.availHeight-J)/2,0).toString(),Dt=Math.max((window.screen.availWidth-S)/2,0).toString();let Xt="";const Dn=Object.assign(Object.assign({},ef),{width:S.toString(),height:J.toString(),top:be,left:Dt}),$n=(0,oe.ZQ)().toLowerCase();v&&(Xt=Ri($n)?"_blank":v),Zr($n)&&(f=f||"http://localhost",Dn.scrollbars="yes");const vr=Object.entries(Dn).reduce((Vo,[to,ua])=>`${Vo}${to}=${ua},`,"");if(function M(I=(0,oe.ZQ)()){var f;return ee(I)&&!(null===(f=window.navigator)||void 0===f||!f.standalone)}($n)&&"_self"!==Xt)return function Vs(I,f){const v=document.createElement("a");v.href=I,v.target=f;const S=document.createEvent("MouseEvent");S.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(S)}(f||"",Xt),new Bu(null);const hi=window.open(f||"",Xt,vr);Nt(hi,I,"popup-blocked");try{hi.focus()}catch{}return new Bu(hi)}(f,Xt,Xi())})()}_openRedirect(f,v,S,J){var be=this;return(0,U.A)(function*(){return yield be._originValidation(f),function Do(I){di().location.href=I}(yield sa(f,v,S,dt(),J)),new Promise(()=>{})})()}_initialize(f){const v=f._key();if(this.eventManagers[v]){const{manager:J,promise:be}=this.eventManagers[v];return J?Promise.resolve(J):(on(be,"If manager is not set, promise should be"),be)}const S=this.initAndGetManager(f);return this.eventManagers[v]={promise:S},S.catch(()=>{delete this.eventManagers[v]}),S}initAndGetManager(f){var v=this;return(0,U.A)(function*(){const S=yield function Ra(I){return Fi.apply(this,arguments)}(f),J=new ia(f);return S.register("authEvent",be=>(Nt(null==be?void 0:be.authEvent,f,"invalid-auth-event"),{status:J.onEvent(be.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[f._key()]={manager:J},v.iframes[f._key()]=S,J})()}_isIframeWebStorageSupported(f,v){this.iframes[f._key()].send(El,{type:El},J=>{var be;const Dt=null===(be=null==J?void 0:J[0])||void 0===be?void 0:be[El];void 0!==Dt&&v(!!Dt),Ue(f,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(f){const v=f._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Od(I){return ku.apply(this,arguments)}(f)),this.originValidationPromises[v]}get _shouldInitProactively(){return te()||fr()||ee()}};var Vd="@firebase/auth";class Ma{constructor(f){this.auth=f,this.internalListeners=new Map}getUid(){var f;return this.assertAuthConfigured(),(null===(f=this.auth.currentUser)||void 0===f?void 0:f.uid)||null}getToken(f){var v=this;return(0,U.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(f)}:null})()}addAuthTokenListener(f){if(this.assertAuthConfigured(),this.internalListeners.has(f))return;const v=this.auth.onIdTokenChanged(S=>{f((null==S?void 0:S.stsTokenManager.accessToken)||null)});this.internalListeners.set(f,v),this.updateProactiveRefresh()}removeAuthTokenListener(f){this.assertAuthConfigured();const v=this.internalListeners.get(f);v&&(this.internalListeners.delete(f),v(),this.updateProactiveRefresh())}assertAuthConfigured(){Nt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const eu=(0,oe.XA)("authIdTokenMaxAge")||300;let af=null;const lf=I=>function(){var f=(0,U.A)(function*(v){const S=v&&(yield v.getIdTokenResult()),J=S&&((new Date).getTime()-Date.parse(S.issuedAtTime))/1e3;if(J&&J>eu)return;const be=null==S?void 0:S.token;af!==be&&(af=be,yield fetch(I,{method:be?"POST":"DELETE",headers:be?{Authorization:`Bearer ${be}`}:{}}))});return function(v){return f.apply(this,arguments)}}();function Bd(I=(0,ue.Sx)()){const f=(0,ue.j6)(I,"auth");if(f.isInitialized())return f.getImmediate();const v=function No(I,f){const v=(0,ue.j6)(I,"auth");if(v.isInitialized()){const J=v.getImmediate(),be=v.getOptions();if((0,oe.bD)(be,null!=f?f:{}))return J;Ue(J,"already-initialized")}return v.initialize({options:f})}(I,{popupRedirectResolver:Il,persistence:[L,Ea,Wo]}),S=(0,oe.XA)("authTokenSyncURL");if(S&&"boolean"==typeof isSecureContext&&isSecureContext){const be=new URL(S,location.origin);if(location.origin===be.origin){const Dt=lf(be.toString());(function vi(I,f,v){(0,oe.Ku)(I).beforeAuthStateChanged(f,v)})(v,Dt,()=>Dt(v.currentUser)),Hi(v,Xt=>Dt(Xt))}}const J=(0,oe.Tj)("auth");return J&&function bt(I,f,v){const S=On(I);Nt(S._canInitEmulator,S,"emulator-config-failed"),Nt(/^https?:\/\//.test(f),S,"invalid-emulator-scheme");const J=!(null==v||!v.disableWarnings),be=he(f),{host:Dt,port:Xt}=function le(I){const f=he(I),v=/(\/\/)?([^?#/]+)/.exec(I.substr(f.length));if(!v)return{host:"",port:null};const S=v[2].split("@").pop()||"",J=/^(\[[^\]]+\])(:|$)/.exec(S);if(J){const be=J[1];return{host:be,port:W(S.substr(be.length+1))}}{const[be,Dt]=S.split(":");return{host:be,port:W(Dt)}}}(f);S.config.emulator={url:`${be}//${Dt}${null===Xt?"":`:${Xt}`}/`},S.settings.appVerificationDisabledForTesting=!0,S.emulatorConfig=Object.freeze({host:Dt,port:Xt,protocol:be.replace(":",""),options:Object.freeze({disableWarnings:J})}),J||function $e(){function I(){const f=document.createElement("p"),v=f.style;f.innerText="Running in emulator mode. Do not use with production credentials.",v.position="fixed",v.width="100%",v.backgroundColor="#ffffff",v.border=".1em solid #000000",v.color="#b50000",v.bottom="0px",v.left="0px",v.margin="0px",v.zIndex="10000",v.textAlign="center",f.classList.add("firebase-emulator-warning"),document.body.appendChild(f)}typeof console<"u"&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",I):I())}()}(v,`http://${J}`),v}(function zr(I){Or=I})({loadJS:I=>new Promise((f,v)=>{const S=document.createElement("script");S.setAttribute("src",I),S.onload=f,S.onerror=J=>{const be=Fe("internal-error");be.customData=J,v(be)},S.type="text/javascript",S.charset="UTF-8",function Lc(){var I,f;return null!==(f=null===(I=document.getElementsByTagName("head"))||void 0===I?void 0:I[0])&&void 0!==f?f:document}().appendChild(S)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function Dl(I){(0,ue.om)(new Se.uA("auth",(f,{options:v})=>{const S=f.getProvider("app").getImmediate(),J=f.getProvider("heartbeat"),be=f.getProvider("app-check-internal"),{apiKey:Dt,authDomain:Xt}=S.options;Nt(Dt&&!Dt.includes(":"),"invalid-api-key",{appName:S.name});const Dn={apiKey:Dt,authDomain:Xt,clientPlatform:I,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Ge(I)},$n=new xr(S,J,be,Dn);return function oi(I,f){const v=(null==f?void 0:f.persistence)||[],S=(Array.isArray(v)?v:[v]).map(hn);null!=f&&f.errorMap&&I._updateErrorMap(f.errorMap),I._initializeWithPersistence(S,null==f?void 0:f.popupRedirectResolver)}($n,v),$n},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((f,v,S)=>{f.getProvider("auth-internal").initialize()})),(0,ue.om)(new Se.uA("auth-internal",f=>{const v=On(f.getProvider("auth").getImmediate());return new Ma(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,ue.KO)(Vd,"1.7.4",function Fc(I){switch(I){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(I)),(0,ue.KO)(Vd,"1.7.4","esm2017")}("Browser");var ws=D(1985);function Hu(I){return new ws.c(function(f){return{unsubscribe:Hi(I,f.next.bind(f),f.error.bind(f),f.complete.bind(f))}})}class Qa{constructor(f){return f}}class Tl{constructor(){return(0,h.CA)("auth")}}const tu=new c.nKC("angularfire2.auth-instances");function uf(I){return(f,v)=>{const S=f.runOutsideAngular(()=>I(v));return new Qa(S)}}const cf={provide:Tl,deps:[[new c.Xx1,tu]]},lg={provide:Qa,useFactory:function $d(I,f){const v=(0,h.lR)("auth",I,f);return v&&new Qa(v)},deps:[[new c.Xx1,tu],Z.XU]};function bl(I,...f){return(0,Oe.KO)("angularfire",h.xv.full,"auth"),(0,c.EmA)([lg,cf,{provide:tu,useFactory:uf(I),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...f]}])}const Uc=(0,h.S3)(Hu,!0),Gu=(0,h.S3)(Os,!0),ug=(0,h.S3)(Bd,!0),qu=(0,h.S3)(As,!0)},4262:(Tn,gt,D)=>{"use strict";D.d(gt,{_7:()=>Eh,rJ:()=>_0,kd:()=>y0,H9:()=>lm,x7:()=>cm,GG:()=>o_,aU:()=>dm,hV:()=>e_,BN:()=>P0,mZ:()=>x0});var Ze,qe,h=D(5407),c=D(4438),Z=D(7440),Oe=D(8737),U=D(2214),ue=D(467),oe=D(7852),Xe=D(1362),Je=D(8041),Se=D(1076),De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qe={};(function(){var l;function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function u(xt,at,At){At||(At=0);var kt=Array(16);if("string"==typeof at)for(var Vt=0;16>Vt;++Vt)kt[Vt]=at.charCodeAt(At++)|at.charCodeAt(At++)<<8|at.charCodeAt(At++)<<16|at.charCodeAt(At++)<<24;else for(Vt=0;16>Vt;++Vt)kt[Vt]=at[At++]|at[At++]<<8|at[At++]<<16|at[At++]<<24;var qt=xt.g[3],vt=(at=xt.g[0])+(qt^(At=xt.g[1])&((Vt=xt.g[2])^qt))+kt[0]+3614090360&4294967295;vt=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=(At=(Vt=(qt=(at=At+(vt<<7&4294967295|vt>>>25))+((vt=qt+(Vt^at&(At^Vt))+kt[1]+3905402710&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(At^qt&(at^At))+kt[2]+606105819&4294967295)<<17&4294967295|vt>>>15))+((vt=At+(at^Vt&(qt^at))+kt[3]+3250441966&4294967295)<<22&4294967295|vt>>>10))+((vt=at+(qt^At&(Vt^qt))+kt[4]+4118548399&4294967295)<<7&4294967295|vt>>>25))+((vt=qt+(Vt^at&(At^Vt))+kt[5]+1200080426&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(At^qt&(at^At))+kt[6]+2821735955&4294967295)<<17&4294967295|vt>>>15))+((vt=At+(at^Vt&(qt^at))+kt[7]+4249261313&4294967295)<<22&4294967295|vt>>>10))+((vt=at+(qt^At&(Vt^qt))+kt[8]+1770035416&4294967295)<<7&4294967295|vt>>>25))+((vt=qt+(Vt^at&(At^Vt))+kt[9]+2336552879&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(At^qt&(at^At))+kt[10]+4294925233&4294967295)<<17&4294967295|vt>>>15))+((vt=At+(at^Vt&(qt^at))+kt[11]+2304563134&4294967295)<<22&4294967295|vt>>>10))+((vt=at+(qt^At&(Vt^qt))+kt[12]+1804603682&4294967295)<<7&4294967295|vt>>>25))+((vt=qt+(Vt^at&(At^Vt))+kt[13]+4254626195&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(At^qt&(at^At))+kt[14]+2792965006&4294967295)<<17&4294967295|vt>>>15))+((vt=At+(at^Vt&(qt^at))+kt[15]+1236535329&4294967295)<<22&4294967295|vt>>>10))+((vt=at+(Vt^qt&(At^Vt))+kt[1]+4129170786&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(At^Vt&(at^At))+kt[6]+3225465664&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(at^At&(qt^at))+kt[11]+643717713&4294967295)<<14&4294967295|vt>>>18))+((vt=At+(qt^at&(Vt^qt))+kt[0]+3921069994&4294967295)<<20&4294967295|vt>>>12))+((vt=at+(Vt^qt&(At^Vt))+kt[5]+3593408605&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(At^Vt&(at^At))+kt[10]+38016083&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(at^At&(qt^at))+kt[15]+3634488961&4294967295)<<14&4294967295|vt>>>18))+((vt=At+(qt^at&(Vt^qt))+kt[4]+3889429448&4294967295)<<20&4294967295|vt>>>12))+((vt=at+(Vt^qt&(At^Vt))+kt[9]+568446438&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(At^Vt&(at^At))+kt[14]+3275163606&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(at^At&(qt^at))+kt[3]+4107603335&4294967295)<<14&4294967295|vt>>>18))+((vt=At+(qt^at&(Vt^qt))+kt[8]+1163531501&4294967295)<<20&4294967295|vt>>>12))+((vt=at+(Vt^qt&(At^Vt))+kt[13]+2850285829&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(At^Vt&(at^At))+kt[2]+4243563512&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(at^At&(qt^at))+kt[7]+1735328473&4294967295)<<14&4294967295|vt>>>18))+((vt=At+(qt^at&(Vt^qt))+kt[12]+2368359562&4294967295)<<20&4294967295|vt>>>12))+((vt=at+(At^Vt^qt)+kt[5]+4294588738&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(at^At^Vt)+kt[8]+2272392833&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^at^At)+kt[11]+1839030562&4294967295)<<16&4294967295|vt>>>16))+((vt=At+(Vt^qt^at)+kt[14]+4259657740&4294967295)<<23&4294967295|vt>>>9))+((vt=at+(At^Vt^qt)+kt[1]+2763975236&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(at^At^Vt)+kt[4]+1272893353&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^at^At)+kt[7]+4139469664&4294967295)<<16&4294967295|vt>>>16))+((vt=At+(Vt^qt^at)+kt[10]+3200236656&4294967295)<<23&4294967295|vt>>>9))+((vt=at+(At^Vt^qt)+kt[13]+681279174&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(at^At^Vt)+kt[0]+3936430074&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^at^At)+kt[3]+3572445317&4294967295)<<16&4294967295|vt>>>16))+((vt=At+(Vt^qt^at)+kt[6]+76029189&4294967295)<<23&4294967295|vt>>>9))+((vt=at+(At^Vt^qt)+kt[9]+3654602809&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(at^At^Vt)+kt[12]+3873151461&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^at^At)+kt[15]+530742520&4294967295)<<16&4294967295|vt>>>16))+((vt=At+(Vt^qt^at)+kt[2]+3299628645&4294967295)<<23&4294967295|vt>>>9))+((vt=at+(Vt^(At|~qt))+kt[0]+4096336452&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(At^(at|~Vt))+kt[7]+1126891415&4294967295)<<10&4294967295|vt>>>22))+((vt=Vt+(at^(qt|~At))+kt[14]+2878612391&4294967295)<<15&4294967295|vt>>>17))+((vt=At+(qt^(Vt|~at))+kt[5]+4237533241&4294967295)<<21&4294967295|vt>>>11))+((vt=at+(Vt^(At|~qt))+kt[12]+1700485571&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(At^(at|~Vt))+kt[3]+2399980690&4294967295)<<10&4294967295|vt>>>22))+((vt=Vt+(at^(qt|~At))+kt[10]+4293915773&4294967295)<<15&4294967295|vt>>>17))+((vt=At+(qt^(Vt|~at))+kt[1]+2240044497&4294967295)<<21&4294967295|vt>>>11))+((vt=at+(Vt^(At|~qt))+kt[8]+1873313359&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(At^(at|~Vt))+kt[15]+4264355552&4294967295)<<10&4294967295|vt>>>22))+((vt=Vt+(at^(qt|~At))+kt[6]+2734768916&4294967295)<<15&4294967295|vt>>>17))+((vt=At+(qt^(Vt|~at))+kt[13]+1309151649&4294967295)<<21&4294967295|vt>>>11))+((qt=(at=At+((vt=at+(Vt^(At|~qt))+kt[4]+4149444226&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(At^(at|~Vt))+kt[11]+3174756917&4294967295)<<10&4294967295|vt>>>22))^((Vt=qt+((vt=Vt+(at^(qt|~At))+kt[2]+718787259&4294967295)<<15&4294967295|vt>>>17))|~at))+kt[9]+3951481745&4294967295,xt.g[0]=xt.g[0]+at&4294967295,xt.g[1]=xt.g[1]+(Vt+(vt<<21&4294967295|vt>>>11))&4294967295,xt.g[2]=xt.g[2]+Vt&4294967295,xt.g[3]=xt.g[3]+qt&4294967295}function _(xt,at){this.h=at;for(var At=[],kt=!0,Vt=xt.length-1;0<=Vt;Vt--){var qt=0|xt[Vt];kt&&qt==at||(At[Vt]=qt,kt=!1)}this.g=At}(function n(xt,at){function At(){}At.prototype=at.prototype,xt.D=at.prototype,xt.prototype=new At,xt.prototype.constructor=xt,xt.C=function(kt,Vt,qt){for(var vt=Array(arguments.length-2),Nl=2;Nlthis.h?this.blockSize:2*this.blockSize)-this.h);xt[0]=128;for(var at=1;atat;++at)for(var kt=0;32>kt;kt+=8)xt[At++]=this.g[at]>>>kt&255;return xt};var R={};function k(xt){return-128<=xt&&128>xt?function p(xt,at){var At=R;return Object.prototype.hasOwnProperty.call(At,xt)?At[xt]:At[xt]=at(xt)}(xt,function(at){return new _([0|at],0>at?-1:0)}):new _([0|xt],0>xt?-1:0)}function q(xt){if(isNaN(xt)||!isFinite(xt))return ze;if(0>xt)return Sn(q(-xt));for(var at=[],At=1,kt=0;xt>=At;kt++)at[kt]=xt/At|0,At*=4294967296;return new _(at,0)}var ze=k(0),pt=k(1),Ht=k(16777216);function An(xt){if(0!=xt.h)return!1;for(var at=0;at>>16,xt[at]&=65535,at++}function _r(xt,at){this.g=xt,this.h=at}function Yr(xt,at){if(An(at))throw Error("division by zero");if(An(xt))return new _r(ze,ze);if(kn(xt))return at=Yr(Sn(xt),at),new _r(Sn(at.g),Sn(at.h));if(kn(at))return at=Yr(xt,Sn(at)),new _r(Sn(at.g),at.h);if(30=kt.l(xt);)At=Li(At),kt=Li(kt);var Vt=fi(At,1),qt=fi(kt,1);for(kt=fi(kt,2),At=fi(At,2);!An(kt);){var vt=qt.add(kt);0>=vt.l(xt)&&(Vt=Vt.add(At),qt=vt),kt=fi(kt,1),At=fi(At,1)}return at=hr(xt,Vt.j(at)),new _r(Vt,at)}for(Vt=ze;0<=xt.l(at);){for(At=Math.max(1,Math.floor(xt.m()/at.m())),kt=48>=(kt=Math.ceil(Math.log(At)/Math.LN2))?1:Math.pow(2,kt-48),vt=(qt=q(At)).j(at);kn(vt)||0>>31;return new _(At,xt.h)}function fi(xt,at){var At=at>>5;at%=32;for(var kt=xt.g.length-At,Vt=[],qt=0;qt>>at|xt.i(qt+At+1)<<32-at:xt.i(qt+At);return new _(Vt,xt.h)}(l=_.prototype).m=function(){if(kn(this))return-Sn(this).m();for(var xt=0,at=1,At=0;At(xt=xt||10)||36>>0).toString(xt);if(An(At=Vt))return qt+kt;for(;6>qt.length;)qt="0"+qt;kt=qt+kt}},l.i=function(xt){return 0>xt?0:xt>>16)+(this.i(Vt)>>>16)+(xt.i(Vt)>>>16);kt=vt>>>16,At[Vt]=(vt&=65535)<<16|(qt&=65535)}return new _(At,-2147483648&At[At.length-1]?-1:0)},l.j=function(xt){if(An(this)||An(xt))return ze;if(kn(this))return kn(xt)?Sn(this).j(Sn(xt)):Sn(Sn(this).j(xt));if(kn(xt))return Sn(this.j(Sn(xt)));if(0>this.l(Ht)&&0>xt.l(Ht))return q(this.m()*xt.m());for(var at=this.g.length+xt.g.length,At=[],kt=0;kt<2*at;kt++)At[kt]=0;for(kt=0;kt>>16,vt=65535&this.i(kt),Nl=xt.i(Vt)>>>16,cc=65535&xt.i(Vt);At[2*kt+2*Vt]+=vt*cc,Mr(At,2*kt+2*Vt),At[2*kt+2*Vt+1]+=qt*cc,Mr(At,2*kt+2*Vt+1),At[2*kt+2*Vt+1]+=vt*Nl,Mr(At,2*kt+2*Vt+1),At[2*kt+2*Vt+2]+=qt*Nl,Mr(At,2*kt+2*Vt+2)}for(kt=0;kt(at=at||10)||36qt?(qt=q(Math.pow(at,qt)),kt=kt.j(qt).add(q(vt))):kt=(kt=kt.j(At)).add(q(vt))}return kt},Ze=Qe.Integer=_}).apply(typeof De<"u"?De:typeof self<"u"?self:typeof window<"u"?window:{});var St,yt,_t,Et,mt,Me,Ye,ge,Ue,ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Tt={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,V,Q){return m==Array.prototype||m==Object.prototype||(m[V]=Q.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof ht&&ht];for(var V=0;V{throw m},0)}function vt(){var m=pm;let V=null;return m.g&&(V=m.g,m.g=m.g.next,m.g||(m.h=null),V.next=null),V}var cc=new class hr{constructor(V,Q){this.i=V,this.j=Q,this.h=0,this.g=null}get(){let V;return 0new O0,m=>m.reset());class O0{constructor(){this.next=this.g=this.h=null}set(V,Q){this.h=V,this.g=Q,this.next=null}reset(){this.next=this.g=this.h=null}}let ld,Ah=!1,pm=new class Nl{constructor(){this.h=this.g=null}add(V,Q){const Pe=cc.get();Pe.set(V,Q),this.h?this.h.next=Pe:this.g=Pe,this.h=Pe}},gm=()=>{const m=R.Promise.resolve(void 0);ld=()=>{m.then(N0)}};var N0=()=>{for(var m;m=vt();){try{m.h.call(m.g)}catch(Q){qt(Q)}var V=cc;V.j(m),100>V.h&&(V.h++,m.next=V.g,V.g=m)}Ah=!1};function mu(){this.s=this.s,this.C=this.C}function _o(m,V){this.type=m,this.g=this.target=V,this.defaultPrevented=!1}mu.prototype.s=!1,mu.prototype.ma=function(){this.s||(this.s=!0,this.N())},mu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},_o.prototype.h=function(){this.defaultPrevented=!0};var mm=function(){if(!R.addEventListener||!Object.defineProperty)return!1;var m=!1,V=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const Q=()=>{};R.addEventListener("test",Q,V),R.removeEventListener("test",Q,V)}catch{}return m}();function Ch(m,V){if(_o.call(this,m?m.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,m){var Q=this.type=m.type,Pe=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=V,V=m.relatedTarget){if(Li){e:{try{Yr(V.nodeName);var $t=!0;break e}catch{}$t=!1}$t||(V=null)}}else"mouseover"==Q?V=m.fromElement:"mouseout"==Q&&(V=m.toElement);this.relatedTarget=V,Pe?(this.clientX=void 0!==Pe.clientX?Pe.clientX:Pe.pageX,this.clientY=void 0!==Pe.clientY?Pe.clientY:Pe.pageY,this.screenX=Pe.screenX||0,this.screenY=Pe.screenY||0):(this.clientX=void 0!==m.clientX?m.clientX:m.pageX,this.clientY=void 0!==m.clientY?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0),this.button=m.button,this.key=m.key||"",this.ctrlKey=m.ctrlKey,this.altKey=m.altKey,this.shiftKey=m.shiftKey,this.metaKey=m.metaKey,this.pointerId=m.pointerId||0,this.pointerType="string"==typeof m.pointerType?m.pointerType:l_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Ch.aa.h.call(this)}}An(Ch,_o);var l_={2:"touch",3:"pen",4:"mouse"};Ch.prototype.h=function(){Ch.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var Dh="closure_listenable_"+(1e6*Math.random()|0),u_=0;function nA(m,V,Q,Pe,$t){this.listener=m,this.proxy=null,this.src=V,this.type=Q,this.capture=!!Pe,this.ha=$t,this.key=++u_,this.da=this.fa=!1}function lp(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function dc(m){this.src=m,this.g={},this.h=0}function up(m,V){var Q=V.type;if(Q in m.g){var nn,Pe=m.g[Q],$t=Array.prototype.indexOf.call(Pe,V,void 0);(nn=0<=$t)&&Array.prototype.splice.call(Pe,$t,1),nn&&(lp(V),0==m.g[Q].length&&(delete m.g[Q],m.h--))}}function vm(m,V,Q,Pe){for(var $t=0;$t>>0);function Cm(m){return"function"==typeof m?m:(m[Th]||(m[Th]=function(V){return m.handleEvent(V)}),m[Th])}function os(){mu.call(this),this.i=new dc(this),this.M=this,this.F=null}function Ko(m,V){var Q,Pe=m.F;if(Pe)for(Q=[];Pe;Pe=Pe.F)Q.push(Pe);if(m=m.M,Pe=V.type||V,"string"==typeof V)V=new _o(V,m);else if(V instanceof _o)V.target=V.target||m;else{var $t=V;kt(V=new _o(Pe,m),$t)}if($t=!0,Q)for(var nn=Q.length-1;0<=nn;nn--){var zn=V.g=Q[nn];$t=bh(zn,Pe,!0,V)&&$t}if($t=bh(zn=V.g=m,Pe,!0,V)&&$t,$t=bh(zn,Pe,!1,V)&&$t,Q)for(nn=0;nn{m.g=null,m.i&&(m.i=!1,Tm(m))},m.l);const V=m.h;m.h=null,m.m.apply(null,V)}An(os,mu),os.prototype[Dh]=!0,os.prototype.removeEventListener=function(m,V,Q,Pe){Em(this,m,V,Q,Pe)},os.prototype.N=function(){if(os.aa.N.call(this),this.i){var V,m=this.i;for(V in m.g){for(var Q=m.g[V],Pe=0;PePe.length)){var $t=Pe[1];if(Array.isArray($t)&&!(1>$t.length)){var nn=$t[0];if("noop"!=nn&&"stop"!=nn&&"close"!=nn)for(var zn=1;zn<$t.length;zn++)$t[zn]=""}}}return Sh(Q)}catch{return V}}(m,Q)+(Pe?" "+Pe:"")})}_u.La="serverreachability",An(h_,_o),_u.STAT_EVENT="statevent",An(Sm,_o),_u.Ma="timingevent",An(hd,_o),yu.prototype.xa=function(){this.g=!1},yu.prototype.info=function(){};var Rm,gp={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},g_={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function mp(){}function Eu(m,V,Q,Pe){this.j=m,this.i=V,this.l=Q,this.R=Pe||1,this.U=new wh(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new m_}function m_(){this.i=null,this.g="",this.h=!1}An(mp,dp),mp.prototype.g=function(){return new XMLHttpRequest},mp.prototype.i=function(){return{}},Rm=new mp;var v_={},Mm={};function pd(m,V,Q){m.L=1,m.v=Nh(ol(V)),m.m=Q,m.P=!0,__(m,null)}function __(m,V){m.F=Date.now(),Mh(m),m.A=ol(m.v);var Q=m.A,Pe=m.R;Array.isArray(Pe)||(Pe=[String(Pe)]),Bm(Q.i,"t",Pe),m.C=0,Q=m.j.J,m.h=new m_,m.g=F_(m.j,Q?V:null,!m.m),0V.length?Mm:(V=V.slice(Pe,Pe+Q),m.C=Pe+Q,V))}function Mh(m){m.S=Date.now()+m.I,vp(m,m.I)}function vp(m,V){if(null!=m.B)throw Error("WatchDog timer not null");m.B=fp(pt(m.ba,m),V)}function _p(m){m.B&&(R.clearTimeout(m.B),m.B=null)}function Ph(m){0==m.j.G||m.J||q0(m.j,m)}function Iu(m){_p(m);var V=m.M;V&&"function"==typeof V.ma&&V.ma(),m.M=null,bm(m.U),m.g&&(V=m.g,m.g=null,V.abort(),V.ma())}function xh(m,V){try{var Q=m.j;if(0!=Q.G&&(Q.g==m||xm(Q.h,m)))if(!m.K&&xm(Q.h,m)&&3==Q.G){try{var Pe=Q.Da.g.parse(V)}catch{Pe=null}if(Array.isArray(Pe)&&3==Pe.length){var $t=Pe;if(0==$t[0]){e:if(!Q.u){if(Q.g){if(!(Q.g.F+3e3$t[2]&&Q.F&&0==Q.v&&!Q.C&&(Q.C=fp(pt(Q.Za,Q),6e3));if(1>=C_(Q.h)&&Q.ca){try{Q.ca()}catch{}Q.ca=void 0}}else Cu(Q,11)}else if((m.K||Q.g==m)&&Bh(Q),!Mr(V))for($t=Q.Da.g.parse(V),V=0;V<$t.length;V++){let xi=$t[V];if(Q.T=xi[0],xi=xi[1],2==Q.G)if("c"==xi[0]){Q.K=xi[1],Q.ia=xi[2];const ss=xi[3];null!=ss&&(Q.la=ss,Q.j.info("VER="+Q.la));const gs=xi[4];null!=gs&&(Q.Aa=gs,Q.j.info("SVER="+Q.Aa));const Du=xi[5];null!=Du&&"number"==typeof Du&&0gs)&&(3!=gs||this.g&&(this.h.h||this.g.oa()||R_(this.g)))){this.J||4!=gs||7==V||fc(),_p(this);var Q=this.g.Z();this.X=Q;t:if(y_(this)){var Pe=R_(this.g);m="";var $t=Pe.length,nn=4==Au(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Iu(this),Ph(this);var zn="";break t}this.h.i=new R.TextDecoder}for(V=0;V<$t;V++)this.h.h=!0,m+=this.h.i.decode(Pe[V],{stream:!(nn&&V==$t-1)});Pe.length=0,this.h.g+=m,this.C=0,zn=this.h.g}else zn=this.g.oa();if(this.o=200==Q,function p_(m,V,Q,Pe,$t,nn,zn){m.info(function(){return"XMLHTTP RESP ("+Pe+") [ attempt "+$t+"]: "+V+"\n"+Q+"\n"+nn+" "+zn})}(this.i,this.u,this.A,this.l,this.R,gs,Q),this.o){if(this.T&&!this.K){t:{if(this.g){var Wi,so=this.g;if((Wi=so.g?so.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Mr(Wi)){var xi=Wi;break t}}xi=null}if(!(Q=xi)){this.o=!1,this.s=3,co(12),Iu(this),Ph(this);break e}fd(this.i,this.l,Q,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,xh(this,Q)}if(this.P){let js;for(Q=!0;!this.J&&this.C=m.j}function C_(m){return m.h?1:m.g?m.g.size:0}function xm(m,V){return m.h?m.h==V:!!m.g&&m.g.has(V)}function Oh(m,V){m.g?m.g.add(V):m.h=V}function yp(m,V){m.h&&m.h==V?m.h=null:m.g&&m.g.has(V)&&m.g.delete(V)}function Om(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let V=m.i;for(const Q of m.g.values())V=V.concat(Q.D);return V}return kn(m.i)}function D_(m,V){if(m.forEach&&"function"==typeof m.forEach)m.forEach(V,void 0);else if(k(m)||"string"==typeof m)Array.prototype.forEach.call(m,V,void 0);else for(var Q=function km(m){if(m.na&&"function"==typeof m.na)return m.na();if(!m.V||"function"!=typeof m.V){if(typeof Map<"u"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set<"u"&&m instanceof Set)){if(k(m)||"string"==typeof m){var V=[];m=m.length;for(var Q=0;QV)throw Error("Bad port number "+V);m.s=V}else m.s=null}function Fm(m,V,Q){V instanceof _d?(m.i=V,function w_(m,V){V&&!m.j&&(kl(m),m.i=null,m.g.forEach(function(Q,Pe){var $t=Pe.toLowerCase();Pe!=$t&&(Vm(this,Pe),Bm(this,$t,Q))},m)),m.j=V}(m.i,m.h)):(Q||(V=vd(V,rA)),m.i=new _d(V,m.h))}function Yi(m,V,Q){m.i.set(V,Q)}function Nh(m){return Yi(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function kh(m,V){return m?V?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function vd(m,V,Q){return"string"==typeof m?(m=encodeURI(m).replace(V,U0),Q&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function U0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}pc.prototype.toString=function(){var m=[],V=this.j;V&&m.push(vd(V,Ep,!0),":");var Q=this.g;return(Q||"file"==V)&&(m.push("//"),(V=this.o)&&m.push(vd(V,Ep,!0),"@"),m.push(encodeURIComponent(String(Q)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(Q=this.s)&&m.push(":",String(Q))),(Q=this.l)&&(this.g&&"/"!=Q.charAt(0)&&m.push("/"),m.push(vd(Q,"/"==Q.charAt(0)?Lm:b_,!0))),(Q=this.i.toString())&&m.push("?",Q),(Q=this.m)&&m.push("#",vd(Q,iA)),m.join("")};var Ep=/[#\/\?@]/g,b_=/[#\?:]/g,Lm=/[#\?]/g,rA=/[#\?@]/g,iA=/#/g;function _d(m,V){this.h=this.g=null,this.i=m||null,this.j=!!V}function kl(m){m.g||(m.g=new Map,m.h=0,m.i&&function B0(m,V){if(m){m=m.split("&");for(var Q=0;Q{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Cp(this)),this.readyState=0},l.Sa=function(m){if(this.g&&(this.l=m,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=m.headers,this.readyState=2,Dp(this)),this.g&&(this.readyState=3,Dp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof R.ReadableStream<"u"&&"body"in m){if(this.j=m.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;j0(this)}else m.text().then(this.Ra.bind(this),this.ga.bind(this))},l.Pa=function(m){if(this.g){if(this.o&&m.value)this.response.push(m.value);else if(!this.o){var V=m.value?m.value:new Uint8Array(0);(V=this.v.decode(V,{stream:!m.done}))&&(this.response=this.responseText+=V)}m.done?Cp(this):Dp(this),3==this.readyState&&j0(this)}},l.Ra=function(m){this.g&&(this.response=this.responseText=m,Cp(this))},l.Qa=function(m){this.g&&(this.response=m,Cp(this))},l.ga=function(){this.g&&Cp(this)},l.setRequestHeader=function(m,V){this.u.append(m,V)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],V=this.h.entries();for(var Q=V.next();!Q.done;)m.push((Q=Q.value)[0]+": "+Q[1]),Q=V.next();return m.join("\r\n")},Object.defineProperty(Um.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),An(yo,os);var aA=/^https?$/i,lA=["POST","PUT"];function z0(m,V){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=V,m.m=5,H0(m),jm(m)}function H0(m){m.A||(m.A=!0,Ko(m,"complete"),Ko(m,"error"))}function G0(m){if(m.h&&typeof _<"u"&&(!m.v[1]||4!=Au(m)||2!=m.Z()))if(m.u&&4==Au(m))Dm(m.Ea,0,m);else if(Ko(m,"readystatechange"),4==Au(m)){m.h=!1;try{const zn=m.Z();e:switch(zn){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var V=!0;break e;default:V=!1}var Q;if(!(Q=V)){var Pe;if(Pe=0===zn){var $t=String(m.D).match(T_)[1]||null;!$t&&R.self&&R.self.location&&($t=R.self.location.protocol.slice(0,-1)),Pe=!aA.test($t?$t.toLowerCase():"")}Q=Pe}if(Q)Ko(m,"complete"),Ko(m,"success");else{m.m=6;try{var nn=2{}:null;m.g=null,m.v=null,V||Ko(m,"ready");try{Q.onreadystatechange=Pe}catch{}}}function W0(m){m.I&&(R.clearTimeout(m.I),m.I=null)}function Au(m){return m.g?m.g.readyState:0}function R_(m){try{if(!m.g)return null;if("response"in m.g)return m.g.response;switch(m.H){case"":case"text":return m.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in m.g)return m.g.mozResponseArrayBuffer}return null}catch{return null}}function Fl(m,V,Q){return Q&&Q.internalChannelParams&&Q.internalChannelParams[m]||V}function M_(m){this.Aa=0,this.i=[],this.j=new yu,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Fl("failFast",!1,m),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Fl("baseRetryDelayMs",5e3,m),this.cb=Fl("retryDelaySeedMs",1e4,m),this.Wa=Fl("forwardChannelMaxRetries",2,m),this.wa=Fl("forwardChannelRequestTimeoutMs",2e4,m),this.pa=m&&m.xmlHttpFactory||void 0,this.Xa=m&&m.Tb||void 0,this.Ca=m&&m.useFetchStreams||!1,this.L=void 0,this.J=m&&m.supportsCrossDomainXhr||!1,this.K="",this.h=new Pm(m&&m.concurrentRequestLimit),this.Da=new oA,this.P=m&&m.fastHandshake||!1,this.O=m&&m.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=m&&m.Rb||!1,m&&m.xa&&this.j.xa(),m&&m.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&m&&m.detectBufferingProxy||!1,this.ja=void 0,m&&m.longPollingTimeout&&0xi)nn=Math.max(0,$t[so].g-100),Wi=!1;else try{sA(ss,zn,"req"+xi+"_")}catch{Pe&&Pe(ss)}}if(Wi){Pe=zn.join("&");break e}}}return m=m.i.splice(0,Q),V.D=m,Pe}function Hm(m){if(!m.g&&!m.u){m.Y=1;var V=m.Fa;ld||gm(),Ah||(ld(),Ah=!0),pm.add(V,m),m.v=0}}function Gm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=fp(pt(m.Fa,m),N_(m,m.v)),m.v++,0))}function bp(m){null!=m.A&&(R.clearTimeout(m.A),m.A=null)}function X0(m){m.g=new Eu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var V=ol(m.qa);Yi(V,"RID","rpc"),Yi(V,"SID",m.K),Yi(V,"AID",m.T),Yi(V,"CI",m.F?"0":"1"),!m.F&&m.ja&&Yi(V,"TO",m.ja),Yi(V,"TYPE","xmlhttp"),Lh(m,V),m.m&&m.o&&Tp(V,m.m,m.o),m.L&&(m.g.I=m.L);var Q=m.g;m=m.ia,Q.L=1,Q.v=Nh(ol(V)),Q.m=null,Q.P=!0,__(Q,m)}function Bh(m){null!=m.C&&(R.clearTimeout(m.C),m.C=null)}function q0(m,V){var Q=null;if(m.g==V){Bh(m),bp(m),m.g=null;var Pe=2}else{if(!xm(m.h,V))return;Q=V.D,yp(m.h,V),Pe=1}if(0!=m.G)if(V.o)if(1==Pe){Q=V.m?V.m.length:0,V=Date.now()-V.F;var $t=m.B;Ko(Pe=hp(),new hd(Pe,Q)),zm(m)}else Hm(m);else if(3==($t=V.s)||0==$t&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=V.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=fp(pt(m.Ga,m,V),N_(m,m.B)),m.B++,0)))}(m,V)||2==Pe&&Gm(m)))switch(Q&&0{Pe.abort(),mc(0,0,!1,V)},1e4);fetch(m,{signal:Pe.signal}).then(nn=>{clearTimeout($t),mc(0,0,!!nn.ok,V)}).catch(()=>{clearTimeout($t),mc(0,0,!1,V)})}(Pe.toString(),Q)}else co(2);m.G=0,m.l&&m.l.sa(V),wp(m),x_(m)}function wp(m){if(m.G=0,m.ka=[],m.l){const V=Om(m.h);(0!=V.length||0!=m.i.length)&&(Sn(m.ka,V),Sn(m.ka,m.i),m.h.i.length=0,kn(m.i),m.i.length=0),m.l.ra()}}function k_(m,V,Q){var Pe=Q instanceof pc?ol(Q):new pc(Q);if(""!=Pe.g)V&&(Pe.g=V+"."+Pe.g),md(Pe,Pe.s);else{var $t=R.location;Pe=$t.protocol,V=V?V+"."+$t.hostname:$t.hostname,$t=+$t.port;var nn=new pc(null);Pe&&gd(nn,Pe),V&&(nn.g=V),$t&&md(nn,$t),Q&&(nn.l=Q),Pe=nn}return V=m.ya,(Q=m.D)&&V&&Yi(Pe,Q,V),Yi(Pe,"VER",m.la),Lh(m,Pe),Pe}function F_(m,V,Q){if(V&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(V=new yo(m.Ca&&!m.pa?new Ap({eb:Q}):m.pa)).Ha(m.J),V}function Uh(){}function Sp(){}function $s(m,V){os.call(this),this.g=new M_(V),this.l=m,this.h=V&&V.messageUrlParams||null,m=V&&V.messageHeaders||null,V&&V.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=V&&V.initMessageHeaders||null,V&&V.messageContentType&&(m?m["X-WebChannel-Content-Type"]=V.messageContentType:m={"X-WebChannel-Content-Type":V.messageContentType}),V&&V.va&&(m?m["X-WebChannel-Client-Profile"]=V.va:m={"X-WebChannel-Client-Profile":V.va}),this.g.S=m,(m=V&&V.Sb)&&!Mr(m)&&(this.g.m=m),this.v=V&&V.supportsCrossDomainXhr||!1,this.u=V&&V.sendRawJson||!1,(V=V&&V.httpSessionIdParam)&&!Mr(V)&&(this.g.D=V,null!==(m=this.h)&&V in m&&V in(m=this.h)&&delete m[V]),this.j=new Ed(this)}function L_(m){il.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var V=m.__sm__;if(V){e:{for(const Q in V){m=Q;break e}m=void 0}(this.i=m)&&(m=this.i,V=null!==V&&m in V?V[m]:void 0),this.data=V}else this.data=m}function V_(){cd.call(this),this.status=1}function Ed(m){this.g=m}(l=yo.prototype).Ha=function(m){this.J=m},l.ea=function(m,V,Q,Pe){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);V=V?V.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Rm.g(),this.v=function wm(m){return m.h||(m.h=m.i())}(this.o?this.o:Rm),this.g.onreadystatechange=pt(this.Ea,this);try{this.B=!0,this.g.open(V,String(m),!0),this.B=!1}catch(nn){return void z0(this,nn)}if(m=Q||"",Q=new Map(this.headers),Pe)if(Object.getPrototypeOf(Pe)===Object.prototype)for(var $t in Pe)Q.set($t,Pe[$t]);else{if("function"!=typeof Pe.keys||"function"!=typeof Pe.get)throw Error("Unknown input type for opt_headers: "+String(Pe));for(const nn of Pe.keys())Q.set(nn,Pe.get(nn))}Pe=Array.from(Q.keys()).find(nn=>"content-type"==nn.toLowerCase()),$t=R.FormData&&m instanceof R.FormData,!(0<=Array.prototype.indexOf.call(lA,V,void 0))||Pe||$t||Q.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[nn,zn]of Q)this.g.setRequestHeader(nn,zn);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{W0(this),this.u=!0,this.g.send(m),this.u=!1}catch(nn){z0(this,nn)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,Ko(this,"complete"),Ko(this,"abort"),jm(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),jm(this,!0)),yo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?G0(this):this.bb())},l.bb=function(){G0(this)},l.isActive=function(){return!!this.g},l.Z=function(){try{return 2=this.R)){var m=2*this.R;this.j.info("BP detection timer enabled: "+m),this.A=fp(pt(this.ab,this),m)}},l.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,co(10),Fh(this),X0(this))},l.Za=function(){null!=this.C&&(this.C=null,Fh(this),Gm(this),co(19))},l.fb=function(m){m?(this.j.info("Successfully pinged google.com"),co(2)):(this.j.info("Failed to ping google.com"),co(1))},l.isActive=function(){return!!this.l&&this.l.isActive(this)},(l=Uh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},Sp.prototype.g=function(m,V){return new $s(m,V)},An($s,os),$s.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},$s.prototype.close=function(){P_(this.g)},$s.prototype.o=function(m){var V=this.g;if("string"==typeof m){var Q={};Q.__data__=m,m=Q}else this.u&&((Q={}).__data__=Sh(m),m=Q);V.i.push(new I_(V.Ya++,m)),3==V.G&&zm(V)},$s.prototype.N=function(){this.g.l=null,delete this.j,P_(this.g),delete this.g,$s.aa.N.call(this)},An(L_,il),An(V_,cd),An(Ed,Uh),Ed.prototype.ua=function(){Ko(this.g,"a")},Ed.prototype.ta=function(m){Ko(this.g,new L_(m))},Ed.prototype.sa=function(m){Ko(this.g,new V_)},Ed.prototype.ra=function(){Ko(this.g,"b")},Sp.prototype.createWebChannel=Sp.prototype.g,$s.prototype.send=$s.prototype.o,$s.prototype.open=$s.prototype.m,$s.prototype.close=$s.prototype.close,Ue=Tt.createWebChannelTransport=function(){return new Sp},ge=Tt.getStatEventTarget=function(){return hp()},Ye=Tt.Event=_u,Me=Tt.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},gp.NO_ERROR=0,gp.TIMEOUT=8,gp.HTTP_ERROR=6,mt=Tt.ErrorCode=gp,g_.COMPLETE="complete",Et=Tt.EventType=g_,ud.EventType=hc,hc.OPEN="a",hc.CLOSE="b",hc.ERROR="c",hc.MESSAGE="d",os.prototype.listen=os.prototype.K,_t=Tt.WebChannel=ud,yt=Tt.FetchXmlHttpFactory=Ap,yo.prototype.listenOnce=yo.prototype.L,yo.prototype.getLastError=yo.prototype.Ka,yo.prototype.getLastErrorCode=yo.prototype.Ba,yo.prototype.getStatus=yo.prototype.Z,yo.prototype.getResponseJson=yo.prototype.Oa,yo.prototype.getResponseText=yo.prototype.oa,yo.prototype.send=yo.prototype.ea,yo.prototype.setWithCredentials=yo.prototype.Ha,St=Tt.XhrIo=yo}).apply(typeof ht<"u"?ht:typeof self<"u"?self:typeof window<"u"?window:{});const Fe="@firebase/firestore";class xe{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}xe.UNAUTHENTICATED=new xe(null),xe.GOOGLE_CREDENTIALS=new xe("google-credentials-uid"),xe.FIRST_PARTY=new xe("first-party-uid"),xe.MOCK_USER=new xe("mock-user");let rt="10.12.1";const Rt=new Je.Vy("@firebase/firestore");function vn(){return Rt.logLevel}function tt(l,...n){if(Rt.logLevel<=Je.$b.DEBUG){const i=n.map(we);Rt.debug(`Firestore (${rt}): ${l}`,...i)}}function on(l,...n){if(Rt.logLevel<=Je.$b.ERROR){const i=n.map(we);Rt.error(`Firestore (${rt}): ${l}`,...i)}}function dt(l,...n){if(Rt.logLevel<=Je.$b.WARN){const i=n.map(we);Rt.warn(`Firestore (${rt}): ${l}`,...i)}}function we(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function H(l="Unexpected state"){const n=`FIRESTORE (${rt}) INTERNAL ASSERTION FAILED: `+l;throw on(n),new Error(n)}function X(l,n){l||H()}function se(l,n){return l}const ve={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Le extends Se.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class _e{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class Wt{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class dn{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(xe.UNAUTHENTICATED))}shutdown(){}}class Kt{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,i){this.changeListener=i,n.enqueueRetryable(()=>i(this.token.user))}shutdown(){this.changeListener=null}}class rn{constructor(n){this.t=n,this.currentUser=xe.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const p=q=>this.i!==u?(u=this.i,i(q)):Promise.resolve();let _=new _e;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new _e,n.enqueueRetryable(()=>p(this.currentUser))};const R=()=>{const q=_;n.enqueueRetryable((0,ue.A)(function*(){yield q.promise,yield p(s.currentUser)}))},k=q=>{tt("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=q,this.auth.addAuthTokenListener(this.o),R()};this.t.onInit(q=>k(q)),setTimeout(()=>{if(!this.auth){const q=this.t.getImmediate({optional:!0});q?k(q):(tt("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new _e)}},0),R()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(tt("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(X("string"==typeof s.accessToken),new Wt(s.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return X(null===n||"string"==typeof n),new xe(n)}}class Ln{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=xe.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class Zn{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new Ln(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(xe.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class nr{constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class er{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,i){const s=p=>{null!=p.error&&tt("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${p.error.message}`);const _=p.token!==this.R;return this.R=p.token,tt("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(p.token):Promise.resolve()};this.o=p=>{n.enqueueRetryable(()=>s(p))};const u=p=>{tt("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=p,this.appCheck.addTokenListener(this.o)};this.A.onInit(p=>u(p)),setTimeout(()=>{if(!this.appCheck){const p=this.A.getImmediate({optional:!0});p?u(p):tt("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(X("string"==typeof i.token),this.R=i.token,new nr(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function rr(l){const n=typeof self<"u"&&(self.crypto||self.msCrypto),i=new Uint8Array(l);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(i);else for(let s=0;sn?1:0}function Ot(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class pn{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new Le(ve.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new Le(ve.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new Le(ve.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new Le(ve.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return pn.fromMillis(Date.now())}static fromDate(n){return pn.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new pn(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?nt(this.nanoseconds,n.nanoseconds):nt(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class gn{constructor(n){this.timestamp=n}static fromTimestamp(n){return new gn(n)}static min(){return new gn(new pn(0,0))}static max(){return new gn(new pn(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Sr{constructor(n,i,s){void 0===i?i=0:i>n.length&&H(),void 0===s?s=n.length-i:s>n.length-i&&H(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Sr.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Sr?n.forEach(s=>{i.push(s)}):i.push(n),this.construct(i)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.length_)return 1}return n.lengthi.length?1:0}}class Mn extends Sr{construct(n,i,s){return new Mn(n,i,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const i=[];for(const s of n){if(s.indexOf("//")>=0)throw new Le(ve.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new Mn(i)}static emptyPath(){return new Mn([])}}const xn=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class mn extends Sr{construct(n,i,s){return new mn(n,i,s)}static isValidIdentifier(n){return xn.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),mn.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new mn(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const p=()=>{if(0===s.length)throw new Le(ve.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);i.push(s),s=""};let _=!1;for(;u=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===Mn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return Mn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new en(new Mn(n.slice()))}}class Pr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Pr(gn.min(),en.empty(),-1)}static max(){return new Pr(gn.max(),en.empty(),-1)}}function cr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=en.comparator(l.documentKey,n.documentKey),0!==i?i:nt(l.largestBatchId,n.largestBatchId))}const kr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class ii{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Ai(l){return Qr.apply(this,arguments)}function Qr(){return(Qr=(0,ue.A)(function*(l){if(l.code!==ve.FAILED_PRECONDITION||l.message!==kr)throw l;tt("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class pe{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(i=>{this.isDone=!0,this.result=i,this.nextCallback&&this.nextCallback(i)},i=>{this.isDone=!0,this.error=i,this.catchCallback&&this.catchCallback(i)})}catch(n){return this.next(void 0,n)}next(n,i){return this.callbackAttached&&H(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new pe((s,u)=>{this.nextCallback=p=>{this.wrapSuccess(n,p).next(s,u)},this.catchCallback=p=>{this.wrapFailure(i,p).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof pe?i:pe.resolve(i)}catch(i){return pe.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):pe.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):pe.reject(i)}static resolve(n){return new pe((i,s)=>{i(n)})}static reject(n){return new pe((i,s)=>{s(n)})}static waitFor(n){return new pe((i,s)=>{let u=0,p=0,_=!1;n.forEach(R=>{++u,R.next(()=>{++p,_&&p===u&&i()},k=>s(k))}),_=!0,p===u&&i()})}static or(n){let i=pe.resolve(!1);for(const s of n)i=i.next(u=>u?pe.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,p)=>{s.push(i.call(this,u,p))}),this.waitFor(s)}static mapArray(n,i){return new pe((s,u)=>{const p=n.length,_=new Array(p);let R=0;for(let k=0;k{_[q]=ye,++R,R===p&&s(_)},ye=>u(ye))}})}static doWhile(n,i){return new pe((s,u)=>{const p=()=>{!0===n()?i().next(()=>{p()},u):s()};p()})}}function He(l){return"IndexedDbTransactionError"===l.name}let _n=(()=>{class l{constructor(i,s){this.previousValue=i,s&&(s.sequenceNumberHandler=u=>this.ie(u),this.se=u=>s.writeSequenceNumber(u))}ie(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue}next(){const i=++this.previousValue;return this.se&&this.se(i),i}}return l.oe=-1,l})();function qn(l){return null==l}function hn(l){return 0===l&&1/l==-1/0}function Cr(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function ai(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function ei(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class Lr{constructor(n,i){this.comparator=n,this.root=i||Wn.EMPTY}insert(n,i){return new Lr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,Wn.BLACK,null,null))}remove(n){return new Lr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,Wn.BLACK,null,null))}get(n){let i=this.root;for(;!i.isEmpty();){const s=this.comparator(n,i.key);if(0===s)return i.value;s<0?i=i.left:s>0&&(i=i.right)}return null}indexOf(n){let i=0,s=this.root;for(;!s.isEmpty();){const u=this.comparator(n,s.key);if(0===u)return i+s.left.size;u<0?s=s.left:(i+=s.left.size+1,s=s.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((i,s)=>(n(i,s),!1))}toString(){const n=[];return this.inorderTraversal((i,s)=>(n.push(`${i}:${s}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new mi(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new mi(this.root,n,this.comparator,!1)}getReverseIterator(){return new mi(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new mi(this.root,n,this.comparator,!0)}}class mi{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let p=1;for(;!n.isEmpty();)if(p=i?s(n.key,i):1,i&&u&&(p*=-1),p<0)n=this.isReverse?n.left:n.right;else{if(0===p){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const i={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return i}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class Wn{constructor(n,i,s,u,p){this.key=n,this.value=i,this.color=null!=s?s:Wn.RED,this.left=null!=u?u:Wn.EMPTY,this.right=null!=p?p:Wn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,p){return new Wn(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=p?p:this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,i,s){let u=this;const p=s(n,u.key);return u=p<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===p?u.copy(null,i,null,null,null):u.copy(null,null,null,null,u.right.insert(n,i,s)),u.fixUp()}removeMin(){if(this.left.isEmpty())return Wn.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,i){let s,u=this;if(i(n,u.key)<0)u.left.isEmpty()||u.left.isRed()||u.left.left.isRed()||(u=u.moveRedLeft()),u=u.copy(null,null,null,u.left.remove(n,i),null);else{if(u.left.isRed()&&(u=u.rotateRight()),u.right.isEmpty()||u.right.isRed()||u.right.left.isRed()||(u=u.moveRedRight()),0===i(n,u.key)){if(u.right.isEmpty())return Wn.EMPTY;s=u.right.min(),u=u.copy(s.key,s.value,null,null,u.right.removeMin())}u=u.copy(null,null,null,null,u.right.remove(n,i))}return u.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,Wn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,Wn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),i=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,i)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw H();const n=this.left.check();if(n!==this.right.check())throw H();return n+(this.isRed()?0:1)}}Wn.EMPTY=null,Wn.RED=!0,Wn.BLACK=!1,Wn.EMPTY=new class{constructor(){this.size=0}get key(){throw H()}get value(){throw H()}get color(){throw H()}get left(){throw H()}get right(){throw H()}copy(n,i,s,u,p){return this}insert(n,i,s){return new Wn(n,i)}remove(n,i){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Hn{constructor(n){this.comparator=n,this.data=new Lr(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((i,s)=>(n(i),!1))}forEachInRange(n,i){const s=this.data.getIteratorFrom(n[0]);for(;s.hasNext();){const u=s.getNext();if(this.comparator(u.key,n[1])>=0)return;i(u.key)}}forEachWhile(n,i){let s;for(s=void 0!==i?this.data.getIteratorFrom(i):this.data.getIterator();s.hasNext();)if(!n(s.getNext().key))return}firstAfterOrEqual(n){const i=this.data.getIteratorFrom(n);return i.hasNext()?i.getNext().key:null}getIterator(){return new ao(this.data.getIterator())}getIteratorFrom(n){return new ao(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let i=this;return i.size{i=i.add(s)}),i}isEqual(n){if(!(n instanceof Hn)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(0!==this.comparator(u,p))return!1}return!0}toArray(){const n=[];return this.forEach(i=>{n.push(i)}),n}toString(){const n=[];return this.forEach(i=>n.push(i)),"SortedSet("+n.toString()+")"}copy(n){const i=new Hn(this.comparator);return i.data=n,i}}class ao{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Ci{constructor(n){this.fields=n,n.sort(mn.comparator)}static empty(){return new Ci([])}unionWith(n){let i=new Hn(mn.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new Ci(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return Ot(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class Eo extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class oi{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(p){throw typeof DOMException<"u"&&p instanceof DOMException?new Eo("Invalid base64 string: "+p):p}}(n);return new oi(i)}static fromUint8Array(n){const i=function(u){let p="";for(let _=0;_nre(i,n))}function Ie(l,n){if(l===n)return 0;const i=j(l),s=j(n);if(i!==s)return nt(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return nt(l.booleanValue,n.booleanValue);case 2:return function(p,_){const R=le(p.integerValue||p.doubleValue),k=le(_.integerValue||_.doubleValue);return Rk?1:R===k?0:isNaN(R)?isNaN(k)?0:-1:1}(l,n);case 3:return ot(l.timestampValue,n.timestampValue);case 4:return ot(st(l),st(n));case 5:return nt(l.stringValue,n.stringValue);case 6:return function(p,_){const R=W(p),k=W(_);return R.compareTo(k)}(l.bytesValue,n.bytesValue);case 7:return function(p,_){const R=p.split("/"),k=_.split("/");for(let q=0;qn.mapValue.fields[i]=sn(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=sn(l.arrayValue.values[i]);return n}return Object.assign({},l)}function cn(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class Vn{constructor(n){this.value=n}static empty(){return new Vn({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(R)){const k=this.getFieldsMap(i);this.applyChanges(k,s,u),s={},u=[],i=R.popLast()}_?s[R.lastSegment()]=sn(_):u.push(R.lastSegment())});const p=this.getFieldsMap(i);this.applyChanges(p,s,u)}delete(n){const i=this.field(n.popLast());Yt(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return re(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=p);for(const u of s)delete n[u]}clone(){return new Vn(sn(this.value))}}function qr(l){const n=[];return ai(l.fields,(i,s)=>{const u=new mn([i]);if(Yt(s)){const p=qr(s.mapValue).fields;if(0===p.length)n.push(u);else for(const _ of p)n.push(u.child(_))}else n.push(u)}),new Ci(n)}class jr{constructor(n,i,s,u,p,_,R){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=p,this.data=_,this.documentState=R}static newInvalidDocument(n){return new jr(n,0,gn.min(),gn.min(),gn.min(),Vn.empty(),0)}static newFoundDocument(n,i,s,u){return new jr(n,1,i,gn.min(),s,u,0)}static newNoDocument(n,i){return new jr(n,2,i,gn.min(),gn.min(),Vn.empty(),0)}static newUnknownDocument(n,i){return new jr(n,3,i,gn.min(),gn.min(),Vn.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(gn.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=i,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=Vn.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=Vn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=gn.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof jr&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new jr(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class br{constructor(n,i){this.position=n,this.inclusive=i}}function wi(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return H()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Ti extends as{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Ti(n,i)}matches(n){return Qo(this)?void 0===this.filters.find(i=>!i.matches(n)):void 0!==this.filters.find(i=>i.matches(n))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((n,i)=>n.concat(i.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function Qo(l){return"and"===l.op}function Bo(l){return function Io(l){for(const n of l.filters)if(n instanceof Ti)return!1;return!0}(l)&&Qo(l)}function Ss(l){if(l instanceof Ur)return l.field.canonicalString()+l.op.toString()+sr(l.value);if(Bo(l))return l.filters.map(n=>Ss(n)).join(",");{const n=l.filters.map(i=>Ss(i)).join(",");return`${l.op}(${n})`}}function no(l,n){return l instanceof Ur?(s=l,(u=n)instanceof Ur&&s.op===u.op&&s.field.isEqual(u.field)&&re(s.value,u.value)):l instanceof Ti?function(s,u){return u instanceof Ti&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((p,_,R)=>p&&no(_,u.filters[R]),!0)}(l,n):void H();var s,u}function Kr(l){return l instanceof Ur?`${(i=l).field.canonicalString()} ${i.op} ${sr(i.value)}`:l instanceof Ti?function(i){return i.op.toString()+" {"+i.getFilters().map(Kr).join(" ,")+"}"}(l):"Filter";var i}class fo extends Ur{constructor(n,i,s){super(n,i,s),this.key=en.fromName(s.referenceValue)}matches(n){const i=en.comparator(n.key,this.key);return this.matchesComparison(i)}}class ka extends Ur{constructor(n,i){super(n,"in",i),this.keys=Hs(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class Rs extends Ur{constructor(n,i){super(n,"not-in",i),this.keys=Hs(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function Hs(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>en.fromName(s.referenceValue))}class Ms extends Ur{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return et(i)&&P(i.arrayValue,this.value)}}class ls extends Ur{constructor(n,i){super(n,"in",i)}matches(n){const i=n.data.field(this.field);return null!==i&&P(this.value.arrayValue,i)}}class us extends Ur{constructor(n,i){super(n,"not-in",i)}matches(n){if(P(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!P(this.value.arrayValue,i)}}class Uo extends Ur{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!et(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>P(this.value.arrayValue,s))}}class vs{constructor(n,i=null,s=[],u=[],p=null,_=null,R=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=p,this.startAt=_,this.endAt=R,this.ue=null}}function Ps(l,n=null,i=[],s=[],u=null,p=null,_=null){return new vs(l,n,i,s,u,p,_)}function xs(l){const n=se(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>Ss(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(p=s).field.canonicalString()+p.dir;var p}).join(","),qn(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>sr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>sr(s)).join(",")),n.ue=i}return n.ue}function Ao(l,n){if(l.limit!==n.limit||l.orderBy.length!==n.orderBy.length)return!1;for(let i=0;i0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(_){let R=new Hn(mn.comparator);return _.filters.forEach(k=>{k.getFlattenedFilters().forEach(q=>{q.isInequality()&&(R=R.add(q.field))})}),R})(n).forEach(p=>{i.has(p.canonicalString())||p.isKeyField()||n.ce.push(new ki(p,s))}),i.has(mn.keyField().canonicalString())||n.ce.push(new ki(mn.keyField(),s))}return n.ce}function Xn(l){const n=se(l);return n.le||(n.le=function oo(l,n){if("F"===l.limitType)return Ps(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new ki(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new br(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new br(l.startAt.position,l.startAt.inclusive):null;return Ps(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,yn(l))),n.le}function So(l,n,i){return new K(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Yo(l,n){return Ao(Xn(l),Xn(n))&&l.limitType===n.limitType}function Fa(l){return`${xs(Xn(l))}|lt:${l.limitType}`}function _s(l){return`Query(target=${function(i){let s=i.path.canonicalString();return null!==i.collectionGroup&&(s+=" collectionGroup="+i.collectionGroup),i.filters.length>0&&(s+=`, filters: [${i.filters.map(u=>Kr(u)).join(", ")}]`),qn(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>sr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>sr(u)).join(",")),`Target(${s})`}(Xn(l))}; limitType=${l.limitType})`}function Gs(l,n){return n.isFoundDocument()&&function(s,u){const p=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(p):en.isDocumentKey(s.path)?s.path.isEqual(p):s.path.isImmediateParentOf(p)}(l,n)&&function(s,u){for(const p of yn(s))if(!p.field.isKeyField()&&null===u.data.field(p.field))return!1;return!0}(l,n)&&function(s,u){for(const p of s.filters)if(!p.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,R,k){const q=wi(_,R,k);return _.inclusive?q<=0:q<0}(s.startAt,yn(s),u)||s.endAt&&!function(_,R,k){const q=wi(_,R,k);return _.inclusive?q>=0:q>0}(s.endAt,yn(s),u)));var s,u}function ul(l){return(n,i)=>{let s=!1;for(const u of yn(l)){const p=pa(u,n,i);if(0!==p)return p;s=s||u.field.isKeyField()}return 0}}function pa(l,n,i){const s=l.field.isKeyField()?en.comparator(n.key,i.key):function(p,_,R){const k=_.data.field(p),q=R.data.field(p);return null!==k&&null!==q?Ie(k,q):H()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return H()}}class $o{constructor(n,i){this.mapKeyFn=n,this.equalsFn=i,this.inner={},this.innerSize=0}get(n){const i=this.mapKeyFn(n),s=this.inner[i];if(void 0!==s)for(const[u,p]of s)if(this.equalsFn(u,n))return p}has(n){return void 0!==this.get(n)}set(n,i){const s=this.mapKeyFn(n),u=this.inner[s];if(void 0===u)return this.inner[s]=[[n,i]],void this.innerSize++;for(let p=0;p{for(const[u,p]of s)n(u,p)})}isEmpty(){return ei(this.inner)}size(){return this.innerSize}}const Jo=new Lr(en.comparator);function Rr(){return Jo}const ji=new Lr(en.comparator);function zi(...l){let n=ji;for(const i of l)n=n.insert(i.key,i);return n}function po(l){let n=ji;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function bi(){return jo()}function La(){return jo()}function jo(){return new $o(l=>l.toString(),(l,n)=>l.isEqual(n))}const ys=new Lr(en.comparator),cl=new Hn(en.comparator);function Hr(...l){let n=cl;for(const i of l)n=n.add(i);return n}const dl=new Hn(nt);function Va(l,n){if(l.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:hn(n)?"-0":n}}function Es(l){return{integerValue:""+l}}function hl(l,n){return function Cn(l){return"number"==typeof l&&Number.isInteger(l)&&!hn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?Es(n):Va(l,n)}class Ba{constructor(){this._=void 0}}function Ul(l,n,i){return l instanceof Is?function(u,p){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return p&&$e(p)&&(p=Ve(p)),p&&(_.fields.__previous_value__=p),{mapValue:_}}(i,n):l instanceof Os?Zo(l,n):l instanceof As?zl(l,n):function(u,p){const _=jl(u,p),R=Su(_)+Su(u.Pe);return Ne(_)&&Ne(u.Pe)?Es(R):Va(u.serializer,R)}(l,n)}function $l(l,n,i){return l instanceof Os?Zo(l,n):l instanceof As?zl(l,n):i}function jl(l,n){return l instanceof es?Ne(s=n)||(p=s)&&"doubleValue"in p?n:{integerValue:0}:null;var s,p}class Is extends Ba{}class Os extends Ba{constructor(n){super(),this.elements=n}}function Zo(l,n){const i=Hl(n);for(const s of l.elements)i.some(u=>re(u,s))||i.push(s);return{arrayValue:{values:i}}}class As extends Ba{constructor(n){super(),this.elements=n}}function zl(l,n){let i=Hl(n);for(const s of l.elements)i=i.filter(u=>!re(u,s));return{arrayValue:{values:i}}}class es extends Ba{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function Su(l){return le(l.integerValue||l.doubleValue)}function Hl(l){return et(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Ns{constructor(n,i){this.version=n,this.transformResults=i}}class Ui{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Ui}static exists(n){return new Ui(void 0,n)}static updateTime(n){return new Ui(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function ga(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class Ua{}function ma(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new $(l.key,Ui.none()):new Ks(l.key,l.data,Ui.none());{const i=l.data,s=Vn.empty();let u=new Hn(mn.comparator);for(let p of n.fields)if(!u.has(p)){let _=i.field(p);null===_&&p.length>1&&(p=p.popLast(),_=i.field(p)),null===_?s.delete(p):s.set(p,_),u=u.add(p)}return new lo(l.key,s,new Ci(u.toArray()),Ui.none())}}function $a(l,n,i){l instanceof Ks?function(u,p,_){const R=u.value.clone(),k=ya(u.fieldTransforms,p,_.transformResults);R.setAll(k),p.convertToFoundDocument(_.version,R).setHasCommittedMutations()}(l,n,i):l instanceof lo?function(u,p,_){if(!ga(u.precondition,p))return void p.convertToUnknownDocument(_.version);const R=ya(u.fieldTransforms,p,_.transformResults),k=p.data;k.setAll(Gl(u)),k.setAll(R),p.convertToFoundDocument(_.version,k).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zo(l,n,i,s){return l instanceof Ks?function(p,_,R,k){if(!ga(p.precondition,_))return R;const q=p.value.clone(),ye=C(p.fieldTransforms,k,_);return q.setAll(ye),_.convertToFoundDocument(_.version,q).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(p,_,R,k){if(!ga(p.precondition,_))return R;const q=C(p.fieldTransforms,k,_),ye=_.data;return ye.setAll(Gl(p)),ye.setAll(q),_.convertToFoundDocument(_.version,ye).setHasLocalMutations(),null===R?null:R.unionWith(p.fieldMask.fields).unionWith(p.fieldTransforms.map(ze=>ze.field))}(l,n,i,s):(R=i,ga(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):R);var _,R}function va(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),p=jl(s.transform,u||null);null!=p&&(null===i&&(i=Vn.empty()),i.set(s.field,p))}return i||null}function _a(l,n){return l.type===n.type&&!!l.key.isEqual(n.key)&&!!l.precondition.isEqual(n.precondition)&&(u=n.fieldTransforms,!!(void 0===(s=l.fieldTransforms)&&void 0===u||s&&u&&Ot(s,u,(p,_)=>function Lo(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof Os&&u instanceof Os||s instanceof As&&u instanceof As?Ot(s.elements,u.elements,re):s instanceof es&&u instanceof es?re(s.Pe,u.Pe):s instanceof Is&&u instanceof Is);var s,u}(p,_))))&&(0===l.type?l.value.isEqual(n.value):1!==l.type||l.data.isEqual(n.data)&&l.fieldMask.isEqual(n.fieldMask));var s,u}class Ks extends Ua{constructor(n,i,s,u=[]){super(),this.key=n,this.value=i,this.precondition=s,this.fieldTransforms=u,this.type=0}getFieldMask(){return null}}class lo extends Ua{constructor(n,i,s,u,p=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=p,this.type=1}getFieldMask(){return this.fieldMask}}function Gl(l){const n=new Map;return l.fieldMask.fields.forEach(i=>{if(!i.isEmpty()){const s=l.data.field(i);n.set(i,s)}}),n}function ya(l,n,i){const s=new Map;X(l.length===i.length);for(let u=0;u{const p=n.get(u.key),_=p.overlayedDocument;let R=this.applyToLocalView(_,p.mutatedFields);R=i.has(u.key)?null:R;const k=ma(_,R);null!==k&&s.set(u.key,k),_.isValidDocument()||_.convertToNoDocument(gn.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),Hr())}isEqual(n){return this.batchId===n.batchId&&Ot(this.mutations,n.mutations,(i,s)=>_a(i,s))&&Ot(this.baseMutations,n.baseMutations,(i,s)=>_a(i,s))}}class Ae{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){X(n.mutations.length===s.length);let u=function(){return ys}();const p=n.mutations;for(let _=0;_=8)throw new Di(`Invalid padding: ${i}`);if(s<0)throw new Di(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Di(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Di(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=Ze.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply(Ze.fromNumber(s)));return 1===u.compare(Hi)&&(u=new Ze([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(R)),_}insert(n){if(0===this.Ie)return;const i=vi(n),[s,u]=Rn(i);for(let p=0;p0&&(this.we=!0,this.pe=n)}Ce(){let n=Hr(),i=Hr(),s=Hr();return this.ge.forEach((u,p)=>{switch(p){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:H()}}),new Si(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=Xs()}Fe(n,i){this.we=!0,this.ge=this.ge.insert(n,i)}Me(n){this.we=!0,this.ge=this.ge.remove(n)}xe(){this.fe+=1}Oe(){this.fe-=1,X(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class ks{constructor(n){this.Le=n,this.Be=new Map,this.ke=Rr(),this.qe=Br(),this.Qe=new Lr(nt)}Ke(n){for(const i of n.Re)n.Ve&&n.Ve.isFoundDocument()?this.$e(i,n.Ve):this.Ue(i,n.key,n.Ve);for(const i of n.removedTargetIds)this.Ue(i,n.key,n.Ve)}We(n){this.forEachTarget(n,i=>{const s=this.Ge(i);switch(n.state){case 0:this.ze(i)&&s.De(n.resumeToken);break;case 1:s.Oe(),s.Se||s.ve(),s.De(n.resumeToken);break;case 2:s.Oe(),s.Se||this.removeTarget(i);break;case 3:this.ze(i)&&(s.Ne(),s.De(n.resumeToken));break;case 4:this.ze(i)&&(this.je(i),s.De(n.resumeToken));break;default:H()}})}forEachTarget(n,i){n.targetIds.length>0?n.targetIds.forEach(i):this.Be.forEach((s,u)=>{this.ze(u)&&i(u)})}He(n){const i=n.targetId,s=n.me.count,u=this.Je(i);if(u){const p=u.target;if(Fo(p))if(0===s){const _=new en(p.path);this.Ue(i,_,jr.newNoDocument(_,gn.min()))}else X(1===s);else{const _=this.Ye(i);if(_!==s){const R=this.Ze(n),k=R?this.Xe(R,n,_):1;0!==k&&(this.je(i),this.Qe=this.Qe.insert(i,2===k?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:p=0}=i;let _,R;try{_=W(s).toUint8Array()}catch(k){if(k instanceof Eo)return dt("Decoding the base64 bloom filter in existence filter failed ("+k.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw k}try{R=new Kn(_,u,p)}catch(k){return dt(k instanceof Di?"BloomFilter error: ":"Applying bloom filter failed: ",k),null}return 0===R.Ie?null:R}Xe(n,i,s){return i.me.count===s-this.nt(n,i.targetId)?0:2}nt(n,i){const s=this.Le.getRemoteKeysForTarget(i);let u=0;return s.forEach(p=>{const _=this.Le.tt(),R=`projects/${_.projectId}/databases/${_.database}/documents/${p.path.canonicalString()}`;n.mightContain(R)||(this.Ue(i,p,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((p,_)=>{const R=this.Je(_);if(R){if(p.current&&Fo(R.target)){const k=new en(R.target.path);null!==this.ke.get(k)||this.it(_,k)||this.Ue(_,k,jr.newNoDocument(k,n))}p.be&&(i.set(_,p.Ce()),p.ve())}});let s=Hr();this.qe.forEach((p,_)=>{let R=!0;_.forEachWhile(k=>{const q=this.Je(k);return!q||"TargetPurposeLimboResolution"===q.purpose||(R=!1,!1)}),R&&(s=s.add(p))}),this.ke.forEach((p,_)=>_.setReadTime(n));const u=new qi(n,i,this.Qe,this.ke,s);return this.ke=Rr(),this.qe=Br(),this.Qe=new Lr(nt),u}$e(n,i){if(!this.ze(n))return;const s=this.it(n,i.key)?2:0;this.Ge(n).Fe(i.key,s),this.ke=this.ke.insert(i.key,i),this.qe=this.qe.insert(i.key,this.st(i.key).add(n))}Ue(n,i,s){if(!this.ze(n))return;const u=this.Ge(n);this.it(n,i)?u.Fe(i,1):u.Me(i),this.qe=this.qe.insert(i,this.st(i).delete(n)),s&&(this.ke=this.ke.insert(i,s))}removeTarget(n){this.Be.delete(n)}Ye(n){const i=this.Ge(n).Ce();return this.Le.getRemoteKeysForTarget(n).size+i.addedDocuments.size-i.removedDocuments.size}xe(n){this.Ge(n).xe()}Ge(n){let i=this.Be.get(n);return i||(i=new Ki,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new Hn(nt),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||tt("WatchChangeAggregator","Detected inactive target",n),i}Je(n){const i=this.Be.get(n);return i&&i.Se?null:this.Le.ot(n)}je(n){this.Be.set(n,new Ki),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function Br(){return new Lr(en.comparator)}function Xs(){return new Lr(en.comparator)}const vc={asc:"ASCENDING",desc:"DESCENDING"},fl={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Gi={and:"AND",or:"OR"};class Co{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function Cs(l,n){return l.useProto3Json||qn(n)?n:{value:n}}function Go(l,n){return l.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function qs(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function _c(l,n){return Go(l,n.toTimestamp())}function Mi(l){return X(!!l),gn.fromTimestamp(function(i){const s=he(i);return new pn(s.seconds,s.nanos)}(l))}function Qs(l,n){return cs(l,n).canonicalString()}function cs(l,n){const i=(u=l,new Mn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Gr(l){const n=Mn.fromString(l);return X(E(n)),n}function Ea(l,n){return Qs(l.databaseId,n.path)}function ns(l,n){const i=Gr(n);if(i.get(1)!==l.databaseId.projectId)throw new Le(ve.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+i.get(1)+" vs "+l.databaseId.projectId);if(i.get(3)!==l.databaseId.database)throw new Le(ve.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new en(Xi(i))}function Wo(l,n){return Qs(l.databaseId,n)}function Ia(l){return new Mn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Xi(l){return X(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Ru(l,n,i){return{name:Ea(l,n),fields:i.value.mapValue.fields}}function Kl(l,n){return{documents:[Wo(l,n.path)]}}function gl(l,n){const i={structuredQuery:{}},s=n.path;let u;null!==n.collectionGroup?(u=s,i.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(u=s.popLast(),i.structuredQuery.from=[{collectionId:s.lastSegment()}]),i.parent=Wo(l,u);const p=function(q){if(0!==q.length)return Kh(Ti.create(q,"and"))}(n.filters);p&&(i.structuredQuery.where=p);const _=function(q){if(0!==q.length)return q.map(ye=>{return{field:Da((pt=ye).field),direction:ja(pt.dir)};var pt})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const R=Cs(l,n.limit);return null!==R&&(i.structuredQuery.limit=R),n.startAt&&(i.structuredQuery.startAt={before:(q=n.startAt).inclusive,values:q.position}),n.endAt&&(i.structuredQuery.endAt=function(q){return{before:!q.inclusive,values:q.position}}(n.endAt)),{_t:i,parent:u};var q}function Aa(l){let n=function pl(l){const n=Gr(l);return 4===n.length?Mn.emptyPath():Xi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){X(1===s);const ye=i.from[0];ye.allDescendants?u=ye.collectionId:n=n.child(ye.collectionId)}let p=[];i.where&&(p=function(ze){const pt=Ca(ze);return pt instanceof Ti&&Bo(pt)?pt.getFilters():[pt]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(pt=>{return new ki(za((An=pt).field),function(Sn){switch(Sn){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(An.direction));var An}));let R=null;i.limit&&(R=function(ze){let pt;return pt="object"==typeof ze?ze.value:ze,qn(pt)?null:pt}(i.limit));let k=null;var ze;i.startAt&&(k=new br((ze=i.startAt).values||[],!!ze.before));let q=null;return i.endAt&&(q=function(ze){return new br(ze.values||[],!ze.before)}(i.endAt)),function N(l,n,i,s,u,p,_,R){return new K(l,n,i,s,u,p,_,R)}(n,u,_,p,R,"F",k,q)}function Ca(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=za(i.unaryFilter.field);return Ur.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=za(i.unaryFilter.field);return Ur.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const p=za(i.unaryFilter.field);return Ur.create(p,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=za(i.unaryFilter.field);return Ur.create(_,"!=",{nullValue:"NULL_VALUE"});default:return H()}}(l):void 0!==l.fieldFilter?Ur.create(za((i=l).fieldFilter.field),function(u){switch(u){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return H()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return Ti.create(i.compositeFilter.filters.map(s=>Ca(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return H()}}(i.compositeFilter.op))}(l):H();var i}function ja(l){return vc[l]}function tg(l){return fl[l]}function Td(l){return Gi[l]}function Da(l){return{fieldPath:l.canonicalString()}}function za(l){return mn.fromServerFormat(l.fieldPath)}function Kh(l){return l instanceof Ur?function(i){if("=="===i.op){if(It(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NAN"}};if(wt(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(It(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NOT_NAN"}};if(wt(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Da(i.field),op:tg(i.op),value:i.value}}}(l):l instanceof Ti?function(i){const s=i.getFilters().map(u=>Kh(u));return 1===s.length?s[0]:{compositeFilter:{op:Td(i.op),filters:s}}}(l):H()}function bd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function E(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class b{constructor(n,i,s,u,p=gn.min(),_=gn.min(),R=oi.EMPTY_BYTE_STRING,k=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=p,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=R,this.expectedCount=k}withSequenceNumber(n){return new b(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class O{constructor(n){this.ct=n}}function Vr(l){const n=Aa({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?So(n,n.limit,"L"):n}class Ta{constructor(){}Pt(n,i){this.It(n,i),i.Tt()}It(n,i){if("nullValue"in n)this.Et(i,5);else if("booleanValue"in n)this.Et(i,10),i.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(i,15),i.dt(le(n.integerValue));else if("doubleValue"in n){const s=le(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),hn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=he(s)),i.At(`${s.seconds||""}`),i.dt(s.nanos||0)}else if("stringValue"in n)this.Rt(n.stringValue,i),this.Vt(i);else if("bytesValue"in n)this.Et(i,30),i.ft(W(n.bytesValue)),this.Vt(i);else if("referenceValue"in n)this.gt(n.referenceValue,i);else if("geoPointValue"in n){const s=n.geoPointValue;this.Et(i,45),i.dt(s.latitude||0),i.dt(s.longitude||0)}else"mapValue"in n?cn(n)?this.Et(i,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,i),this.Vt(i)):"arrayValue"in n?(this.wt(n.arrayValue,i),this.Vt(i)):H()}Rt(n,i){this.Et(i,25),this.St(n,i)}St(n,i){i.At(n)}yt(n,i){const s=n.fields||{};this.Et(i,55);for(const u of Object.keys(s))this.Rt(u,i),this.It(s[u],i)}wt(n,i){const s=n.values||[];this.Et(i,50);for(const u of s)this.It(u,i)}gt(n,i){this.Et(i,37),en.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Ta.bt=new Ta;class Ts{constructor(){this._n=new Cc}addToCollectionParentIndex(n,i){return this._n.add(i),pe.resolve()}getCollectionParents(n,i){return pe.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return pe.resolve()}deleteFieldIndex(n,i){return pe.resolve()}deleteAllFieldIndexes(n){return pe.resolve()}createTargetIndexes(n,i){return pe.resolve()}getDocumentsMatchingTarget(n,i){return pe.resolve(null)}getIndexType(n,i){return pe.resolve(0)}getFieldIndexes(n,i){return pe.resolve([])}getNextCollectionGroupToUpdate(n){return pe.resolve(null)}getMinOffset(n,i){return pe.resolve(Pr.min())}getMinOffsetFromCollectionGroup(n,i){return pe.resolve(Pr.min())}updateCollectionGroup(n,i,s){return pe.resolve()}updateIndexEntries(n,i){return pe.resolve()}}class Cc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new Hn(Mn.comparator),p=!u.has(s);return this.index[i]=u.add(s),p}has(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i];return u&&u.has(s)}getEntries(n){return(this.index[n]||new Hn(Mn.comparator)).toArray()}}new Uint8Array(0);class gr{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new gr(n,gr.DEFAULT_COLLECTION_PERCENTILE,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}gr.DEFAULT_COLLECTION_PERCENTILE=10,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,gr.DEFAULT=new gr(41943040,gr.DEFAULT_COLLECTION_PERCENTILE,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),gr.DISABLED=new gr(-1,0,0);class _l{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new _l(0)}static Ln(){return new _l(-1)}}class na{constructor(){this.changes=new $o(n=>n.toString(),(n,i)=>n.isEqual(i)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,i){this.assertNotApplied(),this.changes.set(n,jr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?pe.resolve(s):this.getFromCache(n,i)}getEntries(n,i){return this.getAllFromCache(n,i)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class bs{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class oa{constructor(n,i,s,u){this.remoteDocumentCache=n,this.mutationQueue=i,this.documentOverlayCache=s,this.indexManager=u}getDocument(n,i){let s=null;return this.documentOverlayCache.getOverlay(n,i).next(u=>(s=u,this.remoteDocumentCache.getEntry(n,i))).next(u=>(null!==s&&zo(s.mutation,u,Ci.empty(),pn.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,Hr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=Hr()){const u=bi();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(p=>{let _=zi();return p.forEach((R,k)=>{_=_.insert(R,k.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=bi();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,Hr()))}populateOverlays(n,i,s){const u=[];return s.forEach(p=>{i.has(p)||u.push(p)}),this.documentOverlayCache.getOverlays(n,u).next(p=>{p.forEach((_,R)=>{i.set(_,R)})})}computeViews(n,i,s,u){let p=Rr();const _=jo(),R=jo();return i.forEach((k,q)=>{const ye=s.get(q.key);u.has(q.key)&&(void 0===ye||ye.mutation instanceof lo)?p=p.insert(q.key,q):void 0!==ye?(_.set(q.key,ye.mutation.getFieldMask()),zo(ye.mutation,q,ye.mutation.getFieldMask(),pn.now())):_.set(q.key,Ci.empty())}),this.recalculateAndSaveOverlays(n,p).next(k=>(k.forEach((q,ye)=>_.set(q,ye)),i.forEach((q,ye)=>{var ze;return R.set(q,new bs(ye,null!==(ze=_.get(q))&&void 0!==ze?ze:null))}),R))}recalculateAndSaveOverlays(n,i){const s=jo();let u=new Lr((_,R)=>_-R),p=Hr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const R of _)R.keys().forEach(k=>{const q=i.get(k);if(null===q)return;let ye=s.get(k)||Ci.empty();ye=R.applyToLocalView(q,ye),s.set(k,ye);const ze=(u.get(R.batchId)||Hr()).add(k);u=u.insert(R.batchId,ze)})}).next(()=>{const _=[],R=u.getReverseIterator();for(;R.hasNext();){const k=R.getNext(),q=k.key,ye=k.value,ze=La();ye.forEach(pt=>{if(!p.has(pt)){const Ht=ma(i.get(pt),s.get(pt));null!==Ht&&ze.set(pt,Ht),p=p.add(pt)}}),_.push(this.documentOverlayCache.saveOverlays(n,q,ze))}return pe.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return en.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function ke(l){return null!==l.collectionGroup}(i)?this.getDocumentsMatchingCollectionGroupQuery(n,i,s,u):this.getDocumentsMatchingCollectionQuery(n,i,s,u);var _}getNextDocuments(n,i,s,u){return this.remoteDocumentCache.getAllFromCollectionGroup(n,i,s,u).next(p=>{const _=u-p.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-p.size):pe.resolve(bi());let R=-1,k=p;return _.next(q=>pe.forEach(q,(ye,ze)=>(R{k=k.insert(ye,pt)}))).next(()=>this.populateOverlays(n,q,p)).next(()=>this.computeViews(n,k,q,Hr())).next(ye=>({batchId:R,changes:po(ye)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new en(i)).next(s=>{let u=zi();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const p=i.collectionGroup;let _=zi();return this.indexManager.getCollectionParents(n,p).next(R=>pe.forEach(R,k=>{const q=(ze=i,pt=k.child(p),new K(pt,null,ze.explicitOrderBy.slice(),ze.filters.slice(),ze.limit,ze.limitType,ze.startAt,ze.endAt));var ze,pt;return this.getDocumentsMatchingCollectionQuery(n,q,s,u).next(ye=>{ye.forEach((ze,pt)=>{_=_.insert(ze,pt)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let p;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(p=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,p,u))).next(_=>{p.forEach((k,q)=>{const ye=q.getKey();null===_.get(ye)&&(_=_.insert(ye,jr.newInvalidDocument(ye)))});let R=zi();return _.forEach((k,q)=>{const ye=p.get(k);void 0!==ye&&zo(ye.mutation,q,Ci.empty(),pn.now()),Gs(i,q)&&(R=R.insert(k,q))}),R})}}class og{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return pe.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Mi(u.createTime)}),pe.resolve();var u}getNamedQuery(n,i){return pe.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:Vr(u.bundledQuery),readTime:Mi(u.readTime)}),pe.resolve();var u}}class Sc{constructor(){this.overlays=new Lr(en.comparator),this.hr=new Map}getOverlay(n,i){return pe.resolve(this.overlays.get(i))}getOverlays(n,i){const s=bi();return pe.forEach(i,u=>this.getOverlay(n,u).next(p=>{null!==p&&s.set(u,p)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,p)=>{this.ht(n,i,p)}),pe.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(p=>this.overlays=this.overlays.remove(p)),this.hr.delete(s)),pe.resolve()}getOverlaysForCollection(n,i,s){const u=bi(),p=i.length+1,_=new en(i.child("")),R=this.overlays.getIteratorFrom(_);for(;R.hasNext();){const k=R.getNext().value,q=k.getKey();if(!i.isPrefixOf(q.path))break;q.path.length===p&&k.largestBatchId>s&&u.set(k.getKey(),k)}return pe.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let p=new Lr((q,ye)=>q-ye);const _=this.overlays.getIterator();for(;_.hasNext();){const q=_.getNext().value;if(q.getKey().getCollectionGroup()===i&&q.largestBatchId>s){let ye=p.get(q.largestBatchId);null===ye&&(ye=bi(),p=p.insert(q.largestBatchId,ye)),ye.set(q.getKey(),q)}}const R=bi(),k=p.getIterator();for(;k.hasNext()&&(k.getNext().value.forEach((q,ye)=>R.set(q,ye)),!(R.size()>=u)););return pe.resolve(R)}ht(n,i,s){const u=this.overlays.get(s.key);if(null!==u){const _=this.hr.get(u.largestBatchId).delete(s.key);this.hr.set(u.largestBatchId,_)}this.overlays=this.overlays.insert(s.key,new Ke(i,s));let p=this.hr.get(i);void 0===p&&(p=Hr(),this.hr.set(i,p)),this.hr.set(i,p.add(s.key))}}class xd{constructor(){this.Pr=new Hn(To.Ir),this.Tr=new Hn(To.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new To(n,i);this.Pr=this.Pr.add(s),this.Tr=this.Tr.add(s)}dr(n,i){n.forEach(s=>this.addReference(s,i))}removeReference(n,i){this.Ar(new To(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new en(new Mn([])),s=new To(i,n),u=new To(i,n+1),p=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),p.push(_.key)}),p}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const i=new en(new Mn([])),s=new To(i,n),u=new To(i,n+1);let p=Hr();return this.Tr.forEachInRange([s,u],_=>{p=p.add(_.key)}),p}containsKey(n){const i=new To(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class To{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return en.comparator(n.key,i.key)||nt(n.pr,i.pr)}static Er(n,i){return nt(n.pr,i.pr)||en.comparator(n.key,i.key)}}class Od{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new Hn(To.Ir)}checkEmpty(n){return pe.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const p=this.yr;this.yr++;const _=new F(p,i,s,u);this.mutationQueue.push(_);for(const R of u)this.wr=this.wr.add(new To(R.key,p)),this.indexManager.addToCollectionParentIndex(n,R.key.path.popLast());return pe.resolve(_)}lookupMutationBatch(n,i){return pe.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),p=u<0?0:u;return pe.resolve(this.mutationQueue.length>p?this.mutationQueue[p]:null)}getHighestUnacknowledgedBatchId(){return pe.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return pe.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new To(i,0),u=new To(i,Number.POSITIVE_INFINITY),p=[];return this.wr.forEachInRange([s,u],_=>{const R=this.Sr(_.pr);p.push(R)}),pe.resolve(p)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new Hn(nt);return i.forEach(u=>{const p=new To(u,0),_=new To(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([p,_],R=>{s=s.add(R.pr)})}),pe.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let p=s;en.isDocumentKey(p)||(p=p.child(""));const _=new To(new en(p),0);let R=new Hn(nt);return this.wr.forEachWhile(k=>{const q=k.key.path;return!!s.isPrefixOf(q)&&(q.length===u&&(R=R.add(k.pr)),!0)},_),pe.resolve(this.Dr(R))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){X(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return pe.forEach(i.mutations,u=>{const p=new To(u.key,i.batchId);return s=s.delete(p),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new To(i,0),u=this.wr.firstAfterOrEqual(s);return pe.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return pe.resolve()}Cr(n,i){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const i=this.br(n);return i<0||i>=this.mutationQueue.length?null:this.mutationQueue[i]}}class ku{constructor(n){this.vr=n,this.docs=new Lr(en.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),p=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-p,this.indexManager.addToCollectionParentIndex(n,s.path.popLast())}removeEntry(n){const i=this.docs.get(n);i&&(this.docs=this.docs.remove(n),this.size-=i.size)}getEntry(n,i){const s=this.docs.get(i);return pe.resolve(s?s.document.mutableCopy():jr.newInvalidDocument(i))}getEntries(n,i){let s=Rr();return i.forEach(u=>{const p=this.docs.get(u);s=s.insert(u,p?p.document.mutableCopy():jr.newInvalidDocument(u))}),pe.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let p=Rr();const _=i.path,R=new en(_.child("")),k=this.docs.getIteratorFrom(R);for(;k.hasNext();){const{key:q,value:{document:ye}}=k.getNext();if(!_.isPrefixOf(q.path))break;q.path.length>_.length+1||cr(new Pr((l=ye).readTime,l.key,-1),s)<=0||(u.has(ye.key)||Gs(i,ye))&&(p=p.insert(ye.key,ye.mutableCopy()))}var l;return pe.resolve(p)}getAllFromCollectionGroup(n,i,s,u){H()}Fr(n,i){return pe.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new Nd(this)}getSize(n){return pe.resolve(this.size)}}class Nd extends na{constructor(n){super(),this.ar=n}applyChanges(n){const i=[];return this.changes.forEach((s,u)=>{u.isValidDocument()?i.push(this.ar.addEntry(n,u)):this.ar.removeEntry(s)}),pe.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Rc{constructor(n){this.persistence=n,this.Mr=new $o(i=>xs(i),Ao),this.lastRemoteSnapshotVersion=gn.min(),this.highestTargetId=0,this.Or=0,this.Nr=new xd,this.targetCount=0,this.Lr=_l.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),pe.resolve()}getLastRemoteSnapshotVersion(n){return pe.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return pe.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),pe.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),pe.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new _l(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,pe.resolve()}updateTargetData(n,i){return this.qn(i),pe.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,pe.resolve()}removeTargets(n,i,s){let u=0;const p=[];return this.Mr.forEach((_,R)=>{R.sequenceNumber<=i&&null===s.get(R.targetId)&&(this.Mr.delete(_),p.push(this.removeMatchingKeysForTargetId(n,R.targetId)),u++)}),pe.waitFor(p).next(()=>u)}getTargetCount(n){return pe.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return pe.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),pe.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,p=[];return u&&i.forEach(_=>{p.push(u.markPotentiallyOrphaned(n,_))}),pe.waitFor(p)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),pe.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return pe.resolve(s)}containsKey(n,i){return pe.resolve(this.Nr.containsKey(i))}}class Mc{constructor(n,i){this.Br={},this.overlays={},this.kr=new _n(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Rc(this),this.indexManager=new Ts,this.remoteDocumentCache=new ku(s=>this.referenceDelegate.Kr(s)),this.serializer=new O(i),this.$r=new og(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let i=this.overlays[n.toKey()];return i||(i=new Sc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Od(i,this.referenceDelegate),this.Br[n.toKey()]=s),s}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,i,s){tt("MemoryPersistence","Starting transaction:",n);const u=new Jh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(p=>this.referenceDelegate.Wr(u).next(()=>p)).toPromise().then(p=>(u.raiseOnCommittedEvent(),p))}Gr(n,i){return pe.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Jh extends ii{constructor(n){super(),this.currentSequenceNumber=n}}class Sa{constructor(n){this.persistence=n,this.zr=new xd,this.jr=null}static Hr(n){return new Sa(n)}get Jr(){if(this.jr)return this.jr;throw H()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),pe.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),pe.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),pe.resolve()}removeTarget(n,i){this.zr.Vr(i.targetId).forEach(u=>this.Jr.add(u.toString()));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(n,i.targetId).next(u=>{u.forEach(p=>this.Jr.add(p.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return pe.forEach(this.Jr,s=>{const u=en.fromPath(s);return this.Yr(n,u).next(p=>{p||i.removeEntry(u,gn.min())})}).next(()=>(this.jr=null,i.apply(n)))}updateLimboDocument(n,i){return this.Yr(n,i).next(s=>{s?this.Jr.delete(i.toString()):this.Jr.add(i.toString())})}Kr(n){return 0}Yr(n,i){return pe.or([()=>pe.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class Fi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=Hr(),u=Hr();for(const p of i.docChanges)switch(p.type){case 0:s=s.add(p.doc.key);break;case 1:u=u.add(p.doc.key)}return new Fi(n,i.fromCache,s,u)}}class ef{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class tf{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,Se.nr)()?8:function ut(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,Se.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const p={result:null};return this.ji(n,i).next(_=>{p.result=_}).next(()=>{if(!p.result)return this.Hi(n,i,u,s).next(_=>{p.result=_})}).next(()=>{if(p.result)return;const _=new ef;return this.Ji(n,i,_).next(R=>{if(p.result=R,this.Ui)return this.Yi(n,i,_,R.size)})}).next(()=>p.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(vn()<=Je.$b.DEBUG&&tt("QueryEngine","The SDK decides to create cache indexes for query:",_s(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,Xn(i))):pe.resolve())}ji(n,i){if(G(i))return pe.resolve(null);let s=Xn(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=So(i,null,"F"),s=Xn(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(p=>{const _=Hr(...p);return this.zi.getDocuments(n,_).next(R=>this.indexManager.getMinOffset(n,s).next(k=>{const q=this.Zi(i,R);return this.Xi(i,q,_,k.readTime)?this.ji(n,So(i,null,"F")):this.es(n,q,i,k)}))})))}Hi(n,i,s,u){return G(i)||u.isEqual(gn.min())?pe.resolve(null):this.zi.getDocuments(n,s).next(p=>{const _=this.Zi(i,p);return this.Xi(i,_,s,u)?pe.resolve(null):(vn()<=Je.$b.DEBUG&&tt("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),_s(i)),this.es(n,_,i,function mr(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=gn.fromTimestamp(1e9===s?new pn(i+1,0):new pn(i,s));return new Pr(u,en.empty(),n)}(u,-1)).next(R=>R))})}Zi(n,i){let s=new Hn(ul(n));return i.forEach((u,p)=>{Gs(n,p)&&(s=s.add(p))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const p="F"===n.limitType?i.last():i.first();return!!p&&(p.hasPendingWrites||p.version.compareTo(u)>0)}Ji(n,i,s){return vn()<=Je.$b.DEBUG&&tt("QueryEngine","Using full collection scan to execute query:",_s(i)),this.zi.getDocumentsMatchingQuery(n,i,Pr.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(p=>(i.forEach(_=>{p=p.insert(_.key,_)}),p))}}class sg{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new Lr(nt),this.rs=new $o(p=>xs(p),Ao),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(s)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new oa(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",i=>n.collect(i,this.ns))}}function Fd(l,n){return Bu.apply(this,arguments)}function Bu(){return(Bu=(0,ue.A)(function*(l,n){const i=se(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(p=>(u=p,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(p=>{const _=[],R=[];let k=Hr();for(const q of u){_.push(q.batchId);for(const ye of q.mutations)k=k.add(ye.key)}for(const q of p){R.push(q.batchId);for(const ye of q.mutations)k=k.add(ye.key)}return i.localDocuments.getDocuments(s,k).next(q=>({us:q,removedBatchIds:_,addedBatchIds:R}))})})})).apply(this,arguments)}function Vs(l){const n=se(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function xc(l,n){const i=se(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function aa(l,n,i){return Oc.apply(this,arguments)}function Oc(){return(Oc=(0,ue.A)(function*(l,n,i){const s=se(l),u=s.ns.get(n),p=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",p,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!He(_))throw _;tt("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function El(l,n,i){const s=se(l);let u=gn.min(),p=Hr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(k,q,ye){const ze=se(k),pt=ze.rs.get(ye);return void 0!==pt?pe.resolve(ze.ns.get(pt)):ze.Qr.getTargetData(q,ye)}(s,_,Xn(n)).next(R=>{if(R)return u=R.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,R.targetId).next(k=>{p=k})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:gn.min(),i?p:Hr())).next(R=>(function Al(l,n,i){let s=l.ss.get(n)||gn.min();i.forEach((u,p)=>{p.readTime.compareTo(s)>0&&(s=p.readTime)}),l.ss.set(n,s)}(s,function fa(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),R),{documents:R,hs:p})))}class zu{constructor(){this.activeTargetIds=function Ws(){return dl}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class af{constructor(){this.no=new zu,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,i,s){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,i,s){this.ro[n]=i}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new zu,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class lf{io(n){}shutdown(){}}class Bd{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){tt("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){tt("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Lc=null;function ws(){return null===Lc?Lc=268435456+Math.round(2147483648*Math.random()):Lc++,"0x"+Lc.toString(16)}const hv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class Hu{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}Ao(n){this.Ro=n}onMessage(n){this.Vo=n}close(){this.ho()}send(n){this.lo(n)}mo(){this.Io()}fo(){this.Eo()}po(n){this.Ro(n)}yo(n){this.Vo(n)}}const Mo="WebChannelConnection";class Ud extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),p=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${p}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${p}`}get Do(){return!1}Co(i,s,u,p,_){const R=ws(),k=this.vo(i,s.toUriEncodedString());tt("RestConnection",`Sending RPC '${i}' ${R}:`,k,u);const q={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(q,p,_),this.Mo(i,k,q,u).then(ye=>(tt("RestConnection",`Received RPC '${i}' ${R}: `,ye),ye),ye=>{throw dt("RestConnection",`RPC '${i}' ${R} failed with error: `,ye,"url: ",k,"request:",u),ye})}xo(i,s,u,p,_,R){return this.Co(i,s,u,p,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+rt,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((p,_)=>i[_]=p),u&&u.headers.forEach((p,_)=>i[_]=p)}vo(i,s){return`${this.wo}/v1/${s}:${hv[i]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Mo(n,i,s,u){const p=ws();return new Promise((_,R)=>{const k=new St;k.setWithCredentials(!0),k.listenOnce(Et.COMPLETE,()=>{try{switch(k.getLastErrorCode()){case mt.NO_ERROR:const ye=k.getResponseJson();tt(Mo,`XHR for RPC '${n}' ${p} received:`,JSON.stringify(ye)),_(ye);break;case mt.TIMEOUT:tt(Mo,`RPC '${n}' ${p} timed out`),R(new Le(ve.DEADLINE_EXCEEDED,"Request time out"));break;case mt.HTTP_ERROR:const ze=k.getStatus();if(tt(Mo,`RPC '${n}' ${p} failed with status:`,ze,"response text:",k.getResponseText()),ze>0){let pt=k.getResponseJson();Array.isArray(pt)&&(pt=pt[0]);const Ht=null==pt?void 0:pt.error;if(Ht&&Ht.status&&Ht.message){const An=function(Sn){const hr=Sn.toLowerCase().replace(/_/g,"-");return Object.values(ve).indexOf(hr)>=0?hr:ve.UNKNOWN}(Ht.status);R(new Le(An,Ht.message))}else R(new Le(ve.UNKNOWN,"Server responded with status "+k.getStatus()))}else R(new Le(ve.UNAVAILABLE,"Connection failed."));break;default:H()}}finally{tt(Mo,`RPC '${n}' ${p} completed.`)}});const q=JSON.stringify(u);tt(Mo,`RPC '${n}' ${p} sending request:`,u),k.send(i,"POST",q,s,15)})}Oo(n,i,s){const u=ws(),p=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Ue(),R=ge(),k={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},q=this.longPollingOptions.timeoutSeconds;void 0!==q&&(k.longPollingTimeout=Math.round(1e3*q)),this.useFetchStreams&&(k.xmlHttpFactory=new yt({})),this.Fo(k.initMessageHeaders,i,s),k.encodeInitMessageHeaders=!0;const ye=p.join("");tt(Mo,`Creating RPC '${n}' stream ${u}: ${ye}`,k);const ze=_.createWebChannel(ye,k);let pt=!1,Ht=!1;const An=new Hu({lo:Sn=>{Ht?tt(Mo,`Not sending because RPC '${n}' stream ${u} is closed:`,Sn):(pt||(tt(Mo,`Opening RPC '${n}' stream ${u} transport.`),ze.open(),pt=!0),tt(Mo,`RPC '${n}' stream ${u} sending:`,Sn),ze.send(Sn))},ho:()=>ze.close()}),kn=(Sn,hr,Mr)=>{Sn.listen(hr,_r=>{try{Mr(_r)}catch(Yr){setTimeout(()=>{throw Yr},0)}})};return kn(ze,_t.EventType.OPEN,()=>{Ht||(tt(Mo,`RPC '${n}' stream ${u} transport opened.`),An.mo())}),kn(ze,_t.EventType.CLOSE,()=>{Ht||(Ht=!0,tt(Mo,`RPC '${n}' stream ${u} transport closed`),An.po())}),kn(ze,_t.EventType.ERROR,Sn=>{Ht||(Ht=!0,dt(Mo,`RPC '${n}' stream ${u} transport errored:`,Sn),An.po(new Le(ve.UNAVAILABLE,"The operation could not be completed")))}),kn(ze,_t.EventType.MESSAGE,Sn=>{var hr;if(!Ht){const Mr=Sn.data[0];X(!!Mr);const Yr=Mr.error||(null===(hr=Mr[0])||void 0===hr?void 0:hr.error);if(Yr){tt(Mo,`RPC '${n}' stream ${u} received error:`,Yr);const Li=Yr.status;let fi=function(At){const kt=ar[At];if(void 0!==kt)return Xr(kt)}(Li),xt=Yr.message;void 0===fi&&(fi=ve.INTERNAL,xt="Unknown error status: "+Li+" with message "+Yr.message),Ht=!0,An.po(new Le(fi,xt)),ze.close()}else tt(Mo,`RPC '${n}' stream ${u} received:`,Mr),An.yo(Mr)}}),kn(R,Ye.STAT_EVENT,Sn=>{Sn.stat===Me.PROXY?tt(Mo,`RPC '${n}' stream ${u} detected buffering proxy`):Sn.stat===Me.NOPROXY&&tt(Mo,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{An.fo()},0),An}}function Tl(){return typeof document<"u"?document:null}function Vc(l){return new Co(l,!0)}class tu{constructor(n,i,s=1e3,u=1.5,p=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=p,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(n){this.cancel();const i=Math.floor(this.ko+this.Uo()),s=Math.max(0,Date.now()-this.Qo),u=Math.max(0,i-s);u>0&&tt("ExponentialBackoff",`Backing off for ${u} ms (base delay: ${this.ko} ms, delay with jitter: ${i} ms, last attempt: ${s} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,u,()=>(this.Qo=Date.now(),n())),this.ko*=this.Lo,this.kothis.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class $d{constructor(n,i,s,u,p,_,R,k){this.oi=n,this.Go=s,this.zo=u,this.connection=p,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=R,this.listener=k,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new tu(n,i)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var n=this;return(0,ue.A)(function*(){n.Zo()&&(yield n.close(0))})()}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(n){this.s_(),this.stream.send(n)}r_(){var n=this;return(0,ue.A)(function*(){if(n.Xo())return n.close(0)})()}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}close(n,i){var s=this;return(0,ue.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===ve.RESOURCE_EXHAUSTED?(on(i.toString()),on("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===ve.UNAUTHENTICATED&&3!==s.state&&(s.authCredentialsProvider.invalidateToken(),s.appCheckCredentialsProvider.invalidateToken()),null!==s.stream&&(s.__(),s.stream.close(),s.stream=null),s.state=n,yield s.listener.Ao(i)})()}__(){}auth(){this.state=1;const n=this.a_(this.jo),i=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([s,u])=>{this.jo===i&&this.u_(s,u)},s=>{n(()=>{const u=new Le(ve.UNKNOWN,"Fetching auth token failed: "+s.message);return this.c_(u)})})}u_(n,i){const s=this.a_(this.jo);this.stream=this.l_(n,i),this.stream.Po(()=>{s(()=>this.listener.Po())}),this.stream.To(()=>{s(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(u=>{s(()=>this.c_(u))}),this.stream.onMessage(u=>{s(()=>this.onMessage(u))})}e_(){var n=this;this.state=5,this.Yo.$o((0,ue.A)(function*(){n.state=0,n.start()}))}c_(n){return tt("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(tt("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class uf extends $d{constructor(n,i,s,u,p,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function Wl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(q=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===q?1:"REMOVE"===q?2:"CURRENT"===q?3:"RESET"===q?4:H(),u=n.targetChange.targetIds||[],p=function(q,ye){return q.useProto3Json?(X(void 0===ye||"string"==typeof ye),oi.fromBase64String(ye||"")):(X(void 0===ye||ye instanceof Buffer||ye instanceof Uint8Array),oi.fromUint8Array(ye||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,R=_&&function(q){const ye=void 0===q.code?ve.UNKNOWN:Xr(q.code);return new Le(ye,q.message||"")}(_);i=new _i(s,u,p,R||null)}else if("documentChange"in n){const s=n.documentChange,u=ns(l,s.document.name),p=Mi(s.document.updateTime),_=s.document.createTime?Mi(s.document.createTime):gn.min(),R=new Vn({mapValue:{fields:s.document.fields}}),k=jr.newFoundDocument(u,p,_,R);i=new Qi(s.targetIds||[],s.removedTargetIds||[],k.key,k)}else if("documentDelete"in n){const s=n.documentDelete,u=ns(l,s.document),p=s.readTime?Mi(s.readTime):gn.min(),_=jr.newNoDocument(u,p);i=new Qi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=ns(l,s.document);i=new Qi([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return H();{const s=n.filter,{count:u=0,unchangedNames:p}=s,_=new wn(u,p);i=new Ho(s.targetId,_)}}var q;return i}(this.serializer,n),s=function(p){if(!("targetChange"in p))return gn.min();const _=p.targetChange;return _.targetIds&&_.targetIds.length?gn.min():_.readTime?Mi(_.readTime):gn.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ia(this.serializer),i.addTarget=function(p,_){let R;const k=_.target;if(R=Fo(k)?{documents:Kl(p,k)}:{query:gl(p,k)._t},R.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){R.resumeToken=qs(p,_.resumeToken);const q=Cs(p,_.expectedCount);null!==q&&(R.expectedCount=q)}else if(_.snapshotVersion.compareTo(gn.min())>0){R.readTime=Go(p,_.snapshotVersion.toTimestamp());const q=Cs(p,_.expectedCount);null!==q&&(R.expectedCount=q)}return R}(this.serializer,n);const s=function Mu(l,n){const i=function(u){switch(u){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return H()}}(n.purpose);return null==i?null:{"goog-listen-tags":i}}(0,n);s&&(i.labels=s),this.i_(i)}I_(n){const i={};i.database=Ia(this.serializer),i.removeTarget=n,this.i_(i)}}class cf extends $d{constructor(n,i,s,u,p,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(n,i){return this.connection.Oo("Write",n,i)}onMessage(n){if(X(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function ds(l,n){return l&&l.length>0?(X(void 0!==n),l.map(i=>function(u,p){let _=Mi(u.updateTime?u.updateTime:p);return _.isEqual(gn.min())&&(_=Mi(p)),new Ns(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Mi(n.commitTime);return this.listener.A_(s,i)}return X(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Ia(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function rs(l,n){let i;if(n instanceof Ks)i={update:Ru(l,n.key,n.value)};else if(n instanceof $)i={delete:Ea(l,n.key)};else if(n instanceof lo)i={update:Ru(l,n.key,n.data),updateMask:bd(n.fieldMask)};else{if(!(n instanceof Be))return H();i={verify:Ea(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(p,_){const R=_.transform;if(R instanceof Is)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(R instanceof Os)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:R.elements}};if(R instanceof As)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:R.elements}};if(R instanceof es)return{fieldPath:_.field.canonicalString(),increment:R.Pe};throw H()}(0,s))),n.precondition.isNone||(i.currentDocument=void 0!==(p=n.precondition).updateTime?{updateTime:_c(l,p.updateTime)}:void 0!==p.exists?{exists:p.exists}:H()),i;var p}(this.serializer,s))};this.i_(i)}}class lg extends class{}{constructor(n,i,s,u){super(),this.authCredentials=n,this.appCheckCredentials=i,this.connection=s,this.serializer=u,this.m_=!1}f_(){if(this.m_)throw new Le(ve.FAILED_PRECONDITION,"The client has already been terminated.")}Co(n,i,s,u){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([p,_])=>this.connection.Co(n,cs(i,s),u,p,_)).catch(p=>{throw"FirebaseError"===p.name?(p.code===ve.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),p):new Le(ve.UNKNOWN,p.toString())})}xo(n,i,s,u,p){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,R])=>this.connection.xo(n,cs(i,s),u,_,R,p)).catch(_=>{throw"FirebaseError"===_.name?(_.code===ve.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new Le(ve.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class jd{constructor(n,i){this.asyncQueue=n,this.onlineStateHandler=i,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(n){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.S_("Offline")))}set(n){this.C_(),this.g_=0,"Online"===n&&(this.y_=!1),this.S_(n)}S_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}b_(n){const i=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.y_?(on(i),this.y_=!1):tt("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class bl{constructor(n,i,s,u,p){var _=this;this.localStore=n,this.datastore=i,this.asyncQueue=s,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=p,this.O_.io(R=>{s.enqueueAndForget((0,ue.A)(function*(){var k;Ja(_)&&(tt("RemoteStore","Restarting streams for network reachability change."),yield(k=(0,ue.A)(function*(ye){const ze=se(ye);ze.M_.add(4),yield nu(ze),ze.N_.set("Unknown"),ze.M_.delete(4),yield Bc(ze)}),function q(ye){return k.apply(this,arguments)})(_))}))}),this.N_=new jd(s,u)}}function Bc(l){return Uc.apply(this,arguments)}function Uc(){return(Uc=(0,ue.A)(function*(l){if(Ja(l))for(const n of l.x_)yield n(!0)})).apply(this,arguments)}function nu(l){return wl.apply(this,arguments)}function wl(){return(wl=(0,ue.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function Ya(l,n){const i=se(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),ff(i)?Gu(i):qu(i).Xo()&&df(i,n))}function eo(l,n){const i=se(l),s=qu(i);i.F_.delete(n),s.Xo()&&hf(i,n),0===i.F_.size&&(s.Xo()?s.n_():Ja(i)&&i.N_.set("Unknown"))}function df(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(gn.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}qu(l).P_(n)}function hf(l,n){l.L_.xe(n),qu(l).I_(n)}function Gu(l){l.L_=new ks({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),qu(l).start(),l.N_.w_()}function ff(l){return Ja(l)&&!qu(l).Zo()&&l.F_.size>0}function Ja(l){return 0===se(l).M_.size}function $c(l){l.L_=void 0}function ug(l){return zd.apply(this,arguments)}function zd(){return(zd=(0,ue.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function pf(l){return Wu.apply(this,arguments)}function Wu(){return(Wu=(0,ue.A)(function*(l){l.F_.forEach((n,i)=>{df(l,n)})})).apply(this,arguments)}function cg(l,n){return gf.apply(this,arguments)}function gf(){return(gf=(0,ue.A)(function*(l,n){$c(l),ff(l)?(l.N_.D_(n),Gu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function fv(l,n,i){return mf.apply(this,arguments)}function mf(){return mf=(0,ue.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof _i&&2===n.state&&n.cause)try{yield(s=(0,ue.A)(function*(p,_){const R=_.cause;for(const k of _.targetIds)p.F_.has(k)&&(yield p.remoteSyncer.rejectListen(k,R),p.F_.delete(k),p.L_.removeTarget(k))}),function u(p,_){return s.apply(this,arguments)})(l,n)}catch(s){tt("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield jc(l,s)}else if(n instanceof Qi?l.L_.Ke(n):n instanceof Ho?l.L_.He(n):l.L_.We(n),!i.isEqual(gn.min()))try{const s=yield Vs(l.localStore);i.compareTo(s)>=0&&(yield function(p,_){const R=p.L_.rt(_);return R.targetChanges.forEach((k,q)=>{if(k.resumeToken.approximateByteSize()>0){const ye=p.F_.get(q);ye&&p.F_.set(q,ye.withResumeToken(k.resumeToken,_))}}),R.targetMismatches.forEach((k,q)=>{const ye=p.F_.get(k);if(!ye)return;p.F_.set(k,ye.withResumeToken(oi.EMPTY_BYTE_STRING,ye.snapshotVersion)),hf(p,k);const ze=new b(ye.target,k,q,ye.sequenceNumber);df(p,ze)}),p.remoteSyncer.applyRemoteEvent(R)}(l,i))}catch(s){tt("RemoteStore","Failed to raise snapshot:",s),yield jc(l,s)}var s}),mf.apply(this,arguments)}function jc(l,n,i){return vf.apply(this,arguments)}function vf(){return(vf=(0,ue.A)(function*(l,n,i){if(!He(n))throw n;l.M_.add(1),yield nu(l),l.N_.set("Offline"),i||(i=()=>Vs(l.localStore)),l.asyncQueue.enqueueRetryable((0,ue.A)(function*(){tt("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield Bc(l)}))})).apply(this,arguments)}function _f(l,n){return n().catch(i=>jc(l,i,n))}function Ku(l){return yf.apply(this,arguments)}function yf(){return(yf=(0,ue.A)(function*(l){const n=se(l),i=ru(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;vy(n);)try{const u=yield xc(n.localStore,s);if(null===u){0===n.v_.length&&i.n_();break}s=u.batchId,dg(n,u)}catch(u){yield jc(n,u)}Ef(n)&&ps(n)})).apply(this,arguments)}function vy(l){return Ja(l)&&l.v_.length<10}function dg(l,n){l.v_.push(n);const i=ru(l);i.Xo()&&i.E_&&i.d_(n.mutations)}function Ef(l){return Ja(l)&&!ru(l).Zo()&&l.v_.length>0}function ps(l){ru(l).start()}function _y(l){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,ue.A)(function*(l){ru(l).V_()})).apply(this,arguments)}function yy(l){return zc.apply(this,arguments)}function zc(){return(zc=(0,ue.A)(function*(l){const n=ru(l);for(const i of l.v_)n.d_(i.mutations)})).apply(this,arguments)}function Za(l,n,i){return Gd.apply(this,arguments)}function Gd(){return(Gd=(0,ue.A)(function*(l,n,i){const s=l.v_.shift(),u=Ae.from(s,n,i);yield _f(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Ku(l)})).apply(this,arguments)}function Xu(l,n){return If.apply(this,arguments)}function If(){return If=(0,ue.A)(function*(l,n){var i;n&&ru(l).E_&&(yield(i=(0,ue.A)(function*(u,p){if(function pi(l){switch(l){default:return H();case ve.CANCELLED:case ve.UNKNOWN:case ve.DEADLINE_EXCEEDED:case ve.RESOURCE_EXHAUSTED:case ve.INTERNAL:case ve.UNAVAILABLE:case ve.UNAUTHENTICATED:return!1;case ve.INVALID_ARGUMENT:case ve.NOT_FOUND:case ve.ALREADY_EXISTS:case ve.PERMISSION_DENIED:case ve.FAILED_PRECONDITION:case ve.ABORTED:case ve.OUT_OF_RANGE:case ve.UNIMPLEMENTED:case ve.DATA_LOSS:return!0}}(R=p.code)&&R!==ve.ABORTED){const _=u.v_.shift();ru(u).t_(),yield _f(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,p)),yield Ku(u)}var R}),function s(u,p){return i.apply(this,arguments)})(l,n)),Ef(l)&&ps(l)}),If.apply(this,arguments)}function hg(l,n){return Wd.apply(this,arguments)}function Wd(){return(Wd=(0,ue.A)(function*(l,n){const i=se(l);i.asyncQueue.verifyOperationInProgress(),tt("RemoteStore","RemoteStore received new credentials");const s=Ja(i);i.M_.add(3),yield nu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield Bc(i)})).apply(this,arguments)}function fg(l,n){return pg.apply(this,arguments)}function pg(){return(pg=(0,ue.A)(function*(l,n){const i=se(l);n?(i.M_.delete(2),yield Bc(i)):n||(i.M_.add(2),yield nu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function qu(l){return l.B_||(l.B_=function(i,s,u){const p=se(i);return p.f_(),new uf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:ug.bind(null,l),To:pf.bind(null,l),Ao:cg.bind(null,l),h_:fv.bind(null,l)}),l.x_.push(function(){var n=(0,ue.A)(function*(i){i?(l.B_.t_(),ff(l)?Gu(l):l.N_.set("Unknown")):(yield l.B_.stop(),$c(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function ru(l){return l.k_||(l.k_=function(i,s,u){const p=se(i);return p.f_(),new cf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:_y.bind(null,l),Ao:Xu.bind(null,l),R_:yy.bind(null,l),A_:Za.bind(null,l)}),l.x_.push(function(){var n=(0,ue.A)(function*(i){i?(l.k_.t_(),yield Ku(l)):(yield l.k_.stop(),l.v_.length>0&&(tt("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class gg{constructor(n,i,s,u,p){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=p,this.deferred=new _e,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(_=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,i,s,u,p){const _=Date.now()+s,R=new gg(n,i,_,u,p);return R.start(s),R}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Le(ve.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Qu(l,n){if(on("AsyncQueue",`${n}: ${l}`),He(l))return new Le(ve.UNAVAILABLE,`${n}: ${l}`);throw l}class la{constructor(n){this.comparator=n?(i,s)=>n(i,s)||en.comparator(i.key,s.key):(i,s)=>en.comparator(i.key,s.key),this.keyedMap=zi(),this.sortedSet=new Lr(this.comparator)}static emptySet(n){return new la(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const i=this.keyedMap.get(n);return i?this.sortedSet.indexOf(i):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((i,s)=>(n(i),!1))}add(n){const i=this.delete(n.key);return i.copy(i.keyedMap.insert(n.key,n),i.sortedSet.insert(n,null))}delete(n){const i=this.get(n);return i?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(i)):this}isEqual(n){if(!(n instanceof la)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(!u.isEqual(p))return!1}return!0}toString(){const n=[];return this.forEach(i=>{n.push(i.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,i){const s=new la;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Yu{constructor(){this.q_=new Lr(en.comparator)}track(n){const i=n.doc.key,s=this.q_.get(i);s?0!==n.type&&3===s.type?this.q_=this.q_.insert(i,n):3===n.type&&1!==s.type?this.q_=this.q_.insert(i,{type:s.type,doc:n.doc}):2===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):2===n.type&&0===s.type?this.q_=this.q_.insert(i,{type:0,doc:n.doc}):1===n.type&&0===s.type?this.q_=this.q_.remove(i):1===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:1,doc:s.doc}):0===n.type&&1===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):H():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class iu{constructor(n,i,s,u,p,_,R,k,q){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=p,this.fromCache=_,this.syncStateChanged=R,this.excludesMetadataChanges=k,this.hasCachedResults=q}static fromInitialDocuments(n,i,s,u,p){const _=[];return i.forEach(R=>{_.push({type:0,doc:R})}),new iu(n,i,la.emptySet(i),_,s,u,!0,!1,p)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&Yo(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const i=this.docChanges,s=n.docChanges;if(i.length!==s.length)return!1;for(let u=0;un.G_())}}class Af{constructor(){this.queries=new $o(n=>Fa(n),Yo),this.onlineState="Unknown",this.z_=new Set}}function Bs(l,n){return Cf.apply(this,arguments)}function Cf(){return(Cf=(0,ue.A)(function*(l,n){const i=se(l);let s=3;const u=n.query;let p=i.queries.get(u);p?!p.W_()&&n.G_()&&(s=2):(p=new pv,s=n.G_()?0:1);try{switch(s){case 0:p.K_=yield i.onListen(u,!0);break;case 1:p.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const R=Qu(_,`Initialization of query '${_s(n.query)}' failed`);return void n.onError(R)}i.queries.set(u,p),p.U_.push(n),n.j_(i.onlineState),p.K_&&n.H_(p.K_)&&Kd(i)})).apply(this,arguments)}function Ju(l,n){return ou.apply(this,arguments)}function ou(){return(ou=(0,ue.A)(function*(l,n){const i=se(l),s=n.query;let u=3;const p=i.queries.get(s);if(p){const _=p.U_.indexOf(n);_>=0&&(p.U_.splice(_,1),0===p.U_.length?u=n.G_()?0:1:!p.W_()&&n.G_()&&(u=2))}switch(u){case 0:return i.queries.delete(s),i.onUnlisten(s,!0);case 1:return i.queries.delete(s),i.onUnlisten(s,!1);case 2:return i.onLastRemoteStoreUnlisten(s);default:return}})).apply(this,arguments)}function gv(l,n){const i=se(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const R of _.U_)R.H_(u)&&(s=!0);_.K_=u}}s&&Kd(i)}function mg(l,n,i){const s=se(l),u=s.queries.get(n);if(u)for(const p of u.U_)p.onError(i);s.queries.delete(n)}function Kd(l){l.z_.forEach(n=>{n.next()})}var I,f;(f=I||(I={})).J_="default",f.Cache="cache";class v{constructor(n,i,s){this.query=n,this.Y_=i,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=s||{}}H_(n){if(!this.options.includeMetadataChanges){const s=[];for(const u of n.docChanges)3!==u.type&&s.push(u);n=new iu(n.query,n.docs,n.oldDocs,s,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let i=!1;return this.Z_?this.ea(n)&&(this.Y_.next(n),i=!0):this.ta(n,this.onlineState)&&(this.na(n),i=!0),this.X_=n,i}onError(n){this.Y_.error(n)}j_(n){this.onlineState=n;let i=!1;return this.X_&&!this.Z_&&this.ta(this.X_,n)&&(this.na(this.X_),i=!0),i}ta(n,i){return!n.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==i))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===i)}ea(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(n){n=iu.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==I.Cache}}class Xt{constructor(n){this.key=n}}class Dn{constructor(n){this.key=n}}class $n{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=Hr(),this.mutatedKeys=Hr(),this.Ia=ul(n),this.Ta=new la(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Yu,u=i?i.Ta:this.Ta;let p=i?i.mutatedKeys:this.mutatedKeys,_=u,R=!1;const k="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,q="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((ye,ze)=>{const pt=u.get(ye),Ht=Gs(this.query,ze)?ze:null,An=!!pt&&this.mutatedKeys.has(pt.key),kn=!!Ht&&(Ht.hasLocalMutations||this.mutatedKeys.has(Ht.key)&&Ht.hasCommittedMutations);let Sn=!1;pt&&Ht?pt.data.isEqual(Ht.data)?An!==kn&&(s.track({type:3,doc:Ht}),Sn=!0):this.Ra(pt,Ht)||(s.track({type:2,doc:Ht}),Sn=!0,(k&&this.Ia(Ht,k)>0||q&&this.Ia(Ht,q)<0)&&(R=!0)):!pt&&Ht?(s.track({type:0,doc:Ht}),Sn=!0):pt&&!Ht&&(s.track({type:1,doc:pt}),Sn=!0,(k||q)&&(R=!0)),Sn&&(Ht?(_=_.add(Ht),p=kn?p.add(ye):p.delete(ye)):(_=_.delete(ye),p=p.delete(ye)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const ye="F"===this.query.limitType?_.last():_.first();_=_.delete(ye.key),p=p.delete(ye.key),s.track({type:1,doc:ye})}return{Ta:_,Aa:s,Xi:R,mutatedKeys:p}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const p=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((ye,ze)=>function(Ht,An){const kn=Sn=>{switch(Sn){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return H()}};return kn(Ht)-kn(An)}(ye.type,ze.type)||this.Ia(ye.doc,ze.doc)),this.Va(s),u=null!=u&&u;const R=i&&!u?this.ma():[],k=0===this.Pa.size&&this.current&&!u?1:0,q=k!==this.ha;return this.ha=k,0!==_.length||q?{snapshot:new iu(this.query,n.Ta,p,_,n.mutatedKeys,0===k,q,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:R}:{fa:R}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Yu,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(n){return!this.la.has(n)&&!!this.Ta.has(n)&&!this.Ta.get(n).hasLocalMutations}Va(n){n&&(n.addedDocuments.forEach(i=>this.la=this.la.add(i)),n.modifiedDocuments.forEach(i=>{}),n.removedDocuments.forEach(i=>this.la=this.la.delete(i)),this.current=n.current)}ma(){if(!this.current)return[];const n=this.Pa;this.Pa=Hr(),this.Ta.forEach(s=>{this.ga(s.key)&&(this.Pa=this.Pa.add(s.key))});const i=[];return n.forEach(s=>{this.Pa.has(s)||i.push(new Dn(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Xt(s))}),i}pa(n){this.la=n.hs,this.Pa=Hr();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return iu.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class vr{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class hi{constructor(n){this.key=n,this.wa=!1}}class Vo{constructor(n,i,s,u,p,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=p,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new $o(R=>Fa(R),Yo),this.Da=new Map,this.Ca=new Set,this.va=new Lr(en.comparator),this.Fa=new Map,this.Ma=new xd,this.xa={},this.Oa=new Map,this.Na=_l.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function to(l,n){return ua.apply(this,arguments)}function ua(){return(ua=(0,ue.A)(function*(l,n,i=!0){const s=nc(l);let u;const p=s.ba.get(n);return p?(s.sharedClientState.addLocalQueryTarget(p.targetId),u=p.view.ya()):u=yield qd(s,n,i,!0),u})).apply(this,arguments)}function Xd(l,n){return su.apply(this,arguments)}function su(){return(su=(0,ue.A)(function*(l,n){const i=nc(l);yield qd(i,n,!0,!1)})).apply(this,arguments)}function qd(l,n,i,s){return Zu.apply(this,arguments)}function Zu(){return(Zu=(0,ue.A)(function*(l,n,i,s){const u=yield function sa(l,n){const i=se(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(p=>p?(u=p,pe.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new b(n,_,"TargetPurposeListen",s.currentSequenceNumber),i.Qr.addTargetData(s,u).next(()=>u))))}).then(s=>{const u=i.ns.get(s.targetId);return(null===u||s.snapshotVersion.compareTo(u.snapshotVersion)>0)&&(i.ns=i.ns.insert(s.targetId,s),i.rs.set(n,s.targetId)),s})}(l.localStore,Xn(n)),p=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(p):"not-current";let R;return s&&(R=yield function ec(l,n,i,s,u){return tc.apply(this,arguments)}(l,n,p,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Ya(l.remoteStore,u),R})).apply(this,arguments)}function tc(){return tc=(0,ue.A)(function*(l,n,i,s,u){l.Ba=(ze,pt,Ht)=>{return(An=(0,ue.A)(function*(Sn,hr,Mr,_r){let Yr=hr.view.da(Mr);Yr.Xi&&(Yr=yield El(Sn.localStore,hr.query,!1).then(({documents:at})=>hr.view.da(at,Yr)));const Li=_r&&_r.targetChanges.get(hr.targetId),fi=_r&&null!=_r.targetMismatches.get(hr.targetId),xt=hr.view.applyChanges(Yr,Sn.isPrimaryClient,Li,fi);return Cg(Sn,hr.targetId,xt.fa),xt.snapshot}),function kn(Sn,hr,Mr,_r){return An.apply(this,arguments)})(l,ze,pt,Ht);var An};const p=yield El(l.localStore,n,!0),_=new $n(n,p.hs),R=_.da(p.documents),k=Si.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),q=_.applyChanges(R,l.isPrimaryClient,k);Cg(l,i,q.fa);const ye=new vr(n,i,_);return l.ba.set(n,ye),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),q.snapshot}),tc.apply(this,arguments)}function Df(l,n,i){return au.apply(this,arguments)}function au(){return(au=(0,ue.A)(function*(l,n,i){const s=se(l),u=s.ba.get(n),p=s.Da.get(u.targetId);if(p.length>1)return s.Da.set(u.targetId,p.filter(_=>!Yo(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield aa(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&eo(s.remoteStore,u.targetId),Zd(s,u.targetId)}).catch(Ai))):(Zd(s,u.targetId),yield aa(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Tf(l,n){return Qd.apply(this,arguments)}function Qd(){return(Qd=(0,ue.A)(function*(l,n){const i=se(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),eo(i.remoteStore,s.targetId))})).apply(this,arguments)}function Jd(){return(Jd=(0,ue.A)(function*(l,n,i){const s=function Hc(l){const n=se(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=mv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=vv.bind(null,n),n}(l);try{const u=yield function(_,R){const k=se(_),q=pn.now(),ye=R.reduce((Ht,An)=>Ht.add(An.key),Hr());let ze,pt;return k.persistence.runTransaction("Locally write mutations","readwrite",Ht=>{let An=Rr(),kn=Hr();return k.os.getEntries(Ht,ye).next(Sn=>{An=Sn,An.forEach((hr,Mr)=>{Mr.isValidDocument()||(kn=kn.add(hr))})}).next(()=>k.localDocuments.getOverlayedDocuments(Ht,An)).next(Sn=>{ze=Sn;const hr=[];for(const Mr of R){const _r=va(Mr,ze.get(Mr.key).overlayedDocument);null!=_r&&hr.push(new lo(Mr.key,_r,qr(_r.value.mapValue),Ui.exists(!0)))}return k.mutationQueue.addMutationBatch(Ht,q,hr,R)}).next(Sn=>{pt=Sn;const hr=Sn.applyToLocalDocumentSet(ze,kn);return k.documentOverlayCache.saveOverlays(Ht,Sn.batchId,hr)})}).then(()=>({batchId:pt.batchId,changes:po(ze)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,R,k){let q=_.xa[_.currentUser.toKey()];q||(q=new Lr(nt)),q=q.insert(R,k),_.xa[_.currentUser.toKey()]=q}(s,u.batchId,i),yield Sl(s,u.changes),yield Ku(s.remoteStore)}catch(u){const p=Qu(u,"Failed to persist write");i.reject(p)}})).apply(this,arguments)}function vg(l,n){return bf.apply(this,arguments)}function bf(){return(bf=(0,ue.A)(function*(l,n){const i=se(l);try{const s=yield function ag(l,n){const i=se(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",p=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const R=[];n.targetChanges.forEach((ye,ze)=>{const pt=u.get(ze);if(!pt)return;R.push(i.Qr.removeMatchingKeys(p,ye.removedDocuments,ze).next(()=>i.Qr.addMatchingKeys(p,ye.addedDocuments,ze)));let Ht=pt.withSequenceNumber(p.currentSequenceNumber);var kn,Sn,hr;null!==n.targetMismatches.get(ze)?Ht=Ht.withResumeToken(oi.EMPTY_BYTE_STRING,gn.min()).withLastLimboFreeSnapshotVersion(gn.min()):ye.resumeToken.approximateByteSize()>0&&(Ht=Ht.withResumeToken(ye.resumeToken,s)),u=u.insert(ze,Ht),Sn=Ht,hr=ye,(0===(kn=pt).resumeToken.approximateByteSize()||Sn.snapshotVersion.toMicroseconds()-kn.snapshotVersion.toMicroseconds()>=3e8||hr.addedDocuments.size+hr.modifiedDocuments.size+hr.removedDocuments.size>0)&&R.push(i.Qr.updateTargetData(p,Ht))});let k=Rr(),q=Hr();if(n.documentUpdates.forEach(ye=>{n.resolvedLimboDocuments.has(ye)&&R.push(i.persistence.referenceDelegate.updateLimboDocument(p,ye))}),R.push(function $u(l,n,i){let s=Hr(),u=Hr();return i.forEach(p=>s=s.add(p)),n.getEntries(l,s).next(p=>{let _=Rr();return i.forEach((R,k)=>{const q=p.get(R);k.isFoundDocument()!==q.isFoundDocument()&&(u=u.add(R)),k.isNoDocument()&&k.version.isEqual(gn.min())?(n.removeEntry(R,k.readTime),_=_.insert(R,k)):!q.isValidDocument()||k.version.compareTo(q.version)>0||0===k.version.compareTo(q.version)&&q.hasPendingWrites?(n.addEntry(k),_=_.insert(R,k)):tt("LocalStore","Ignoring outdated watch update for ",R,". Current version:",q.version," Watch version:",k.version)}),{cs:_,ls:u}})}(p,_,n.documentUpdates).next(ye=>{k=ye.cs,q=ye.ls})),!s.isEqual(gn.min())){const ye=i.Qr.getLastRemoteSnapshotVersion(p).next(ze=>i.Qr.setTargetsMetadata(p,p.currentSequenceNumber,s));R.push(ye)}return pe.waitFor(R).next(()=>_.apply(p)).next(()=>i.localDocuments.getLocalViewOfDocuments(p,k,q)).next(()=>k)}).then(p=>(i.ns=u,p))}(i.localStore,n);n.targetChanges.forEach((u,p)=>{const _=i.Fa.get(p);_&&(X(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?X(_.wa):u.removedDocuments.size>0&&(X(_.wa),_.wa=!1))}),yield Sl(i,s,n)}catch(s){yield Ai(s)}})).apply(this,arguments)}function _g(l,n,i){const s=se(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((p,_)=>{const R=_.view.j_(n);R.snapshot&&u.push(R.snapshot)}),function(_,R){const k=se(_);k.onlineState=R;let q=!1;k.queries.forEach((ye,ze)=>{for(const pt of ze.U_)pt.j_(R)&&(q=!0)}),q&&Kd(k)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function wf(l,n,i){return Sf.apply(this,arguments)}function Sf(){return(Sf=(0,ue.A)(function*(l,n,i){const s=se(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),p=u&&u.key;if(p){let _=new Lr(en.comparator);_=_.insert(p,jr.newNoDocument(p,gn.min()));const R=Hr().add(p),k=new qi(gn.min(),new Map,new Lr(nt),_,R);yield vg(s,k),s.va=s.va.remove(p),s.Fa.delete(n),_v(s)}else yield aa(s.localStore,n,!1).then(()=>Zd(s,n,i)).catch(Ai)})).apply(this,arguments)}function mv(l,n){return Rf.apply(this,arguments)}function Rf(){return(Rf=(0,ue.A)(function*(l,n){const i=se(l),s=n.batch.batchId;try{const u=yield function Uu(l,n){const i=se(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),p=i.os.newChangeBuffer({trackRemovals:!0});return function(R,k,q,ye){const ze=q.batch,pt=ze.keys();let Ht=pe.resolve();return pt.forEach(An=>{Ht=Ht.next(()=>ye.getEntry(k,An)).next(kn=>{const Sn=q.docVersions.get(An);X(null!==Sn),kn.version.compareTo(Sn)<0&&(ze.applyToRemoteDocument(kn,q),kn.isValidDocument()&&(kn.setReadTime(q.commitVersion),ye.addEntry(kn)))})}),Ht.next(()=>R.mutationQueue.removeMutationBatch(k,ze))}(i,s,n,p).next(()=>p.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(R){let k=Hr();for(let q=0;q0&&(k=k.add(R.batch.mutations[q].key));return k}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Mf(i,s,null),Ig(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Sl(i,u)}catch(u){yield Ai(u)}})).apply(this,arguments)}function vv(l,n,i){return yg.apply(this,arguments)}function yg(){return(yg=(0,ue.A)(function*(l,n,i){const s=se(l);try{const u=yield function(_,R){const k=se(_);return k.persistence.runTransaction("Reject batch","readwrite-primary",q=>{let ye;return k.mutationQueue.lookupMutationBatch(q,R).next(ze=>(X(null!==ze),ye=ze.keys(),k.mutationQueue.removeMutationBatch(q,ze))).next(()=>k.mutationQueue.performConsistencyCheck(q)).next(()=>k.documentOverlayCache.removeOverlaysForBatchId(q,ye,R)).next(()=>k.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(q,ye)).next(()=>k.localDocuments.getDocuments(q,ye))})}(s.localStore,n);Mf(s,n,i),Ig(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Sl(s,u)}catch(u){yield Ai(u)}})).apply(this,arguments)}function Ig(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Mf(l,n,i){const s=se(l);let u=s.xa[s.currentUser.toKey()];if(u){const p=u.get(n);p&&(i?p.reject(i):p.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Zd(l,n,i=null){l.sharedClientState.removeLocalQueryTarget(n);for(const s of l.Da.get(n))l.ba.delete(s),i&&l.Sa.ka(s,i);l.Da.delete(n),l.isPrimaryClient&&l.Ma.Vr(n).forEach(s=>{l.Ma.containsKey(s)||Ag(l,s)})}function Ag(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(eo(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),_v(l))}function Cg(l,n,i){for(const s of i)s instanceof Xt?(l.Ma.addReference(s.key,n),Iy(l,s)):s instanceof Dn?(tt("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ag(l,s.key)):H()}function Iy(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(tt("SyncEngine","New document in limbo: "+i),l.Ca.add(s),_v(l))}function _v(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(k,n,i).then(q=>{if((q||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(k.targetId,q&&!q.fromCache?"current":"not-current"),q){u.push(q);const ye=Fi.Ki(k.targetId,q);p.push(ye)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(R=(0,ue.A)(function*(q,ye){const ze=se(q);try{yield ze.persistence.runTransaction("notifyLocalViewChanges","readwrite",pt=>pe.forEach(ye,Ht=>pe.forEach(Ht.qi,An=>ze.persistence.referenceDelegate.addReference(pt,Ht.targetId,An)).next(()=>pe.forEach(Ht.Qi,An=>ze.persistence.referenceDelegate.removeReference(pt,Ht.targetId,An)))))}catch(pt){if(!He(pt))throw pt;tt("LocalStore","Failed to update sequence numbers: "+pt)}for(const pt of ye){const Ht=pt.targetId;if(!pt.fromCache){const An=ze.ns.get(Ht),Sn=An.withLastLimboFreeSnapshotVersion(An.snapshotVersion);ze.ns=ze.ns.insert(Ht,Sn)}}}),function k(q,ye){return R.apply(this,arguments)})(s.localStore,p))}),Pf.apply(this,arguments)}function Dg(l,n){return Tg.apply(this,arguments)}function Tg(){return(Tg=(0,ue.A)(function*(l,n){const i=se(l);if(!i.currentUser.isEqual(n)){tt("SyncEngine","User change. New user:",n.toKey());const s=yield Fd(i.localStore,n);i.currentUser=n,(p=i).Oa.forEach(R=>{R.forEach(k=>{k.reject(new Le(ve.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),p.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Sl(i,s.us)}var p})).apply(this,arguments)}function lu(l,n){const i=se(l),s=i.Fa.get(n);if(s&&s.wa)return Hr().add(s.key);{let u=Hr();const p=i.Da.get(n);if(!p)return u;for(const _ of p){const R=i.ba.get(_);u=u.unionWith(R.view.Ea)}return u}}function nc(l){const n=se(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=vg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=lu.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=wf.bind(null,n),n.Sa.h_=gv.bind(null,n.eventManager),n.Sa.ka=mg.bind(null,n.eventManager),n}class el{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,ue.A)(function*(){i.serializer=Vc(n.databaseInfo.databaseId),i.sharedClientState=i.createSharedClientState(n),i.persistence=i.createPersistence(n),yield i.persistence.start(),i.localStore=i.createLocalStore(n),i.gcScheduler=i.createGarbageCollectionScheduler(n,i.localStore),i.indexBackfillerScheduler=i.createIndexBackfillerScheduler(n,i.localStore)})()}createGarbageCollectionScheduler(n,i){return null}createIndexBackfillerScheduler(n,i){return null}createLocalStore(n){return function nf(l,n,i,s){return new sg(l,n,i,s)}(this.persistence,new tf,n.initialUser,this.serializer)}createPersistence(n){return new Mc(Sa.Hr,this.serializer)}createSharedClientState(n){return new af}terminate(){var n=this;return(0,ue.A)(function*(){var i,s;null===(i=n.gcScheduler)||void 0===i||i.stop(),null===(s=n.indexBackfillerScheduler)||void 0===s||s.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class tl{initialize(n,i){var s=this;return(0,ue.A)(function*(){s.localStore||(s.localStore=n.localStore,s.sharedClientState=n.sharedClientState,s.datastore=s.createDatastore(i),s.remoteStore=s.createRemoteStore(i),s.eventManager=s.createEventManager(i),s.syncEngine=s.createSyncEngine(i,!n.synchronizeTabs),s.sharedClientState.onlineStateHandler=u=>_g(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Dg.bind(null,s.syncEngine),yield fg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new Af}createDatastore(n){const i=Vc(n.databaseInfo.databaseId),s=new Ud(n.databaseInfo);return new lg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,p=n.asyncQueue,_=i=>_g(this.syncEngine,i,0),R=Bd.D()?new Bd:new lf,new bl(s,u,p,_,R);var s,u,p,_,R}createSyncEngine(n,i){return function(u,p,_,R,k,q,ye){const ze=new Vo(u,p,_,R,k,q);return ye&&(ze.La=!0),ze}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,ue.A)(function*(){var i,s;yield(s=(0,ue.A)(function*(p){const _=se(p);tt("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield nu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(p){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Kc{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.Ka(this.observer.next,n)}error(n){this.observer.error?this.Ka(this.observer.error,n):on("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class wy{constructor(n,i,s,u){var p=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=xe.UNAUTHENTICATED,this.clientId=ir.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,ue.A)(function*(R){tt("FirestoreClient","Received user=",R.uid),yield p.authCredentialListener(R),p.user=R});return function(R){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(tt("FirestoreClient","Received new app check token=",_),this.appCheckCredentialListener(_,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new Le(ve.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new _e;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,ue.A)(function*(){try{n._onlineComponents&&(yield n._onlineComponents.terminate()),n._offlineComponents&&(yield n._offlineComponents.terminate()),n.authCredentials.shutdown(),n.appCheckCredentials.shutdown(),i.resolve()}catch(s){const u=Qu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Of(l,n){return oh.apply(this,arguments)}function oh(){return oh=(0,ue.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),tt("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,ue.A)(function*(p){s.isEqual(p)||(yield Fd(n.localStore,p),s=p)});return function(p){return u.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=n}),oh.apply(this,arguments)}function Nf(l,n){return Rg.apply(this,arguments)}function Rg(){return(Rg=(0,ue.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function rc(l){return kf.apply(this,arguments)}(l);tt("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>hg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>hg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function kf(){return(kf=(0,ue.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){tt("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Of(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Tv(l){return"FirebaseError"===l.name?l.code===ve.FAILED_PRECONDITION||l.code===ve.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;dt("Error using user provided cache. Falling back to memory cache: "+i),yield Of(l,new el)}}else tt("FirestoreClient","Using default OfflineComponentProvider"),yield Of(l,new el);return l._offlineComponents})).apply(this,arguments)}function Xc(l){return Mg.apply(this,arguments)}function Mg(){return(Mg=(0,ue.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(tt("FirestoreClient","Using user provided OnlineComponentProvider"),yield Nf(l,l._uninitializedComponentsProvider._online)):(tt("FirestoreClient","Using default OnlineComponentProvider"),yield Nf(l,new tl))),l._onlineComponents})).apply(this,arguments)}function cu(l){return xg.apply(this,arguments)}function xg(){return(xg=(0,ue.A)(function*(l){const n=yield Xc(l),i=n.eventManager;return i.onListen=to.bind(null,n.syncEngine),i.onUnlisten=Df.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Xd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Tf.bind(null,n.syncEngine),i})).apply(this,arguments)}function uh(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Vf=new Map;function Bf(l,n,i){if(!i)throw new Le(ve.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Fg(l){if(!en.isDocumentKey(l))throw new Le(ve.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function du(l){if(en.isDocumentKey(l))throw new Le(ve.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Uf(l){if(void 0===l)return"undefined";if(null===l)return"null";if("string"==typeof l)return l.length>20&&(l=`${l.substring(0,20)}...`),JSON.stringify(l);if("number"==typeof l||"boolean"==typeof l)return""+l;if("object"==typeof l){if(l instanceof Array)return"an array";{const n=(s=l).constructor?s.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var s;return"function"==typeof l?"a function":H()}function Ii(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new Le(ve.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Uf(l);throw new Le(ve.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Pv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new Le(ve.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(i=n.ssl)||void 0===i||i;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new Le(ve.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function Rv(l,n,i,s){if(!0===n&&!0===s)throw new Le(ve.INVALID_ARGUMENT,`${l} and ${i} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=uh(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(p){if(void 0!==p.timeoutSeconds){if(isNaN(p.timeoutSeconds))throw new Le(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (must not be NaN)`);if(p.timeoutSeconds<5)throw new Le(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (minimum allowed value is 5)`);if(p.timeoutSeconds>30)throw new Le(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class ch{constructor(n,i,s,u){this._authCredentials=n,this._appCheckCredentials=i,this._databaseId=s,this._app=u,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Pv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Le(ve.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new Le(ve.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Pv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new dn;switch(s.type){case"firstParty":return new Zn(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new Le(ve.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(i){const s=Vf.get(i);s&&(tt("ComponentProvider","Removing Datastore"),Vf.delete(i),s.terminate())}(this),Promise.resolve()}}class uo{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new uo(this.firestore,n,this._query)}}class vo{constructor(n,i,s){this.converter=i,this._key=s,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new nl(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new vo(this.firestore,n,this._key)}}class nl extends uo{constructor(n,i,s){super(n,i,Ce(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new vo(this.firestore,null,new en(n))}withConverter(n){return new nl(this.firestore,n,this._path)}}function Py(l,n,...i){if(l=(0,Se.Ku)(l),Bf("collection","path",n),l instanceof ch){const s=Mn.fromString(n,...i);return du(s),new nl(l,null,s)}{if(!(l instanceof vo||l instanceof nl))throw new Le(ve.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Mn.fromString(n,...i));return du(s),new nl(l.firestore,null,s)}}function xv(l,n,...i){if(l=(0,Se.Ku)(l),1===arguments.length&&(n=ir.newId()),Bf("doc","path",n),l instanceof ch){const s=Mn.fromString(n,...i);return Fg(s),new vo(l,null,new en(s))}{if(!(l instanceof vo||l instanceof nl))throw new Le(ve.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Mn.fromString(n,...i));return Fg(s),new vo(l.firestore,l instanceof nl?l.converter:null,new en(s))}}class xy{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new tu(this,"async_queue_retry"),this.hu=()=>{const i=Tl();i&&tt("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Tl();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.Pu(),this.Iu(n)}enterRestrictedMode(n){if(!this.ou){this.ou=!0,this.cu=n||!1;const i=Tl();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new _e;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(n().then(i.resolve,i.reject),i.promise)).then(()=>i.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.su.push(n),this.Tu()))}Tu(){var n=this;return(0,ue.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!He(i))throw i;tt("AsyncQueue","Operation failed with retryable error: "+i)}n.su.length>0&&n.Yo.$o(()=>n.Tu())}})()}Iu(n){const i=this.iu.then(()=>(this.uu=!0,n().catch(s=>{throw this.au=s,this.uu=!1,on("INTERNAL UNHANDLED ERROR: ",function(_){let R=_.message||"";return _.stack&&(R=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),R}(s)),s}).then(s=>(this.uu=!1,s))));return this.iu=i,i}enqueueAfterDelay(n,i,s){this.Pu(),this.lu.indexOf(n)>-1&&(i=0);const u=gg.createAndSchedule(this,n,i,s,p=>this.Eu(p));return this._u.push(u),u}Pu(){this.au&&H()}verifyOperationInProgress(){}du(){var n=this;return(0,ue.A)(function*(){let i;do{i=n.iu,yield i}while(i!==n.iu)})()}Au(n){for(const i of this._u)if(i.timerId===n)return!0;return!1}Ru(n){return this.du().then(()=>{this._u.sort((i,s)=>i.targetTimeMs-s.targetTimeMs);for(const i of this._u)if(i.skipDelay(),"all"!==n&&i.timerId===n)break;return this.du()})}Vu(n){this.lu.push(n)}Eu(n){const i=this._u.indexOf(n);this._u.splice(i,1)}}class Bi extends ch{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new xy,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Bg(this),this._firestoreClient.terminate()}}function dh(l,n){const i="object"==typeof l?l:(0,oe.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,oe.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const p=(0,Se.yU)("firestore");p&&function Rl(l,n,i,s={}){var u;const p=(l=Ii(l,ch))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==p.host&&p.host!==_&&dt("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},p),{host:_,ssl:!1})),s.mockUserToken){let R,k;if("string"==typeof s.mockUserToken)R=s.mockUserToken,k=xe.MOCK_USER;else{R=(0,Se.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const q=s.mockUserToken.sub||s.mockUserToken.user_id;if(!q)throw new Le(ve.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");k=new xe(q)}l._authCredentials=new Kt(new Wt(R,k))}}(u,...p)}return u}function ro(l){return l._firestoreClient||Bg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Bg(l){var n,i,s;const u=l._freezeSettings(),p=(k=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new jt(l._databaseId,k,l._persistenceKey,(ye=u).host,ye.ssl,ye.experimentalForceLongPolling,ye.experimentalAutoDetectLongPolling,uh(ye.experimentalLongPollingOptions),ye.useFetchStreams));var k,ye;l._firestoreClient=new wy(l._authCredentials,l._appCheckCredentials,l._queue,p),null!==(i=u.localCache)&&void 0!==i&&i._offlineComponentProvider&&null!==(s=u.localCache)&&void 0!==s&&s._onlineComponentProvider&&(l._firestoreClient._uninitializedComponentsProvider={_offlineKind:u.localCache.kind,_offline:u.localCache._offlineComponentProvider,_online:u.localCache._onlineComponentProvider})}class ic{constructor(n){this._byteString=n}static fromBase64String(n){try{return new ic(oi.fromBase64String(n))}catch(i){throw new Le(ve.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new ic(oi.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class fu{constructor(...n){for(let i=0;i90)throw new Le(ve.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new Le(ve.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+i);this._lat=n,this._long=i}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return nt(this._lat,n._lat)||nt(this._long,n._long)}}const Fv=/^__.*__$/;class $f{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return null!==this.fieldMask?new lo(n,this.data,this.fieldMask,i,this.fieldTransforms):new Ks(n,this.data,i,this.fieldTransforms)}}class $g{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return new lo(n,this.data,this.fieldMask,i,this.fieldTransforms)}}function jf(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw H()}}class zf{constructor(n,i,s,u,p,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===p&&this.mu(),this.fieldTransforms=p||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new zf(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.wu(n),u}Su(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.mu(),u}bu(n){return this.gu({path:void 0,yu:!0})}Du(n){return Wf(n,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(n){return void 0!==this.fieldMask.find(i=>n.isPrefixOf(i))||void 0!==this.fieldTransforms.find(i=>n.isPrefixOf(i.field))}mu(){if(this.path)for(let n=0;nk.covers(ze.field))}else k=null,q=_.fieldTransforms;return new $f(new Vn(R),k,q)}class Jc extends Yc{_toFieldTransform(n){if(2!==n.fu)throw n.Du(1===n.fu?`${this._methodName}() can only appear at the top level of your update data`:`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return n.fieldMask.push(n.path),null}isEqual(n){return n instanceof Jc}}function Pa(l,n){if(Bv(l=(0,Se.Ku)(l)))return Kg("Unsupported field value:",n,l),Vv(l,n);if(l instanceof Yc)return function(s,u){if(!jf(u.fu))throw u.Du(`${s._methodName}() can only be used with update() and set()`);if(!u.path)throw u.Du(`${s._methodName}() is not currently supported inside arrays`);const p=s._toFieldTransform(u);p&&u.fieldTransforms.push(p)}(l,n),null;if(void 0===l&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),l instanceof Array){if(n.settings.yu&&4!==n.fu)throw n.Du("Nested arrays are not supported");return function(s,u){const p=[];let _=0;for(const R of s){let k=Pa(R,u.bu(_));null==k&&(k={nullValue:"NULL_VALUE"}),p.push(k),_++}return{arrayValue:{values:p}}}(l,n)}return function(s,u){if(null===(s=(0,Se.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return hl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const p=pn.fromDate(s);return{timestampValue:Go(u.serializer,p)}}if(s instanceof pn){const p=new pn(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:Go(u.serializer,p)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof ic)return{bytesValue:qs(u.serializer,s._byteString)};if(s instanceof vo){const p=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(p))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${p.projectId}/${p.database}`);return{referenceValue:Qs(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${Uf(s)}`)}(l,n)}function Vv(l,n){const i={};return ei(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):ai(l,(s,u)=>{const p=Pa(u,n.pu(s));null!=p&&(i[s]=p)}),{mapValue:{fields:i}}}function Bv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof pn||l instanceof Ug||l instanceof ic||l instanceof vo||l instanceof Yc)}function Kg(l,n,i){if(!Bv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Uf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Zc(l,n,i){if((n=(0,Se.Ku)(n))instanceof fu)return n._internalPath;if("string"==typeof n)return Gf(l,n);throw Wf("Field path arguments must be of type string or ",l,!1,void 0,i)}const Uy=new RegExp("[~\\*/\\[\\]]");function Gf(l,n,i){if(n.search(Uy)>=0)throw Wf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new fu(...n.split("."))._internalPath}catch{throw Wf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Wf(l,n,i,s,u){const p=s&&!s.isEmpty(),_=void 0!==u;let R=`Function ${n}() called with invalid data`;i&&(R+=" (via `toFirestore()`)"),R+=". ";let k="";return(p||_)&&(k+=" (found",p&&(k+=` in field ${s}`),_&&(k+=` in document ${u}`),k+=")"),new Le(ve.INVALID_ARGUMENT,R+l+k)}function Uv(l,n){return l.some(i=>i.isEqual(n))}class ph{constructor(n,i,s,u,p){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=p}get id(){return this._key.path.lastSegment()}get ref(){return new vo(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new $y(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const i=this._document.data.field(ed("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class $y extends ph{data(){return super.data()}}function ed(l,n){return"string"==typeof n?Gf(l,n):n instanceof fu?n._internalPath:n._delegate._internalPath}class Qg{convertValue(n,i="none"){switch(j(n)){case 0:return null;case 1:return n.booleanValue;case 2:return le(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,i);case 5:return n.stringValue;case 6:return this.convertBytes(W(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,i);case 10:return this.convertObject(n.mapValue,i);default:throw H()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return ai(n,(u,p)=>{s[u]=this.convertValue(p,i)}),s}convertGeoPoint(n){return new Ug(le(n.latitude),le(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Ve(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(st(n));default:return null}}convertTimestamp(n){const i=he(n);return new pn(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=Mn.fromString(n);X(E(s));const u=new In(s.get(1),s.get(3)),p=new en(s.popFirst(5));return u.isEqual(i)||on(`Document ${p} contains a document reference within a different database (${u.projectId}/${u.database}) which is not supported. It will be treated as a reference in the current database (${i.projectId}/${i.database}) instead.`),p}}class Pl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class lc extends ph{constructor(n,i,s,u,p,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=p}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new rd(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(i,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,i={}){if(this._document){const s=this._document.data.field(ed("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class rd extends lc{data(n={}){return super.data(n)}}class xl{constructor(n,i,s,u){this._firestore=n,this._userDataWriter=i,this._snapshot=u,this.metadata=new Pl(u.hasPendingWrites,u.fromCache),this.query=s}get docs(){const n=[];return this.forEach(i=>n.push(i)),n}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(n,i){this._snapshot.docs.forEach(s=>{n.call(i,new rd(this._firestore,this._userDataWriter,s.key,s,new Pl(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))})}docChanges(n={}){const i=!!n.includeMetadataChanges;if(i&&this._snapshot.excludesMetadataChanges)throw new Le(ve.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===i||(this._cachedChanges=function(u,p){if(u._snapshot.oldDocs.isEmpty()){let _=0;return u._snapshot.docChanges.map(R=>({type:"added",doc:new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter),oldIndex:-1,newIndex:_++}))}{let _=u._snapshot.oldDocs;return u._snapshot.docChanges.filter(R=>p||3!==R.type).map(R=>{const k=new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter);let q=-1,ye=-1;return 0!==R.type&&(q=_.indexOf(R.doc.key),_=_.delete(R.doc.key)),1!==R.type&&(_=_.add(R.doc),ye=_.indexOf(R.doc.key)),{type:qy(R.type),doc:k,oldIndex:q,newIndex:ye}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function qy(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return H()}}function Hv(l){l=Ii(l,vo);const n=Ii(l.firestore,Bi);return function lh(l,n,i={}){const s=new _e;return l.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function(p,_,R,k,q){const ye=new Kc({next:pt=>{_.enqueueAndForget(()=>Ju(p,ze));const Ht=pt.docs.has(R);!Ht&&pt.fromCache?q.reject(new Le(ve.UNAVAILABLE,"Failed to get document because the client is offline.")):Ht&&pt.fromCache&&k&&"server"===k.source?q.reject(new Le(ve.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):q.resolve(pt)},error:pt=>q.reject(pt)}),ze=new v(Ce(R.path),ye,{includeMetadataChanges:!0,ra:!0});return Bs(p,ze)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(ro(n),l._key).then(i=>function Qf(l,n,i){const s=i.docs.get(n._key),u=new pu(l);return new lc(l,u,n._key,s,new Pl(i.hasPendingWrites,i.fromCache),n.converter)}(n,l,i))}class pu extends Qg{constructor(n){super(),this.firestore=n}convertBytes(n){return new ic(n)}convertReference(n){const i=this.convertDocumentKey(n,this.firestore._databaseId);return new vo(this.firestore,null,i)}}function Gv(l){l=Ii(l,uo);const n=Ii(l.firestore,Bi),i=ro(n),s=new pu(n);return function jy(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new Le(ve.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function Ng(l,n,i={}){const s=new _e;return l.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function(p,_,R,k,q){const ye=new Kc({next:pt=>{_.enqueueAndForget(()=>Ju(p,ze)),pt.fromCache&&"server"===k.source?q.reject(new Le(ve.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):q.resolve(pt)},error:pt=>q.reject(pt)}),ze=new v(R,ye,{includeMetadataChanges:!0,ra:!0});return Bs(p,ze)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new xl(n,s,l,u))}function em(l,n,i){l=Ii(l,vo);const s=Ii(l.firestore,Bi),u=function mh(l,n,i){let s;return s=l?i&&(i.merge||i.mergeFields)?l.toFirestore(n,i):l.toFirestore(n):n,s}(l.converter,n,i);return od(s,[fh(sc(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Ui.none())])}function Qy(l,n,i,...s){l=Ii(l,vo);const u=Ii(l.firestore,Bi),p=sc(u);let _;return _="string"==typeof(n=(0,Se.Ku)(n))||n instanceof fu?function Lv(l,n,i,s,u,p){const _=l.Fu(1,n,i),R=[Zc(n,s,i)],k=[u];if(p.length%2!=0)throw new Le(ve.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let pt=0;pt=0;--pt)if(!Uv(q,R[pt])){const Ht=R[pt];let An=k[pt];An=(0,Se.Ku)(An);const kn=_.Su(Ht);if(An instanceof Jc)q.push(Ht);else{const Sn=Pa(An,kn);null!=Sn&&(q.push(Ht),ye.set(Ht,Sn))}}const ze=new Ci(q);return new $g(ye,ze,_.fieldTransforms)}(p,"updateDoc",l._key,n,i,s):function Hf(l,n,i,s){const u=l.Fu(1,n,i);Kg("Data must be an object, but it was:",u,s);const p=[],_=Vn.empty();ai(s,(k,q)=>{const ye=Gf(n,k,i);q=(0,Se.Ku)(q);const ze=u.Su(ye);if(q instanceof Jc)p.push(ye);else{const pt=Pa(q,ze);null!=pt&&(p.push(ye),_.set(ye,pt))}});const R=new Ci(p);return new $g(_,R,u.fieldTransforms)}(p,"updateDoc",l._key,n),od(u,[_.toMutation(l._key,Ui.exists(!0))])}function Yy(l){return od(Ii(l.firestore,Bi),[new $(l._key,Ui.none())])}function od(l,n){return function(s,u){const p=new _e;return s.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function Yd(l,n,i){return Jd.apply(this,arguments)}(yield function Pg(l){return Xc(l).then(n=>n.syncEngine)}(s),u,p)})),p.promise}(ro(l),n)}!function(n,i=!0){rt=oe.MF,(0,oe.om)(new Xe.uA("firestore",(s,{instanceIdentifier:u,options:p})=>{const _=s.getProvider("app").getImmediate(),R=new Bi(new rn(s.getProvider("auth-internal")),new er(s.getProvider("app-check-internal")),function(q,ye){if(!Object.prototype.hasOwnProperty.apply(q.options,["projectId"]))throw new Le(ve.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new In(q.options.projectId,ye)}(_,u),_);return p=Object.assign({useFetchStreams:i},p),R._setSettings(p),R},"PUBLIC").setMultipleInstances(!0)),(0,oe.KO)(Fe,"4.6.3",n),(0,oe.KO)(Fe,"4.6.3","esm2017")}();class Eh{constructor(n){return n}}const tp="firestore",sm=new c.nKC("angularfire2.firestore-instances");function h0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new Eh(s)}}const f0={provide:class d0{constructor(){return(0,h.CA)(tp)}},deps:[[new c.Xx1,sm]]},p0={provide:Eh,useFactory:function Zv(l,n){const i=(0,h.lR)(tp,l,n);return i&&new Eh(i)},deps:[[new c.Xx1,sm],Z.XU]};function e_(l,...n){return(0,U.KO)("angularfire",h.xv.full,"fst"),(0,c.EmA)([p0,f0,{provide:sm,useFactory:h0(l),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,Oe.DF],[new c.Xx1,h.Jv],...n]}])}const _0=(0,h.S3)(Py,!0),y0=(0,h.S3)(Yy,!0),lm=(0,h.S3)(xv,!0),cm=(0,h.S3)(Hv,!0),o_=(0,h.S3)(Gv,!0),dm=(0,h.S3)(dh,!0),P0=(0,h.S3)(em,!0),x0=(0,h.S3)(Qy,!0)},9032:(Tn,gt,D)=>{"use strict";D.d(gt,{L9:()=>cr,oc:()=>Lt,v_:()=>He,cw:()=>Ee});var h=D(5407),c=D(4438),Z=D(7440),Oe=D(2214),U=D(467),ue=D(7852),oe=D(1362),Xe=D(1076),Je=D(1635),Se="@firebase/vertexai-preview",De="0.0.2";const Qe="vertexAI",Ze="us-central1",Tt=De,St="gl-js";class yt{constructor(ct,lt,Gt,tn){var _n;this.app=ct,this.options=tn;const qn=null==Gt?void 0:Gt.getImmediate({optional:!0}),hn=null==lt?void 0:lt.getImmediate({optional:!0});this.auth=hn||null,this.appCheck=qn||null,this.location=(null===(_n=this.options)||void 0===_n?void 0:_n.location)||Ze}_delete(){return Promise.resolve()}}const Et=new Xe.FA("vertexAI","VertexAI",{"fetch-error":"Error fetching from {$url}: {$message}","invalid-content":"Content formatting error: {$message}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid API key.',"no-project-id":'The "projectId" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid project ID.',"no-model":"Must provide a model name. Example: getGenerativeModel({ model: 'my-model-name' })","parse-failed":"Parsing failed: {$message}","response-error":"Response error: {$message}. Response body stored in error.customData.response"});var mt=function(ie){return ie.GENERATE_CONTENT="generateContent",ie.STREAM_GENERATE_CONTENT="streamGenerateContent",ie.COUNT_TOKENS="countTokens",ie}(mt||{});class Me{constructor(ct,lt,Gt,tn,_n){this.model=ct,this.task=lt,this.apiSettings=Gt,this.stream=tn,this.requestOptions=_n}toString(){var ct;let tn=`${(null===(ct=this.requestOptions)||void 0===ct?void 0:ct.baseUrl)||"https://firebaseml.googleapis.com"}/v2beta`;return tn+=`/projects/${this.apiSettings.project}`,tn+=`/locations/${this.apiSettings.location}`,tn+=`/${this.model}`,tn+=`:${this.task}`,this.stream&&(tn+="?alt=sse"),tn}get fullModelString(){let ct=`projects/${this.apiSettings.project}`;return ct+=`/locations/${this.apiSettings.location}`,ct+=`/${this.model}`,ct}}function ge(ie){return Ue.apply(this,arguments)}function Ue(){return(Ue=(0,U.A)(function*(ie){const ct=new Headers;if(ct.append("Content-Type","application/json"),ct.append("x-goog-api-client",function Ye(){const ie=[];return ie.push(`${St}/${Tt}`),ie.push(`fire/${Tt}`),ie.join(" ")}()),ct.append("x-goog-api-key",ie.apiSettings.apiKey),ie.apiSettings.getAppCheckToken){const lt=yield ie.apiSettings.getAppCheckToken();lt&&!lt.error&&ct.append("X-Firebase-AppCheck",lt.token)}if(ie.apiSettings.getAuthToken){const lt=yield ie.apiSettings.getAuthToken();lt&&ct.append("Authorization",`Firebase ${lt.accessToken}`)}return ct})).apply(this,arguments)}function xe(){return(xe=(0,U.A)(function*(ie,ct,lt,Gt,tn,_n){const qn=new Me(ie,ct,lt,Gt,_n);return{url:qn.toString(),fetchOptions:Object.assign(Object.assign({},vn(_n)),{method:"POST",headers:yield ge(qn),body:tn})}})).apply(this,arguments)}function rt(ie,ct,lt,Gt,tn,_n){return Rt.apply(this,arguments)}function Rt(){return Rt=(0,U.A)(function*(ie,ct,lt,Gt,tn,_n){const qn=new Me(ie,ct,lt,Gt,_n);let hn;try{const Cn=yield function Fe(ie,ct,lt,Gt,tn,_n){return xe.apply(this,arguments)}(ie,ct,lt,Gt,tn,_n);if(hn=yield fetch(Cn.url,Cn.fetchOptions),!hn.ok){let tr="";try{const Ar=yield hn.json();tr=Ar.error.message,Ar.error.details&&(tr+=` ${JSON.stringify(Ar.error.details)}`)}catch{}throw new Error(`[${hn.status} ${hn.statusText}] ${tr}`)}}catch(Cn){const tr=Cn,Ar=Et.create("fetch-error",{url:qn.toString(),message:tr.message});throw Ar.stack=tr.stack,Ar}return hn}),Rt.apply(this,arguments)}function vn(ie){const ct={};if(null!=ie&&ie.timeout&&(null==ie?void 0:ie.timeout)>=0){const lt=new AbortController,Gt=lt.signal;setTimeout(()=>lt.abort(),ie.timeout),ct.signal=Gt}return ct}const Nt=["user","model","function","system"];var fe=function(ie){return ie.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",ie.STOP="STOP",ie.MAX_TOKENS="MAX_TOKENS",ie.SAFETY="SAFETY",ie.RECITATION="RECITATION",ie.OTHER="OTHER",ie}(fe||{});function Le(ie){return ie.text=()=>{if(ie.candidates&&ie.candidates.length>0){if(ie.candidates.length>1&&console.warn(`This response had ${ie.candidates.length} candidates. Returning text from the first candidate only. Access response.candidates directly to use the other candidates.`),Kt(ie.candidates[0]))throw Et.create("response-error",{message:`${rn(ie)}`,response:ie});return function _e(ie){var ct,lt,Gt,tn;const _n=[];if(null!==(lt=null===(ct=ie.candidates)||void 0===ct?void 0:ct[0].content)&&void 0!==lt&<.parts)for(const qn of null===(tn=null===(Gt=ie.candidates)||void 0===Gt?void 0:Gt[0].content)||void 0===tn?void 0:tn.parts)qn.text&&_n.push(qn.text);return _n.length>0?_n.join(""):""}(ie)}if(ie.promptFeedback)throw Et.create("response-error",{message:`Text not available. ${rn(ie)}`,response:ie});return""},ie.functionCalls=()=>{if(ie.candidates&&ie.candidates.length>0){if(ie.candidates.length>1&&console.warn(`This response had ${ie.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),Kt(ie.candidates[0]))throw Et.create("response-error",{message:`${rn(ie)}`,response:ie});return function Wt(ie){var ct,lt,Gt,tn;const _n=[];if(null!==(lt=null===(ct=ie.candidates)||void 0===ct?void 0:ct[0].content)&&void 0!==lt&<.parts)for(const qn of null===(tn=null===(Gt=ie.candidates)||void 0===Gt?void 0:Gt[0].content)||void 0===tn?void 0:tn.parts)qn.functionCall&&_n.push(qn.functionCall);if(_n.length>0)return _n}(ie)}if(ie.promptFeedback)throw Et.create("response-error",{message:`Function call not available. ${rn(ie)}`,response:ie})},ie}const dn=[fe.RECITATION,fe.SAFETY];function Kt(ie){return!!ie.finishReason&&dn.includes(ie.finishReason)}function rn(ie){var ct,lt,Gt;let tn="";if(ie.candidates&&0!==ie.candidates.length||!ie.promptFeedback){if(null!==(Gt=ie.candidates)&&void 0!==Gt&&Gt[0]){const _n=ie.candidates[0];Kt(_n)&&(tn+=`Candidate was blocked due to ${_n.finishReason}`,_n.finishMessage&&(tn+=`: ${_n.finishMessage}`))}}else tn+="Response was blocked",!(null===(ct=ie.promptFeedback)||void 0===ct)&&ct.blockReason&&(tn+=` due to ${ie.promptFeedback.blockReason}`),null!==(lt=ie.promptFeedback)&&void 0!==lt&<.blockReasonMessage&&(tn+=`: ${ie.promptFeedback.blockReasonMessage}`);return tn}const Ln=/^data\: (.*)(?:\n\n|\r\r|\r\n\r\n)/;function nr(ie){return er.apply(this,arguments)}function er(){return(er=(0,U.A)(function*(ie){const ct=[],lt=ie.getReader();for(;;){const{done:Gt,value:tn}=yield lt.read();if(Gt)return Le(ir(ct));ct.push(tn)}})).apply(this,arguments)}function yr(ie){return(0,Je.AQ)(this,arguments,function*(){const lt=ie.getReader();for(;;){const{value:Gt,done:tn}=yield(0,Je.N3)(lt.read());if(tn)break;yield yield(0,Je.N3)(Le(Gt))}})}function ir(ie){const ct=ie[ie.length-1],lt={promptFeedback:null==ct?void 0:ct.promptFeedback};for(const Gt of ie)if(Gt.candidates)for(const tn of Gt.candidates){const _n=tn.index;if(lt.candidates||(lt.candidates=[]),lt.candidates[_n]||(lt.candidates[_n]={index:tn.index}),lt.candidates[_n].citationMetadata=tn.citationMetadata,lt.candidates[_n].finishReason=tn.finishReason,lt.candidates[_n].finishMessage=tn.finishMessage,lt.candidates[_n].safetyRatings=tn.safetyRatings,tn.content&&tn.content.parts){lt.candidates[_n].content||(lt.candidates[_n].content={role:tn.content.role||"user",parts:[]});const qn={};for(const hn of tn.content.parts)hn.text&&(qn.text=hn.text),hn.functionCall&&(qn.functionCall=hn.functionCall),0===Object.keys(qn).length&&(qn.text=""),lt.candidates[_n].content.parts.push(qn)}}return lt}function nt(ie,ct,lt,Gt){return Ot.apply(this,arguments)}function Ot(){return(Ot=(0,U.A)(function*(ie,ct,lt,Gt){return function Zn(ie){const lt=function rr(ie){const ct=ie.getReader();return new ReadableStream({start(Gt){let tn="";return function _n(){return ct.read().then(({value:qn,done:hn})=>{if(hn)return tn.trim()?void Gt.error(Et.create("parse-failed",{message:"Failed to parse stream"})):void Gt.close();tn+=qn;let tr,Cn=tn.match(Ln);for(;Cn;){try{tr=JSON.parse(Cn[1])}catch{return void Gt.error(Et.create("parse-failed",{message:`Error parsing JSON response: "${Cn[1]}"`}))}Gt.enqueue(tr),tn=tn.substring(Cn[0].length),Cn=tn.match(Ln)}return _n()})}()}})}(ie.body.pipeThrough(new TextDecoderStream("utf8",{fatal:!0}))),[Gt,tn]=lt.tee();return{stream:yr(Gt),response:nr(tn)}}(yield rt(ct,mt.STREAM_GENERATE_CONTENT,ie,!0,JSON.stringify(lt),Gt))})).apply(this,arguments)}function zt(ie,ct,lt,Gt){return pn.apply(this,arguments)}function pn(){return(pn=(0,U.A)(function*(ie,ct,lt,Gt){return{response:Le(yield(yield rt(ct,mt.GENERATE_CONTENT,ie,!1,JSON.stringify(lt),Gt)).json())}})).apply(this,arguments)}function gn(ie){if(null!=ie){if("string"==typeof ie)return{role:"system",parts:[{text:ie}]};if(ie.text)return{role:"system",parts:[ie]};if(ie.parts)return ie.role?ie:{role:"system",parts:ie.parts}}}function Sr(ie){let ct=[];if("string"==typeof ie)ct=[{text:ie}];else for(const lt of ie)ct.push("string"==typeof lt?{text:lt}:lt);return function Mn(ie){const ct={role:"user",parts:[]},lt={role:"function",parts:[]};let Gt=!1,tn=!1;for(const _n of ie)"functionResponse"in _n?(lt.parts.push(_n),tn=!0):(ct.parts.push(_n),Gt=!0);if(Gt&&tn)throw Et.create("invalid-content",{message:"Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message."});if(!Gt&&!tn)throw Et.create("invalid-content",{message:"No content is provided for sending chat message."});return Gt?ct:lt}(ct)}function xn(ie){let ct;return ct=ie.contents?ie:{contents:[Sr(ie)]},ie.systemInstruction&&(ct.systemInstruction=gn(ie.systemInstruction)),ct}const mn=["text","inlineData","functionCall","functionResponse"],en={user:["text","inlineData"],function:["functionResponse"],model:["text","functionCall"],system:["text"]},Er={user:["model"],function:["model"],model:["user","function"],system:[]},Nr="SILENT_ERROR";class Qn{constructor(ct,lt,Gt,tn){this.model=lt,this.params=Gt,this.requestOptions=tn,this._history=[],this._sendPromise=Promise.resolve(),this._apiSettings=ct,null!=Gt&&Gt.history&&(function Ir(ie){let ct=null;for(const lt of ie){const{role:Gt,parts:tn}=lt;if(!ct&&"user"!==Gt)throw Et.create("invalid-content",{message:`First content should be with role 'user', got ${Gt}`});if(!Nt.includes(Gt))throw Et.create("invalid-content",{message:`Each item should include role field. Got ${Gt} but valid roles are: ${JSON.stringify(Nt)}`});if(!Array.isArray(tn))throw Et.create("invalid-content",{message:"Content should have 'parts' property with an array of Parts"});if(0===tn.length)throw Et.create("invalid-content",{message:"Each Content should have at least one part"});const _n={text:0,inlineData:0,functionCall:0,functionResponse:0};for(const hn of tn)for(const Cn of mn)Cn in hn&&(_n[Cn]+=1);const qn=en[Gt];for(const hn of mn)if(!qn.includes(hn)&&_n[hn]>0)throw Et.create("invalid-content",{message:`Content with role '${Gt}' can't contain '${hn}' part`});if(ct&&!Er[Gt].includes(ct.role))throw Et.create("invalid-content",{message:`Content with role '${Gt}' can't follow '${ct.role}'. Valid previous roles: ${JSON.stringify(Er)}`});ct=lt}}(Gt.history),this._history=Gt.history)}getHistory(){var ct=this;return(0,U.A)(function*(){return yield ct._sendPromise,ct._history})()}sendMessage(ct){var lt=this;return(0,U.A)(function*(){var Gt,tn,_n,qn,hn;yield lt._sendPromise;const Cn=Sr(ct),tr={safetySettings:null===(Gt=lt.params)||void 0===Gt?void 0:Gt.safetySettings,generationConfig:null===(tn=lt.params)||void 0===tn?void 0:tn.generationConfig,tools:null===(_n=lt.params)||void 0===_n?void 0:_n.tools,toolConfig:null===(qn=lt.params)||void 0===qn?void 0:qn.toolConfig,systemInstruction:null===(hn=lt.params)||void 0===hn?void 0:hn.systemInstruction,contents:[...lt._history,Cn]};let Ar={};return lt._sendPromise=lt._sendPromise.then(()=>zt(lt._apiSettings,lt.model,tr,lt.requestOptions)).then(dr=>{var $r,Zr;if(dr.response.candidates&&dr.response.candidates.length>0){lt._history.push(Cn);const fr={parts:(null===($r=dr.response.candidates)||void 0===$r?void 0:$r[0].content.parts)||[],role:(null===(Zr=dr.response.candidates)||void 0===Zr?void 0:Zr[0].content.role)||"model"};lt._history.push(fr)}else{const fr=rn(dr.response);fr&&console.warn(`sendMessage() was unsuccessful. ${fr}. Inspect response object for details.`)}Ar=dr}),yield lt._sendPromise,Ar})()}sendMessageStream(ct){var lt=this;return(0,U.A)(function*(){var Gt,tn,_n,qn,hn;yield lt._sendPromise;const Cn=Sr(ct),tr={safetySettings:null===(Gt=lt.params)||void 0===Gt?void 0:Gt.safetySettings,generationConfig:null===(tn=lt.params)||void 0===tn?void 0:tn.generationConfig,tools:null===(_n=lt.params)||void 0===_n?void 0:_n.tools,toolConfig:null===(qn=lt.params)||void 0===qn?void 0:qn.toolConfig,systemInstruction:null===(hn=lt.params)||void 0===hn?void 0:hn.systemInstruction,contents:[...lt._history,Cn]},Ar=nt(lt._apiSettings,lt.model,tr,lt.requestOptions);return lt._sendPromise=lt._sendPromise.then(()=>Ar).catch(dr=>{throw new Error(Nr)}).then(dr=>dr.response).then(dr=>{if(dr.candidates&&dr.candidates.length>0){lt._history.push(Cn);const $r=Object.assign({},dr.candidates[0].content);$r.role||($r.role="model"),lt._history.push($r)}else{const $r=rn(dr);$r&&console.warn(`sendMessageStream() was unsuccessful. ${$r}. Inspect response object for details.`)}}).catch(dr=>{dr.message!==Nr&&console.error(dr)}),Ar})()}}function Jn(){return(Jn=(0,U.A)(function*(ie,ct,lt,Gt){return(yield rt(ct,mt.COUNT_TOKENS,ie,!1,JSON.stringify(lt),Gt)).json()})).apply(this,arguments)}class Jr{constructor(ct,lt,Gt){var tn,_n,qn,hn;if(null===(_n=null===(tn=ct.app)||void 0===tn?void 0:tn.options)||void 0===_n||!_n.apiKey)throw Et.create("no-api-key");if(null===(hn=null===(qn=ct.app)||void 0===qn?void 0:qn.options)||void 0===hn||!hn.projectId)throw Et.create("no-project-id");this._apiSettings={apiKey:ct.app.options.apiKey,project:ct.app.options.projectId,location:ct.location},ct.appCheck&&(this._apiSettings.getAppCheckToken=()=>ct.appCheck.getToken()),ct.auth&&(this._apiSettings.getAuthToken=()=>ct.auth.getToken()),this.model=lt.model.includes("/")?lt.model.startsWith("models/")?`publishers/google/${lt.model}`:lt.model:`publishers/google/models/${lt.model}`,this.generationConfig=lt.generationConfig||{},this.safetySettings=lt.safetySettings||[],this.tools=lt.tools,this.toolConfig=lt.toolConfig,this.systemInstruction=gn(lt.systemInstruction),this.requestOptions=Gt||{}}generateContent(ct){var lt=this;return(0,U.A)(function*(){const Gt=xn(ct);return zt(lt._apiSettings,lt.model,Object.assign({generationConfig:lt.generationConfig,safetySettings:lt.safetySettings,tools:lt.tools,toolConfig:lt.toolConfig,systemInstruction:lt.systemInstruction},Gt),lt.requestOptions)})()}generateContentStream(ct){var lt=this;return(0,U.A)(function*(){const Gt=xn(ct);return nt(lt._apiSettings,lt.model,Object.assign({generationConfig:lt.generationConfig,safetySettings:lt.safetySettings,tools:lt.tools,toolConfig:lt.toolConfig,systemInstruction:lt.systemInstruction},Gt),lt.requestOptions)})()}startChat(ct){return new Qn(this._apiSettings,this.model,Object.assign({tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction},ct),this.requestOptions)}countTokens(ct){var lt=this;return(0,U.A)(function*(){const Gt=xn(ct);return function Dr(ie,ct,lt,Gt){return Jn.apply(this,arguments)}(lt._apiSettings,lt.model,Gt)})()}}function mr(ie=(0,ue.Sx)(),ct){return ie=(0,Xe.Ku)(ie),(0,ue.j6)(ie,Qe).getImmediate({identifier:(null==ct?void 0:ct.location)||Ze})}function ur(ie,ct,lt){if(!ct.model)throw Et.create("no-model");return new Jr(ie,ct,lt)}!function Pr(){(0,ue.om)(new oe.uA(Qe,(ie,{instanceIdentifier:ct})=>{const lt=ie.getProvider("app").getImmediate(),Gt=ie.getProvider("auth-internal"),tn=ie.getProvider("app-check-internal");return new yt(lt,Gt,tn,{location:ct})},"PUBLIC").setMultipleInstances(!0)),(0,ue.KO)(Se,De),(0,ue.KO)(Se,De,"esm2017")}();class cr{constructor(ct){return ct}}const kr="vertexai",Qr=new c.nKC("angularfire2.vertexai-instances");function it(ie){return(ct,lt)=>{const Gt=ct.runOutsideAngular(()=>ie(lt));return new cr(Gt)}}const Mt={provide:class ii{constructor(){return(0,h.CA)(kr)}},deps:[[new c.Xx1,Qr]]},ut={provide:cr,useFactory:function pe(ie,ct){const lt=(0,h.lR)(kr,ie,ct);return lt&&new cr(lt)},deps:[[new c.Xx1,Qr],Z.XU]};function Ee(ie,...ct){return(0,Oe.KO)("angularfire",h.xv.full,"vertexai"),(0,c.EmA)([ut,Mt,{provide:Qr,useFactory:it(ie),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...ct]}])}const He=(0,h.S3)(mr,!0),Lt=(0,h.S3)(ur,!0)},5407:(Tn,gt,D)=>{"use strict";D.d(gt,{xv:()=>ht,u0:()=>ge,Jv:()=>_t,CA:()=>yt,lR:()=>St,S3:()=>on});var h=D(9842),c=D(4438),Z=D(2214),Oe=D(6780),ue=D(9687);const Xe=new class oe extends ue.q{}(class U extends Oe.R{constructor(we,H){super(we,H),this.scheduler=we,this.work=H}schedule(we,H=0){return H>0?super.schedule(we,H):(this.delay=H,this.state=we,this.scheduler.flush(this),this)}execute(we,H){return H>0||this.closed?super.execute(we,H):this._execute(we,H)}requestAsyncId(we,H,X=0){return null!=X&&X>0||null==X&&this.delay>0?super.requestAsyncId(we,H,X):(we.flush(this),0)}});var Se=D(3236),De=D(1985),Qe=D(8141),Ze=D(6745),qe=D(941);const ht=new c.RxE("ANGULARFIRE2_VERSION");function St(dt,we,H){if(we){if(1===we.length)return we[0];const se=we.filter(ve=>ve.app===H);if(1===se.length)return se[0]}return H.container.getProvider(dt).getImmediate({optional:!0})}const yt=(dt,we)=>{const H=we?[we]:(0,Z.Dk)(),X=[];return H.forEach(fe=>{fe.container.getProvider(dt).instances.forEach(ve=>{X.includes(ve)||X.push(ve)})}),X};class _t{constructor(){return yt(Et)}}const Et="app-check";function mt(){}class Me{constructor(we,H=Xe){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"delegate",void 0),this.zone=we,this.delegate=H}now(){return this.delegate.now()}schedule(we,H,X){const fe=this.zone;return this.delegate.schedule(function(ve){fe.runGuarded(()=>{we.apply(this,[ve])})},H,X)}}class Ye{constructor(we){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"task",null),this.zone=we}call(we,H){const X=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",mt,{},mt,mt)),H.pipe((0,Qe.M)({next:X,complete:X,error:X})).subscribe(we).add(X)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let ge=(()=>{var dt;class we{constructor(X){(0,h.A)(this,"ngZone",void 0),(0,h.A)(this,"outsideAngular",void 0),(0,h.A)(this,"insideAngular",void 0),this.ngZone=X,this.outsideAngular=X.runOutsideAngular(()=>new Me(Zone.current)),this.insideAngular=X.run(()=>new Me(Zone.current,Se.E)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return dt=we,(0,h.A)(we,"\u0275fac",function(X){return new(X||dt)(c.KVO(c.SKi))}),(0,h.A)(we,"\u0275prov",c.jDH({token:dt,factory:dt.\u0275fac,providedIn:"root"})),we})();function Ue(){const dt=globalThis.\u0275AngularFireScheduler;if(!dt)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return dt}function xe(dt){return Ue().ngZone.run(()=>dt())}function vn(dt){return function Nt(dt){return function(H){return(H=H.lift(new Ye(dt.ngZone))).pipe((0,Ze._)(dt.outsideAngular),(0,qe.Q)(dt.insideAngular))}}(Ue())(dt)}const tt=(dt,we)=>function(){const X=arguments;return we&&setTimeout(()=>{"scheduled"===we.state&&we.invoke()},10),xe(()=>dt.apply(void 0,X))},on=(dt,we)=>function(){let H;const X=arguments;for(let se=0;seZone.current.scheduleMacroTask("firebaseZoneBlock",mt,{},mt,mt)))),X[se]=tt(X[se],H));const fe=function Fe(dt){return Ue().ngZone.runOutsideAngular(()=>dt())}(()=>dt.apply(this,X));if(!we){if(fe instanceof De.c){const se=Ue();return fe.pipe((0,Ze._)(se.outsideAngular),(0,qe.Q)(se.insideAngular))}return xe(()=>fe)}return fe instanceof De.c?fe.pipe(vn):fe instanceof Promise?xe(()=>new Promise((se,ve)=>fe.then(Le=>xe(()=>se(Le)),Le=>xe(()=>ve(Le))))):"function"==typeof fe&&H?function(){return setTimeout(()=>{H&&"scheduled"===H.state&&H.invoke()},10),fe.apply(this,arguments)}:xe(()=>fe)}},4341:(Tn,gt,D)=>{"use strict";D.d(gt,{YN:()=>ha,zX:()=>ki,VZ:()=>as,cz:()=>ge,kq:()=>ht,vO:()=>zt,BC:()=>Mn,vS:()=>bt});var h=D(4438),c=D(177),Z=D(8455),Oe=D(1985),U=D(3073),ue=D(8750),oe=D(9326),Xe=D(4360),Je=D(6450),Se=D(8496),Qe=D(6354);let Ze=(()=>{var K;class N{constructor(G,ke){this._renderer=G,this._elementRef=ke,this.onChange=yn=>{},this.onTouched=()=>{}}setProperty(G,ke){this._renderer.setProperty(this._elementRef.nativeElement,G,ke)}registerOnTouched(G){this.onTouched=G}registerOnChange(G){this.onChange=G}setDisabledState(G){this.setProperty("disabled",G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(h.sFG),h.rXU(h.aKT))},K.\u0275dir=h.FsC({type:K}),N})(),qe=(()=>{var K;class N extends Ze{}return(K=N).\u0275fac=(()=>{let Ce;return function(ke){return(Ce||(Ce=h.xGo(K)))(ke||K)}})(),K.\u0275dir=h.FsC({type:K,features:[h.Vt3]}),N})();const ht=new h.nKC(""),yt={provide:ht,useExisting:(0,h.Rfq)(()=>mt),multi:!0},Et=new h.nKC("");let mt=(()=>{var K;class N extends Ze{constructor(G,ke,yn){super(G,ke),this._compositionMode=yn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function _t(){const K=(0,c.QT)()?(0,c.QT)().getUserAgent():"";return/android (\d+)/.test(K.toLowerCase())}())}writeValue(G){this.setProperty("value",null==G?"":G)}_handleInput(G){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(G)}_compositionStart(){this._composing=!0}_compositionEnd(G){this._composing=!1,this._compositionMode&&this.onChange(G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(h.sFG),h.rXU(h.aKT),h.rXU(Et,8))},K.\u0275dir=h.FsC({type:K,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(G,ke){1&G&&h.bIt("input",function(Xn){return ke._handleInput(Xn.target.value)})("blur",function(){return ke.onTouched()})("compositionstart",function(){return ke._compositionStart()})("compositionend",function(Xn){return ke._compositionEnd(Xn.target.value)})},features:[h.Jv_([yt]),h.Vt3]}),N})();function Me(K){return null==K||("string"==typeof K||Array.isArray(K))&&0===K.length}const ge=new h.nKC(""),Ue=new h.nKC("");function H(K){return null}function X(K){return null!=K}function fe(K){return(0,h.jNT)(K)?(0,Z.H)(K):K}function se(K){let N={};return K.forEach(Ce=>{N=null!=Ce?{...N,...Ce}:N}),0===Object.keys(N).length?null:N}function ve(K,N){return N.map(Ce=>Ce(K))}function _e(K){return K.map(N=>function Le(K){return!K.validate}(N)?N:Ce=>N.validate(Ce))}function dn(K){return null!=K?function Wt(K){if(!K)return null;const N=K.filter(X);return 0==N.length?null:function(Ce){return se(ve(Ce,N))}}(_e(K)):null}function rn(K){return null!=K?function Kt(K){if(!K)return null;const N=K.filter(X);return 0==N.length?null:function(Ce){return function De(...K){const N=(0,oe.ms)(K),{args:Ce,keys:G}=(0,U.D)(K),ke=new Oe.c(yn=>{const{length:Xn}=Ce;if(!Xn)return void yn.complete();const wr=new Array(Xn);let oo=Xn,wo=Xn;for(let So=0;So{Yo||(Yo=!0,wo--),wr[So]=Fa},()=>oo--,void 0,()=>{(!oo||!Yo)&&(wo||yn.next(G?(0,Se.e)(G,wr):wr),yn.complete())}))}});return N?ke.pipe((0,Je.I)(N)):ke}(ve(Ce,N).map(fe)).pipe((0,Qe.T)(se))}}(_e(K)):null}function Ln(K,N){return null===K?[N]:Array.isArray(K)?[...K,N]:[K,N]}function er(K){return K?Array.isArray(K)?K:[K]:[]}function yr(K,N){return Array.isArray(K)?K.includes(N):K===N}function rr(K,N){const Ce=er(N);return er(K).forEach(ke=>{yr(Ce,ke)||Ce.push(ke)}),Ce}function ir(K,N){return er(N).filter(Ce=>!yr(K,Ce))}class nt{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(N){this._rawValidators=N||[],this._composedValidatorFn=dn(this._rawValidators)}_setAsyncValidators(N){this._rawAsyncValidators=N||[],this._composedAsyncValidatorFn=rn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(N){this._onDestroyCallbacks.push(N)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(N=>N()),this._onDestroyCallbacks=[]}reset(N=void 0){this.control&&this.control.reset(N)}hasError(N,Ce){return!!this.control&&this.control.hasError(N,Ce)}getError(N,Ce){return this.control?this.control.getError(N,Ce):null}}class Ot extends nt{get formDirective(){return null}get path(){return null}}class zt extends nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class pn{constructor(N){this._cd=N}get isTouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.touched)}get isUntouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.untouched)}get isPristine(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pristine)}get isDirty(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.dirty)}get isValid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.valid)}get isInvalid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.invalid)}get isPending(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pending)}get isSubmitted(){var N;return!(null===(N=this._cd)||void 0===N||!N.submitted)}}let Mn=(()=>{var K;class N extends pn{constructor(G){super(G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(zt,2))},K.\u0275dir=h.FsC({type:K,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(G,ke){2&G&&h.AVh("ng-untouched",ke.isUntouched)("ng-touched",ke.isTouched)("ng-pristine",ke.isPristine)("ng-dirty",ke.isDirty)("ng-valid",ke.isValid)("ng-invalid",ke.isInvalid)("ng-pending",ke.isPending)},features:[h.Vt3]}),N})();const pe="VALID",it="INVALID",Mt="PENDING",ut="DISABLED";function ie(K){return null!=K&&!Array.isArray(K)&&"object"==typeof K}class Gt{constructor(N,Ce){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(N),this._assignAsyncValidators(Ce)}get validator(){return this._composedValidatorFn}set validator(N){this._rawValidators=this._composedValidatorFn=N}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(N){this._rawAsyncValidators=this._composedAsyncValidatorFn=N}get parent(){return this._parent}get valid(){return this.status===pe}get invalid(){return this.status===it}get pending(){return this.status==Mt}get disabled(){return this.status===ut}get enabled(){return this.status!==ut}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(N){this._assignValidators(N)}setAsyncValidators(N){this._assignAsyncValidators(N)}addValidators(N){this.setValidators(rr(N,this._rawValidators))}addAsyncValidators(N){this.setAsyncValidators(rr(N,this._rawAsyncValidators))}removeValidators(N){this.setValidators(ir(N,this._rawValidators))}removeAsyncValidators(N){this.setAsyncValidators(ir(N,this._rawAsyncValidators))}hasValidator(N){return yr(this._rawValidators,N)}hasAsyncValidator(N){return yr(this._rawAsyncValidators,N)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(N={}){this.touched=!0,this._parent&&!N.onlySelf&&this._parent.markAsTouched(N)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(N=>N.markAllAsTouched())}markAsUntouched(N={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ce=>{Ce.markAsUntouched({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}markAsDirty(N={}){this.pristine=!1,this._parent&&!N.onlySelf&&this._parent.markAsDirty(N)}markAsPristine(N={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ce=>{Ce.markAsPristine({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}markAsPending(N={}){this.status=Mt,!1!==N.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!N.onlySelf&&this._parent.markAsPending(N)}disable(N={}){const Ce=this._parentMarkedDirty(N.onlySelf);this.status=ut,this.errors=null,this._forEachChild(G=>{G.disable({...N,onlySelf:!0})}),this._updateValue(),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...N,skipPristineCheck:Ce}),this._onDisabledChange.forEach(G=>G(!0))}enable(N={}){const Ce=this._parentMarkedDirty(N.onlySelf);this.status=pe,this._forEachChild(G=>{G.enable({...N,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent}),this._updateAncestors({...N,skipPristineCheck:Ce}),this._onDisabledChange.forEach(G=>G(!1))}_updateAncestors(N){this._parent&&!N.onlySelf&&(this._parent.updateValueAndValidity(N),N.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(N){this._parent=N}getRawValue(){return this.value}updateValueAndValidity(N={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pe||this.status===Mt)&&this._runAsyncValidator(N.emitEvent)),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!N.onlySelf&&this._parent.updateValueAndValidity(N)}_updateTreeValidity(N={emitEvent:!0}){this._forEachChild(Ce=>Ce._updateTreeValidity(N)),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ut:pe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(N){if(this.asyncValidator){this.status=Mt,this._hasOwnPendingAsyncValidator=!0;const Ce=fe(this.asyncValidator(this));this._asyncValidationSubscription=Ce.subscribe(G=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(G,{emitEvent:N})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(N,Ce={}){this.errors=N,this._updateControlsErrors(!1!==Ce.emitEvent)}get(N){let Ce=N;return null==Ce||(Array.isArray(Ce)||(Ce=Ce.split(".")),0===Ce.length)?null:Ce.reduce((G,ke)=>G&&G._find(ke),this)}getError(N,Ce){const G=Ce?this.get(Ce):this;return G&&G.errors?G.errors[N]:null}hasError(N,Ce){return!!this.getError(N,Ce)}get root(){let N=this;for(;N._parent;)N=N._parent;return N}_updateControlsErrors(N){this.status=this._calculateStatus(),N&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(N)}_initObservables(){this.valueChanges=new h.bkB,this.statusChanges=new h.bkB}_calculateStatus(){return this._allControlsDisabled()?ut:this.errors?it:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mt)?Mt:this._anyControlsHaveStatus(it)?it:pe}_anyControlsHaveStatus(N){return this._anyControls(Ce=>Ce.status===N)}_anyControlsDirty(){return this._anyControls(N=>N.dirty)}_anyControlsTouched(){return this._anyControls(N=>N.touched)}_updatePristine(N={}){this.pristine=!this._anyControlsDirty(),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}_updateTouched(N={}){this.touched=this._anyControlsTouched(),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}_registerOnCollectionChange(N){this._onCollectionChange=N}_setUpdateStrategy(N){ie(N)&&null!=N.updateOn&&(this._updateOn=N.updateOn)}_parentMarkedDirty(N){return!N&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(N){return null}_assignValidators(N){this._rawValidators=Array.isArray(N)?N.slice():N,this._composedValidatorFn=function Ee(K){return Array.isArray(K)?dn(K):K||null}(this._rawValidators)}_assignAsyncValidators(N){this._rawAsyncValidators=Array.isArray(N)?N.slice():N,this._composedAsyncValidatorFn=function Lt(K){return Array.isArray(K)?rn(K):K||null}(this._rawAsyncValidators)}}const Ar=new h.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>dr}),dr="always";function Zr(K,N,Ce=dr){var G,ke;(function pr(K,N){const Ce=function Zn(K){return K._rawValidators}(K);null!==N.validator?K.setValidators(Ln(Ce,N.validator)):"function"==typeof Ce&&K.setValidators([Ce]);const G=function nr(K){return K._rawAsyncValidators}(K);null!==N.asyncValidator?K.setAsyncValidators(Ln(G,N.asyncValidator)):"function"==typeof G&&K.setAsyncValidators([G]);const ke=()=>K.updateValueAndValidity();Ri(N._rawValidators,ke),Ri(N._rawAsyncValidators,ke)})(K,N),N.valueAccessor.writeValue(K.value),(K.disabled||"always"===Ce)&&(null===(G=(ke=N.valueAccessor).setDisabledState)||void 0===G||G.call(ke,K.disabled)),function ne(K,N){N.valueAccessor.registerOnChange(Ce=>{K._pendingValue=Ce,K._pendingChange=!0,K._pendingDirty=!0,"change"===K.updateOn&&je(K,N)})}(K,N),function M(K,N){const Ce=(G,ke)=>{N.valueAccessor.writeValue(G),ke&&N.viewToModelUpdate(G)};K.registerOnChange(Ce),N._registerOnDestroy(()=>{K._unregisterOnChange(Ce)})}(K,N),function ee(K,N){N.valueAccessor.registerOnTouched(()=>{K._pendingTouched=!0,"blur"===K.updateOn&&K._pendingChange&&je(K,N),"submit"!==K.updateOn&&K.markAsTouched()})}(K,N),function gi(K,N){if(N.valueAccessor.setDisabledState){const Ce=G=>{N.valueAccessor.setDisabledState(G)};K.registerOnDisabledChange(Ce),N._registerOnDestroy(()=>{K._unregisterOnDisabledChange(Ce)})}}(K,N)}function Ri(K,N){K.forEach(Ce=>{Ce.registerOnValidatorChange&&Ce.registerOnValidatorChange(N)})}function je(K,N){K._pendingDirty&&K.markAsDirty(),K.setValue(K._pendingValue,{emitModelToViewChange:!1}),N.viewToModelUpdate(K._pendingValue),K._pendingChange=!1}function Cr(K,N){const Ce=K.indexOf(N);Ce>-1&&K.splice(Ce,1)}function ai(K){return"object"==typeof K&&null!==K&&2===Object.keys(K).length&&"value"in K&&"disabled"in K}Promise.resolve();const li=class extends Gt{constructor(N=null,Ce,G){super(function ce(K){return(ie(K)?K.validators:K)||null}(Ce),function He(K,N){return(ie(N)?N.asyncValidators:K)||null}(G,Ce)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(N),this._setUpdateStrategy(Ce),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ie(Ce)&&(Ce.nonNullable||Ce.initialValueIsDefault)&&(this.defaultValue=ai(N)?N.value:N)}setValue(N,Ce={}){this.value=this._pendingValue=N,this._onChange.length&&!1!==Ce.emitModelToViewChange&&this._onChange.forEach(G=>G(this.value,!1!==Ce.emitViewToModelChange)),this.updateValueAndValidity(Ce)}patchValue(N,Ce={}){this.setValue(N,Ce)}reset(N=this.defaultValue,Ce={}){this._applyFormState(N),this.markAsPristine(Ce),this.markAsUntouched(Ce),this.setValue(this.value,Ce),this._pendingChange=!1}_updateValue(){}_anyControls(N){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(N){this._onChange.push(N)}_unregisterOnChange(N){Cr(this._onChange,N)}registerOnDisabledChange(N){this._onDisabledChange.push(N)}_unregisterOnDisabledChange(N){Cr(this._onDisabledChange,N)}_forEachChild(N){}_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(N){ai(N)?(this.value=this._pendingValue=N.value,N.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=N}},No={provide:zt,useExisting:(0,h.Rfq)(()=>bt)},oi=Promise.resolve();let bt=(()=>{var K;class N extends zt{constructor(G,ke,yn,Xn,wr,oo){super(),this._changeDetectorRef=wr,this.callSetDisabledState=oo,this.control=new li,this._registered=!1,this.name="",this.update=new h.bkB,this._parent=G,this._setValidators(ke),this._setAsyncValidators(yn),this.valueAccessor=function On(K,N){if(!N)return null;let Ce,G,ke;return Array.isArray(N),N.forEach(yn=>{yn.constructor===mt?Ce=yn:function Un(K){return Object.getPrototypeOf(K.constructor)===qe}(yn)?G=yn:ke=yn}),ke||G||Ce||null}(0,Xn)}ngOnChanges(G){if(this._checkForErrors(),!this._registered||"name"in G){if(this._registered&&(this._checkName(),this.formDirective)){const ke=G.name.previousValue;this.formDirective.removeControl({name:ke,path:this._getPath(ke)})}this._setUpControl()}"isDisabled"in G&&this._updateDisabled(G),function or(K,N){if(!K.hasOwnProperty("model"))return!1;const Ce=K.model;return!!Ce.isFirstChange()||!Object.is(N,Ce.currentValue)}(G,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(G){this.viewModel=G,this.update.emit(G)}_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(){Zr(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(G){oi.then(()=>{var ke;this.control.setValue(G,{emitViewToModelChange:!1}),null===(ke=this._changeDetectorRef)||void 0===ke||ke.markForCheck()})}_updateDisabled(G){const ke=G.isDisabled.currentValue,yn=0!==ke&&(0,h.L39)(ke);oi.then(()=>{var Xn;yn&&!this.control.disabled?this.control.disable():!yn&&this.control.disabled&&this.control.enable(),null===(Xn=this._changeDetectorRef)||void 0===Xn||Xn.markForCheck()})}_getPath(G){return this._parent?function $r(K,N){return[...N.path,K]}(G,this._parent):[G]}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(Ot,9),h.rXU(ge,10),h.rXU(Ue,10),h.rXU(ht,10),h.rXU(h.gRc,8),h.rXU(Ar,8))},K.\u0275dir=h.FsC({type:K,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[h.Mj6.None,"disabled","isDisabled"],model:[h.Mj6.None,"ngModel","model"],options:[h.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h.Jv_([No]),h.Vt3,h.OA$]}),N})();function br(K){return"number"==typeof K?K:parseFloat(K)}let wi=(()=>{var K;class N{constructor(){this._validator=H}ngOnChanges(G){if(this.inputName in G){const ke=this.normalizeInput(G[this.inputName].currentValue);this._enabled=this.enabled(ke),this._validator=this._enabled?this.createValidator(ke):H,this._onChange&&this._onChange()}}validate(G){return this._validator(G)}registerOnValidatorChange(G){this._onChange=G}enabled(G){return null!=G}}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275dir=h.FsC({type:K,features:[h.OA$]}),N})();const Ni={provide:ge,useExisting:(0,h.Rfq)(()=>ki),multi:!0};let ki=(()=>{var K;class N extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=G=>br(G),this.createValidator=G=>function Rt(K){return N=>{if(Me(N.value)||Me(K))return null;const Ce=parseFloat(N.value);return!isNaN(Ce)&&Ce>K?{max:{max:K,actual:N.value}}:null}}(G)}}return(K=N).\u0275fac=(()=>{let Ce;return function(ke){return(Ce||(Ce=h.xGo(K)))(ke||K)}})(),K.\u0275dir=h.FsC({type:K,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(G,ke){2&G&&h.BMQ("max",ke._enabled?ke.max:null)},inputs:{max:"max"},features:[h.Jv_([Ni]),h.Vt3]}),N})();const ho={provide:ge,useExisting:(0,h.Rfq)(()=>as),multi:!0};let as=(()=>{var K;class N extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=G=>br(G),this.createValidator=G=>function rt(K){return N=>{if(Me(N.value)||Me(K))return null;const Ce=parseFloat(N.value);return!isNaN(Ce)&&Ce{let Ce;return function(ke){return(Ce||(Ce=h.xGo(K)))(ke||K)}})(),K.\u0275dir=h.FsC({type:K,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(G,ke){2&G&&h.BMQ("min",ke._enabled?ke.min:null)},inputs:{min:"min"},features:[h.Jv_([ho]),h.Vt3]}),N})(),ls=(()=>{var K;class N{}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275mod=h.$C({type:K}),K.\u0275inj=h.G2t({}),N})(),ha=(()=>{var K;class N{static withConfig(G){var ke;return{ngModule:N,providers:[{provide:Ar,useValue:null!==(ke=G.callSetDisabledState)&&void 0!==ke?ke:dr}]}}}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275mod=h.$C({type:K}),K.\u0275inj=h.G2t({imports:[ls]}),N})()},345:(Tn,gt,D)=>{"use strict";D.d(gt,{Bb:()=>er,hE:()=>ir,sG:()=>rn,up:()=>Dr});var h=D(4438),c=D(177);class Z extends c.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Oe extends Z{static makeCurrent(){(0,c.ZD)(new Oe)}onAndCancel(it,Mt,ut){return it.addEventListener(Mt,ut),()=>{it.removeEventListener(Mt,ut)}}dispatchEvent(it,Mt){it.dispatchEvent(Mt)}remove(it){it.parentNode&&it.parentNode.removeChild(it)}createElement(it,Mt){return(Mt=Mt||this.getDefaultDocument()).createElement(it)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(it){return it.nodeType===Node.ELEMENT_NODE}isShadowRoot(it){return it instanceof DocumentFragment}getGlobalEventTarget(it,Mt){return"window"===Mt?window:"document"===Mt?it:"body"===Mt?it.body:null}getBaseHref(it){const Mt=function ue(){return U=U||document.querySelector("base"),U?U.getAttribute("href"):null}();return null==Mt?null:function oe(pe){return new URL(pe,document.baseURI).pathname}(Mt)}resetBaseElement(){U=null}getUserAgent(){return window.navigator.userAgent}getCookie(it){return(0,c._b)(document.cookie,it)}}let U=null,Je=(()=>{var pe;class it{build(){return new XMLHttpRequest}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),it})();const Se=new h.nKC("");let De=(()=>{var pe;class it{constructor(ut,ce){this._zone=ce,this._eventNameToPlugin=new Map,ut.forEach(Ee=>{Ee.manager=this}),this._plugins=ut.slice().reverse()}addEventListener(ut,ce,Ee){return this._findPluginFor(ce).addEventListener(ut,ce,Ee)}getZone(){return this._zone}_findPluginFor(ut){let ce=this._eventNameToPlugin.get(ut);if(ce)return ce;if(ce=this._plugins.find(He=>He.supports(ut)),!ce)throw new h.wOt(5101,!1);return this._eventNameToPlugin.set(ut,ce),ce}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(Se),h.KVO(h.SKi))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),it})();class Qe{constructor(it){this._doc=it}}const Ze="ng-app-id";let qe=(()=>{var pe;class it{constructor(ut,ce,Ee,He={}){this.doc=ut,this.appId=ce,this.nonce=Ee,this.platformId=He,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,c.Vy)(He),this.resetHostNodes()}addStyles(ut){for(const ce of ut)1===this.changeUsageCount(ce,1)&&this.onStyleAdded(ce)}removeStyles(ut){for(const ce of ut)this.changeUsageCount(ce,-1)<=0&&this.onStyleRemoved(ce)}ngOnDestroy(){const ut=this.styleNodesInDOM;ut&&(ut.forEach(ce=>ce.remove()),ut.clear());for(const ce of this.getAllStyles())this.onStyleRemoved(ce);this.resetHostNodes()}addHost(ut){this.hostNodes.add(ut);for(const ce of this.getAllStyles())this.addStyleToHost(ut,ce)}removeHost(ut){this.hostNodes.delete(ut)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ut){for(const ce of this.hostNodes)this.addStyleToHost(ce,ut)}onStyleRemoved(ut){var ce;const Ee=this.styleRef;null===(ce=Ee.get(ut))||void 0===ce||null===(ce=ce.elements)||void 0===ce||ce.forEach(He=>He.remove()),Ee.delete(ut)}collectServerRenderedStyles(){var ut;const ce=null===(ut=this.doc.head)||void 0===ut?void 0:ut.querySelectorAll(`style[${Ze}="${this.appId}"]`);if(null!=ce&&ce.length){const Ee=new Map;return ce.forEach(He=>{null!=He.textContent&&Ee.set(He.textContent,He)}),Ee}return null}changeUsageCount(ut,ce){const Ee=this.styleRef;if(Ee.has(ut)){const He=Ee.get(ut);return He.usage+=ce,He.usage}return Ee.set(ut,{usage:ce,elements:[]}),ce}getStyleElement(ut,ce){const Ee=this.styleNodesInDOM,He=null==Ee?void 0:Ee.get(ce);if((null==He?void 0:He.parentNode)===ut)return Ee.delete(ce),He.removeAttribute(Ze),He;{const Lt=this.doc.createElement("style");return this.nonce&&Lt.setAttribute("nonce",this.nonce),Lt.textContent=ce,this.platformIsServer&&Lt.setAttribute(Ze,this.appId),ut.appendChild(Lt),Lt}}addStyleToHost(ut,ce){var Ee;const He=this.getStyleElement(ut,ce),Lt=this.styleRef,ie=null===(Ee=Lt.get(ce))||void 0===Ee?void 0:Ee.elements;ie?ie.push(He):Lt.set(ce,{elements:[He],usage:1})}resetHostNodes(){const ut=this.hostNodes;ut.clear(),ut.add(this.doc.head)}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ),h.KVO(h.sZ2),h.KVO(h.BIS,8),h.KVO(h.Agw))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),it})();const ht={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/"},Tt=/%COMP%/g,mt=new h.nKC("",{providedIn:"root",factory:()=>!0});function ge(pe,it){return it.map(Mt=>Mt.replace(Tt,pe))}let Ue=(()=>{var pe;class it{constructor(ut,ce,Ee,He,Lt,ie,ct,lt=null){this.eventManager=ut,this.sharedStylesHost=ce,this.appId=Ee,this.removeStylesOnCompDestroy=He,this.doc=Lt,this.platformId=ie,this.ngZone=ct,this.nonce=lt,this.rendererByCompId=new Map,this.platformIsServer=(0,c.Vy)(ie),this.defaultRenderer=new Fe(ut,Lt,ct,this.platformIsServer)}createRenderer(ut,ce){if(!ut||!ce)return this.defaultRenderer;this.platformIsServer&&ce.encapsulation===h.gXe.ShadowDom&&(ce={...ce,encapsulation:h.gXe.Emulated});const Ee=this.getOrCreateRenderer(ut,ce);return Ee instanceof tt?Ee.applyToHost(ut):Ee instanceof Nt&&Ee.applyStyles(),Ee}getOrCreateRenderer(ut,ce){const Ee=this.rendererByCompId;let He=Ee.get(ce.id);if(!He){const Lt=this.doc,ie=this.ngZone,ct=this.eventManager,lt=this.sharedStylesHost,Gt=this.removeStylesOnCompDestroy,tn=this.platformIsServer;switch(ce.encapsulation){case h.gXe.Emulated:He=new tt(ct,lt,ce,this.appId,Gt,Lt,ie,tn);break;case h.gXe.ShadowDom:return new vn(ct,lt,ut,ce,Lt,ie,this.nonce,tn);default:He=new Nt(ct,lt,ce,Gt,Lt,ie,tn)}Ee.set(ce.id,He)}return He}ngOnDestroy(){this.rendererByCompId.clear()}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(De),h.KVO(qe),h.KVO(h.sZ2),h.KVO(mt),h.KVO(c.qQ),h.KVO(h.Agw),h.KVO(h.SKi),h.KVO(h.BIS))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),it})();class Fe{constructor(it,Mt,ut,ce){this.eventManager=it,this.doc=Mt,this.ngZone=ut,this.platformIsServer=ce,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(it,Mt){return Mt?this.doc.createElementNS(ht[Mt]||Mt,it):this.doc.createElement(it)}createComment(it){return this.doc.createComment(it)}createText(it){return this.doc.createTextNode(it)}appendChild(it,Mt){(Rt(it)?it.content:it).appendChild(Mt)}insertBefore(it,Mt,ut){it&&(Rt(it)?it.content:it).insertBefore(Mt,ut)}removeChild(it,Mt){it&&it.removeChild(Mt)}selectRootElement(it,Mt){let ut="string"==typeof it?this.doc.querySelector(it):it;if(!ut)throw new h.wOt(-5104,!1);return Mt||(ut.textContent=""),ut}parentNode(it){return it.parentNode}nextSibling(it){return it.nextSibling}setAttribute(it,Mt,ut,ce){if(ce){Mt=ce+":"+Mt;const Ee=ht[ce];Ee?it.setAttributeNS(Ee,Mt,ut):it.setAttribute(Mt,ut)}else it.setAttribute(Mt,ut)}removeAttribute(it,Mt,ut){if(ut){const ce=ht[ut];ce?it.removeAttributeNS(ce,Mt):it.removeAttribute(`${ut}:${Mt}`)}else it.removeAttribute(Mt)}addClass(it,Mt){it.classList.add(Mt)}removeClass(it,Mt){it.classList.remove(Mt)}setStyle(it,Mt,ut,ce){ce&(h.czy.DashCase|h.czy.Important)?it.style.setProperty(Mt,ut,ce&h.czy.Important?"important":""):it.style[Mt]=ut}removeStyle(it,Mt,ut){ut&h.czy.DashCase?it.style.removeProperty(Mt):it.style[Mt]=""}setProperty(it,Mt,ut){null!=it&&(it[Mt]=ut)}setValue(it,Mt){it.nodeValue=Mt}listen(it,Mt,ut){if("string"==typeof it&&!(it=(0,c.QT)().getGlobalEventTarget(this.doc,it)))throw new Error(`Unsupported event target ${it} for event ${Mt}`);return this.eventManager.addEventListener(it,Mt,this.decoratePreventDefault(ut))}decoratePreventDefault(it){return Mt=>{if("__ngUnwrap__"===Mt)return it;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>it(Mt)):it(Mt))&&Mt.preventDefault()}}}function Rt(pe){return"TEMPLATE"===pe.tagName&&void 0!==pe.content}class vn extends Fe{constructor(it,Mt,ut,ce,Ee,He,Lt,ie){super(it,Ee,He,ie),this.sharedStylesHost=Mt,this.hostEl=ut,this.shadowRoot=ut.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ct=ge(ce.id,ce.styles);for(const lt of ct){const Gt=document.createElement("style");Lt&&Gt.setAttribute("nonce",Lt),Gt.textContent=lt,this.shadowRoot.appendChild(Gt)}}nodeOrShadowRoot(it){return it===this.hostEl?this.shadowRoot:it}appendChild(it,Mt){return super.appendChild(this.nodeOrShadowRoot(it),Mt)}insertBefore(it,Mt,ut){return super.insertBefore(this.nodeOrShadowRoot(it),Mt,ut)}removeChild(it,Mt){return super.removeChild(this.nodeOrShadowRoot(it),Mt)}parentNode(it){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(it)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Nt extends Fe{constructor(it,Mt,ut,ce,Ee,He,Lt,ie){super(it,Ee,He,Lt),this.sharedStylesHost=Mt,this.removeStylesOnCompDestroy=ce,this.styles=ie?ge(ie,ut.styles):ut.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class tt extends Nt{constructor(it,Mt,ut,ce,Ee,He,Lt,ie){const ct=ce+"-"+ut.id;super(it,Mt,ut,Ee,He,Lt,ie,ct),this.contentAttr=function Me(pe){return"_ngcontent-%COMP%".replace(Tt,pe)}(ct),this.hostAttr=function Ye(pe){return"_nghost-%COMP%".replace(Tt,pe)}(ct)}applyToHost(it){this.applyStyles(),this.setAttribute(it,this.hostAttr,"")}createElement(it,Mt){const ut=super.createElement(it,Mt);return super.setAttribute(ut,this.contentAttr,""),ut}}let on=(()=>{var pe;class it extends Qe{constructor(ut){super(ut)}supports(ut){return!0}addEventListener(ut,ce,Ee){return ut.addEventListener(ce,Ee,!1),()=>this.removeEventListener(ut,ce,Ee)}removeEventListener(ut,ce,Ee){return ut.removeEventListener(ce,Ee)}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),it})();const dt=["alt","control","meta","shift"],we={"\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"},H={alt:pe=>pe.altKey,control:pe=>pe.ctrlKey,meta:pe=>pe.metaKey,shift:pe=>pe.shiftKey};let X=(()=>{var pe;class it extends Qe{constructor(ut){super(ut)}supports(ut){return null!=it.parseEventName(ut)}addEventListener(ut,ce,Ee){const He=it.parseEventName(ce),Lt=it.eventCallback(He.fullKey,Ee,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.QT)().onAndCancel(ut,He.domEventName,Lt))}static parseEventName(ut){const ce=ut.toLowerCase().split("."),Ee=ce.shift();if(0===ce.length||"keydown"!==Ee&&"keyup"!==Ee)return null;const He=it._normalizeKey(ce.pop());let Lt="",ie=ce.indexOf("code");if(ie>-1&&(ce.splice(ie,1),Lt="code."),dt.forEach(lt=>{const Gt=ce.indexOf(lt);Gt>-1&&(ce.splice(Gt,1),Lt+=lt+".")}),Lt+=He,0!=ce.length||0===He.length)return null;const ct={};return ct.domEventName=Ee,ct.fullKey=Lt,ct}static matchEventFullKeyCode(ut,ce){let Ee=we[ut.key]||ut.key,He="";return ce.indexOf("code.")>-1&&(Ee=ut.code,He="code."),!(null==Ee||!Ee)&&(Ee=Ee.toLowerCase()," "===Ee?Ee="space":"."===Ee&&(Ee="dot"),dt.forEach(Lt=>{Lt!==Ee&&(0,H[Lt])(ut)&&(He+=Lt+".")}),He+=Ee,He===ce)}static eventCallback(ut,ce,Ee){return He=>{it.matchEventFullKeyCode(He,ut)&&Ee.runGuarded(()=>ce(He))}}static _normalizeKey(ut){return"esc"===ut?"escape":ut}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),it})();const rn=(0,h.oH4)(h.fpN,"browser",[{provide:h.Agw,useValue:c.AJ},{provide:h.PLl,useValue:function _e(){Oe.makeCurrent()},multi:!0},{provide:c.qQ,useFactory:function dn(){return(0,h.TL$)(document),document},deps:[]}]),Ln=new h.nKC(""),Zn=[{provide:h.e01,useClass:class Xe{addToWindow(it){h.JZv.getAngularTestability=(ut,ce=!0)=>{const Ee=it.findTestabilityInTree(ut,ce);if(null==Ee)throw new h.wOt(5103,!1);return Ee},h.JZv.getAllAngularTestabilities=()=>it.getAllTestabilities(),h.JZv.getAllAngularRootElements=()=>it.getAllRootElements(),h.JZv.frameworkStabilizers||(h.JZv.frameworkStabilizers=[]),h.JZv.frameworkStabilizers.push(ut=>{const ce=h.JZv.getAllAngularTestabilities();let Ee=ce.length;const He=function(){Ee--,0==Ee&&ut()};ce.forEach(Lt=>{Lt.whenStable(He)})})}findTestabilityInTree(it,Mt,ut){if(null==Mt)return null;const ce=it.getTestability(Mt);return null!=ce?ce:ut?(0,c.QT)().isShadowRoot(Mt)?this.findTestabilityInTree(it,Mt.host,!0):this.findTestabilityInTree(it,Mt.parentElement,!0):null}},deps:[]},{provide:h.WHO,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]},{provide:h.NYb,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]}],nr=[{provide:h.H8p,useValue:"root"},{provide:h.zcH,useFactory:function Wt(){return new h.zcH},deps:[]},{provide:Se,useClass:on,multi:!0,deps:[c.qQ,h.SKi,h.Agw]},{provide:Se,useClass:X,multi:!0,deps:[c.qQ]},Ue,qe,De,{provide:h._9s,useExisting:Ue},{provide:c.N0,useClass:Je,deps:[]},[]];let er=(()=>{var pe;class it{constructor(ut){}static withServerTransition(ut){return{ngModule:it,providers:[{provide:h.sZ2,useValue:ut.appId}]}}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(Ln,12))},pe.\u0275mod=h.$C({type:pe}),pe.\u0275inj=h.G2t({providers:[...nr,...Zn],imports:[c.MD,h.Hbi]}),it})(),ir=(()=>{var pe;class it{constructor(ut){this._doc=ut}getTitle(){return this._doc.title}setTitle(ut){this._doc.title=ut||""}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"}),it})(),Dr=(()=>{var pe;class it{}return(pe=it).\u0275fac=function(ut){return new(ut||pe)},pe.\u0275prov=h.jDH({token:pe,factory:function(ut){let ce=null;return ce=ut?new(ut||pe):h.KVO(Jn),ce},providedIn:"root"}),it})(),Jn=(()=>{var pe;class it extends Dr{constructor(ut){super(),this._doc=ut}sanitize(ut,ce){if(null==ce)return null;switch(ut){case h.WPN.NONE:return ce;case h.WPN.HTML:return(0,h.ZF7)(ce,"HTML")?(0,h.rcV)(ce):(0,h.h9k)(this._doc,String(ce)).toString();case h.WPN.STYLE:return(0,h.ZF7)(ce,"Style")?(0,h.rcV)(ce):ce;case h.WPN.SCRIPT:if((0,h.ZF7)(ce,"Script"))return(0,h.rcV)(ce);throw new h.wOt(5200,!1);case h.WPN.URL:return(0,h.ZF7)(ce,"URL")?(0,h.rcV)(ce):(0,h.$MX)(String(ce));case h.WPN.RESOURCE_URL:if((0,h.ZF7)(ce,"ResourceURL"))return(0,h.rcV)(ce);throw new h.wOt(5201,!1);default:throw new h.wOt(5202,!1)}}bypassSecurityTrustHtml(ut){return(0,h.Kcf)(ut)}bypassSecurityTrustStyle(ut){return(0,h.cWb)(ut)}bypassSecurityTrustScript(ut){return(0,h.UyX)(ut)}bypassSecurityTrustUrl(ut){return(0,h.osQ)(ut)}bypassSecurityTrustResourceUrl(ut){return(0,h.e5t)(ut)}}return(pe=it).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"}),it})()},7650:(Tn,gt,D)=>{"use strict";D.d(gt,{nX:()=>Ie,Zp:()=>Ve,wF:()=>zr,Z:()=>Or,Xk:()=>rn,Kp:()=>Ki,b:()=>wn,Ix:()=>Kn,Wk:()=>Si,iI:()=>ds,Sd:()=>ur});var h=D(467),c=D(4438),Z=D(4402),Oe=D(8455),U=D(7673),ue=D(4412),oe=D(4572),Xe=D(9350),Je=D(8793),Se=D(1985),De=D(8750);function Qe(E){return new Se.c(b=>{(0,De.Tg)(E()).subscribe(b)})}var Ze=D(1203),qe=D(8071);function ht(E,b){const O=(0,qe.T)(E)?E:()=>E,T=L=>L.error(O());return new Se.c(b?L=>b.schedule(T,0,L):T)}var Tt=D(983),St=D(8359),yt=D(9974),_t=D(4360);function Et(){return(0,yt.N)((E,b)=>{let O=null;E._refCount++;const T=(0,_t._)(b,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(O=null);const L=E._connection,ae=O;O=null,L&&(!ae||L===ae)&&L.unsubscribe(),b.unsubscribe()});E.subscribe(T),T.closed||(O=E.connect())})}class mt extends Se.c{constructor(b,O){super(),this.source=b,this.subjectFactory=O,this._subject=null,this._refCount=0,this._connection=null,(0,yt.S)(b)&&(this.lift=b.lift)}_subscribe(b){return this.getSubject().subscribe(b)}getSubject(){const b=this._subject;return(!b||b.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:b}=this;this._subject=this._connection=null,null==b||b.unsubscribe()}connect(){let b=this._connection;if(!b){b=this._connection=new St.yU;const O=this.getSubject();b.add(this.source.subscribe((0,_t._)(O,void 0,()=>{this._teardown(),O.complete()},T=>{this._teardown(),O.error(T)},()=>this._teardown()))),b.closed&&(this._connection=null,b=St.yU.EMPTY)}return b}refCount(){return Et()(this)}}var Me=D(1413),Ye=D(177),ge=D(6354),Ue=D(5558),Fe=D(6697),xe=D(9172),rt=D(5964),Rt=D(1397),vn=D(1594),Nt=D(274),tt=D(8141);function on(E){return(0,yt.N)((b,O)=>{let ae,T=null,L=!1;T=b.subscribe((0,_t._)(O,void 0,void 0,Re=>{ae=(0,De.Tg)(E(Re,on(E)(b))),T?(T.unsubscribe(),T=null,ae.subscribe(O)):L=!0})),L&&(T.unsubscribe(),T=null,ae.subscribe(O))})}var H=D(9901);function X(E){return E<=0?()=>Tt.w:(0,yt.N)((b,O)=>{let T=[];b.subscribe((0,_t._)(O,L=>{T.push(L),E{for(const L of T)O.next(L);O.complete()},void 0,()=>{T=null}))})}var fe=D(3774),se=D(3669),Le=D(3703),_e=D(980),Wt=D(6977),dn=D(6365),Kt=D(345);const rn="primary",Ln=Symbol("RouteTitle");class Zn{constructor(b){this.params=b||{}}has(b){return Object.prototype.hasOwnProperty.call(this.params,b)}get(b){if(this.has(b)){const O=this.params[b];return Array.isArray(O)?O[0]:O}return null}getAll(b){if(this.has(b)){const O=this.params[b];return Array.isArray(O)?O:[O]}return[]}get keys(){return Object.keys(this.params)}}function nr(E){return new Zn(E)}function er(E,b,O){const T=O.path.split("/");if(T.length>E.length||"full"===O.pathMatch&&(b.hasChildren()||T.lengthT[ae]===L)}return E===b}function Ot(E){return E.length>0?E[E.length-1]:null}function zt(E){return(0,Z.A)(E)?E:(0,c.jNT)(E)?(0,Oe.H)(Promise.resolve(E)):(0,U.of)(E)}const pn={exact:function xn(E,b,O){if(!Jr(E.segments,b.segments)||!Ir(E.segments,b.segments,O)||E.numberOfChildren!==b.numberOfChildren)return!1;for(const T in b.children)if(!E.children[T]||!xn(E.children[T],b.children[T],O))return!1;return!0},subset:en},gn={exact:function Mn(E,b){return rr(E,b)},subset:function mn(E,b){return Object.keys(b).length<=Object.keys(E).length&&Object.keys(b).every(O=>nt(E[O],b[O]))},ignored:()=>!0};function Sr(E,b,O){return pn[O.paths](E.root,b.root,O.matrixParams)&&gn[O.queryParams](E.queryParams,b.queryParams)&&!("exact"===O.fragment&&E.fragment!==b.fragment)}function en(E,b,O){return Er(E,b,b.segments,O)}function Er(E,b,O,T){if(E.segments.length>O.length){const L=E.segments.slice(0,O.length);return!(!Jr(L,O)||b.hasChildren()||!Ir(L,O,T))}if(E.segments.length===O.length){if(!Jr(E.segments,O)||!Ir(E.segments,O,T))return!1;for(const L in b.children)if(!E.children[L]||!en(E.children[L],b.children[L],T))return!1;return!0}{const L=O.slice(0,E.segments.length),ae=O.slice(E.segments.length);return!!(Jr(E.segments,L)&&Ir(E.segments,L,T)&&E.children[rn])&&Er(E.children[rn],b,ae,T)}}function Ir(E,b,O){return b.every((T,L)=>gn[O](E[L].parameters,T.parameters))}class Nr{constructor(b=new Qn([],{}),O={},T=null){this.root=b,this.queryParams=O,this.fragment=T}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=nr(this.queryParams)),this._queryParamMap}toString(){return cr.serialize(this)}}class Qn{constructor(b,O){this.segments=b,this.children=O,this.parent=null,Object.values(O).forEach(T=>T.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return kr(this)}}class Dr{constructor(b,O){this.path=b,this.parameters=O}get parameterMap(){var b;return null!==(b=this._parameterMap)&&void 0!==b||(this._parameterMap=nr(this.parameters)),this._parameterMap}toString(){return ce(this)}}function Jr(E,b){return E.length===b.length&&E.every((O,T)=>O.path===b[T].path)}let ur=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>new Pr,providedIn:"root"}),b})();class Pr{parse(b){const O=new hn(b);return new Nr(O.parseRootSegment(),O.parseQueryParams(),O.parseFragment())}serialize(b){const O=`/${ii(b.root,!0)}`,T=function He(E){const b=Object.entries(E).map(([O,T])=>Array.isArray(T)?T.map(L=>`${Qr(O)}=${Qr(L)}`).join("&"):`${Qr(O)}=${Qr(T)}`).filter(O=>O);return b.length?`?${b.join("&")}`:""}(b.queryParams);return`${O}${T}${"string"==typeof b.fragment?`#${function pe(E){return encodeURI(E)}(b.fragment)}`:""}`}}const cr=new Pr;function kr(E){return E.segments.map(b=>ce(b)).join("/")}function ii(E,b){if(!E.hasChildren())return kr(E);if(b){const O=E.children[rn]?ii(E.children[rn],!1):"",T=[];return Object.entries(E.children).forEach(([L,ae])=>{L!==rn&&T.push(`${L}:${ii(ae,!1)}`)}),T.length>0?`${O}(${T.join("//")})`:O}{const O=function mr(E,b){let O=[];return Object.entries(E.children).forEach(([T,L])=>{T===rn&&(O=O.concat(b(L,T)))}),Object.entries(E.children).forEach(([T,L])=>{T!==rn&&(O=O.concat(b(L,T)))}),O}(E,(T,L)=>L===rn?[ii(E.children[rn],!1)]:[`${L}:${ii(T,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[rn]?`${kr(E)}/${O[0]}`:`${kr(E)}/(${O.join("//")})`}}function Ai(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qr(E){return Ai(E).replace(/%3B/gi,";")}function it(E){return Ai(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mt(E){return decodeURIComponent(E)}function ut(E){return Mt(E.replace(/\+/g,"%20"))}function ce(E){return`${it(E.path)}${function Ee(E){return Object.entries(E).map(([b,O])=>`;${it(b)}=${it(O)}`).join("")}(E.parameters)}`}const Lt=/^[^\/()?;#]+/;function ie(E){const b=E.match(Lt);return b?b[0]:""}const ct=/^[^\/()?;=#]+/,Gt=/^[^=?&#]+/,_n=/^[^&#]+/;class hn{constructor(b){this.url=b,this.remaining=b}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Qn([],{}):new Qn([],this.parseChildren())}parseQueryParams(){const b={};if(this.consumeOptional("?"))do{this.parseQueryParam(b)}while(this.consumeOptional("&"));return b}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const b=[];for(this.peekStartsWith("(")||b.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),b.push(this.parseSegment());let O={};this.peekStartsWith("/(")&&(this.capture("/"),O=this.parseParens(!0));let T={};return this.peekStartsWith("(")&&(T=this.parseParens(!1)),(b.length>0||Object.keys(O).length>0)&&(T[rn]=new Qn(b,O)),T}parseSegment(){const b=ie(this.remaining);if(""===b&&this.peekStartsWith(";"))throw new c.wOt(4009,!1);return this.capture(b),new Dr(Mt(b),this.parseMatrixParams())}parseMatrixParams(){const b={};for(;this.consumeOptional(";");)this.parseParam(b);return b}parseParam(b){const O=function lt(E){const b=E.match(ct);return b?b[0]:""}(this.remaining);if(!O)return;this.capture(O);let T="";if(this.consumeOptional("=")){const L=ie(this.remaining);L&&(T=L,this.capture(T))}b[Mt(O)]=Mt(T)}parseQueryParam(b){const O=function tn(E){const b=E.match(Gt);return b?b[0]:""}(this.remaining);if(!O)return;this.capture(O);let T="";if(this.consumeOptional("=")){const Re=function qn(E){const b=E.match(_n);return b?b[0]:""}(this.remaining);Re&&(T=Re,this.capture(T))}const L=ut(O),ae=ut(T);if(b.hasOwnProperty(L)){let Re=b[L];Array.isArray(Re)||(Re=[Re],b[L]=Re),Re.push(ae)}else b[L]=ae}parseParens(b){const O={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const T=ie(this.remaining),L=this.remaining[T.length];if("/"!==L&&")"!==L&&";"!==L)throw new c.wOt(4010,!1);let ae;T.indexOf(":")>-1?(ae=T.slice(0,T.indexOf(":")),this.capture(ae),this.capture(":")):b&&(ae=rn);const Re=this.parseChildren();O[ae]=1===Object.keys(Re).length?Re[rn]:new Qn([],Re),this.consumeOptional("//")}return O}peekStartsWith(b){return this.remaining.startsWith(b)}consumeOptional(b){return!!this.peekStartsWith(b)&&(this.remaining=this.remaining.substring(b.length),!0)}capture(b){if(!this.consumeOptional(b))throw new c.wOt(4011,!1)}}function Cn(E){return E.segments.length>0?new Qn([],{[rn]:E}):E}function tr(E){const b={};for(const[T,L]of Object.entries(E.children)){const ae=tr(L);if(T===rn&&0===ae.segments.length&&ae.hasChildren())for(const[Re,Pt]of Object.entries(ae.children))b[Re]=Pt;else(ae.segments.length>0||ae.hasChildren())&&(b[T]=ae)}return function Ar(E){if(1===E.numberOfChildren&&E.children[rn]){const b=E.children[rn];return new Qn(E.segments.concat(b.segments),b.children)}return E}(new Qn(E.segments,b))}function dr(E){return E instanceof Nr}function Zr(E){var b;let O;const ae=Cn(function T(Re){const Pt={};for(const Bt of Re.children){const Bn=T(Bt);Pt[Bt.outlet]=Bn}const fn=new Qn(Re.url,Pt);return Re===E&&(O=fn),fn}(E.root));return null!==(b=O)&&void 0!==b?b:ae}function fr(E,b,O,T){let L=E;for(;L.parent;)L=L.parent;if(0===b.length)return pr(L,L,L,O,T);const ae=function ee(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new ne(!0,0,E);let b=0,O=!1;const T=E.reduce((L,ae,Re)=>{if("object"==typeof ae&&null!=ae){if(ae.outlets){const Pt={};return Object.entries(ae.outlets).forEach(([fn,Bt])=>{Pt[fn]="string"==typeof Bt?Bt.split("/"):Bt}),[...L,{outlets:Pt}]}if(ae.segmentPath)return[...L,ae.segmentPath]}return"string"!=typeof ae?[...L,ae]:0===Re?(ae.split("/").forEach((Pt,fn)=>{0==fn&&"."===Pt||(0==fn&&""===Pt?O=!0:".."===Pt?b++:""!=Pt&&L.push(Pt))}),L):[...L,ae]},[]);return new ne(O,b,T)}(b);if(ae.toRoot())return pr(L,L,new Qn([],{}),O,T);const Re=function M(E,b,O){if(E.isAbsolute)return new je(b,!0,0);if(!O)return new je(b,!1,NaN);if(null===O.parent)return new je(O,!0,0);const T=Ri(E.commands[0])?0:1;return function x(E,b,O){let T=E,L=b,ae=O;for(;ae>L;){if(ae-=L,T=T.parent,!T)throw new c.wOt(4005,!1);L=T.segments.length}return new je(T,!1,L-ae)}(O,O.segments.length-1+T,E.numberOfDoubleDots)}(ae,L,E),Pt=Re.processChildren?Ge(Re.segmentGroup,Re.index,ae.commands):Te(Re.segmentGroup,Re.index,ae.commands);return pr(L,Re.segmentGroup,Pt,O,T)}function Ri(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function gi(E){return"object"==typeof E&&null!=E&&E.outlets}function pr(E,b,O,T,L){let Re,ae={};T&&Object.entries(T).forEach(([fn,Bt])=>{ae[fn]=Array.isArray(Bt)?Bt.map(Bn=>`${Bn}`):`${Bt}`}),Re=E===b?O:Ut(E,b,O);const Pt=Cn(tr(Re));return new Nr(Pt,ae,L)}function Ut(E,b,O){const T={};return Object.entries(E.children).forEach(([L,ae])=>{T[L]=ae===b?O:Ut(ae,b,O)}),new Qn(E.segments,T)}class ne{constructor(b,O,T){if(this.isAbsolute=b,this.numberOfDoubleDots=O,this.commands=T,b&&T.length>0&&Ri(T[0]))throw new c.wOt(4003,!1);const L=T.find(gi);if(L&&L!==Ot(T))throw new c.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class je{constructor(b,O,T){this.segmentGroup=b,this.processChildren=O,this.index=T}}function Te(E,b,O){var T;if(null!==(T=E)&&void 0!==T||(E=new Qn([],{})),0===E.segments.length&&E.hasChildren())return Ge(E,b,O);const L=function Ct(E,b,O){let T=0,L=b;const ae={match:!1,pathIndex:0,commandIndex:0};for(;L=O.length)return ae;const Re=E.segments[L],Pt=O[T];if(gi(Pt))break;const fn=`${Pt}`,Bt=T0&&void 0===fn)break;if(fn&&Bt&&"object"==typeof Bt&&void 0===Bt.outlets){if(!Un(fn,Bt,Re))return ae;T+=2}else{if(!Un(fn,{},Re))return ae;T++}L++}return{match:!0,pathIndex:L,commandIndex:T}}(E,b,O),ae=O.slice(L.commandIndex);if(L.match&&L.pathIndexae!==rn)&&E.children[rn]&&1===E.numberOfChildren&&0===E.children[rn].segments.length){const ae=Ge(E.children[rn],b,O);return new Qn(E.segments,ae.children)}return Object.entries(T).forEach(([ae,Re])=>{"string"==typeof Re&&(Re=[Re]),null!==Re&&(L[ae]=Te(E.children[ae],b,Re))}),Object.entries(E.children).forEach(([ae,Re])=>{void 0===T[ae]&&(L[ae]=Re)}),new Qn(E.segments,L)}}function Jt(E,b,O){const T=E.segments.slice(0,b);let L=0;for(;L{"string"==typeof T&&(T=[T]),null!==T&&(b[O]=Jt(new Qn([],{}),0,T))}),b}function or(E){const b={};return Object.entries(E).forEach(([O,T])=>b[O]=`${T}`),b}function Un(E,b,O){return E==O.path&&rr(b,O.parameters)}const xr="imperative";var On=function(E){return E[E.NavigationStart=0]="NavigationStart",E[E.NavigationEnd=1]="NavigationEnd",E[E.NavigationCancel=2]="NavigationCancel",E[E.NavigationError=3]="NavigationError",E[E.RoutesRecognized=4]="RoutesRecognized",E[E.ResolveStart=5]="ResolveStart",E[E.ResolveEnd=6]="ResolveEnd",E[E.GuardsCheckStart=7]="GuardsCheckStart",E[E.GuardsCheckEnd=8]="GuardsCheckEnd",E[E.RouteConfigLoadStart=9]="RouteConfigLoadStart",E[E.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",E[E.ChildActivationStart=11]="ChildActivationStart",E[E.ChildActivationEnd=12]="ChildActivationEnd",E[E.ActivationStart=13]="ActivationStart",E[E.ActivationEnd=14]="ActivationEnd",E[E.Scroll=15]="Scroll",E[E.NavigationSkipped=16]="NavigationSkipped",E}(On||{});class Fr{constructor(b,O){this.id=b,this.url=O}}class Or extends Fr{constructor(b,O,T="imperative",L=null){super(b,O),this.type=On.NavigationStart,this.navigationTrigger=T,this.restoredState=L}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zr extends Fr{constructor(b,O,T){super(b,O),this.urlAfterRedirects=T,this.type=On.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Tr=function(E){return E[E.Redirect=0]="Redirect",E[E.SupersededByNewNavigation=1]="SupersededByNewNavigation",E[E.NoDataFromResolver=2]="NoDataFromResolver",E[E.GuardRejected=3]="GuardRejected",E}(Tr||{}),Gn=function(E){return E[E.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",E[E.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",E}(Gn||{});class Cr extends Fr{constructor(b,O,T,L){super(b,O),this.reason=T,this.code=L,this.type=On.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ai extends Fr{constructor(b,O,T,L){super(b,O),this.reason=T,this.code=L,this.type=On.NavigationSkipped}}class li extends Fr{constructor(b,O,T,L){super(b,O),this.error=T,this.target=L,this.type=On.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ei extends Fr{constructor(b,O,T,L){super(b,O),this.urlAfterRedirects=T,this.state=L,this.type=On.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lr extends Fr{constructor(b,O,T,L){super(b,O),this.urlAfterRedirects=T,this.state=L,this.type=On.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mi extends Fr{constructor(b,O,T,L,ae){super(b,O),this.urlAfterRedirects=T,this.state=L,this.shouldActivate=ae,this.type=On.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Wn extends Fr{constructor(b,O,T,L){super(b,O),this.urlAfterRedirects=T,this.state=L,this.type=On.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hn extends Fr{constructor(b,O,T,L){super(b,O),this.urlAfterRedirects=T,this.state=L,this.type=On.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ao{constructor(b){this.route=b,this.type=On.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ui{constructor(b){this.route=b,this.type=On.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ci{constructor(b){this.snapshot=b,this.type=On.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Eo{constructor(b){this.snapshot=b,this.type=On.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class No{constructor(b){this.snapshot=b,this.type=On.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oi{constructor(b){this.snapshot=b,this.type=On.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bt{constructor(b,O,T){this.routerEvent=b,this.position=O,this.anchor=T,this.type=On.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class he{}class le{constructor(b){this.url=b}}class $e{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ve,this.attachRef=null}}let Ve=(()=>{var E;class b{constructor(){this.contexts=new Map}onChildOutletCreated(T,L){const ae=this.getOrCreateContext(T);ae.outlet=L,this.contexts.set(T,ae)}onChildOutletDestroyed(T){const L=this.getContext(T);L&&(L.outlet=null,L.attachRef=null)}onOutletDeactivated(){const T=this.contexts;return this.contexts=new Map,T}onOutletReAttached(T){this.contexts=T}getOrCreateContext(T){let L=this.getContext(T);return L||(L=new $e,this.contexts.set(T,L)),L}getContext(T){return this.contexts.get(T)||null}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();class st{constructor(b){this._root=b}get root(){return this._root.value}parent(b){const O=this.pathFromRoot(b);return O.length>1?O[O.length-2]:null}children(b){const O=jt(b,this._root);return O?O.children.map(T=>T.value):[]}firstChild(b){const O=jt(b,this._root);return O&&O.children.length>0?O.children[0].value:null}siblings(b){const O=In(b,this._root);return O.length<2?[]:O[O.length-2].children.map(L=>L.value).filter(L=>L!==b)}pathFromRoot(b){return In(b,this._root).map(O=>O.value)}}function jt(E,b){if(E===b.value)return b;for(const O of b.children){const T=jt(E,O);if(T)return T}return null}function In(E,b){if(E===b.value)return[b];for(const O of b.children){const T=In(E,O);if(T.length)return T.unshift(b),T}return[]}class Fn{constructor(b,O){this.value=b,this.children=O}toString(){return`TreeNode(${this.value})`}}function w(E){const b={};return E&&E.children.forEach(O=>b[O.value.outlet]=O),b}class j extends st{constructor(b,O){super(b),this.snapshot=O,z(this,b)}toString(){return this.snapshot.toString()}}function re(E){const b=function P(E){const ae=new sr([],{},{},"",{},rn,E,null,{});return new ni("",new Fn(ae,[]))}(E),O=new ue.t([new Dr("",{})]),T=new ue.t({}),L=new ue.t({}),ae=new ue.t({}),Re=new ue.t(""),Pt=new Ie(O,T,ae,Re,L,rn,E,b.root);return Pt.snapshot=b.root,new j(new Fn(Pt,[]),b)}class Ie{constructor(b,O,T,L,ae,Re,Pt,fn){var Bt,Bn;this.urlSubject=b,this.paramsSubject=O,this.queryParamsSubject=T,this.fragmentSubject=L,this.dataSubject=ae,this.outlet=Re,this.component=Pt,this._futureSnapshot=fn,this.title=null!==(Bt=null===(Bn=this.dataSubject)||void 0===Bn?void 0:Bn.pipe((0,ge.T)(Vr=>Vr[Ln])))&&void 0!==Bt?Bt:(0,U.of)(void 0),this.url=b,this.params=O,this.queryParams=T,this.fragment=L,this.data=ae}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(){var b;return null!==(b=this._paramMap)&&void 0!==b||(this._paramMap=this.params.pipe((0,ge.T)(O=>nr(O)))),this._paramMap}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=this.queryParams.pipe((0,ge.T)(O=>nr(O)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ot(E,b,O="emptyOnly"){var T;let L;const{routeConfig:ae}=E;var Re;return L=null===b||"always"!==O&&""!==(null==ae?void 0:ae.path)&&(b.component||null!==(T=b.routeConfig)&&void 0!==T&&T.loadComponent)?{params:{...E.params},data:{...E.data},resolve:{...E.data,...null!==(Re=E._resolvedData)&&void 0!==Re?Re:{}}}:{params:{...b.params,...E.params},data:{...b.data,...E.data},resolve:{...E.data,...b.data,...null==ae?void 0:ae.data,...E._resolvedData}},ae&&wt(ae)&&(L.resolve[Ln]=ae.title),L}class sr{get title(){var b;return null===(b=this.data)||void 0===b?void 0:b[Ln]}constructor(b,O,T,L,ae,Re,Pt,fn,Bt){this.url=b,this.params=O,this.queryParams=T,this.fragment=L,this.data=ae,this.outlet=Re,this.component=Pt,this.routeConfig=fn,this._resolve=Bt}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(){var b;return null!==(b=this._paramMap)&&void 0!==b||(this._paramMap=nr(this.params)),this._paramMap}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=nr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(T=>T.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ni extends st{constructor(b,O){super(O),this.url=b,z(this,O)}toString(){return me(this._root)}}function z(E,b){b.value._routerState=E,b.children.forEach(O=>z(E,O))}function me(E){const b=E.children.length>0?` { ${E.children.map(me).join(", ")} } `:"";return`${E.value}${b}`}function Ne(E){if(E.snapshot){const b=E.snapshot,O=E._futureSnapshot;E.snapshot=O,rr(b.queryParams,O.queryParams)||E.queryParamsSubject.next(O.queryParams),b.fragment!==O.fragment&&E.fragmentSubject.next(O.fragment),rr(b.params,O.params)||E.paramsSubject.next(O.params),function yr(E,b){if(E.length!==b.length)return!1;for(let O=0;Orr(O.parameters,b[T].parameters))}(E.url,b.url);return O&&!(!E.parent!=!b.parent)&&(!E.parent||et(E.parent,b.parent))}function wt(E){return"string"==typeof E.title||null===E.title}let It=(()=>{var E;class b{constructor(){this.activated=null,this._activatedRoute=null,this.name=rn,this.activateEvents=new c.bkB,this.deactivateEvents=new c.bkB,this.attachEvents=new c.bkB,this.detachEvents=new c.bkB,this.parentContexts=(0,c.WQX)(Ve),this.location=(0,c.WQX)(c.c1b),this.changeDetector=(0,c.WQX)(c.gRc),this.environmentInjector=(0,c.WQX)(c.uvJ),this.inputBinder=(0,c.WQX)(sn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(T){if(T.name){const{firstChange:L,previousValue:ae}=T.name;if(L)return;this.isTrackedInParentContexts(ae)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ae)),this.initializeOutletWithName()}}ngOnDestroy(){var T;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(T=this.inputBinder)||void 0===T||T.unsubscribeFromRouteData(this)}isTrackedInParentContexts(T){var L;return(null===(L=this.parentContexts.getContext(T))||void 0===L?void 0:L.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const T=this.parentContexts.getContext(this.name);null!=T&&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 c.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.wOt(4012,!1);this.location.detach();const T=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(T.instance),T}attach(T,L){var ae;this.activated=T,this._activatedRoute=L,this.location.insert(T.hostView),null===(ae=this.inputBinder)||void 0===ae||ae.bindActivatedRouteToOutletComponent(this),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,L){var ae;if(this.isActivated)throw new c.wOt(4013,!1);this._activatedRoute=T;const Re=this.location,fn=T.snapshot.component,Bt=this.parentContexts.getOrCreateContext(this.name).children,Bn=new Yt(T,Bt,Re.injector);this.activated=Re.createComponent(fn,{index:Re.length,injector:Bn,environmentInjector:null!=L?L:this.environmentInjector}),this.changeDetector.markForCheck(),null===(ae=this.inputBinder)||void 0===ae||ae.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275dir=c.FsC({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.OA$]}),b})();class Yt{__ngOutletInjector(b){return new Yt(this.route,this.childContexts,b)}constructor(b,O,T){this.route=b,this.childContexts=O,this.parent=T}get(b,O){return b===Ie?this.route:b===Ve?this.childContexts:this.parent.get(b,O)}}const sn=new c.nKC("");let cn=(()=>{var E;class b{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(T){this.unsubscribeFromRouteData(T),this.subscribeToRouteData(T)}unsubscribeFromRouteData(T){var L;null===(L=this.outletDataSubscriptions.get(T))||void 0===L||L.unsubscribe(),this.outletDataSubscriptions.delete(T)}subscribeToRouteData(T){const{activatedRoute:L}=T,ae=(0,oe.z)([L.queryParams,L.params,L.data]).pipe((0,Ue.n)(([Re,Pt,fn],Bt)=>(fn={...Re,...Pt,...fn},0===Bt?(0,U.of)(fn):Promise.resolve(fn)))).subscribe(Re=>{if(!T.isActivated||!T.activatedComponentRef||T.activatedRoute!==L||null===L.component)return void this.unsubscribeFromRouteData(T);const Pt=(0,c.HJs)(L.component);if(Pt)for(const{templateName:fn}of Pt.inputs)T.activatedComponentRef.setInput(fn,Re[fn]);else this.unsubscribeFromRouteData(T)});this.outletDataSubscriptions.set(T,ae)}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),b})();function Nn(E,b,O){if(O&&E.shouldReuseRoute(b.value,O.value.snapshot)){const T=O.value;T._futureSnapshot=b.value;const L=function jn(E,b,O){return b.children.map(T=>{for(const L of O.children)if(E.shouldReuseRoute(T.value,L.value.snapshot))return Nn(E,T,L);return Nn(E,T)})}(E,b,O);return new Fn(T,L)}{if(E.shouldAttach(b.value)){const ae=E.retrieve(b.value);if(null!==ae){const Re=ae.route;return Re.value._futureSnapshot=b.value,Re.children=b.children.map(Pt=>Nn(E,Pt)),Re}}const T=function lr(E){return new Ie(new ue.t(E.url),new ue.t(E.params),new ue.t(E.queryParams),new ue.t(E.fragment),new ue.t(E.data),E.outlet,E.component,E)}(b.value),L=b.children.map(ae=>Nn(E,ae));return new Fn(T,L)}}const Vn="ngNavigationCancelingError";function qr(E,b){const{redirectTo:O,navigationBehaviorOptions:T}=dr(b)?{redirectTo:b,navigationBehaviorOptions:void 0}:b,L=jr(!1,Tr.Redirect);return L.url=O,L.navigationBehaviorOptions=T,L}function jr(E,b){const O=new Error(`NavigationCancelingError: ${E||""}`);return O[Vn]=!0,O.cancellationCode=b,O}function wi(E){return!!E&&E[Vn]}let Ni=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275cmp=c.VBU({type:E,selectors:[["ng-component"]],standalone:!0,features:[c.aNF],decls:1,vars:0,template:function(T,L){1&T&&c.nrm(0,"router-outlet")},dependencies:[It],encapsulation:2}),b})();function Ss(E){const b=E.children&&E.children.map(Ss),O=b?{...E,children:b}:{...E};return!O.component&&!O.loadComponent&&(b||O.loadChildren)&&O.outlet&&O.outlet!==rn&&(O.component=Ni),O}function no(E){return E.outlet||rn}function Kr(E){var b;if(!E)return null;if(null!==(b=E.routeConfig)&&void 0!==b&&b._injector)return E.routeConfig._injector;for(let O=E.parent;O;O=O.parent){const T=O.routeConfig;if(null!=T&&T._loadedInjector)return T._loadedInjector;if(null!=T&&T._injector)return T._injector}return null}class Rs{constructor(b,O,T,L,ae){this.routeReuseStrategy=b,this.futureState=O,this.currState=T,this.forwardEvent=L,this.inputBindingEnabled=ae}activate(b){const O=this.futureState._root,T=this.currState?this.currState._root:null;this.deactivateChildRoutes(O,T,b),Ne(this.futureState.root),this.activateChildRoutes(O,T,b)}deactivateChildRoutes(b,O,T){const L=w(O);b.children.forEach(ae=>{const Re=ae.value.outlet;this.deactivateRoutes(ae,L[Re],T),delete L[Re]}),Object.values(L).forEach(ae=>{this.deactivateRouteAndItsChildren(ae,T)})}deactivateRoutes(b,O,T){const L=b.value,ae=O?O.value:null;if(L===ae)if(L.component){const Re=T.getContext(L.outlet);Re&&this.deactivateChildRoutes(b,O,Re.children)}else this.deactivateChildRoutes(b,O,T);else ae&&this.deactivateRouteAndItsChildren(O,T)}deactivateRouteAndItsChildren(b,O){b.value.component&&this.routeReuseStrategy.shouldDetach(b.value.snapshot)?this.detachAndStoreRouteSubtree(b,O):this.deactivateRouteAndOutlet(b,O)}detachAndStoreRouteSubtree(b,O){const T=O.getContext(b.value.outlet),L=T&&b.value.component?T.children:O,ae=w(b);for(const Re of Object.values(ae))this.deactivateRouteAndItsChildren(Re,L);if(T&&T.outlet){const Re=T.outlet.detach(),Pt=T.children.onOutletDeactivated();this.routeReuseStrategy.store(b.value.snapshot,{componentRef:Re,route:b,contexts:Pt})}}deactivateRouteAndOutlet(b,O){const T=O.getContext(b.value.outlet),L=T&&b.value.component?T.children:O,ae=w(b);for(const Re of Object.values(ae))this.deactivateRouteAndItsChildren(Re,L);T&&(T.outlet&&(T.outlet.deactivate(),T.children.onOutletDeactivated()),T.attachRef=null,T.route=null)}activateChildRoutes(b,O,T){const L=w(O);b.children.forEach(ae=>{this.activateRoutes(ae,L[ae.value.outlet],T),this.forwardEvent(new oi(ae.value.snapshot))}),b.children.length&&this.forwardEvent(new Eo(b.value.snapshot))}activateRoutes(b,O,T){const L=b.value,ae=O?O.value:null;if(Ne(L),L===ae)if(L.component){const Re=T.getOrCreateContext(L.outlet);this.activateChildRoutes(b,O,Re.children)}else this.activateChildRoutes(b,O,T);else if(L.component){const Re=T.getOrCreateContext(L.outlet);if(this.routeReuseStrategy.shouldAttach(L.snapshot)){const Pt=this.routeReuseStrategy.retrieve(L.snapshot);this.routeReuseStrategy.store(L.snapshot,null),Re.children.onOutletReAttached(Pt.contexts),Re.attachRef=Pt.componentRef,Re.route=Pt.route.value,Re.outlet&&Re.outlet.attach(Pt.componentRef,Pt.route.value),Ne(Pt.route.value),this.activateChildRoutes(b,null,Re.children)}else{const Pt=Kr(L.snapshot);Re.attachRef=null,Re.route=L,Re.injector=Pt,Re.outlet&&Re.outlet.activateWith(L,Re.injector),this.activateChildRoutes(b,null,Re.children)}}else this.activateChildRoutes(b,null,T)}}class Hs{constructor(b){this.path=b,this.route=this.path[this.path.length-1]}}class Ms{constructor(b,O){this.component=b,this.route=O}}function ls(E,b,O){const T=E._root;return vs(T,b?b._root:null,O,[T.value])}function Uo(E,b){const O=Symbol(),T=b.get(E,O);return T===O?"function"!=typeof E||(0,c.LfX)(E)?b.get(E):E:T}function vs(E,b,O,T,L={canDeactivateChecks:[],canActivateChecks:[]}){const ae=w(b);return E.children.forEach(Re=>{(function Ps(E,b,O,T,L={canDeactivateChecks:[],canActivateChecks:[]}){const ae=E.value,Re=b?b.value:null,Pt=O?O.getContext(E.value.outlet):null;if(Re&&ae.routeConfig===Re.routeConfig){const fn=function xs(E,b,O){if("function"==typeof O)return O(E,b);switch(O){case"pathParamsChange":return!Jr(E.url,b.url);case"pathParamsOrQueryParamsChange":return!Jr(E.url,b.url)||!rr(E.queryParams,b.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!et(E,b)||!rr(E.queryParams,b.queryParams);default:return!et(E,b)}}(Re,ae,ae.routeConfig.runGuardsAndResolvers);fn?L.canActivateChecks.push(new Hs(T)):(ae.data=Re.data,ae._resolvedData=Re._resolvedData),vs(E,b,ae.component?Pt?Pt.children:null:O,T,L),fn&&Pt&&Pt.outlet&&Pt.outlet.isActivated&&L.canDeactivateChecks.push(new Ms(Pt.outlet.component,Re))}else Re&&Ao(b,Pt,L),L.canActivateChecks.push(new Hs(T)),vs(E,null,ae.component?Pt?Pt.children:null:O,T,L)})(Re,ae[Re.value.outlet],O,T.concat([Re.value]),L),delete ae[Re.value.outlet]}),Object.entries(ae).forEach(([Re,Pt])=>Ao(Pt,O.getContext(Re),L)),L}function Ao(E,b,O){const T=w(E),L=E.value;Object.entries(T).forEach(([ae,Re])=>{Ao(Re,L.component?b?b.children.getContext(ae):null:b,O)}),O.canDeactivateChecks.push(new Ms(L.component&&b&&b.outlet&&b.outlet.isActivated?b.outlet.component:null,L))}function Fo(E){return"function"==typeof E}function G(E){return E instanceof Xe.G||"EmptyError"===(null==E?void 0:E.name)}const ke=Symbol("INITIAL_VALUE");function yn(){return(0,Ue.n)(E=>(0,oe.z)(E.map(b=>b.pipe((0,Fe.s)(1),(0,xe.Z)(ke)))).pipe((0,ge.T)(b=>{for(const O of b)if(!0!==O){if(O===ke)return ke;if(!1===O||O instanceof Nr)return O}return!0}),(0,rt.p)(b=>b!==ke),(0,Fe.s)(1)))}function fa(E){return(0,Ze.F)((0,tt.M)(b=>{if(dr(b))throw qr(0,b)}),(0,ge.T)(b=>!0===b))}class pa{constructor(b){this.segmentGroup=b||null}}class $o extends Error{constructor(b){super(),this.urlTree=b}}function Jo(E){return ht(new pa(E))}class po{constructor(b,O){this.urlSerializer=b,this.urlTree=O}lineralizeSegments(b,O){let T=[],L=O.root;for(;;){if(T=T.concat(L.segments),0===L.numberOfChildren)return(0,U.of)(T);if(L.numberOfChildren>1||!L.children[rn])return ht(new c.wOt(4e3,!1));L=L.children[rn]}}applyRedirectCommands(b,O,T){const L=this.applyRedirectCreateUrlTree(O,this.urlSerializer.parse(O),b,T);if(O.startsWith("/"))throw new $o(L);return L}applyRedirectCreateUrlTree(b,O,T,L){const ae=this.createSegmentGroup(b,O.root,T,L);return new Nr(ae,this.createQueryParams(O.queryParams,this.urlTree.queryParams),O.fragment)}createQueryParams(b,O){const T={};return Object.entries(b).forEach(([L,ae])=>{if("string"==typeof ae&&ae.startsWith(":")){const Pt=ae.substring(1);T[L]=O[Pt]}else T[L]=ae}),T}createSegmentGroup(b,O,T,L){const ae=this.createSegments(b,O.segments,T,L);let Re={};return Object.entries(O.children).forEach(([Pt,fn])=>{Re[Pt]=this.createSegmentGroup(b,fn,T,L)}),new Qn(ae,Re)}createSegments(b,O,T,L){return O.map(ae=>ae.path.startsWith(":")?this.findPosParam(b,ae,L):this.findOrReturn(ae,T))}findPosParam(b,O,T){const L=T[O.path.substring(1)];if(!L)throw new c.wOt(4001,!1);return L}findOrReturn(b,O){let T=0;for(const L of O){if(L.path===b.path)return O.splice(T),L;T++}return b}}const bi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function La(E,b,O,T,L){const ae=jo(E,b,O);return ae.matched?(T=function ki(E,b){var O;return E.providers&&!E._injector&&(E._injector=(0,c.Ol2)(E.providers,b,`Route: ${E.path}`)),null!==(O=E._injector)&&void 0!==O?O:b}(b,T),function ul(E,b,O,T){const L=b.canMatch;if(!L||0===L.length)return(0,U.of)(!0);const ae=L.map(Re=>{const Pt=Uo(Re,E);return zt(function Ce(E){return E&&Fo(E.canMatch)}(Pt)?Pt.canMatch(b,O):(0,c.N4e)(E,()=>Pt(b,O)))});return(0,U.of)(ae).pipe(yn(),fa())}(T,b,O).pipe((0,ge.T)(Re=>!0===Re?ae:{...bi}))):(0,U.of)(ae)}function jo(E,b,O){var T,L;if("**"===b.path)return function ys(E){return{matched:!0,parameters:E.length>0?Ot(E).parameters:{},consumedSegments:E,remainingSegments:[],positionalParamSegments:{}}}(O);if(""===b.path)return"full"===b.pathMatch&&(E.hasChildren()||O.length>0)?{...bi}:{matched:!0,consumedSegments:[],remainingSegments:O,parameters:{},positionalParamSegments:{}};const Re=(b.matcher||er)(O,E,b);if(!Re)return{...bi};const Pt={};Object.entries(null!==(T=Re.posParams)&&void 0!==T?T:{}).forEach(([Bt,Bn])=>{Pt[Bt]=Bn.path});const fn=Re.consumed.length>0?{...Pt,...Re.consumed[Re.consumed.length-1].parameters}:Pt;return{matched:!0,consumedSegments:Re.consumed,remainingSegments:O.slice(Re.consumed.length),parameters:fn,positionalParamSegments:null!==(L=Re.posParams)&&void 0!==L?L:{}}}function cl(E,b,O,T){return O.length>0&&function Ws(E,b,O){return O.some(T=>Es(E,b,T)&&no(T)!==rn)}(E,O,T)?{segmentGroup:new Qn(b,dl(T,new Qn(O,E.children))),slicedSegments:[]}:0===O.length&&function Va(E,b,O){return O.some(T=>Es(E,b,T))}(E,O,T)?{segmentGroup:new Qn(E.segments,Hr(E,O,T,E.children)),slicedSegments:O}:{segmentGroup:new Qn(E.segments,E.children),slicedSegments:O}}function Hr(E,b,O,T){const L={};for(const ae of O)if(Es(E,b,ae)&&!T[no(ae)]){const Re=new Qn([],{});L[no(ae)]=Re}return{...T,...L}}function dl(E,b){const O={};O[rn]=b;for(const T of E)if(""===T.path&&no(T)!==rn){const L=new Qn([],{});O[no(T)]=L}return O}function Es(E,b,O){return(!(E.hasChildren()||b.length>0)||"full"!==O.pathMatch)&&""===O.path}class Ul{}class Is{constructor(b,O,T,L,ae,Re,Pt){this.injector=b,this.configLoader=O,this.rootComponentType=T,this.config=L,this.urlTree=ae,this.paramsInheritanceStrategy=Re,this.urlSerializer=Pt,this.applyRedirects=new po(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(b){return new c.wOt(4002,`'${b.segmentGroup}'`)}recognize(){const b=cl(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(b).pipe((0,ge.T)(O=>{const T=new sr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},rn,this.rootComponentType,null,{}),L=new Fn(T,O),ae=new ni("",L),Re=function $r(E,b,O=null,T=null){return fr(Zr(E),b,O,T)}(T,[],this.urlTree.queryParams,this.urlTree.fragment);return Re.queryParams=this.urlTree.queryParams,ae.url=this.urlSerializer.serialize(Re),this.inheritParamsAndData(ae._root,null),{state:ae,tree:Re}}))}match(b){return this.processSegmentGroup(this.injector,this.config,b,rn).pipe(on(T=>{if(T instanceof $o)return this.urlTree=T.urlTree,this.match(T.urlTree.root);throw T instanceof pa?this.noMatchError(T):T}))}inheritParamsAndData(b,O){const T=b.value,L=ot(T,O,this.paramsInheritanceStrategy);T.params=Object.freeze(L.params),T.data=Object.freeze(L.data),b.children.forEach(ae=>this.inheritParamsAndData(ae,T))}processSegmentGroup(b,O,T,L){return 0===T.segments.length&&T.hasChildren()?this.processChildren(b,O,T):this.processSegment(b,O,T,T.segments,L,!0).pipe((0,ge.T)(ae=>ae instanceof Fn?[ae]:[]))}processChildren(b,O,T){const L=[];for(const ae of Object.keys(T.children))"primary"===ae?L.unshift(ae):L.push(ae);return(0,Oe.H)(L).pipe((0,Nt.H)(ae=>{const Re=T.children[ae],Pt=function ko(E,b){const O=E.filter(T=>no(T)===b);return O.push(...E.filter(T=>no(T)!==b)),O}(O,ae);return this.processSegmentGroup(b,Pt,Re,ae)}),function we(E,b){return(0,yt.N)(function dt(E,b,O,T,L){return(ae,Re)=>{let Pt=O,fn=b,Bt=0;ae.subscribe((0,_t._)(Re,Bn=>{const Vr=Bt++;fn=Pt?E(fn,Bn,Vr):(Pt=!0,Bn),T&&Re.next(fn)},L&&(()=>{Pt&&Re.next(fn),Re.complete()})))}}(E,b,arguments.length>=2,!0))}((ae,Re)=>(ae.push(...Re),ae)),(0,H.U)(null),function ve(E,b){const O=arguments.length>=2;return T=>T.pipe(E?(0,rt.p)((L,ae)=>E(L,ae,T)):se.D,X(1),O?(0,H.U)(b):(0,fe.v)(()=>new Xe.G))}(),(0,Rt.Z)(ae=>{if(null===ae)return Jo(T);const Re=As(ae);return function Os(E){E.sort((b,O)=>b.value.outlet===rn?-1:O.value.outlet===rn?1:b.value.outlet.localeCompare(O.value.outlet))}(Re),(0,U.of)(Re)}))}processSegment(b,O,T,L,ae,Re){return(0,Oe.H)(O).pipe((0,Nt.H)(Pt=>{var fn;return this.processSegmentAgainstRoute(null!==(fn=Pt._injector)&&void 0!==fn?fn:b,O,Pt,T,L,ae,Re).pipe(on(Bt=>{if(Bt instanceof pa)return(0,U.of)(null);throw Bt}))}),(0,vn.$)(Pt=>!!Pt),on(Pt=>{if(G(Pt))return function Ba(E,b,O){return 0===b.length&&!E.children[O]}(T,L,ae)?(0,U.of)(new Ul):Jo(T);throw Pt}))}processSegmentAgainstRoute(b,O,T,L,ae,Re,Pt){return function hl(E,b,O,T){return!!(no(E)===T||T!==rn&&Es(b,O,E))&&jo(b,E,O).matched}(T,L,ae,Re)?void 0===T.redirectTo?this.matchSegmentAgainstRoute(b,L,T,ae,Re):this.allowRedirects&&Pt?this.expandSegmentAgainstRouteUsingRedirect(b,L,O,T,ae,Re):Jo(L):Jo(L)}expandSegmentAgainstRouteUsingRedirect(b,O,T,L,ae,Re){const{matched:Pt,consumedSegments:fn,positionalParamSegments:Bt,remainingSegments:Bn}=jo(O,L,ae);if(!Pt)return Jo(O);L.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Vr=this.applyRedirects.applyRedirectCommands(fn,L.redirectTo,Bt);return this.applyRedirects.lineralizeSegments(L,Vr).pipe((0,Rt.Z)($i=>this.processSegment(b,T,O,$i.concat(Bn),Re,!1)))}matchSegmentAgainstRoute(b,O,T,L,ae){const Re=La(O,T,L,b);return"**"===T.path&&(O.children={}),Re.pipe((0,Ue.n)(Pt=>{var fn;return Pt.matched?(b=null!==(fn=T._injector)&&void 0!==fn?fn:b,this.getChildConfig(b,T,L).pipe((0,Ue.n)(({routes:Bt})=>{var Bn,Vr,$i;const yi=null!==(Bn=T._loadedInjector)&&void 0!==Bn?Bn:b,{consumedSegments:Zi,remainingSegments:Js,parameters:Ha}=Pt,Ga=new sr(Zi,Ha,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function es(E){return E.data||{}}(T),no(T),null!==(Vr=null!==($i=T.component)&&void 0!==$i?$i:T._loadedComponent)&&void 0!==Vr?Vr:null,T,function Su(E){return E.resolve||{}}(T)),{segmentGroup:Fs,slicedSegments:hs}=cl(O,Zi,Js,Bt);if(0===hs.length&&Fs.hasChildren())return this.processChildren(yi,Bt,Fs).pipe((0,ge.T)(Wa=>null===Wa?null:new Fn(Ga,Wa)));if(0===Bt.length&&0===hs.length)return(0,U.of)(new Fn(Ga,[]));const Ta=no(T)===ae;return this.processSegment(yi,Bt,Fs,hs,Ta?rn:ae,!0).pipe((0,ge.T)(Wa=>new Fn(Ga,Wa instanceof Fn?[Wa]:[])))}))):Jo(O)}))}getChildConfig(b,O,T){return O.children?(0,U.of)({routes:O.children,injector:b}):O.loadChildren?void 0!==O._loadedRoutes?(0,U.of)({routes:O._loadedRoutes,injector:O._loadedInjector}):function Gs(E,b,O,T){const L=b.canLoad;if(void 0===L||0===L.length)return(0,U.of)(!0);const ae=L.map(Re=>{const Pt=Uo(Re,E);return zt(function ha(E){return E&&Fo(E.canLoad)}(Pt)?Pt.canLoad(b,O):(0,c.N4e)(E,()=>Pt(b,O)))});return(0,U.of)(ae).pipe(yn(),fa())}(b,O,T).pipe((0,Rt.Z)(L=>L?this.configLoader.loadChildren(b,O).pipe((0,tt.M)(ae=>{O._loadedRoutes=ae.routes,O._loadedInjector=ae.injector})):function zi(E){return ht(jr(!1,Tr.GuardRejected))}())):(0,U.of)({routes:[],injector:b})}}function Zo(E){const b=E.value.routeConfig;return b&&""===b.path}function As(E){const b=[],O=new Set;for(const T of E){if(!Zo(T)){b.push(T);continue}const L=b.find(ae=>T.value.routeConfig===ae.value.routeConfig);void 0!==L?(L.children.push(...T.children),O.add(L)):b.push(T)}for(const T of O){const L=As(T.children);b.push(new Fn(T.value,L))}return b.filter(T=>!O.has(T))}function Lo(E){const b=E.children.map(O=>Lo(O)).flat();return[E,...b]}function Ua(E){return(0,Ue.n)(b=>{const O=E(b);return O?(0,Oe.H)(O).pipe((0,ge.T)(()=>b)):(0,U.of)(b)})}let ma=(()=>{var E;class b{buildTitle(T){let L,ae=T.root;for(;void 0!==ae;){var Re;L=null!==(Re=this.getResolvedTitleForRoute(ae))&&void 0!==Re?Re:L,ae=ae.children.find(Pt=>Pt.outlet===rn)}return L}getResolvedTitleForRoute(T){return T.data[Ln]}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)($a),providedIn:"root"}),b})(),$a=(()=>{var E;class b extends ma{constructor(T){super(),this.title=T}updateTitle(T){const L=this.buildTitle(T);void 0!==L&&this.title.setTitle(L)}}return(E=b).\u0275fac=function(T){return new(T||E)(c.KVO(Kt.hE))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const zo=new c.nKC("",{providedIn:"root",factory:()=>({})}),va=new c.nKC("");let _a=(()=>{var E;class b{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,c.WQX)(c.Ql9)}loadComponent(T){if(this.componentLoaders.get(T))return this.componentLoaders.get(T);if(T._loadedComponent)return(0,U.of)(T._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(T);const L=zt(T.loadComponent()).pipe((0,ge.T)(Gl),(0,tt.M)(Re=>{this.onLoadEndListener&&this.onLoadEndListener(T),T._loadedComponent=Re}),(0,_e.j)(()=>{this.componentLoaders.delete(T)})),ae=new mt(L,()=>new Me.B).pipe(Et());return this.componentLoaders.set(T,ae),ae}loadChildren(T,L){if(this.childrenLoaders.get(L))return this.childrenLoaders.get(L);if(L._loadedRoutes)return(0,U.of)({routes:L._loadedRoutes,injector:L._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(L);const Re=function Ks(E,b,O,T){return zt(E.loadChildren()).pipe((0,ge.T)(Gl),(0,Rt.Z)(L=>L instanceof c.Co$||Array.isArray(L)?(0,U.of)(L):(0,Oe.H)(b.compileModuleAsync(L))),(0,ge.T)(L=>{T&&T(E);let ae,Re,Pt=!1;return Array.isArray(L)?(Re=L,!0):(ae=L.create(O).injector,Re=ae.get(va,[],{optional:!0,self:!0}).flat()),{routes:Re.map(Ss),injector:ae}}))}(L,this.compiler,T,this.onLoadEndListener).pipe((0,_e.j)(()=>{this.childrenLoaders.delete(L)})),Pt=new mt(Re,()=>new Me.B).pipe(Et());return this.childrenLoaders.set(L,Pt),Pt}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();function Gl(E){return function lo(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let ya=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(C),providedIn:"root"}),b})(),C=(()=>{var E;class b{shouldProcessUrl(T){return!0}extract(T){return T}merge(T,L){return T}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const $=new c.nKC(""),Be=new c.nKC("");function F(E,b,O){const T=E.get(Be),L=E.get(Ye.qQ);return E.get(c.SKi).runOutsideAngular(()=>{if(!L.startViewTransition||T.skipNextTransition)return T.skipNextTransition=!1,new Promise(Bt=>setTimeout(Bt));let ae;const Re=new Promise(Bt=>{ae=Bt}),Pt=L.startViewTransition(()=>(ae(),function Ae(E){return new Promise(b=>{(0,c.mal)(b,{injector:E})})}(E))),{onViewTransitionCreated:fn}=T;return fn&&(0,c.N4e)(E,()=>fn({transition:Pt,from:b,to:O})),Re})}let Ke=(()=>{var E;class b{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Me.B,this.transitionAbortSubject=new Me.B,this.configLoader=(0,c.WQX)(_a),this.environmentInjector=(0,c.WQX)(c.uvJ),this.urlSerializer=(0,c.WQX)(ur),this.rootContexts=(0,c.WQX)(Ve),this.location=(0,c.WQX)(Ye.aZ),this.inputBindingEnabled=null!==(0,c.WQX)(sn,{optional:!0}),this.titleStrategy=(0,c.WQX)(ma),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,c.WQX)(ya),this.createViewTransition=(0,c.WQX)($,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,U.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ae=>this.events.next(new ui(ae)),this.configLoader.onLoadStartListener=ae=>this.events.next(new ao(ae))}complete(){var T;null===(T=this.transitions)||void 0===T||T.complete()}handleNavigationRequest(T){var L;const ae=++this.navigationId;null===(L=this.transitions)||void 0===L||L.next({...this.transitions.value,...T,id:ae})}setupNavigations(T,L,ae){return this.transitions=new ue.t({id:0,currentUrlTree:L,currentRawUrl:L,extractedUrl:this.urlHandlingStrategy.extract(L),urlAfterRedirects:this.urlHandlingStrategy.extract(L),rawUrl:L,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xr,restoredState:null,currentSnapshot:ae.snapshot,targetSnapshot:null,currentRouterState:ae,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,rt.p)(Re=>0!==Re.id),(0,ge.T)(Re=>({...Re,extractedUrl:this.urlHandlingStrategy.extract(Re.rawUrl)})),(0,Ue.n)(Re=>{let Pt=!1,fn=!1;return(0,U.of)(Re).pipe((0,Ue.n)(Bt=>{var Bn;if(this.navigationId>Re.id)return this.cancelNavigationTransition(Re,"",Tr.SupersededByNewNavigation),Tt.w;this.currentTransition=Re,this.currentNavigation={id:Bt.id,initialUrl:Bt.rawUrl,extractedUrl:Bt.extractedUrl,trigger:Bt.source,extras:Bt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Vr=!T.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),$i=null!==(Bn=Bt.extras.onSameUrlNavigation)&&void 0!==Bn?Bn:T.onSameUrlNavigation;if(!Vr&&"reload"!==$i){const yi="";return this.events.next(new ai(Bt.id,this.urlSerializer.serialize(Bt.rawUrl),yi,Gn.IgnoredSameUrlNavigation)),Bt.resolve(null),Tt.w}if(this.urlHandlingStrategy.shouldProcessUrl(Bt.rawUrl))return(0,U.of)(Bt).pipe((0,Ue.n)(yi=>{var Zi,Js;const Ha=null===(Zi=this.transitions)||void 0===Zi?void 0:Zi.getValue();return this.events.next(new Or(yi.id,this.urlSerializer.serialize(yi.extractedUrl),yi.source,yi.restoredState)),Ha!==(null===(Js=this.transitions)||void 0===Js?void 0:Js.getValue())?Tt.w:Promise.resolve(yi)}),function Hl(E,b,O,T,L,ae){return(0,Rt.Z)(Re=>function $l(E,b,O,T,L,ae,Re="emptyOnly"){return new Is(E,b,O,T,L,Re,ae).recognize()}(E,b,O,T,Re.extractedUrl,L,ae).pipe((0,ge.T)(({state:Pt,tree:fn})=>({...Re,targetSnapshot:Pt,urlAfterRedirects:fn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,T.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,tt.M)(yi=>{Re.targetSnapshot=yi.targetSnapshot,Re.urlAfterRedirects=yi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:yi.urlAfterRedirects};const Zi=new ei(yi.id,this.urlSerializer.serialize(yi.extractedUrl),this.urlSerializer.serialize(yi.urlAfterRedirects),yi.targetSnapshot);this.events.next(Zi)}));if(Vr&&this.urlHandlingStrategy.shouldProcessUrl(Bt.currentRawUrl)){const{id:yi,extractedUrl:Zi,source:Js,restoredState:Ha,extras:Ga}=Bt,Fs=new Or(yi,this.urlSerializer.serialize(Zi),Js,Ha);this.events.next(Fs);const hs=re(this.rootComponentType).snapshot;return this.currentTransition=Re={...Bt,targetSnapshot:hs,urlAfterRedirects:Zi,extras:{...Ga,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Zi,(0,U.of)(Re)}{const yi="";return this.events.next(new ai(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),yi,Gn.IgnoredByUrlHandlingStrategy)),Bt.resolve(null),Tt.w}}),(0,tt.M)(Bt=>{const Bn=new Lr(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),this.urlSerializer.serialize(Bt.urlAfterRedirects),Bt.targetSnapshot);this.events.next(Bn)}),(0,ge.T)(Bt=>(this.currentTransition=Re={...Bt,guards:ls(Bt.targetSnapshot,Bt.currentSnapshot,this.rootContexts)},Re)),function Xn(E,b){return(0,Rt.Z)(O=>{const{targetSnapshot:T,currentSnapshot:L,guards:{canActivateChecks:ae,canDeactivateChecks:Re}}=O;return 0===Re.length&&0===ae.length?(0,U.of)({...O,guardsResult:!0}):function wr(E,b,O,T){return(0,Oe.H)(E).pipe((0,Rt.Z)(L=>function _s(E,b,O,T,L){const ae=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!ae||0===ae.length)return(0,U.of)(!0);const Re=ae.map(Pt=>{var fn;const Bt=null!==(fn=Kr(b))&&void 0!==fn?fn:L,Bn=Uo(Pt,Bt);return zt(function N(E){return E&&Fo(E.canDeactivate)}(Bn)?Bn.canDeactivate(E,b,O,T):(0,c.N4e)(Bt,()=>Bn(E,b,O,T))).pipe((0,vn.$)())});return(0,U.of)(Re).pipe(yn())}(L.component,L.route,O,b,T)),(0,vn.$)(L=>!0!==L,!0))}(Re,T,L,E).pipe((0,Rt.Z)(Pt=>Pt&&function io(E){return"boolean"==typeof E}(Pt)?function oo(E,b,O,T){return(0,Oe.H)(b).pipe((0,Nt.H)(L=>(0,Je.x)(function So(E,b){return null!==E&&b&&b(new Ci(E)),(0,U.of)(!0)}(L.route.parent,T),function wo(E,b){return null!==E&&b&&b(new No(E)),(0,U.of)(!0)}(L.route,T),function Fa(E,b,O){const T=b[b.length-1],ae=b.slice(0,b.length-1).reverse().map(Re=>function us(E){const b=E.routeConfig?E.routeConfig.canActivateChild:null;return b&&0!==b.length?{node:E,guards:b}:null}(Re)).filter(Re=>null!==Re).map(Re=>Qe(()=>{const Pt=Re.guards.map(fn=>{var Bt;const Bn=null!==(Bt=Kr(Re.node))&&void 0!==Bt?Bt:O,Vr=Uo(fn,Bn);return zt(function K(E){return E&&Fo(E.canActivateChild)}(Vr)?Vr.canActivateChild(T,E):(0,c.N4e)(Bn,()=>Vr(T,E))).pipe((0,vn.$)())});return(0,U.of)(Pt).pipe(yn())}));return(0,U.of)(ae).pipe(yn())}(E,L.path,O),function Yo(E,b,O){const T=b.routeConfig?b.routeConfig.canActivate:null;if(!T||0===T.length)return(0,U.of)(!0);const L=T.map(ae=>Qe(()=>{var Re;const Pt=null!==(Re=Kr(b))&&void 0!==Re?Re:O,fn=Uo(ae,Pt);return zt(function ll(E){return E&&Fo(E.canActivate)}(fn)?fn.canActivate(b,E):(0,c.N4e)(Pt,()=>fn(b,E))).pipe((0,vn.$)())}));return(0,U.of)(L).pipe(yn())}(E,L.route,O))),(0,vn.$)(L=>!0!==L,!0))}(T,ae,E,b):(0,U.of)(Pt)),(0,ge.T)(Pt=>({...O,guardsResult:Pt})))})}(this.environmentInjector,Bt=>this.events.next(Bt)),(0,tt.M)(Bt=>{if(Re.guardsResult=Bt.guardsResult,dr(Bt.guardsResult))throw qr(0,Bt.guardsResult);const Bn=new mi(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),this.urlSerializer.serialize(Bt.urlAfterRedirects),Bt.targetSnapshot,!!Bt.guardsResult);this.events.next(Bn)}),(0,rt.p)(Bt=>!!Bt.guardsResult||(this.cancelNavigationTransition(Bt,"",Tr.GuardRejected),!1)),Ua(Bt=>{if(Bt.guards.canActivateChecks.length)return(0,U.of)(Bt).pipe((0,tt.M)(Bn=>{const Vr=new Wn(Bn.id,this.urlSerializer.serialize(Bn.extractedUrl),this.urlSerializer.serialize(Bn.urlAfterRedirects),Bn.targetSnapshot);this.events.next(Vr)}),(0,Ue.n)(Bn=>{let Vr=!1;return(0,U.of)(Bn).pipe(function ts(E,b){return(0,Rt.Z)(O=>{const{targetSnapshot:T,guards:{canActivateChecks:L}}=O;if(!L.length)return(0,U.of)(O);const ae=new Set(L.map(fn=>fn.route)),Re=new Set;for(const fn of ae)if(!Re.has(fn))for(const Bt of Lo(fn))Re.add(Bt);let Pt=0;return(0,Oe.H)(Re).pipe((0,Nt.H)(fn=>ae.has(fn)?function Ns(E,b,O,T){const L=E.routeConfig,ae=E._resolve;return void 0!==(null==L?void 0:L.title)&&!wt(L)&&(ae[Ln]=L.title),function Ui(E,b,O,T){const L=ir(E);if(0===L.length)return(0,U.of)({});const ae={};return(0,Oe.H)(L).pipe((0,Rt.Z)(Re=>function ga(E,b,O,T){var L;const ae=null!==(L=Kr(b))&&void 0!==L?L:T,Re=Uo(E,ae);return zt(Re.resolve?Re.resolve(b,O):(0,c.N4e)(ae,()=>Re(b,O)))}(E[Re],b,O,T).pipe((0,vn.$)(),(0,tt.M)(Pt=>{ae[Re]=Pt}))),X(1),(0,Le.u)(ae),on(Re=>G(Re)?Tt.w:ht(Re)))}(ae,E,b,T).pipe((0,ge.T)(Re=>(E._resolvedData=Re,E.data=ot(E,E.parent,O).resolve,null)))}(fn,T,E,b):(fn.data=ot(fn,fn.parent,E).resolve,(0,U.of)(void 0))),(0,tt.M)(()=>Pt++),X(1),(0,Rt.Z)(fn=>Pt===Re.size?(0,U.of)(O):Tt.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,tt.M)({next:()=>Vr=!0,complete:()=>{Vr||this.cancelNavigationTransition(Bn,"",Tr.NoDataFromResolver)}}))}),(0,tt.M)(Bn=>{const Vr=new Hn(Bn.id,this.urlSerializer.serialize(Bn.extractedUrl),this.urlSerializer.serialize(Bn.urlAfterRedirects),Bn.targetSnapshot);this.events.next(Vr)}))}),Ua(Bt=>{const Bn=Vr=>{var $i;const yi=[];null!==($i=Vr.routeConfig)&&void 0!==$i&&$i.loadComponent&&!Vr.routeConfig._loadedComponent&&yi.push(this.configLoader.loadComponent(Vr.routeConfig).pipe((0,tt.M)(Zi=>{Vr.component=Zi}),(0,ge.T)(()=>{})));for(const Zi of Vr.children)yi.push(...Bn(Zi));return yi};return(0,oe.z)(Bn(Bt.targetSnapshot.root)).pipe((0,H.U)(null),(0,Fe.s)(1))}),Ua(()=>this.afterPreactivation()),(0,Ue.n)(()=>{var Bt;const{currentSnapshot:Bn,targetSnapshot:Vr}=Re,$i=null===(Bt=this.createViewTransition)||void 0===Bt?void 0:Bt.call(this,this.environmentInjector,Bn.root,Vr.root);return $i?(0,Oe.H)($i).pipe((0,ge.T)(()=>Re)):(0,U.of)(Re)}),(0,ge.T)(Bt=>{const Bn=function En(E,b,O){const T=Nn(E,b._root,O?O._root:void 0);return new j(T,b)}(T.routeReuseStrategy,Bt.targetSnapshot,Bt.currentRouterState);return this.currentTransition=Re={...Bt,targetRouterState:Bn},this.currentNavigation.targetRouterState=Bn,Re}),(0,tt.M)(()=>{this.events.next(new he)}),((E,b,O,T)=>(0,ge.T)(L=>(new Rs(b,L.targetRouterState,L.currentRouterState,O,T).activate(E),L)))(this.rootContexts,T.routeReuseStrategy,Bt=>this.events.next(Bt),this.inputBindingEnabled),(0,Fe.s)(1),(0,tt.M)({next:Bt=>{var Bn;Pt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new zr(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),this.urlSerializer.serialize(Bt.urlAfterRedirects))),null===(Bn=this.titleStrategy)||void 0===Bn||Bn.updateTitle(Bt.targetRouterState.snapshot),Bt.resolve(!0)},complete:()=>{Pt=!0}}),(0,Wt.Q)(this.transitionAbortSubject.pipe((0,tt.M)(Bt=>{throw Bt}))),(0,_e.j)(()=>{var Bt;!Pt&&!fn&&this.cancelNavigationTransition(Re,"",Tr.SupersededByNewNavigation),(null===(Bt=this.currentTransition)||void 0===Bt?void 0:Bt.id)===Re.id&&(this.currentNavigation=null,this.currentTransition=null)}),on(Bt=>{if(fn=!0,wi(Bt))this.events.next(new Cr(Re.id,this.urlSerializer.serialize(Re.extractedUrl),Bt.message,Bt.cancellationCode)),function br(E){return wi(E)&&dr(E.url)}(Bt)?this.events.next(new le(Bt.url)):Re.resolve(!1);else{var Bn;this.events.next(new li(Re.id,this.urlSerializer.serialize(Re.extractedUrl),Bt,null!==(Bn=Re.targetSnapshot)&&void 0!==Bn?Bn:void 0));try{Re.resolve(T.errorHandler(Bt))}catch(Vr){this.options.resolveNavigationPromiseOnError?Re.resolve(!1):Re.reject(Vr)}}return Tt.w}))}))}cancelNavigationTransition(T,L,ae){const Re=new Cr(T.id,this.urlSerializer.serialize(T.extractedUrl),L,ae);this.events.next(Re),T.resolve(!1)}isUpdatingInternalState(){var T,L;return(null===(T=this.currentTransition)||void 0===T?void 0:T.extractedUrl.toString())!==(null===(L=this.currentTransition)||void 0===L?void 0:L.currentUrlTree.toString())}isUpdatedBrowserUrl(){var T,L;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(T=this.currentTransition)||void 0===T?void 0:T.extractedUrl.toString())&&!(null!==(L=this.currentTransition)&&void 0!==L&&L.extras.skipLocationChange)}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();function Qt(E){return E!==xr}let wn=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(Yn),providedIn:"root"}),b})();class ar{shouldDetach(b){return!1}store(b,O){}shouldAttach(b){return!1}retrieve(b){return null}shouldReuseRoute(b,O){return b.routeConfig===O.routeConfig}}let Yn=(()=>{var E;class b extends ar{}return(E=b).\u0275fac=(()=>{let O;return function(L){return(O||(O=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),pi=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(Xr),providedIn:"root"}),b})(),Xr=(()=>{var E;class b extends pi{constructor(){super(...arguments),this.location=(0,c.WQX)(Ye.aZ),this.urlSerializer=(0,c.WQX)(ur),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,c.WQX)(ya),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Nr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=re(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var T,L;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(T=null===(L=this.restoredState())||void 0===L?void 0:L.\u0275routerPageId)&&void 0!==T?T:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(T){return this.location.subscribe(L=>{"popstate"===L.type&&T(L.url,L.state)})}handleRouterEvent(T,L){if(T instanceof Or)this.stateMemento=this.createStateMemento();else if(T instanceof ai)this.rawUrlTree=L.initialUrl;else if(T instanceof ei){if("eager"===this.urlUpdateStrategy&&!L.extras.skipLocationChange){const ae=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl);this.setBrowserUrl(ae,L)}}else T instanceof he?(this.currentUrlTree=L.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl),this.routerState=L.targetRouterState,"deferred"===this.urlUpdateStrategy&&(L.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,L))):T instanceof Cr&&(T.code===Tr.GuardRejected||T.code===Tr.NoDataFromResolver)?this.restoreHistory(L):T instanceof li?this.restoreHistory(L,!0):T instanceof zr&&(this.lastSuccessfulId=T.id,this.currentPageId=this.browserPageId)}setBrowserUrl(T,L){const ae=this.urlSerializer.serialize(T);if(this.location.isCurrentPathEqualTo(ae)||L.extras.replaceUrl){const Pt={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId)};this.location.replaceState(ae,"",Pt)}else{const Re={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId+1)};this.location.go(ae,"",Re)}}restoreHistory(T,L=!1){if("computed"===this.canceledNavigationResolution){const Re=this.currentPageId-this.browserPageId;0!==Re?this.location.historyGo(Re):this.currentUrlTree===T.finalUrl&&0===Re&&(this.resetState(T),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(L&&this.resetState(T),this.resetUrlToCurrentUrlTree())}resetState(T){var L;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(L=T.finalUrl)&&void 0!==L?L:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(T,L){return"computed"===this.canceledNavigationResolution?{navigationId:T,\u0275routerPageId:L}:{navigationId:T}}}return(E=b).\u0275fac=(()=>{let O;return function(L){return(O||(O=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();var ci=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(ci||{});function ri(E,b){E.events.pipe((0,rt.p)(O=>O instanceof zr||O instanceof Cr||O instanceof li||O instanceof ai),(0,ge.T)(O=>O instanceof zr||O instanceof ai?ci.COMPLETE:O instanceof Cr&&(O.code===Tr.Redirect||O.code===Tr.SupersededByNewNavigation)?ci.REDIRECTING:ci.FAILED),(0,rt.p)(O=>O!==ci.REDIRECTING),(0,Fe.s)(1)).subscribe(()=>{b()})}function Hi(E){throw E}const vi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Kn=(()=>{var E;class b{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var T,L;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,c.WQX)(c.H3F),this.stateManager=(0,c.WQX)(pi),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.pendingTasks=(0,c.WQX)(c.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,c.WQX)(Ke),this.urlSerializer=(0,c.WQX)(ur),this.location=(0,c.WQX)(Ye.aZ),this.urlHandlingStrategy=(0,c.WQX)(ya),this._events=new Me.B,this.errorHandler=this.options.errorHandler||Hi,this.navigated=!1,this.routeReuseStrategy=(0,c.WQX)(wn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(T=null===(L=(0,c.WQX)(va,{optional:!0}))||void 0===L?void 0:L.flat())&&void 0!==T?T:[],this.componentInputBindingEnabled=!!(0,c.WQX)(sn,{optional:!0}),this.eventsSubscription=new St.yU,this.isNgZoneEnabled=(0,c.WQX)(c.SKi)instanceof c.SKi&&c.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:ae=>{this.console.warn(ae)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const T=this.navigationTransitions.events.subscribe(L=>{try{const ae=this.navigationTransitions.currentTransition,Re=this.navigationTransitions.currentNavigation;if(null!==ae&&null!==Re)if(this.stateManager.handleRouterEvent(L,Re),L instanceof Cr&&L.code!==Tr.Redirect&&L.code!==Tr.SupersededByNewNavigation)this.navigated=!0;else if(L instanceof zr)this.navigated=!0;else if(L instanceof le){const Pt=this.urlHandlingStrategy.merge(L.url,ae.currentRawUrl),fn={info:ae.extras.info,skipLocationChange:ae.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Qt(ae.source)};this.scheduleNavigation(Pt,xr,null,fn,{resolve:ae.resolve,reject:ae.reject,promise:ae.promise})}(function qi(E){return!(E instanceof he||E instanceof le)})(L)&&this._events.next(L)}catch(ae){this.navigationTransitions.transitionAbortSubject.next(ae)}});this.eventsSubscription.add(T)}resetRootComponentType(T){this.routerState.root.component=T,this.navigationTransitions.rootComponentType=T}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){var T;null!==(T=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==T||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((L,ae)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(L,"popstate",ae)},0)}))}navigateToSyncWithBrowser(T,L,ae){const Re={replaceUrl:!0},Pt=null!=ae&&ae.navigationId?ae:null;if(ae){const Bt={...ae};delete Bt.navigationId,delete Bt.\u0275routerPageId,0!==Object.keys(Bt).length&&(Re.state=Bt)}const fn=this.parseUrl(T);this.scheduleNavigation(fn,L,Pt,Re)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(T){this.config=T.map(Ss),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(T,L={}){const{relativeTo:ae,queryParams:Re,fragment:Pt,queryParamsHandling:fn,preserveFragment:Bt}=L,Bn=Bt?this.currentUrlTree.fragment:Pt;let $i,Vr=null;switch(fn){case"merge":Vr={...this.currentUrlTree.queryParams,...Re};break;case"preserve":Vr=this.currentUrlTree.queryParams;break;default:Vr=Re||null}null!==Vr&&(Vr=this.removeEmptyProps(Vr));try{$i=Zr(ae?ae.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof T[0]||!T[0].startsWith("/"))&&(T=[]),$i=this.currentUrlTree.root}return fr($i,T,Vr,null!=Bn?Bn:null)}navigateByUrl(T,L={skipLocationChange:!1}){const ae=dr(T)?T:this.parseUrl(T),Re=this.urlHandlingStrategy.merge(ae,this.rawUrlTree);return this.scheduleNavigation(Re,xr,null,L)}navigate(T,L={skipLocationChange:!1}){return function Di(E){for(let b=0;b(null!=Re&&(L[ae]=Re),L),{})}scheduleNavigation(T,L,ae,Re,Pt){if(this.disposed)return Promise.resolve(!1);let fn,Bt,Bn;Pt?(fn=Pt.resolve,Bt=Pt.reject,Bn=Pt.promise):Bn=new Promise(($i,yi)=>{fn=$i,Bt=yi});const Vr=this.pendingTasks.add();return ri(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Vr))}),this.navigationTransitions.handleNavigationRequest({source:L,restoredState:ae,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:T,extras:Re,resolve:fn,reject:Bt,promise:Bn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Bn.catch($i=>Promise.reject($i))}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),Si=(()=>{var E;class b{constructor(T,L,ae,Re,Pt,fn){var Bt;this.router=T,this.route=L,this.tabIndexAttribute=ae,this.renderer=Re,this.el=Pt,this.locationStrategy=fn,this.href=null,this.commands=null,this.onChanges=new Me.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Bn=null===(Bt=Pt.nativeElement.tagName)||void 0===Bt?void 0:Bt.toLowerCase();this.isAnchorElement="a"===Bn||"area"===Bn,this.isAnchorElement?this.subscription=T.events.subscribe(Vr=>{Vr instanceof zr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}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,L,ae,Re,Pt){const fn=this.urlTree;return!!(null===fn||this.isAnchorElement&&(0!==T||L||ae||Re||Pt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(fn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var T;null===(T=this.subscription)||void 0===T||T.unsubscribe()}updateHref(){var T;const L=this.urlTree;this.href=null!==L&&this.locationStrategy?null===(T=this.locationStrategy)||void 0===T?void 0:T.prepareExternalUrl(this.router.serializeUrl(L)):null;const ae=null===this.href?null:(0,c.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ae)}applyAttributeValue(T,L){const ae=this.renderer,Re=this.el.nativeElement;null!==L?ae.setAttribute(Re,T,L):ae.removeAttribute(Re,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(E=b).\u0275fac=function(T){return new(T||E)(c.rXU(Kn),c.rXU(Ie),c.kS0("tabindex"),c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(Ye.hb))},E.\u0275dir=c.FsC({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(T,L){1&T&&c.bIt("click",function(Re){return L.onClick(Re.button,Re.ctrlKey,Re.shiftKey,Re.altKey,Re.metaKey)}),2&T&&c.BMQ("target",L.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[c.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",c.L39],skipLocationChange:[c.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",c.L39],replaceUrl:[c.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",c.L39],routerLink:"routerLink"},standalone:!0,features:[c.GFd,c.OA$]}),b})();class _i{}let Ki=(()=>{var E;class b{preload(T,L){return L().pipe(on(()=>(0,U.of)(null)))}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),Br=(()=>{var E;class b{constructor(T,L,ae,Re,Pt){this.router=T,this.injector=ae,this.preloadingStrategy=Re,this.loader=Pt}setUpPreloading(){this.subscription=this.router.events.pipe((0,rt.p)(T=>T instanceof zr),(0,Nt.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(T,L){const ae=[];for(const Bt of L){var Re,Pt;Bt.providers&&!Bt._injector&&(Bt._injector=(0,c.Ol2)(Bt.providers,T,`Route: ${Bt.path}`));const Bn=null!==(Re=Bt._injector)&&void 0!==Re?Re:T,Vr=null!==(Pt=Bt._loadedInjector)&&void 0!==Pt?Pt:Bn;var fn;(Bt.loadChildren&&!Bt._loadedRoutes&&void 0===Bt.canLoad||Bt.loadComponent&&!Bt._loadedComponent)&&ae.push(this.preloadConfig(Bn,Bt)),(Bt.children||Bt._loadedRoutes)&&ae.push(this.processRoutes(Vr,null!==(fn=Bt.children)&&void 0!==fn?fn:Bt._loadedRoutes))}return(0,Oe.H)(ae).pipe((0,dn.U)())}preloadConfig(T,L){return this.preloadingStrategy.preload(L,()=>{let ae;ae=L.loadChildren&&void 0===L.canLoad?this.loader.loadChildren(T,L):(0,U.of)(null);const Re=ae.pipe((0,Rt.Z)(Pt=>{var fn;return null===Pt?(0,U.of)(void 0):(L._loadedRoutes=Pt.routes,L._loadedInjector=Pt.injector,this.processRoutes(null!==(fn=Pt.injector)&&void 0!==fn?fn:T,Pt.routes))}));if(L.loadComponent&&!L._loadedComponent){const Pt=this.loader.loadComponent(L);return(0,Oe.H)([Re,Pt]).pipe((0,dn.U)())}return Re})}}return(E=b).\u0275fac=function(T){return new(T||E)(c.KVO(Kn),c.KVO(c.Ql9),c.KVO(c.uvJ),c.KVO(_i),c.KVO(_a))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const Xs=new c.nKC("");let vc=(()=>{var E;class b{constructor(T,L,ae,Re,Pt={}){this.urlSerializer=T,this.transitions=L,this.viewportScroller=ae,this.zone=Re,this.options=Pt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,c.WQX)(c.uvJ),Pt.scrollPositionRestoration||(Pt.scrollPositionRestoration="disabled"),Pt.anchorScrolling||(Pt.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 Or?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=T.navigationTrigger,this.restoredId=T.restoredState?T.restoredState.navigationId:0):T instanceof zr?(this.lastId=T.id,this.scheduleScrollEvent(T,this.urlSerializer.parse(T.urlAfterRedirects).fragment)):T instanceof ai&&T.code===Gn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(T,this.urlSerializer.parse(T.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(T=>{T instanceof bt&&(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,L){var ae=this;this.zone.runOutsideAngular((0,h.A)(function*(){yield new Promise(Re=>{setTimeout(()=>{Re()}),(0,c.mal)(()=>{Re()},{injector:ae.environmentInjector})}),ae.zone.run(()=>{ae.transitions.events.next(new bt(T,"popstate"===ae.lastSource?ae.store[ae.restoredId]:null,L))})}))}ngOnDestroy(){var T,L;null===(T=this.routerEventsSubscription)||void 0===T||T.unsubscribe(),null===(L=this.scrollEventsSubscription)||void 0===L||L.unsubscribe()}}return(E=b).\u0275fac=function(T){c.QTQ()},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),b})();function Co(E,b){return{\u0275kind:E,\u0275providers:b}}function Mi(){const E=(0,c.WQX)(c.zZn);return b=>{var O,T;const L=E.get(c.o8S);if(b!==L.components[0])return;const ae=E.get(Kn),Re=E.get(Qs);1===E.get(cs)&&ae.initialNavigation(),null===(O=E.get(Wo,null,c.$GK.Optional))||void 0===O||O.setUpPreloading(),null===(T=E.get(Xs,null,c.$GK.Optional))||void 0===T||T.init(),ae.resetRootComponentType(L.componentTypes[0]),Re.closed||(Re.next(),Re.complete(),Re.unsubscribe())}}const Qs=new c.nKC("",{factory:()=>new Me.B}),cs=new c.nKC("",{providedIn:"root",factory:()=>1}),Wo=new c.nKC("");function pl(E){return Co(0,[{provide:Wo,useExisting:Br},{provide:_i,useExisting:E}])}function Do(E){return Co(9,[{provide:$,useValue:F},{provide:Be,useValue:{skipNextTransition:!(null==E||!E.skipInitialTransition),...E}}])}const rs=new c.nKC("ROUTER_FORROOT_GUARD"),Ys=[Ye.aZ,{provide:ur,useClass:Pr},Kn,Ve,{provide:Ie,useFactory:function Gi(E){return E.routerState.root},deps:[Kn]},_a,[]];let ds=(()=>{var E;class b{constructor(T){}static forRoot(T,L){return{ngModule:b,providers:[Ys,[],{provide:va,multi:!0,useValue:T},{provide:rs,useFactory:Aa,deps:[[Kn,new c.Xx1,new c.kdw]]},{provide:zo,useValue:L||{}},null!=L&&L.useHash?{provide:Ye.hb,useClass:Ye.fw}:{provide:Ye.hb,useClass:Ye.Sm},{provide:Xs,useFactory:()=>{const E=(0,c.WQX)(Ye.Xr),b=(0,c.WQX)(c.SKi),O=(0,c.WQX)(zo),T=(0,c.WQX)(Ke),L=(0,c.WQX)(ur);return O.scrollOffset&&E.setOffset(O.scrollOffset),new vc(L,T,E,b,O)}},null!=L&&L.preloadingStrategy?pl(L.preloadingStrategy).\u0275providers:[],null!=L&&L.initialNavigation?Mu(L):[],null!=L&&L.bindToComponentInputs?Co(8,[cn,{provide:sn,useExisting:cn}]).\u0275providers:[],null!=L&&L.enableViewTransitions?Do().\u0275providers:[],[{provide:Ca,useFactory:Mi},{provide:c.iLQ,multi:!0,useExisting:Ca}]]}}static forChild(T){return{ngModule:b,providers:[{provide:va,multi:!0,useValue:T}]}}}return(E=b).\u0275fac=function(T){return new(T||E)(c.KVO(rs,8))},E.\u0275mod=c.$C({type:E}),E.\u0275inj=c.G2t({}),b})();function Aa(E){return"guarded"}function Mu(E){return["disabled"===E.initialNavigation?Co(3,[{provide:c.hnV,multi:!0,useFactory:()=>{const b=(0,c.WQX)(Kn);return()=>{b.setUpLocationChangeListener()}}},{provide:cs,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?Co(2,[{provide:cs,useValue:0},{provide:c.hnV,multi:!0,deps:[c.zZn],useFactory:b=>{const O=b.get(Ye.hj,Promise.resolve());return()=>O.then(()=>new Promise(T=>{const L=b.get(Kn),ae=b.get(Qs);ri(L,()=>{T(!0)}),b.get(Ke).afterPreactivation=()=>(T(!0),ae.closed?(0,U.of)(void 0):ae),L.initialNavigation()}))}}]).\u0275providers:[]]}const Ca=new c.nKC("")},7852:(Tn,gt,D)=>{"use strict";D.d(gt,{MF:()=>Ai,j6:()=>Dr,xZ:()=>mr,om:()=>Qn,Sx:()=>it,Dk:()=>Mt,Wp:()=>Qr,KO:()=>Ee});var h=D(467),c=D(1362),Z=D(8041),Oe=D(1076);const U=(Ut,ne)=>ne.some(ee=>Ut instanceof ee);let ue,oe;const Se=new WeakMap,De=new WeakMap,Qe=new WeakMap,Ze=new WeakMap,qe=new WeakMap;let St={get(Ut,ne,ee){if(Ut instanceof IDBTransaction){if("done"===ne)return De.get(Ut);if("objectStoreNames"===ne)return Ut.objectStoreNames||Qe.get(Ut);if("store"===ne)return ee.objectStoreNames[1]?void 0:ee.objectStore(ee.objectStoreNames[0])}return mt(Ut[ne])},set:(Ut,ne,ee)=>(Ut[ne]=ee,!0),has:(Ut,ne)=>Ut instanceof IDBTransaction&&("done"===ne||"store"===ne)||ne in Ut};function Et(Ut){return"function"==typeof Ut?function _t(Ut){return Ut!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Je(){return oe||(oe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Ut)?function(...ne){return Ut.apply(Me(this),ne),mt(Se.get(this))}:function(...ne){return mt(Ut.apply(Me(this),ne))}:function(ne,...ee){const je=Ut.call(Me(this),ne,...ee);return Qe.set(je,ne.sort?ne.sort():[ne]),mt(je)}}(Ut):(Ut instanceof IDBTransaction&&function Tt(Ut){if(De.has(Ut))return;const ne=new Promise((ee,je)=>{const M=()=>{Ut.removeEventListener("complete",x),Ut.removeEventListener("error",te),Ut.removeEventListener("abort",te)},x=()=>{ee(),M()},te=()=>{je(Ut.error||new DOMException("AbortError","AbortError")),M()};Ut.addEventListener("complete",x),Ut.addEventListener("error",te),Ut.addEventListener("abort",te)});De.set(Ut,ne)}(Ut),U(Ut,function Xe(){return ue||(ue=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Ut,St):Ut)}function mt(Ut){if(Ut instanceof IDBRequest)return function ht(Ut){const ne=new Promise((ee,je)=>{const M=()=>{Ut.removeEventListener("success",x),Ut.removeEventListener("error",te)},x=()=>{ee(mt(Ut.result)),M()},te=()=>{je(Ut.error),M()};Ut.addEventListener("success",x),Ut.addEventListener("error",te)});return ne.then(ee=>{ee instanceof IDBCursor&&Se.set(ee,Ut)}).catch(()=>{}),qe.set(ne,Ut),ne}(Ut);if(Ze.has(Ut))return Ze.get(Ut);const ne=Et(Ut);return ne!==Ut&&(Ze.set(Ut,ne),qe.set(ne,Ut)),ne}const Me=Ut=>qe.get(Ut),Ue=["get","getKey","getAll","getAllKeys","count"],Fe=["put","add","delete","clear"],xe=new Map;function rt(Ut,ne){if(!(Ut instanceof IDBDatabase)||ne in Ut||"string"!=typeof ne)return;if(xe.get(ne))return xe.get(ne);const ee=ne.replace(/FromIndex$/,""),je=ne!==ee,M=Fe.includes(ee);if(!(ee in(je?IDBIndex:IDBObjectStore).prototype)||!M&&!Ue.includes(ee))return;const x=function(){var te=(0,h.A)(function*(Te,...Ge){const Ct=this.transaction(Te,M?"readwrite":"readonly");let Jt=Ct.store;return je&&(Jt=Jt.index(Ge.shift())),(yield Promise.all([Jt[ee](...Ge),M&&Ct.done]))[0]});return function(Ge){return te.apply(this,arguments)}}();return xe.set(ne,x),x}!function yt(Ut){St=Ut(St)}(Ut=>({...Ut,get:(ne,ee,je)=>rt(ne,ee)||Ut.get(ne,ee,je),has:(ne,ee)=>!!rt(ne,ee)||Ut.has(ne,ee)}));class Rt{constructor(ne){this.container=ne}getPlatformInfoString(){return this.container.getProviders().map(ee=>{if(function vn(Ut){const ne=Ut.getComponent();return"VERSION"===(null==ne?void 0:ne.type)}(ee)){const je=ee.getImmediate();return`${je.library}/${je.version}`}return null}).filter(ee=>ee).join(" ")}}const Nt="@firebase/app",on=new Z.Vy("@firebase/app"),Mn="[DEFAULT]",xn={[Nt]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},mn=new Map,en=new Map,Er=new Map;function Ir(Ut,ne){try{Ut.container.addComponent(ne)}catch(ee){on.debug(`Component ${ne.name} failed to register with FirebaseApp ${Ut.name}`,ee)}}function Qn(Ut){const ne=Ut.name;if(Er.has(ne))return on.debug(`There were multiple attempts to register component ${ne}.`),!1;Er.set(ne,Ut);for(const ee of mn.values())Ir(ee,Ut);for(const ee of en.values())Ir(ee,Ut);return!0}function Dr(Ut,ne){const ee=Ut.container.getProvider("heartbeat").getImmediate({optional:!0});return ee&&ee.triggerHeartbeat(),Ut.container.getProvider(ne)}function mr(Ut){return void 0!==Ut.settings}const cr=new Oe.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class kr{constructor(ne,ee,je){this._isDeleted=!1,this._options=Object.assign({},ne),this._config=Object.assign({},ee),this._name=ee.name,this._automaticDataCollectionEnabled=ee.automaticDataCollectionEnabled,this._container=je,this.container.addComponent(new c.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(ne){this.checkDestroyed(),this._automaticDataCollectionEnabled=ne}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(ne){this._isDeleted=ne}checkDestroyed(){if(this.isDeleted)throw cr.create("app-deleted",{appName:this._name})}}const Ai="10.12.2";function Qr(Ut,ne={}){let ee=Ut;"object"!=typeof ne&&(ne={name:ne});const je=Object.assign({name:Mn,automaticDataCollectionEnabled:!1},ne),M=je.name;if("string"!=typeof M||!M)throw cr.create("bad-app-name",{appName:String(M)});if(ee||(ee=(0,Oe.T9)()),!ee)throw cr.create("no-options");const x=mn.get(M);if(x){if((0,Oe.bD)(ee,x.options)&&(0,Oe.bD)(je,x.config))return x;throw cr.create("duplicate-app",{appName:M})}const te=new c.h1(M);for(const Ge of Er.values())te.addComponent(Ge);const Te=new kr(ee,je,te);return mn.set(M,Te),Te}function it(Ut=Mn){const ne=mn.get(Ut);if(!ne&&Ut===Mn&&(0,Oe.T9)())return Qr();if(!ne)throw cr.create("no-app",{appName:Ut});return ne}function Mt(){return Array.from(mn.values())}function Ee(Ut,ne,ee){var je;let M=null!==(je=xn[Ut])&&void 0!==je?je:Ut;ee&&(M+=`-${ee}`);const x=M.match(/\s|\//),te=ne.match(/\s|\//);if(x||te){const Te=[`Unable to register library "${M}" with version "${ne}":`];return x&&Te.push(`library name "${M}" contains illegal characters (whitespace or "/")`),x&&te&&Te.push("and"),te&&Te.push(`version name "${ne}" contains illegal characters (whitespace or "/")`),void on.warn(Te.join(" "))}Qn(new c.uA(`${M}-version`,()=>({library:M,version:ne}),"VERSION"))}const ie="firebase-heartbeat-database",ct=1,lt="firebase-heartbeat-store";let Gt=null;function tn(){return Gt||(Gt=function Ye(Ut,ne,{blocked:ee,upgrade:je,blocking:M,terminated:x}={}){const te=indexedDB.open(Ut,ne),Te=mt(te);return je&&te.addEventListener("upgradeneeded",Ge=>{je(mt(te.result),Ge.oldVersion,Ge.newVersion,mt(te.transaction),Ge)}),ee&&te.addEventListener("blocked",Ge=>ee(Ge.oldVersion,Ge.newVersion,Ge)),Te.then(Ge=>{x&&Ge.addEventListener("close",()=>x()),M&&Ge.addEventListener("versionchange",Ct=>M(Ct.oldVersion,Ct.newVersion,Ct))}).catch(()=>{}),Te}(ie,ct,{upgrade:(Ut,ne)=>{if(0===ne)try{Ut.createObjectStore(lt)}catch(ee){console.warn(ee)}}}).catch(Ut=>{throw cr.create("idb-open",{originalErrorMessage:Ut.message})})),Gt}function qn(){return(qn=(0,h.A)(function*(Ut){try{const ee=(yield tn()).transaction(lt),je=yield ee.objectStore(lt).get(tr(Ut));return yield ee.done,je}catch(ne){if(ne instanceof Oe.g)on.warn(ne.message);else{const ee=cr.create("idb-get",{originalErrorMessage:null==ne?void 0:ne.message});on.warn(ee.message)}}})).apply(this,arguments)}function hn(Ut,ne){return Cn.apply(this,arguments)}function Cn(){return(Cn=(0,h.A)(function*(Ut,ne){try{const je=(yield tn()).transaction(lt,"readwrite");yield je.objectStore(lt).put(ne,tr(Ut)),yield je.done}catch(ee){if(ee instanceof Oe.g)on.warn(ee.message);else{const je=cr.create("idb-set",{originalErrorMessage:null==ee?void 0:ee.message});on.warn(je.message)}}})).apply(this,arguments)}function tr(Ut){return`${Ut.name}!${Ut.options.appId}`}class $r{constructor(ne){this.container=ne,this._heartbeatsCache=null;const ee=this.container.getProvider("app").getImmediate();this._storage=new Ri(ee),this._heartbeatsCachePromise=this._storage.read().then(je=>(this._heartbeatsCache=je,je))}triggerHeartbeat(){var ne=this;return(0,h.A)(function*(){var ee,je;const x=ne.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),te=Zr();if((null!=(null===(ee=ne._heartbeatsCache)||void 0===ee?void 0:ee.heartbeats)||(ne._heartbeatsCache=yield ne._heartbeatsCachePromise,null!=(null===(je=ne._heartbeatsCache)||void 0===je?void 0:je.heartbeats)))&&ne._heartbeatsCache.lastSentHeartbeatDate!==te&&!ne._heartbeatsCache.heartbeats.some(Te=>Te.date===te))return ne._heartbeatsCache.heartbeats.push({date:te,agent:x}),ne._heartbeatsCache.heartbeats=ne._heartbeatsCache.heartbeats.filter(Te=>{const Ge=new Date(Te.date).valueOf();return Date.now()-Ge<=2592e6}),ne._storage.overwrite(ne._heartbeatsCache)})()}getHeartbeatsHeader(){var ne=this;return(0,h.A)(function*(){var ee;if(null===ne._heartbeatsCache&&(yield ne._heartbeatsCachePromise),null==(null===(ee=ne._heartbeatsCache)||void 0===ee?void 0:ee.heartbeats)||0===ne._heartbeatsCache.heartbeats.length)return"";const je=Zr(),{heartbeatsToSend:M,unsentEntries:x}=function fr(Ut,ne=1024){const ee=[];let je=Ut.slice();for(const M of Ut){const x=ee.find(te=>te.agent===M.agent);if(x){if(x.dates.push(M.date),gi(ee)>ne){x.dates.pop();break}}else if(ee.push({agent:M.agent,dates:[M.date]}),gi(ee)>ne){ee.pop();break}je=je.slice(1)}return{heartbeatsToSend:ee,unsentEntries:je}}(ne._heartbeatsCache.heartbeats),te=(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:M}));return ne._heartbeatsCache.lastSentHeartbeatDate=je,x.length>0?(ne._heartbeatsCache.heartbeats=x,yield ne._storage.overwrite(ne._heartbeatsCache)):(ne._heartbeatsCache.heartbeats=[],ne._storage.overwrite(ne._heartbeatsCache)),te})()}}function Zr(){return(new Date).toISOString().substring(0,10)}class Ri{constructor(ne){this.app=ne,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,h.A)(function*(){return!!(0,Oe.zW)()&&(0,Oe.eX)().then(()=>!0).catch(()=>!1)})()}read(){var ne=this;return(0,h.A)(function*(){if(yield ne._canUseIndexedDBPromise){const je=yield function _n(Ut){return qn.apply(this,arguments)}(ne.app);return null!=je&&je.heartbeats?je:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(ne){var ee=this;return(0,h.A)(function*(){var je;if(yield ee._canUseIndexedDBPromise){const x=yield ee.read();return hn(ee.app,{lastSentHeartbeatDate:null!==(je=ne.lastSentHeartbeatDate)&&void 0!==je?je:x.lastSentHeartbeatDate,heartbeats:ne.heartbeats})}})()}add(ne){var ee=this;return(0,h.A)(function*(){var je;if(yield ee._canUseIndexedDBPromise){const x=yield ee.read();return hn(ee.app,{lastSentHeartbeatDate:null!==(je=ne.lastSentHeartbeatDate)&&void 0!==je?je:x.lastSentHeartbeatDate,heartbeats:[...x.heartbeats,...ne.heartbeats]})}})()}}function gi(Ut){return(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:Ut})).length}!function pr(Ut){Qn(new c.uA("platform-logger",ne=>new Rt(ne),"PRIVATE")),Qn(new c.uA("heartbeat",ne=>new $r(ne),"PRIVATE")),Ee(Nt,"0.10.5",Ut),Ee(Nt,"0.10.5","esm2017"),Ee("fire-js","")}("")},1362:(Tn,gt,D)=>{"use strict";D.d(gt,{h1:()=>Xe,uA:()=>Z});var h=D(467),c=D(1076);class Z{constructor(Se,De,Qe){this.name=Se,this.instanceFactory=De,this.type=Qe,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(Se){return this.instantiationMode=Se,this}setMultipleInstances(Se){return this.multipleInstances=Se,this}setServiceProps(Se){return this.serviceProps=Se,this}setInstanceCreatedCallback(Se){return this.onInstanceCreated=Se,this}}const Oe="[DEFAULT]";class U{constructor(Se,De){this.name=Se,this.container=De,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(Se){const De=this.normalizeInstanceIdentifier(Se);if(!this.instancesDeferred.has(De)){const Qe=new c.cY;if(this.instancesDeferred.set(De,Qe),this.isInitialized(De)||this.shouldAutoInitialize())try{const Ze=this.getOrInitializeService({instanceIdentifier:De});Ze&&Qe.resolve(Ze)}catch{}}return this.instancesDeferred.get(De).promise}getImmediate(Se){var De;const Qe=this.normalizeInstanceIdentifier(null==Se?void 0:Se.identifier),Ze=null!==(De=null==Se?void 0:Se.optional)&&void 0!==De&&De;if(!this.isInitialized(Qe)&&!this.shouldAutoInitialize()){if(Ze)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Qe})}catch(qe){if(Ze)return null;throw qe}}getComponent(){return this.component}setComponent(Se){if(Se.name!==this.name)throw Error(`Mismatching Component ${Se.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=Se,this.shouldAutoInitialize()){if(function oe(Je){return"EAGER"===Je.instantiationMode}(Se))try{this.getOrInitializeService({instanceIdentifier:Oe})}catch{}for(const[De,Qe]of this.instancesDeferred.entries()){const Ze=this.normalizeInstanceIdentifier(De);try{const qe=this.getOrInitializeService({instanceIdentifier:Ze});Qe.resolve(qe)}catch{}}}}clearInstance(Se=Oe){this.instancesDeferred.delete(Se),this.instancesOptions.delete(Se),this.instances.delete(Se)}delete(){var Se=this;return(0,h.A)(function*(){const De=Array.from(Se.instances.values());yield Promise.all([...De.filter(Qe=>"INTERNAL"in Qe).map(Qe=>Qe.INTERNAL.delete()),...De.filter(Qe=>"_delete"in Qe).map(Qe=>Qe._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(Se=Oe){return this.instances.has(Se)}getOptions(Se=Oe){return this.instancesOptions.get(Se)||{}}initialize(Se={}){const{options:De={}}=Se,Qe=this.normalizeInstanceIdentifier(Se.instanceIdentifier);if(this.isInitialized(Qe))throw Error(`${this.name}(${Qe}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Ze=this.getOrInitializeService({instanceIdentifier:Qe,options:De});for(const[qe,ht]of this.instancesDeferred.entries())Qe===this.normalizeInstanceIdentifier(qe)&&ht.resolve(Ze);return Ze}onInit(Se,De){var Qe;const Ze=this.normalizeInstanceIdentifier(De),qe=null!==(Qe=this.onInitCallbacks.get(Ze))&&void 0!==Qe?Qe:new Set;qe.add(Se),this.onInitCallbacks.set(Ze,qe);const ht=this.instances.get(Ze);return ht&&Se(ht,Ze),()=>{qe.delete(Se)}}invokeOnInitCallbacks(Se,De){const Qe=this.onInitCallbacks.get(De);if(Qe)for(const Ze of Qe)try{Ze(Se,De)}catch{}}getOrInitializeService({instanceIdentifier:Se,options:De={}}){let Qe=this.instances.get(Se);if(!Qe&&this.component&&(Qe=this.component.instanceFactory(this.container,{instanceIdentifier:(Je=Se,Je===Oe?void 0:Je),options:De}),this.instances.set(Se,Qe),this.instancesOptions.set(Se,De),this.invokeOnInitCallbacks(Qe,Se),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,Se,Qe)}catch{}var Je;return Qe||null}normalizeInstanceIdentifier(Se=Oe){return this.component?this.component.multipleInstances?Se:Oe:Se}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Xe{constructor(Se){this.name=Se,this.providers=new Map}addComponent(Se){const De=this.getProvider(Se.name);if(De.isComponentSet())throw new Error(`Component ${Se.name} has already been registered with ${this.name}`);De.setComponent(Se)}addOrOverwriteComponent(Se){this.getProvider(Se.name).isComponentSet()&&this.providers.delete(Se.name),this.addComponent(Se)}getProvider(Se){if(this.providers.has(Se))return this.providers.get(Se);const De=new U(Se,this);return this.providers.set(Se,De),De}getProviders(){return Array.from(this.providers.values())}}},8041:(Tn,gt,D)=>{"use strict";D.d(gt,{$b:()=>c,Vy:()=>oe});const h=[];var c=function(Se){return Se[Se.DEBUG=0]="DEBUG",Se[Se.VERBOSE=1]="VERBOSE",Se[Se.INFO=2]="INFO",Se[Se.WARN=3]="WARN",Se[Se.ERROR=4]="ERROR",Se[Se.SILENT=5]="SILENT",Se}(c||{});const Z={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},Oe=c.INFO,U={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},ue=(Se,De,...Qe)=>{if(De{"use strict";D.d(gt,{Yq:()=>nt,TS:()=>er,sR:()=>yr,el:()=>tn,Sb:()=>mr,QE:()=>tr,CF:()=>Dr,Rg:()=>Ee,p4:()=>Ar,jM:()=>pr,_t:()=>ve,q9:()=>rn,Kb:()=>Ut,CE:()=>_n,pF:()=>qn,fL:()=>$r,YV:()=>ct,er:()=>dr,z3:()=>Zr});var h=D(467),c=D(9842),Z=D(4438),Oe=D(7650),U=D(177),ue=D(5531),oe=D(4442);var Rt=D(1413),vn=D(3726),Nt=D(4412),tt=D(4572),on=D(7673),dt=D(1635),we=D(5964),H=D(5558),X=D(3294),fe=D(4341);const se=["tabsInner"];class ve{constructor(ee){(0,c.A)(this,"menuController",void 0),this.menuController=ee}open(ee){return this.menuController.open(ee)}close(ee){return this.menuController.close(ee)}toggle(ee){return this.menuController.toggle(ee)}enable(ee,je){return this.menuController.enable(ee,je)}swipeGesture(ee,je){return this.menuController.swipeGesture(ee,je)}isOpen(ee){return this.menuController.isOpen(ee)}isEnabled(ee){return this.menuController.isEnabled(ee)}get(ee){return this.menuController.get(ee)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(ee,je){return this.menuController.registerAnimation(ee,je)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(ee,je){return this.menuController._createAnimation(ee,je)}_register(ee){return this.menuController._register(ee)}_unregister(ee){return this.menuController._unregister(ee)}_setOpen(ee,je,M){return this.menuController._setOpen(ee,je,M)}}let Wt=(()=>{var ne;class ee{constructor(M,x){(0,c.A)(this,"doc",void 0),(0,c.A)(this,"_readyPromise",void 0),(0,c.A)(this,"win",void 0),(0,c.A)(this,"backButton",new Rt.B),(0,c.A)(this,"keyboardDidShow",new Rt.B),(0,c.A)(this,"keyboardDidHide",new Rt.B),(0,c.A)(this,"pause",new Rt.B),(0,c.A)(this,"resume",new Rt.B),(0,c.A)(this,"resize",new Rt.B),this.doc=M,x.run(()=>{var te;let Te;this.win=M.defaultView,this.backButton.subscribeWithPriority=function(Ge,Ct){return this.subscribe(Jt=>Jt.register(Ge,ln=>x.run(()=>Ct(ln))))},Kt(this.pause,M,"pause",x),Kt(this.resume,M,"resume",x),Kt(this.backButton,M,"ionBackButton",x),Kt(this.resize,this.win,"resize",x),Kt(this.keyboardDidShow,this.win,"ionKeyboardDidShow",x),Kt(this.keyboardDidHide,this.win,"ionKeyboardDidHide",x),this._readyPromise=new Promise(Ge=>{Te=Ge}),null!==(te=this.win)&&void 0!==te&&te.cordova?M.addEventListener("deviceready",()=>{Te("cordova")},{once:!0}):Te("dom")})}is(M){return(0,ue.a)(this.win,M)}platforms(){return(0,ue.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(M){return dn(this.win.location.href,M)}isLandscape(){return!this.isPortrait()}isPortrait(){var M,x;return null===(M=(x=this.win).matchMedia)||void 0===M?void 0:M.call(x,"(orientation: portrait)").matches}testUserAgent(M){const x=this.win.navigator;return!!(null!=x&&x.userAgent&&x.userAgent.indexOf(M)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.KVO(U.qQ),Z.KVO(Z.SKi))}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})),ee})();const dn=(ne,ee)=>{ee=ee.replace(/[[\]\\]/g,"\\$&");const M=new RegExp("[\\?&]"+ee+"=([^&#]*)").exec(ne);return M?decodeURIComponent(M[1].replace(/\+/g," ")):null},Kt=(ne,ee,je,M)=>{ee&&ee.addEventListener(je,x=>{M.run(()=>{ne.next(null!=x?x.detail:void 0)})})};let rn=(()=>{var ne;class ee{constructor(M,x,te,Te){(0,c.A)(this,"location",void 0),(0,c.A)(this,"serializer",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"topOutlet",void 0),(0,c.A)(this,"direction",Zn),(0,c.A)(this,"animated",nr),(0,c.A)(this,"animationBuilder",void 0),(0,c.A)(this,"guessDirection","forward"),(0,c.A)(this,"guessAnimation",void 0),(0,c.A)(this,"lastNavId",-1),this.location=x,this.serializer=te,this.router=Te,Te&&Te.events.subscribe(Ge=>{if(Ge instanceof Oe.Z){const Ct=Ge.restoredState?Ge.restoredState.navigationId:Ge.id;this.guessDirection=this.guessAnimation=Ct{this.pop(),Ge()})}navigateForward(M,x={}){return this.setDirection("forward",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}navigateBack(M,x={}){return this.setDirection("back",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}navigateRoot(M,x={}){return this.setDirection("root",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}back(M={animated:!0,animationDirection:"back"}){return this.setDirection("back",M.animated,M.animationDirection,M.animation),this.location.back()}pop(){var M=this;return(0,h.A)(function*(){let x=M.topOutlet;for(;x;){if(yield x.pop())return!0;x=x.parentOutlet}return!1})()}setDirection(M,x,te,Te){this.direction=M,this.animated=Ln(M,x,te),this.animationBuilder=Te}setTopOutlet(M){this.topOutlet=M}consumeTransition(){let x,M="root";const te=this.animationBuilder;return"auto"===this.direction?(M=this.guessDirection,x=this.guessAnimation):(x=this.animated,M=this.direction),this.direction=Zn,this.animated=nr,this.animationBuilder=void 0,{direction:M,animation:x,animationBuilder:te}}navigate(M,x){if(Array.isArray(M))return this.router.navigate(M,x);{const te=this.serializer.parse(M.toString());return void 0!==x.queryParams&&(te.queryParams={...x.queryParams}),void 0!==x.fragment&&(te.fragment=x.fragment),this.router.navigateByUrl(te,x)}}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.KVO(Wt),Z.KVO(U.aZ),Z.KVO(Oe.Sd),Z.KVO(Oe.Ix,8))}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})),ee})();const Ln=(ne,ee,je)=>{if(!1!==ee){if(void 0!==je)return je;if("forward"===ne||"back"===ne)return ne;if("root"===ne&&!0===ee)return"forward"}},Zn="auto",nr=void 0;let er=(()=>{var ne;class ee{get(M,x){const te=rr();return te?te.get(M,x):null}getBoolean(M,x){const te=rr();return!!te&&te.getBoolean(M,x)}getNumber(M,x){const te=rr();return te?te.getNumber(M,x):0}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})),ee})();const yr=new Z.nKC("USERCONFIG"),rr=()=>{if(typeof window<"u"){const ne=window.Ionic;if(null!=ne&&ne.config)return ne.config}return null};class ir{constructor(ee={}){(0,c.A)(this,"data",void 0),this.data=ee,console.warn("[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.")}get(ee){return this.data[ee]}}let nt=(()=>{var ne;class ee{constructor(){(0,c.A)(this,"zone",(0,Z.WQX)(Z.SKi)),(0,c.A)(this,"applicationRef",(0,Z.WQX)(Z.o8S)),(0,c.A)(this,"config",(0,Z.WQX)(yr))}create(M,x,te){var Te;return new Ot(M,x,this.applicationRef,this.zone,te,null!==(Te=this.config.useSetInputAPI)&&void 0!==Te&&Te)}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac})),ee})();class Ot{constructor(ee,je,M,x,te,Te){(0,c.A)(this,"environmentInjector",void 0),(0,c.A)(this,"injector",void 0),(0,c.A)(this,"applicationRef",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"elementReferenceKey",void 0),(0,c.A)(this,"enableSignalsSupport",void 0),(0,c.A)(this,"elRefMap",new WeakMap),(0,c.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=ee,this.injector=je,this.applicationRef=M,this.zone=x,this.elementReferenceKey=te,this.enableSignalsSupport=Te}attachViewToDom(ee,je,M,x){return this.zone.run(()=>new Promise(te=>{const Te={...M};void 0!==this.elementReferenceKey&&(Te[this.elementReferenceKey]=ee),te(zt(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,ee,je,Te,x,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(ee,je){return this.zone.run(()=>new Promise(M=>{const x=this.elRefMap.get(je);if(x){x.destroy(),this.elRefMap.delete(je);const te=this.elEventsMap.get(je);te&&(te(),this.elEventsMap.delete(je))}M()}))}}const zt=(ne,ee,je,M,x,te,Te,Ge,Ct,Jt,ln,or)=>{const Un=Z.zZn.create({providers:Mn(Ct),parent:je}),xr=(0,Z.a0P)(Ge,{environmentInjector:ee,elementInjector:Un}),On=xr.instance,Fr=xr.location.nativeElement;if(Ct)if(ln&&void 0!==On[ln]&&console.error(`[Ionic Error]: ${ln} is a reserved property when using ${Te.tagName.toLowerCase()}. Rename or remove the "${ln}" property from ${Ge.name}.`),!0===or&&void 0!==xr.setInput){const{modal:zr,popover:Tr,...Gn}=Ct;for(const Cr in Gn)xr.setInput(Cr,Gn[Cr]);void 0!==zr&&Object.assign(On,{modal:zr}),void 0!==Tr&&Object.assign(On,{popover:Tr})}else Object.assign(On,Ct);if(Jt)for(const zr of Jt)Fr.classList.add(zr);const Or=gn(ne,On,Fr);return Te.appendChild(Fr),M.attachView(xr.hostView),x.set(Fr,xr),te.set(Fr,Or),Fr},pn=[oe.L,oe.a,oe.b,oe.c,oe.d],gn=(ne,ee,je)=>ne.run(()=>{const M=pn.filter(x=>"function"==typeof ee[x]).map(x=>{const te=Te=>ee[x](Te.detail);return je.addEventListener(x,te),()=>je.removeEventListener(x,te)});return()=>M.forEach(x=>x())}),Sr=new Z.nKC("NavParamsToken"),Mn=ne=>[{provide:Sr,useValue:ne},{provide:ir,useFactory:xn,deps:[Sr]}],xn=ne=>new ir(ne),mn=(ne,ee)=>{const je=ne.prototype;ee.forEach(M=>{Object.defineProperty(je,M,{get(){return this.el[M]},set(x){this.z.runOutsideAngular(()=>this.el[M]=x)}})})},en=(ne,ee)=>{const je=ne.prototype;ee.forEach(M=>{je[M]=function(){const x=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,x))}})},Er=(ne,ee,je)=>{je.forEach(M=>ne[M]=(0,vn.R)(ee,M))};function Ir(ne){return function(je){const{defineCustomElementFn:M,inputs:x,methods:te}=ne;return void 0!==M&&M(),x&&mn(je,x),te&&en(je,te),je}}const Nr=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Qn=["present","dismiss","onDidDismiss","onWillDismiss"];let Dr=(()=>{var ne;let ee=((0,c.A)(ne=class{constructor(M,x,te){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=te,this.el=x.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),Er(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||ne)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(ne,"\u0275dir",Z.FsC({type:ne,selectors:[["ion-popover"]],contentQueries:function(M,x,te){if(1&M&&Z.wni(te,Z.C4Q,5),2&M){let Te;Z.mGM(Te=Z.lsd())&&(x.template=Te.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}})),ne);return ee=(0,dt.Cg)([Ir({inputs:Nr,methods:Qn})],ee),ee})();const Jn=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],Jr=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let mr=(()=>{var ne;let ee=((0,c.A)(ne=class{constructor(M,x,te){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=te,this.el=x.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),Er(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||ne)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(ne,"\u0275dir",Z.FsC({type:ne,selectors:[["ion-modal"]],contentQueries:function(M,x,te){if(1&M&&Z.wni(te,Z.C4Q,5),2&M){let Te;Z.mGM(Te=Z.lsd())&&(x.template=Te.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}})),ne);return ee=(0,dt.Cg)([Ir({inputs:Jn,methods:Jr})],ee),ee})();const Pr=(ne,ee)=>((ne=ne.filter(je=>je.stackId!==ee.stackId)).push(ee),ne),ii=(ne,ee)=>{const je=ne.createUrlTree(["."],{relativeTo:ee});return ne.serializeUrl(je)},Ai=(ne,ee)=>!ee||ne.stackId!==ee.stackId,Qr=(ne,ee)=>{if(!ne)return;const je=pe(ee);for(let M=0;M=ne.length)return je[M];if(je[M]!==ne[M])return}},pe=ne=>ne.split("/").map(ee=>ee.trim()).filter(ee=>""!==ee),it=ne=>{ne&&(ne.ref.destroy(),ne.unlistenEvents())};class Mt{constructor(ee,je,M,x,te,Te){(0,c.A)(this,"containerEl",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"location",void 0),(0,c.A)(this,"views",[]),(0,c.A)(this,"runningTask",void 0),(0,c.A)(this,"skipTransition",!1),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"activeView",void 0),(0,c.A)(this,"nextId",0),this.containerEl=je,this.router=M,this.navCtrl=x,this.zone=te,this.location=Te,this.tabsPrefix=void 0!==ee?pe(ee):void 0}createView(ee,je){var M;const x=ii(this.router,je),te=null==ee||null===(M=ee.location)||void 0===M?void 0:M.nativeElement,Te=gn(this.zone,ee.instance,te);return{id:this.nextId++,stackId:Qr(this.tabsPrefix,x),unlistenEvents:Te,element:te,ref:ee,url:x}}getExistingView(ee){const je=ii(this.router,ee),M=this.views.find(x=>x.url===je);return M&&M.ref.changeDetectorRef.reattach(),M}setActive(ee){var je,M;const x=this.navCtrl.consumeTransition();let{direction:te,animation:Te,animationBuilder:Ge}=x;const Ct=this.activeView,Jt=Ai(ee,Ct);Jt&&(te="back",Te=void 0);const ln=this.views.slice();let or;const Un=this.router;Un.getCurrentNavigation?or=Un.getCurrentNavigation():null!==(je=Un.navigations)&&void 0!==je&&je.value&&(or=Un.navigations.value),null!==(M=or)&&void 0!==M&&null!==(M=M.extras)&&void 0!==M&&M.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const xr=this.views.includes(ee),On=this.insertView(ee,te);xr||ee.ref.changeDetectorRef.detectChanges();const Fr=ee.animationBuilder;return void 0===Ge&&"back"===te&&!Jt&&void 0!==Fr&&(Ge=Fr),Ct&&(Ct.animationBuilder=Ge),this.zone.runOutsideAngular(()=>this.wait(()=>(Ct&&Ct.ref.changeDetectorRef.detach(),ee.ref.changeDetectorRef.reattach(),this.transition(ee,Ct,Te,this.canGoBack(1),!1,Ge).then(()=>ut(ee,On,ln,this.location,this.zone)).then(()=>({enteringView:ee,direction:te,animation:Te,tabSwitch:Jt})))))}canGoBack(ee,je=this.getActiveStackId()){return this.getStack(je).length>ee}pop(ee,je=this.getActiveStackId()){return this.zone.run(()=>{const M=this.getStack(je);if(M.length<=ee)return Promise.resolve(!1);const x=M[M.length-ee-1];let te=x.url;const Te=x.savedData;if(Te){var Ge;const Jt=Te.get("primary");null!=Jt&&null!==(Ge=Jt.route)&&void 0!==Ge&&null!==(Ge=Ge._routerState)&&void 0!==Ge&&Ge.snapshot.url&&(te=Jt.route._routerState.snapshot.url)}const{animationBuilder:Ct}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(te,{...x.savedExtras,animation:Ct}).then(()=>!0)})}startBackTransition(){const ee=this.activeView;if(ee){const je=this.getStack(ee.stackId),M=je[je.length-2],x=M.animationBuilder;return this.wait(()=>this.transition(M,ee,"back",this.canGoBack(2),!0,x))}return Promise.resolve()}endBackTransition(ee){ee?(this.skipTransition=!0,this.pop(1)):this.activeView&&ce(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(ee){const je=this.getStack(ee);return je.length>0?je[je.length-1]:void 0}getRootUrl(ee){const je=this.getStack(ee);return je.length>0?je[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(it),this.activeView=void 0,this.views=[]}getStack(ee){return this.views.filter(je=>je.stackId===ee)}insertView(ee,je){return this.activeView=ee,this.views=((ne,ee,je)=>"root"===je?Pr(ne,ee):"forward"===je?((ne,ee)=>(ne.indexOf(ee)>=0?ne=ne.filter(M=>M.stackId!==ee.stackId||M.id<=ee.id):ne.push(ee),ne))(ne,ee):((ne,ee)=>ne.indexOf(ee)>=0?ne.filter(M=>M.stackId!==ee.stackId||M.id<=ee.id):Pr(ne,ee))(ne,ee))(this.views,ee,je),this.views.slice()}transition(ee,je,M,x,te,Te){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(je===ee)return Promise.resolve(!1);const Ge=ee?ee.element:void 0,Ct=je?je.element:void 0,Jt=this.containerEl;return Ge&&Ge!==Ct&&(Ge.classList.add("ion-page"),Ge.classList.add("ion-page-invisible"),Jt.commit)?Jt.commit(Ge,Ct,{duration:void 0===M?0:void 0,direction:M,showGoBack:x,progressAnimation:te,animationBuilder:Te}):Promise.resolve(!1)}wait(ee){var je=this;return(0,h.A)(function*(){void 0!==je.runningTask&&(yield je.runningTask,je.runningTask=void 0);const M=je.runningTask=ee();return M.finally(()=>je.runningTask=void 0),M})()}}const ut=(ne,ee,je,M,x)=>"function"==typeof requestAnimationFrame?new Promise(te=>{requestAnimationFrame(()=>{ce(ne,ee,je,M,x),te()})}):Promise.resolve(),ce=(ne,ee,je,M,x)=>{x.run(()=>je.filter(te=>!ee.includes(te)).forEach(it)),ee.forEach(te=>{const Ge=M.path().split("?")[0].split("#")[0];if(te!==ne&&te.url!==Ge){const Ct=te.element;Ct.setAttribute("aria-hidden","true"),Ct.classList.add("ion-page-hidden"),te.ref.changeDetectorRef.detach()}})};let Ee=(()=>{var ne;class ee{get activatedComponentRef(){return this.activated}set animation(M){this.nativeEl.animation=M}set animated(M){this.nativeEl.animated=M}set swipeGesture(M){this._swipeGesture=M,this.nativeEl.swipeHandler=M?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:x=>this.stackCtrl.endBackTransition(x)}:void 0}constructor(M,x,te,Te,Ge,Ct,Jt,ln){(0,c.A)(this,"parentOutlet",void 0),(0,c.A)(this,"nativeEl",void 0),(0,c.A)(this,"activatedView",null),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"_swipeGesture",void 0),(0,c.A)(this,"stackCtrl",void 0),(0,c.A)(this,"proxyMap",new WeakMap),(0,c.A)(this,"currentActivatedRoute$",new Nt.t(null)),(0,c.A)(this,"activated",null),(0,c.A)(this,"_activatedRoute",null),(0,c.A)(this,"name",Oe.Xk),(0,c.A)(this,"stackWillChange",new Z.bkB),(0,c.A)(this,"stackDidChange",new Z.bkB),(0,c.A)(this,"activateEvents",new Z.bkB),(0,c.A)(this,"deactivateEvents",new Z.bkB),(0,c.A)(this,"parentContexts",(0,Z.WQX)(Oe.Zp)),(0,c.A)(this,"location",(0,Z.WQX)(Z.c1b)),(0,c.A)(this,"environmentInjector",(0,Z.WQX)(Z.uvJ)),(0,c.A)(this,"inputBinder",(0,Z.WQX)(Lt,{optional:!0})),(0,c.A)(this,"supportsBindingToComponentInputs",!0),(0,c.A)(this,"config",(0,Z.WQX)(er)),(0,c.A)(this,"navCtrl",(0,Z.WQX)(rn)),this.parentOutlet=ln,this.nativeEl=Te.nativeElement,this.name=M||Oe.Xk,this.tabsPrefix="true"===x?ii(Ge,Jt):void 0,this.stackCtrl=new Mt(this.tabsPrefix,this.nativeEl,Ge,this.navCtrl,Ct,te),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var M;this.stackCtrl.destroy(),null===(M=this.inputBinder)||void 0===M||M.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const M=this.getContext();null!=M&&M.route&&this.activateWith(M.route,M.injector)}new Promise(M=>((ne,ee)=>{ne.componentOnReady?ne.componentOnReady().then(je=>ee(je)):(ne=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ne):"function"==typeof requestAnimationFrame?requestAnimationFrame(ne):setTimeout(ne)})(()=>ee(ne))})(this.nativeEl,M)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(M,x){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const x=this.getContext();this.activatedView.savedData=new Map(x.children.contexts);const te=this.activatedView.savedData.get("primary");if(te&&x.route&&(te.route={...x.route}),this.activatedView.savedExtras={},x.route){const Te=x.route.snapshot;this.activatedView.savedExtras.queryParams=Te.queryParams,this.activatedView.savedExtras.fragment=Te.fragment}}const M=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(M)}}activateWith(M,x){var te;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=M;let Te,Ge=this.stackCtrl.getExistingView(M);if(Ge){Te=this.activated=Ge.ref;const ln=Ge.savedData;ln&&(this.getContext().children.contexts=ln),this.updateActivatedRouteProxy(Te.instance,M)}else{var Ct;const ln=M._futureSnapshot,or=this.parentContexts.getOrCreateContext(this.name).children,Un=new Nt.t(null),xr=this.createActivatedRouteProxy(Un,M),On=new He(xr,or,this.location.injector),Fr=null!==(Ct=ln.routeConfig.component)&&void 0!==Ct?Ct:ln.component;Te=this.activated=this.outletContent.createComponent(Fr,{index:this.outletContent.length,injector:On,environmentInjector:null!=x?x:this.environmentInjector}),Un.next(Te.instance),Ge=this.stackCtrl.createView(this.activated,M),this.proxyMap.set(Te.instance,xr),this.currentActivatedRoute$.next({component:Te.instance,activatedRoute:M})}null===(te=this.inputBinder)||void 0===te||te.bindActivatedRouteToOutletComponent(this),this.activatedView=Ge,this.navCtrl.setTopOutlet(this);const Jt=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:Ge,tabSwitch:Ai(Ge,Jt)}),this.stackCtrl.setActive(Ge).then(ln=>{this.activateEvents.emit(Te.instance),this.stackDidChange.emit(ln)})}canGoBack(M=1,x){return this.stackCtrl.canGoBack(M,x)}pop(M=1,x){return this.stackCtrl.pop(M,x)}getLastUrl(M){const x=this.stackCtrl.getLastUrl(M);return x?x.url:void 0}getLastRouteView(M){return this.stackCtrl.getLastUrl(M)}getRootView(M){return this.stackCtrl.getRootUrl(M)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(M,x){const te=new Oe.nX;return te._futureSnapshot=x._futureSnapshot,te._routerState=x._routerState,te.snapshot=x.snapshot,te.outlet=x.outlet,te.component=x.component,te._paramMap=this.proxyObservable(M,"paramMap"),te._queryParamMap=this.proxyObservable(M,"queryParamMap"),te.url=this.proxyObservable(M,"url"),te.params=this.proxyObservable(M,"params"),te.queryParams=this.proxyObservable(M,"queryParams"),te.fragment=this.proxyObservable(M,"fragment"),te.data=this.proxyObservable(M,"data"),te}proxyObservable(M,x){return M.pipe((0,we.p)(te=>!!te),(0,H.n)(te=>this.currentActivatedRoute$.pipe((0,we.p)(Te=>null!==Te&&Te.component===te),(0,H.n)(Te=>Te&&Te.activatedRoute[x]),(0,X.F)())))}updateActivatedRouteProxy(M,x){const te=this.proxyMap.get(M);if(!te)throw new Error("Could not find activated route proxy for view");te._futureSnapshot=x._futureSnapshot,te._routerState=x._routerState,te.snapshot=x.snapshot,te.outlet=x.outlet,te.component=x.component,this.currentActivatedRoute$.next({component:M,activatedRoute:x})}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.kS0("name"),Z.kS0("tabs"),Z.rXU(U.aZ),Z.rXU(Z.aKT),Z.rXU(Oe.Ix),Z.rXU(Z.SKi),Z.rXU(Oe.nX),Z.rXU(ne,12))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]})),ee})();class He{constructor(ee,je,M){(0,c.A)(this,"route",void 0),(0,c.A)(this,"childContexts",void 0),(0,c.A)(this,"parent",void 0),this.route=ee,this.childContexts=je,this.parent=M}get(ee,je){return ee===Oe.nX?this.route:ee===Oe.Zp?this.childContexts:this.parent.get(ee,je)}}const Lt=new Z.nKC("");let ie=(()=>{var ne;class ee{constructor(){(0,c.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(M){this.unsubscribeFromRouteData(M),this.subscribeToRouteData(M)}unsubscribeFromRouteData(M){var x;null===(x=this.outletDataSubscriptions.get(M))||void 0===x||x.unsubscribe(),this.outletDataSubscriptions.delete(M)}subscribeToRouteData(M){const{activatedRoute:x}=M,te=(0,tt.z)([x.queryParams,x.params,x.data]).pipe((0,H.n)(([Te,Ge,Ct],Jt)=>(Ct={...Te,...Ge,...Ct},0===Jt?(0,on.of)(Ct):Promise.resolve(Ct)))).subscribe(Te=>{if(!M.isActivated||!M.activatedComponentRef||M.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(M);const Ge=(0,Z.HJs)(x.component);if(Ge)for(const{templateName:Ct}of Ge.inputs)M.activatedComponentRef.setInput(Ct,Te[Ct]);else this.unsubscribeFromRouteData(M)});this.outletDataSubscriptions.set(M,te)}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac})),ee})();const ct=()=>({provide:Lt,useFactory:lt,deps:[Oe.Ix]});function lt(ne){return null!=ne&&ne.componentInputBindingEnabled?new ie:null}const Gt=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let tn=(()=>{var ne;let ee=((0,c.A)(ne=class{constructor(M,x,te,Te,Ge,Ct){(0,c.A)(this,"routerOutlet",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"config",void 0),(0,c.A)(this,"r",void 0),(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.routerOutlet=M,this.navCtrl=x,this.config=te,this.r=Te,this.z=Ge,Ct.detach(),this.el=this.r.nativeElement}onClick(M){var x;const te=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(x=this.routerOutlet)&&void 0!==x&&x.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),M.preventDefault()):null!=te&&(this.navCtrl.navigateBack(te,{animation:this.routerAnimation}),M.preventDefault())}},"\u0275fac",function(M){return new(M||ne)(Z.rXU(Ee,8),Z.rXU(rn),Z.rXU(er),Z.rXU(Z.aKT),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(ne,"\u0275dir",Z.FsC({type:ne,hostBindings:function(M,x){1&M&&Z.bIt("click",function(Te){return x.onClick(Te)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),ne);return ee=(0,dt.Cg)([Ir({inputs:Gt})],ee),ee})(),_n=(()=>{var ne;class ee{constructor(M,x,te,Te,Ge){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=M,this.navCtrl=x,this.elementRef=te,this.router=Te,this.routerLink=Ge}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const x=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=x}}onClick(M){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),M.preventDefault()}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.rXU(U.hb),Z.rXU(rn),Z.rXU(Z.aKT),Z.rXU(Oe.Ix),Z.rXU(Oe.Wk,8))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(M,x){1&M&&Z.bIt("click",function(Te){return x.onClick(Te)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),ee})(),qn=(()=>{var ne;class ee{constructor(M,x,te,Te,Ge){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=M,this.navCtrl=x,this.elementRef=te,this.router=Te,this.routerLink=Ge}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const x=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=x}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.rXU(U.hb),Z.rXU(rn),Z.rXU(Z.aKT),Z.rXU(Oe.Ix),Z.rXU(Oe.Wk,8))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(M,x){1&M&&Z.bIt("click",function(){return x.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),ee})();const hn=["animated","animation","root","rootParams","swipeGesture"],Cn=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let tr=(()=>{var ne;let ee=((0,c.A)(ne=class{constructor(M,x,te,Te,Ge,Ct){(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.z=Ge,Ct.detach(),this.el=M.nativeElement,M.nativeElement.delegate=Te.create(x,te),Er(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(M){return new(M||ne)(Z.rXU(Z.aKT),Z.rXU(Z.uvJ),Z.rXU(Z.zZn),Z.rXU(nt),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(ne,"\u0275dir",Z.FsC({type:ne,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),ne);return ee=(0,dt.Cg)([Ir({inputs:hn,methods:Cn})],ee),ee})(),Ar=(()=>{var ne;class ee{constructor(M){(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"tabsInner",void 0),(0,c.A)(this,"ionTabsWillChange",new Z.bkB),(0,c.A)(this,"ionTabsDidChange",new Z.bkB),(0,c.A)(this,"tabBarSlot","bottom"),this.navCtrl=M}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:M,tabSwitch:x}){const te=M.stackId;x&&void 0!==te&&this.ionTabsWillChange.emit({tab:te})}onStackDidChange({enteringView:M,tabSwitch:x}){const te=M.stackId;x&&void 0!==te&&(this.tabBar&&(this.tabBar.selectedTab=te),this.ionTabsDidChange.emit({tab:te}))}select(M){const x="string"==typeof M,te=x?M:M.detail.tab,Te=this.outlet.getActiveStackId()===te,Ge=`${this.outlet.tabsPrefix}/${te}`;if(x||M.stopPropagation(),Te){const Ct=this.outlet.getActiveStackId(),Jt=this.outlet.getLastRouteView(Ct);if((null==Jt?void 0:Jt.url)===Ge)return;const ln=this.outlet.getRootView(te);return this.navCtrl.navigateRoot(Ge,{...ln&&Ge===ln.url&&ln.savedExtras,animated:!0,animationDirection:"back"})}{const Ct=this.outlet.getLastRouteView(te);return this.navCtrl.navigateRoot((null==Ct?void 0:Ct.url)||Ge,{...null==Ct?void 0:Ct.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(M=>{const x=M.el.getAttribute("slot");x!==this.tabBarSlot&&(this.tabBarSlot=x,this.relocateTabBar())})}relocateTabBar(){const M=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(M):this.tabsInner.nativeElement.after(M)}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.rXU(rn))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,selectors:[["ion-tabs"]],viewQuery:function(M,x){if(1&M&&Z.GBs(se,7,Z.aKT),2&M){let te;Z.mGM(te=Z.lsd())&&(x.tabsInner=te.first)}},hostBindings:function(M,x){1&M&&Z.bIt("ionTabButtonClick",function(Te){return x.select(Te)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),ee})();const dr=ne=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ne):"function"==typeof requestAnimationFrame?requestAnimationFrame(ne):setTimeout(ne);let $r=(()=>{var ne;class ee{constructor(M,x){(0,c.A)(this,"injector",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"onChange",()=>{}),(0,c.A)(this,"onTouched",()=>{}),(0,c.A)(this,"lastValue",void 0),(0,c.A)(this,"statusChanges",void 0),this.injector=M,this.elementRef=x}writeValue(M){this.elementRef.nativeElement.value=this.lastValue=M,Zr(this.elementRef)}handleValueChange(M,x){M===this.elementRef.nativeElement&&(x!==this.lastValue&&(this.lastValue=x,this.onChange(x)),Zr(this.elementRef))}_handleBlurEvent(M){M===this.elementRef.nativeElement&&(this.onTouched(),Zr(this.elementRef))}registerOnChange(M){this.onChange=M}registerOnTouched(M){this.onTouched=M}setDisabledState(M){this.elementRef.nativeElement.disabled=M}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let M;try{M=this.injector.get(fe.vO)}catch{}if(!M)return;M.statusChanges&&(this.statusChanges=M.statusChanges.subscribe(()=>Zr(this.elementRef)));const x=M.control;x&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Te=>{if(typeof x[Te]<"u"){const Ge=x[Te].bind(x);x[Te]=(...Ct)=>{Ge(...Ct),Zr(this.elementRef)}}})}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.rXU(Z.zZn),Z.rXU(Z.aKT))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,hostBindings:function(M,x){1&M&&Z.bIt("ionBlur",function(Te){return x._handleBlurEvent(Te.target)})}})),ee})();const Zr=ne=>{dr(()=>{const ee=ne.nativeElement,je=null!=ee.value&&ee.value.toString().length>0,M=fr(ee);Ri(ee,M);const x=ee.closest("ion-item");x&&Ri(x,je?[...M,"item-has-value"]:M)})},fr=ne=>{const ee=ne.classList,je=[];for(let M=0;M{const je=ne.classList;je.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),je.add(...ee)},gi=(ne,ee)=>ne.substring(0,ee.length)===ee;class pr{shouldDetach(ee){return!1}shouldAttach(ee){return!1}store(ee,je){}retrieve(ee){return null}shouldReuseRoute(ee,je){if(ee.routeConfig!==je.routeConfig)return!1;const M=ee.params,x=je.params,te=Object.keys(M),Te=Object.keys(x);if(te.length!==Te.length)return!1;for(const Ge of te)if(x[Ge]!==M[Ge])return!1;return!0}}class Ut{constructor(ee){(0,c.A)(this,"ctrl",void 0),this.ctrl=ee}create(ee){return this.ctrl.create(ee||{})}dismiss(ee,je,M){return this.ctrl.dismiss(ee,je,M)}getTop(){return this.ctrl.getTop()}}},7863:(Tn,gt,D)=>{"use strict";D.d(gt,{hG:()=>Ci,hB:()=>dt,U1:()=>Ln,mC:()=>Zn,Jm:()=>ir,QW:()=>nt,b_:()=>Ot,I9:()=>zt,ME:()=>pn,HW:()=>gn,tN:()=>Sr,eY:()=>Mn,ZB:()=>xn,hU:()=>mn,W9:()=>en,Q8:()=>Nr,M0:()=>Jn,lO:()=>Jr,eU:()=>mr,iq:()=>ur,$w:()=>ii,uz:()=>Qr,Dg:()=>pe,he:()=>Ee,nf:()=>He,oS:()=>ct,MC:()=>lt,cA:()=>Gt,Sb:()=>Lr,To:()=>fr,Ki:()=>Ri,Rg:()=>Tr,ln:()=>ne,Gp:()=>je,eP:()=>M,Nm:()=>x,Ip:()=>te,HP:()=>Ct,nc:()=>Un,BC:()=>On,ai:()=>zr,bv:()=>Fn,Xi:()=>bt,_t:()=>he,N7:()=>li,oY:()=>ei,Je:()=>H,Gw:()=>X});var h=D(9842),c=D(4438),Z=D(4341),Oe=D(2872),U=D(1635),ue=D(3726),oe=D(177),Xe=D(7650),qe=(D(9986),D(2725),D(8454),D(3314),D(8607),D(3664)),ht=D(464),Tt=D(5465),St=D(6002),_t=(D(8476),D(9672));D(1970),D(6411);var ge=D(467);const Ue=qe.i,Fe=function(){var w=(0,ge.A)(function*(j,re){if(!(typeof window>"u"))return yield Ue(),(0,_t.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-input-password-toggle",[[33,"ion-input-password-toggle",{"color":[513],"showIcon":[1,"show-icon"],"hideIcon":[1,"hide-icon"],"type":[1025]},null,{"type":["onTypeChange"]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearInputIcon":[1,"clear-input-icon"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[516],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[516],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"type":["onTypeChange"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64],"getLength":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"focusTrap":[4,"focus-trap"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32],"isVisible":[64]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker",[[33,"ion-picker",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-picker-column",[[1,"ion-picker-column",{"disabled":[4],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"ariaLabel":[32],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64],"setFocus":[64]},null,{"aria-label":["ariaLabelChanged"],"value":["valueChange"]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker-legacy",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-legacy-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1],"isCircle":[32]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"fixedSlotPlacement":[1,"fixed-slot-placement"],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[38,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-option",[[33,"ion-picker-column-option",{"disabled":[4],"value":[8],"color":[513],"ariaLabel":[32]},null,{"aria-label":["onAriaLabelChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"focusTrap":[4,"focus-trap"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"]}],[38,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}]]]]'),re)});return function(re,P){return w.apply(this,arguments)}}(),xe=["*"],rt=["outletContent"];function tt(w,j){if(1&w&&(c.j41(0,"div",1),c.eu8(1,2),c.k0s()),2&w){const re=c.XpG();c.R7$(),c.Y8G("ngTemplateOutlet",re.template)}}let dt=(()=>{var w;class j extends Oe.fL{constructor(P,Ie){super(P,Ie)}writeValue(P){this.elementRef.nativeElement.checked=this.lastValue=P,(0,Oe.z3)(this.elementRef)}_handleIonChange(P){this.handleValueChange(P,P.checked)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(P,Ie){1&P&&c.bIt("ionChange",function(sr){return Ie._handleIonChange(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),j})(),H=(()=>{var w;class j extends Oe.fL{constructor(P,Ie){super(P,Ie)}_handleChangeEvent(P){this.handleValueChange(P,P.value)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(P,Ie){1&P&&c.bIt("ionChange",function(sr){return Ie._handleChangeEvent(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),j})(),X=(()=>{var w;class j extends Oe.fL{constructor(P,Ie){super(P,Ie)}_handleInputEvent(P){this.handleValueChange(P,P.value)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(P,Ie){1&P&&c.bIt("ionInput",function(sr){return Ie._handleInputEvent(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),j})();const fe=(w,j)=>{const re=w.prototype;j.forEach(P=>{Object.defineProperty(re,P,{get(){return this.el[P]},set(Ie){this.z.runOutsideAngular(()=>this.el[P]=Ie)},configurable:!0})})},se=(w,j)=>{const re=w.prototype;j.forEach(P=>{re[P]=function(){const Ie=arguments;return this.z.runOutsideAngular(()=>this.el[P].apply(this.el,Ie))}})},ve=(w,j,re)=>{re.forEach(P=>w[P]=(0,ue.R)(j,P))};function _e(w){return function(re){const{defineCustomElementFn:P,inputs:Ie,methods:ot}=w;return void 0!==P&&P(),Ie&&fe(re,Ie),ot&&se(re,ot),re}}let Ln=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-app"]],ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({})],j),j})(),Zn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-avatar"]],ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({})],j),j})(),ir=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],j),j})(),nt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["collapse"]})],j),j})(),Ot=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],j),j})(),zt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["mode"]})],j),j})(),pn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","mode","translucent"]})],j),j})(),gn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","mode"]})],j),j})(),Sr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","mode"]})],j),j})(),Mn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionChange","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-checkbox"]],inputs:{alignment:"alignment",checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",justify:"justify",labelPlacement:"labelPlacement",mode:"mode",name:"name",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["alignment","checked","color","disabled","indeterminate","justify","labelPlacement","mode","name","value"]})],j),j})(),xn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","disabled","mode","outline"]})],j),j})(),mn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],j),j})(),en=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],j),j})(),Nr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],j),j})(),Jn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["collapse","mode","translucent"]})],j),j})(),Jr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["fixed"]})],j),j})(),mr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["collapse","mode","translucent"]})],j),j})(),ur=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],j),j})(),ii=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-input"]],inputs:{autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearInputIcon:"clearInputIcon",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearInputIcon","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],j),j})(),Qr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],j),j})(),pe=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","mode","sticky"]})],j),j})(),Ee=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","mode","position"]})],j),j})(),He=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],j),j})(),ct=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],j),j})(),lt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["autoHide","color","disabled","menu","mode","type"]})],j),j})(),Gt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["autoHide","menu"]})],j),j})(),fr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],j),j})(),Ri=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],j),j})(),ne=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-row"]],ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({})],j),j})(),je=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionChange"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",selectOnFocus:"selectOnFocus",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","disabled","mode","scrollable","selectOnFocus","swipeGesture","value"]})],j),j})(),M=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["disabled","layout","mode","type","value"]})],j),j})(),x=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",color:"color",compareWith:"compareWith",disabled:"disabled",expandedIcon:"expandedIcon",fill:"fill",interface:"interface",interfaceOptions:"interfaceOptions",justify:"justify",label:"label",labelPlacement:"labelPlacement",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",shape:"shape",toggleIcon:"toggleIcon",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["cancelText","color","compareWith","disabled","expandedIcon","fill","interface","interfaceOptions","justify","label","labelPlacement","mode","multiple","name","okText","placeholder","selectedText","shape","toggleIcon","value"],methods:["open"]})],j),j})(),te=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["disabled","value"]})],j),j})(),Ct=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["contentId","disabled","when"]})],j),j})(),Un=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement,ve(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",shape:"shape",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","maxlength","minlength","mode","name","placeholder","readonly","required","rows","shape","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],j),j})(),On=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","size"]})],j),j})(),zr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ie,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ie.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ie){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([_e({inputs:["color","mode"]})],j),j})(),Tr=(()=>{var w;class j extends Oe.Rg{constructor(P,Ie,ot,sr,ni,z,me,Ne){super(P,Ie,ot,sr,ni,z,me,Ne),(0,h.A)(this,"parentOutlet",void 0),(0,h.A)(this,"outletContent",void 0),this.parentOutlet=Ne}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)(c.kS0("name"),c.kS0("tabs"),c.rXU(oe.aZ),c.rXU(c.aKT),c.rXU(Xe.Ix),c.rXU(c.SKi),c.rXU(Xe.nX),c.rXU(w,12))}),(0,h.A)(j,"\u0275cmp",c.VBU({type:w,selectors:[["ion-router-outlet"]],viewQuery:function(P,Ie){if(1&P&&c.GBs(rt,7,c.c1b),2&P){let ot;c.mGM(ot=c.lsd())&&(Ie.outletContent=ot.first)}},features:[c.Vt3],ngContentSelectors:xe,decls:3,vars:0,consts:[["outletContent",""]],template:function(P,Ie){1&P&&(c.NAR(),c.qex(0,null,0),c.SdG(2),c.bVm())},encapsulation:2})),j})(),li=(()=>{var w;class j extends Oe.CE{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ie){return(re||(re=c.xGo(w)))(Ie||w)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["","routerLink","",5,"a",5,"area"]],features:[c.Vt3]})),j})(),ei=(()=>{var w;class j extends Oe.pF{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ie){return(re||(re=c.xGo(w)))(Ie||w)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[c.Vt3]})),j})(),Lr=(()=>{var w;class j extends Oe.Sb{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ie){return(re||(re=c.xGo(w)))(Ie||w)}})()),(0,h.A)(j,"\u0275cmp",c.VBU({type:w,selectors:[["ion-modal"]],features:[c.Vt3],decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(P,Ie){1&P&&c.DNE(0,tt,2,1,"div",0),2&P&&c.Y8G("ngIf",Ie.isCmpOpen||Ie.keepContentsMounted)},dependencies:[oe.bT,oe.T3],encapsulation:2,changeDetection:0})),j})();const Wn={provide:Z.cz,useExisting:(0,c.Rfq)(()=>Hn),multi:!0};let Hn=(()=>{var w;class j extends Z.zX{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ie){return(re||(re=c.xGo(w)))(Ie||w)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,Ie){2&P&&c.BMQ("max",Ie._enabled?Ie.max:null)},features:[c.Jv_([Wn]),c.Vt3]})),j})();const ao={provide:Z.cz,useExisting:(0,c.Rfq)(()=>ui),multi:!0};let ui=(()=>{var w;class j extends Z.VZ{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ie){return(re||(re=c.xGo(w)))(Ie||w)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,Ie){2&P&&c.BMQ("min",Ie._enabled?Ie.min:null)},features:[c.Jv_([ao]),c.Vt3]})),j})(),Ci=(()=>{var w;class j extends Oe.Kb{constructor(){super(St.a)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),j})(),bt=(()=>{var w;class j extends Oe.Kb{constructor(){super(St.l)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),j})(),he=(()=>{var w;class j extends Oe._t{constructor(){super(Tt.m)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),j})(),le=(()=>{var w;class j extends Oe.Kb{constructor(){super(St.m),(0,h.A)(this,"angularDelegate",(0,c.WQX)(Oe.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(P){return super.create({...P,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac})),j})();class $e extends Oe.Kb{constructor(){super(St.c),(0,h.A)(this,"angularDelegate",(0,c.WQX)(Oe.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(j){return super.create({...j,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const st=(w,j,re)=>()=>{const P=j.defaultView;if(P&&typeof window<"u"){(0,ht.s)({...w,_zoneGate:ot=>re.run(ot)});const Ie="__zone_symbol__addEventListener"in j.body?"__zone_symbol__addEventListener":"addEventListener";return function Ye(){var w=[];if(typeof window<"u"){var j=window;(!j.customElements||j.Element&&(!j.Element.prototype.closest||!j.Element.prototype.matches||!j.Element.prototype.remove||!j.Element.prototype.getRootNode))&&w.push(D.e(7278).then(D.t.bind(D,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||j.NodeList&&!j.NodeList.prototype.forEach||!j.fetch||!function(){try{var P=new URL("b","http://a");return P.pathname="c%20d","http://a/c%20d"===P.href&&P.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&w.push(D.e(9329).then(D.t.bind(D,7783,23)))}return Promise.all(w)}().then(()=>Fe(P,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Oe.er,jmp:ot=>re.runOutsideAngular(ot),ael(ot,sr,ni,z){ot[Ie](sr,ni,z)},rel(ot,sr,ni,z){ot.removeEventListener(sr,ni,z)}}))}};let Fn=(()=>{var w;class j{static forRoot(P={}){return{ngModule:j,providers:[{provide:Oe.sR,useValue:P},{provide:c.hnV,useFactory:st,multi:!0,deps:[Oe.sR,oe.qQ,c.SKi]},Oe.Yq,(0,Oe.YV)()]}}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275mod",c.$C({type:w})),(0,h.A)(j,"\u0275inj",c.G2t({providers:[le,$e],imports:[oe.MD]})),j})()},2214:(Tn,gt,D)=>{"use strict";D.d(gt,{Dk:()=>h.Dk,KO:()=>h.KO,Sx:()=>h.Sx,Wp:()=>h.Wp});var h=D(7852);(0,h.KO)("firebase","10.12.2","app")},2820:(Tn,gt,D)=>{"use strict";D.d(gt,{$P:()=>St,sN:()=>Et,eS:()=>yt});var h=D(467),c=D(4438),Z=D(2771),Oe=D(8359),U=D(1413),ue=D(3236),oe=D(1985),Xe=D(9974),Je=D(4360),Se=D(8750),Qe=D(1584);var qe=D(5558);class ht{constructor(){this.subject=new Z.m(1),this.subscriptions=new Oe.yU}doFilter(Me){this.subject.next(Me)}dispose(){this.subscriptions.unsubscribe()}notEmpty(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{if(ge[Me]){const Ue=ge[Me].currentValue;null!=Ue&&Ye(Ue)}}))}has(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{ge[Me]&&Ye(ge[Me].currentValue)}))}notFirst(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{ge[Me]&&!ge[Me].isFirstChange()&&Ye(ge[Me].currentValue)}))}notFirstAndEmpty(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{if(ge[Me]&&!ge[Me].isFirstChange()){const Ue=ge[Me].currentValue;null!=Ue&&Ye(Ue)}}))}}const Tt=new c.nKC("NGX_ECHARTS_CONFIG");let St=(()=>{var mt;class Me{constructor(ge,Ue,Fe){this.el=Ue,this.ngZone=Fe,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new c.bkB,this.optionsError=new c.bkB,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Z.m(1),this.resize$=new U.B,this.changeFilter=new ht,this.resizeObFired=!1,this.echarts=ge.echarts,this.theme=ge.theme||null}ngOnChanges(ge){this.changeFilter.doFilter(ge)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function Ze(mt,Me=ue.E,Ye){const ge=(0,Qe.O)(mt,Me);return function De(mt,Me){return(0,Xe.N)((Ye,ge)=>{const{leading:Ue=!0,trailing:Fe=!1}=null!=Me?Me:{};let xe=!1,rt=null,Rt=null,vn=!1;const Nt=()=>{null==Rt||Rt.unsubscribe(),Rt=null,Fe&&(dt(),vn&&ge.complete())},tt=()=>{Rt=null,vn&&ge.complete()},on=we=>Rt=(0,Se.Tg)(mt(we)).subscribe((0,Je._)(ge,Nt,tt)),dt=()=>{if(xe){xe=!1;const we=rt;rt=null,ge.next(we),!vn&&on(we)}};Ye.subscribe((0,Je._)(ge,we=>{xe=!0,rt=we,(!Rt||Rt.closed)&&(Ue?dt():on(we))},()=>{vn=!0,(!(Fe&&xe&&Rt)||Rt.closed)&&ge.complete()}))})}(()=>ge,Ye)}(100,ue.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(ge=>{for(const Ue of ge)Ue.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",ge=>this.onOptionsChange(ge)),this.changeFilter.notFirstAndEmpty("merge",ge=>this.setOption(ge)),this.changeFilter.has("loading",ge=>this.toggleLoading(!!ge)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(ge){this.chart?ge?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(Ue=>ge?Ue.showLoading(this.loadingType,this.loadingOpts):Ue.hideLoading())}setOption(ge,Ue){if(this.chart)try{this.chart.setOption(ge,Ue)}catch(Fe){console.error(Fe),this.optionsError.emit(Fe)}}refreshChart(){var ge=this;return(0,h.A)(function*(){ge.dispose(),yield ge.initChart()})()}createChart(){const ge=this.el.nativeElement;if(window&&window.getComputedStyle){const Ue=window.getComputedStyle(ge,null).getPropertyValue("height");(!Ue||"0px"===Ue)&&(!ge.style.height||"0px"===ge.style.height)&&(ge.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:Fe})=>Fe(ge,this.theme,this.initOpts)))}initChart(){var ge=this;return(0,h.A)(function*(){yield ge.onOptionsChange(ge.options),ge.merge&&ge.chart&&ge.setOption(ge.merge)})()}onOptionsChange(ge){var Ue=this;return(0,h.A)(function*(){ge&&(Ue.chart||(Ue.chart=yield Ue.createChart(),Ue.chart$.next(Ue.chart),Ue.chartInit.emit(Ue.chart)),Ue.setOption(Ue.options,!0))})()}createLazyEvent(ge){return this.chartInit.pipe((0,qe.n)(Ue=>new oe.c(Fe=>(Ue.on(ge,xe=>this.ngZone.run(()=>Fe.next(xe))),()=>{this.chart&&(this.chart.isDisposed()||Ue.off(ge))}))))}}return(mt=Me).\u0275fac=function(ge){return new(ge||mt)(c.rXU(Tt),c.rXU(c.aKT),c.rXU(c.SKi))},mt.\u0275dir=c.FsC({type:mt,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[c.OA$]}),Me})();const yt=(mt={})=>({provide:Tt,useFactory:()=>({...mt,echarts:()=>D.e(9697).then(D.bind(D,9697))})}),_t=mt=>({provide:Tt,useValue:mt});let Et=(()=>{var mt;class Me{static forRoot(ge){return{ngModule:Me,providers:[_t(ge)]}}static forChild(){return{ngModule:Me}}}return(mt=Me).\u0275fac=function(ge){return new(ge||mt)},mt.\u0275mod=c.$C({type:mt}),mt.\u0275inj=c.G2t({}),Me})()},7616:(Tn,gt,D)=>{"use strict";D.d(gt,{E:()=>Me,n:()=>Ye});var h=D(4438),c=D(177);const Z=["flamegraph-node",""];function Oe(ge,Ue){if(1&ge){const Fe=h.RV6();h.j41(0,"div",2)(1,"div",3),h.EFF(2),h.k0s(),h.j41(3,"div",2),h.qSk(),h.j41(4,"svg",4)(5,"g",5),h.bIt("click",function(){const rt=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.frameClick.emit(rt.original))})("mouseOverZoneless",function(){const rt=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.frameMouseEnter.emit(rt.original))})("mouseLeaveZoneless",function(){const rt=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.frameMouseLeave.emit(rt.original))})("zoom",function(){const rt=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.zoom.emit(rt))}),h.k0s()()()()}if(2&ge){const Fe=Ue.$implicit,xe=h.XpG();h.xc7("position","absolute")("transform","translate("+xe.getLeft(Fe)+"px,"+xe.getTop(Fe)+"px)")("height",xe.levelHeight,"px"),h.AVh("hide-bar",!(void 0===xe.minimumBarSize||xe.getWidth(Fe)>xe.minimumBarSize)),h.R7$(),h.xc7("width",xe.getWidth(Fe),"px"),h.R7$(),h.SpI(" ",Fe.label," "),h.R7$(),h.xc7("transform","scaleX("+xe.getWidth(Fe)/xe.width+")")("height",xe.levelHeight,"px"),h.R7$(2),h.Y8G("height",xe.levelHeight)("navigable",Fe.navigable)("color",Fe.color)}}function U(ge,Ue){if(1&ge){const Fe=h.RV6();h.j41(0,"ngx-flamegraph-graph",1),h.bIt("frameClick",function(rt){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.frameClick.emit(rt))})("frameMouseEnter",function(rt){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.onFrameMouseEnter(rt))})("frameMouseLeave",function(rt){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.onFrameMouseLeave(rt))})("zoom",function(rt){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.onZoom(rt))}),h.k0s()}if(2&ge){const Fe=h.XpG();h.xc7("height",Fe.depth*Fe.levelHeight,"px")("width",Fe.width,"px"),h.Y8G("layout",Fe.siblingLayout)("data",Fe.entries)("depth",Fe.depth)("levelHeight",Fe.levelHeight)("width",Fe.width)("minimumBarSize",Fe.minimumBarSize)}}const ue=ge=>ge.reduce((Ue,Fe)=>Math.max(Ue,Fe.value,ue(Fe.children||[])),-1/0),oe=([ge,Ue],Fe)=>ge+(Ue-ge)*Fe,Xe=(ge,Ue,Fe,xe,rt=null,Rt=0,vn=1,Nt=0)=>{const tt=[];let on=0;ge.forEach(we=>{on+=we.value});const dt=[];return ge.forEach(we=>{var H,X,fe;let se=vn/ge.length;"relative"===Ue&&(se=we.value/on*vn||0);const ve=Math.min(we.value/Fe,1),Le=we.color||`hsl(${null!==(H=oe(xe.hue,ve))&&void 0!==H?H:0}, ${null!==(X=oe(xe.saturation,ve))&&void 0!==X?X:80}%, ${null!==(fe=oe(xe.lightness,ve))&&void 0!==fe?fe:0}%)`,Wt={label:we.label,value:we.value,siblings:dt,color:Le,widthRatio:se,originalWidthRatio:se,originalLeftRatio:Rt,leftRatio:Rt,navigable:!1,rowNumber:Nt,original:we,children:[],parent:rt};rt&&rt.children.push(Wt);const dn=Xe(we.children||[],Ue,Fe,xe,Wt,Rt,se,Nt+1);dt.push(Wt),tt.push(Wt,...dn),Rt+=se}),tt},Je=ge=>{if(!ge||!ge.length)return 0;let Ue=0;for(const Fe of ge)Ue=Math.max(1+Je(Fe.children),Ue);return Ue},Qe=(ge,Ue)=>{Ue.widthRatio=0,Ue.leftRatio=ge,Ue.children.forEach(Fe=>Qe(ge,Fe))},Ze=ge=>{const Ue=ge.siblings.indexOf(ge);for(let Fe=0;Fe{let rt=0;ge.forEach(Rt=>{rt+=Rt.value}),ge.forEach(Rt=>{let vn=Rt.value/rt*xe;"equal"===Ue&&(vn=xe/ge.length),Rt.widthRatio=vn,Rt.leftRatio=Fe,ht(Rt.children,Ue,Fe,vn),Fe+=vn})},Tt=ge=>{ge.navigable=!1,ge.leftRatio=ge.originalLeftRatio,ge.widthRatio=ge.originalWidthRatio,ge.children.forEach(Tt)},yt={hue:[50,0],saturation:[80,80],lightness:[55,60]};let _t=(()=>{class ge{constructor(Fe,xe,rt){this._ngZone=Fe,this._element=xe,this._renderer=rt,this.navigable=!1,this.zoom=new h.bkB,this.mouseOverZoneless=new h.bkB,this.mouseLeaveZoneless=new h.bkB}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this.mouseOverTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseover",Fe=>this.mouseOverZoneless.emit(Fe)),this.mouseLeaveTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseleave",Fe=>this.mouseLeaveZoneless.emit(Fe))})}ngOnDestroy(){this.mouseOverTeardownFn(),this.mouseLeaveTeardownFn()}}return ge.\u0275fac=function(Fe){return new(Fe||ge)(h.rXU(h.SKi),h.rXU(h.aKT),h.rXU(h.sFG))},ge.\u0275cmp=h.VBU({type:ge,selectors:[["","flamegraph-node",""]],inputs:{height:"height",navigable:"navigable",color:"color"},outputs:{zoom:"zoom",mouseOverZoneless:"mouseOverZoneless",mouseLeaveZoneless:"mouseLeaveZoneless"},attrs:Z,decls:1,vars:4,consts:[["stroke","white","stroke-width","1px","pointer-events","all","width","100%","rx","1","ry","1",1,"ngx-fg-rect",3,"dblclick"]],template:function(Fe,xe){1&Fe&&(h.qSk(),h.j41(0,"rect",0),h.bIt("dblclick",function(){return xe.zoom.emit()}),h.k0s()),2&Fe&&(h.AVh("ngx-fg-navigable",xe.navigable),h.BMQ("height",xe.height)("fill",xe.color))},styles:[".ngx-fg-navigable{opacity:.5}\n"],encapsulation:2,changeDetection:0}),ge})(),Et=(()=>{class ge{constructor(){this.selectedData=[],this.entries=[],this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.zoom=new h.bkB}set data(Fe){this.entries=Fe}get height(){return this.levelHeight*this.depth}getTop(Fe){return Fe.rowNumber*this.levelHeight}getLeft(Fe){return Fe.leftRatio*this.width}getWidth(Fe){return Fe.widthRatio*this.width||0}}return ge.\u0275fac=function(Fe){return new(Fe||ge)},ge.\u0275cmp=h.VBU({type:ge,selectors:[["ngx-flamegraph-graph"]],inputs:{width:"width",levelHeight:"levelHeight",layout:"layout",depth:"depth",minimumBarSize:"minimumBarSize",data:"data"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave",zoom:"zoom"},decls:2,vars:3,consts:[[1,"ngx-fg-chart-wrapper"],["class","svg-wrapper",3,"hide-bar","position","transform","height",4,"ngFor","ngForOf"],[1,"svg-wrapper"],[1,"bar-text"],["width","100%","height","100%",1,"ngx-fg-svg"],["flamegraph-node","",1,"ngx-fg-svg-g",3,"click","mouseOverZoneless","mouseLeaveZoneless","zoom","height","navigable","color"]],template:function(Fe,xe){1&Fe&&(h.j41(0,"div",0),h.DNE(1,Oe,6,18,"div",1),h.k0s()),2&Fe&&(h.AVh("ngx-fg-grayscale",xe.selectedData&&xe.selectedData.length),h.R7$(),h.Y8G("ngForOf",xe.entries))},dependencies:[c.Sq,_t],styles:[".ngx-fg-svg{pointer-events:none}ngx-flamegraph-graph{position:absolute;display:block;overflow:hidden}.svg-wrapper{width:100%;transform-origin:left}.svg-wrapper{transition:transform .333s ease-in-out,opacity .333s ease-in-out}.bar-text{position:absolute;z-index:1;overflow:hidden;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff;padding:5px;font-family:sans-serif;font-size:80%}.hide-bar{opacity:0;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),ge})();const mt=typeof ResizeObserver<"u";let Me=(()=>{class ge{constructor(Fe,xe,rt){this._el=Fe,this.cdr=xe,this._ngZone=rt,this.entries=[],this.depth=0,this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.siblingLayout="relative",this.width=null,this.levelHeight=25}set config(Fe){var xe,rt;this._data=Fe.data,this._colors=null!==(xe=Fe.color)&&void 0!==xe?xe:yt,this.minimumBarSize=null!==(rt=Fe.minimumBarSize)&&void 0!==rt?rt:2,this._refresh()}get hostStyles(){return`height: ${this.depth*this.levelHeight}px `}ngOnInit(){var Fe;const xe=null===(Fe=this._el.nativeElement)||void 0===Fe?void 0:Fe.parentElement;xe&&null===this.width&&mt&&(this._resizeObserver=new ResizeObserver(()=>this._ngZone.run(()=>this._onParentResize())),this._resizeObserver.observe(xe))}ngOnDestroy(){var Fe;const xe=null===(Fe=this._el.nativeElement)||void 0===Fe?void 0:Fe.parentElement;xe&&this._resizeObserver&&mt&&this._resizeObserver.unobserve(xe)}_onParentResize(){var Fe;const xe=null===(Fe=this._el.nativeElement)||void 0===Fe?void 0:Fe.parentElement;xe&&(this.width=xe.clientWidth,this.cdr.markForCheck())}_refresh(){const{hue:Fe,saturation:xe,lightness:rt}=this._colors,Rt={hue:Array.isArray(Fe)?Fe:[Fe,Fe],saturation:Array.isArray(xe)?xe:[xe,xe],lightness:Array.isArray(rt)?rt:[rt,rt]};this.entries=Xe(this._data,this.siblingLayout,ue(this._data),Rt),this.depth=Je(this._data)}onZoom(Fe){Fe.navigable&&Tt(Fe),((ge,Ue)=>{let Fe=ge;for(;Fe;)Fe.widthRatio=1,Fe.leftRatio=0,Ze(Fe),Fe=Fe.parent,Fe&&(Fe.navigable=!0);ht(ge.children,Ue)})(Fe,this.siblingLayout)}onFrameMouseEnter(Fe){0!==this.frameMouseEnter.observers.length&&this._ngZone.run(()=>this.frameMouseEnter.emit(Fe))}onFrameMouseLeave(Fe){0!==this.frameMouseLeave.observers.length&&this._ngZone.run(()=>this.frameMouseLeave.emit(Fe))}}return ge.\u0275fac=function(Fe){return new(Fe||ge)(h.rXU(h.aKT),h.rXU(h.gRc),h.rXU(h.SKi))},ge.\u0275cmp=h.VBU({type:ge,selectors:[["ngx-flamegraph"]],hostVars:1,hostBindings:function(Fe,xe){2&Fe&&h.BMQ("style",xe.hostStyles,h.$dS)},inputs:{siblingLayout:"siblingLayout",width:"width",levelHeight:"levelHeight",config:"config"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave"},decls:1,vars:1,consts:[[3,"layout","data","depth","levelHeight","width","height","minimumBarSize","frameClick","frameMouseEnter","frameMouseLeave","zoom",4,"ngIf"],[3,"frameClick","frameMouseEnter","frameMouseLeave","zoom","layout","data","depth","levelHeight","width","minimumBarSize"]],template:function(Fe,xe){1&Fe&&h.DNE(0,U,1,10,"ngx-flamegraph-graph",0),2&Fe&&h.Y8G("ngIf",null!==xe.width)},dependencies:[c.bT,Et],styles:["ngx-flamegraph{display:block}\n"],encapsulation:2,changeDetection:0}),ge})(),Ye=(()=>{class ge{}return ge.\u0275fac=function(Fe){return new(Fe||ge)},ge.\u0275mod=h.$C({type:ge}),ge.\u0275inj=h.G2t({imports:[c.MD]}),ge})()},9549:(Tn,gt,D)=>{"use strict";D.d(gt,{NN:()=>ao,y2:()=>No});var h=D(467),c=D(177),Z=D(4438),Oe=D(1413),U=D(7786),ue=D(7673),oe=D(1584),Xe=D(5558),Je=D(3703),Se=D(3294),De=D(2771),Qe=D(8750),Ze=D(7707),qe=D(9974);function Tt(bt,he,...le){if(!0===he)return void bt();if(!1===he)return;const W=new Ze.Ms({next:()=>{W.unsubscribe(),bt()}});return(0,Qe.Tg)(he(...le)).subscribe(W)}var yt=D(9172),_t=D(6354),Et=D(6977);function ge(bt,he,le){if("function"==typeof bt?bt===he:bt.has(he))return arguments.length<3?he:le;throw new TypeError("Private element is not present on this object")}D(1594);var Ue=D(9842);let xe={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function rt(bt){xe=bt}const Rt=/[&<>"']/,vn=new RegExp(Rt.source,"g"),Nt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,tt=new RegExp(Nt.source,"g"),on={"&":"&","<":"<",">":">",'"':""","'":"'"},dt=bt=>on[bt];function we(bt,he){if(he){if(Rt.test(bt))return bt.replace(vn,dt)}else if(Nt.test(bt))return bt.replace(tt,dt);return bt}const H=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,fe=/(^|[^\[])\^/g;function se(bt,he){let le="string"==typeof bt?bt:bt.source;he=he||"";const W={replace:($e,Ve)=>{let st="string"==typeof Ve?Ve:Ve.source;return st=st.replace(fe,"$1"),le=le.replace($e,st),W},getRegex:()=>new RegExp(le,he)};return W}function ve(bt){try{bt=encodeURI(bt).replace(/%25/g,"%")}catch{return null}return bt}const Le={exec:()=>null};function _e(bt,he){const W=bt.replace(/\|/g,(Ve,st,jt)=>{let In=!1,Fn=st;for(;--Fn>=0&&"\\"===jt[Fn];)In=!In;return In?"|":" |"}).split(/ \|/);let $e=0;if(W[0].trim()||W.shift(),W.length>0&&!W[W.length-1].trim()&&W.pop(),he)if(W.length>he)W.splice(he);else for(;W.length0)return{type:"space",raw:le[0]}}code(he){const le=this.rules.block.code.exec(he);if(le){const W=le[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:le[0],codeBlockStyle:"indented",text:this.options.pedantic?W:Wt(W,"\n")}}}fences(he){const le=this.rules.block.fences.exec(he);if(le){const W=le[0],$e=function rn(bt,he){const le=bt.match(/^(\s+)(?:```)/);if(null===le)return he;const W=le[1];return he.split("\n").map($e=>{const Ve=$e.match(/^\s+/);if(null===Ve)return $e;const[st]=Ve;return st.length>=W.length?$e.slice(W.length):$e}).join("\n")}(W,le[3]||"");return{type:"code",raw:W,lang:le[2]?le[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):le[2],text:$e}}}heading(he){const le=this.rules.block.heading.exec(he);if(le){let W=le[2].trim();if(/#$/.test(W)){const $e=Wt(W,"#");(this.options.pedantic||!$e||/ $/.test($e))&&(W=$e.trim())}return{type:"heading",raw:le[0],depth:le[1].length,text:W,tokens:this.lexer.inline(W)}}}hr(he){const le=this.rules.block.hr.exec(he);if(le)return{type:"hr",raw:le[0]}}blockquote(he){const le=this.rules.block.blockquote.exec(he);if(le){let W=le[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");W=Wt(W.replace(/^ *>[ \t]?/gm,""),"\n");const $e=this.lexer.state.top;this.lexer.state.top=!0;const Ve=this.lexer.blockTokens(W);return this.lexer.state.top=$e,{type:"blockquote",raw:le[0],tokens:Ve,text:W}}}list(he){let le=this.rules.block.list.exec(he);if(le){let W=le[1].trim();const $e=W.length>1,Ve={type:"list",raw:"",ordered:$e,start:$e?+W.slice(0,-1):"",loose:!1,items:[]};W=$e?`\\d{1,9}\\${W.slice(-1)}`:`\\${W}`,this.options.pedantic&&(W=$e?W:"[*+-]");const st=new RegExp(`^( {0,3}${W})((?:[\t ][^\\n]*)?(?:\\n|$))`);let jt="",In="",Fn=!1;for(;he;){let w=!1;if(!(le=st.exec(he))||this.rules.block.hr.test(he))break;jt=le[0],he=he.substring(jt.length);let j=le[2].split("\n",1)[0].replace(/^\t+/,ni=>" ".repeat(3*ni.length)),re=he.split("\n",1)[0],P=0;this.options.pedantic?(P=2,In=j.trimStart()):(P=le[2].search(/[^ ]/),P=P>4?1:P,In=j.slice(P),P+=le[1].length);let Ie=!1;if(!j&&/^ *$/.test(re)&&(jt+=re+"\n",he=he.substring(re.length+1),w=!0),!w){const ni=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),z=new RegExp(`^ {0,${Math.min(3,P-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),me=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:\`\`\`|~~~)`),Ne=new RegExp(`^ {0,${Math.min(3,P-1)}}#`);for(;he;){const et=he.split("\n",1)[0];if(re=et,this.options.pedantic&&(re=re.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),me.test(re)||Ne.test(re)||ni.test(re)||z.test(he))break;if(re.search(/[^ ]/)>=P||!re.trim())In+="\n"+re.slice(P);else{if(Ie||j.search(/[^ ]/)>=4||me.test(j)||Ne.test(j)||z.test(j))break;In+="\n"+re}!Ie&&!re.trim()&&(Ie=!0),jt+=et+"\n",he=he.substring(et.length+1),j=re.slice(P)}}Ve.loose||(Fn?Ve.loose=!0:/\n *\n *$/.test(jt)&&(Fn=!0));let sr,ot=null;this.options.gfm&&(ot=/^\[[ xX]\] /.exec(In),ot&&(sr="[ ] "!==ot[0],In=In.replace(/^\[[ xX]\] +/,""))),Ve.items.push({type:"list_item",raw:jt,task:!!ot,checked:sr,loose:!1,text:In,tokens:[]}),Ve.raw+=jt}Ve.items[Ve.items.length-1].raw=jt.trimEnd(),Ve.items[Ve.items.length-1].text=In.trimEnd(),Ve.raw=Ve.raw.trimEnd();for(let w=0;w"space"===P.type),re=j.length>0&&j.some(P=>/\n.*\n/.test(P.raw));Ve.loose=re}if(Ve.loose)for(let w=0;w$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",Ve=le[3]?le[3].substring(1,le[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):le[3];return{type:"def",tag:W,raw:le[0],href:$e,title:Ve}}}table(he){const le=this.rules.block.table.exec(he);if(!le||!/[:|]/.test(le[2]))return;const W=_e(le[1]),$e=le[2].replace(/^\||\| *$/g,"").split("|"),Ve=le[3]&&le[3].trim()?le[3].replace(/\n[ \t]*$/,"").split("\n"):[],st={type:"table",raw:le[0],header:[],align:[],rows:[]};if(W.length===$e.length){for(const jt of $e)/^ *-+: *$/.test(jt)?st.align.push("right"):/^ *:-+: *$/.test(jt)?st.align.push("center"):/^ *:-+ *$/.test(jt)?st.align.push("left"):st.align.push(null);for(const jt of W)st.header.push({text:jt,tokens:this.lexer.inline(jt)});for(const jt of Ve)st.rows.push(_e(jt,st.header.length).map(In=>({text:In,tokens:this.lexer.inline(In)})));return st}}lheading(he){const le=this.rules.block.lheading.exec(he);if(le)return{type:"heading",raw:le[0],depth:"="===le[2].charAt(0)?1:2,text:le[1],tokens:this.lexer.inline(le[1])}}paragraph(he){const le=this.rules.block.paragraph.exec(he);if(le){const W="\n"===le[1].charAt(le[1].length-1)?le[1].slice(0,-1):le[1];return{type:"paragraph",raw:le[0],text:W,tokens:this.lexer.inline(W)}}}text(he){const le=this.rules.block.text.exec(he);if(le)return{type:"text",raw:le[0],text:le[0],tokens:this.lexer.inline(le[0])}}escape(he){const le=this.rules.inline.escape.exec(he);if(le)return{type:"escape",raw:le[0],text:we(le[1])}}tag(he){const le=this.rules.inline.tag.exec(he);if(le)return!this.lexer.state.inLink&&/^
    /i.test(le[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(le[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(le[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:le[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:le[0]}}link(he){const le=this.rules.inline.link.exec(he);if(le){const W=le[2].trim();if(!this.options.pedantic&&/^$/.test(W))return;const st=Wt(W.slice(0,-1),"\\");if((W.length-st.length)%2==0)return}else{const st=function dn(bt,he){if(-1===bt.indexOf(he[1]))return-1;let le=0;for(let W=0;W-1){const In=(0===le[0].indexOf("!")?5:4)+le[1].length+st;le[2]=le[2].substring(0,st),le[0]=le[0].substring(0,In).trim(),le[3]=""}}let $e=le[2],Ve="";if(this.options.pedantic){const st=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec($e);st&&($e=st[1],Ve=st[3])}else Ve=le[3]?le[3].slice(1,-1):"";return $e=$e.trim(),/^$/.test(W)?$e.slice(1):$e.slice(1,-1)),Kt(le,{href:$e&&$e.replace(this.rules.inline.anyPunctuation,"$1"),title:Ve&&Ve.replace(this.rules.inline.anyPunctuation,"$1")},le[0],this.lexer)}}reflink(he,le){let W;if((W=this.rules.inline.reflink.exec(he))||(W=this.rules.inline.nolink.exec(he))){const Ve=le[(W[2]||W[1]).replace(/\s+/g," ").toLowerCase()];if(!Ve){const st=W[0].charAt(0);return{type:"text",raw:st,text:st}}return Kt(W,Ve,W[0],this.lexer)}}emStrong(he,le,W=""){let $e=this.rules.inline.emStrongLDelim.exec(he);if(!(!$e||$e[3]&&W.match(/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\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\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\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\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\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\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\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\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\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-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\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\uABF0-\uABF9\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\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10107}-\u{10133}\u{10140}-\u{10178}\u{1018A}\u{1018B}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10858}-\u{10876}\u{10879}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A60}-\u{10A7E}\u{10A80}-\u{10A9F}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11052}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{11136}-\u{1113F}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111D0}-\u{111DA}\u{111DC}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{112F0}-\u{112F9}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{11450}-\u{11459}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116B8}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11730}-\u{1173B}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C50}-\u{11C6C}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11F50}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E96}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1EC71}-\u{1ECAB}\u{1ECAD}-\u{1ECAF}\u{1ECB1}-\u{1ECB4}\u{1ED01}-\u{1ED2D}\u{1ED2F}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10C}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u))&&(!$e[1]&&!$e[2]||!W||this.rules.inline.punctuation.exec(W))){const st=[...$e[0]].length-1;let jt,In,Fn=st,w=0;const j="*"===$e[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(j.lastIndex=0,le=le.slice(-1*he.length+st);null!=($e=j.exec(le));){if(jt=$e[1]||$e[2]||$e[3]||$e[4]||$e[5]||$e[6],!jt)continue;if(In=[...jt].length,$e[3]||$e[4]){Fn+=In;continue}if(($e[5]||$e[6])&&st%3&&!((st+In)%3)){w+=In;continue}if(Fn-=In,Fn>0)continue;In=Math.min(In,In+Fn+w);const re=[...$e[0]][0].length,P=he.slice(0,st+$e.index+re+In);if(Math.min(st,In)%2){const ot=P.slice(1,-1);return{type:"em",raw:P,text:ot,tokens:this.lexer.inlineTokens(ot)}}const Ie=P.slice(2,-2);return{type:"strong",raw:P,text:Ie,tokens:this.lexer.inlineTokens(Ie)}}}}codespan(he){const le=this.rules.inline.code.exec(he);if(le){let W=le[2].replace(/\n/g," ");const $e=/[^ ]/.test(W),Ve=/^ /.test(W)&&/ $/.test(W);return $e&&Ve&&(W=W.substring(1,W.length-1)),W=we(W,!0),{type:"codespan",raw:le[0],text:W}}}br(he){const le=this.rules.inline.br.exec(he);if(le)return{type:"br",raw:le[0]}}del(he){const le=this.rules.inline.del.exec(he);if(le)return{type:"del",raw:le[0],text:le[2],tokens:this.lexer.inlineTokens(le[2])}}autolink(he){const le=this.rules.inline.autolink.exec(he);if(le){let W,$e;return"@"===le[2]?(W=we(le[1]),$e="mailto:"+W):(W=we(le[1]),$e=W),{type:"link",raw:le[0],text:W,href:$e,tokens:[{type:"text",raw:W,text:W}]}}}url(he){let le;if(le=this.rules.inline.url.exec(he)){let Ve,st;if("@"===le[2])Ve=we(le[0]),st="mailto:"+Ve;else{let jt;do{var W,$e;jt=le[0],le[0]=null!==(W=null===($e=this.rules.inline._backpedal.exec(le[0]))||void 0===$e?void 0:$e[0])&&void 0!==W?W:""}while(jt!==le[0]);Ve=we(le[0]),st="www."===le[1]?"http://"+le[0]:le[0]}return{type:"link",raw:le[0],text:Ve,href:st,tokens:[{type:"text",raw:Ve,text:Ve}]}}}inlineText(he){const le=this.rules.inline.text.exec(he);if(le){let W;return W=this.lexer.state.inRawBlock?le[0]:we(le[0]),{type:"text",raw:le[0],text:W}}}}const yr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ir=/(?:[*+-]|\d{1,9}[.)])/,nt=se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ir).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Ot=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,pn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,gn=se(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",pn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Sr=se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ir).getRegex(),Mn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xn=/|$))/,mn=se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",xn).replace("tag",Mn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),en=se(Ot).replace("hr",yr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Mn).getRegex(),Ir={blockquote:se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",en).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:gn,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:yr,html:mn,lheading:nt,list:Sr,newline:/^(?: *(?:\n|$))+/,paragraph:en,table:Le,text:/^[^\n]+/},Nr=se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",yr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Mn).getRegex(),Qn={...Ir,table:Nr,paragraph:se(Ot).replace("hr",yr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Mn).getRegex()},Dr={...Ir,html:se("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",xn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Le,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:se(Ot).replace("hr",yr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",nt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Jn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mr=/^( {2,}|\\)\n(?!\s*$)/,Pr="\\p{P}\\p{S}",cr=se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Pr).getRegex(),ii=se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Pr).getRegex(),Ai=se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Pr).getRegex(),Qr=se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Pr).getRegex(),pe=se(/\\([punct])/,"gu").replace(/punct/g,Pr).getRegex(),it=se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),Mt=se(xn).replace("(?:--\x3e|$)","--\x3e").getRegex(),ut=se("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Mt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ce=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ee=se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ce).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),He=se(/^!?\[(label)\]\[(ref)\]/).replace("label",ce).replace("ref",pn).getRegex(),Lt=se(/^!?\[(ref)\](?:\[\])?/).replace("ref",pn).getRegex(),ct={_backpedal:Le,anyPunctuation:pe,autolink:it,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:mr,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Le,emStrongLDelim:ii,emStrongRDelimAst:Ai,emStrongRDelimUnd:Qr,escape:Jn,link:Ee,nolink:Lt,punctuation:cr,reflink:He,reflinkSearch:se("reflink|nolink(?!\\()","g").replace("reflink",He).replace("nolink",Lt).getRegex(),tag:ut,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\In+" ".repeat(Fn.length));he;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(jt=>!!(W=jt.call({lexer:this},he,le))&&(he=he.substring(W.raw.length),le.push(W),!0)))){if(W=this.tokenizer.space(he)){he=he.substring(W.raw.length),1===W.raw.length&&le.length>0?le[le.length-1].raw+="\n":le.push(W);continue}if(W=this.tokenizer.code(he)){he=he.substring(W.raw.length),$e=le[le.length-1],!$e||"paragraph"!==$e.type&&"text"!==$e.type?le.push(W):($e.raw+="\n"+W.raw,$e.text+="\n"+W.text,this.inlineQueue[this.inlineQueue.length-1].src=$e.text);continue}if(W=this.tokenizer.fences(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.heading(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.hr(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.blockquote(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.list(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.html(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.def(he)){he=he.substring(W.raw.length),$e=le[le.length-1],!$e||"paragraph"!==$e.type&&"text"!==$e.type?this.tokens.links[W.tag]||(this.tokens.links[W.tag]={href:W.href,title:W.title}):($e.raw+="\n"+W.raw,$e.text+="\n"+W.raw,this.inlineQueue[this.inlineQueue.length-1].src=$e.text);continue}if(W=this.tokenizer.table(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.lheading(he)){he=he.substring(W.raw.length),le.push(W);continue}if(Ve=he,this.options.extensions&&this.options.extensions.startBlock){let jt=1/0;const In=he.slice(1);let Fn;this.options.extensions.startBlock.forEach(w=>{Fn=w.call({lexer:this},In),"number"==typeof Fn&&Fn>=0&&(jt=Math.min(jt,Fn))}),jt<1/0&&jt>=0&&(Ve=he.substring(0,jt+1))}if(this.state.top&&(W=this.tokenizer.paragraph(Ve))){$e=le[le.length-1],st&&"paragraph"===$e.type?($e.raw+="\n"+W.raw,$e.text+="\n"+W.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=$e.text):le.push(W),st=Ve.length!==he.length,he=he.substring(W.raw.length);continue}if(W=this.tokenizer.text(he)){he=he.substring(W.raw.length),$e=le[le.length-1],$e&&"text"===$e.type?($e.raw+="\n"+W.raw,$e.text+="\n"+W.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=$e.text):le.push(W);continue}if(he){const jt="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(jt);break}throw new Error(jt)}}return this.state.top=!0,le}inline(he,le=[]){return this.inlineQueue.push({src:he,tokens:le}),le}inlineTokens(he,le=[]){let W,$e,Ve,jt,In,Fn,st=he;if(this.tokens.links){const w=Object.keys(this.tokens.links);if(w.length>0)for(;null!=(jt=this.tokenizer.rules.inline.reflinkSearch.exec(st));)w.includes(jt[0].slice(jt[0].lastIndexOf("[")+1,-1))&&(st=st.slice(0,jt.index)+"["+"a".repeat(jt[0].length-2)+"]"+st.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(jt=this.tokenizer.rules.inline.blockSkip.exec(st));)st=st.slice(0,jt.index)+"["+"a".repeat(jt[0].length-2)+"]"+st.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(jt=this.tokenizer.rules.inline.anyPunctuation.exec(st));)st=st.slice(0,jt.index)+"++"+st.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;he;)if(In||(Fn=""),In=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(w=>!!(W=w.call({lexer:this},he,le))&&(he=he.substring(W.raw.length),le.push(W),!0)))){if(W=this.tokenizer.escape(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.tag(he)){he=he.substring(W.raw.length),$e=le[le.length-1],$e&&"text"===W.type&&"text"===$e.type?($e.raw+=W.raw,$e.text+=W.text):le.push(W);continue}if(W=this.tokenizer.link(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.reflink(he,this.tokens.links)){he=he.substring(W.raw.length),$e=le[le.length-1],$e&&"text"===W.type&&"text"===$e.type?($e.raw+=W.raw,$e.text+=W.text):le.push(W);continue}if(W=this.tokenizer.emStrong(he,st,Fn)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.codespan(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.br(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.del(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.autolink(he)){he=he.substring(W.raw.length),le.push(W);continue}if(!this.state.inLink&&(W=this.tokenizer.url(he))){he=he.substring(W.raw.length),le.push(W);continue}if(Ve=he,this.options.extensions&&this.options.extensions.startInline){let w=1/0;const j=he.slice(1);let re;this.options.extensions.startInline.forEach(P=>{re=P.call({lexer:this},j),"number"==typeof re&&re>=0&&(w=Math.min(w,re))}),w<1/0&&w>=0&&(Ve=he.substring(0,w+1))}if(W=this.tokenizer.inlineText(Ve)){he=he.substring(W.raw.length),"_"!==W.raw.slice(-1)&&(Fn=W.raw.slice(-1)),In=!0,$e=le[le.length-1],$e&&"text"===$e.type?($e.raw+=W.raw,$e.text+=W.text):le.push(W);continue}if(he){const w="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(w);break}throw new Error(w)}}return le}}class Cn{constructor(he){(0,Ue.A)(this,"options",void 0),this.options=he||xe}code(he,le,W){var $e;const Ve=null===($e=(le||"").match(/^\S*/))||void 0===$e?void 0:$e[0];return he=he.replace(/\n$/,"")+"\n",Ve?'
    '+(W?he:we(he,!0))+"
    \n":"
    "+(W?he:we(he,!0))+"
    \n"}blockquote(he){return`
    \n${he}
    \n`}html(he,le){return he}heading(he,le,W){return`${he}\n`}hr(){return"
    \n"}list(he,le,W){const $e=le?"ol":"ul";return"<"+$e+(le&&1!==W?' start="'+W+'"':"")+">\n"+he+"\n"}listitem(he,le,W){return`
  • ${he}
  • \n`}checkbox(he){return"'}paragraph(he){return`

    ${he}

    \n`}table(he,le){return le&&(le=`${le}`),"\n\n"+he+"\n"+le+"
    \n"}tablerow(he){return`\n${he}\n`}tablecell(he,le){const W=le.header?"th":"td";return(le.align?`<${W} align="${le.align}">`:`<${W}>`)+he+`\n`}strong(he){return`${he}`}em(he){return`${he}`}codespan(he){return`${he}`}br(){return"
    "}del(he){return`${he}`}link(he,le,W){const $e=ve(he);if(null===$e)return W;let Ve='
    ",Ve}image(he,le,W){const $e=ve(he);if(null===$e)return W;let Ve=`${W}"colon"===(le=le.toLowerCase())?":":"#"===le.charAt(0)?"x"===le.charAt(1)?String.fromCharCode(parseInt(le.substring(2),16)):String.fromCharCode(+le.substring(1)):""));continue}case"code":W+=this.renderer.code(Ve.text,Ve.lang,!!Ve.escaped);continue;case"table":{const st=Ve;let jt="",In="";for(let w=0;w0&&"paragraph"===re.tokens[0].type?(re.tokens[0].text=sr+" "+re.tokens[0].text,re.tokens[0].tokens&&re.tokens[0].tokens.length>0&&"text"===re.tokens[0].tokens[0].type&&(re.tokens[0].tokens[0].text=sr+" "+re.tokens[0].tokens[0].text)):re.tokens.unshift({type:"text",text:sr+" "}):ot+=sr+" "}ot+=this.parse(re.tokens,Fn),w+=this.renderer.listitem(ot,Ie,!!P)}W+=this.renderer.list(w,jt,In);continue}case"html":W+=this.renderer.html(Ve.text,Ve.block);continue;case"paragraph":W+=this.renderer.paragraph(this.parseInline(Ve.tokens));continue;case"text":{let st=Ve,jt=st.tokens?this.parseInline(st.tokens):st.text;for(;$e+1{const $e={...W},Ve={...this.defaults,...$e};!0===this.defaults.async&&!1===$e.async&&(Ve.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),Ve.async=!0);const st=ge($r,this,Ri).call(this,!!Ve.silent,!!Ve.async);if(typeof le>"u"||null===le)return st(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof le)return st(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(le)+", string expected"));if(Ve.hooks&&(Ve.hooks.options=Ve),Ve.async)return Promise.resolve(Ve.hooks?Ve.hooks.preprocess(le):le).then(jt=>bt(jt,Ve)).then(jt=>Ve.hooks?Ve.hooks.processAllTokens(jt):jt).then(jt=>Ve.walkTokens?Promise.all(this.walkTokens(jt,Ve.walkTokens)).then(()=>jt):jt).then(jt=>he(jt,Ve)).then(jt=>Ve.hooks?Ve.hooks.postprocess(jt):jt).catch(st);try{Ve.hooks&&(le=Ve.hooks.preprocess(le));let jt=bt(le,Ve);Ve.hooks&&(jt=Ve.hooks.processAllTokens(jt)),Ve.walkTokens&&this.walkTokens(jt,Ve.walkTokens);let In=he(jt,Ve);return Ve.hooks&&(In=Ve.hooks.postprocess(In)),In}catch(jt){return st(jt)}}}function Ri(bt,he){return le=>{if(le.message+="\nPlease report this to https://github.com/markedjs/marked.",bt){const W="

    An error occurred:

    "+we(le.message+"",!0)+"
    ";return he?Promise.resolve(W):W}if(he)return Promise.reject(le);throw le}}const gi=new class Zr{constructor(...he){(function Ye(bt,he){(function Me(bt,he){if(he.has(bt))throw new TypeError("Cannot initialize the same private elements twice on an object")})(bt,he),he.add(bt)})(this,$r),(0,Ue.A)(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),(0,Ue.A)(this,"options",this.setOptions),(0,Ue.A)(this,"parse",ge($r,this,fr).call(this,hn.lex,Ar.parse)),(0,Ue.A)(this,"parseInline",ge($r,this,fr).call(this,hn.lexInline,Ar.parseInline)),(0,Ue.A)(this,"Parser",Ar),(0,Ue.A)(this,"Renderer",Cn),(0,Ue.A)(this,"TextRenderer",tr),(0,Ue.A)(this,"Lexer",hn),(0,Ue.A)(this,"Tokenizer",Ln),(0,Ue.A)(this,"Hooks",dr),this.use(...he)}walkTokens(he,le){let W=[];for(const Ve of he)switch(W=W.concat(le.call(this,Ve)),Ve.type){case"table":{const st=Ve;for(const jt of st.header)W=W.concat(this.walkTokens(jt.tokens,le));for(const jt of st.rows)for(const In of jt)W=W.concat(this.walkTokens(In.tokens,le));break}case"list":W=W.concat(this.walkTokens(Ve.items,le));break;default:{var $e;const st=Ve;null!==($e=this.defaults.extensions)&&void 0!==$e&&null!==($e=$e.childTokens)&&void 0!==$e&&$e[st.type]?this.defaults.extensions.childTokens[st.type].forEach(jt=>{const In=st[jt].flat(1/0);W=W.concat(this.walkTokens(In,le))}):st.tokens&&(W=W.concat(this.walkTokens(st.tokens,le)))}}return W}use(...he){const le=this.defaults.extensions||{renderers:{},childTokens:{}};return he.forEach(W=>{const $e={...W};if($e.async=this.defaults.async||$e.async||!1,W.extensions&&(W.extensions.forEach(Ve=>{if(!Ve.name)throw new Error("extension name required");if("renderer"in Ve){const st=le.renderers[Ve.name];le.renderers[Ve.name]=st?function(...jt){let In=Ve.renderer.apply(this,jt);return!1===In&&(In=st.apply(this,jt)),In}:Ve.renderer}if("tokenizer"in Ve){if(!Ve.level||"block"!==Ve.level&&"inline"!==Ve.level)throw new Error("extension level must be 'block' or 'inline'");const st=le[Ve.level];st?st.unshift(Ve.tokenizer):le[Ve.level]=[Ve.tokenizer],Ve.start&&("block"===Ve.level?le.startBlock?le.startBlock.push(Ve.start):le.startBlock=[Ve.start]:"inline"===Ve.level&&(le.startInline?le.startInline.push(Ve.start):le.startInline=[Ve.start]))}"childTokens"in Ve&&Ve.childTokens&&(le.childTokens[Ve.name]=Ve.childTokens)}),$e.extensions=le),W.renderer){const Ve=this.defaults.renderer||new Cn(this.defaults);for(const st in W.renderer){if(!(st in Ve))throw new Error(`renderer '${st}' does not exist`);if("options"===st)continue;const In=W.renderer[st],Fn=Ve[st];Ve[st]=(...w)=>{let j=In.apply(Ve,w);return!1===j&&(j=Fn.apply(Ve,w)),j||""}}$e.renderer=Ve}if(W.tokenizer){const Ve=this.defaults.tokenizer||new Ln(this.defaults);for(const st in W.tokenizer){if(!(st in Ve))throw new Error(`tokenizer '${st}' does not exist`);if(["options","rules","lexer"].includes(st))continue;const In=W.tokenizer[st],Fn=Ve[st];Ve[st]=(...w)=>{let j=In.apply(Ve,w);return!1===j&&(j=Fn.apply(Ve,w)),j}}$e.tokenizer=Ve}if(W.hooks){const Ve=this.defaults.hooks||new dr;for(const st in W.hooks){if(!(st in Ve))throw new Error(`hook '${st}' does not exist`);if("options"===st)continue;const In=W.hooks[st],Fn=Ve[st];Ve[st]=dr.passThroughHooks.has(st)?w=>{if(this.defaults.async)return Promise.resolve(In.call(Ve,w)).then(re=>Fn.call(Ve,re));const j=In.call(Ve,w);return Fn.call(Ve,j)}:(...w)=>{let j=In.apply(Ve,w);return!1===j&&(j=Fn.apply(Ve,w)),j}}$e.hooks=Ve}if(W.walkTokens){const Ve=this.defaults.walkTokens,st=W.walkTokens;$e.walkTokens=function(jt){let In=[];return In.push(st.call(this,jt)),Ve&&(In=In.concat(Ve.call(this,jt))),In}}this.defaults={...this.defaults,...$e}}),this}setOptions(he){return this.defaults={...this.defaults,...he},this}lexer(he,le){return hn.lex(he,null!=le?le:this.defaults)}parser(he,le){return Ar.parse(he,null!=le?le:this.defaults)}};function pr(bt,he){return gi.parse(bt,he)}pr.options=pr.setOptions=function(bt){return gi.setOptions(bt),rt(pr.defaults=gi.defaults),pr},pr.getDefaults=function Fe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},pr.defaults=xe,pr.use=function(...bt){return gi.use(...bt),rt(pr.defaults=gi.defaults),pr},pr.walkTokens=function(bt,he){return gi.walkTokens(bt,he)},pr.parseInline=gi.parseInline,pr.Parser=Ar,pr.parser=Ar.parse,pr.Renderer=Cn,pr.TextRenderer=tr,pr.Lexer=hn,pr.lexer=hn.lex,pr.Tokenizer=Ln,pr.Hooks=dr,pr.parse=pr;var Ge=D(1626),Ct=D(345);const Jt=["*"];let Un=(()=>{var bt;class he{constructor(){this._buttonClick$=new Oe.B,this.copied$=this._buttonClick$.pipe((0,Xe.n)(()=>(0,U.h)((0,ue.of)(!0),(0,oe.O)(3e3).pipe((0,Je.u)(!1)))),(0,Se.F)(),function St(bt,he,le){let W,$e=!1;return bt&&"object"==typeof bt?({bufferSize:W=1/0,windowTime:he=1/0,refCount:$e=!1,scheduler:le}=bt):W=null!=bt?bt:1/0,function ht(bt={}){const{connector:he=(()=>new Oe.B),resetOnError:le=!0,resetOnComplete:W=!0,resetOnRefCountZero:$e=!0}=bt;return Ve=>{let st,jt,In,Fn=0,w=!1,j=!1;const re=()=>{null==jt||jt.unsubscribe(),jt=void 0},P=()=>{re(),st=In=void 0,w=j=!1},Ie=()=>{const ot=st;P(),null==ot||ot.unsubscribe()};return(0,qe.N)((ot,sr)=>{Fn++,!j&&!w&&re();const ni=In=null!=In?In:he();sr.add(()=>{Fn--,0===Fn&&!j&&!w&&(jt=Tt(Ie,$e))}),ni.subscribe(sr),!st&&Fn>0&&(st=new Ze.Ms({next:z=>ni.next(z),error:z=>{j=!0,re(),jt=Tt(P,le,z),ni.error(z)},complete:()=>{w=!0,re(),jt=Tt(P,W),ni.complete()}}),(0,Qe.Tg)(ot).subscribe(st))})(Ve)}}({connector:()=>new De.m(W,he,le),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:$e})}(1)),this.copiedText$=this.copied$.pipe((0,yt.Z)(!1),(0,_t.T)(W=>W?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return(bt=he).\u0275fac=function(W){return new(W||bt)},bt.\u0275cmp=Z.VBU({type:bt,selectors:[["markdown-clipboard"]],standalone:!0,features:[Z.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(W,$e){1&W&&(Z.j41(0,"button",0),Z.nI1(1,"async"),Z.bIt("click",function(){return $e.onCopyToClipboardClick()}),Z.EFF(2),Z.nI1(3,"async"),Z.k0s()),2&W&&(Z.AVh("copied",Z.bMT(1,3,$e.copied$)),Z.R7$(2),Z.JRh(Z.bMT(3,5,$e.copiedText$)))},dependencies:[c.Jj],encapsulation:2,changeDetection:0}),he})();const xr=new Z.nKC("CLIPBOARD_OPTIONS");var Or=function(bt){return bt.CommandLine="command-line",bt.LineHighlight="line-highlight",bt.LineNumbers="line-numbers",bt}(Or||{});const zr=new Z.nKC("MARKED_EXTENSIONS"),Tr=new Z.nKC("MARKED_OPTIONS"),mi=new Z.nKC("SECURITY_CONTEXT");let Hn=(()=>{var bt;class he{get options(){return this._options}set options(W){this._options={...this.DEFAULT_MARKED_OPTIONS,...W}}get renderer(){return this.options.renderer}set renderer(W){this.options.renderer=W}constructor(W,$e,Ve,st,jt,In,Fn){this.clipboardOptions=W,this.extensions=$e,this.platform=st,this.securityContext=jt,this.http=In,this.sanitizer=Fn,this.DEFAULT_MARKED_OPTIONS={renderer:new Cn},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new Oe.B,this.reload$=this._reload$.asObservable(),this.options=Ve}parse(W,$e=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:Ve,inline:st,emoji:jt,mermaid:In,disableSanitizer:Fn}=$e,w={...this.options,...$e.markedOptions},j=w.renderer||this.renderer||new Cn;this.extensions&&(this.renderer=this.extendsRendererForExtensions(j)),In&&(this.renderer=this.extendsRendererForMermaid(j));const re=this.trimIndentation(W),P=Ve?this.decodeHtml(re):re,Ie=jt?this.parseEmoji(P):P,ot=this.parseMarked(Ie,w,st);return(Fn?ot:this.sanitizer.sanitize(this.securityContext,ot))||""}render(W,$e=this.DEFAULT_RENDER_OPTIONS,Ve){const{clipboard:st,clipboardOptions:jt,katex:In,katexOptions:Fn,mermaid:w,mermaidOptions:j}=$e;In&&this.renderKatex(W,{...this.DEFAULT_KATEX_OPTIONS,...Fn}),w&&this.renderMermaid(W,{...this.DEFAULT_MERMAID_OPTIONS,...j}),st&&this.renderClipboard(W,Ve,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...jt}),this.highlight(W)}reload(){this._reload$.next()}getSource(W){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(W,{responseType:"text"}).pipe((0,_t.T)($e=>this.handleExtension(W,$e)))}highlight(W){if(!(0,c.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;W||(W=document);const $e=W.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call($e,Ve=>Ve.classList.add("language-none")),Prism.highlightAllUnder(W)}decodeHtml(W){if(!(0,c.UE)(this.platform))return W;const $e=document.createElement("textarea");return $e.innerHTML=W,$e.value}extendsRendererForExtensions(W){var $e;const Ve=W;return!0===Ve.\u0275NgxMarkdownRendererExtendedForExtensions||((null===($e=this.extensions)||void 0===$e?void 0:$e.length)>0&&pr.use(...this.extensions),Ve.\u0275NgxMarkdownRendererExtendedForExtensions=!0),W}extendsRendererForMermaid(W){const $e=W;if(!0===$e.\u0275NgxMarkdownRendererExtendedForMermaid)return W;const Ve=W.code;return W.code=function(st,jt,In){return"mermaid"===jt?`
    ${st}
    `:Ve.call(this,st,jt,In)},$e.\u0275NgxMarkdownRendererExtendedForMermaid=!0,W}handleExtension(W,$e){const Ve=W.lastIndexOf("://"),st=Ve>-1?W.substring(Ve+4):W,jt=st.lastIndexOf("/"),In=jt>-1?st.substring(jt+1).split("?")[0]:"",Fn=In.lastIndexOf("."),w=Fn>-1?In.substring(Fn+1):"";return w&&"md"!==w?"```"+w+"\n"+$e+"\n```":$e}parseMarked(W,$e,Ve=!1){if($e.renderer){const st={...$e.renderer};delete st.\u0275NgxMarkdownRendererExtendedForExtensions,delete st.\u0275NgxMarkdownRendererExtendedForMermaid,delete $e.renderer,pr.use({renderer:st})}return Ve?pr.parseInline(W,$e):pr.parse(W,$e)}parseEmoji(W){if(!(0,c.UE)(this.platform))return W;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(W)}renderKatex(W,$e){if((0,c.UE)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(W,$e)}}renderClipboard(W,$e,Ve){if(!(0,c.UE)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!$e)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:st,buttonTemplate:jt}=Ve,In=W.querySelectorAll("pre");for(let Fn=0;Fnre.classList.add("hover"),j.onmouseleave=()=>re.classList.remove("hover"),st){const ot=$e.createComponent(st);P=ot.hostView,ot.changeDetectorRef.markForCheck()}else if(jt)P=$e.createEmbeddedView(jt);else{const ot=$e.createComponent(Un);P=ot.hostView,ot.changeDetectorRef.markForCheck()}P.rootNodes.forEach(ot=>{re.appendChild(ot),Ie=new ClipboardJS(ot,{text:()=>w.innerText})}),P.onDestroy(()=>Ie.destroy())}}renderMermaid(W,$e=this.DEFAULT_MERMAID_OPTIONS){if(!(0,c.UE)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const Ve=W.querySelectorAll(".mermaid");0!==Ve.length&&(mermaid.initialize($e),mermaid.run({nodes:Ve}))}trimIndentation(W){if(!W)return"";let $e;return W.split("\n").map(Ve=>{let st=$e;return Ve.length>0&&(st=isNaN(st)?Ve.search(/\S|$/):Math.min(Ve.search(/\S|$/),st)),isNaN($e)&&($e=st),st?Ve.substring(st):Ve}).join("\n")}}return(bt=he).\u0275fac=function(W){return new(W||bt)(Z.KVO(xr,8),Z.KVO(zr,8),Z.KVO(Tr,8),Z.KVO(Z.Agw),Z.KVO(mi),Z.KVO(Ge.Qq,8),Z.KVO(Ct.up))},bt.\u0275prov=Z.jDH({token:bt,factory:bt.\u0275fac}),he})(),ao=(()=>{var bt;class he{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(W){this._disableSanitizer=this.coerceBooleanProperty(W)}get inline(){return this._inline}set inline(W){this._inline=this.coerceBooleanProperty(W)}get clipboard(){return this._clipboard}set clipboard(W){this._clipboard=this.coerceBooleanProperty(W)}get emoji(){return this._emoji}set emoji(W){this._emoji=this.coerceBooleanProperty(W)}get katex(){return this._katex}set katex(W){this._katex=this.coerceBooleanProperty(W)}get mermaid(){return this._mermaid}set mermaid(W){this._mermaid=this.coerceBooleanProperty(W)}get lineHighlight(){return this._lineHighlight}set lineHighlight(W){this._lineHighlight=this.coerceBooleanProperty(W)}get lineNumbers(){return this._lineNumbers}set lineNumbers(W){this._lineNumbers=this.coerceBooleanProperty(W)}get commandLine(){return this._commandLine}set commandLine(W){this._commandLine=this.coerceBooleanProperty(W)}constructor(W,$e,Ve){this.element=W,this.markdownService=$e,this.viewContainerRef=Ve,this.error=new Z.bkB,this.load=new Z.bkB,this.ready=new Z.bkB,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new Oe.B}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,Et.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(W,$e=!1){var Ve=this;return(0,h.A)(function*(){const st={decodeHtml:$e,inline:Ve.inline,emoji:Ve.emoji,mermaid:Ve.mermaid,disableSanitizer:Ve.disableSanitizer},jt={clipboard:Ve.clipboard,clipboardOptions:{buttonComponent:Ve.clipboardButtonComponent,buttonTemplate:Ve.clipboardButtonTemplate},katex:Ve.katex,katexOptions:Ve.katexOptions,mermaid:Ve.mermaid,mermaidOptions:Ve.mermaidOptions},In=yield Ve.markdownService.parse(W,st);Ve.element.nativeElement.innerHTML=In,Ve.handlePlugins(),Ve.markdownService.render(Ve.element.nativeElement,jt,Ve.viewContainerRef),Ve.ready.emit()})()}coerceBooleanProperty(W){return null!=W&&"false"!=`${String(W)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:W=>{this.render(W).then(()=>{this.load.emit(W)})},error:W=>this.error.emit(W)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,Or.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,Or.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(W,$e){const Ve=W.querySelectorAll("pre");for(let st=0;st{const In=$e[jt];if(In){const Fn=this.toLispCase(jt);Ve.item(st).setAttribute(Fn,In.toString())}})}toLispCase(W){const $e=W.match(/([A-Z])/g);if(!$e)return W;let Ve=W.toString();for(let st=0,jt=$e.length;st{var bt;class he{static forRoot(W){return{ngModule:he,providers:[Ci(W)]}}static forChild(){return{ngModule:he}}}return(bt=he).\u0275fac=function(W){return new(W||bt)},bt.\u0275mod=Z.$C({type:bt}),bt.\u0275inj=Z.G2t({imports:[c.MD]}),he})();var oi;!function(bt){let he;var $e;let le,W;($e=he=bt.SecurityLevel||(bt.SecurityLevel={})).Strict="strict",$e.Loose="loose",$e.Antiscript="antiscript",$e.Sandbox="sandbox",function($e){$e.Base="base",$e.Forest="forest",$e.Dark="dark",$e.Default="default",$e.Neutral="neutral"}(le=bt.Theme||(bt.Theme={})),function($e){$e[$e.Debug=1]="Debug",$e[$e.Info=2]="Info",$e[$e.Warn=3]="Warn",$e[$e.Error=4]="Error",$e[$e.Fatal=5]="Fatal"}(W=bt.LogLevel||(bt.LogLevel={}))}(oi||(oi={}))},467:(Tn,gt,D)=>{"use strict";function h(Z,Oe,U,ue,oe,Xe,Je){try{var Se=Z[Xe](Je),De=Se.value}catch(Qe){return void U(Qe)}Se.done?Oe(De):Promise.resolve(De).then(ue,oe)}function c(Z){return function(){var Oe=this,U=arguments;return new Promise(function(ue,oe){var Xe=Z.apply(Oe,U);function Je(De){h(Xe,ue,oe,Je,Se,"next",De)}function Se(De){h(Xe,ue,oe,Je,Se,"throw",De)}Je(void 0)})}}D.d(gt,{A:()=>c})},9842:(Tn,gt,D)=>{"use strict";function h(U){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ue){return typeof ue}:function(ue){return ue&&"function"==typeof Symbol&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue})(U)}function Oe(U,ue,oe){return(ue=function Z(U){var ue=function c(U,ue){if("object"!=h(U)||!U)return U;var oe=U[Symbol.toPrimitive];if(void 0!==oe){var Xe=oe.call(U,ue||"default");if("object"!=h(Xe))return Xe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ue?String:Number)(U)}(U,"string");return"symbol"==h(ue)?ue:String(ue)}(ue))in U?Object.defineProperty(U,ue,{value:oe,enumerable:!0,configurable:!0,writable:!0}):U[ue]=oe,U}D.d(gt,{A:()=>Oe})},1635:(Tn,gt,D)=>{"use strict";function Oe(H,X){var fe={};for(var se in H)Object.prototype.hasOwnProperty.call(H,se)&&X.indexOf(se)<0&&(fe[se]=H[se]);if(null!=H&&"function"==typeof Object.getOwnPropertySymbols){var ve=0;for(se=Object.getOwnPropertySymbols(H);ve=0;Wt--)(_e=H[Wt])&&(Le=(ve<3?_e(Le):ve>3?_e(X,fe,Le):_e(X,fe))||Le);return ve>3&&Le&&Object.defineProperty(X,fe,Le),Le}function Qe(H,X,fe,se){return new(fe||(fe=Promise))(function(Le,_e){function Wt(rn){try{Kt(se.next(rn))}catch(Ln){_e(Ln)}}function dn(rn){try{Kt(se.throw(rn))}catch(Ln){_e(Ln)}}function Kt(rn){rn.done?Le(rn.value):function ve(Le){return Le instanceof fe?Le:new fe(function(_e){_e(Le)})}(rn.value).then(Wt,dn)}Kt((se=se.apply(H,X||[])).next())})}function mt(H){return this instanceof mt?(this.v=H,this):new mt(H)}function Me(H,X,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ve,se=fe.apply(H,X||[]),Le=[];return ve={},_e("next"),_e("throw"),_e("return"),ve[Symbol.asyncIterator]=function(){return this},ve;function _e(Zn){se[Zn]&&(ve[Zn]=function(nr){return new Promise(function(er,yr){Le.push([Zn,nr,er,yr])>1||Wt(Zn,nr)})})}function Wt(Zn,nr){try{!function dn(Zn){Zn.value instanceof mt?Promise.resolve(Zn.value.v).then(Kt,rn):Ln(Le[0][2],Zn)}(se[Zn](nr))}catch(er){Ln(Le[0][3],er)}}function Kt(Zn){Wt("next",Zn)}function rn(Zn){Wt("throw",Zn)}function Ln(Zn,nr){Zn(nr),Le.shift(),Le.length&&Wt(Le[0][0],Le[0][1])}}function ge(H){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,X=H[Symbol.asyncIterator];return X?X.call(H):(H=function Tt(H){var X="function"==typeof Symbol&&Symbol.iterator,fe=X&&H[X],se=0;if(fe)return fe.call(H);if(H&&"number"==typeof H.length)return{next:function(){return H&&se>=H.length&&(H=void 0),{value:H&&H[se++],done:!H}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")}(H),fe={},se("next"),se("throw"),se("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function se(Le){fe[Le]=H[Le]&&function(_e){return new Promise(function(Wt,dn){!function ve(Le,_e,Wt,dn){Promise.resolve(dn).then(function(Kt){Le({value:Kt,done:Wt})},_e)}(Wt,dn,(_e=H[Le](_e)).done,_e.value)})}}}D.d(gt,{AQ:()=>Me,Cg:()=>U,N3:()=>mt,Tt:()=>Oe,sH:()=>Qe,xN:()=>ge}),"function"==typeof SuppressedError&&SuppressedError}},Tn=>{Tn(Tn.s=63)}]); \ No newline at end of file diff --git a/www/runtime.6d5efcb6f6ed5a9f.js b/www/runtime.6d5efcb6f6ed5a9f.js deleted file mode 100644 index d0ef436..0000000 --- a/www/runtime.6d5efcb6f6ed5a9f.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},g={};function f(e){var d=g[e];if(void 0!==d)return d.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,f),a.exports}f.m=v,e=[],f.O=(d,a,t,b)=>{if(!a){var c=1/0;for(r=0;r=b)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,b0&&e[r-1][2]>b;r--)e[r]=e[r-1];e[r]=[a,t,b]},f.n=e=>{var d=e&&e.__esModule?()=>e.default:()=>e;return f.d(d,{a:d}),d},(()=>{var d,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,t){if(1&t&&(a=this(a)),8&t||"object"==typeof a&&a&&(4&t&&a.__esModule||16&t&&"function"==typeof a.then))return a;var b=Object.create(null);f.r(b);var r={};d=d||[null,e({}),e([]),e(e)];for(var c=2&t&&a;"object"==typeof c&&!~d.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach(l=>r[l]=()=>a[l]);return r.default=()=>a,f.d(b,r),b}})(),f.d=(e,d)=>{for(var a in d)f.o(d,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:d[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((d,a)=>(f.f[a](e,d),d),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{441:"c8d135e5d56e5723",461:"8d4a96e8cc5f52c5",964:"466b88054b5c618c",1010:"8e70b895427dd856",1015:"f98cd7158627e10b",1049:"7ef232095c56e4df",1081:"c9d99f35768da88f",1102:"010dfe13f6ca7e15",1133:"c9778691a5138958",1143:"b0763e5514384d40",1293:"ee80f2d33790618d",1313:"46ae0a0d0e94f2f8",1459:"32c41a59c0fd4cf1",1577:"0604cac29dd79422",2075:"1971ba880d06cc30",2076:"c227b807ded8b721",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2494:"cbe440bf03b1a014",2560:"f34ba2c5e85b55c8",2757:"508e833600e6e474",2885:"d64fa10bd441cbc8",3100:"4d5759fc21bf4de6",3162:"825364e1635b086f",3451:"fa589c246ed03c83",3506:"899dcc5e5d913023",3511:"16739e7034875331",3646:"f1263548817e086a",3675:"2c66d17b462dcd86",3728:"2a68666ee49959dd",3814:"aed692045b27c466",4163:"511ba1c803d7c59e",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4304:"d887e6bb10776ec4",4348:"16e6409072fc8e11",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4559:"899e5e5ee3064cb6",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4839:"f32de5d22c9696fa",4867:"17817bc208c2836c",4914:"72751204db50ae35",5054:"2f57954df11c6846",5100:"659224ed1f94442c",5197:"38b8cc3181b51450",5222:"9cbea5f62b0fb679",5371:"6ea8dd7ee408088a",5399:"c439131f3a61e9b3",5712:"a9a2db8da6f1a8cd",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",5995:"2de4ee42f61961e5",6024:"3c02ab7fe82fedfe",6303:"4ea7e81fd1aa1e01",6433:"91353c3d7c453322",6480:"5977b854bb56850c",6521:"a8a508f41e539cc5",6536:"a4f178f939f2d134",6695:"93cacdb118ebec12",6840:"fd32dada9c8ec44e",6975:"6d2e5de0574c6402",6982:"4907cbb0a21f41f1",7030:"f2a9bf080bedfc5b",7056:"d94084a764515e62",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"e306385d972d6e2c",7428:"cb325b96b92ea4c2",7551:"2aee9adb00f5b47f",7720:"78509b154c08b472",7762:"e7a5b89bf8544d49",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8566:"52fa7b8c5c22d53f",8584:"94ca33677cedf961",8711:"f6a903c3bb3101f6",8805:"7a687270c4acd743",8814:"4175e28b98837400",8886:"d67de68b3732a1f5",8970:"89f040d889f287fc",8984:"b8081aaadcdeaca4",9013:"2e347313286de95b",9070:"29b18cc91c088f3f",9273:"16673f4c5278d1b8",9329:"c76198334f717402",9344:"2d668603b6130b28",9456:"c3e2b25e7ae1c2c6",9546:"6e1d6e8098da979c",9697:"57e559625e67bb53",9977:"948bf38bed890db4"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,d)=>Object.prototype.hasOwnProperty.call(e,d),(()=>{var e={},d="app:";f.l=(a,t,b,r)=>{if(e[a])e[a].push(t);else{var c,l;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i{c.onerror=c.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],c.parentNode&&c.parentNode.removeChild(c),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=s.bind(null,c.onerror),c.onload=s.bind(null,c.onload),l&&document.head.appendChild(c)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:d=>d},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(t,b)=>{var r=f.o(e,t)?e[t]:void 0;if(0!==r)if(r)b.push(r[2]);else if(9121!=t){var c=new Promise((o,s)=>r=e[t]=[o,s]);b.push(r[2]=c);var l=f.p+f.u(t),n=new Error;f.l(l,o=>{if(f.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+t+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,r[1](n)}},"chunk-"+t,t)}else e[t]=0},f.O.j=t=>0===e[t];var d=(t,b)=>{var n,i,[r,c,l]=b,o=0;if(r.some(u=>0!==e[u])){for(n in c)f.o(c,n)&&(f.m[n]=c[n]);if(l)var s=l(f)}for(t&&t(b);o{"use strict";var e,v={},g={};function f(e){var d=g[e];if(void 0!==d)return d.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,f),a.exports}f.m=v,e=[],f.O=(d,a,t,b)=>{if(!a){var c=1/0;for(r=0;r=b)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,b0&&e[r-1][2]>b;r--)e[r]=e[r-1];e[r]=[a,t,b]},f.n=e=>{var d=e&&e.__esModule?()=>e.default:()=>e;return f.d(d,{a:d}),d},(()=>{var d,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,t){if(1&t&&(a=this(a)),8&t||"object"==typeof a&&a&&(4&t&&a.__esModule||16&t&&"function"==typeof a.then))return a;var b=Object.create(null);f.r(b);var r={};d=d||[null,e({}),e([]),e(e)];for(var c=2&t&&a;"object"==typeof c&&!~d.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach(l=>r[l]=()=>a[l]);return r.default=()=>a,f.d(b,r),b}})(),f.d=(e,d)=>{for(var a in d)f.o(d,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:d[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((d,a)=>(f.f[a](e,d),d),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{441:"c8d135e5d56e5723",461:"8d4a96e8cc5f52c5",628:"8d5c8e57e2a37c54",964:"466b88054b5c618c",1010:"8e70b895427dd856",1015:"f98cd7158627e10b",1049:"7ef232095c56e4df",1081:"c9d99f35768da88f",1102:"010dfe13f6ca7e15",1133:"c9778691a5138958",1143:"b0763e5514384d40",1293:"ee80f2d33790618d",1313:"46ae0a0d0e94f2f8",1459:"32c41a59c0fd4cf1",1577:"0604cac29dd79422",2075:"1971ba880d06cc30",2076:"c227b807ded8b721",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2494:"cbe440bf03b1a014",2560:"f34ba2c5e85b55c8",2757:"89e28904ff3cf268",2885:"d64fa10bd441cbc8",3100:"4d5759fc21bf4de6",3162:"825364e1635b086f",3451:"fa589c246ed03c83",3506:"899dcc5e5d913023",3511:"16739e7034875331",3646:"f1263548817e086a",3675:"2c66d17b462dcd86",3728:"2a68666ee49959dd",3814:"aed692045b27c466",4163:"511ba1c803d7c59e",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4304:"d887e6bb10776ec4",4348:"16e6409072fc8e11",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4559:"899e5e5ee3064cb6",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4839:"f32de5d22c9696fa",4867:"17817bc208c2836c",4914:"72751204db50ae35",5054:"2f57954df11c6846",5100:"659224ed1f94442c",5197:"38b8cc3181b51450",5222:"9cbea5f62b0fb679",5399:"c439131f3a61e9b3",5712:"a9a2db8da6f1a8cd",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",5995:"2de4ee42f61961e5",6024:"3c02ab7fe82fedfe",6303:"4ea7e81fd1aa1e01",6433:"91353c3d7c453322",6480:"5977b854bb56850c",6521:"a8a508f41e539cc5",6536:"a4f178f939f2d134",6695:"93cacdb118ebec12",6840:"fd32dada9c8ec44e",6975:"6d2e5de0574c6402",6982:"4907cbb0a21f41f1",7030:"f2a9bf080bedfc5b",7056:"d94084a764515e62",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"e306385d972d6e2c",7428:"cb325b96b92ea4c2",7551:"2aee9adb00f5b47f",7720:"78509b154c08b472",7762:"e7a5b89bf8544d49",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8566:"52fa7b8c5c22d53f",8584:"94ca33677cedf961",8711:"f6a903c3bb3101f6",8805:"7a687270c4acd743",8814:"4175e28b98837400",8886:"d67de68b3732a1f5",8970:"89f040d889f287fc",8984:"b8081aaadcdeaca4",9013:"2e347313286de95b",9070:"29b18cc91c088f3f",9273:"16673f4c5278d1b8",9329:"c76198334f717402",9344:"2d668603b6130b28",9456:"c3e2b25e7ae1c2c6",9546:"6e1d6e8098da979c",9697:"57e559625e67bb53",9977:"948bf38bed890db4"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,d)=>Object.prototype.hasOwnProperty.call(e,d),(()=>{var e={},d="app:";f.l=(a,t,b,r)=>{if(e[a])e[a].push(t);else{var c,l;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i{c.onerror=c.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],c.parentNode&&c.parentNode.removeChild(c),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=s.bind(null,c.onerror),c.onload=s.bind(null,c.onload),l&&document.head.appendChild(c)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:d=>d},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(t,b)=>{var r=f.o(e,t)?e[t]:void 0;if(0!==r)if(r)b.push(r[2]);else if(9121!=t){var c=new Promise((o,s)=>r=e[t]=[o,s]);b.push(r[2]=c);var l=f.p+f.u(t),n=new Error;f.l(l,o=>{if(f.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+t+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,r[1](n)}},"chunk-"+t,t)}else e[t]=0},f.O.j=t=>0===e[t];var d=(t,b)=>{var n,i,[r,c,l]=b,o=0;if(r.some(u=>0!==e[u])){for(n in c)f.o(c,n)&&(f.m[n]=c[n]);if(l)var s=l(f)}for(t&&t(b);o